/* Mada Overseas — main.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --sw: 265px;
  --dark: #0a1810;
  --dark2: #132318;
  --gold: #c8a84b;
  --gold2: #dbb85c;
  --bg: #f7f5f0;
  --white: #fff;
  --text: #1c1c1c;
  --muted: #6b7280;
  --border: #e8e3d9;
  --r: 8px;
  --sh: 0 2px 12px rgba(0,0,0,.08);
  --t: .2s ease;
}

html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
}

/* ── Focus visible ────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ═══ SIDEBAR ═══════════════════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sw);
  background: var(--dark);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 200;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
}

.sb-logo {
  padding: 28px 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.sb-logo a { text-decoration: none; display: block; }
.sb-logo img { max-width: 160px; height: auto; display: block; margin-bottom: 10px; }
.sb-brand { color: #fff; font-size: .98rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.sb-tag { color: var(--gold); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 3px; }

.sb-nav { padding: 8px 0; flex: 1; }

.nav-item { position: relative; }

/* top-level link / button */
.nl {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 22px;
  color: rgba(255,255,255,.68);
  font-size: .84rem; font-weight: 500;
  text-decoration: none;
  background: none; border: none; width: 100%; text-align: left;
  cursor: pointer;
  transition: all var(--t);
  border-left: 3px solid transparent;
}
.nl:hover, .nl.active { color: var(--gold); background: rgba(200,168,75,.1); }
.nl.active { border-left-color: var(--gold); }
.nav-icon { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.chev-icon { width: 13px; height: 13px; margin-left: auto; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .5; transition: transform var(--t); }
.nav-item.open > .nl .chev-icon { transform: rotate(90deg); }

/* first dropdown */
.nd1 {
  display: none;
  background: rgba(0,0,0,.22);
  border-left: 2px solid rgba(200,168,75,.18);
  margin-left: 22px;
}
.nav-item.open > .nd1 { display: block; }

.nd1-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  color: rgba(255,255,255,.55);
  font-size: .8rem; font-weight: 500;
  background: none; border: none; width: 100%; text-align: left;
  cursor: pointer;
  transition: color var(--t);
}
.nd1-btn:hover, .nd1-btn.active { color: var(--gold); }
.nd1-btn .chev-icon { margin-left: auto; }
.nd1-group.open > .nd1-btn .chev-icon { transform: rotate(90deg); }

/* second dropdown */
.nd2 {
  display: none;
  background: rgba(0,0,0,.18);
  border-left: 2px solid rgba(200,168,75,.1);
  margin-left: 16px;
}
.nd1-group.open > .nd2 { display: block; }

.nd2 a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  color: rgba(255,255,255,.45);
  font-size: .77rem;
  text-decoration: none;
  transition: color var(--t);
}
.nd2 a:hover, .nd2 a.active { color: var(--gold); }
.nd2 a .star-icon { color: var(--gold); width: 8px; height: 8px; fill: var(--gold); stroke: none; flex-shrink: 0; opacity: .75; }

.sb-sep { height: 1px; background: rgba(255,255,255,.06); margin: 6px 22px; }

.sb-foot {
  padding: 16px 22px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .68rem;
  color: rgba(255,255,255,.22);
  line-height: 1.7;
  flex-shrink: 0;
}
.sb-legal { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.sb-legal a { color: rgba(255,255,255,.3); text-decoration: none; font-size: .66rem; }
.sb-legal a:hover { color: var(--gold); }

/* ═══ MAIN ══════════════════════════════════════════════════════════════════ */
.main {
  margin-left: var(--sw);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* mobile topbar */
.topbar {
  display: none;
  align-items: center;
  padding: 14px 20px;
  background: var(--dark);
  position: sticky; top: 0; z-index: 100;
}
.topbar-brand { display: block; height: 32px; width: auto; object-fit: contain; }
.topbar-toggle {
  margin-left: auto; background: none; border: none;
  color: #fff; font-size: 0; cursor: pointer; padding: 4px 8px; line-height: 1;
  min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center;
}

.sb-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 199;
}

.content { flex: 1; min-width: 0; }

/* ═══ PAGE HERO ─────────────────────────────────────────────────────────── */
.ph {
  background: linear-gradient(135deg, #081410 0%, #132318 55%, #1b3322 100%);
  padding: 48px 56px;
  color: #fff;
  position: relative; overflow: hidden;
}
.ph::after {
  content: '';
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
  width: 160px; height: 160px;
  border: 2px solid rgba(200,168,75,.18); border-radius: 50%;
  pointer-events: none;
}
.ph::before {
  content: '';
  position: absolute; right: 88px; top: 50%; transform: translateY(-50%);
  width: 80px; height: 80px;
  background: rgba(200,168,75,.06); border-radius: 50%;
  pointer-events: none;
}
.ph-label {
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px; display: block; font-weight: 600;
}
.ph h1 { font-size: 2rem; font-weight: 700; letter-spacing: -.025em; margin-bottom: 8px; line-height: 1.2; }
.ph p { color: rgba(255,255,255,.6); font-size: .88rem; max-width: 500px; }

/* ═══ HOME HERO ─────────────────────────────────────────────────────────── */
.home-hero {
  background: var(--dark);
  background-image: url('../images/hero/hero-bg.jpg');
  background-size: cover; background-position: center;
  min-height: 440px;
  position: relative;
  display: flex; align-items: center;
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg,rgba(8,20,16,.93) 0%,rgba(8,20,16,.65) 55%,rgba(8,20,16,.28) 100%);
}
.hh-inner {
  position: relative; z-index: 1;
  padding: 60px 56px;
  max-width: 640px;
}
.hh-label { color: var(--gold); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.hh-inner h1 { font-size: 2.7rem; font-weight: 700; letter-spacing: -.03em; color: #fff; line-height: 1.15; margin-bottom: 16px; }
.hh-inner h1 span { color: var(--gold); }
.hh-inner p { color: rgba(255,255,255,.62); font-size: .91rem; margin-bottom: 28px; line-height: 1.75; }
.hh-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ═══ STATS BAR ─────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--gold);
  padding: 20px 56px;
  display: flex; gap: 40px; align-items: center; flex-wrap: wrap;
  justify-content: flex-start;
}
.stat { text-align: left; }
.stat-n { font-size: 1.55rem; font-weight: 700; color: var(--dark); line-height: 1; }
.stat-l { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(10,24,16,.6); margin-top: 3px; }

/* ═══ SECTIONS ──────────────────────────────────────────────────────────── */
.section { padding: 52px 56px; }
.sec-hdr { margin-bottom: 30px; }
.sec-eye { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; display: block; font-weight: 600; }
.sec-title { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }
.sec-sub { color: var(--muted); font-size: .875rem; margin-top: 4px; }

/* ═══ CARDS ─────────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card {
  background: var(--white);
  border-radius: var(--r); border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--sh);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,.12); }
.card-img {
  width: 100%; height: 172px; object-fit: cover; display: block;
  background: #ddd8cc;
}
.card-ph {
  width: 100%; height: 172px;
  background: linear-gradient(135deg, #243d2e, #162a1e);
  display: flex; align-items: center; justify-content: center;
  font-size: 0;
}
.card-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card-badge {
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 20px;
  background: rgba(200,168,75,.12); color: #8a6a10;
  display: inline-block; margin-bottom: 8px; align-self: flex-start;
}
.card-badge.import { background: #eff6ff; color: #1d4ed8; }
.card-title { font-size: 1rem; font-weight: 600; margin-bottom: 5px; }
.card-desc { font-size: .8rem; color: var(--muted); line-height: 1.55; flex: 1; margin-bottom: 14px; }
.card-cta {
  font-size: .8rem; font-weight: 600; color: var(--dark);
  display: inline-flex; align-items: center; gap: 4px;
  border-bottom: 1.5px solid var(--gold); padding-bottom: 1px;
  transition: color var(--t);
}
.card:hover .card-cta { color: var(--gold); }

/* ═══ PRODUCT HERO ──────────────────────────────────────────────────────── */
.prod-hero { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 320px; }
.prod-hero-info {
  background: linear-gradient(135deg, #081410, #142a1c);
  padding: 52px 56px; color: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
.prod-hero-info .ph-label { color: var(--gold); }
.prod-hero-info h1 { font-size: 2rem; font-weight: 700; letter-spacing: -.025em; margin-bottom: 10px; }
.prod-hero-info p { color: rgba(255,255,255,.6); font-size: .87rem; line-height: 1.75; margin-bottom: 22px; }
.prod-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; font-weight: 600;
}
.tag-export { background: rgba(200,168,75,.18); color: var(--gold); }
.tag-import { background: rgba(59,130,246,.18); color: #93c5fd; }
.tag-spec { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }

.prod-hero-img { position: relative; overflow: hidden; min-height: 300px; }
.prod-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-hero-img-ph {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #243d2e, #0f2018);
  display: flex; align-items: center; justify-content: center;
  font-size: 0;
}

/* ═══ GRADES GRID ───────────────────────────────────────────────────────── */
.grades { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grade-card {
  background: var(--white);
  border-radius: var(--r); border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--sh);
  transition: transform .2s, box-shadow .2s;
}
.grade-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.11); }
.grade-card img { width: 100%; height: 215px; object-fit: cover; display: block; }
.grade-card-ph {
  width: 100%; height: 215px;
  background: linear-gradient(135deg, #2a4438, #162a20);
  display: flex; align-items: center; justify-content: center; font-size: 0;
}
.grade-card-body { padding: 18px 20px; }
.grade-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 3px; }
.grade-sub { font-size: .8rem; color: var(--muted); margin-bottom: 12px; }

/* ═══ GRADE ROW ─────────────────────────────────────────────────────────── */
.grade-row {
  display: grid; grid-template-columns: 340px 1fr; gap: 0;
  background: var(--white); border-radius: var(--r); border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--sh); margin-bottom: 24px;
}
.grade-row-img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 220px; }
.grade-row-body { padding: 26px 30px; }

/* ═══ SPEC LIST ─────────────────────────────────────────────────────────── */
.spec-list { list-style: none; padding: 0; margin: 14px 0 0; }
.spec-list li {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .875rem;
}
.spec-list li:last-child { border-bottom: none; }
.spec-k { font-weight: 600; color: var(--dark); }
.spec-v { color: var(--muted); }

/* ═══ ORIGIN BAND ───────────────────────────────────────────────────────── */
.origin-band {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--dark); color: var(--white);
  border-radius: var(--r); padding: 16px 24px;
  margin-top: 8px;
}
.origin-label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.origin-val { font-size: .95rem; font-weight: 600; }

/* ═══ SPEC TABLE ────────────────────────────────────────────────────────── */
.spec-wrap { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--sh); overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 400px; }
.spec-table thead th {
  background: var(--dark); color: var(--gold);
  padding: 12px 18px; text-align: left;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}
.spec-table tbody td { padding: 11px 18px; border-bottom: 1px solid var(--border); }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table tbody tr:nth-child(even) td { background: #fbf9f5; }
.spec-table td:first-child { font-weight: 600; color: var(--dark); width: 42%; }

/* ═══ FORMS ─────────────────────────────────────────────────────────────── */
.form-wrap {
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--border); padding: 38px 44px;
  box-shadow: var(--sh); max-width: 880px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; align-items: start; }
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg.full { grid-column: 1/-1; }
.fg label { font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.fg label .req { color: #dc2626; margin-left: 2px; }
.f {
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: .875rem; color: var(--text);
  background: #fff; font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.f:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,168,75,.14); }
textarea.f { resize: vertical; min-height: 110px; }
.f-hint { font-size: .72rem; color: var(--muted); }
.form-hr { grid-column: 1/-1; border: none; border-top: 1px solid var(--border); }

/* Honeypot - hidden from real users and keyboard focus. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ═══ BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 6px;
  font-size: .875rem; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  font-family: inherit; transition: all var(--t); line-height: 1;
  min-height: 44px;
}
.btn:disabled { opacity: .65; cursor: not-allowed; }
.btn-dark { background: var(--dark); color: var(--gold); }
.btn-dark:hover:not(:disabled) { background: var(--dark2); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover:not(:disabled) { background: var(--gold2); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .8rem; min-height: 36px; }

/* ═══ ALERTS ────────────────────────────────────────────────────────────── */
.alert { display: none; padding: 13px 16px; border-radius: 6px; font-size: .875rem; align-items: center; gap: 10px; margin-bottom: 20px; }
.alert.show { display: flex; }
.alert-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-icon { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ═══ INFO BOX ──────────────────────────────────────────────────────────── */
.info-box {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(200,168,75,.07);
  border: 1px solid rgba(200,168,75,.28);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: .85rem; color: #5a4a15; margin-bottom: 28px;
}

/* ═══ CONTACT PAGE ──────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.offices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cc {
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--border); padding: 26px; box-shadow: var(--sh);
}
.cc-region { font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 5px; }
.cc-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 1px; }
.cc-role { font-size: .78rem; color: var(--muted); margin-bottom: 14px; }
.cc-row { display: flex; align-items: flex-start; gap: 9px; font-size: .8rem; color: var(--muted); margin-bottom: 7px; }
.cc-row a { color: inherit; text-decoration: none; }
.cc-row a:hover { color: var(--gold); }
.cc-icon { color: var(--gold); flex-shrink: 0; width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.map-wrap { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.map-wrap iframe { display: block; width: 100%; }

/* ═══ ABOUT PAGE ────────────────────────────────────────────────────────── */
.about-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.about-dark-box {
  background: linear-gradient(135deg,#0a1810,#162a1e);
  border-radius: 10px;
  padding: 32px;
  color: #fff;
}
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mission-card {
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--border); padding: 28px; box-shadow: var(--sh);
}
.mc-label { font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; display: block; }
.mc-title { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.mission-card ul { padding-left: 18px; font-size: .84rem; color: var(--muted); line-height: 1.85; }
.mission-card p { font-size: .84rem; color: var(--muted); line-height: 1.75; }

.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.dir-card {
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--border); padding: 26px; box-shadow: var(--sh);
}
.dir-role { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.dir-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; }
.dir-title { font-size: .78rem; color: var(--muted); margin-bottom: 12px; }
.dir-row { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.dir-row a { color: inherit; text-decoration: none; }
.dir-row a:hover { color: var(--gold); }
.dir-ico { color: var(--gold); flex-shrink: 0; width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ═══ FOOTER ────────────────────────────────────────────────────────────── */
.page-footer {
  background: var(--dark);
  color: rgba(255,255,255,.35);
  padding: 22px 56px;
  font-size: .77rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: auto; flex-wrap: wrap;
}
.page-footer a { color: var(--gold); text-decoration: none; }
.footer-copy { display: flex; flex-direction: column; gap: 2px; }
.footer-policies { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-policies a { color: rgba(255,255,255,.45); font-size: .74rem; }
.footer-policies a:hover { color: var(--gold); }

/* ═══ LEGAL PAGES ───────────────────────────────────────────────────────── */
.legal-body { max-width: 760px; padding: 40px 56px 60px; }
.legal-body h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }
.legal-body .legal-date { color: var(--muted); font-size: .82rem; margin-bottom: 32px; display: block; }
.legal-body h2 { font-size: .95rem; font-weight: 700; margin: 28px 0 8px; text-transform: uppercase; letter-spacing: .04em; color: var(--text); }
.legal-body p { font-size: .88rem; line-height: 1.75; color: var(--muted); margin-bottom: 12px; }
.legal-body ul { padding-left: 20px; margin: 8px 0 12px; }
.legal-body li { font-size: .88rem; line-height: 1.75; color: var(--muted); }
.legal-body a { color: #2d7a50; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-toc { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 24px; margin-bottom: 32px; }
.legal-toc p { font-size: .8rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.legal-toc ol { padding-left: 18px; }
.legal-toc li { font-size: .82rem; color: var(--muted); line-height: 1.9; }
.legal-toc a { color: #2d7a50; text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

/* ═══ DIVIDER ───────────────────────────────────────────────────────────── */
.section + .section { border-top: 1px solid var(--border); }

/* ═══ CTA BAND ──────────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #081410, #142a1c);
  padding: 48px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 1.4rem; font-weight: 700; color: #fff; }
.cta-band p { color: rgba(255,255,255,.55); font-size: .875rem; margin-top: 4px; }

/* ═══ RESPONSIVE ════════════════════════════════════════════════════════════ */

/* ── Tablet (1024px) ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sw: 240px; }
  .section { padding: 44px 40px; }
  .hh-inner { padding: 50px 40px; }
  .ph { padding: 40px 40px; }
  .cta-band { padding: 40px 40px; }
  .stats-bar { padding: 18px 40px; gap: 32px; }
  .page-footer { padding: 20px 40px; }
  .form-wrap { padding: 30px 36px; }
  .grade-row { grid-template-columns: 280px 1fr; }
}

/* ── Tablet narrow (960px) ────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .grades { grid-template-columns: 1fr; }
  .prod-hero { grid-template-columns: 1fr; }
  .prod-hero-img { min-height: 260px; }
  .mission-grid { grid-template-columns: 1fr; }
  .about-overview { grid-template-columns: 1fr; }
  .grade-row { grid-template-columns: 1fr; }
  .grade-row-img img { min-height: 220px; max-height: 280px; }
}

/* ── Mobile (768px) ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 28px rgba(0,0,0,.4); }
  .sb-overlay.show { display: block; }
  .main { margin-left: 0; }
  .topbar { display: flex; }

  .ph, .hh-inner { padding: 28px 20px; }
  .ph h1, .hh-inner h1 { font-size: 1.65rem; }
  .ph::after, .ph::before { display: none; }

  .stats-bar { padding: 16px 20px; gap: 20px; justify-content: space-around; }
  .stat-n { font-size: 1.3rem; }

  .section { padding: 32px 20px; }
  .form-wrap { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }

  .page-footer { flex-direction: column; align-items: flex-start; padding: 20px; gap: 8px; }
  .contact-grid, .dir-grid { grid-template-columns: 1fr; }
  .offices-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-band { padding: 32px 20px; text-align: left; flex-direction: column; align-items: flex-start; }
  .cta-band > div:last-child { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }

  .cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

  .prod-hero-info { padding: 28px 20px; }
  .prod-hero-info h1 { font-size: 1.5rem; }

  .grade-row-body { padding: 18px 20px; }

  .info-box { margin-left: 0; margin-right: 0; }

  .hh-btns { flex-direction: column; }
  .hh-btns .btn { text-align: center; justify-content: center; }
}

/* ── Small mobile (430px) ─────────────────────────────────────────────────── */
@media (max-width: 430px) {
  .ph h1, .hh-inner h1 { font-size: 1.45rem; }
  .cards { grid-template-columns: 1fr; }
  .offices-grid { grid-template-columns: 1fr; }
  .stats-bar { gap: 16px; }
  .form-wrap { padding: 18px 14px; }
  .btn { padding: 10px 18px; font-size: .84rem; }
}
