/*
Theme Name: Thai Haven
Theme URI: https://thaihaven.ca/
Author: Thai Haven
Description: Thai Haven Southern Thai Cuisine website for Ottawa, Ontario.
Version: 1.2.6
Text Domain: thai-haven
*/

:root {
  --burgundy: #4b0808;
  --burgundy-2: #300505;
  --burgundy-3: #210303;
  --gold: #c6922c;
  --gold-bright: #f0ba3e;
  --cream: #f7f1e7;
  --paper: #fffdf8;
  --ink: #271a17;
  --muted: #6d5e57;
  --line: rgba(75, 8, 8, .18);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; }
.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.announcement {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .1em .45em;
  padding: 8px 20px;
  background: var(--gold-bright);
  color: #321005;
  text-align: center;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-header {
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  z-index: 20;
  color: #fff;
}
.site-header.solid {
  background: var(--burgundy-2);
  border-bottom: 1px solid rgba(240, 186, 62, .18);
}
.nav-shell {
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: 210px;
  height: auto;
  object-fit: contain;
}
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 31px;
}
.nav-links a {
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 10px 12px;
  border: 1px solid var(--gold);
  background: transparent;
  color: #fff;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.eyebrow,
.kicker {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.eyebrow::before,
.kicker::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  margin: 0 12px 3px 0;
  background: currentColor;
}
.kicker.light { color: var(--gold-bright); }

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid currentColor;
  color: var(--gold-bright);
  text-decoration: none;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
}
.text-link::after { content: "→"; }
.text-link.dark { color: var(--burgundy); }
.button {
  display: inline-flex;
  margin-top: 8px;
  padding: 13px 17px;
  background: var(--gold-bright);
  color: #321005;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
}

/* Homepage hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #240505, #4a0909 54%, #2b0505);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 100% 44px;
  opacity: .4;
  pointer-events: none;
}
.hero-rings {
  position: absolute;
  width: min(55vw, 720px);
  aspect-ratio: 1;
  right: -12vw;
  top: 36%;
  border: 1px solid rgba(240,186,62,.20);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(240,186,62,.026),
    0 0 0 140px rgba(240,186,62,.018),
    0 0 0 210px rgba(240,186,62,.012);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 132px;
  padding-bottom: 92px;
}
.signature-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(calc(100vw - 32px), 1520px);
  margin-left: 50%;
  transform: translateX(-50%);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(240,186,62,.25);
  border-bottom: 1px solid rgba(240,186,62,.25);
}
.signature-gallery figure {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  background: #1f0505;
}
.signature-gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  pointer-events: none;
}
.signature-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s ease;
}
.signature-gallery figure:nth-child(1) img { object-position: 50% 54%; }
.signature-gallery figure:nth-child(2) img { object-position: 50% 51%; }
.signature-gallery figure:nth-child(3) img { object-position: 50% 54%; }
.signature-gallery figure:nth-child(4) img { object-position: 50% 52%; }
.signature-gallery figure:hover img { transform: scale(1.025); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, .5fr);
  gap: 80px;
  align-items: end;
  margin-top: 58px;
}
.hero-copy { max-width: 760px; }
.hero .eyebrow {
  color: var(--gold-bright);
  font-size: .94rem;
  font-weight: 900;
  letter-spacing: .16em;
}
.hero h1,
.story h2,
.cuisine h2,
.menu-preview h2,
.closing h2,
.menu-hero h1,
.catalog-heading h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -.03em;
}
.hero h1 {
  max-width: 800px;
  font-size: clamp(4rem, 7.1vw, 6.6rem);
  line-height: .94;
}
.hero h1 em {
  display: block;
  margin-top: .12em;
  color: #ead7bf;
  font-weight: 400;
}
.hero-lede {
  max-width: 610px;
  margin: 34px 0 0;
  color: #eadfd2;
  font-size: 1rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 28px; margin-top: 36px; }
.hero-note {
  align-self: end;
  margin-bottom: 14px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(240,186,62,.4);
  color: #eadfd2;
}
.hero-note .note-number {
  color: var(--gold-bright);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.hero-note p { font-size: 1rem; line-height: 1.65; }
.hero-note strong { color: #fff; font-size: 1.05rem; }

/* Story */
.story {
  padding: 112px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.story-grid {
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(390px, 1.08fr);
  gap: clamp(54px, 7vw, 104px);
  align-items: start;
}
.section-heading { position: sticky; top: 28px; }
.story h2,
.cuisine h2,
.menu-preview h2,
.closing h2 {
  color: var(--burgundy);
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 1.02;
}
.story-card {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.story-photo {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center center;
  background: #eadfce;
}
.story-card > p {
  margin: 12px 0 0;
  color: var(--muted);
  font: italic .82rem/1.55 Georgia, serif;
}
.story-copy { max-width: 650px; }
.story-copy p {
  margin: 0 0 24px;
  color: #514640;
  font-size: 1rem;
  line-height: 1.82;
}
.story-copy .lead { color: var(--ink); font-size: 1.16rem; }
.story-copy .signature {
  margin-top: 8px;
  color: var(--burgundy);
  font-family: Georgia, serif;
  font-size: 1.12rem;
}

/* Cuisine */
.cuisine { padding: 102px 0; background: #f1e9dc; }
.split-intro {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 60px;
}
.split-intro > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.feature-list { border-top: 1px solid var(--line); }
.feature-list article {
  display: grid;
  grid-template-columns: 64px minmax(220px, .8fr) 1.2fr;
  gap: 28px;
  align-items: baseline;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}
.feature-list span {
  color: var(--gold);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.feature-list h3 {
  margin: 0;
  color: var(--burgundy);
  font: 500 1.32rem Georgia, serif;
}
.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.7;
}

/* Homepage menu teaser */
.home-menu-teaser { padding: 96px 0; background: var(--paper); }
.home-menu-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: center;
}
.home-menu-copy {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.home-menu-copy p {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* Closing / social */
.closing { padding: 92px 0; background: #350707; color: #eadfd2; }
.closing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: end;
}
.closing h2 { color: #fff9ef; }
.closing p { margin: 0; line-height: 1.75; }
.socials { display: flex; gap: 18px; margin-top: 25px; align-items: center; }
.social-link {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(240,186,62,.5);
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
}
.social-link svg {
  width: 23px;
  height: 23px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-link svg path,
.social-link .social-dot { fill: currentColor; stroke: none; }
.social-link:hover,
.social-link:focus-visible {
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  outline: none;
}
.social-link:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }

/* Footer */
.site-footer { padding: 68px 0 24px; background: var(--burgundy-3); color: #e7d4c2; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr .8fr 1.05fr;
  gap: 70px;
}
.footer-brand { margin-bottom: 22px; }
.footer-brand .brand-logo { width: 230px; max-width: 100%; }
.site-footer p { color: #d5c0ad; font-size: .88rem; line-height: 1.72; }
.site-footer h3 { margin: 2px 0 18px; color: var(--gold-bright); font: 600 1rem Georgia, serif; }
.site-footer a { text-decoration: none; }
.footer-bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(240,186,62,.22);
  color: #bfa995;
  font-size: .72rem;
}

/* Full Menu Page */
.full-menu-main { background: var(--paper); }
.menu-hero {
  position: relative;
  overflow: hidden;
  padding: 190px 0 92px;
  background: linear-gradient(135deg, #2b0404, #4a0909 60%, #300505);
  color: #fff;
}
.menu-hero-orbit {
  position: absolute;
  width: min(52vw, 720px);
  aspect-ratio: 1;
  right: -17vw;
  top: -12%;
  border: 1px solid rgba(240,186,62,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(240,186,62,.02), 0 0 0 160px rgba(240,186,62,.013);
}
.menu-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 80px;
  align-items: end;
}
.menu-hero h1 {
  font-size: clamp(4rem, 7vw, 6.6rem);
  line-height: .92;
}
.menu-hero h1 em {
  display: block;
  color: #ead7bf;
  font-weight: 400;
}
.menu-hero-copy > p {
  max-width: 540px;
  margin: 0;
  color: #eadfd2;
  font-size: 1rem;
  line-height: 1.8;
}
.menu-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 30px;
}
.menu-jump a {
  padding: 9px 0;
  border-bottom: 1px solid var(--gold-bright);
  color: var(--gold-bright);
  text-decoration: none;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.menu-catalog { padding: 96px 0 106px; background: var(--paper); scroll-margin-top: 20px; }
.drinks-catalog { background: #f1e9dc; }
.catalog-heading {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 50px;
  align-items: end;
  padding-bottom: 46px;
  border-bottom: 2px solid var(--burgundy);
}
.catalog-heading h2 {
  grid-column: 2;
  color: var(--burgundy);
  font-size: clamp(2.6rem, 4.8vw, 4.5rem);
  line-height: 1.02;
}
.catalog-heading .kicker { grid-row: 1; grid-column: 1; align-self: start; }
.menu-category {
  display: grid;
  grid-template-columns: minmax(210px, .48fr) minmax(0, 1.52fr);
  gap: clamp(42px, 7vw, 92px);
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}
.category-heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.category-heading > span {
  padding-top: 7px;
  color: var(--gold);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.category-heading h3 {
  margin: 0;
  color: var(--burgundy);
  font: 500 clamp(1.8rem, 2.7vw, 2.7rem)/1.1 Georgia, serif;
}
.category-note {
  max-width: 330px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}
.menu-items { min-width: 0; }
.menu-items.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 42px;
}
.menu-item {
  min-width: 0;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
}
.menu-item-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.menu-item h4 {
  min-width: 0;
  margin: 0;
  color: var(--burgundy);
  font: 500 1.17rem/1.32 Georgia, serif;
}
.menu-item h4 span {
  color: #8b6424;
  font-size: .77em;
  font-style: italic;
}
.menu-item-head strong {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: .83rem;
  line-height: 1.45;
  text-align: right;
  white-space: nowrap;
}
.menu-item > p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.67;
}
.menu-item .menu-options {
  color: #8b6424;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.menu-item .availability { font-style: italic; }

.protein-prices {
  display: grid;
  gap: 3px;
  width: min(100%, 190px);
  margin: 8px 0 0;
  color: #8b6424;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
}
.protein-prices span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}
.protein-prices strong {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: inherit;
}
.stacked-price-head {
  display: block;
}
.single-item {
  max-width: 520px;
}
.pairing-note { color: #7b5b25; }
.side-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
}
.side-items.four-items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.compact-category .menu-item { padding-bottom: 18px; }
.dessert-category { border-bottom: 0; padding-bottom: 10px; }

@media (max-width: 1080px) {
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .nav-shell { min-height: 86px; }
  .brand-logo { width: 190px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; }
  .nav-shell.open { align-items: flex-start; flex-wrap: wrap; padding: 18px 0 22px; }
  .nav-shell.open .nav-links {
    display: flex;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 10px;
  }
  .hero-inner { padding-top: 118px; }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; margin-top: 58px; }
  .hero-note { max-width: 430px; }
  .story-grid,
  .split-intro,
  .home-menu-grid,
  .closing-grid,
  .menu-hero-grid,
  .catalog-heading,
  .menu-category { grid-template-columns: 1fr; }
  .section-heading { position: static; }
  .catalog-heading h2,
  .catalog-heading .kicker { grid-column: 1; }
  .catalog-heading h2 { margin-top: -10px; }
  .menu-category { gap: 22px; }
  .category-note { max-width: 640px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-hero { padding-top: 170px; }
}

@media (max-width: 900px) {
  .signature-gallery {
    width: min(calc(100vw - 32px), 900px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .signature-gallery figure { aspect-ratio: 6 / 5; }
}

@media (max-width: 760px) {
  .signature-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signature-gallery figure { aspect-ratio: 6 / 5; }
  .menu-items.two-col { grid-template-columns: 1fr; }
  .side-items,
  .side-items.four-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-list article { grid-template-columns: 44px 1fr; }
  .feature-list p { grid-column: 2; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 26px), var(--max)); }
  .announcement { min-height: 46px; font-size: .64rem; }
  .site-header { top: 46px; }
  .brand-logo { width: 158px; }
  .footer-brand .brand-logo { width: 210px; }
  .hero-inner { padding-top: 106px; padding-bottom: 70px; }
  .signature-gallery { width: calc(100vw - 20px); gap: 6px; padding: 6px 0; }
  .signature-gallery figure { aspect-ratio: 6 / 5; }
  .hero-grid { margin-top: 46px; }
  .hero .eyebrow { font-size: .88rem; line-height: 1.5; letter-spacing: .12em; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 4.5rem); }
  .hero-lede { font-size: .93rem; }
  .hero-actions { flex-wrap: wrap; }
  .story,
  .cuisine,
  .home-menu-teaser,
  .closing { padding-block: 66px; }
  .story h2,
  .cuisine h2,
  .menu-preview h2,
  .closing h2 { font-size: clamp(2.45rem, 12vw, 3.6rem); }
  .split-intro { gap: 34px; margin-bottom: 40px; }
  .feature-list article { grid-template-columns: 32px 1fr; gap: 12px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .closing-grid { gap: 36px; }
  .menu-hero { padding: 150px 0 68px; }
  .menu-hero h1 { font-size: clamp(3.2rem, 16vw, 4.7rem); }
  .menu-catalog { padding: 66px 0 74px; }
  .catalog-heading { gap: 12px; padding-bottom: 32px; }
  .catalog-heading h2 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .menu-category { padding: 38px 0; }
  .category-heading { gap: 12px; }
  .category-heading h3 { font-size: 2rem; }
  .menu-item { padding: 17px 0 19px; }
  .menu-item-head { gap: 10px; }
  .menu-item h4 { font-size: 1.08rem; }
  .menu-item-head strong { font-size: .76rem; }
  .side-items,
  .side-items.four-items { grid-template-columns: 1fr; }
}


/* Cashless restaurant messaging */
.announcement-sep { margin: 0; opacity: .72; }
.cashless-strip {
  background: #efe4d4;
  border-top: 1px solid rgba(198,146,44,.38);
  border-bottom: 1px solid rgba(198,146,44,.38);
}
.cashless-notice {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 22px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
}
.cashless-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--burgundy);
  background: rgba(255,253,248,.55);
}
.cashless-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cashless-kicker {
  margin: 0 0 5px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
}
.cashless-notice h2 {
  margin: 0;
  color: var(--burgundy);
  font: 500 1.55rem/1.15 Georgia, 'Times New Roman', serif;
}
.cashless-notice p:last-child { margin: 7px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.cashless-notice p strong { color: var(--burgundy); }
.footer-bottom { display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.footer-payment-note { color: var(--gold-bright); text-align: right; font-weight: 700; letter-spacing: .025em; }
@media (max-width: 760px) {
  .cashless-notice { grid-template-columns: 52px 1fr; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
  .cashless-icon { width: 48px; height: 48px; }
  .cashless-icon svg { width: 29px; height: 29px; }
  .cashless-notice h2 { font-size: 1.35rem; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 9px; }
  .footer-payment-note { text-align: left; }
}
@media (max-width: 560px) {
  .announcement { line-height: 1.35; }
  .announcement-sep { margin: 0 .2em; }
  .cashless-notice p:last-child { font-size: .86rem; }
}
