/* ==========================================================================
   Day Flowers — landing page
   Plain CSS. No framework, no build step beyond AssetMapper.
   Breakpoints: sm 40rem / md 48rem / lg 64rem (min-width, mobile first).
   ========================================================================== */

/* ── Design tokens ──────────────────────────────────────────────────── */
:root {
  /* Ground — plain white. The alternating band stays tinted toward the
     petal, so the page still reads as two related tones rather than
     white-on-grey. */
  --paper: #FFFFFF;
  --chalk: #F7EBE4;

  /* Ink — warm brown-black, never a neutral grey */
  --ink: #241A18;
  --ink-soft: #5A4843;
  --mist: #7F645B;

  /* Bordeaux — the heart of an open rose. Brand + every call to action */
  --bordeaux: #7C2F3A;
  --bordeaux-deep: #5E1F29;

  /* Terracotta — Moroccan clay. Marks, rules, arrows.
     Decorative only: too light for small text. */
  --terracotta: #C4756A;

  /* Blush — petal. Washes and image plates, never text */
  --blush: #E8C4BC;
  --blush-wash: #F5E2DC;

  /* Brand green — the wordmark colour from logo.png */
  --brand-green: #236B42;

  --rule: #EBD9D1;
  --rule-soft: #F4E7E1;

  /* WhatsApp — reserved for the glyph alone, so buttons stay in the brand
     while the icon stays unmistakably WhatsApp */
  --whatsapp: #25D366;

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-wordmark: "Montserrat", "Avenir Next", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --wrap: 1320px;
  --gutter: 1.5rem;
}

@media (min-width: 48rem) {
  :root { --gutter: 2.5rem; }
}

/* ── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
summary::-webkit-details-marker { display: none; }

::selection { background: var(--bordeaux); color: var(--chalk); }

/* ── Typography ─────────────────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 350;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  letter-spacing: -0.022em;
}
.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bordeaux);
  font-weight: 400;
}

.spec {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}

.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.wordmark-tagline {
  font-family: var(--font-wordmark);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── Shared pieces ──────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.rule-short {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--terracotta);
  flex-shrink: 0;
}

.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.link-underline:hover { background-size: 0% 1px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 1rem; left: 1rem;
  z-index: 60;
  width: auto; height: auto;
  clip-path: none;
  margin: 0;
  padding: 0.75rem 1.25rem;
  background: var(--bordeaux);
  color: var(--chalk);
}

/* ── Image plates ───────────────────────────────────────────────────── */
.plate {
  position: relative;
  background: var(--blush-wash);
  overflow: hidden;
  isolation: isolate;
}
.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, 0.7) 0%, transparent 55%),
    radial-gradient(80% 70% at 75% 80%, rgba(0, 0, 0, 0.08) 0%, transparent 60%);
  z-index: -1;
}
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.plate-rose { background: linear-gradient(135deg, #F9E9E4 0%, #E8C4BC 55%, #CC9A92 100%); }

/* A plate carrying a real photograph: keep the frame and a whisper of
   grain, but drop the painterly wash meant for empty placeholders. */
.plate-photo::before { display: none; }
.plate-photo::after  { opacity: 0.14; }
.plate-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── WhatsApp call to action ────────────────────────────────────────── */
/* The single conversion path of the page. Kept in the house typography so
   it reads as part of the letterhead, with WhatsApp's own green reserved
   strictly for the glyph. */
.btn-whatsapp,
.btn-whatsapp-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.0625rem 2.125rem;
  min-height: 52px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition:
    background 250ms cubic-bezier(0.22, 1, 0.36, 1),
    color 250ms ease,
    transform 250ms cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-whatsapp { background: var(--bordeaux); color: var(--chalk); }
.btn-whatsapp:hover { background: var(--bordeaux-deep); transform: translateY(-1px); }
.btn-whatsapp:active { transform: translateY(0); }

.btn-whatsapp-outline {
  color: var(--bordeaux);
  border: 1px solid var(--bordeaux);
}
.btn-whatsapp-outline:hover { background: var(--bordeaux); color: var(--chalk); }

.btn-whatsapp:focus-visible,
.btn-whatsapp-outline:focus-visible,
.btn-wa-round:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.btn-whatsapp .wa-glyph { flex-shrink: 0; color: var(--whatsapp); }

/* Compact variants */
.btn-whatsapp--sm {
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  font-size: 1rem;
  white-space: nowrap;
}
.btn-whatsapp--bar {
  padding: 0.75rem 1.25rem;
  min-height: 48px;
  flex-shrink: 0;
}

/* Phone header: glyph only */
.btn-wa-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--bordeaux);
  color: var(--chalk);
  flex-shrink: 0;
}

/* Floating action button — desktop/tablet only; on phones the sticky bar
   below does the same job without covering content. */
.wa-float {
  position: fixed;
  right: 1.75rem;
  bottom: 1.75rem;
  z-index: 50;
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9375rem 1.5rem;
  border-radius: 999px;
  background: var(--bordeaux);
  color: var(--chalk);
  font-family: var(--font-display);
  font-size: 1rem;
  box-shadow: 0 10px 30px -8px rgba(124, 47, 58, 0.45);
  transition: background 250ms ease, transform 250ms cubic-bezier(0.22, 1, 0.36, 1);
}
.wa-float:hover { background: var(--bordeaux-deep); transform: translateY(-2px); }
.wa-float:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.wa-float .wa-glyph { color: var(--whatsapp); }

/* Sticky phone CTA bar */
.wa-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--chalk);
  border-top: 1px solid var(--rule);
  transform: translateY(110%);
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.wa-bar.is-visible { transform: translateY(0); }
.wa-bar__text { flex: 1; min-width: 0; }
.wa-bar__label { display: block; color: var(--bordeaux); }
.wa-bar__lead {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.25;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.75rem;
}
.site-header__rule { height: 1px; background: var(--rule-soft); }

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.brand__mark { height: 3rem; width: auto; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { color: var(--brand-green); font-size: 0.88rem; }
.brand__tagline {
  color: var(--brand-green);
  font-size: 0.56rem;
  margin-top: 0.375rem;
}

.site-nav { display: none; align-items: center; gap: 2.5rem; }
.site-nav a { color: var(--ink-soft); }

.header-cta { display: none; flex-shrink: 0; }
.header-cta--compact { display: block; flex-shrink: 0; }

@media (min-width: 40rem) {
  .brand__mark { height: 4rem; }
  .brand__name { font-size: 1.08rem; }
  .brand__tagline { font-size: 0.66rem; margin-top: 0.5rem; }
  .header-cta { display: block; }
  .header-cta--compact { display: none; }
}
@media (min-width: 48rem) {
  .site-header__inner { padding-block: 1rem; }
  .brand__mark { height: 5rem; }
  .brand__name { font-size: 1.24rem; }
  .brand__tagline { font-size: 0.72rem; }
}
@media (min-width: 64rem) {
  .site-nav { display: flex; }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding-top: 2.5rem; }
.hero__flag {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.hero__grid {
  display: grid;
  gap: 3.5rem 3rem;
  align-items: start;
  padding-bottom: 5rem;
}
.hero__title {
  font-size: 13vw;
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.hero__lede {
  font-size: 1.25rem;
  line-height: 1.375;
  color: var(--ink-soft);
  margin-top: 2rem;
  max-width: 36rem;
}
.hero__title em,
.hero__lede em { font-style: normal; color: var(--bordeaux); }

.cta-block {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.cta-block__label { color: var(--bordeaux); margin-bottom: 1.25rem; }

.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2rem;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: color-mix(in oklab, var(--ink-soft) 80%, transparent);
}
.trust svg { color: var(--bordeaux); flex-shrink: 0; }

.hero__plate { aspect-ratio: 4 / 5; }

@media (min-width: 40rem) {
  .hero__title { font-size: 9vw; }
  .hero__plate { aspect-ratio: 4 / 3; }
}
@media (min-width: 48rem) {
  .hero { padding-top: 3.5rem; }
  .hero__flag { margin-bottom: 3.5rem; }
  .hero__grid { padding-bottom: 7rem; }
  .hero__lede { font-size: 1.5rem; }
}
@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__title { font-size: 4.6vw; }
  .hero__plate { aspect-ratio: 1 / 1; }
}

/* ── Figures strip ──────────────────────────────────────────────────── */
.stats {
  background: var(--chalk);
  border-block: 1px solid var(--rule);
}
.stats .wrap { padding-block: 3rem; }
.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 2rem;
}
.stat { text-align: center; }
.stat__figure {
  font-family: var(--font-display);
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  letter-spacing: -0.022em;
  font-size: 2.25rem;
}
.stat__label { color: var(--mist); margin-top: 0.5rem; }

@media (min-width: 40rem) {
  .stats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 48rem) {
  .stats .wrap { padding-block: 4rem; }
  .stat__figure { font-size: 3rem; }
}

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq {
  padding-block: 6rem;
  scroll-margin-top: 8rem;
}
.faq__grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}
.faq__title {
  font-size: 3rem;
  line-height: 0.95;
}
.faq__title em { font-style: normal; color: var(--bordeaux); }
.faq__note {
  color: var(--ink-soft);
  line-height: 1.625;
  margin-top: 2rem;
  max-width: 24rem;
}
.faq__cta { margin-top: 2rem; }

.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.75rem;
  min-height: 44px;
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--bordeaux);
  outline-offset: 4px;
}
.faq-item h3 {
  font-family: var(--font-display);
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  letter-spacing: -0.022em;
  font-size: 1.5rem;
  line-height: 1.375;
}
.faq-item p {
  color: var(--ink-soft);
  line-height: 1.625;
  padding-bottom: 1.75rem;
  padding-right: 2.5rem;
  max-width: 42rem;
}
.faq-sign {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--terracotta);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item[open] .faq-sign { transform: rotate(45deg); }

@media (min-width: 48rem) {
  .faq { padding-block: 8rem; }
  .faq__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 3rem; }
  .faq__intro { grid-column: 1 / span 4; }
  .faq__list  { grid-column: 6 / span 7; }
  .faq__title { font-size: 3.75rem; }
  .faq-item h3 { font-size: 1.7rem; }
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { scroll-margin-top: 8rem; }
.footer-main {
  background: var(--chalk);
  border-top: 1px solid var(--rule-soft);
}
.footer-main .wrap { padding-block: 5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem 2.5rem;
}
.footer-col__label { margin-bottom: 1rem; }
.footer-address {
  font-family: var(--font-display);
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  letter-spacing: -0.022em;
  font-size: 1.25rem;
  line-height: 1.25;
}
.footer-address em { font-style: italic; color: var(--ink-soft); }

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
}
.footer-link span {
  font-family: var(--font-display);
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  font-size: 1.125rem;
}
.footer-link svg { flex-shrink: 0; }

.footer-map {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  min-height: 44px;
  color: var(--bordeaux);
}

.footer-bar {
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.footer-bar .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  /* room for the sticky phone CTA */
  padding-block: 1.5rem 6rem;
}
.footer-bar p { color: color-mix(in oklab, var(--ink-soft) 75%, transparent); }

@media (min-width: 40rem) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bar .wrap {
    flex-direction: row;
    align-items: center;
  }
}
@media (min-width: 48rem) {
  .footer-main .wrap { padding-block: 7rem; }
  .footer-bar .wrap { padding-block: 1.5rem; }
  .wa-bar, .btn-wa-round { display: none; }
  .wa-float { display: inline-flex; }
}
@media (min-width: 64rem) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Motion ─────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-bar { transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
