/* ============================================================
   CUSTOM — Vietnamese Diner, Saskatoon (Template PT)
   Restyle "similar to" vietnamesediner.com (Rakesh brief 2026-10-22):
   dark top bar + dark header, uppercase serif nav, full-bleed hero
   slider with a centred italic serif line and big uppercase title,
   square buttons, cream "Our Menu" band with 3 photo cards, Why Choose
   Us split, dark 4-column footer with gold-ruled headings.
   Display font: Cormorant Infant (self-hosted). Colours: brand vars
   from theme.css (gold = --brand); dark surfaces = --vd-dark.
   Loaded last so it wins over theme.css and style.css.
   ============================================================ */

@font-face {
  font-family: "Cormorant Infant";
  src: url("assets/fonts/cormorant-infant-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Infant";
  src: url("assets/fonts/cormorant-infant-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-display: "Cormorant Infant", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --vd-dark: #1f1e1e;
  --vd-dark-2: #2d2723;
  --vd-cream: #f8f4ec;
  /* Brandy THEME.md: --brand #8c6420 carries white text (5.3:1) and is the gold text colour on
     light surfaces (4.72:1 on canvas); the old site's tan #c6ac83 is used only on DARK surfaces. */
  --vd-gold: var(--brand);
  --vd-gold-ink: var(--brand);
  --vd-tan: #c6ac83;
}

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
h2 { text-transform: uppercase; letter-spacing: 0.04em; }
h1 em, h2 em, h3 em, .display em { color: inherit; font-style: italic; }
.sec-head h2, .quotes-intro h2, .faq-intro h2, .story-copy h2, .menu-band h2 { font-weight: 700; }
h2 em, .story-copy h2 em, .faq-intro h2 em, .quotes-intro h2 em { color: var(--vd-gold-ink); }

.kicker,
.sec-head .kicker, .story-copy .kicker, .faq-intro .kicker, .cta-band .kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--vd-gold-ink);
}
.kicker::before { display: none; }

/* ---------- buttons: square, uppercase, letter-spaced ---------- */
.btn, .btn-line, .btn-ghost {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 1rem 1.6rem;
}
.btn {
  background: var(--vd-gold);
  color: #fff;
  box-shadow: none;
}
.btn:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn--butter { background: #fff; color: #171412; box-shadow: none; }
.btn--butter:hover { background: var(--vd-gold); color: #fff; }
.hero-full .btn:hover, .cta-band .btn:hover { background: #fff; color: #171412; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid currentColor; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn .arrow { display: none; }

/* ---------- top bar ---------- */
.site-topline {
  display: block;
  background: var(--vd-dark);
  color: #e8e2d8;
  font-size: 0.82rem;
  font-weight: 500;
}
.site-topline .wrap { padding-block: 0.7rem; }
.site-topline .vd-tl-item { display: inline-flex; align-items: center; gap: 0.6rem; }
.site-topline .vd-tl-ico {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--vd-dark-2);
  color: #fff;
  font-size: 0.8rem;
}
.site-topline .vd-tl-social { display: inline-flex; gap: 0.9rem; }
.site-topline .vd-tl-social a { color: #cfc8bd; font-weight: 400; }
.site-topline .vd-tl-social a:hover { color: var(--vd-tan); text-decoration: none; }

/* ---------- header: dark, uppercase serif nav ---------- */
.site-header,
body:has(.hero-full) .site-header:not(.scrolled) {
  background: #171412;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-header.scrolled { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
.site-header .wrap { min-height: 5.5rem; }
.brand img { width: auto; height: 64px; max-width: 200px; object-fit: contain; }
.site-nav a {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border-radius: 0;
}
.site-nav a:hover,
.site-nav a.active { background: transparent; color: var(--vd-tan); }
.header-cta .vd-hdr-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.4rem;
}
.header-cta .vd-hdr-link:hover { color: var(--vd-tan); }
.header-cta .btn { padding: 0.8rem 1.2rem; }
.nav-toggle { background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); }
.nav-toggle__bars span { background: #fff; }
@media (max-width: 1100px) { .header-cta .vd-hdr-link { display: none; } }
@media (max-width: 900px) {
  .site-nav { background: #171412; }
  .site-nav a { color: #fff; }
  .site-nav a.active { background: var(--vd-dark-2); color: var(--vd-tan); }
  .site-header .wrap { min-height: 4.5rem; }
  .brand img { height: 52px; }
}
@media (max-width: 768px) {
  .site-header,
  body:has(.hero-full) .site-header:not(.scrolled) { background: #171412; }
}

/* ---------- hero: centred, italic serif H1 + big uppercase line ---------- */
.hero-full::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.6) 100%);
}
.hero-full__content {
  margin-block: auto;
  text-align: center;
  align-items: center;
  padding-block: 4rem 1.5rem;
}
.hero-full .kicker--light { display: none; }
.hero-full h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-transform: none;
  color: #fff;
  max-width: none;
  margin: 0 auto 0.6rem;
  padding-bottom: 0.55rem;
  background: linear-gradient(90deg, transparent, var(--vd-tan), transparent) bottom / 70% 2px no-repeat;
}
.hero-full .vd-hero-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0.4rem auto 1.1rem;
  max-width: 20ch;
  text-wrap: balance;
}
.hero-full__tag { margin-inline: auto; text-align: center; color: rgba(255, 255, 255, 0.92); }
.hero-full .hero-actions { justify-content: center; }
.hero-full__foot .store-bar {
  background: rgba(23, 20, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
}
.store-bar .sb-ico { border-radius: 50%; background: var(--vd-dark-2); color: var(--vd-tan); }
.store-bar .sb-cell:last-child .sb-ico { background: var(--vd-dark-2); color: var(--vd-tan); }
.store-bar .sb-cell { border-radius: 0; }

/* ---------- signature plates ---------- */
.plates .plate img { border-radius: 0; }
.plate h3 { font-size: 1.45rem; }
.plate-foot, .plate .tag { color: var(--vd-gold-ink); }

/* ---------- welcome / story: photo + copy + photo ---------- */
.story { background: #fff; padding-block: clamp(3.5rem, 7vw, 6rem); overflow: visible; }
.story .wrap.vd-welcome {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  max-width: none;
  margin-inline: auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}
/* full rectangular photos, no dome/circle mask (Rakesh 2026-10-22) */
.vd-welcome .vd-arch,
.vd-welcome .vd-round { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
.vd-welcome h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin: 0.5rem 0 1rem; }
.vd-welcome .vd-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.vd-welcome p { color: var(--muted); }
.vd-welcome .btn-line { margin-top: 1.2rem; }
@media (max-width: 900px) {
  .story .wrap.vd-welcome { grid-template-columns: 1fr 1fr; }
  .vd-welcome .vd-copy { grid-column: 1 / -1; order: -1; }
}

/* ---------- our menu: cream band, 3 photo cards ---------- */
.vd-menu {
  background: var(--vd-cream);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  text-align: center;
}
.vd-menu .sec-head { display: block; max-width: 46rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.vd-menu .sec-head .kicker { display: inline-flex; }
.vd-menu h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 0.5rem 0 0.8rem; }
.vd-menu .sec-head p { color: var(--muted); }
.vd-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
  text-align: left;
}
.vd-card { background: #fff; display: flex; flex-direction: column; }
.vd-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.vd-card__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.vd-card h3 { font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.05em; }
.vd-card p { color: var(--muted); font-size: 0.97rem; }
.vd-card a.vd-card__link {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vd-gold-ink);
  padding-block: 0.7rem;
  min-height: 44px;
}
.vd-card a.vd-card__link:hover { color: var(--ink); }
.vd-menu .vd-menu-cta { margin-top: clamp(2rem, 4vw, 3rem); display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 900px) { .vd-cards { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }

/* ---------- why choose us ---------- */
.vd-why { background: #fff; padding-block: clamp(3.5rem, 7vw, 6rem); }
.vd-why .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.vd-why img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.vd-why h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 0.5rem 0 1rem; }
.vd-why p { color: var(--muted); margin-bottom: 1.2rem; }
.vd-why ul { list-style: none; display: grid; gap: 0.8rem; }
.vd-why li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.92rem;
}
.vd-why li::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--brand-3);
  flex: none;
}
@media (max-width: 900px) { .vd-why .wrap { grid-template-columns: 1fr; } }

/* ---------- FAQ + CTA band ---------- */
.faq { background: var(--vd-cream); }
.qa, .qa[open] { border-radius: 0; }
.qa summary::before { color: var(--vd-gold-ink); }
.qa[open] summary .qa-ico { background: var(--vd-gold); color: #fff; }
.cta-band { background: var(--vd-dark); }
.cta-band h2 { color: #fff; }
.cta-band h2 em, .cta-band .kicker { color: var(--vd-tan); }
.cta-band .btn { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.cta-band .btn--butter, .cta-band .btn-line { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.6); }

/* ---------- footer: dark, gold-ruled serif headings ---------- */
.site-footer { background: var(--vd-dark); color: #d9d3c9; }
.site-footer h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  padding-bottom: 0.7rem;
  margin-bottom: 1.1rem;
  background: linear-gradient(var(--vd-tan), var(--vd-tan)) left bottom / 2.25rem 2px no-repeat;
}
.site-footer a, .site-footer li, .site-footer p, .site-footer span,
.site-footer .foot-grid a, .site-footer .foot-grid li, .site-footer .foot-grid li a, .site-footer .foot-brand p { color: #d9d3c9; }
.site-footer a:hover, .site-footer .foot-grid li a:hover { color: var(--vd-tan); }
.foot-brand img { background: none; box-shadow: none; padding: 0; height: 96px; width: auto; max-width: 220px; object-fit: contain; }
.foot-social a {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
  border-radius: 50%;
}
.foot-social a:hover { background: var(--vd-tan); color: #171412; border-color: var(--vd-tan); }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.foot-legal > span:first-child, .foot-legal > span:first-child * { color: var(--vd-tan); }
.foot-legal .legal-links a { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: #fff; }

/* ---------- mobile top bar: one line ---------- */
@media (max-width: 600px) {
  .site-topline { font-size: 0.72rem; }
  .site-topline .wrap { padding-block: 0.5rem; justify-content: space-between; }
  .site-topline .vd-tl-ico { display: none; }
  .site-topline .tl-right { gap: 0.6rem; width: 100%; justify-content: space-between; }
  .site-topline .vd-tl-social { gap: 0.7rem; }
}

/* ---------- contrast fixes (AA) ---------- */
.site-footer .foot-legal .credit a { color: #b8b0a4; }
.site-footer .foot-legal .credit a:hover { color: var(--vd-tan); }
.dish-rating .rating-count, .dish-rating span.rating-count { color: var(--brand); }

/* ---------- CLS: reserve the injected header's height (topline + header) ----------
   #header-container is display:contents once filled; while empty it holds the space,
   and the no-JS breadcrumb fallback sits inside that space instead of pushing the page. */
#header-container:empty { display: block; min-height: 139px; background: #171412; }
@media (max-width: 900px) { #header-container:empty { min-height: 127px; } }
@media (max-width: 600px) { #header-container:empty { min-height: 112px; } }
body:not(.header-loaded) .breadcrumb-container { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }

/* ---------- LCP: hero slides 2+ stay unrendered (so their lazy images are not fetched)
   until components.js marks the slideshow live after window load ---------- */
.hero-slides:not(.is-live) .hero-slide:not(.is-active) { display: none; }

/* ---------- LCP: hero content is above the fold, so it never waits for the scroll reveal ---------- */
.page-hero [data-reveal], .page-hero[data-reveal],
.hero-full [data-reveal], .hero-full[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}
