/* Bloom Where You're Planted Flower Farm
   Direction: follows valhavenfarm.ca per client instruction (D0 build).
   White and cream ground, photography carries the colour, clean sans type,
   hierarchy by spacing. */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree-var.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #FCFBFA;
  --cream: #F6F1E8;
  --sand: #DBC9B6;
  --sand-soft: #EDE4D7;
  --sage: #929776;
  --sage-deep: #6E7452;
  --sage-ink: #55583F;
  --rose: #CF726D;
  --rose-soft: #E5ADA4;
  --ink: #3E3B35;
  --ink-soft: #625D54;
  --font-head: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Figtree', 'Gill Sans', 'Segoe UI', sans-serif;
  --font-ui: 'Figtree', 'Gill Sans', 'Segoe UI', sans-serif;
  --section-pad: clamp(4.5rem, 9vw, 8.5rem);
  --container: 74rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.9rem, 6vw, 4.8rem); font-weight: 600; }
h2 { font-size: clamp(2.25rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.7rem; font-weight: 600; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.25rem; }

a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose); }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1.1rem;
  border-radius: 3px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.measure { max-width: 44rem; }
.centred { text-align: center; }
.centred .measure { margin-inline: auto; }

section { padding-block: var(--section-pad); }
.band-cream { background: var(--cream); }
.band-cream + .band-cream { padding-top: 0; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { color: var(--ink-soft); }

/* Buttons: plain verbs, generous padding */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 2.1rem;
  border-radius: 3px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-fill { background: var(--sage-deep); color: var(--white); }
.btn-fill:hover { background: var(--sage-ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--sand-soft); color: var(--ink); }
.btn-line { background: transparent; color: var(--sage-deep); border-color: var(--sage-deep); }
.btn-line:hover { background: var(--sage-deep); color: var(--white); }
.btn-line.on-dark { color: var(--white); border-color: var(--white); }
.btn-line.on-dark:hover { background: rgba(252, 251, 250, 0.18); color: var(--white); }

.opening-note {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--rose);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn-row.centred { justify-content: center; }

/* Header */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FCFBFA;
  border-bottom: 1px solid var(--sand-soft);
  overflow-anchor: none;
  transition: box-shadow 0.25s ease;
}
.site-header.shrunk { box-shadow: 0 1px 0 rgba(62, 59, 53, 0.10); }
.site-header.shrunk .header-inner { padding-block: 0.5rem; }
.header-inner { transition: padding 0.25s ease; }
html, body { overflow-x: clip; }

/* Transparent header over full-bleed heroes (Valhaven treatment):
   fixed and clear at the top, solid once you scroll. */
body.hero-page { --header-h: 4.9rem; }
body.hero-page .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
body.hero-page .site-header.solid,
body.hero-page .site-header.menu-open {
  background: #FCFBFA;
  border-bottom-color: var(--sand-soft);
}
body.hero-page .site-header:not(.solid):not(.menu-open) .main-nav:not(.open) a {
  color: var(--white);
}
body.hero-page .site-header:not(.solid):not(.menu-open) .main-nav:not(.open) a[aria-current='page'] {
  color: var(--white);
  border-bottom-color: rgba(252, 251, 250, 0.75);
}
body.hero-page .site-header:not(.solid):not(.menu-open) .nav-toggle {
  color: var(--white);
  border-color: rgba(252, 251, 250, 0.6);
}
body.hero-page .site-header .logo-link {
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  margin-left: -0.65rem;
  transition: background 0.35s ease;
}
body.hero-page .site-header:not(.solid):not(.menu-open) .logo-link {
  background: rgba(252, 251, 250, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}
.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.header-logo { height: 3.4rem; width: auto; transition: height 0.25s ease, filter 0.3s ease; }
.site-header.shrunk .header-logo { height: 2.7rem; }
.main-nav ul {
  display: flex;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.35rem;
}
.main-nav a:hover { color: var(--sage-deep); }
.main-nav a[aria-current='page'] { color: var(--sage-deep); border-bottom: 2px solid var(--rose-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--sand);
  border-radius: 3px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}

/* Hero: the photograph speaks for itself. No words, light top scrim
   only so the transparent header stays legible. */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  padding: 0;
}
.hero img.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 9rem;
  z-index: 1;
  background: linear-gradient(rgba(35, 33, 28, 0.38), rgba(35, 33, 28, 0));
}

/* Welcome section: the words that used to sit on the hero */
.welcome { text-align: center; }
.welcome h1 { margin-bottom: 1.1rem; }
.welcome .tagline {
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 44rem;
  margin-inline: auto;
}
.welcome .hours-note { color: var(--ink-soft); margin-bottom: 2rem; }
.welcome .btn-row { justify-content: center; }

/* Full-bleed page hero for inner pages: photo only, title sits below */
.page-hero {
  position: relative;
  height: clamp(26rem, 68vh, 44rem);
  overflow: hidden;
  padding: 0;
}
.page-hero img.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 9rem;
  z-index: 1;
  background: linear-gradient(rgba(35, 33, 28, 0.38), rgba(35, 33, 28, 0));
}
.page-title { padding-bottom: 0; }
.page-title h1 { margin-bottom: 1.25rem; }

/* Splits: text and image side by side */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split.reverse > .split-media { order: -1; }
.split-media img { width: 100%; border-radius: 2px; }
.split .caption, .caption {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* Offerings grid */
.offerings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
}
.offering { text-decoration: none; color: inherit; display: block; }
.offering img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 1.1rem;
  transition: opacity 0.25s ease;
}
a.offering:hover img { opacity: 0.88; }
.offering h3 { margin-bottom: 0.35rem; }
.offering .price {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--sage-deep);
  margin-bottom: 0.5rem;
}
.offering .soon {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--rose);
  margin-bottom: 0.5rem;
}
.offering p { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 0; }

/* Blooming calendar */
.seasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.season { border-top: 1px solid var(--sand); padding-top: 1.4rem; }
.season h3 { font-size: 1.2rem; margin-bottom: 0.15rem; }
.season .when { color: var(--rose); font-family: var(--font-head); font-size: 0.98rem; margin-bottom: 0.9rem; }
.season ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.season li { margin-bottom: 0.35rem; }

/* FAQ accordion (native details, works without JS) */
.faq { max-width: 52rem; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--sand);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.35rem 0.25rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.22rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--sage-deep);
  transition: transform 0.2s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 0.25rem 1.5rem; color: var(--ink-soft); max-width: 44rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* Owner quote (the slot real testimonials will take later) */
.owner-quote { max-width: 50rem; margin-inline: auto; text-align: center; }
.owner-quote blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.4;
  color: var(--ink);
}
.owner-quote cite {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-soft);
}

/* Photo strip */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}
.photo-strip img { width: 100%; border-radius: 2px; }

/* Grower callout placeholder panel */
.placeholder-photo {
  background: var(--cream);
  border: 1px dashed var(--sand);
  border-radius: 2px;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Map */
.map-wrap iframe {
  width: 100%;
  height: 26rem;
  border: 0;
  display: block;
  border-radius: 2px;
}

/* Contact band */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.contact-list li { margin-bottom: 1.1rem; }
.contact-list .cl-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--sage-deep); }

.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.hours-table td { padding: 0.45rem 0; border-bottom: 1px solid var(--sand-soft); }
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }

/* Forms */
.form label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.form input[type='text'], .form input[type='email'], .form input[type='tel'],
.form textarea, .form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 3px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1.3rem;
}
.form textarea { min-height: 9rem; resize: vertical; }
.form .hp { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: 0.95rem; color: var(--ink-soft); }

.inline-form {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  max-width: 34rem;
}
.inline-form input[type='email'] {
  flex: 1;
  font-family: var(--font-body);
  font-size: 1.05rem;
  border: 1px solid var(--sand);
  border-radius: 3px;
  padding: 0.75rem 0.9rem;
  background: var(--white);
  color: var(--ink);
}
.inline-form.centred { margin-inline: auto; }

/* Product blocks on Flowers page */
.product.no-media { grid-template-columns: 1fr; max-width: 44rem; }
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--sand-soft);
}
.product:first-of-type { border-top: 0; }
.product .price-tag {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--sage-deep);
  margin-bottom: 1rem;
}
.product img { width: 100%; border-radius: 2px; }

/* Coming-soon cards */
.coming-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
}
.coming-card {
  border: 1px solid var(--sand);
  border-radius: 3px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--white);
}
.coming-card .soon { color: var(--rose); font-family: var(--font-head); font-weight: 500; margin-bottom: 0.5rem; }

/* U-Pick cups */
.cups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
  max-width: 52rem;
}
.cup {
  border-top: 1px solid var(--sand);
  padding-top: 1.4rem;
}
.cup .cup-price {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--sage-deep);
}

/* Story blocks */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  margin-bottom: var(--section-pad);
}
.story-block:last-of-type { margin-bottom: 0; }
.story-block.reverse > .story-media { order: -1; }
.story-block img { width: 100%; border-radius: 2px; }

/* Edge-bleed splits: the photo runs to the viewport edge (Valhaven) */
.edge-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding: 0;
}
.edge-split .edge-media { position: relative; }
.edge-split .edge-media img {
  width: 100%;
  height: 100%;
  min-height: clamp(24rem, 62vh, 38rem);
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.edge-split .edge-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3.5rem, 7vw, 7rem) clamp(1.5rem, 6vw, 6.5rem);
}
.edge-split .edge-copy > .inner { max-width: 34rem; margin-inline: auto; }
.edge-split.reverse .edge-media { order: -1; }

/* Sliding offerings strip (Valhaven marquee) */
.marquee {
  background: #F5E9E5;
  overflow: hidden;
  padding: 1.35rem 0;
  border-block: 1px solid #EFDCD6;
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee ul {
  display: flex;
  gap: 3.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.marquee li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--sage-ink);
}
.marquee li::after {
  content: '\2022';
  color: var(--rose-soft);
  margin-left: 3.5rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Instagram icon link */
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.ig-link svg { width: 1.5rem; height: 1.5rem; display: block; }
.ig-link:hover svg { opacity: 0.75; }
.story-close { text-align: center; max-width: 46rem; margin-inline: auto; }
.story-close .the-line {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--sand-soft);
  padding: clamp(3rem, 6vw, 4.5rem) 0 7rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.footer-logo { width: 11rem; margin-bottom: 1.1rem; }
.site-footer h2 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--sage-deep); text-decoration: underline; }
.footer-note {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sand-soft);
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}
.footer-note a { color: var(--ink-soft); }

/* Sticky mobile call bar */
.call-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  background: var(--sage-deep);
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  gap: 0.6rem;
}
.call-bar a {
  flex: 1;
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1rem;
  color: var(--white);
  text-decoration: none;
  background: rgba(252, 251, 250, 0.14);
  border: 1px solid rgba(252, 251, 250, 0.45);
  border-radius: 3px;
  padding: 0.6rem 0.5rem;
}
.call-bar a:hover { background: rgba(252, 251, 250, 0.28); color: var(--white); }

/* Reveal motion (hidden only when JS is running; failsafe in site.js) */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .hero-inner.reveal { transform: translateY(24px); }
html.js .hero-inner.reveal.is-in { transform: none; }

/* Responsive */
@media (max-width: 60rem) {
  .offerings { grid-template-columns: 1fr 1fr; }
  .seasons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 46rem) {
  body { font-size: 1.05rem; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--sand-soft);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0; }
  .main-nav li { border-top: 1px solid var(--sand-soft); }
  .main-nav li:first-child { border-top: 0; }
  .main-nav a { display: block; padding: 0.9rem clamp(1.25rem, 5vw, 3rem); }
  .main-nav a[aria-current='page'] { border-bottom: 0; background: var(--cream); }

  .split, .product, .story-block, .contact-grid, .coming-grid, .cups { grid-template-columns: 1fr; }
  .split.reverse > .split-media, .story-block.reverse > .story-media { order: 0; }
  .offerings { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }

  .hero { height: 72svh; min-height: 26rem; }
  .page-hero { height: 46svh; min-height: 18rem; }
  .edge-split { grid-template-columns: 1fr; }
  .edge-split .edge-media { order: 0; }
  .edge-split.reverse .edge-media { order: 0; }
  .edge-split .edge-media img { min-height: 0; height: auto; }
  .edge-split .edge-copy { padding: 2.75rem 1.5rem; }
  .header-logo { height: 2.7rem; }
  .marquee li { font-size: 1.2rem; }

  .call-bar { display: flex; }
  .site-footer { padding-bottom: 6rem; }

  /* contact details lead on the visit page on phones */
  .contact-grid .contact-details { order: -1; }
}
