/* ==========================================================================
   JARDIN — a glasshouse brasserie
   Botanical greenhouse elegance: sage, ivory, forest ink, leaf green,
   a breath of apricot. Art nouveau double lines and arched frames.
   ========================================================================== */

:root {
  --sage: #e8ece2;
  --sage-deep: #dde4d4;
  --ivory: #faf8f2;
  --ink: #27352a;
  --leaf: #4a6741;
  --leaf-soft: rgba(74, 103, 65, 0.45);
  --apricot: #c97f5d;
  --apricot-soft: #d99a73;
  --line: rgba(39, 53, 42, 0.16);

  --font-display: "Gilda Display", "Times New Roman", serif;
  --font-accent: "Cormorant Garamond", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --max: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --arch: 999px 999px 14px 14px;
}

/* ---------- Reset & base ---------- */

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

html, body { overflow-x: clip; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--ivory);
}

img { display: block; max-width: 100%; }

::selection { background: var(--sage-deep); color: var(--ink); }

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

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

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.005em;
}

h1 em, h2 em, .visit-cta em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--leaf);
  letter-spacing: 0.01em;
}

h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: 1.35rem; }

.kicker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 1.1rem;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 38em;
  color: rgba(39, 53, 42, 0.82);
}

.text-link {
  color: var(--leaf);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.25s ease;
}
.text-link:hover { color: var(--apricot); }

/* ---------- Glazing-bar texture (greenhouse motif) ---------- */

.glazing {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(39, 53, 42, 0.05) 0 1px,
    transparent 1px 110px
  );
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85em 2.1em;
  border-radius: 999px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn-pill {
  color: var(--leaf);
  border: 1.5px solid var(--leaf);
  background: transparent;
}
.btn-pill:hover { background: var(--leaf); color: var(--ivory); }

.btn-solid {
  color: var(--ivory);
  background: var(--leaf);
  border: 1.5px solid var(--leaf);
}
.btn-solid:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-2px); }

.btn-quiet {
  color: var(--ink);
  border: 1.5px solid var(--line);
  background: transparent;
}
.btn-quiet:hover { border-color: var(--leaf); color: var(--leaf); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 242, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.leafmark { width: 20px; height: 20px; color: var(--leaf); }

.nav-links { display: flex; gap: clamp(1rem, 2.6vw, 2.4rem); }

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--leaf);
  transition: right 0.3s ease;
}
.nav-links a:hover::after { right: 0; }
.nav-links a:hover { color: var(--leaf); }

/* ---------- Arched frames (art nouveau double line) ---------- */

.arch-frame {
  position: relative;
  border: 1.5px solid var(--leaf);
  border-radius: var(--arch);
  padding: 10px;
  background: transparent;
}

.arch-frame::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--leaf-soft);
  border-radius: var(--arch);
  pointer-events: none;
}

.arch-inner {
  overflow: hidden;
  border-radius: var(--arch);
  height: 100%;
}

.arch-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arch-caption {
  position: absolute;
  bottom: -2.2rem;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(39, 53, 42, 0.6);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 6rem) var(--pad) clamp(4.5rem, 9vh, 7rem);
  text-align: center;
}

.hero-kicker { margin-bottom: 1.6rem; }

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  max-width: 14em;
  margin: 0 auto 1.4rem;
}

.hero-lede { margin: 0 auto 2.2rem; }

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: clamp(3rem, 6vh, 4.5rem);
}

.hero-arch {
  width: min(680px, 100%);
  margin: 0 auto;
  aspect-ratio: 4 / 4.4;
  max-height: 72vh;
}

.hero-fern {
  position: absolute;
  width: clamp(70px, 9vw, 124px);
  color: var(--leaf);
  opacity: 0.85;
}
.hero-fern svg { width: 100%; height: auto; }
.hero-fern-left { left: clamp(0.5rem, 4vw, 4rem); top: 34%; }
.hero-fern-right { right: clamp(0.5rem, 4vw, 4rem); top: 34%; transform: scaleX(-1); }

/* ---------- Dividers ---------- */

.divider {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3.5rem) var(--pad);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.divider .rule { flex: 1; height: 1px; background: var(--line); }

.divider-sprig {
  width: 96px;
  flex: none;
  color: var(--leaf);
}

/* ---------- Story / The Glasshouse ---------- */

.story {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) var(--pad);
}

.story-ivy {
  position: absolute;
  right: clamp(0.25rem, 2vw, 2rem);
  top: 8%;
  width: clamp(44px, 5vw, 72px);
  color: var(--leaf);
  opacity: 0.8;
}
.story-ivy svg { width: 100%; height: auto; }

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.story-images {
  position: relative;
  min-height: 560px;
}

.story-arch-a {
  position: absolute;
  width: 68%;
  aspect-ratio: 3 / 4.1;
  top: 0;
  left: 0;
  background: var(--ivory);
  z-index: 1;
}

.story-arch-b {
  position: absolute;
  width: 52%;
  aspect-ratio: 3 / 3.7;
  bottom: 0;
  right: 0;
  background: var(--ivory);
  z-index: 2;
  box-shadow: 0 30px 60px -30px rgba(39, 53, 42, 0.35);
}

.story-copy h2 { margin-bottom: 1.5rem; max-width: 11em; }
.story-copy p { margin-bottom: 1.2rem; max-width: 34em; }

.story-sign {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: var(--leaf);
  margin-top: 1.8rem;
}

/* ---------- Menu / From the garden ---------- */

.menu {
  background-color: var(--sage);
  padding: clamp(4rem, 9vh, 7rem) 0 clamp(3.5rem, 8vh, 6rem);
}

.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.section-head .lede { margin: 1.2rem auto 0; }
.section-head h2 { max-width: 18em; margin-inline: auto; }

.menu-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

.frame-double {
  position: relative;
  border: 1.5px solid var(--leaf);
  border-radius: 4px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--ivory);
}

.frame-double::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--leaf-soft);
  border-radius: 2px;
  pointer-events: none;
}

.menu-card:nth-child(2) { margin-top: 2.5rem; }
.menu-card:nth-child(3) { margin-top: 5rem; }

.menu-cat {
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  text-align: center;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.menu-cat::after {
  content: "";
  display: block;
  width: 42px;
  height: 1.5px;
  background: var(--apricot);
  margin: 0.85rem auto 1.4rem;
}

.dish-list { list-style: none; }

.dish-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.7rem 0;
}

.dish-list li + li { border-top: 1px solid rgba(39, 53, 42, 0.08); }

.dish-name { font-weight: 400; }

.dish-name small {
  display: block;
  font-size: 0.84rem;
  font-weight: 300;
  color: rgba(39, 53, 42, 0.62);
  letter-spacing: 0.01em;
}

.dots {
  flex: 1;
  border-bottom: 1px dotted rgba(39, 53, 42, 0.3);
  transform: translateY(-4px);
  min-width: 1.25rem;
}

.dish-price {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--leaf);
  white-space: nowrap;
}

.menu-note {
  text-align: center;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(39, 53, 42, 0.7);
  margin-top: clamp(2.5rem, 5vh, 3.5rem);
  padding: 0 var(--pad);
}

/* ---------- Seasons ---------- */

.seasons {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) var(--pad);
}

.seasons-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.season-card h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.45rem;
}

.season-card h3::after {
  content: "";
  display: block;
  width: 30px;
  height: 1.5px;
  background: var(--apricot);
  margin-top: 0.6rem;
}

.season-card p {
  font-size: 0.95rem;
  color: rgba(39, 53, 42, 0.78);
}

.season-img {
  overflow: hidden;
  border-radius: var(--arch);
  border: 1.5px solid var(--leaf-soft);
  aspect-ratio: 3 / 3.6;
}

.season-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

/* ---------- Greenhouse bar ---------- */

.bar {
  background-color: var(--sage-deep);
  padding: clamp(4rem, 9vh, 7rem) 0;
}

.bar-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.bar-copy h2 { margin-bottom: 1.3rem; max-width: 10em; }

.citrus-branch {
  width: min(340px, 90%);
  margin-top: 2.5rem;
  color: var(--leaf);
}

.bar-list { background: var(--ivory); }

.bar-list .dish-list li { padding: 0.85rem 0; }

/* ---------- Gallery ---------- */

.gallery {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 6rem) var(--pad);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 90px;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.gallery-grid .arch-frame { background: var(--ivory); }

.g-1 { grid-column: 1 / 3;  grid-row: 1 / 5; }
.g-2 { grid-column: 3 / 5;  grid-row: 2 / 7; }
.g-3 { grid-column: 5 / 7;  grid-row: 1 / 4; }
.g-4 { grid-column: 1 / 3;  grid-row: 5 / 9; }
.g-5 { grid-column: 5 / 7;  grid-row: 4 / 8; }

/* ---------- Visit ---------- */

.visit {
  position: relative;
  background-color: var(--sage);
  text-align: center;
  padding: clamp(4rem, 10vh, 7.5rem) var(--pad);
}

.visit-cta {
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
  max-width: 13em;
  margin: 0 auto clamp(2.5rem, 6vh, 4rem);
}

.visit-sprig {
  position: absolute;
  width: clamp(70px, 8vw, 110px);
  color: var(--leaf);
  opacity: 0.8;
}
.visit-sprig svg { width: 100%; height: auto; }
.visit-sprig-left { left: clamp(1rem, 5vw, 5rem); top: 3rem; }
.visit-sprig-right { right: clamp(1rem, 5vw, 5rem); top: 3rem; transform: scaleX(-1); }

.visit-cols {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.visit-col h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--leaf);
}

.visit-col p { margin-bottom: 0.9rem; }

.visit-fine {
  font-size: 0.88rem;
  color: rgba(39, 53, 42, 0.6);
  font-style: italic;
  font-family: var(--font-accent);
  font-size: 1rem;
}

.visit-col .btn { margin-top: 0.4rem; }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  padding: clamp(3.5rem, 8vh, 5.5rem) var(--pad) 2.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.footer-brand .leafmark { color: var(--sage-deep); }

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.footer-sprig {
  display: block;
  width: 90px;
  margin: 0 auto 1.4rem;
  color: rgba(232, 236, 226, 0.55);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.footer-fine {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(250, 248, 242, 0.85);
  margin-bottom: 1.6rem;
}

.footer-legal {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(250, 248, 242, 0.5);
  max-width: 46em;
  margin: 0 auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-images { min-height: 0; height: clamp(380px, 60vw, 560px); }
  .story-ivy { display: none; }

  .menu-grid { grid-template-columns: 1fr; max-width: 580px; }
  .menu-card:nth-child(2), .menu-card:nth-child(3) { margin-top: 0; }

  .seasons-row { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }

  .bar-grid { grid-template-columns: 1fr; }
  .citrus-branch { margin-bottom: 1rem; }

  .gallery-grid { grid-auto-rows: 70px; }

  .visit-cols { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }

  .hero-fern-left { top: 58%; }
  .hero-fern-right { top: 58%; }
  .hero-fern { width: 56px; opacity: 0.6; }

  .hero-arch { aspect-ratio: 3 / 3.8; }

  .seasons-row { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }
  .g-1, .g-2, .g-3, .g-4, .g-5 { grid-column: auto; grid-row: auto; aspect-ratio: 3 / 3.6; }
  .g-2 { grid-column: 1 / -1; aspect-ratio: 4 / 3.2; }

  .visit-sprig { display: none; }
}
