/* ============================================================
   AZHAR FOOD DIGITAL HQ - PUBLIC HEADER/FOOTER (theme.css)
   White minimalist public navigation and shared layout.
   ============================================================ */

/* ---------- Header (unified) ---------- */
.wrap {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
  padding-inline: 0;
  background: transparent;
}

.section { padding: 80px 0; }
.section-tint { background: var(--surface-soft); }

.site-header {
  position: sticky; top: 0; z-index: 60;
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  border: 0;
  border-radius: 0;
  background: var(--header) !important;
  border-bottom: 1px solid var(--border) !important;
  backdrop-filter: blur(14px);
}
.site-header .wrap { display: flex; align-items: center; gap: 26px; padding: 13px 60px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; text-decoration: none; flex: 0 0 auto; min-width: 0; }
.brand-mark {
  width: 134px; height: 40px; min-width: 134px;
  border-radius: 0; overflow: visible;
  background: transparent; border: 0; flex: 0 0 134px;
  display: flex; align-items: center; justify-content: flex-start; padding: 0;
}
.brand-mark img {
  width: 134px; height: 40px; max-width: none;
  object-fit: contain; object-position: left center; display: block;
}
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; font-size: 14px; color: var(--text); }
.brand .brand-sub { font-size: 9px; letter-spacing: .12em; font-weight: 600; color: var(--text-muted); text-transform: uppercase; margin-top: 1px; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { font-size: 13px; font-weight: 600; color: var(--text-secondary); text-decoration: none; transition: color .15s; }
.main-nav a:hover { color: var(--text); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-link, .cart-link { font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.cart-link b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 11px; }
.icon-btn { border: 0; background: transparent; color: var(--text); cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; transition: background .15s; }
.icon-btn:hover { background: var(--surface-soft); }
.nav-cta { text-decoration: none; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.menu-toggle { display: none; }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; z-index: 59; top: 60px; right: 14px; left: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.12); max-height: calc(100vh - 84px); overflow:auto;
}
.mobile-nav.open { display: grid; }
.mobile-nav a { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); font-weight: 600; font-size: 14px; color: var(--text); text-decoration: none; }
.mobile-nav a:last-child { border-bottom: 0; }

/* Footer (unified) */
.site-footer {
  display: block;
  grid-template-columns: none;
  background: var(--surface) !important;
  border-top: 1px solid var(--border) !important;
  margin-top: 40px;
  padding: 56px 0 30px;
  color: var(--text-secondary);
}
.af-footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; }
.af-footer-brand strong { font-size: 18px; color: var(--text); font-weight: 700; }
.af-footer-brand p { margin: 8px 0; max-width: 320px; font-size: 13px; color: var(--text-secondary); }
.af-footer-sub { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.af-footer-col { display: flex; flex-direction: column; gap: 9px; }
.af-footer-col a { font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.af-footer-col a:hover { color: var(--text); }
.af-footer-h { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 4px; }
.af-footer-meta { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-muted); }

/* ============================================================
   PUBLIC THEME TOKENS
   ============================================================ */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f2f3f5;
  --surface-2: #f5f5f7;
  --border: #e5e7eb;
  --border-soft: #eef0f2;
  --text: #111111;
  --text-secondary: #52525b;
  --text-muted: #86868b;
  --header: rgba(255,255,255,.92);
  --shadow: 0 2px 10px rgba(0,0,0,.04);
  --ink: var(--text);
  --muted: var(--text-secondary);
  --paper: var(--bg);
  --card: var(--surface);
  --line: var(--border);
  --accent: #111111;
  --dark: #111111;
  --chili: #111111;
}

/* ═══ NIGHT THEME — AINNA NeuralOps (cyan/blue) ═══ */
html[data-theme="dark"] {
  --bg: #05070c;
  --surface: #0a1428;
  --surface-soft: #0a1628;
  --surface-2: #0e1a30;
  --border: rgba(79,210,232,.18);
  --border-soft: rgba(79,210,232,.10);
  --text: #d5e2ef;
  --text-secondary: #a9c0d6;
  --text-muted: #6a8399;
  --header: rgba(5,7,12,.9);
  --shadow: 0 2px 14px rgba(0,0,0,.5);
  --ink: var(--text);
  --muted: var(--text-secondary);
  --paper: var(--bg);
  --card: var(--surface);
  --line: var(--border);
  --accent: #4fd2e8;
  --dark: #4fd2e8;
  --chili: #4fd2e8;
}
html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] .section,
html[data-theme="dark"] .section-tint,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .product-art,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .article-card,
html[data-theme="dark"] .rfq-product-grid article,
html[data-theme="dark"] .research-ledger article,
html[data-theme="dark"] .ops-grid > div,
html[data-theme="dark"] .assistant-box,
html[data-theme="dark"] .assistant-answer,
html[data-theme="dark"] .contact-options > a,
html[data-theme="dark"] .contact-options > div,
html[data-theme="dark"] .cart-drawer,
html[data-theme="dark"] .inst-node,
html[data-theme="dark"] .sustain-card,
html[data-theme="dark"] .family-card,
html[data-theme="dark"] .media-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .vision-card,
html[data-theme="dark"] .phase,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .arch-box,
html[data-theme="dark"] .card {
  background: var(--surface) !important;
}
html[data-theme="dark"] .section-tint { background: var(--surface-2) !important; }
html[data-theme="dark"] body { background: var(--bg) !important; color: var(--text) !important; }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3,
html[data-theme="dark"] .brand, html[data-theme="dark"] .brand-sub { color: var(--text) !important; }
html[data-theme="dark"] p, html[data-theme="dark"] .eyebrow, html[data-theme="dark"] .kicker,
html[data-theme="dark"] .text-link { color: var(--text-secondary) !important; }
html[data-theme="dark"] .chip { background: var(--surface) !important; border-color: var(--border) !important; color: var(--text-secondary) !important; }
html[data-theme="dark"] .chip.active { background: var(--accent) !important; color: #05070c !important; }
html[data-theme="dark"] .product-card { border-color: var(--border) !important; }
html[data-theme="dark"] .masonry figure,
html[data-theme="dark"] .media-ledger,
html[data-theme="dark"] .intelligence-stream { background: var(--surface) !important; border-color: var(--border) !important; }
html[data-theme="dark"] .masonry figure img { background: var(--surface-2); }
html[data-theme="dark"] .proof-photo,
html[data-theme="dark"] .live-still { background: var(--surface-2) !important; }
html[data-theme="dark"] a.text-link { color: var(--accent) !important; }
html[data-theme="dark"] .cart-row { background: var(--surface) !important; }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background: var(--surface) !important; color: var(--text) !important; border-color: var(--border) !important; }
html[data-theme="dark"] .button, html[data-theme="dark"] .button-dark,
html[data-theme="dark"] .card-foot .add { background: var(--accent) !important; border-color: var(--accent) !important; color: #05070c !important; }
html[data-theme="dark"] .button-quiet, html[data-theme="dark"] .button-light { background: var(--surface) !important; border-color: var(--border) !important; color: var(--text) !important; }
html[data-theme="dark"] .mobile-nav { background: var(--surface) !important; border-color: var(--border) !important; }
html[data-theme="dark"] .site-header { background: var(--header) !important; border-bottom-color: var(--border) !important; }
html[data-theme="dark"] .manufacturing-grid article,
html[data-theme="dark"] .research-ledger article,
html[data-theme="dark"] .journey > div,
html[data-theme="dark"] .intel-feature .lead,
html[data-theme="dark"] .compare .today,
html[data-theme="dark"] .compare .future,
html[data-theme="dark"] .export-layers .article-card,
html[data-theme="dark"] .cta-panel { background: var(--surface) !important; color: var(--text) !important; }
html[data-theme="dark"] .manufacturing-grid article h3,
html[data-theme="dark"] .research-ledger article h3,
html[data-theme="dark"] .rdi-card h3 { color: var(--text) !important; }
html[data-theme="dark"] .manufacturing-grid article p,
html[data-theme="dark"] .research-ledger article p { color: var(--text-secondary) !important; }
html[data-theme="dark"] .research-ledger b { color: var(--accent) !important; }
html[data-theme="dark"] .floating-cart { background: var(--accent) !important; color: #05070c !important; }
html[data-theme="dark"] .floating-cart b { background: #05070c !important; color: var(--accent) !important; }
html[data-theme="dark"] .process-step b { color: var(--text); }
html[data-theme="dark"] .rd-flow span,
html[data-theme="dark"] .sustain-flow span,
html[data-theme="dark"] .halal-verify span,
html[data-theme="dark"] .finder-flow span,
html[data-theme="dark"] .export-route span,
html[data-theme="dark"] .contact-intent span,
html[data-theme="dark"] .contact-address { border-color: var(--border); background: var(--surface); color: var(--text); }
html[data-theme="dark"] .af-neural-strip { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .neural-stats b { color: var(--accent); }
html[data-theme="dark"] .inst-node { border-color: var(--border); background: var(--surface); color: var(--text); }
html[data-theme="dark"] .sustain-card h3 { color: var(--text); }
html[data-theme="dark"] .sustain-card p { color: var(--text-secondary); }
html[data-theme="dark"] .contact-address strong { color: var(--text); }
html[data-theme="dark"] .contact-address p { color: var(--text-secondary); }
html[data-theme="dark"] .institution-ribbon span,
html[data-theme="dark"] .category-ribbon span,
html[data-theme="dark"] .event-stream span {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
html[data-theme="dark"] .process-rail div,
html[data-theme="dark"] .process-step {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
html[data-theme="dark"] .process-rail div b,
html[data-theme="dark"] .process-step b {
  color: var(--accent) !important;
}

/* Theme toggle icon swap */
.tt-sun { display: none; }
.tt-moon { display: block; }
html[data-theme="light"] .tt-sun { display: block; }
html[data-theme="light"] .tt-moon { display: none; }

/* Hero stays cinematic in both themes — text white over dark video/image */
.af-hero { background: #111; }
html body .af-hero { min-height: 92vh; padding: 0; border: 0; border-radius: 0; }
html body .af-hero h1, html body .af-hero h1 em { color: #fff !important; text-shadow: 0 1px 22px rgba(0,0,0,.35); }
html body .af-hero p { color: rgba(255,255,255,.88) !important; }
html body .af-hero-copy, html body .af-hero-eyebrow { color: inherit; }
html body .af-hero .button-dark { background: #fff !important; border-color: #fff !important; color: #111 !important; }
html body .af-hero .button-quiet { background: transparent !important; border-color: rgba(255,255,255,.6) !important; color: #fff !important; }
html body .af-hero .af-hero-eyebrow { color: rgba(255,255,255,.85) !important; }

/* ---- Sub-page image hero (af-page-hero) ---- */
.af-page-hero { position: relative; min-height: 100svh !important; min-height: 100vh !important; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--border); background:#111; }
.af-page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.af-page-hero-bg img, .af-page-hero-bg picture, .af-page-hero-bg picture img { width: 100%; height: 100%; object-fit: cover; }
.af-page-hero-poster {
  position: absolute; inset: 0; z-index: 0;
  display: block; width: 100%; height: 100%;
  pointer-events: none; transition: opacity .8s ease;
}
.af-page-hero-poster img {
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center;
}
.af-page-hero.video-playing .af-page-hero-poster { opacity: 0; }
.af-page-hero-video { position:absolute; inset:0; z-index:0; opacity:0; overflow:hidden; pointer-events:none; transition:opacity .8s ease; }
.af-page-hero.video-playing .af-page-hero-video { opacity:1; }
.af-page-hero-video iframe { position:absolute; top:50%; left:50%; width:auto; height:100%; min-width:100%; aspect-ratio:16/9; border:0; transform:translate(-50%,-50%) scale(1.6); pointer-events:none; }
.af-page-hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(10,10,12,.78), rgba(10,10,12,.2) 60%); }
.af-page-hero-copy { position: relative; z-index: 2; padding-bottom: 56px; padding-top: 60px; }
.af-page-hero-copy h1 { font-size: clamp(40px,6.2vw,74px); line-height: .98; letter-spacing: -.055em; margin: 14px 0 12px; font-weight: 700; color:#fff; }
.af-page-hero-copy p { font-size: 17px; max-width: 620px; color: rgba(255,255,255,.86); }
html body .af-page-hero h1 { color:#fff !important; }
html body .af-page-hero p { color: rgba(255,255,255,.86) !important; }
html body .af-page-hero .af-hero-eyebrow { color: rgba(255,255,255,.85) !important; }
@media (max-width:700px){ .af-page-hero { min-height: 100svh !important; min-height: 100vh !important; align-items:flex-end; } }

.catalogue-search {
  display: grid;
  grid-template-columns: minmax(220px,1fr) 90px 90px 150px auto;
  gap: 8px;
}
.catalogue-search > * { min-width: 0; width: 100% !important; }
@media (max-width:700px){
  .catalogue-search { grid-template-columns: 1fr 1fr; }
  .catalogue-search > input:first-of-type,
  .catalogue-search select,
  .catalogue-search button { grid-column: 1 / -1; }
}

/* process image thumb inside step cards */
.process-step { position: relative; }
.process-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 9px; margin-bottom: 8px; }
.process-step b { display: block; color: #111; font-size: 12px; margin-bottom: 6px; letter-spacing:.06em; }

/* R&D images + flow */
.rd-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 11px; margin-bottom: 16px; }
.rd-flow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rd-flow span { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 12px 18px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--text); }
.rd-flow i { font-style: normal; color: var(--text-muted); font-weight: 700; }

/* Sustain flow (reuse rd-flow look) */
.sustain-flow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sustain-flow span { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 12px 18px; font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--text); }
.sustain-flow i { font-style: normal; color: var(--text-muted); font-weight: 700; }

/* Sustain cards */
.sustain-card { border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 22px; }
.sustain-card h3 { margin: 6px 0; color: var(--text); font-size: 20px; }
.sustain-card p { color: var(--text-secondary); font-size: 13px; margin: 0; }
@media (max-width:700px){ .sustain-cards { grid-template-columns: 1fr !important; } }

/* Institution network */
.inst-network { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.inst-hub { grid-column: 1 / -1; text-align: center; padding: 26px; border: 1px solid var(--border); border-radius: 16px; background: var(--text); color: var(--bg); }
.inst-hub strong { display: block; font-size: 22px; letter-spacing: -.03em; }
.inst-hub span { font-size: 11px; opacity: .75; letter-spacing: .12em; text-transform: uppercase; }
.inst-node { padding: 18px; border: 1px solid var(--border); background: var(--surface); border-radius: 13px; text-align: center; font-weight: 700; font-size: 14px; color: var(--text); transition: transform .2s, box-shadow .2s; }
.inst-node:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
@media (max-width:700px){ .inst-network { grid-template-columns: repeat(3,1fr); } }

@media (max-width:560px){
  .ecosystem-wheel {
    min-height: auto;
    margin: 0 !important;
    padding: 16px;
    transform: none !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-radius: 20px;
  }
  .ecosystem-wheel strong { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .ecosystem-wheel span { position: static !important; text-align: center; }
}

/* About timeline milestone figure */
.tl-figure { margin: 12px 0 0; border-radius: 11px; overflow: hidden; max-width: 420px; }
.tl-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.tl-figure .caption-credit { font-size: 10px; }

/* Neural strip on homepage */
.af-neural-strip { position: relative; overflow: hidden; padding: 40px 60px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.neural-stats > div { display: flex; flex-direction: column; }
.neural-stats b { font-size: 32px; letter-spacing: -.04em; color: var(--text); }
.neural-stats span { font-size: 12px; color: var(--text-secondary); }
.neural-stat-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.neural-stat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.08); border-color: var(--accent, #4fd2e8); }
.neural-stat-card b { font-size: 34px; letter-spacing: -.04em; color: var(--text); }
.neural-stat-card span { font-size: 12px; color: var(--text-secondary); }

/* Neural core orbit ring */
.neural-core { position: relative; z-index: 1; width: 100%; }
.neural-core-inner { position: relative; }
.neural-core[data-orbit]::before {
  content: ""; position: absolute; inset: -6px; border-radius: 18px;
  border: 1px solid rgba(79,210,232,.4); border-top-color: #4fd2e8;
  animation: orbitSpin 6s linear infinite; pointer-events: none;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* Location cards */
.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.location-card {
  position: relative; padding: 20px 18px; border: 1px solid var(--border);
  border-radius: 14px; background: var(--surface); color: var(--text);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.location-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.08); border-color: var(--accent, #4fd2e8); }
.location-card b { font-size: 14px; color: var(--text); display: block; margin-top: 10px; }
.location-card p { margin: 4px 0 0; font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.location-card .loc-meta { color: var(--text-muted); }
.loc-pin {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #4fd2e8, #3d8bff); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
@media (max-width: 700px) { .location-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .location-grid { grid-template-columns: 1fr; } }

/* Export route strip */
.export-route { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border-soft); }
.export-route span { font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 12px 20px; background: var(--surface); }
.export-route i { font-style: normal; color: var(--text-muted); font-weight: 700; }
.export-layers { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
@media (max-width:700px){ .export-layers { grid-template-columns: 1fr; } }

/* Halal verify strip (reuse flow look) */
.halal-verify { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.halal-verify span { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 12px 20px; font-weight: 700; font-size: 12px; letter-spacing: .06em; color: var(--text); }
.halal-verify i { font-style: normal; color: var(--text-muted); font-weight: 700; }

/* AI Product Finder flow */
.finder-flow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 8px 0 30px; }
.finder-flow span { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 11px 18px; font-weight: 700; font-size: 12px; letter-spacing: .06em; color: var(--text); }
.finder-flow i { font-style: normal; color: var(--text-muted); font-weight: 700; }

/* Contact split layout */
.contact-priority { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.contact-visual { display: flex; flex-direction: column; gap: 18px; }
.contact-visual picture img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); }
.contact-intent { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.contact-intent span { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 12px; letter-spacing: .06em; color: var(--text); }
.contact-intent i { font-style: normal; color: var(--text-muted); font-weight: 700; }
.contact-address { border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 18px; }
.contact-address strong { color: var(--text); }
.contact-address p { margin: 6px 0 0; color: var(--text-secondary); font-size: 13px; }
@media (max-width:900px){ .contact-priority { grid-template-columns: 1fr; } }

/* Neural canvas fill */
canvas[data-neural] { width: 100%; height: 100%; display: block; }

@media (max-width: 900px) {
  .wrap { width: min(100% - 32px, 1240px); }
  .section { padding: 64px 0; }
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .site-header .wrap { padding: 12px 24px; gap: 10px; }
  .af-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1240px); }
  .section { padding: 54px 0; }
  .site-header .wrap { gap: 8px; }
  .brand .brand-sub { display: none; }
  .brand > span:last-child { display: none; }
  .brand-mark, .site-header .brand-mark {
    width: 112px; height: 34px; min-width: 112px; flex-basis: 112px;
  }
  .brand-mark img, .site-header .brand-mark img {
    width: 112px; height: 34px;
  }
  .header-actions { gap: 6px; }
  .nav-link.search { display: none; }
  .cart-link { display: none; }
  .icon-btn { width: 34px; height: 34px; }
  .nav-cta { display: none; }
  .af-footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .af-footer-brand { grid-column: 1 / -1; }
  .af-footer-meta { flex-direction: column; }
}

/* ============================================================
   HEADER WORDMARK LOCK
   Root cause: the oval is 3.3:1. Parent width:auto + global
   img{max-width:100%} collapsed the mark to 0px.
   ============================================================ */
html body .site-header .brand {
  flex: 0 0 auto;
  min-width: 0;
}
html body .site-header .brand-mark {
  width: 134px !important;
  min-width: 134px !important;
  height: 40px !important;
  flex: 0 0 134px !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}
html body .site-header .brand-mark img {
  width: 134px !important;
  height: 40px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
}
.af-footer-logo {
  width: 118px;
  height: 36px;
  max-width: none;
  object-fit: contain;
  margin-bottom: 10px;
}
main section[id],
.page-intro[id],
.af-hero[id],
.af-page-hero[id],
.sec[id] {
  scroll-margin-top: 78px;
}
@media (max-width: 560px) {
  html body .site-header .brand-mark {
    width: 112px !important;
    min-width: 112px !important;
    height: 34px !important;
    flex-basis: 112px !important;
  }
  html body .site-header .brand-mark img {
    width: 112px !important;
    height: 34px !important;
  }
}
