/* ==========================================================================
   Hügelheim Flowers — shared stylesheet
   Sections:
     1  Colours, fonts & spacing (edit the look here)
     2  Base & typography
     3  Header & navigation
     4  Buttons & links
     5  Layout helpers
     6  Photos & frames
     7  Home hero
     8  Page sections (rows, ticks, steps, notes, prices)
     9  Forms
    10  Footer
    11  Subtle motion
    12  Tablet & mobile
   ========================================================================== */

/* 1. COLOURS, FONTS & SPACING
   -------------------------------------------------------------------------- */
:root {
  --ivory:       #fbf8f1;   /* main background */
  --ivory-soft:  #f6f1e6;   /* very light panel */
  --beige:       #efe8da;   /* alternate sections */
  --beige-deep:  #e2d9c6;   /* borders on beige */
  --sage:        #9aa68f;   /* muted sage green */
  --sage-light:  #dfe3d6;   /* sage-tinted section */
  --olive:       #5f6840;   /* soft olive: buttons, links */
  --olive-dark:  #4a5233;   /* hover */
  --charcoal:    #2e2e2b;   /* text */
  --muted:       #6a6a62;   /* secondary text */
  --line:        #d8d0bd;   /* hairline borders */

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  --max: 1200px;
  --gap: clamp(1.25rem, 3vw, 2.75rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. BASE & TYPOGRAPHY
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--sage-light); color: var(--charcoal); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 1.1rem;
  letter-spacing: .005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 6.8vw, 5.4rem); font-weight: 400; letter-spacing: -.005em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 400; }
h3 { font-size: 1.7rem; font-weight: 500; }

p { margin: 0 0 1.25rem; max-width: 60ch; text-wrap: pretty; }
strong, b { font-weight: 500; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--charcoal);
  max-width: 34ch;
}
.center .lede, .narrow.center .lede { margin-left: auto; margin-right: auto; max-width: 38ch; }

a { color: var(--olive); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s var(--ease); }
a:hover { color: var(--olive-dark); }

img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--charcoal); color: var(--ivory); padding: .7rem 1.1rem; z-index: 100;
}
.skip-link:focus { left: 0; color: var(--ivory); }

/* 3. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  background: rgba(251, 248, 241, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 1.1rem var(--gap);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.logo {
  font-family: var(--serif);
  font-size: 1.9rem; font-weight: 500; line-height: 1;
  color: var(--charcoal); text-decoration: none; letter-spacing: .01em;
}
.logo small {
  display: block; font-family: var(--sans); font-size: .7rem; font-weight: 400;
  letter-spacing: .32em; text-indent: .02em; color: var(--olive); margin-top: .45rem;
}
.logo:hover { color: var(--charcoal); }

.nav-list { list-style: none; display: flex; gap: 2.4rem; margin: 0; padding: 0; }
.nav-list a {
  position: relative; color: var(--charcoal); text-decoration: none;
  font-size: .98rem; font-weight: 400; letter-spacing: .03em; padding: .4rem 0;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--olive); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--olive); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  padding: .55rem 1rem; font: inherit; font-size: .95rem; letter-spacing: .04em;
  color: var(--charcoal); cursor: pointer; transition: border-color .2s, background .2s;
}
.nav-toggle:hover { border-color: var(--olive); background: var(--ivory-soft); }

/* 4. BUTTONS & LINKS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: .95rem; font-weight: 400;
  letter-spacing: .06em; line-height: 1.2;
  padding: 1.05rem 2.1rem; border: 1px solid var(--olive);
  background: var(--olive); color: var(--ivory); text-decoration: none; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--olive-dark); border-color: var(--olive-dark); color: var(--ivory); }
.btn-outline { background: transparent; color: var(--olive); }
.btn-outline:hover { background: var(--olive); color: var(--ivory); }
.btn-light { background: var(--ivory); border-color: var(--ivory); color: var(--charcoal); }
.btn-light:hover { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn-ghost-light { background: transparent; border-color: rgba(251,248,241,.85); color: var(--ivory); }
.btn-ghost-light:hover { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.1rem; }

.text-link {
  font-family: var(--serif); font-size: 1.4rem; font-style: italic; font-weight: 500;
  color: var(--olive); text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor); /* underline only, not a colour gradient */
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: .15rem; transition: background-size .35s var(--ease), color .2s;
}
.text-link:hover { background-size: 35% 1px; color: var(--olive-dark); }

/* 5. LAYOUT HELPERS
   -------------------------------------------------------------------------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: var(--section) 0; }
.section-beige { background: var(--beige); }
.section-sage  { background: var(--sage-light); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6.5rem); align-items: center;
}
.split.reverse .split-media { order: 2; }

/* Small hand-drawn-feeling divider: a short rule with a centred sage dot */
.center h2::after, .cta-band h2::after {
  content: ""; display: block; width: 4.5rem; height: 1px; background: var(--sage);
  margin: 1.5rem auto 0; position: relative;
}
.center h2, .cta-band h2 { margin-bottom: 1.5rem; }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* 6. PHOTOS & FRAMES
   Every photo is a <figure class="photo"> with an <img>. If the file is
   missing, a soft placeholder with the file name shows instead.
   -------------------------------------------------------------------------- */
.photo {
  position: relative; margin: 0; overflow: hidden;
  background: var(--beige); border: 0;
  aspect-ratio: 4 / 5;
}
.photo.wide   { aspect-ratio: 3 / 2; }
.photo.square { aspect-ratio: 1 / 1; }
.photo.banner { aspect-ratio: 21 / 9; }
.photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.photo:hover img { transform: scale(1.025); }

/* Placeholder look when the photo file is missing */
.photo.is-empty { background: var(--beige); }
.photo.is-empty img { display: none; }
.photo.is-empty::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid var(--sage); opacity: .7;
}
.photo.is-empty::after {
  content: attr(data-placeholder);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--muted);
  white-space: pre-line;
}
.section-beige .photo.is-empty { background: #e6dfcf; }
.section-sage  .photo.is-empty { background: #d3d9c8; }

/* Offset frame behind the photos in split sections */
.split-media { position: relative; }
.split-media::before {
  content: ""; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid var(--sage); z-index: 0;
}
.split.reverse .split-media::before { inset: 1.1rem 1.1rem -1.1rem -1.1rem; }
.split-media .photo { position: relative; z-index: 1; }

/* Banner photos get a fine inner keyline */
.photo.banner:not(.is-empty)::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(251,248,241,.55); pointer-events: none;
}

.photo-caption { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--muted); margin: .8rem 0 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 2.5rem; }
.gallery .photo { aspect-ratio: 4 / 5; }
.gallery .photo.square { aspect-ratio: 1 / 1; align-self: end; }
.gallery .photo:nth-child(3n + 2) { margin-top: 2.5rem; }
.gallery .photo:nth-child(3n + 2).square { margin-top: 0; }

/* 7. HOME HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: min(92vh, 860px);
  display: flex; align-items: flex-end; color: var(--ivory);
  background: #6f7a63; overflow: hidden;
}
.hero .hero-img { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; background: #6f7a63; }
.hero .hero-img:hover img { transform: none; }
.hero .hero-img.is-empty::before { border-color: rgba(251,248,241,.35); inset: 22px; }
.hero .hero-img.is-empty::after { color: rgba(251,248,241,.75); align-items: flex-start; justify-content: flex-end; font-size: 1.05rem; padding: 3rem 3.2rem; }
.hero::before {            /* flat tint so ivory text stays readable on any photo */
  content: ""; position: absolute; inset: 0; background: rgba(28, 30, 22, .34); z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding-top: 7rem; padding-bottom: clamp(3.5rem, 9vw, 7rem); width: 100%; }
.hero h1 { color: var(--ivory); max-width: 13ch; text-shadow: 0 1px 24px rgba(0,0,0,.18); }
.hero p { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-style: italic; line-height: 1.45; max-width: 34ch; color: #f6f2e7; }
.hero .btn-row { margin-top: 2.4rem; }

/* Inner page heading block */
.page-head { padding: clamp(4rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { margin-bottom: 1.4rem; }
.page-head h1::after { content: ""; display: block; width: 4.5rem; height: 1px; background: var(--sage); margin-top: 1.6rem; }
.page-head p { font-size: 1.12rem; }

/* 8. PAGE SECTIONS
   -------------------------------------------------------------------------- */

/* Editorial rows: title left, text right, hairline between */
.rows { border-top: 1px solid var(--line); margin-top: 2.2rem; }
.row {
  display: grid; grid-template-columns: 1fr 1.7fr; gap: var(--gap);
  padding: 2.2rem 1rem; margin: 0 -1rem; border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease);
}
.row:hover { background: rgba(251, 248, 241, .6); }
.section-beige .row:hover { background: rgba(251, 248, 241, .55); }
.row h3 { margin: 0; color: var(--charcoal); }
.row p { margin-bottom: 0; color: #45453f; }

/* Lists with a short olive rule instead of bullets */
.ticks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.ticks li { padding: 1.05rem 0 1.05rem 2.4rem; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 1.4rem; border-top: 1px solid var(--olive);
}
.section-beige .ticks, .section-beige .ticks li,
.section-sage .ticks, .section-sage .ticks li { border-color: rgba(95,104,64,.28); }

/* How it works — a real sequence, so numbered */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 5rem 1fr; gap: 1rem;
  padding: 1.9rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.steps li::before { content: counter(step); font-family: var(--serif); font-style: italic; font-size: 3rem; color: var(--sage); line-height: 1; }
.steps strong { font-family: var(--serif); font-size: 1.65rem; font-weight: 500; display: block; line-height: 1.2; margin-bottom: .3rem; }
.steps span { color: var(--muted); }

/* Notes and prices */
.note { border-left: 1px solid var(--sage); padding: .4rem 0 .4rem 1.5rem; margin: 2.2rem 0; max-width: 60ch; }
.note p { margin: 0; }

.price-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line); max-width: 560px;
  font-family: var(--serif); font-size: 1.4rem;
}
.price-line:first-of-type { border-top: 1px solid var(--line); }
.price-line span:last-child { font-family: var(--sans); font-size: .95rem; color: var(--muted); font-style: italic; }

.cta-band { text-align: center; }
.cta-band p { margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }

/* Facts list (contact) */
.facts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { padding: 1.4rem 0; border-bottom: 1px solid var(--line); color: #45453f; }
.facts b { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; display: block; line-height: 1.2; margin-bottom: .25rem; color: var(--charcoal); }

/* 9. FORMS
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.5rem; background: var(--ivory-soft); border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 2.75rem); }
.form label { display: block; font-size: .92rem; font-weight: 400; letter-spacing: .04em; margin-bottom: .45rem; color: var(--charcoal); }
.form input, .form textarea {
  width: 100%; font: inherit; font-weight: 300; color: var(--charcoal);
  background: var(--ivory); border: 1px solid var(--line); padding: .9rem 1rem; border-radius: 0;
  transition: border-color .25s var(--ease), background .25s;
}
.form input:hover, .form textarea:hover { border-color: var(--sage); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--olive); background: #fff; box-shadow: 0 0 0 1px var(--olive); }
.form textarea { min-height: 190px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-note { font-size: .92rem; color: var(--muted); max-width: 60ch; margin: 0; }
.form-status { min-height: 1.5rem; color: var(--olive-dark); margin: 0; }

/* 10. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: #dcd8cb; padding: 5rem 0 2.2rem; font-size: .98rem; }
.site-footer a { color: #dcd8cb; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: var(--gap); }
.site-footer h2 { font-size: 1.6rem; font-weight: 400; color: #fff; margin-bottom: 1rem; }
.site-footer h2::after { content: ""; display: block; width: 2.5rem; height: 1px; background: var(--sage); margin-top: .9rem; }
.site-footer p { margin-bottom: .7rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .45rem; }
.footer-nav a { border-bottom: 1px solid transparent; }
.footer-nav a:hover { border-bottom-color: var(--sage); }
.copyright { margin: 3.5rem 0 0; max-width: none; padding-top: 1.6rem; border-top: 1px solid #55554e; font-size: .88rem; color: #aaa699; }

/* 11. SUBTLE MOTION — one gentle fade-in when a page loads, nothing else
   -------------------------------------------------------------------------- */
@keyframes settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-content > *, .page-head .container > * { animation: settle 1s var(--ease) both; }
.hero-content > :nth-child(2), .page-head .container > :nth-child(2) { animation-delay: .12s; }
.hero-content > :nth-child(3), .page-head .container > :nth-child(3) { animation-delay: .24s; }

/* 12. TABLET & MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .nav-list { gap: 1.6rem; }
  .gallery .photo:nth-child(3n + 2) { margin-top: 0; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ivory); border-bottom: 1px solid var(--line); display: none;
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding: .5rem var(--gap) 1.4rem; }
  .nav-list a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { font-weight: 500; }

  .split, .row, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media::before, .split.reverse .split-media::before { inset: .8rem -.5rem -.8rem .5rem; }
  .split.reverse .split-media::before { inset: .8rem .5rem -.8rem -.5rem; }
  .row { gap: .7rem; padding: 1.8rem 0; margin: 0; }
  .row:hover { background: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 82vh; }
  .photo.banner { aspect-ratio: 3 / 2; }
  .center h2::after, .cta-band h2::after { margin-top: 1.2rem; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; line-height: 1.8; }
  .logo { font-size: 1.65rem; }
  .gallery { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .steps li { grid-template-columns: 3rem 1fr; }
  .steps li::before { font-size: 2.3rem; }
  .form { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   13. BUCKET PRICES & SELECT FIELD (added for Hügelheim Flowers)
   ========================================================================== */
.bucket-price {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 2.6rem; line-height: 1; color: var(--olive); margin: .7rem 0 0;
}
.bucket-price small { font-family: var(--sans); font-style: normal; font-size: .9rem; color: var(--muted); letter-spacing: .04em; margin-left: .4rem; }

.form select {
  width: 100%; font: inherit; font-weight: 300; color: var(--charcoal);
  background: var(--ivory); border: 1px solid var(--line); padding: .9rem 1rem; border-radius: 0;
  transition: border-color .25s var(--ease);
}
.form select:hover { border-color: var(--sage); }
.form select:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 1px var(--olive); }

/* Contact form: hidden spam-trap field and status message */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status.is-sent { background: var(--sage-light); border: 1px solid var(--sage); padding: .9rem 1.1rem; }
.form-status.is-error { background: #f7ebe8; border: 1px solid #a6584c; color: #6b2d24; padding: .9rem 1.1rem; }
