/* ============================================================
   FIOR BOUQUETS — styles.css
   ============================================================ */

/* ---------- Brand constants ---------- */
:root {
  --navy: #0A1B33;
  --navy-deep: #071427;
  --navy-elevated: #102543;
  --gold: #D8BC7A;
  --gold-light: #F0E2B8;
  --gold-deep: #B8934A;
  --ivory: #F7F3EC;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Light theme (default tokens) ---------- */
:root,
[data-theme="light"] {
  --bg: var(--ivory);
  --bg-elevated: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #EFEAE1;
  --text: var(--navy);
  --text-muted: rgba(10, 27, 51, 0.68);
  --accent: #A9833B;
  --accent-soft: #C4A25B;
  --line: rgba(10, 27, 51, 0.14);
  --line-strong: rgba(10, 27, 51, 0.22);
  --nav-bg: rgba(247, 243, 236, 0.82);
  --shadow: 0 24px 60px -30px rgba(10, 27, 51, 0.35);
  --glow: rgba(216, 188, 122, 0.22);
  --art-bg: linear-gradient(160deg, #FFFFFF 0%, #F3EEE4 100%);
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --bg: var(--navy);
  --bg-elevated: var(--navy-elevated);
  --surface: var(--navy-elevated);
  --surface-2: #0E2038;
  --text: var(--ivory);
  --text-muted: rgba(247, 243, 236, 0.66);
  --accent: #D8BC7A;
  --accent-soft: #E8D9A0;
  --line: rgba(247, 243, 236, 0.14);
  --line-strong: rgba(247, 243, 236, 0.26);
  --nav-bg: rgba(10, 27, 51, 0.78);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.65);
  --glow: rgba(216, 188, 122, 0.14);
  --art-bg: linear-gradient(160deg, #102543 0%, #0A1B33 100%);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, blockquote { font-family: var(--font-serif); font-weight: 400; line-height: 1.12; margin: 0; color: var(--text); }
h1 em, h2 em { font-style: italic; font-weight: 500; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--navy);
  padding: 10px 18px; z-index: 100; font-weight: 500;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

h2 { font-size: clamp(34px, 5vw, 56px); }
.lede { font-size: 19px; color: var(--text-muted); max-width: 560px; }

.section { padding: clamp(84px, 12vw, 150px) 0; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
              color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }

.btn-outline { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease);
}
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 26px; letter-spacing: 0.14em; color: var(--accent);
}
.brand-sub { font-size: 9.5px; letter-spacing: 0.52em; color: var(--text-muted); margin-top: 5px; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  font-size: 13px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); position: relative; padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.theme-toggle {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  color: var(--text); transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.petal-toggle {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  color: var(--text); transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.petal-toggle:hover { border-color: var(--accent); color: var(--accent); }
.petal-toggle:disabled { opacity: 0.45; cursor: not-allowed; }
.petal-toggle .icon { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-petal-off { display: none; }
[data-petals="off"] .icon-petal { display: none; }
[data-petals="off"] .icon-petal-off { display: block; }

.menu-toggle { display: none; width: 42px; height: 42px; background: none; border: none; cursor: pointer; }
.menu-toggle span {
  display: block; width: 24px; height: 1.5px; background: var(--text);
  margin: 5px auto; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  overflow: hidden;
}
.hero-watermark {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(52vw, 640px); opacity: 0.07; pointer-events: none;
}
.hero-watermark svg { width: 100%; height: auto; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  align-items: center; gap: clamp(40px, 6vw, 90px);
  position: relative; z-index: 2;
}
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-title { font-size: clamp(52px, 9vw, 112px); letter-spacing: -0.01em; }
.hero-lede { font-size: clamp(17px, 2vw, 21px); color: var(--text-muted); max-width: 440px; margin: 26px 0 38px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-emblem { display: flex; justify-content: center; }
.logo-plaque {
  width: min(400px, 74vw);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold);
  background: var(--navy);
  padding: 14px;
  box-shadow: 0 0 0 1px rgba(216, 188, 122, 0.18), var(--shadow);
  position: relative;
}
.logo-plaque::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid rgba(216, 188, 122, 0.35);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}
.logo-plaque img { border-radius: calc(var(--radius-lg) - 12px); width: 100%; height: 100%; object-fit: cover; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-muted);
}
.hero-scroll svg { width: 16px; height: 16px; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: bob 2.4s var(--ease) infinite; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Falling petals ---------- */
.petals { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: -8%;
  width: 15px; height: 21px;
  background: var(--accent);
  border-radius: 100% 0 100% 0;
  opacity: 0;
  filter: blur(0.5px);
  animation-name: petal-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes petal-fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  12%  { opacity: 0.2; }
  50%  { transform: translate3d(26px, 50vh, 0) rotate(140deg); opacity: 0.18; }
  88%  { opacity: 0.16; }
  100% { transform: translate3d(-12px, 112vh, 0) rotate(300deg); opacity: 0; }
}
[data-petals="off"] .petals { display: none; }

.petal:nth-child(1) { left: 3%; animation-duration: 15s; animation-delay: -2s; }
.petal:nth-child(2) { left: 11%; width: 11px; height: 15px; animation-duration: 19s; animation-delay: -7s; }
.petal:nth-child(3) { left: 22%; width: 18px; height: 25px; animation-duration: 17s; animation-delay: -11s; }
.petal:nth-child(4) { left: 56%; width: 12px; height: 17px; animation-duration: 20s; animation-delay: -14s; }
.petal:nth-child(5) { left: 79%; animation-duration: 16s; animation-delay: -4s; }
.petal:nth-child(6) { left: 89%; width: 10px; height: 14px; animation-duration: 18s; animation-delay: -9s; }
.petal:nth-child(7) { left: 94%; width: 13px; height: 18px; animation-duration: 21s; animation-delay: -16s; }

/* ---------- Story ---------- */
.story-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(48px, 7vw, 110px); align-items: center;
}
.story-art {
  display: flex; justify-content: center; align-items: center;
  background: var(--art-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-height: 480px; position: relative; overflow: hidden;
}
.story-art svg { width: min(70%, 320px); height: auto; }
.story-copy .lede { margin: 22px 0 18px; font-size: 21px; font-style: italic; }
.story-copy > p:not(.eyebrow):not(.lede) { color: var(--text-muted); max-width: 540px; }
.story-copy blockquote {
  font-size: 22px; font-style: italic; color: var(--accent);
  margin: 30px 0; padding-left: 26px; border-left: 2px solid var(--accent);
}
.values { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 20px; }
.values li { display: flex; flex-direction: column; gap: 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.values strong { font-family: var(--font-serif); font-size: 20px; font-weight: 500; letter-spacing: 0.02em; }
.values span { color: var(--text-muted); font-size: 15px; }

/* ---------- Section head ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(48px, 7vw, 80px); }
.section-head .lede { margin: 18px auto 0; }

/* ---------- Floral line art ---------- */
.floral {
  stroke: var(--accent); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; fill: none;
}

/* ---------- Bouquets ---------- */
.bouquets { background: var(--surface-2); }
.bouquet-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 34px);
}
.bouquet-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.bouquet-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.bouquet-art {
  background: var(--art-bg);
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.bouquet-art img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.bouquet-card:hover .bouquet-art img { transform: scale(1.04); }
.bouquet-meta { padding: 24px 28px 28px; }
.bouquet-meta h3 { font-size: 25px; }
.bouquet-meta p { color: var(--text-muted); font-size: 15px; margin: 8px 0 16px; }
.price {
  display: inline-block; font-size: 13px; letter-spacing: 0.1em;
  color: var(--accent); padding-top: 12px; border-top: 1px solid var(--line); width: 100%;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.service {
  padding: 34px 30px 40px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}
.service:hover { background: var(--surface); }
.service-index {
  font-family: var(--font-serif); font-size: 15px; color: var(--accent);
  letter-spacing: 0.1em;
}
.service h3 { font-size: 23px; margin: 16px 0 12px; }
.service p { color: var(--text-muted); font-size: 15px; }

/* ---------- Testimonials ---------- */
.testimonials { text-align: center; }
.slider { max-width: 780px; margin: 0 auto; }
.slides { position: relative; min-height: 220px; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; margin: 0; transition: opacity 0.6s var(--ease), visibility 0.6s; }
.slide.active { opacity: 1; visibility: visible; }
.slide blockquote {
  font-size: clamp(24px, 3.6vw, 38px); font-style: italic; line-height: 1.3;
  color: var(--text);
}
.slide blockquote::before { content: "\201C"; color: var(--accent); font-style: normal; }
.slide blockquote::after { content: "\201D"; color: var(--accent); font-style: normal; }
.slide figcaption { margin-top: 26px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 20px; }
.slider-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  display: inline-grid; place-items: center; color: var(--text);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.slider-btn:hover { border-color: var(--accent); color: var(--accent); }
.slider-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.slider-dots { display: flex; gap: 10px; }
.slider-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--line-strong); transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.slider-dots button.active { background: var(--accent); transform: scale(1.3); }

/* ---------- Contact ---------- */
.contact { background: var(--surface-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 7vw, 110px); }
.contact-copy .lede { margin: 22px 0 40px; }
.contact-details { display: grid; gap: 22px; margin: 0; }
.contact-details div { padding-top: 18px; border-top: 1px solid var(--line); }
.contact-details dt { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.contact-details dd { margin: 0; font-family: var(--font-serif); font-size: 19px; }
.contact-details dd a { border-bottom: 1px solid var(--line-strong); transition: border-color 0.3s var(--ease), color 0.3s var(--ease); }
.contact-details dd a:hover { color: var(--accent); border-color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  display: grid; gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 16px; font-weight: 300; color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 13px 15px; width: 100%;
  transition: border-color 0.3s var(--ease);
  appearance: none; -webkit-appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 110px; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 14px; min-height: 1.4em; }
.form-note.error { color: #C96A5B; }
.form-note.success { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); padding: 56px 0 44px; background: var(--bg); }
.footer-inner { display: grid; justify-items: center; text-align: center; gap: 16px; }
.footer-tag { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--text-muted); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); transition: color 0.3s var(--ease); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ---------- Footer petal drift ---------- */
.petal-drift {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  pointer-events: none; overflow: hidden;
}
.rested-petal {
  position: absolute;
  width: 13px; height: 19px;
  background: var(--accent);
  border-radius: 100% 0 100% 0;
  filter: blur(0.4px);
  opacity: 0.2;
  animation: petal-settle 10s ease-in-out infinite;
}
@keyframes petal-settle {
  0%, 100% { opacity: 0.14; }
  50% { opacity: 0.32; }
}
@keyframes petal-dissolve {
  0%   { opacity: 0.30; }
  45%  { opacity: 0.30; }
  62%  { opacity: 0.04; }
  85%  { opacity: 0.04; }
  100% { opacity: 0.30; }
}
[data-petals="off"] .petal-drift { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .petals { display: none; }
  .petal-drift { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .hero-lede { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-emblem { order: -1; }
  .logo-plaque { width: min(280px, 64vw); }
  .story-grid { grid-template-columns: 1fr; }
  .story-art { min-height: 360px; }
  .bouquet-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 28px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0.35s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links-cta { display: block; margin-top: 12px; }
  .nav-links a:not(.btn) { display: block; width: 100%; padding: 14px 0; font-size: 15px; }
  .nav-links-cta .btn { width: 100%; }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .bouquet-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }

  .slides { min-height: 300px; }
  .slider-dots { gap: 14px; }
  .slider-dots button { width: 12px; height: 12px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}
