/* ─── Nurstead Court — design system ───
   Direction C: sage palette (heritage) + Cormorant Garamond (premium typography rhythm)
*/

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

:root {
  /* Brand greens */
  --sage:      #65bc7b;   /* primary */
  --sage-deep: #4a9560;   /* hover / pressed */
  --sage-soft: rgba(101,188,123,0.12);
  --olive:     #54770f;   /* deep accent */
  --lime:      #a0ce4e;   /* bright accent — sparingly */

  /* Neutrals */
  --bg:        #ffffff;
  --bg-warm:   #faf8f3;   /* warm off-white for sections */
  --bg-soft:   #f3f1ec;
  --text:      #1c2520;
  --text-dim:  #5a6960;
  --text-mute: #8a958e;
  --border:    #e6ebe4;
  --border-deep: #cdd5cb;

  /* Layout */
  --max:       1240px;
  --gutter:    24px;
  --radius:    16px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(28,37,32,0.06);
  --shadow-lg: 0 12px 48px rgba(28,37,32,0.12);

  /* Typography */
  --serif:     'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--olive); text-decoration: none; }
a:hover { color: var(--sage-deep); }

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

.serif { font-family: var(--serif); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ─── Typography ─── */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); letter-spacing: -0.01em; font-weight: 400; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.005em; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 18px;
}
.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.6;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
}
.btn-primary { background: var(--sage-deep); color: white; }
.btn-primary:hover { background: var(--olive); color: white; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-deep); }
.btn-ghost:hover { border-color: var(--sage-deep); color: var(--sage-deep); }

/* ─── Top nav ─── */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border 0.3s, backdrop-filter 0.3s;
}
.topnav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.topnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topnav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.topnav .brand img { height: 44px; width: auto; }
.topnav .links { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center; }
.topnav .links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.topnav .links a:hover { color: var(--sage-deep); background: var(--sage-soft); }
.topnav .links a.cta {
  background: var(--sage-deep);
  color: white;
  border-radius: 999px;
  margin-left: 8px;
}
.topnav .links a.cta:hover { background: var(--olive); color: white; }
.topnav .nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.topnav .nav-toggle svg { width: 28px; height: 28px; }

/* When transparent (top of page over hero), make text white */
.topnav:not(.scrolled) .links a { color: white; }
.topnav:not(.scrolled) .links a:hover { background: rgba(255,255,255,0.1); color: white; }
.topnav:not(.scrolled) .links a.cta { background: rgba(255,255,255,0.92); color: var(--text); }
.topnav:not(.scrolled) .links a.cta:hover { background: white; color: var(--sage-deep); }
.topnav:not(.scrolled) .brand img { filter: brightness(0) invert(1); }

@media (max-width: 900px) {
  .topnav .links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: white; padding: 16px; border-top: 1px solid var(--border); align-items: stretch; }
  .topnav .links.open { display: flex; }
  .topnav .links a { color: var(--text) !important; background: transparent !important; padding: 12px 18px; }
  .topnav .links a.cta { background: var(--sage-deep) !important; color: white !important; text-align: center; margin: 8px 0 0; }
  .topnav .nav-toggle { display: block; }
  .topnav:not(.scrolled) .nav-toggle svg { stroke: white; }
  .topnav.scrolled .nav-toggle svg { stroke: var(--text); }
  .topnav .brand img { height: 38px; }
}

/* ─── Sections ─── */
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }
section.alt { background: var(--bg-warm); }
section.dark { background: #1c2520; color: white; }
section.dark h1, section.dark h2, section.dark h3 { color: white; }
section.dark .eyebrow { color: var(--lime); }
section.dark .lede { color: rgba(255,255,255,0.78); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head .lede { margin: 18px auto 0; }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero .bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,37,32,0.55) 0%, rgba(28,37,32,0.65) 100%), var(--hero-img, none) center/cover no-repeat;
  z-index: -1;
}
.hero h1 { color: white; margin-bottom: 24px; max-width: 14ch; }
.hero .lede { color: rgba(255,255,255,0.9); margin-bottom: 36px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-primary { background: white; color: var(--text); }
.hero .btn-primary:hover { background: var(--sage); color: white; }
.hero .btn-ghost { color: white; border-color: rgba(255,255,255,0.45); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: white; color: white; }

/* ─── Cards / grids ─── */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) { .cards-3 { grid-template-columns: 1fr 1fr; } .cards-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .cards-3, .cards-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-deep); }
.card .img { aspect-ratio: 4/3; background: var(--bg-soft) center/cover no-repeat; }
.card .body { padding: 22px 24px 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 0.95rem; }
.card a.more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.card a.more::after { content: " →"; transition: margin 0.2s; }
.card:hover a.more::after { margin-left: 4px; }

/* ─── Two-col split ─── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split.reverse > :first-child { order: 2; }
@media (max-width: 880px) { .split.reverse > :first-child { order: 0; } }
.split .img-block { aspect-ratio: 4/5; background: var(--bg-soft) center/cover no-repeat; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ─── Testimonial ─── */
.testimonial { text-align: center; max-width: 760px; margin: 0 auto; padding: 32px 0; }
.testimonial blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 20px;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ─── Photo grid (gallery teaser) ─── */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-grid .pg-tile { aspect-ratio: 1/1; background: var(--bg-soft) center/cover no-repeat; border-radius: var(--radius-sm); transition: transform 0.4s; }
.photo-grid .pg-tile:hover { transform: scale(1.02); }
@media (max-width: 720px) { .photo-grid { grid-template-columns: 1fr 1fr; } }

/* ─── Forms ─── */
.form { max-width: 620px; margin: 0 auto; background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form label { display: block; margin-bottom: 16px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.form input, .form select, .form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px;
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-warm);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  text-transform: none; font-weight: 400; letter-spacing: 0;
  transition: border-color 0.2s, background 0.2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--sage-deep);
  background: white;
}
.form textarea { resize: vertical; min-height: 110px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .form .row { grid-template-columns: 1fr; } }
.form button { width: 100%; }
.form-success { background: var(--sage-soft); border: 1px solid var(--sage); border-radius: var(--radius); padding: 28px; text-align: center; max-width: 620px; margin: 0 auto; }
.form-success h3 { color: var(--sage-deep); margin-bottom: 6px; }
.form-error { background: rgba(196,68,68,0.08); border: 1px solid rgba(196,68,68,0.3); color: #b03030; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px; }

/* ─── Footer ─── */
footer.site {
  background: #1c2520;
  color: rgba(255,255,255,0.78);
  padding: 64px 0 32px;
}
footer.site h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); margin-bottom: 18px; font-weight: 600; }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 880px) { footer.site .cols { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { footer.site .cols { grid-template-columns: 1fr; gap: 28px; } }
footer.site .brand-col img { height: 56px; margin-bottom: 18px; filter: brightness(0) invert(1); }
footer.site .brand-col p { font-size: 0.92rem; max-width: 320px; line-height: 1.65; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 10px; }
footer.site a { color: rgba(255,255,255,0.78); font-size: 0.92rem; text-decoration: none; transition: color 0.2s; }
footer.site a:hover { color: white; }
footer.site .legal { padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ─── Utility ─── */
.muted { color: var(--text-mute); }
.center { text-align: center; }
.spacer-sm { height: 32px; }
.spacer { height: 56px; }

/* ─── Menu detail pages ─── */
.menu-page section { padding: 56px 0; }
.menu-page section.first { padding-top: 0; }
.menu-page .price-band {
  text-align: center;
  background: var(--sage-soft);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 48px;
}
.menu-page .price-band .price { font-family: var(--serif); font-size: 2.4rem; color: var(--sage-deep); line-height: 1; }
.menu-page .price-band .sub { color: var(--text-dim); font-size: 0.95rem; margin-top: 8px; }
.menu-block { max-width: 800px; margin: 0 auto 48px; }
.menu-block h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--sage-deep);
  text-align: center;
  margin-bottom: 6px;
  padding-top: 12px;
}
.menu-block .desc { text-align: center; color: var(--text-dim); font-size: 0.95rem; margin-bottom: 24px; }
.menu-block ul { list-style: none; padding: 0; }
.menu-block li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.menu-block li:last-child { border-bottom: none; }
.menu-block li strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--text); margin-bottom: 4px; }
.menu-block li .item-desc { font-size: 0.92rem; color: var(--text-dim); line-height: 1.5; }
.menu-block li .item-price { display: inline-block; margin-left: 8px; color: var(--olive); font-size: 0.85rem; font-weight: 600; }

.menu-cta-row {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
.menu-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 16px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim);
}
.menu-back:hover { color: var(--sage-deep); }

.dietary-note {
  max-width: 760px; margin: 32px auto 0;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 28px;
  font-size: 0.93rem;
  color: var(--text-dim);
  text-align: center;
}
.dietary-note strong { color: var(--text); }
