/* ==========================================================================
   Thao Sushi – Logo-Matched Theme
   Palette: warm linen, copper/walnut brown, deep espresso, off-white
   Design language: rounded, flowing arcs echoing the logo line art
   ========================================================================== */

/* ── Local fonts ───────────────────────────────────────────────── */
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2'),
       url('../fonts/cormorant-garamond-v21-latin-regular.ttf')  format('truetype');
}
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2'),
       url('../fonts/cormorant-garamond-v21-latin-600.ttf')  format('truetype');
}
@font-face {
  font-display: swap;
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/lato-v25-latin-regular.woff2') format('woff2'),
       url('../fonts/lato-v25-latin-regular.ttf')   format('truetype');
}
@font-face {
  font-display: swap;
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/lato-v25-latin-700.woff2') format('woff2'),
       url('../fonts/lato-v25-latin-700.ttf')   format('truetype');
}

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  /* Core palette – lifted straight from the logo */
  --copper:        #8C5E3C;
  --copper-dark:   #6B421F;
  --copper-light:  #B07D52;
  --copper-pale:   #D4A97A;

  --espresso:      #2C1A0E;   /* deepest brown, footer/dark sections */
  --walnut:        #4A2E1A;   /* secondary dark */

  --linen:         #F5EFE6;   /* main page background */
  --parchment:     #FFFDF9;   /* card / section alt */
  --sand:          #EDE4D8;   /* subtle alt row */

  --ink:           #1E120A;   /* headings */
  --text:          #3A2415;   /* body text */
  --text-muted:    #7A6558;   /* secondary text */
  --border:        #D8C9B8;   /* dividers, card borders */
  --white:         #FFFDF9;

  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-sans:     'Lato', 'Segoe UI', system-ui, sans-serif;

  /* Generous rounding – echoes the logo's flowing curves */
  --radius:        16px;
  --radius-pill:   999px;
  --ease:          0.28s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-xs:     0 1px 4px  rgba(44,26,14,.08);
  --shadow-sm:     0 3px 10px rgba(44,26,14,.10);
  --shadow-md:     0 8px 24px rgba(44,26,14,.14);
  --shadow-lg:     0 16px 48px rgba(44,26,14,.18);

  --max-w:         1200px;
  --header-h:      76px;
}

/* ── GSAP init visibility – avoids FOUC before animations run ──── */
.hero-eyebrow, .hero-title, .hero-sub, .hero-actions .btn,
.top-banner, .site-header { visibility: hidden; }

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--linen);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: var(--copper); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--copper-dark); }
address { font-style: normal; }

.container {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ── Typography ─────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

/* ── Section headings ───────────────────────────────────────────── */
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .5rem; }
.section-sub   { color: var(--text-muted); margin-bottom: 1.4rem; }

/* Segmented-dash divider – echoes the logo's grouped arc strokes */
.section-divider {
  display: block;
  border: none;
  width: 32px;
  height: 2px;
  margin: 0 0 2rem 2rem;
  background: var(--copper);
  position: relative;
  overflow: visible;
  opacity: .85;
}
.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  height: 2px;
  width: 18px;
  background: var(--copper);
  opacity: .5;
}
.section-divider::before {
  right: calc(100% + 7px);
}
.section-divider::after {
  left: calc(100% + 7px);
}

.about-text .section-divider {
  margin: 0 auto 2rem auto;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: .93rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
  text-decoration: none;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,253,249,.75);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,253,249,.12);
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary {
  background: transparent;
  color: var(--copper);
  border: 2px solid var(--copper);
}
.btn-secondary:hover {
  background: var(--copper);
  color: var(--white);
}
.btn-large { padding: .9rem 2.2rem; font-size: 1rem; }
.ext-icon { font-size: .8em; opacity: .85; }

/* Button pairs */
.about-actions,
.location-actions,
.footer-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

.about-actions {
  justify-content: center;
}

/* ── Top banner ────────────────────────────────────────────────── */
.top-banner {
  background: var(--copper);
  color: #fff;
  text-align: center;
  padding: .55rem 1rem;
  font-family: var(--font-sans);
  font-size: .85rem;
  letter-spacing: .02em;
  line-height: 1.4;
}
.top-banner p { margin: 0; }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 16px rgba(44,26,14,.07);
  width: 100%;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-h);
}
.header-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition:
    background var(--ease),
    border-radius var(--ease),
    padding var(--ease),
    box-shadow var(--ease);
}
.logo-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.logo-img { height: 50px; width: auto; border-radius: 100%; }
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .04em;
}

/* ── Nav ────────────────────────────────────────────────────────── */
.main-nav { display: flex; align-items: center; }
.main-nav ul,
#nav-menu {
  display: flex;
  list-style: none;
  gap: .25rem;
}
#nav-menu li a {
  display: block;
  padding: .5rem 1rem;
  padding-bottom: calc(.5rem - 2px);
  color: var(--text);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
#nav-menu li a:hover,
#nav-menu li a.active {
  color: var(--copper);
  border-bottom-color: var(--copper);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--copper);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

/* Close button – only shown inside the fullscreen mobile overlay */
.nav-close-item { display: none; }
.nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  border: none;
}
.nav-close:hover { color: var(--copper-pale); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Home page – transparent overlay nav ─────────────────────────── */
.is-home .site-header {
  position: fixed;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}
.is-home .logo-text { color: var(--white); }
.is-home #nav-menu li a {
  color: rgba(255,253,249,.9);
  border-bottom-color: transparent;
}
.is-home #nav-menu li a:hover,
.is-home #nav-menu li a.active {
  color: var(--white);
  border-bottom-color: rgba(255,253,249,.55);
}
.is-home .nav-toggle span { background: var(--white); }

/* Scrolled: pill appears, fitting only logo–nav content */
.is-home .site-header.scrolled .header-pill {
  margin: 0 auto;
  justify-content: space-between;
  gap: 2rem;
  background: rgba(44,26,14,.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-pill);
  padding: .35rem 1.4rem .35rem .6rem;
  box-shadow: var(--shadow-md);
}
.is-home .site-header.scrolled .logo-text { color: var(--white); }
.is-home .site-header.scrolled #nav-menu li a { color: var(--copper-pale); }
.is-home .site-header.scrolled #nav-menu li a:hover,
.is-home .site-header.scrolled #nav-menu li a.active {
  color: var(--white);
  border-bottom-color: var(--copper-pale);
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Slideshow layers */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(155deg, rgba(44,26,14,.78) 0%, rgba(107,66,31,.50) 55%, rgba(44,26,14,.88) 100%);
  pointer-events: none;
}

/* Decorative arc rings in hero corner – inspired by logo line art */
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  z-index: 2;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1.5px solid rgba(212,169,122,.20);
  box-shadow:
    0 0 0 28px rgba(212,169,122,.08),
    0 0 0 56px rgba(212,169,122,.05),
    0 0 0 84px rgba(212,169,122,.03);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 640px;
  padding-block: 5rem;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--copper-pale);
  margin-bottom: 1.1rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 32px rgba(0,0,0,.45);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,253,249,.82);
  margin-bottom: 2.2rem;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Dishes ──────────────────────────────────────────────────────── */
.dishes { padding: 5.5rem 0; background: var(--parchment); }

/* Decorative arc above section */
.dishes::before {
  content: '';
  display: block;
  position: relative;
}

.dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.2rem;
}
.dish-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.dish-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--copper-pale);
}
.dish-icon { font-size: 2.5rem; margin-bottom: .8rem; }
.dish-card h3 {
  font-size: 1.05rem;
  color: var(--copper);
  margin-bottom: .5rem;
}
.dish-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.55; }
.dish-card--cta { display: flex; align-items: center; justify-content: center; }

/* ── About ───────────────────────────────────────────────────────── */
.about { padding: 5.5rem 0; background: var(--espresso); }
.about-inner {
  align-items: center;
  text-align: center;
}
.about-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: calc(var(--radius) * 2.5);
  box-shadow: var(--shadow-lg);
}
.about-text .section-title {
  color: white;
}
.about-text p {
  margin-bottom: 1rem;
  color: rgba(245,239,230,.82);
  line-height: 1.8;
}

/* ── Location ────────────────────────────────────────────────────── */
.location {
  padding: 5.5rem 0;
  background: linear-gradient(135deg, var(--espresso) 0%, var(--walnut) 100%);
  color: var(--linen);
  /* Arc decoration top-right corner */
  position: relative;
  overflow: hidden;
}
.location::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1.5px solid rgba(212,169,122,.15);
  box-shadow:
    0 0 0 32px rgba(212,169,122,.07),
    0 0 0 64px rgba(212,169,122,.04);
  pointer-events: none;
}
.location .section-title,
.location h4 { color: var(--parchment); }
.location .section-divider { background: var(--copper-pale); }
.location .section-divider::before,
.location .section-divider::after { background: var(--copper-pale); }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}
.location-detail { margin-bottom: 1.6rem; }
.location-detail h4 {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--copper-pale);
  margin-bottom: .5rem;
}
.location-detail address,
.location-detail p { color: rgba(245,239,230,.82); line-height: 1.75; }
.location-detail a { color: var(--copper-pale); }
.location-detail a:hover { color: var(--white); }
.location-map iframe {
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: var(--shadow-lg);
}

/* ── Opening hours ───────────────────────────────────────────────── */
.opening-hours p {
  font-size: .9rem;
  line-height: 1.9;
  color: rgba(245,239,230,.82);
}
.site-footer .opening-hours p { color: rgba(245,239,230,.7); }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--espresso);
  color: rgba(245,239,230,.75);
  padding: 3.5rem 0 0;
  position: relative;
  overflow: hidden;
}
/* Subtle arc echo bottom-left */
.site-footer::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(212,169,122,.12);
  box-shadow: 0 0 0 28px rgba(212,169,122,.05);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(212,169,122,.20);
}
.footer-logo { height: 60px; width: auto; margin-bottom: .8rem; 
  border-radius: 100%;}
.footer-tagline { font-size: .88rem; color: rgba(245,239,230,.50); }
.footer-col h4 {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--copper-pale);
  margin-bottom: .8rem;
}
.footer-col address,
.footer-col p { font-size: .88rem; color: rgba(245,239,230,.7); line-height: 1.75; }
.footer-col a { color: var(--copper-pale); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  font-size: .8rem;
  color: rgba(245,239,230,.38);
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-nav { display: flex; gap: .75rem; align-items: center; }
.footer-nav a { color: rgba(245,239,230,.45); }
.footer-nav a:hover { color: var(--copper-pale); }

/* ── Gallery page ───────────────────────────────────────────────── */
.gallery-hero {
  padding: 3.5rem 0 2rem;
}
.gallery-section { padding: 2rem 0 5rem; background: var(--parchment); }
.gallery-grid {
  columns: 3 260px;
  column-gap: 14px;
}
.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}
.gallery-item:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.01);
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform var(--ease);
}
.gallery-item:hover img { transform: scale(1.03); }
@media (max-width: 600px) {
  .gallery-grid { columns: 2 140px; column-gap: 8px; }
  .gallery-item { margin-bottom: 8px; }
}

/* ── Lightbox ────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28,16,8,.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox-figure {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}
#lb-img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: 0 8px 48px rgba(0,0,0,.7);
  transition: opacity .3s ease;
  display: block;
}
.lightbox-spinner {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(245,239,230,.2);
  border-top-color: var(--copper-pale);
  border-radius: 50%;
  animation: lb-spin .7s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.4rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,239,230,.10);
  border: 1px solid rgba(245,239,230,.22);
  border-radius: 50%;
  color: var(--linen);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--ease);
}
.lightbox-close:hover { background: rgba(245,239,230,.22); }
.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,239,230,.08);
  border: 1px solid rgba(245,239,230,.18);
  border-radius: 50%;
  color: var(--linen);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--ease);
}
.lightbox-arrow:hover { background: rgba(140,94,60,.35); color: var(--copper-pale); }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox-counter {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: .8rem;
  color: rgba(245,239,230,.50);
  letter-spacing: .08em;
  pointer-events: none;
}
@media (max-width: 600px) {
  .lightbox-arrow { width: 40px; height: 40px; font-size: 1.7rem; }
  .lightbox-prev  { left: .5rem; }
  .lightbox-next  { right: .5rem; }
}

/* ── Single / post pages ─────────────────────────────────────────── */
.post {
  max-width: 780px;
  margin: 4rem auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.post h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
.post-body { color: var(--text-muted); line-height: 1.8; }
.post-body h2, .post-body h3, .post-body h4 { color: var(--copper); margin: 1.8rem 0 .6rem; }
.post-body p { margin-bottom: 1rem; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-image img { height: 280px; }
  .location-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  #nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(44,26,14,.97);
    padding: 5rem 2rem 2rem;
    position: relative;
  }
  .nav-close-item { display: block; position: static; }
  #nav-menu.open { display: flex; }
  #nav-menu li a {
    color: var(--parchment);
    font-size: 1.1rem;
    padding: .9rem .5rem;
    border-bottom: 1px solid rgba(212,169,122,.18);
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  #nav-menu li a:hover,
  #nav-menu li a.active {
    color: var(--copper-pale);
    border-bottom-color: rgba(212,169,122,.18);
  }
  .hero-content { padding-block: 3.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .dishes-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 440px) {
  .dishes-grid { grid-template-columns: 1fr; }
  .logo-text { display: none; }
}
