/* ==========================================================================
   Thai Lotus Restaurant — Stylesheet
   Aesthetic: editorial-organic; deep botanical green, warm cream, antique gold
   ========================================================================== */

:root {
  --green-900: #142822;
  --green-800: #1f3a2e;
  --green-700: #2a4a3a;
  --green-600: #3a6149;
  --green-500: #557a64;
  --green-200: #c5d4c8;
  --green-100: #e4ecdf;
  --green-50:  #f1f5ec;

  --cream:     #faf6ed;
  --cream-2:   #f4eedd;
  --paper:     #fbf8f0;

  --gold-700:  #8a6a2c;
  --gold-600:  #a8843a;
  --gold-500:  #c4a05a;
  --gold-300:  #e4cf94;

  --ink:       #1a1f1c;
  --ink-soft:  #4a5249;
  --ink-mute:  #7a8278;

  --shadow-sm: 0 1px 2px rgba(20,40,34,.06);
  --shadow-md: 0 8px 24px -8px rgba(20,40,34,.18);
  --shadow-lg: 0 30px 60px -20px rgba(20,40,34,.25);

  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body:    'Outfit', -apple-system, system-ui, sans-serif;
  --hand:    'Caveat', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }

/* ----- TOPBAR ----- */
.topbar {
  background: var(--green-900);
  color: var(--gold-300);
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 9px 16px;
  font-weight: 400;
}
.topbar-text { display: inline-block; }

/* ----- NAV ----- */
.nav {
  background: var(--cream);
  border-bottom: 1px solid rgba(20,40,34,.08);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--green-800); }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .01em;
  font-style: italic;
}
.brand-sub {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}

.nav-links { display: flex; gap: 36px; justify-content: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--green-800); }
.nav-links a.active { color: var(--green-800); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--gold-600);
}

.nav-call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-800);
  color: var(--cream);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: background .2s ease, transform .2s ease;
}
.nav-call:hover { background: var(--green-900); transform: translateY(-1px); }

/* ----- HERO ----- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  overflow: hidden;
  padding: 120px 32px 140px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-leaves {
  position: absolute;
  width: 540px; height: 540px;
  background: radial-gradient(ellipse at center,
    rgba(58,97,73,.15) 0%,
    rgba(58,97,73,.08) 30%,
    transparent 70%);
  filter: blur(40px);
}
.leaves-l { top: -120px; left: -180px; }
.leaves-r { bottom: -160px; right: -200px;
  background: radial-gradient(ellipse at center,
    rgba(196,160,90,.18) 0%,
    rgba(196,160,90,.08) 30%,
    transparent 70%); }

/* Decorative botanical SVG corners */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%233a6149' stroke-width='1.2' opacity='0.35'><path d='M30 170 Q 50 120, 90 100 T 170 30'/><path d='M40 175 Q 70 140, 100 130 T 175 50'/><ellipse cx='95' cy='105' rx='14' ry='4' transform='rotate(-30 95 105)'/><ellipse cx='130' cy='80' rx='12' ry='3.5' transform='rotate(-30 130 80)'/><ellipse cx='160' cy='55' rx='10' ry='3' transform='rotate(-30 160 55)'/><ellipse cx='65' cy='135' rx='12' ry='3.5' transform='rotate(-30 65 135)'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: .9;
  pointer-events: none;
}
.hero::before { top: 40px; left: 0; }
.hero::after { bottom: 40px; right: 0; transform: scaleX(-1); }

.hero-inner {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin: 0 0 32px;
  font-weight: 500;
}
.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -.015em;
  color: var(--green-900);
  margin: 0 0 36px;
}
.hero-line { display: block; }
.hero-line em {
  font-style: italic;
  color: var(--green-700);
  position: relative;
  font-weight: 500;
}
.hero-line em::after {
  content: '';
  position: absolute;
  left: 5%; right: 5%; bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: .7;
}
.hero-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-800);
  color: var(--cream);
  border-color: var(--green-800);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--green-900); border-color: var(--green-900); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.btn-ghost:hover { background: var(--green-800); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--green-800); border-color: var(--cream); }
.btn-light:hover { background: var(--gold-300); border-color: var(--gold-300); }

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 20px 40px;
  background: var(--paper);
  border: 1px solid rgba(20,40,34,.08);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.meta-item { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.meta-label {
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.meta-value { font-size: 15px; font-weight: 500; color: var(--green-900); }
.meta-value.closed { color: #9c4a3c; }
.meta-divider { width: 1px; height: 32px; background: rgba(20,40,34,.14); }

/* ----- SIGNATURES ----- */
.signatures {
  background: var(--paper);
  padding: 110px 32px;
  border-top: 1px solid rgba(20,40,34,.06);
  border-bottom: 1px solid rgba(20,40,34,.06);
}
.signatures-inner { max-width: 1280px; margin: 0 auto; }

.section-eyebrow {
  font-size: 11.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-700);
  font-weight: 500;
  margin: 0 0 28px;
  text-align: center;
  position: relative;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold-500);
  vertical-align: middle;
  margin: 0 18px;
  opacity: .5;
}
.section-eyebrow.light { color: var(--gold-300); }
.section-eyebrow.light::before, .section-eyebrow.light::after { background: var(--gold-300); }

.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--green-900);
  margin: 0 0 56px;
  text-align: center;
}
.section-title.light { color: var(--cream); }

.sig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.sig-card {
  background: var(--cream);
  border: 1px solid rgba(20,40,34,.08);
  padding: 36px 28px 32px;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.sig-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sig-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  color: var(--gold-600);
  margin-bottom: 16px;
  letter-spacing: .04em;
}
.sig-card h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  color: var(--green-900);
  margin: 0 0 12px;
  line-height: 1.15;
}
.sig-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ----- ABOUT ----- */
.about { padding: 130px 32px; background: var(--cream); }
.about-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text .section-eyebrow,
.about-text .section-title { text-align: left; }
.about-text .section-eyebrow { margin-bottom: 24px; }
.about-text .section-eyebrow::before { display: none; }
.about-text .section-eyebrow::after { content: ''; display: inline-block; width: 32px; height: 1px; background: var(--gold-500); margin-left: 18px; vertical-align: middle; opacity: .5; }
.about-text .section-title { margin-bottom: 36px; }
.about-text p {
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.about-text .signature {
  font-family: var(--hand);
  font-size: 26px;
  color: var(--green-700);
  margin-top: 32px;
}

.about-card {
  background: var(--green-800);
  color: var(--cream);
  padding: 48px 40px;
  position: relative;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
}
.card-stamp {
  position: absolute;
  top: -16px; right: 24px;
  background: var(--gold-500);
  color: var(--green-900);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 2px;
}
.about-card h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 24px;
  color: var(--gold-300);
}
.about-card ul { list-style: none; padding: 0; margin: 0; }
.about-card li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(228, 207, 148, .15);
  font-size: 15px;
  line-height: 1.5;
}
.about-card li:last-child { border-bottom: none; }
.about-card li span {
  color: var(--gold-500);
  font-weight: 700;
  flex-shrink: 0;
}

/* ----- VISIT ----- */
.visit {
  background: var(--green-900);
  color: var(--cream);
  padding: 130px 32px;
  position: relative;
  overflow: hidden;
}
.visit::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><g fill='none' stroke='%23c4a05a' stroke-width='0.5' opacity='0.18'><path d='M200 50 Q 240 130, 200 220 Q 160 130, 200 50'/><path d='M200 90 Q 220 150, 200 200 Q 180 150, 200 90'/><circle cx='200' cy='225' r='4'/></g></svg>");
  background-size: 280px;
  background-position: center 80%;
  background-repeat: no-repeat;
  opacity: .6;
}
.visit-inner { max-width: 1180px; margin: 0 auto; position: relative; }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.visit-block .section-eyebrow,
.visit-block .section-title { text-align: left; }
.visit-block .section-eyebrow { margin-bottom: 24px; }
.visit-block .section-eyebrow::before { display: none; }
.visit-block .section-eyebrow::after { content: ''; display: inline-block; width: 32px; height: 1px; background: var(--gold-300); margin-left: 18px; vertical-align: middle; opacity: .5; }
.visit-block .section-title { margin-bottom: 36px; }

.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(228, 207, 148, .15);
  font-size: 16px;
}
.hours-list li:last-child { border-bottom: none; }
.hours-day { color: var(--cream); font-weight: 400; letter-spacing: .02em; }
.hours-time { color: var(--gold-300); font-family: var(--display); font-style: italic; font-size: 18px; }
.hours-list .closed .hours-time { color: var(--ink-mute); opacity: .7; }

.visit-addr {
  font-family: var(--display);
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
  color: var(--gold-300);
  margin: 0 0 24px;
  line-height: 1.4;
}
.visit-contact { margin: 0 0 36px; font-size: 16px; line-height: 1.8; }
.visit-contact a { color: var(--cream); border-bottom: 1px solid rgba(228, 207, 148, .3); transition: border-color .2s; }
.visit-contact a:hover { border-color: var(--gold-300); }

/* ----- FOOTER ----- */
.footer { background: var(--green-900); color: var(--green-200); padding: 60px 32px 0; border-top: 1px solid rgba(228,207,148,.1); }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 50px;
}
.footer-brand { color: var(--gold-300); }
.footer-brand .brand-mark { width: 44px; height: 44px; margin-bottom: 12px; }
.footer-name { font-family: var(--display); font-style: italic; font-size: 24px; font-weight: 500; color: var(--cream); margin: 0 0 6px; }
.footer-tag { font-size: 13px; letter-spacing: .04em; color: var(--ink-mute); margin: 0; }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-cols h4 { font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-300); margin: 0 0 14px; font-weight: 500; }
.footer-cols p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--green-200); }
.footer-cols a { color: var(--green-200); transition: color .2s; }
.footer-cols a:hover { color: var(--gold-300); }

.footer-bottom {
  border-top: 1px solid rgba(228, 207, 148, .12);
  padding: 24px 0;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--ink-mute);
}

/* ===== GALLERY ===== */
.gallery {
  background: var(--cream);
  padding: 130px 32px;
  position: relative;
  overflow: hidden;
}
.gallery-inner { max-width: 1280px; margin: 0 auto; }
.gallery .section-title { margin-bottom: 18px; }
.gallery-lede {
  text-align: center;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 60px;
}

/* Featured tile (Chicken Basil special) */
.gal-feature {
  position: relative;
  display: block;
  margin: 0 0 16px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  cursor: zoom-in;
  background: var(--green-900);
}
.gal-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.gal-feature:hover img { transform: scale(1.04); }
.gal-feature-caption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 40px 48px;
  color: var(--cream);
  background: linear-gradient(to top, rgba(20,40,34,.85) 0%, rgba(20,40,34,.5) 60%, transparent 100%);
  width: 100%;
}
.gal-feature-caption h3 {
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 500;
  font-style: italic;
  margin: 8px 0 0;
  line-height: 1;
  letter-spacing: -.01em;
}
.gal-tag {
  display: inline-block;
  background: var(--gold-500);
  color: var(--green-900);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 2px;
}

/* Editorial masonry grid using CSS Grid */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 16px;
}
.gal-item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--green-50);
  display: block;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .3s ease;
}
.gal-item:hover img { transform: scale(1.06); filter: brightness(1.05); }
.gal-item.tall { grid-row: span 2; }
.gal-item.wide { grid-column: span 2; }
.gal-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20,40,34,0);
  transition: background .3s ease;
  pointer-events: none;
}
.gal-item:hover::after { background: rgba(20,40,34,.06); }

/* ===== LIGHTBOX ===== */
.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,20,16,.94);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity .25s ease;
  backdrop-filter: blur(8px);
}
.lightbox.open { opacity: 1; }
.lb-figure {
  margin: 0;
  max-width: min(1200px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lb-figure img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
}
.lb-figure figcaption {
  color: var(--gold-300);
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  text-align: center;
  letter-spacing: .02em;
  max-width: 80%;
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(20,40,34,.6);
  color: var(--cream);
  border: 1px solid rgba(228,207,148,.3);
  width: 52px;
  height: 52px;
  font-size: 28px;
  line-height: 1;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s, border-color .2s;
  font-family: var(--display);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: var(--green-900);
  border-color: var(--gold-500);
  transform: scale(1.05);
}
.lb-close { top: 24px; right: 24px; font-size: 32px; padding-bottom: 4px; }
.lb-prev  { left: 24px;  top: 50%; transform: translateY(-50%); padding-bottom: 4px; }
.lb-next  { right: 24px; top: 50%; transform: translateY(-50%); padding-bottom: 4px; }
.lb-prev:hover { transform: translateY(-50%) scale(1.05); }
.lb-next:hover { transform: translateY(-50%) scale(1.05); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .nav-inner { padding: 14px 20px; gap: 16px; grid-template-columns: auto auto; }
  .nav-links { display: none; }
  .brand-name { font-size: 20px; }
  .brand-sub { font-size: 9.5px; }

  .hero { padding: 70px 20px 90px; }
  .hero::before, .hero::after { width: 140px; height: 140px; opacity: .6; }

  .hero-meta { flex-direction: column; gap: 16px; padding: 18px 24px; }
  .meta-divider { width: 32px; height: 1px; }
  .meta-item { align-items: center; text-align: center; }

  .signatures { padding: 80px 20px; }
  .sig-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sig-card { padding: 28px 22px; }

  .about { padding: 80px 20px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }

  .visit { padding: 80px 20px; }
  .visit-grid { grid-template-columns: 1fr; gap: 56px; }

  .footer { padding: 50px 20px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 36px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }

  .topbar-text { font-size: 11px; letter-spacing: .08em; }

  /* Gallery mobile */
  .gallery { padding: 70px 20px; }
  .gallery-lede { font-size: 15.5px; margin-bottom: 40px; }
  .gal-feature { aspect-ratio: 4 / 3; margin-bottom: 12px; }
  .gal-feature-caption { padding: 24px 22px; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 8px; }
  .gal-item.wide { grid-column: span 2; }
  .gal-item.tall { grid-row: span 2; }

  /* Lightbox mobile */
  .lightbox { padding: 16px; }
  .lb-close { top: 12px; right: 12px; width: 44px; height: 44px; font-size: 26px; }
  .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 24px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-figure figcaption { font-size: 14px; }
}

@media (max-width: 520px) {
  .sig-grid { grid-template-columns: 1fr; }
  .nav-call span { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
}
