/* ==========================================================================
   No.10 Bar & Kitchen — Shared Stylesheet
   Bold Mono theme (Mockup A)
   ========================================================================== */

:root{
  --black:#0a0a0a;
  --off:#f5f4f0;
  --grey:#8a8a86;
  --line:#2a2a2a;
  --accent:#ffbb00;
  --header-h:73px;
}

@font-face{
  font-family:'Peapod Thai';
  src:url('../fonts/PeapodThai.ttf') format('truetype');
  font-weight:normal;
  font-style:normal;
  font-display:swap;
}

.font-peapod{font-family:'Peapod Thai', 'Anton', sans-serif;}

*{box-sizing:border-box;margin:0;padding:0;}

html{scroll-behavior:smooth;}

body{
  background:var(--black);
  color:var(--off);
  font-family:'Oswald',Arial,sans-serif;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}

h1,h2,h3,.display{
  font-family:'Anton',Impact,sans-serif;
  font-weight:400;
  letter-spacing:0.5px;
  text-transform:uppercase;
  line-height:0.95;
}
a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;}
.wrap{max-width:1240px;margin:0 auto;padding:0 32px;}

/* ---------- NAV / HEADER ---------- */
header.site-header{
  position:sticky;top:0;z-index:80;
  background:var(--black);
  border-bottom:1px solid var(--line);
}
/* NOTE: intentionally no backdrop-filter here — a filter/backdrop-filter on this
   element becomes the containing block for any position:fixed descendant, which
   breaks the full-screen mobile nav overlay below (it gets pinned to the header's
   own small box instead of the viewport, so its background no longer covers the
   dropped-down menu). If a glass/blur header look is wanted again, apply the blur
   to a pseudo-element or separate backdrop layer instead of the header itself. */
nav.site-nav{display:flex;align-items:center;justify-content:space-between;padding:18px 32px;max-width:1240px;margin:0 auto;}
.logo{display:flex;align-items:center;gap:10px;}
.fist{width:40px;height:40px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;}
.fist img{width:100%;height:100%;object-fit:contain;}
.logo-text{font-family:'Anton';font-size:20px;letter-spacing:1px;}
.logo-text span{display:block;font-family:'Oswald';font-size:9px;letter-spacing:3px;color:var(--grey);font-weight:500;}

.nav-links{display:flex;gap:34px;align-items:center;}
.nav-links a{font-size:13px;letter-spacing:1.5px;text-transform:uppercase;font-weight:500;color:var(--off);opacity:0.85;transition:opacity .2s,color .2s;}
.nav-links a:hover{opacity:1;}
.nav-links a.active{opacity:1;color:var(--accent);}

.nav-right{display:flex;align-items:center;gap:12px;}
.nav-right .btn{white-space:nowrap;flex-shrink:0;}
.nav-delivery{white-space:nowrap;}
@media(max-width:1080px){
  .nav-right .btn{padding:10px 16px;font-size:11.5px;}
}
/* the compact mobile header only has room for one action button + the menu
   toggle — Order Delivery stays one tap away via the hero button, page
   sections and footer on every page, so it's dropped here rather than the
   header wrapping or overflowing. */
@media(max-width:900px){
  .nav-right .nav-delivery{display:none;}
}
/* very narrow phones: trim the logo and button further so "Book a Table"
   never wraps to a second line, which is what was throwing off the header's
   real height (and, with it, the mobile menu's overlap fix below). */
@media(max-width:420px){
  nav.site-nav{padding:14px 16px;}
  .fist{width:32px;height:32px;}
  .logo-text{font-size:15px;}
  .logo-text span{font-size:7px;letter-spacing:1.5px;}
  .nav-right{gap:8px;}
  .nav-right .btn{padding:9px 12px;font-size:10px;letter-spacing:1px;}
  .nav-toggle{width:34px;height:32px;font-size:15px;}
}

.nav-toggle{
  display:none;background:none;border:1.5px solid var(--off);border-radius:2px;
  width:40px;height:36px;color:var(--off);font-size:18px;cursor:pointer;flex:0 0 auto;
  flex-shrink:0;
}

.btn{
  display:inline-block;padding:12px 26px;font-size:13px;letter-spacing:1.5px;
  text-transform:uppercase;font-weight:600;border-radius:2px;transition:all .2s;border:none;cursor:pointer;font-family:'Oswald';
}
.btn-accent{background:var(--accent);color:#0a0a0a;}
.btn-accent:hover{background:#e0a400;}
.btn-outline{border:1.5px solid var(--off);color:var(--off);background:none;}
.btn-outline:hover{background:var(--off);color:var(--black);}

/* mobile nav */
@media(max-width:900px){
  .nav-links{
    /* top tracks the header's real rendered height (kept in sync by JS —
       see syncHeaderHeight in main.js) instead of a guessed pixel value,
       so the dropdown never sits under/behind a header that's grown taller
       than expected. */
    position:fixed;top:var(--header-h,73px);left:0;right:0;bottom:0;
    background:var(--black);
    flex-direction:column;justify-content:flex-start;align-items:flex-start;
    padding:36px 32px;gap:26px;
    transform:translateX(100%);transition:transform .3s ease;
    z-index:70;font-size:18px;
    overflow-y:auto;
  }
  .nav-links.open{transform:translateX(0);}
  .nav-toggle{display:flex;align-items:center;justify-content:center;}
}

/* ---------- HERO ---------- */
.hero{
  position:relative;height:88vh;min-height:560px;
  display:flex;align-items:flex-end;
  background-size:cover;background-position:center;background-repeat:no-repeat;
}
.hero-inner{padding:0 32px 72px;max-width:1240px;margin:0 auto;width:100%;position:relative;z-index:1;}
.kicker{color:var(--accent);font-size:13px;letter-spacing:4px;text-transform:uppercase;font-weight:600;margin-bottom:18px;}
.hero h1{font-size:clamp(48px,9vw,120px);margin-bottom:20px;}
.hero p{font-size:18px;color:var(--grey);max-width:520px;margin-bottom:34px;font-weight:300;}
.hero-btns{display:flex;gap:16px;flex-wrap:wrap;}

/* generic centered button row used for section-bottom CTAs (Book a Table /
   Order Delivery pairs, flick-book / PDF pairs, etc.) */
.cta-row{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;}

/* On phones, a wrapped row of differently-worded buttons ends up as a stack
   of mismatched widths ("Order Delivery" wider than "Book a Table") which
   reads as uneven. Stacking them full-width keeps every button the same
   size regardless of its label. */
@media(max-width:640px){
  .hero-btns,.cta-row{flex-direction:column;align-items:stretch;}
  .hero-btns .btn,.cta-row .btn{width:100%;text-align:center;}
}

/* ---------- SECTION GENERIC ---------- */
section{padding:110px 0;border-bottom:1px solid var(--line);}
section.tight{padding:70px 0;}
.eyebrow{color:var(--accent);font-size:13px;letter-spacing:4px;text-transform:uppercase;font-weight:600;margin-bottom:16px;}
.section-head{max-width:640px;margin-bottom:64px;}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center;}
.section-head h2{font-size:clamp(34px,5vw,58px);}
.section-head p{color:var(--grey);font-size:16px;margin-top:18px;font-weight:300;line-height:1.6;}

/* ---------- IMAGE STRIP ---------- */
.strip{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;background:var(--line);}
.strip-item{position:relative;aspect-ratio:3/4;overflow:hidden;background:#111;}
.strip-item img{width:100%;height:100%;object-fit:cover;filter:grayscale(15%) contrast(1.05);transition:transform .5s;}
.strip-item:hover img{transform:scale(1.06);}
.strip-label{
  position:absolute;bottom:0;left:0;right:0;padding:20px;
  background:linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  font-family:'Anton';font-size:20px;letter-spacing:0.5px;
}

/* ---------- WHAT'S ON / DAY GRID ---------- */
.whats-on{background:#111;}
.day-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;background:var(--line);margin-top:10px;}
.day-card{background:#0a0a0a;padding:26px 22px 38px;text-align:center;transition:background .2s;}
.day-card:hover{background:#161616;}
.day-card-img{aspect-ratio:1/1;overflow:hidden;margin-bottom:18px;background:#111;}
.day-card-img img{width:100%;height:100%;object-fit:cover;filter:grayscale(15%) contrast(1.05);transition:transform .5s;}
.day-card:hover .day-card-img img{transform:scale(1.06);}
.day-tag{color:var(--accent);font-size:12px;letter-spacing:3px;text-transform:uppercase;font-weight:600;margin-bottom:14px;}
.day-card h3{font-size:21px;}
.day-card p{color:var(--grey);font-size:13px;margin-top:8px;font-weight:300;line-height:1.5;}

/* ---------- EVENT DETAIL CARDS ---------- */
.event-grid{display:flex;flex-wrap:wrap;gap:2px;background:var(--line);}
.event-card{flex:1 1 300px;background:#0a0a0a;border-top:2px solid var(--accent);transition:background .2s;}
.event-card:hover{background:#161616;}
.event-card-body{padding:32px 28px;}
.event-card-body .day{color:var(--accent);font-size:12px;letter-spacing:3px;text-transform:uppercase;font-weight:600;margin-bottom:10px;}
.event-card-body h3{font-size:22px;margin-bottom:12px;}
.event-card-body p{color:var(--grey);font-size:14px;font-weight:300;line-height:1.6;}

/* ---------- BOOKING MODAL ---------- */
.booking-modal{position:fixed;inset:0;background:rgba(0,0,0,0.78);z-index:200;display:none;align-items:center;justify-content:center;padding:24px;}
.booking-modal.open{display:flex;}
.booking-modal-inner{background:#111;border:1px solid var(--line);width:100%;max-width:460px;border-radius:8px;padding:32px;position:relative;max-height:88vh;overflow-y:auto;}
.modal-close{position:absolute;top:14px;right:18px;background:none;border:none;color:var(--off);font-size:26px;cursor:pointer;line-height:1;z-index:2;}
.thefork-widget{width:100%;border:none;display:block;border-radius:4px;min-height:550px;}
@media only screen and (max-width:320px){.thefork-widget{min-height:840px;}}
@media only screen and (min-width:321px) and (max-width:516px){.thefork-widget{min-height:650px;}}
@media only screen and (min-width:517px){.thefork-widget{min-height:550px;}}

/* ---------- MENU CALLOUT (preview card, used on Home/Thai Kitchen) ---------- */
.menu-callout{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center;}
.flip-mock{background:#111;border:1px solid var(--line);border-radius:6px;padding:26px;position:relative;}
.flip-pages{display:grid;grid-template-columns:1fr 1fr;gap:4px;}
.flip-pages img{aspect-ratio:3/4;object-fit:cover;border-radius:2px;}
.flip-controls{display:flex;justify-content:space-between;align-items:center;margin-top:18px;}
.flip-dots{display:flex;gap:6px;}
.dot{width:6px;height:6px;border-radius:50%;background:var(--line);cursor:pointer;transition:background .2s,transform .2s;}
.dot.active{background:var(--accent);transform:scale(1.3);}
.icon-btn{width:34px;height:34px;border:1px solid var(--line);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;background:none;color:var(--off);cursor:pointer;transition:background .2s,color .2s;}
.icon-btn:hover{background:var(--off);color:var(--black);}
.menu-text h2{font-size:clamp(32px,4.5vw,52px);margin-bottom:20px;}
.menu-text p{color:var(--grey);font-weight:300;line-height:1.7;margin-bottom:32px;}
.menu-btns{display:flex;gap:14px;flex-wrap:wrap;}

/* ---------- REAL FLIPBOOK (menu.html) ---------- */
.flipbook-wrap{display:flex;flex-direction:column;align-items:center;gap:26px;}
#flipbook-container{width:100%;max-width:900px;display:flex;justify-content:center;background:#111;border:1px solid var(--line);border-radius:6px;padding:26px;}
.flipbook-controls{display:flex;align-items:center;gap:22px;flex-wrap:wrap;justify-content:center;}
.flip-page-indicator{font-family:'Oswald';color:var(--grey);font-size:13px;letter-spacing:1px;min-width:70px;text-align:center;}
.flipbook-actions{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;}
.flipbook-note{color:var(--grey);font-size:13px;text-align:center;max-width:480px;font-weight:300;}
#flipbook-container.fullscreen-active{
  position:fixed;inset:0;z-index:150;background:rgba(10,10,10,0.98);
  max-width:none;padding:40px 20px;align-items:center;border:none;border-radius:0;
}

/* ---------- SPLIT (image / text, 50/50) ---------- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:0;}
.split-media{display:flex;flex-direction:column;}
.split-img{height:520px;overflow:hidden;}
.split-img img{width:100%;height:100%;object-fit:cover;}
.split-text{padding:60px;display:flex;flex-direction:column;justify-content:center;background:#111;}
.split-text h2{font-size:clamp(30px,4vw,46px);margin-bottom:18px;}
.split-text p{color:var(--grey);font-weight:300;line-height:1.7;margin-bottom:28px;}

/* ---------- CARD GRID (drinks features) ---------- */
.card-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;background:var(--line);}
.card{background:#0a0a0a;display:flex;flex-direction:column;}
.card img{aspect-ratio:4/5;object-fit:cover;filter:grayscale(15%) contrast(1.05);}
.card-body{padding:22px;}
.card-body h3{font-size:18px;margin-bottom:8px;}
.card-body p{color:var(--grey);font-size:13px;font-weight:300;line-height:1.6;}

/* ---------- OFFERS ---------- */
.offer-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:2px;background:var(--line);}
.offer-card{background:#0a0a0a;display:flex;flex-direction:column;transition:background .2s;}
.offer-card:hover{background:#161616;}
.offer-card img{aspect-ratio:16/10;object-fit:cover;filter:grayscale(15%) contrast(1.05);transition:transform .5s;}
.offer-card:hover img{transform:scale(1.04);}
.offer-card-body{padding:26px 28px 30px;}
.offer-tag{color:var(--accent);font-size:12px;letter-spacing:3px;text-transform:uppercase;font-weight:600;margin-bottom:10px;}
.offer-card-body h3{font-size:22px;margin-bottom:10px;}
.offer-card-body p{color:var(--grey);font-size:14px;font-weight:300;line-height:1.6;}
.offer-price{color:var(--accent);font-family:'Anton';font-size:26px;letter-spacing:0.5px;margin-top:14px;}

.stamp-card{background:#111;border:1px solid var(--line);border-radius:6px;padding:8px 26px;}
.stamp-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 0;border-bottom:1px solid var(--line);font-size:14px;}
.stamp-row:last-child{border-bottom:none;}
.stamp-row .n{font-family:'Anton';color:var(--accent);font-size:15px;letter-spacing:0.5px;min-width:80px;}
.stamp-row .r{color:var(--off);font-weight:300;text-align:right;}

.offer-note{color:var(--grey);font-size:12px;font-weight:300;text-align:center;margin-top:44px;}

/* App Store / Google Play badges: sit left, under the photo, clear of the phone mockups in the image itself */
.app-links{display:flex;gap:12px;flex-wrap:wrap;padding:20px 24px;background:#111;justify-content:flex-start;}
.app-badge{display:inline-block;line-height:0;border-radius:7px;overflow:hidden;transition:opacity .2s,transform .2s;}
.app-badge:hover{opacity:.85;}
.app-badge svg{display:block;height:44px;width:auto;}
/* default (desktop / unknown device): show both badges. JS adds a class once it detects the visitor's platform. */
.app-links.show-ios-only .app-badge-android{display:none;}
.app-links.show-android-only .app-badge-ios{display:none;}
@media(max-width:560px){
  .app-links{padding:14px 16px;gap:10px;}
  .app-badge svg{height:34px;}
}

/* ---------- HORIZONTAL CARD STRIP ---------- */
/* touch-action:pan-y hands vertical page-scrolling back to the browser but
   leaves horizontal gestures to our own pointer-drag handling in main.js
   (initDishCarousel), so a sideways swipe doesn't fight the browser's
   native scroll physics. */
.strip-row{display:flex;gap:2px;overflow-x:auto;background:var(--line);cursor:grab;touch-action:pan-y;}
.strip-row.dragging{cursor:grabbing;scroll-behavior:auto;user-select:none;}
.strip-card{flex:0 0 260px;background:#0a0a0a;}
.strip-card img{height:200px;width:100%;object-fit:cover;filter:grayscale(15%) contrast(1.05);-webkit-user-drag:none;}
.strip-card .cap{padding:18px;font-family:'Anton';font-size:16px;letter-spacing:0.5px;}

/* auto-scrolling variant: content is duplicated in markup, JS glides scrollLeft continuously and
   pauses for finger/mouse drag or native touch scroll (see initDishCarousel in main.js) */
.strip-row.auto{scroll-behavior:auto;}
.strip-track{display:flex;gap:2px;width:max-content;}
@media (prefers-reduced-motion: reduce){.strip-row.auto{overflow-x:auto;}}

/* cutout dish photos (transparent PNG) sit better contained + padded than cropped/greyscaled */
.strip-card.cutout img{height:200px;width:100%;object-fit:contain;padding:14px;filter:drop-shadow(0 10px 14px rgba(0,0,0,0.6));}

/* ---------- INFO / CONTACT CARDS ---------- */
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;background:var(--line);max-width:1000px;margin:0 auto;}
.info-card{background:#111;padding:36px 30px;text-align:center;}
.info-card h3{font-size:19px;margin-bottom:12px;}
.info-card h3 a{color:var(--off);}
.info-card h3 a:hover{color:var(--accent);}
.info-card p{color:var(--grey);font-size:14px;font-weight:300;line-height:1.7;}
.info-card p a:hover{color:var(--accent);}

/* ---------- OPENING HOURS TABLES ---------- */
.hours-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;background:var(--line);max-width:1000px;margin:0 auto;}
.hours-card{background:#111;padding:32px 28px;}
.hours-card h3{font-family:'Anton';color:var(--accent);font-size:18px;margin-bottom:18px;letter-spacing:0.5px;}
.hours-row{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px;}
.hours-row:last-child{border-bottom:none;}
.hours-row .d{color:var(--off);font-weight:500;}
.hours-row .t{color:var(--grey);font-weight:300;text-align:right;}

/* ---------- MAP ---------- */
.map-frame{border:1px solid var(--line);border-radius:6px;overflow:hidden;height:420px;background:#111;}
.map-frame iframe{width:100%;height:100%;border:0;filter:grayscale(0.5) invert(0.9) contrast(0.9);}

/* ---------- FOOTER ---------- */
footer.site-footer{padding:70px 0 40px;background-image:url('../img/footer-texture.jpg?v=20260821b');background-repeat:no-repeat;background-size:cover;background-position:center;background-color:#0a0a0a;}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px;margin-bottom:60px;}
.foot-grid h4{font-size:13px;letter-spacing:2px;text-transform:uppercase;margin-bottom:18px;color:var(--grey);font-weight:500;}
.foot-grid p, .foot-grid a{display:block;font-size:14px;color:var(--off);margin-bottom:10px;font-weight:300;}
.foot-grid a:hover{color:var(--accent);}
.foot-bottom{border-top:1px solid var(--line);padding-top:24px;display:flex;justify-content:space-between;font-size:12px;color:var(--grey);flex-wrap:wrap;gap:10px;}
.foot-bottom a:hover{color:var(--accent);}

/* ---------- RESPONSIVE ---------- */
@media(max-width:900px){
  .strip{grid-template-columns:repeat(2,1fr);}
  .menu-callout,.split{grid-template-columns:1fr;}
  .split-text{padding:40px 24px;}
  .split-img{height:340px;}
  .foot-grid{grid-template-columns:1fr 1fr;}
  .day-grid{grid-template-columns:repeat(2,1fr);}
  .event-card{flex-basis:100%;}
  .card-grid{grid-template-columns:repeat(2,1fr);}
  .info-grid,.hours-grid{grid-template-columns:1fr;}
  .offer-grid{grid-template-columns:1fr;}
}
@media(max-width:560px){
  .card-grid{grid-template-columns:1fr 1fr;}
}
