/* ==========================================================
   FlowerYellow — yellow flower picture gallery
   ========================================================== */

/* Self-hosted variable fonts (latin subset). "optional" = no layout shift. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
}

:root {
  --sun: #ffc300;
  --sun-deep: #f0a500;
  --honey: #e08e00;
  --butter: #fff3c4;
  --cream: #fffbec;
  --paper: #ffffff;
  --leaf: #2f5d3a;
  --leaf-soft: #e6efe2;
  --ink: #26221a;
  --ink-soft: #5c5446;
  --line: #f1e3b0;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px -18px rgba(120, 80, 0, .35);
  --shadow-soft: 0 8px 24px -12px rgba(120, 80, 0, .25);
  --serif: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wrap: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--honey); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--leaf); }

h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--honey); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sun); border-radius: 2px; }

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--sun); border-radius: 2px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

.hl {
  background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 88%, transparent 88%);
  padding: 0 .08em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 650; font-size: .98rem; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(240, 165, 0, .9); }
.btn-sun:hover { background: #ffcf2e; color: var(--ink); transform: translateY(-2px); }
.btn-ghost { border: 2px solid rgba(38, 34, 26, .18); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 236, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(120, 80, 0, .5); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo svg { width: 38px; height: 38px; transition: transform .6s ease; }
.logo:hover svg { transform: rotate(72deg); }
.logo-text { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.logo-text b { color: var(--sun-deep); font-weight: 700; }

.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem;
}
.nav-links a:hover { background: var(--butter); color: var(--ink); }
.nav-cta { padding: 10px 20px; font-size: .92rem; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--butter); cursor: pointer; padding: 0;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto;
  position: relative; transition: transform .25s, background .25s; content: "";
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(255, 195, 0, .35), rgba(255, 195, 0, 0) 65%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); margin-bottom: 22px; }
.hero-lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.stats { display: flex; gap: clamp(20px, 4vw, 44px); list-style: none; padding: 0; margin: 0; }
.stats strong { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--ink); }
.stats span { font-size: .85rem; color: var(--ink-soft); }

.hero-art { position: relative; }
.hero-photo {
  margin: 0; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4 / 5; background: var(--butter);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.hero-badge {
  position: absolute; left: -28px; bottom: 40px;
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); padding: 14px 18px; border-radius: 18px; box-shadow: var(--shadow-soft);
  font-size: .9rem; line-height: 1.3; animation: float 6s ease-in-out infinite;
}
.hero-badge img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.hero-badge b { display: block; font-size: 1rem; }
.hero-badge span { color: var(--ink-soft); }
.hero-petal {
  position: absolute; right: -18px; top: 30px; width: 96px; height: 96px;
  animation: spin 24s linear infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Keyword ribbon ---------- */
.ribbon { background: var(--ink); color: var(--butter); overflow: hidden; padding: 16px 0; }
.ribbon-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ribbon ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ribbon li { display: flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--serif); font-size: 1.35rem; white-space: nowrap; }
.ribbon li::after { content: "✿"; color: var(--sun); font-size: 1.1rem; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter {
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 9px 18px; border-radius: 999px; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.filter:hover { border-color: var(--sun); transform: translateY(-1px); }
.filter[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); }

.gallery { columns: 3 300px; column-gap: 22px; }
.photo {
  break-inside: avoid; margin: 0 0 22px; position: relative;
  border-radius: var(--radius); overflow: hidden; background: var(--butter);
  box-shadow: var(--shadow-soft);
}
.photo[hidden] { display: none; }
.photo a { display: block; position: relative; color: inherit; }
.photo img { width: 100%; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.photo:hover img { transform: scale(1.06); }
.photo figcaption {
  position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px;
  background: linear-gradient(transparent, rgba(28, 22, 5, .78));
  color: #fff;
}
.photo figcaption h3 { font-size: 1.2rem; margin: 0 0 2px; }
.photo figcaption p { margin: 0; font-size: .86rem; opacity: .88; line-height: 1.45; }
.tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255, 251, 236, .92); color: var(--ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.zoom {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sun); color: var(--ink);
  opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s;
}
.photo:hover .zoom, .photo a:focus-visible .zoom { opacity: 1; transform: scale(1); }

/* ---------- Feature band ---------- */
.feature { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.feature::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(30, 24, 4, .82) 0%, rgba(30, 24, 4, .5) 45%, rgba(30, 24, 4, 0) 80%);
}
.feature .wrap { padding: clamp(90px, 13vw, 170px) 0; }
.feature-box { max-width: 560px; }
.feature h2 { color: #fff; }
.feature p { color: rgba(255, 255, 255, .88); font-size: 1.1rem; }
.feature .eyebrow { color: var(--sun); }

/* ---------- Flower guide cards ---------- */
.guide { background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 4px; }
.latin { font-style: italic; color: var(--ink-soft); font-size: .9rem; margin-bottom: 12px; }
.card-body p { font-size: .96rem; color: var(--ink-soft); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 0; list-style: none; }
.meta li { font-size: .78rem; font-weight: 650; background: var(--butter); padding: 4px 10px; border-radius: 999px; }
.meta li.season { background: var(--leaf-soft); color: var(--leaf); }

/* ---------- Meaning ---------- */
.meaning-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.meaning-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.meaning-photos img { border-radius: var(--radius); object-fit: cover; width: 100%; height: 100%; box-shadow: var(--shadow-soft); }
.meaning-photos img:first-child { grid-row: span 2; aspect-ratio: 3 / 4.4; }
.meaning-photos img:not(:first-child) { aspect-ratio: 1; }
.symbols { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.symbols li { display: flex; gap: 16px; align-items: flex-start; }
.symbols .ico {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--butter); font-size: 1.4rem;
}
.symbols h3 { font-size: 1.1rem; margin: 2px 0 2px; font-family: var(--sans); font-weight: 700; }
.symbols p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Seasons ---------- */
.seasons { background: linear-gradient(180deg, var(--butter), var(--cream)); }
.season-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.season {
  background: var(--paper); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
}
.season::before {
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
  background: var(--sun); opacity: .18;
}
.season .when { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--honey); }
.season h3 { margin: 6px 0 12px; }
.season ul { margin: 0; padding: 0; list-style: none; }
.season li { padding: 7px 0; border-top: 1px dashed var(--line); font-size: .95rem; }
.season li:first-child { border-top: 0; }

/* ---------- Palette ---------- */
.palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.swatch { border-radius: var(--radius-sm); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-soft); }
.swatch i { display: block; height: 110px; }
.swatch div { padding: 12px 14px; font-size: .85rem; line-height: 1.35; }
.swatch b { display: block; font-size: .95rem; }
.swatch code { color: var(--ink-soft); font-size: .8rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-list { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--butter);
  display: grid; place-items: center; font-family: var(--sans); font-size: 1.3rem; transition: transform .25s, background .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--sun); }
.faq details p { color: var(--ink-soft); padding-bottom: 20px; margin: 0; }

/* ---------- About / CTA ---------- */
.cta {
  background: var(--sun); border-radius: 32px; padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px;
  background: url("../images/flower-mark.svg") center / contain no-repeat; opacity: .35;
}
.cta h2 { margin-bottom: 14px; }
.cta p { font-size: 1.08rem; margin: 0; color: #3d3314; }
.cta .btn { background: var(--ink); color: var(--butter); justify-self: end; position: relative; z-index: 1; }
.cta .btn:hover { background: #000; color: #fff; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 243, 196, .78); padding: 70px 0 30px; margin-top: clamp(64px, 9vw, 110px); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: rgba(255, 243, 196, .9); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.credits { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 26px; font-size: .8rem; line-height: 1.7; color: rgba(255, 243, 196, .55); }
.credits a { color: rgba(255, 243, 196, .75); text-decoration: underline; }
.copy { margin-top: 18px; font-size: .82rem; color: rgba(255, 243, 196, .55); }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(20, 16, 4, .88); backdrop-filter: blur(4px); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 16px; }
.lightbox p { color: #fff; text-align: center; margin: 14px 0 0; font-family: var(--serif); font-size: 1.2rem; }
.lb-btn {
  position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--sun); color: var(--ink); font-size: 1.4rem; display: grid; place-items: center;
}
.lb-close { top: -18px; right: -18px; }
.lb-prev { left: -64px; top: 50%; transform: translateY(-50%); }
.lb-next { right: -64px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .season-grid { grid-template-columns: repeat(2, 1fr); }
  .palette { grid-template-columns: repeat(3, 1fr); }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 10px 20px 20px;
    display: none;
  }
  .menu-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 10px; border-radius: 10px; }

  .hero-grid, .meaning-grid, .cta, .footer-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-badge { left: 10px; }
  .hero-petal { right: 4px; }
  .cta .btn { justify-self: start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .season-grid { grid-template-columns: 1fr; }
  .palette { grid-template-columns: repeat(2, 1fr); }
  .stats strong { font-size: 1.6rem; }
  .meaning-photos img:first-child { aspect-ratio: 3 / 4.6; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
