/* ============================================================
   Lily's Beautiful Bouquets — Design System
   Palette: dried-herb sage, brick clay, wheat gold, linen
   Display: Fraunces (soft, organic serif) / Body: Work Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --linen: #f8e8ee;
  --linen-deep: #edd3dd;
  --paper: #fff7fa;
  --ink: #34291d;
  --ink-soft: #6c5c47;
  --sage: #7c8b6a;
  --sage-deep: #58664a;
  --clay: #b2593e;
  --clay-deep: #8c4330;
  --wheat: #c9a24b;
  --plum: #7c5568;
  --line: rgba(52, 41, 29, 0.14);
  --shadow: 0 12px 28px -14px rgba(52, 41, 29, 0.35);
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.4em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 60ch; }

a { color: var(--clay-deep); }

.eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--wheat);
}

/* ---------- Layout shell ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 88px 0; }
@media (max-width: 640px) {
  section { padding: 56px 0; }
  .wrap { padding: 0 20px; }
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(211, 143, 161, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--clay);
  transition: right 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .site-nav .wrap {
    height: 68px;
    gap: 12px;
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1rem;
    line-height: 1.15;
    gap: 8px;
  }
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  .nav-links {
    position: fixed;
    inset: 68px 0 0 0;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    background: #d38fa1;
    flex-direction: column;
    padding: 32px 20px;
    gap: 22px;
    overflow-y: auto;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle {
    display: block;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 9px;
    margin-left: auto;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
  }
}

@media (max-width: 360px) {
  .brand { font-size: 0.9rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-clay { background: var(--clay); color: var(--paper); box-shadow: var(--shadow); }
.btn-clay:hover { background: var(--clay-deep); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-sage { background: var(--sage); color: var(--paper); }
.btn-sage:hover { background: var(--sage-deep); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Divider (signature element) ---------- */
.sprig-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 0;
  color: var(--wheat);
}
.sprig-divider .line { flex: 1; max-width: 220px; height: 1px; background: var(--line); }
.sprig-divider svg { width: 34px; height: 34px; }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy p.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, var(--linen-deep), var(--paper));
  border-radius: 8px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-art svg { width: 78%; height: 78%; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 40px; }
}

/* ---------- Bloom Bar ---------- */
.flowerbar {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bar-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.stem-chip {
  background: var(--linen);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  font-family: 'Work Sans', sans-serif;
}
.stem-chip:hover { transform: translateY(-2px); border-color: var(--sage); }
.stem-chip:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}
.stem-chip.selected {
  background: var(--sage);
  border-color: var(--sage-deep);
}
.stem-chip.selected * { color: var(--paper) !important; }
.stem-chip.selected svg { filter: brightness(0) invert(1); }
.stem-chip svg { width: 34px; height: 34px; margin-bottom: 10px; }
.stem-chip .name { font-weight: 600; font-size: 0.95rem; color: var(--ink); display: block; }
.stem-chip .meaning { font-size: 0.78rem; color: var(--ink-soft); margin-top: 2px; display: block; }

.bar-summary {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--linen);
  border: 1px dashed var(--sage);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.bar-summary .picked { font-size: 0.92rem; }
.bar-summary .picked strong { color: var(--clay-deep); }

/* ---------- Cards / grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

/* ---------- Portfolio gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

.gallery-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-thumb {
  aspect-ratio: 1;
  background: var(--linen-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-thumb svg { width: 58%; height: 58%; }
.gallery-caption { padding: 16px 18px 20px; }
.gallery-caption .tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
}
.gallery-caption h3 { font-size: 1.05rem; margin: 4px 0 4px; }
.gallery-caption p { font-size: 0.88rem; margin: 0; }
.gallery-caption .portfolio-price { margin-top: 10px; color: var(--clay-deep); }
.gallery-caption .portfolio-flowers { margin-top: 5px; color: var(--ink-soft); font-size: 0.8rem; }
.portfolio-request-card { color: inherit; text-decoration: none; cursor: pointer; }
.portfolio-request-card:hover { transform: translateY(-3px); border-color: var(--sage); }
.portfolio-request-card:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
.portfolio-request-hint { display:inline-block; margin-top:12px; color:var(--sage-deep); font-size:0.82rem; font-weight:700; }
.guest-count-dialog {
  width:min(470px, calc(100% - 28px)); padding:30px; border:1px solid var(--line);
  border-radius:8px; background:var(--paper); color:var(--ink);
}
.guest-count-dialog::backdrop { background:rgba(44,38,34,0.62); }
.guest-count-dialog h2 { margin-bottom:8px; }
.guest-count-dialog p { margin-bottom:20px; }
.guest-price-estimate {
  display:grid; gap:4px; margin:-4px 0 20px; padding:12px 14px;
  border:1px solid var(--sage); border-radius:var(--radius); background:var(--linen);
  color:var(--ink-soft); font-size:0.9rem;
}
.guest-price-estimate strong { color:var(--clay-deep); }

.idea-cta {
  margin-top: 56px;
  text-align: center;
  padding: 52px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.idea-cta h2 { margin-bottom: 10px; }
.idea-cta p { margin: 0 auto 24px; }

/* ---------- Forms ---------- */
.form-shell {
  max-width: 640px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px;
}
@media (max-width: 640px) { .form-shell { padding: 26px; } }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 7px;
  color: var(--ink);
}
.field .hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 5px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.96rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--linen);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
  border-color: var(--sage);
}
.field textarea { resize: vertical; min-height: 120px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }

.picked-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.picked-strip .pill {
  background: var(--sage);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
}
.picked-strip .pill.empty {
  background: transparent;
  border: 1px dashed var(--ink-soft);
  color: var(--ink-soft);
  font-weight: 500;
}

.form-status {
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { color: var(--sage-deep); }
.form-status.err { color: var(--clay-deep); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list svg { width: 22px; height: 22px; color: var(--clay); flex-shrink: 0; }
.contact-list a { text-decoration: none; color: var(--ink); font-weight: 600; }
.contact-list a:hover { color: var(--clay-deep); }
.contact-list .label { display: block; font-size: 0.74rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-side { display:grid; gap:20px; }
.contact-photo {
  width:100%; aspect-ratio:4/3; overflow:hidden; border:1px solid var(--line);
  border-radius:6px; background:var(--linen-deep);
}
.contact-photo img { width:100%; height:100%; object-fit:cover; display:block; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  text-align: center;
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
footer .footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
footer p { margin: 0; font-size: 0.84rem; color: var(--ink-soft); }
.footer-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}
.footer-link:hover { color: var(--clay-deep); }

/* ---------- Privacy ---------- */
.privacy-page { padding: 60px 0 90px; }
.privacy-content { max-width: 760px; }
.privacy-updated {
  margin: 8px 0 28px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.privacy-intro { font-size: 1.05rem; }
.privacy-section { margin-top: 34px; }
.privacy-section h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}
.privacy-section p { margin: 0; }

/* ---------- Admin ---------- */
.admin-shell { min-height: 100vh; background: var(--linen); }
.admin-header {
  background: var(--ink);
  color: var(--paper);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header .brand { color: var(--paper); }
.admin-main { max-width: 1120px; margin: 0 auto; padding: 40px 32px; }
.admin-login {
  max-width: 400px;
  margin: 90px auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px;
}
table.submissions { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
table.submissions th, table.submissions td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  vertical-align: top;
}
table.submissions th {
  background: var(--linen-deep);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
table.submissions tr:last-child td { border-bottom: none; }
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.badge.request { background: rgba(124,139,106,0.2); color: var(--sage-deep); }
.badge.flower_bar { background: rgba(174,114,86,0.18); color: var(--clay-deep); }
.badge.idea { background: rgba(124,85,104,0.2); color: var(--plum); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.pf-filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
}
.pf-filter-btn.active { background: var(--sage); border-color: var(--sage-deep); color: var(--paper); }
