/* ==========================================================================
   GATW site chrome — shared nav + footer. Loaded on every content page.
   Literal colours (pages don't all define the brand CSS vars). Bar scoped to
   #nav so it can't touch breadcrumb <nav> elements on deep pages.
   ========================================================================== */

/* ---- NAV BAR ---- */
#nav {
  position: sticky; top: 0; z-index: 900;
  background: #111111;
  display: flex; align-items: center; justify-content: space-between;
  /* full-bleed bar, content aligned to the 1240 column */
  padding: 0 max(2rem, calc((100% - 1240px) / 2));
  height: 64px; border-bottom: 3px solid #f5c400;
}
#nav .nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem; font-weight: 900;
  color: #fff; text-decoration: none;
  letter-spacing: 1px; text-transform: uppercase;
}
#nav .nav-logo span { color: #f5c400; }
#nav ul { list-style: none; display: flex; gap: 0.2rem; align-items: center; margin: 0; padding: 0; }
#nav ul a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 0.5rem 0.7rem; transition: color 0.15s;
  font-family: 'Lato', sans-serif;
}
#nav ul a:hover { color: #f5c400; }
#nav .nav-cta-btn { font-weight: 900 !important; }

/* "Start my order" (yellow) + WhatsApp (green) action buttons */
#nav .nav-order {
  background: #f5c400 !important; color: #111 !important;
  padding: 0.62rem 1.5rem !important; font-weight: 900 !important;
  margin-left: 0.9rem; margin-right: 0.55rem;
  display: inline-flex !important; align-items: center;
  white-space: nowrap; line-height: 1;
}
#nav .nav-order:hover { background: #d4a800 !important; color: #111 !important; }
#nav .nav-wa {
  background: #1f7a47 !important; color: #fff !important;
  padding: 0.62rem 1.5rem !important; font-weight: 900 !important;
  display: inline-flex !important; align-items: center; gap: 0.45rem;
  white-space: nowrap; line-height: 1;
  transition: background 0.15s !important;
}
#nav .nav-wa:hover { background: #145230 !important; color: #fff !important; }
#nav .nav-wa svg { width: 16px; height: 16px; fill: currentColor; }

#nav .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.5rem; background: none; border: none; }
#nav .hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: all 0.2s; }

/* ---- DROPDOWNS (Locations / Trades) ---- */
.nav-dd { position: static; }
.nav-caret { font-size: 0.7rem; color: #f5c400; }
#nav .nav-dd.open > .nav-dd-toggle { color: #f5c400; }
.nav-panel {
  position: absolute; top: 64px; left: 0; right: 0;
  background: #1a1a1a; border-bottom: 1px solid #2a2a2a;
  padding: 1.8rem max(2rem, calc((100% - 1240px) / 2));
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 1.1rem; align-items: stretch;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 899; box-shadow: 0 14px 40px rgba(0,0,0,0.16);
}
.nav-dd.open .nav-panel { opacity: 1; visibility: visible; transform: translateY(0); }
#nav.is-condensed .nav-panel { top: 54px; }
.nav-col-h { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; color: #f5c400; margin-bottom: 0.9rem; }
.nav-col-links { display: flex; flex-direction: column; gap: 0.45rem; }
#nav .nav-col-links a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 0.88rem; font-weight: 400; letter-spacing: 0; text-transform: none; padding: 0; transition: color 0.12s; }
#nav .nav-col-links a:hover { color: #f5c400; }
.nav-panel.loc { grid-template-columns: 1.6fr 1fr auto; }
.nav-group-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 1.5rem; }
.nav-group-wide > .nav-col-h { text-align: left; }
/* subtle shaded cards delineate each region / trade group */
.nav-group-wide, .nav-panel .nav-col { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 1.15rem 1.4rem 1.35rem; }

.nav-browse { border-left: 1px solid #2a2a2a; padding-left: 1.8rem; min-width: 200px; display: flex; flex-direction: column; gap: 0.6rem; }
.nav-panel .nav-browse { justify-self: end; }
.nav-browse-h { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.5); padding: 0; }
.nav-browse a { text-decoration: none; }
#nav .nav-browse-primary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #111 !important; background: #f5c400; font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 0.55rem 0.8rem; }
#nav .nav-browse-primary:hover { background: #d4a800; color: #111 !important; }
#nav .nav-browse-ghost { display: flex; align-items: center; gap: 0.5rem; color: #fff !important; border: 1px solid rgba(255,255,255,0.2); font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 0.55rem 0.8rem; }
#nav .nav-browse-ghost:hover { border-color: #f5c400; color: #fff !important; }
#nav .nav-browse-ghost span { color: #f5c400; }
#nav .nav-browse-muted { color: rgba(255,255,255,0.6) !important; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 0.2rem 0; display: inline-flex; align-items: center; gap: 0.5rem; line-height: 1.35; }
#nav .nav-browse-muted span { white-space: nowrap; }
.nav-muted-arrow { font-size: 1.15rem; flex-shrink: 0; }
#nav .nav-browse-muted:hover { color: #fff !important; }

/* hidden by default on desktop; toggled inside the mobile menu */
#nav .nav-tx-narrow { display: none; }
#nav .nav-m-only { display: none; }

/* intermediate: drop the lowest-priority link before fully collapsing, so the bar shows longer */
@media (max-width: 1320px) and (min-width: 1141px) { #nav .nav-pri-low { display: none; } }

/* ---- MOBILE MENU (≤1140px): full-viewport menu, start actions pinned at the foot ---- */
@media (max-width: 1140px) {
  #nav .hamburger { display: flex; }
  #nav ul.open ~ .hamburger { display: none; }   /* swap hamburger -> close (X) when open */
  #nav .nav-logo { position: relative; z-index: 1001; }   /* keep logo above the open menu */
  #nav .nav-close { display: none; position: absolute; top: 0; right: 1.25rem; height: 64px; line-height: 64px; z-index: 1001; background: none; border: none; cursor: pointer; color: #fff; font-size: 2rem; padding: 0 0.3rem; }
  #nav .nav-close.visible { display: block; }
  /* full-viewport menu (no white gap); bar logo + X overlay the top */
  #nav ul {
    display: none; position: fixed; inset: 0;
    background: #0a0a0a; flex-direction: column; justify-content: flex-start;
    padding: 64px 1.5rem calc(1.6rem + env(safe-area-inset-bottom));
    gap: 0; z-index: 1000; overflow-y: auto;
  }
  #nav ul.open { display: flex; }
  #nav ul li { border-bottom: 1px solid rgba(255,255,255,0.08); width: 100%; }
  #nav ul li:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
  #nav .nav-m-only { display: block; }                 /* SEO + About on mobile */
  #nav .nav-tx-wide { display: none; }                  /* Demos -> Demo Sites */
  #nav .nav-tx-narrow { display: inline; }
  #nav ul a { display: block; padding: 1.15rem 0.2rem; font-family: 'Barlow Condensed', sans-serif; font-size: 1.45rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.9); text-align: center; transition: color 0.2s; }
  #nav ul a:hover { color: #f5c400; }
  /* the two start actions pinned at the foot, as real buttons */
  #nav ul li:has(.nav-order) { margin-top: auto; border-bottom: none; padding-top: 1.6rem; }
  #nav ul li:has(.nav-order)::before { content: "Ready to go? Two ways to start"; display: block; text-align: center; font-family: 'Lato', sans-serif; font-size: 0.82rem; font-weight: 400; letter-spacing: 0.3px; text-transform: none; color: rgba(255,255,255,0.5); margin-bottom: 0.85rem; }
  #nav ul li:has(.nav-wa) { border-bottom: none; }
  #nav ul a.nav-order, #nav ul a.nav-wa { display: flex !important; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; max-width: 340px; margin-left: auto !important; margin-right: auto !important; padding: 1rem !important; font-size: 1.1rem !important; letter-spacing: 0.5px; box-shadow: none !important; }
  #nav ul a.nav-order { background: #f5c400 !important; color: #111 !important; margin-top: 0 !important; margin-bottom: 0.7rem !important; }
  #nav ul a.nav-wa { background: #1f7a47 !important; color: #fff !important; margin-top: 0 !important; margin-bottom: 0 !important; }
  .nav-panel { display: none !important; }
  .nav-caret { display: none; }
}
/* hide the injected sticky contact bar while the mobile menu is open */
body:has(#nav-menu.open) .sticky-wa-bar { display: none !important; }

/* ---- FOOTER ---- */
.site-footer { background: #111; border-top: 3px solid #f5c400; }
.footer-main { padding: 2.8rem max(2rem, calc((100% - 1240px) / 2)) 2.4rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.4rem; }
.footer-brand .footer-logo { font-family: 'Barlow Condensed', sans-serif; font-size: 1.25rem; font-weight: 900; color: #fff; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.7rem; }
.footer-brand .footer-logo span { color: #f5c400; }
.footer-desc { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 1.1rem; max-width: 360px; }
.footer-socials { display: flex; gap: 0.6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-social { display: inline-flex; align-items: center; gap: 0.45rem; border: 1px solid rgba(255,255,255,0.2); padding: 0.4rem 0.7rem; text-decoration: none; transition: border-color .15s; }
.footer-social:hover { border-color: #f5c400; }
.footer-social .ico { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 0.85rem; flex-shrink: 0; }
.footer-social .ico.fb { background: #1877f2; color: #fff; }
.footer-social .ico.g { background: #fff; color: #444; }
.footer-social .lbl { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.footer-rating { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.footer-rating .stars { color: #f5c400; }
.footer-col-h { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; color: #f5c400; margin-bottom: 0.85rem; }
.footer-col-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.88rem; transition: color .12s; }
.footer-col-links a:hover { color: #f5c400; }
.footer-map-frame { position: relative; border: 1px solid rgba(245,196,0,0.3); border-top: 3px solid #f5c400; border-radius: 6px; overflow: hidden; background: #1a1a1a; line-height: 0; }
.footer-map-frame iframe { width: 100%; height: 150px; border: 0; display: block; filter: invert(0.92) hue-rotate(180deg) saturate(0.85) contrast(0.9); }
.footer-find-note { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: rgba(255,255,255,0.4); margin-top: 0.55rem; line-height: 1.45; }
.footer-legal { background: #0c0c0c; padding: 0.95rem max(2rem, calc((100% - 1240px) / 2)) calc(0.95rem + env(safe-area-inset-bottom)); display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; text-align: left; }
@media (max-width: 600px) { .footer-legal { flex-direction: column; align-items: center; text-align: center; } }
.footer-legal .copy { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: rgba(255,255,255,0.4); }
.footer-legal .legal-links { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
.footer-legal .legal-links a { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-legal .legal-links a:hover { color: #f5c400; }
@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 1.8rem 2rem; }
  .footer-brand, .footer-find { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 1.6rem 1.2rem; } }


/* ============================================================
   MOBILE LANDING + OVERFLOW FIX (redesign sweep 2026-06-17)
   ============================================================ */
/* kill stray horizontal scroll / white gutter on the right (clip keeps sticky nav working) */
html { overflow-x: clip; }

/* mobile menu: centre the links vertically, keep the two start actions pinned at the foot */
@media (max-width: 1140px) {
  #nav ul li:first-child { margin-top: auto; }
  #nav ul a { padding: 1.25rem 0.2rem; }
}

/* concise, centred hero on every banded page (location / trade / trade x town / SEO / trades hub):
   drop the right-column mockup, centre + enlarge the text; trust bar + CTA sit clearly below */
@media (max-width: 900px) {
  .loc-hero .demo-mock, .loc-hero .mappack, .th-mock-wrap { display: none !important; }
  .loc-hero-grid, .th-hero-inner { text-align: center; }
  .loc-hero p, .th-hero-lead { margin-left: auto; margin-right: auto; }
  .hero-ctas, .th-hero-ctas { justify-content: center; }
  .loc-hero h1, .th-hero h1 { font-size: clamp(2.6rem, 9vw, 3.4rem); }
}


/* === Blog "In this guide" TOC: collapse to 3 (JS adds .toc-collapsed on mobile only) === */
.toc-card.toc-collapsed .toc-list li:nth-child(n+4) { display: none; }
.toc-card.toc-collapsed.toc-all .toc-list li:nth-child(n+4) { display: list-item; }
.toc-more-btn { display: block; width: 100%; margin-top: 0.7rem; padding: 0.7rem 0 0; background: none; border: none; border-top: 1px solid var(--light-gray); cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 0.82rem; letter-spacing: 0.5px; text-transform: uppercase; color: var(--yellow-dark); text-align: left; }


/* === Blog: tidy checklist list (opt-in via class) === */
.article-checklist { list-style: none; margin: 1.3rem 0 1.6rem; padding: 0; display: grid; gap: 0.55rem; }
.article-checklist li { position: relative; margin: 0; padding: 0.7rem 1rem 0.7rem 2.5rem; background: #fff; border: 2px solid var(--light-gray); font-size: 1rem; line-height: 1.5; color: #2a2a2a; }
.article-checklist li::before { content: '\2713'; position: absolute; left: 0.95rem; top: 0.68rem; color: var(--yellow-dark); font-weight: 900; }


/* === Blog four-box card grid (sitewide so any post can use it) === */
.four-box { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.four-box-item { background: var(--black); padding: 1.6rem; border-top: 4px solid var(--yellow); }
.four-box-item .num { font-family: 'Barlow Condensed', sans-serif; font-size: 2.5rem; font-weight: 900; color: var(--yellow); line-height: 1; margin-bottom: 0.5rem; }
.four-box-item strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 800; text-transform: uppercase; color: var(--white); display: block; margin-bottom: 0.4rem; }
.four-box-item span { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.5; }
@media (max-width: 600px) { .four-box { grid-template-columns: 1fr; } }
