/* ==========================================================================
   Self-hosted fonts (latin subset). No third-party request.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-800-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-900-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2");
}

/* ==========================================================================
   Karachi Traders - design system
   White base. Brand blue #363C8E. Brand red #D62B2B. Near-black #0A0E12.
   ========================================================================== */

:root {
  /* Brand */
  --blue-900: #1B1F55;
  --blue-800: #272C72;
  --blue-700: #363C8E;   /* primary brand blue */
  --blue-600: #454CA8;
  --blue-500: #5A61BE;
  --blue-100: #ECEDF8;
  --blue-050: #F5F6FC;

  --red-800: #9E1C1C;
  --red-700: #B92424;
  --red-600: #D62B2B;    /* primary brand red */
  --red-500: #E64A4A;
  --red-100: #FCEDED;

  /* Neutrals */
  --ink-950: #060A0E;
  --ink-900: #0A0E12;
  --ink-800: #141A22;
  --ink: #171C24;
  --ink-soft: #4D5665;
  --ink-mute: #656D7A;
  --line: #E1E6EF;
  --line-soft: #EEF1F6;
  --bg: #FFFFFF;
  --bg-alt: #F6F8FC;
  --white: #FFFFFF;

  /* Type */
  --font-display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Shape */
  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(10, 14, 18, 0.07);
  --shadow-md: 0 10px 30px rgba(10, 14, 18, 0.10);
  --shadow-lg: 0 26px 60px rgba(10, 14, 18, 0.16);
  --shadow-blue: 0 18px 40px rgba(54, 60, 142, 0.22);
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red-600); color: var(--white);
  padding: 12px 20px; z-index: 300;
  font-weight: 800; letter-spacing: 0.02em;
}
.skip-link:focus { left: 10px; top: 10px; }

a { color: var(--blue-700); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--red-600); }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.08;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.015em;
}
h1 { font-size: 2.3rem; font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 900; }
h2 { font-size: 1.7rem; font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; color: var(--ink-soft); }
strong { color: var(--ink-900); font-weight: 700; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--red-600); color: var(--white); border-color: var(--red-600); }
.btn-primary:hover { background: var(--red-700); border-color: var(--red-700); color: var(--white); box-shadow: 0 14px 30px rgba(214,43,43,0.30); }

.btn-blue { background: var(--blue-700); color: var(--white); border-color: var(--blue-700); }
.btn-blue:hover { background: var(--blue-800); border-color: var(--blue-800); color: var(--white); box-shadow: var(--shadow-blue); }

.btn-ghost { background: transparent; color: var(--blue-700); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-700); color: var(--blue-700); background: var(--blue-050); }

.btn-light { background: var(--white); color: var(--blue-900); border-color: var(--white); }
.btn-light:hover { background: var(--blue-050); color: var(--blue-900); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }

.btn-lg { padding: 17px 34px; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 200;
}
.header-inner {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.logo { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.logo-mark {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--blue-700); color: var(--white);
  font-family: var(--font-display); font-weight: 900; font-size: 1rem;
  letter-spacing: 0.03em;
  border-radius: 5px;
  overflow: hidden;
}
.logo-mark::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: 0; height: 0;
  border-style: solid; border-width: 0 0 16px 16px;
  border-color: transparent transparent var(--red-600) transparent;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.06rem;
  color: var(--ink-900);
  letter-spacing: -0.01em; text-transform: uppercase;
  line-height: 1.05;
}
.logo:hover .logo-text { color: var(--blue-700); }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav-link {
  display: block; padding: 11px 14px;
  border-radius: var(--radius);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.01em;
  position: relative;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2.5px; background: var(--red-600);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.18s ease;
}
.nav-link:hover, .nav-link.active { color: var(--blue-700); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.has-mega, .has-dropdown { position: relative; }
.mega-panel, .dropdown-panel {
  position: absolute; top: 100%; left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-700);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 90;
}
.has-mega:hover .mega-panel, .has-mega:focus-within .mega-panel,
.has-dropdown:hover .dropdown-panel, .has-dropdown:focus-within .dropdown-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-panel { width: 800px; padding: 28px; left: 50%; transform: translateX(-50%) translateY(8px); }
.has-mega:hover .mega-panel, .has-mega:focus-within .mega-panel { transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.mega-col-title {
  display: block; margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 2px solid var(--red-600);
  font-family: var(--font-display); font-weight: 800; font-size: 0.82rem;
  color: var(--ink-900); text-transform: uppercase; letter-spacing: 0.03em;
}
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { margin-bottom: 7px; }
.mega-col a { font-size: 0.83rem; color: var(--ink-soft); line-height: 1.45; display: block; }
.mega-col a:hover { color: var(--blue-700); }
.mega-footer { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); text-align: right; }
.mega-viewall { font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--red-600); }

.dropdown-panel { list-style: none; margin: 0; padding: 12px; min-width: 250px; }
.dropdown-panel li { margin: 0; }
.dropdown-panel a { display: block; padding: 9px 13px; border-radius: var(--radius); font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.dropdown-panel a:hover { background: var(--blue-050); color: var(--blue-700); }

.header-actions { display: flex; gap: 10px; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; flex-direction: column; }
.nav-toggle-bar + .nav-toggle-bar { margin-top: 5px; }
.nav-toggle-bar { width: 24px; height: 2.5px; background: var(--ink-900); display: block; }

/* ==========================================================================
   HERO - diagonal collage
   ========================================================================== */
.hero {
  position: relative;
  background: var(--ink-900);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column;
  z-index: 0;
}
.hero-strip {
  display: flex;
  flex: 1 1 50%;
  min-height: 0;
  transform: skewX(-11deg);
  width: 118%;
  margin-left: -9%;
}
.hero-strip + .hero-strip { margin-top: 6px; }

.hcell {
  position: relative; overflow: hidden;
  background: var(--ink-800);
  margin-right: 6px;
  min-width: 0;
}
.hcell:last-child { margin-right: 0; }

/* Panel width ratios */
.hero-strip-1 .hcell:nth-child(1) { flex: 1.05 1 0; }
.hero-strip-1 .hcell:nth-child(2) { flex: 0.55 1 0; }
.hero-strip-1 .hcell:nth-child(3) { flex: 1.15 1 0; }
.hero-strip-1 .hcell:nth-child(4) { flex: 1.40 1 0; }
.hero-strip-2 .hcell:nth-child(1) { flex: 0.35 1 0; }
.hero-strip-2 .hcell:nth-child(2) { flex: 1.10 1 0; }
.hero-strip-2 .hcell:nth-child(3) { flex: 1.20 1 0; }
.hero-strip-2 .hcell:nth-child(4) { flex: 1.50 1 0; }

.hcell > .hcell-inner {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  transform: skewX(11deg) scale(1.30);
  background-size: cover; background-position: center;
  background-color: var(--ink-800);
}
.hcell-blue { background: var(--blue-700); }
.hcell-blue > .hcell-inner { background: var(--blue-700); }
.hcell-red { background: var(--red-600); }
.hcell-red > .hcell-inner { background: var(--red-600); }
.hcell-empty { background: transparent; }
.hcell-empty > .hcell-inner { background: transparent; }

/* Photo slots. Real <img> elements inside each cell - see intake.py for the mapping. */
.hcell-photo .hcell-inner {
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.030) 0 2px, rgba(255,255,255,0) 2px 13px),
    linear-gradient(150deg, #2A3550 0%, #1A2334 45%, #10161F 100%);
}
.hcell-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hcell-label {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  transform: skewX(11deg);
  transform-origin: left bottom;
  padding: 8px 14px;
  background: rgba(6,10,14,0.72);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-display);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* Scrim so text stays legible over any photo */
.hero-scrim {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(6,10,14,0.08) 0%, rgba(6,10,14,0.30) 24%, rgba(6,10,14,0.72) 40%, rgba(6,10,14,0.93) 55%, rgba(6,10,14,0.97) 100%);
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: 104px 28px 92px;
  display: flex; justify-content: flex-end; align-items: center;
  min-height: 620px;
}
.hero-copy { width: 58%; min-width: 0; }

.hero-kicker {
  font-family: var(--font-display);
  font-weight: 800; font-size: 0.95rem;
  color: var(--white);
  text-transform: uppercase; letter-spacing: 0.08em;
  line-height: 1.4; margin: 0 0 22px;
  max-width: 26ch;
}
.hero-kicker::before {
  content: ""; display: block;
  width: 62px; height: 4px; background: var(--red-600);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  font-size: clamp(3.1rem, 8.4vw, 7.1rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0 0 26px;
  color: var(--white);
}
.hero-title .ht-1 { display: block; color: var(--white); }
.hero-title .ht-2 { display: block; color: var(--red-600); }

.hero-lede {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem; line-height: 1.66;
  max-width: 52ch; margin: 0 0 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Trust bar (brand blue) ---------- */
.trust-bar { background: var(--blue-700); color: var(--white); padding: 26px 0; }
.trust-bar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.trust-item {
  display: flex; align-items: center; gap: 14px;
  color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 0.94rem;
  line-height: 1.3;
}
.trust-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(255,255,255,0.14);
  border-left: 3px solid var(--red-600);
  color: var(--white);
  font-family: var(--font-display); font-weight: 900; font-size: 0.8rem;
  letter-spacing: 0.03em;
}

/* ---------- Sections ---------- */
.section { padding: 86px 0; }
.section-tight { padding: 56px 0; }
.section-intro { padding: 56px 0 52px; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink-900); color: rgba(255,255,255,0.82); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.75); }

.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; margin-right: 0; text-align: left; max-width: 860px; }
.section-head p { font-size: 1.06rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 0.76rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red-600); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; background: var(--red-600); display: block;
}
.section-head:not(.left) .eyebrow { justify-content: center; }
.section-dark .eyebrow { color: var(--red-500); }
.section-dark .eyebrow::before { background: var(--red-500); }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cat-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 22px 28px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cat-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 4px; background: var(--red-600);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.cat-card:hover::before { transform: scaleX(1); }
.cat-icon {
  width: 62px; height: 62px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-700); color: var(--white);
  border-radius: 8px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.15rem;
  letter-spacing: 0.02em;
  transition: background 0.18s ease;
}
.cat-card:hover .cat-icon { background: var(--red-600); }
.cat-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.cat-card p { font-size: 0.85rem; margin: 0; color: var(--ink-mute); line-height: 1.5; }

/* ---------- Office cards ---------- */
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.office-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue-700);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.office-card + .office-card { margin-top: 0; }
.office-card-lg { padding: 40px; }
.office-card-lg h2 { font-size: 1.5rem; margin-bottom: 6px; }
.office-flag {
  display: inline-block; margin-bottom: 14px;
  padding: 5px 13px;
  background: var(--red-600); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 3px;
}
.office-role { color: var(--ink-900); font-weight: 700; margin-bottom: 12px; font-family: var(--font-display); }
.office-card address { font-style: normal; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.7; }

/* ---------- Steps ---------- */
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-list-4 { grid-template-columns: repeat(4, 1fr); }
.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 16px;
  background: var(--blue-700); color: var(--white);
  border-radius: 6px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.05rem;
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { margin: 0; font-size: 0.95rem; }
.section-alt .step-card { background: var(--white); }

/* ---------- Subcategory cards ---------- */
.sub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sub-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.sub-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.sub-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.sub-card h3 a { color: var(--ink-900); }
.sub-card h3 a:hover { color: var(--blue-700); }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--blue-100); }
.product-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--blue-050) 0%, var(--bg-alt) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute);
  font-family: var(--font-display);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-soft);
}
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 0.95rem; margin-bottom: 8px; line-height: 1.35; }
.product-body p { font-size: 0.83rem; margin: 0 0 14px; color: var(--ink-mute); line-height: 1.55; flex: 1; }
.product-tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-700); background: var(--blue-100);
  padding: 5px 11px; border-radius: 3px;
}

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
}
.testimonial-card::before {
  content: "";
  position: absolute; top: 0; left: 30px;
  width: 46px; height: 4px; background: var(--red-600);
}
.testimonial-quote { font-size: 1.02rem; color: var(--ink); margin-bottom: 18px; line-height: 1.65; }
.testimonial-attr {
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 800;
  color: var(--blue-700);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--blue-700);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 62px 48px;
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: 260px; height: 100%;
  background: var(--blue-800);
  transform: skewX(-14deg); transform-origin: top right;
  right: -80px;
}
.cta-band::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 130px; height: 8px; background: var(--red-600);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.86); max-width: 62ch; margin: 0 auto 26px; font-size: 1.05rem; }
.cta-band-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.cta-band .btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); color: var(--white); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-display);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.blog-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-body h3 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.32; }
.blog-body h3 a { color: var(--ink-900); }
.blog-body h3 a:hover { color: var(--blue-700); }
.blog-body p { font-size: 0.92rem; flex: 1; }
.blog-body > a:last-child {
  font-family: var(--font-display); font-weight: 800; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--red-600);
}
.blog-meta {
  display: inline-block; margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red-600);
}

/* ---------- Article ---------- */
.article-body { max-width: 760px; margin: 0 auto; }
.article-wide { max-width: 920px; }
.article-body p, .article-wide p { font-size: 1.06rem; line-height: 1.78; }
.article-body h2, .article-wide h2 { margin-top: 44px; }
.article-body h2:first-child, .article-wide h2:first-child { margin-top: 0; }
.article-body h2::after, .article-wide h2::after, .two-col > div > h2::after {
  content: ""; display: block;
  width: 52px; height: 4px; background: var(--red-600);
  margin-top: 16px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-item:hover { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.faq-item[open] { border-left: 4px solid var(--red-600); }
.faq-item summary {
  position: relative;
  display: block;
  padding-right: 42px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.02rem;
  color: var(--ink-900);
  cursor: pointer; list-style: none;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  color: var(--red-600); line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { margin: 14px 0 0; font-size: 0.99rem; }

/* ---------- Tables ---------- */
.compare-table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.compare-table th, .compare-table td {
  border: 1px solid var(--line); padding: 15px 18px; text-align: left; font-size: 0.94rem;
}
.compare-table thead th {
  background: var(--blue-700); color: var(--white);
  font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.82rem;
  border-color: var(--blue-700);
}
.compare-table tbody td:first-child { font-weight: 700; color: var(--ink-900); background: var(--bg-alt); }

/* ---------- Forms ---------- */
.inquiry-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--red-600);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; margin-bottom: 7px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.82rem;
  color: var(--ink-900);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.97rem; font-family: inherit; color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--blue-700); }
.form-note { font-size: 0.82rem; color: var(--ink-mute); margin: 14px 0 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.82rem; color: var(--ink-mute); padding: 20px 0 6px; font-weight: 500; }
.breadcrumb a { color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--blue-700); }
.crumb-sep { color: var(--line); margin: 0 2px; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  position: relative;
  background: var(--ink-900);
  color: var(--white);
  padding: 20px 0 62px;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; top: 0; right: -120px;
  width: 46%; height: 100%;
  background: var(--blue-700);
  transform: skewX(-13deg);
  opacity: 0.85;
}
.page-hero::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 6px;
  background: linear-gradient(90deg, var(--red-600) 0%, var(--red-600) 22%, var(--blue-700) 22%, var(--blue-700) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; max-width: 20ch; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 66ch; font-size: 1.08rem; margin-bottom: 0; }
.page-hero .breadcrumb { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .crumb-sep { color: rgba(255,255,255,0.3); }
.page-hero .blog-meta { color: var(--red-500); }

/* ---------- Layout helpers ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.two-col > div > h2 { margin-top: 40px; }
.two-col > div > h2:first-child { margin-top: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.pill {
  display: inline-block; padding: 7px 15px;
  background: var(--blue-100); color: var(--blue-700);
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.03em;
}
.pill:hover { background: var(--red-600); color: var(--white); }

.catalog-block { margin-bottom: 66px; }
.catalog-block:last-child { margin-bottom: 0; }
.block-more { margin-top: 24px; }
.center-note { text-align: center; margin-top: 34px; }

.related-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-links li { margin: 0; }
.related-links a {
  display: block; padding: 15px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-700);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.9rem;
  color: var(--ink-900);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.related-links a:hover { border-left-color: var(--red-600); color: var(--blue-700); transform: translateX(3px); }

.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.sitemap-group h2 { font-size: 1.08rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 3px solid var(--red-600); }
.sitemap-group ul { list-style: none; margin: 0; padding: 0; }
.sitemap-group li { margin-bottom: 9px; font-size: 0.92rem; }

.section-404 { text-align: center; padding: 110px 0; }
.link-list { list-style: none; margin: 28px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.link-list a {
  display: inline-block; padding: 9px 18px;
  border: 1px solid var(--line); border-radius: 3px;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
}
.link-list a:hover { border-color: var(--blue-700); background: var(--blue-050); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,0.7); padding: 72px 0 0; margin-top: 0; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1.7fr 0.85fr 1fr 0.9fr; gap: 40px;
}
.site-footer .logo-text { color: var(--white); }
.footer-tagline { color: rgba(255,255,255,0.62); font-size: 0.94rem; margin: 18px 0 24px; max-width: 34ch; }
.footer-offices { display: grid; gap: 18px; margin-bottom: 22px; }
.footer-office { border-left: 3px solid var(--red-600); padding-left: 14px; }
.footer-office strong {
  display: block; color: var(--white); margin-bottom: 5px;
  font-family: var(--font-display); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-office address { font-style: normal; font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.65; }
.footer-contact a { color: rgba(255,255,255,0.88); font-size: 0.94rem; font-weight: 600; }
.footer-contact a:hover { color: var(--red-500); }
.footer-col h3 {
  color: var(--white); font-size: 0.82rem; margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding-bottom: 10px; border-bottom: 2px solid var(--blue-700);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: rgba(255,255,255,0.68); font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 52px auto 0;
  padding: 22px 28px;
  max-width: var(--maxw);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.footer-bottom p { margin: 0; font-size: 0.83rem; color: rgba(255,255,255,0.45); }
.whatsapp-fab {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #25D366; color: var(--white); flex-shrink: 0;
}
.whatsapp-fab:hover { color: var(--white); transform: scale(1.06); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .mega-panel { width: 640px; }
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .hero-inner { display: block; min-height: 0; padding: 78px 28px 70px; }
  .hero-copy { width: 100%; }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(6,10,14,0.72) 0%, rgba(6,10,14,0.90) 55%, rgba(6,10,14,0.96) 100%);
  }
  .trust-bar-inner { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid, .blog-grid, .step-list, .step-list-4 { grid-template-columns: 1fr 1fr; }
  .office-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .related-links, .sitemap-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 66px 0; }
  .cta-band { padding: 48px 32px; }
}

@media (max-width: 760px) {
  /* Mobile nav: keep .main-nav visible so the toggle button renders,
     collapse the list itself and reveal it via the nav-open class. */
  .main-nav { flex: 0 0 auto; justify-content: flex-end; }
  .nav-toggle { display: flex; }
  .nav-list {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 10px 14px 18px;
    max-height: 78vh; overflow-y: auto;
    z-index: 150;
  }
  .nav-list.nav-open { display: flex; }
  .nav-list > li { width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav-list > li:last-child { border-bottom: none; }
  .nav-link { padding: 14px 4px; font-size: 0.98rem; }
  .nav-link::after { display: none; }

  /* Nested panels render inline on mobile */
  .mega-panel, .dropdown-panel {
    position: static; width: auto; min-width: 0;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-top: none;
    padding: 0 0 12px; background: transparent;
  }
  .has-mega:hover .mega-panel, .has-mega:focus-within .mega-panel { transform: none; }
  .mega-grid { grid-template-columns: 1fr; gap: 14px; }
  .mega-col-title { font-size: 0.78rem; }
  .mega-col a, .dropdown-panel a { padding: 7px 0; font-size: 0.86rem; }
  .mega-footer { text-align: left; margin-top: 12px; padding-top: 12px; }

  /* Header actions: keep only WhatsApp, sized to fit */
  .header-actions .btn-ghost, .header-actions .btn-blue { display: none; }
  .header-actions .btn { padding: 10px 14px; font-size: 0.72rem; letter-spacing: 0.04em; }
  .logo-mark { width: 38px; height: 38px; font-size: 0.88rem; }
  .logo-text { font-size: 0.9rem; }
  .logo { gap: 10px; }
  .header-inner { gap: 10px; padding: 12px 20px; }
  .hero-strip-1 .hcell:nth-child(4),
  .hero-strip-2 .hcell:nth-child(4) { display: none; }
  .hcell-label { display: none; }
  .cat-grid, .product-grid, .testimonial-grid, .blog-grid,
  .step-list, .step-list-4, .sub-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner, .related-links, .sitemap-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .inquiry-form { padding: 26px 20px; }
  .cta-band { padding: 38px 22px; }
  .office-card, .office-card-lg { padding: 26px; }
  .container, .header-inner, .hero-inner, .trust-bar-inner, .footer-inner { padding-left: 20px; padding-right: 20px; }
  .compare-table th, .compare-table td { padding: 11px 12px; font-size: 0.86rem; }
}

/* ==========================================================================
   Trade route: China -> Pakistan / USA (flag cards)
   ========================================================================== */
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.route-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.route-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.route-flag {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-alt);
}
.route-flag img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.route-step {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 11px;
  background: var(--ink-900); color: var(--white);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.route-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.route-body h3 { font-size: 1.18rem; margin-bottom: 6px; }
.route-role {
  display: block; margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red-600);
}
.route-body p { font-size: 0.93rem; margin: 0; flex: 1; }
.route-body address {
  font-style: normal; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.86rem; color: var(--ink-mute); line-height: 1.6;
}

/* ==========================================================================
   Full width photo band
   ========================================================================== */
.photo-band {
  position: relative;
  min-height: 420px;
  display: flex; align-items: center;
  background-color: var(--ink-900);
  background-image: url("/assets/img/band-ship.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .photo-band {
    background-image: image-set(
      url("/assets/img/band-ship.webp") type("image/webp"),
      url("/assets/img/band-ship.jpg") type("image/jpeg"));
  }
}
.photo-band::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, rgba(6,10,14,0.92) 0%, rgba(6,10,14,0.78) 42%, rgba(6,10,14,0.30) 100%);
}
.photo-band .container { position: relative; z-index: 2; }
.photo-band h2 { color: var(--white); max-width: 20ch; }
.photo-band h2::after {
  content: ""; display: block;
  width: 62px; height: 4px; background: var(--red-600); margin-top: 18px;
}
.photo-band p { color: rgba(255,255,255,0.84); max-width: 54ch; font-size: 1.06rem; }
.photo-band .eyebrow { color: var(--red-500); }
.photo-band .eyebrow::before { background: var(--red-500); }
.band-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ==========================================================================
   Feature split (image beside copy)
   ========================================================================== */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.feature-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-media::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 120px; height: 7px; background: var(--red-600);
}

@media (max-width: 980px) {
  .route-grid { grid-template-columns: 1fr; }
  .feature-split { grid-template-columns: 1fr; gap: 32px; }
  .photo-band { min-height: 340px; }
  .photo-band::before {
    background: linear-gradient(180deg, rgba(6,10,14,0.80) 0%, rgba(6,10,14,0.92) 100%);
  }
}

/* ==========================================================================
   Photo category cards (homepage / wholesale)
   ========================================================================== */
.cat-card-photo { padding: 0; text-align: left; }
.cat-card-photo .cat-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
.cat-card-photo .cat-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.cat-card-photo:hover .cat-thumb img { transform: scale(1.05); }
.cat-card-photo .cat-thumb::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, rgba(6,10,14,0) 45%, rgba(6,10,14,0.55) 100%);
}
.cat-card-photo .cat-tag {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  display: inline-block; padding: 5px 11px;
  background: var(--red-600); color: var(--white);
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 0.64rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.cat-card-photo .cat-body { padding: 22px 20px 24px; }
.cat-card-photo h3 { font-size: 1.05rem; margin-bottom: 7px; }
.cat-card-photo p { font-size: 0.85rem; margin: 0; color: var(--ink-mute); line-height: 1.5; }

/* ==========================================================================
   Page hero with photo backdrop
   ========================================================================== */
.page-hero-photo { position: relative; }
.page-hero-photo .page-hero-bg {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0; overflow: hidden;
}
.page-hero-photo .page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.page-hero-photo::before {
  z-index: 1;
  opacity: 0.72;
}
.page-hero-photo .page-hero-scrim {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(6,10,14,0.95) 0%, rgba(6,10,14,0.88) 48%, rgba(6,10,14,0.55) 100%);
}

/* ==========================================================================
   Photo strip (subcategory galleries)
   ========================================================================== */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.photo-strip figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.photo-strip img {
  width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover; display: block;
}
.photo-strip figcaption {
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-mute);
  border-top: 1px solid var(--line-soft);
}

@media (max-width: 760px) {
  .page-hero-photo .page-hero-scrim {
    background: linear-gradient(180deg, rgba(6,10,14,0.86) 0%, rgba(6,10,14,0.94) 100%);
  }
}

/* ==========================================================================
   Aspect-ratio boxes with a padding fallback.
   aspect-ratio is well supported now, but the padding technique also covers
   older Safari/Android, so media boxes never collapse.
   ========================================================================== */
.cat-card-photo .cat-thumb,
.route-flag,
.photo-strip figure .ratio,
.product-thumb,
.blog-thumb {
  position: relative;
  width: 100%;
  height: 0;
  overflow: hidden;
}
.cat-card-photo .cat-thumb { padding-top: 75%; }        /* 4:3 */
.route-flag { padding-top: 66.6667%; }                  /* 3:2 */
.photo-strip figure .ratio { padding-top: 75%; }        /* 4:3 */
.product-thumb { padding-top: 75%; }                    /* 4:3 */
.blog-thumb { padding-top: 56.25%; }                    /* 16:9 */

.cat-card-photo .cat-thumb > img,
.route-flag > picture > img,
.route-flag > img,
.photo-strip figure .ratio > img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Centre the placeholder captions now that the boxes are padding based */
.product-thumb, .blog-thumb { display: block; }
.product-thumb > span, .blog-thumb > span {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 10px;
}

.feature-media { position: relative; }
.feature-media img { width: 100%; height: auto; display: block; }

/* ==========================================================================
   CTA block with photo backdrop
   ========================================================================== */
.cta-photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ink-900);
  padding: 66px 52px;
  text-align: center;
  isolation: isolate;
}
.cta-photo .cta-photo-bg {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0;
}
.cta-photo .cta-photo-bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cta-photo::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(27,31,85,0.94) 0%, rgba(6,10,14,0.88) 55%, rgba(6,10,14,0.80) 100%);
}
.cta-photo::after {
  content: ""; position: absolute; bottom: 0; left: 0; z-index: 2;
  width: 150px; height: 8px; background: var(--red-600);
}
.cta-photo > .cta-photo-inner { position: relative; z-index: 2; }
.cta-photo h2 { color: var(--white); margin-bottom: 14px; }
.cta-photo p { color: rgba(255,255,255,0.88); max-width: 64ch; margin: 0 auto 26px; font-size: 1.06rem; }
.cta-photo .cta-band-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Answer block (AEO) - short question/answer pairs with a photo aside
   ========================================================================== */
.answer-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.answer-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.answer-media img { width: 100%; height: auto; display: block; }
.answer-media::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 110px; height: 7px; background: var(--red-600);
}
.answer-list { display: grid; gap: 18px; }
.answer-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue-700);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.answer-item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.answer-item p { margin: 0; font-size: 0.95rem; }

@media (max-width: 980px) {
  .answer-split { grid-template-columns: 1fr; gap: 30px; }
  .cta-photo { padding: 46px 28px; }
}
@media (max-width: 760px) {
  .cta-photo { padding: 36px 22px; }
}

/* ==========================================================================
   Product thumbnails
   ========================================================================== */
.product-thumb > .product-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Designed placeholder: reads as an intentional tile, not a broken image */
.product-thumb-empty {
  background:
    repeating-linear-gradient(135deg,
      rgba(54,60,142,0.10) 0 9px, rgba(54,60,142,0) 9px 20px),
    radial-gradient(circle at 50% 46%, rgba(255,255,255,0.95) 0 78px, rgba(255,255,255,0) 79px),
    linear-gradient(160deg, #DFE4F3 0%, #E9EDF6 52%, #DCE2EF 100%);
  box-shadow: inset 0 0 0 1px rgba(54,60,142,0.08);
}
.product-thumb-empty .product-mark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue-100);
  color: var(--blue-700);
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.05rem;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(54,60,142,0.10);
}
.product-card:hover .product-thumb-empty .product-mark { border-color: var(--red-600); color: var(--red-600); }
