/* ============================================================
   Caffè D'Amore — "The Conservatory" design system
   Bright botanical vintage: cream, deep green, terracotta.
   Edit the tokens below to re-theme the entire site.
   ============================================================ */

:root {
  /* Palette */
  --cream:        #FAF7F0;   /* page background */
  --cream-deep:   #F3EDDF;   /* alternating sections */
  --butter:       #F2E4C9;   /* warm highlight panels */
  --green:        #2E5239;   /* primary — CDA deep green */
  --green-deep:   #21402B;   /* hover / footer */
  --green-tint:   #E9EFE6;   /* soft green wash */
  --terracotta:   #C4572E;   /* accent — pots, flourishes */
  --terracotta-deep: #A84623;
  --ink:          #28231B;   /* body text */
  --muted:        #6E6557;   /* secondary text */
  --line:         #E4DCCB;   /* hairlines, borders */
  --white:        #FFFFFF;

  /* Type */
  --font-display: "Libre Caslon Display", "Georgia", serif;
  --font-body:    "Karla", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --radius-sm: 10px;
  --radius:    18px;
  --radius-arch: 999px 999px 18px 18px; /* signature arched frame */
  --shadow-soft: 0 18px 40px -18px rgba(40, 35, 27, 0.18);
  --shadow-card: 0 10px 30px -14px rgba(40, 35, 27, 0.14);
  --container: 1160px;
  --section-pad: clamp(64px, 9vw, 120px);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
p  { margin: 0 0 1.1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 36px); }

::selection { background: var(--butter); color: var(--ink); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Botanical label (eyebrow) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
}

/* Hand-drawn flourish under headings */
.flourish { position: relative; display: inline-block; }
.flourish svg { position: absolute; left: 0; bottom: -0.18em; width: 100%; height: 0.32em; color: var(--terracotta); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  min-height: 48px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  touch-action: manipulation;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); transform: translateY(-2px); }
.btn-terracotta { background: var(--terracotta); color: var(--white); }
.btn-terracotta:hover { background: var(--terracotta-deep); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 36px);
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1.1;
  flex: none;
}
.brand .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.main-nav a {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover { color: var(--green); }
.main-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--terracotta); }
.nav-cta { margin-left: 6px; }
.nav-cta .btn { padding: 11px 22px; min-height: 44px; font-size: 0.92rem; }

/* Mobile drawer */
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after  { position: absolute; top: 8px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span::after  { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background: var(--cream);
    transform: translateX(100%);
    transition: transform 0.32s ease;
    z-index: 90;
  }
  body.nav-open .main-nav { transform: translateX(0); }
  .main-nav a { font-size: 1.5rem; font-family: var(--font-display); font-weight: 400; }
  .nav-cta { margin: 18px 0 0; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(70px, 10vw, 130px) 0 clamp(50px, 7vw, 90px);
  background:
    radial-gradient(1100px 420px at 85% -10%, var(--green-tint) 0%, transparent 65%),
    radial-gradient(800px 380px at 5% 110%, var(--butter) 0%, transparent 60%),
    var(--cream);
  text-align: center;
  overflow: hidden;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.page-hero .lede { max-width: 62ch; margin: 0 auto; font-size: 1.16rem; color: var(--muted); }
.hero-leaf {
  position: absolute;
  color: var(--green);
  opacity: 0.1;
  width: clamp(120px, 16vw, 220px);
  pointer-events: none;
}
.hero-leaf.left  { left: -40px; bottom: -30px; transform: rotate(18deg); }
.hero-leaf.right { right: -36px; top: -20px; transform: rotate(-160deg); }

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section-deep { background: var(--cream-deep); }
.section-green { background: var(--green); color: #F2EFE6; }
.section-green h2, .section-green h3 { color: var(--white); }
.section-green .eyebrow { color: var(--butter); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .lede { color: var(--muted); font-size: 1.12rem; }
.section-green .lede { color: rgba(242, 239, 230, 0.85); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.card h3 { margin-bottom: 10px; }
.card .card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.card p { color: var(--muted); margin-bottom: 0; }

/* Arched image frame — signature motif */
.arch-frame {
  border-radius: var(--radius-arch);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--white);
  background: var(--cream-deep);
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Menu board ---------- */
.menu-section { margin-bottom: clamp(44px, 6vw, 64px); }
.menu-section > h2 {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.menu-section > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.menu-note { color: var(--muted); font-size: 0.95rem; font-style: italic; margin-top: -6px; }
.menu-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 4px; }
.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 18px;
  align-items: baseline;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}
.menu-item:hover { background: var(--green-tint); }
.menu-item .name { font-weight: 700; font-size: 1.05rem; }
.menu-item .desc { grid-column: 1; color: var(--muted); font-size: 0.95rem; }
.menu-item .price {
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.menu-item .sizes { grid-column: 2; color: var(--muted); font-size: 0.78rem; text-align: right; white-space: nowrap; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.quote-card::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 4.4rem;
  line-height: 0.6;
  color: var(--terracotta);
  display: block;
  margin-bottom: 16px;
}
.quote-card blockquote { margin: 0 0 18px; font-size: 1.04rem; }
.quote-card cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--green);
}
.quote-card .quote-src { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 7px; }
.field label .req { color: var(--terracotta); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-tint);
}
.field .error-msg { display: none; color: #A33A22; font-size: 0.86rem; margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #A33A22; }
.field.invalid .error-msg { display: block; }
.form-success {
  display: none;
  background: var(--green-tint);
  border: 1.5px solid var(--green);
  color: var(--green-deep);
  border-radius: var(--radius);
  padding: 26px;
  font-weight: 700;
  text-align: center;
}
.form-success.show { display: block; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  padding: 22px 4px;
  cursor: pointer;
  min-height: 48px;
}
.faq-q .faq-icon {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--green); color: var(--white); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { color: var(--muted); padding: 0 4px 22px; max-width: 70ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(242, 239, 230, 0.82); }
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  padding: clamp(50px, 7vw, 80px) 0 40px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  text-decoration: none;
}
.footer-tag { font-size: 0.95rem; margin-top: 12px; max-width: 30ch; }
.site-footer h4 {
  color: var(--butter);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(242, 239, 230, 0.82); text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--white); }
.footer-hours li { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }
.footer-bottom {
  border-top: 1px solid rgba(242, 239, 230, 0.16);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.85rem;
}
.footer-bottom a { text-decoration: underline; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-stagger.visible > * { opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- Utilities ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 12px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
