/* ==========================================================================
   Andersons Bay Thai — static rebuild
   ========================================================================== */

/* --------------------------------------------------------------- fonts --- */
@font-face{font-family:"AB Sans";src:url("../fonts/montserrat-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"AB Sans";src:url("../fonts/montserrat-400-italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"AB Sans";src:url("../fonts/montserrat-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"AB Sans";src:url("../fonts/montserrat-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"AB Sans";src:url("../fonts/montserrat-800.woff2") format("woff2");font-weight:800;font-style:normal;font-display:swap}
@font-face{font-family:"AB Sans";src:url("../fonts/montserrat-900.woff2") format("woff2");font-weight:900;font-style:normal;font-display:swap}

/* --------------------------------------------------------------- tokens -- */
:root{
  --cream:#fde8a2;        /* nav + footer background        */
  --gold:#cea438;         /* strip background, headings     */
  --gold-btn:#bd943f;     /* hero button fill               */
  --gold-text:#deb133;    /* hero title, reservation label  */
  --ink:#1b1826;          /* Our Story background           */
  --ink-soft:#9a926e;     /* Our Story body copy            */
  --brown:#2f2621;        /* Book a Table copy + button     */
  --brown-soft:#685b4c;   /* Book a Table heading           */
  --purple:#863780;       /* footer brand                   */
  --nav-ink:#304254;      /* nav links                      */
  --font:"AB Sans",-apple-system,"system-ui",sans-serif;
}

/* ---------------------------------------------------------------- reset -- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  background:#fff;
  color:#000;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
p{margin:0}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}
.u-caps{text-transform:uppercase}

/* ------------------------------------------------------- scroll reveal --- */
/* Scoped to .js so the page still renders fully without JavaScript. */
.js [data-reveal]{
  opacity:0;
  transform:translateY(24px);
}
.js [data-reveal].is-in{
  opacity:1;
  transform:none;
  transition:opacity .6s ease,transform .6s ease;
  transition-delay:var(--reveal-delay,0ms);
}
@media (prefers-reduced-motion:reduce){
  .js [data-reveal]{opacity:1;transform:none}
  .js [data-reveal].is-in{transition:none;transition-delay:0ms}
}

/* ====================================================================== NAV */
/* The status strip and the nav pin together as one bar, so the strip stays
   visible for the whole scroll. .topbar owns the stickiness; .nav is only
   position:relative so the mobile dropdown still anchors to the nav itself
   rather than to the strip above it. */
.topbar{
  position:sticky;
  top:0;
  z-index:60;
}
.nav{
  position:relative;
  height:48px;
  background:var(--cream);
}
.nav__inner{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.nav__list{
  display:flex;
  align-items:center;
  margin:0;
  padding:0;
  list-style:none;
}
.nav__list a{
  display:block;
  padding:0 19px;
  font-size:15px;
  line-height:48px;
  font-weight:400;
  color:var(--nav-ink);
  white-space:nowrap;
}
.nav__list a.is-active,
.nav__list a:hover{font-weight:700}
.nav__burger{
  display:none;
  width:44px;
  height:44px;
  margin-right:8px;
  padding:0;
  border:0;
  background:none;
  cursor:pointer;
}
.nav__burger span{
  display:block;
  width:26px;
  height:2.5px;
  margin:5px auto;
  border-radius:2px;
  background:var(--nav-ink);
}

/* ===================================================================== HERO */
.hero{
  position:relative;
  height:629px;
  background:#000;
  overflow:hidden;
}
.hero__bg{
  position:absolute;
  inset:0;
  background:url("../img/hero-bg.webp") center center / cover no-repeat;
  opacity:.32;
}
.hero__inner{
  position:relative;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:90px;
  padding-right:34px;   /* the original group is centred on 623px, not 640px */
}
.hero__brand{
  width:426px;
  margin-bottom:27px;   /* lifts the block 13px above the optical centre */
  text-align:center;
}
.hero__logo{
  width:125px;
  height:125px;
  margin:0 auto -16px;  /* the mark carries transparent padding */
  object-fit:contain;
}
.hero__title{
  font-size:29.33px;
  line-height:41px;
  font-weight:900;
  letter-spacing:2.5px;
  color:var(--gold-text);
}
.hero__tagline{
  margin-top:4px;
  font-size:21.54px;
  line-height:30px;
  font-weight:400;
  font-style:italic;
  letter-spacing:-.74px;
  white-space:nowrap;
  color:#fff;
}
.hero__actions{
  display:flex;
  flex-direction:column;
  gap:18px;
  width:222px;
  margin-top:17px;
  flex:none;
}
.btn-gold{
  display:block;
  height:44px;
  border-radius:8px;
  background:var(--gold-btn);
  color:#fff;
  font-size:16px;
  line-height:44px;
  letter-spacing:-.33px;
  text-align:center;
  transition:background .2s ease;
}
.btn-gold:hover{background:#a67f31}

/* ================================================================ OUR STORY */
.story{
  display:grid;
  grid-template-columns:48.125% 1fr;
  min-height:515px;
  background:var(--ink);
}
.story__media{
  background:url("../img/our-story.webp") 100% 1% / 175.5% auto no-repeat;
}
.story__body{
  padding:105px 52px 40px 61px;   /* leaves a 551px measure at 1280px */
}
.story__title{
  margin:0 0 6px;
  font-size:36px;
  line-height:50px;
  font-weight:800;
  letter-spacing:-3.33px;
  text-transform:uppercase;
  color:var(--gold);
}
.story__text{
  max-width:551px;
  font-size:16px;
  line-height:22px;
  letter-spacing:-.896px;
  text-align:justify;
  color:var(--ink-soft);
}

/* ============================================================= BOOK A TABLE */
.book{
  position:relative;
  min-height:543px;
  background:#fff;
  overflow:hidden;
}
.book__bg{
  position:absolute;
  inset:0;
  background:url("../img/book-table-bg.webp") center 55% / cover no-repeat;
  opacity:.32;
}
.book__dishes{
  position:absolute;
  top:25px;
  left:86px;
  width:391px;
}
.book__dishes img{
  width:391px;
  height:293px;
  object-fit:contain;
}
.book__dishes img + img{margin-top:-124px}
.book__body{
  position:relative;
  width:612px;
  margin-left:auto;
  margin-right:156px;
  padding:64px 0 40px;
  text-align:center;
  color:var(--brown);
}
.book__title{
  margin:0;
  font-size:36px;
  line-height:50px;
  font-weight:800;
  letter-spacing:3.5px;
  text-transform:uppercase;
  color:var(--brown-soft);
}
.book__lead{
  margin-top:21px;
  font-size:20px;
  line-height:27px;
  font-weight:400;
  letter-spacing:-1.25px;
}
.book__text{
  margin-top:8px;
  font-size:16px;
  line-height:22px;
  font-weight:700;
  letter-spacing:-.896px;
}
.book__note{
  margin-top:0;
  font-size:16px;
  line-height:22px;
  font-weight:400;
  letter-spacing:-.896px;
}
.btn-dark{
  display:inline-block;
  margin-top:14px;
  min-width:231px;
  height:57px;
  padding:0 24px;
  border-radius:8px;
  background:var(--brown);
  color:var(--gold-text);
  font-size:16px;
  font-weight:700;
  line-height:57px;
  letter-spacing:-.56px;
  text-align:center;
  transition:background .2s ease;
}
.btn-dark:hover{background:#463830}

/* ==================================================== INTERIOR PHOTO STRIP */
.strip{
  height:264px;
  background:var(--gold) url("../img/interior.webp") center 68% / cover no-repeat;
}

/* =================================================================== FOOTER */
.footer{background:var(--cream)}
.footer__inner{
  max-width:930px;      /* spans 175px → 1105px inside a 1280px viewport */
  margin:0 auto;
}
.footer__top .footer__inner{
  display:grid;
  grid-template-columns:583px 1fr;
}
.footer__top{padding-bottom:53px}
.footer__brand{padding-top:64px}
.footer__logo{
  width:84px;
  height:84px;
  margin-left:39px;
  object-fit:contain;
}
.footer__name{
  width:347px;
  margin:-12px 0 0 26px;   /* the mark carries transparent padding */
  font-size:29.33px;
  line-height:41px;
  font-weight:900;
  letter-spacing:-.8px;
  text-align:center;
  white-space:nowrap;
  color:var(--purple);
}
.footer__slogan{
  margin:3px 0 0 35px;
  font-size:27.55px;
  line-height:26px;
  font-weight:700;
  letter-spacing:-2.92px;
  color:var(--purple);
}
.footer__details{padding-top:65px}
.footer__label{
  margin-top:8px;
  font-size:13.88px;
  line-height:19px;
  font-weight:600;
  letter-spacing:-.42px;
  text-transform:uppercase;
}
.footer__label:first-child{margin-top:0}
.footer__value{
  font-size:16.93px;
  line-height:23px;
  font-weight:700;
  letter-spacing:-.5px;
  text-transform:uppercase;
  white-space:nowrap;
}
.footer__value--email{
  font-size:18.27px;
  line-height:25px;
  letter-spacing:-.6px;
  text-transform:none;
}
.footer__value a:hover{text-decoration:underline}

.footer__bottom{padding:25px 0 28px}
.footer__socialText{
  font-size:17.5px;
  line-height:24px;
  letter-spacing:-.42px;
}
.footer__icons{
  display:flex;
  gap:15px;
  margin-top:4px;
}
.footer__icons svg{display:block;border-radius:7px}
.footer__legal{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  margin-top:41px;
}
.footer__legal p{
  font-size:14.67px;
  line-height:20px;
  letter-spacing:-.87px;
}
.footer__sipo{margin-top:1px}
.footer__sipo img{width:99px;height:auto}

/* ============================================================== RESPONSIVE */
@media (max-width:1200px){
  .book__dishes{left:24px;width:330px}
  .book__dishes img{width:330px;height:247px}
  .book__dishes img + img{margin-top:-104px}
  .book__body{margin-right:48px;width:min(560px,52vw)}
}

@media (max-width:991px){
  .nav__burger{display:block}
  .nav__list{
    position:absolute;
    top:48px;
    left:0;
    right:0;
    flex-direction:column;
    align-items:stretch;
    background:var(--cream);
    border-top:1px solid rgba(48,66,84,.15);
    box-shadow:0 12px 24px rgba(0,0,0,.12);
    display:none;
  }
  .nav__list.is-open{display:flex}
  .nav__list a{
    padding:0 24px;
    line-height:46px;
    border-bottom:1px solid rgba(48,66,84,.1);
  }

  .hero{height:auto;padding:56px 0 64px}
  .hero__inner{flex-direction:column;gap:34px}
  .hero__brand{width:min(426px,90vw);margin-bottom:0}
  .hero__logo{width:144px;height:144px}
  .hero__tagline{white-space:normal}
  .hero__actions{width:186px;gap:14px;margin-top:0}
  .hero__inner{padding-right:0}

  .story{grid-template-columns:1fr;min-height:0;padding:0 15px 40px}
  .story__media{
    width:100%;
    height:289px;
    background-image:url("../img/our-story-mobile.webp");
    background-size:cover;
    background-position:center;
  }
  .story__body{padding:24px 0 0;max-width:none}
  .story__title{line-height:44px}
  .story__text{max-width:none}

  .book{padding-bottom:48px}
  .book__dishes{
    position:relative;
    top:0;
    left:0;
    width:min(330px,88vw);
    margin:59px auto 0;
  }
  .book__dishes img{width:100%;height:auto}
  .book__dishes img + img{margin-top:-32px}
  .book__body{
    width:auto;
    margin:0;
    padding:24px 15px 0;
  }
  .book__lead{font-size:19px}

  .strip{height:80px}

  .footer__inner{padding:0 24px;text-align:center}
  .footer__top .footer__inner{grid-template-columns:1fr}
  .footer__top{padding:0 0 32px}
  .footer__brand{padding-top:52px}
  .footer__logo{margin:0 auto}
  .footer__name{width:auto;margin-left:0}
  .footer__slogan{margin-left:0;text-align:center}
  .footer__details{margin-top:26px;padding-top:0;text-align:left;display:inline-block}
  .footer__bottom{padding:16px 0 36px}
  .footer__social{text-align:left}
  .footer__value{white-space:normal}
  .footer__name{white-space:normal}
  .footer__icons{margin-top:22px}
  .footer__legal{
    flex-direction:column;
    align-items:flex-start;
    margin-top:36px;
    text-align:left;
  }
  .footer__legal p{font-size:13px}
}

@media (max-width:600px){
  .hero__title{font-size:26px;line-height:36px}
  .hero__tagline{font-size:18px;line-height:26px}
  .story__title,
  .book__title{font-size:30px;line-height:40px;letter-spacing:-1.4px}
  .book__lead{font-size:17px;line-height:24px;letter-spacing:-.6px}
  .footer__name{font-size:25px;line-height:34px}
  .footer__slogan{font-size:23px;line-height:26px;letter-spacing:-1.4px}
}

/* ==========================================================================
   SUB-PAGES  (Our Story / Order Online / Our Menu / Contact Us)
   ========================================================================== */

/* ------------------------------------------------------------- banner --- */
/* The slim photo band that replaces the hero on every page except Home. */
.banner{
  position:relative;
  height:136px;
  background:#000;
  overflow:hidden;
}
.banner__bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-repeat:no-repeat;
  opacity:.35;
}
.banner--contact .banner__bg{opacity:.5}
.banner__brand{
  position:relative;
  width:192px;
  margin-left:146px;
  padding-top:34px;
  text-align:center;
}
.banner__logo{
  position:relative;
  left:-6px;            /* the mark sits slightly left of the wordmark's centre */
  width:59px;
  height:59px;
  margin:0 auto -7px;
  object-fit:contain;
}
.banner__title{
  font-size:13.87px;
  line-height:41px;
  font-weight:900;
  letter-spacing:1.3px;
  white-space:nowrap;
  color:var(--gold-text);
}

/* -------------------------------------------------- shared page pieces --- */
.sec-title{
  margin:0;
  font-size:36px;
  line-height:50px;
  font-weight:800;
  text-transform:uppercase;
}
.sec-body{
  font-size:16px;
  line-height:22px;
  letter-spacing:-.896px;
  text-align:justify;
}
.page-inner{
  position:relative;
  max-width:1280px;
  margin:0 auto;
}
/* Cut-out dishes / photos that sit at a fixed spot in a section. */
.page-art{
  position:absolute;
  background-repeat:no-repeat;
}

/* ==================================================== CONTACT US ========= */
.contact{background:#1d1510}
.contact .page-inner{padding:63px 136px 64px}
.contact__title{
  color:#ca9a5a;
  letter-spacing:-3.14px;
}
.contact__lead{
  max-width:760px;
  margin-top:4px;
  letter-spacing:-1.31px;   /* the original sets this line on one line, 731px wide */
  color:#8f8378;
}
.contact__details{
  margin-top:14px;
  color:#e8d7ac;
}
.contact__label{
  margin-top:8px;
  font-size:13.88px;
  line-height:19px;
  font-weight:600;
  letter-spacing:-.42px;
  text-transform:uppercase;
}
.contact__value{
  font-size:16.93px;
  line-height:23px;
  font-weight:700;
  letter-spacing:-.5px;
  text-transform:uppercase;
}
.contact__value--email{
  font-size:18.27px;
  line-height:25px;
  letter-spacing:-.6px;
  text-transform:none;
}
.contact__value a:hover{text-decoration:underline}

/* ==================================================== MENU BUTTON ======= */
.btn-menu{
  display:block;
  width:177px;
  height:44px;
  border-radius:8px;
  background:#cea640;
  color:#1d1918;
  font-size:16px;
  line-height:44px;
  letter-spacing:-.3px;
  text-align:center;
  transition:background .2s ease;
}
.btn-menu:hover{background:#b89133}

/* ==================================================== ORDER ONLINE ====== */
.order{background:#1c1818;overflow:hidden}
.order .page-inner{padding:63px 136px 60px;min-height:540px}
.order__title{
  color:#b69344;
  letter-spacing:-3.19px;
}
.order__text{
  width:596px;
  max-width:100%;
  margin-top:4px;
  color:#e1be45;
}
.btn-order{
  display:block;
  width:177px;
  height:44px;
  margin-top:3px;
  border-radius:8px;
  background:#e1be45;
  color:#1c1818;
  font-size:16px;
  line-height:44px;
  letter-spacing:-.33px;
  text-align:center;
  transition:background .2s ease;
}
.btn-order--wide{width:182px;margin-top:15px}
.btn-order:hover{background:#cba834}
.order__label{
  margin-top:20px;
  padding-left:5px;
  font-size:16px;
  line-height:22px;
  font-weight:700;
  letter-spacing:.23px;
  color:#e1be45;
}
.order__art1{
  top:21px;
  left:741px;
  width:362px;
  height:333px;
  background-image:url("../img/order-food-1.webp");
  background-size:500px 333px;
  background-position:-69px 0;
}
.order__art2{
  top:129px;
  left:888px;
  width:416px;
  height:400px;
  background-image:url("../img/order-food-2.webp");
  background-size:575px 421px;
  background-position:-81px -10px;
}

/* ==================================================== OUR STORY ========= */
.storypage{background:#fff;overflow:hidden}
.storypage .page-inner{padding:98px 151px 0;min-height:1125px}
.storypage__title{
  width:195px;
  margin-left:-3px;
  color:#bf07b1;
  letter-spacing:-3.33px;
  text-align:center;
}
.storypage__text{
  width:975px;
  max-width:100%;
  margin-top:5px;
  color:#000;
}
.storypage__photo{
  width:975px;
  max-width:100%;
  height:508px;
  margin-top:24px;
  background:url("../img/storefront.webp") 0 -70px / 975px 650px no-repeat;
}
.storypage__text + .storypage__photo + .storypage__text{margin-top:27px}

.team{background:#fff;overflow:hidden}
.team .page-inner{padding:26px 151px 60px;min-height:514px}
.team__title{
  width:183px;
  margin-left:-4px;
  color:#bf07b1;
  letter-spacing:-3.22px;
  text-align:center;
}
.team__text{
  width:477px;
  max-width:100%;
  margin-top:16px;
  letter-spacing:-1.5px;   /* keeps the copy to the original's fifteen lines */
  color:#000;
}
.team__photo{
  top:38px;
  left:662px;
  width:460px;
  height:430px;
  background-image:url("../img/team.webp");
  background-size:725px 483px;
  background-position:-132px -53px;
}

/* ------------------------------------------ per-page photo strip images -- */
.strip--story{background-image:url("../img/interior.webp");background-position:center 68%}
.strip--order{background-image:url("../img/strip-order.webp");background-position:center 55%}
.strip--menu{background-image:url("../img/strip-menu.webp");background-position:center 55%}
.strip--contact{background-image:url("../img/our-story.webp");background-position:center 75%}

/* ============================================== RESPONSIVE (sub-pages) === */
@media (max-width:1200px){
  .order__art1,.order__art2,.team__photo{display:none}
  .order .page-inner{padding-left:48px;padding-right:48px}
  .storypage .page-inner,
  .team .page-inner{padding-left:48px;padding-right:48px}
  .storypage__text,.storypage__photo,.order__text,.team__text{width:auto}
}

@media (max-width:991px){
  .banner{height:110px}
  .banner__brand{margin-left:24px;padding-top:16px}
  .banner__logo{width:48px;height:48px;margin-bottom:-6px}

  .contact .page-inner{padding:40px 24px 44px}
  .order .page-inner{padding:40px 24px 44px;min-height:0}
  .storypage .page-inner{padding:40px 24px 0;min-height:0}
  .team .page-inner{padding:26px 24px 44px;min-height:0}

  .sec-title{font-size:30px;line-height:40px;letter-spacing:-1.4px}
  .storypage__title,.team__title{width:auto;margin-left:0;text-align:left}

  .storypage__photo{
    height:auto;
    aspect-ratio:975 / 508;
    background:url("../img/storefront.webp") center / cover no-repeat;
  }
  .btn-menu{width:100%;max-width:330px}
  .btn-order,.btn-order--wide{width:100%;max-width:330px}
}

/* ============================================
   LIVE MENU SECTION (API-driven, our-menu.html)
   ============================================ */
.menulive{background:var(--cream)}
.menulive .page-inner{padding:56px 125px 64px}
.menulive__title{
  color:var(--brown-soft);
  letter-spacing:-3.3px;
}
.menulive__intro{
  max-width:620px;
  margin:6px 0 26px;
  color:var(--brown);
  text-align:left;
}
.menulive__cta{margin-top:32px}
.menulive__cta .btn-menu{width:auto;min-width:210px;cursor:pointer}

/* ---- footer: two branches ---- */
.footer__branches{display:flex;flex-direction:column;gap:18px}
.footer__branch + .footer__branch{
  padding-top:16px;
  border-top:1px solid rgba(47,38,33,.16);
}
.footer__branchName{
  margin-bottom:2px;
  font-size:13.88px;
  line-height:19px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--purple);
}

@media (max-width:1200px){
  .menulive .page-inner{padding-left:48px;padding-right:48px}
}
@media (max-width:991px){
  .menulive .page-inner{padding:40px 24px 44px}
  .menulive__title{font-size:30px;line-height:40px;letter-spacing:-1.4px}
}

/* ---- contact page: branch grid ---- */
.contact__branches{margin-top:26px}
.contact .branch-card{
  border-color:rgba(232,215,172,.32);
  background:rgba(255,255,255,.05);
  color:#e8d7ac;
}
.contact .branch-card__name{color:#e8d7ac}
.contact .branch-card__hours{border-top-color:rgba(232,215,172,.22)}
.contact .branch-card__btn{background:#ca9a5a;color:#1d1510}
.contact .branch-card__btn--ghost{background:transparent;color:#e8d7ac}
.contact__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.contact__actions .branch-card__btn{cursor:pointer}

/* The API returns fuller addresses than the original static text
   ("11 Tomahawk Road, Andersons Bay, Dunedin 9013, New Zealand"),
   so branch rows must wrap — the nowrap above is for the old
   single-line values only. */
.footer__branch .footer__value{white-space:normal}
.footer__branch .footer__value a{overflow-wrap:anywhere}

/* ============================================================
   Phones get half-width copies of the two big backgrounds.
   Both render at opacity .32, so the smaller files are visually
   identical and cut roughly 200 KB off the mobile LCP path.
   ============================================================ */
@media (max-width:820px){
  .hero__bg{background-image:url("../img/hero-bg-sm.webp")}
  .book__bg{background-image:url("../img/book-table-bg-sm.webp")}
}
