/* =========================================================
   AmbiSecure · eSIM Initiative — Shared Stylesheet
   Official Ambimat brand palette:
     Red #E3222A · Grey #616A6C · Dark Grey #3A3F40
     White #FFFFFF · Soft Grey #F4F5F6
   Type: Montserrat (headings), Source Sans 3 (body),
         JetBrains Mono (technical)
   ========================================================= */

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

:root {
  /* Brand */
  --brand-red: #E3222A;
  --brand-red-dark: #B81A21;
  --brand-grey: #616A6C;
  --brand-dark: #3A3F40;
  --brand-soft: #F4F5F6;

  /* Aliases (legacy names mapped onto brand colors) */
  --bg: #ffffff;
  --bg-alt: var(--brand-soft);
  --grid-line: #e5e5e5;
  --card: #eef0f1;
  --card-soft: #f0f0f1;
  --ink: #1a1d1e;
  --ink-2: var(--brand-dark);
  --muted: var(--brand-grey);
  --muted-2: #8a9295;
  --line: #e2e2e4;
  --dark: var(--brand-dark);
  --dark-2: #2a2e2f;
  --accent: var(--brand-red);
  --accent-dark: var(--brand-red-dark);
  --black: #111213;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Sans 3', 'Source Sans Pro', 'Roboto', 'Segoe UI', sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.logo, .nav-links a, .btn, .nav-btn,
.section-title, .hero-title, .eyebrow,
.brand-line, .ecosystem-label,
.footer h4, .stat-num {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  letter-spacing: -0.1px;
}

code, pre, .mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

img { max-width: 100%; display: block; }
a { color: inherit; }

/* =========================================================
   ECOSYSTEM BAR (top utility nav)
   Communicates: Ambimat ecosystem · AmbiSecure · eSIM
   ========================================================= */
.ecosystem-bar {
  background: var(--brand-dark);
  color: #d8dadb;
  font-size: 12.5px;
  letter-spacing: 0.2px;
  border-bottom: 1px solid #4a5051;
}
.ecosystem-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 9px 80px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.ecosystem-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.4px;
  color: #9aa0a3;
}
.ecosystem-bar a {
  color: #d8dadb;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  padding: 4px 2px;
  transition: color .2s ease;
}
.ecosystem-bar a:hover { color: #ffffff; }
.ecosystem-bar a.current {
  color: #ffffff;
}
.ecosystem-bar a.current::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 2px;
  background: var(--brand-red);
}
.ecosystem-bar .ext::after {
  content: ' ↗';
  font-size: 10px;
  opacity: .6;
}
.ecosystem-bar .spacer { flex: 1; }
.ecosystem-bar .meta {
  font-size: 11.5px;
  color: #9aa0a3;
  font-family: 'Montserrat', sans-serif;
}

/* =========================================================
   NAVBAR
   "Logo top-left, white background, grey underline" — per brand
   ========================================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 80px;
  background: #fff;
  border-bottom: 1px solid var(--brand-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}
.navbar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-red) 30%, var(--brand-red) 70%, transparent);
  opacity: 0.35;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  height: 44px;
  width: 44px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-line {
  font-weight: 700;
  font-size: 15px;
  color: var(--brand-dark);
  letter-spacing: 0.2px;
}
.brand-line .accent { color: var(--brand-red); }
.brand-tag {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--brand-grey);
  margin-top: 2px;
  font-weight: 500;
}
.brand-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
  margin: 0 4px;
}

/* legacy .logo class kept for fallback */
.logo {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.logo span { color: var(--brand-red); }

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.2px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-red);
  border-color: var(--brand-red);
}

.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-btn {
  background: var(--brand-red);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.3px;
  text-decoration: none;
  display: inline-block;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.nav-btn:hover {
  background: var(--brand-red-dark);
  box-shadow: 0 6px 14px rgba(227,34,42,0.22);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span { width: 25px; height: 3px; background: var(--brand-dark); transition: .25s; border-radius: 1px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 78vh;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(227,34,42,0.04), transparent 55%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    #ffffff;
  background-size: auto, 60px 60px, 60px 60px, auto;
  padding: 80px 80px 120px;
  display: flex;
  align-items: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, transparent 49.5%, rgba(227,34,42,0.04) 49.5%, rgba(227,34,42,0.04) 50.5%, transparent 50.5%);
  background-size: 18px 18px;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 60% 60% at 100% 0%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 100% 0%, black, transparent 70%);
}

.hero-container {
  max-width: 1320px;
  margin: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
}

.hero-left { flex: 1.05; }
.hero-right { flex: 0.95; display: flex; justify-content: center; }

.hero-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 2.6px;
  color: var(--brand-red);
  margin-bottom: 18px;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-tag::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--brand-red);
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 22px;
  letter-spacing: -0.8px;
}
.hero-title .accent { color: var(--brand-red); }

.hero-desc {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--brand-grey);
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-creds {
  margin-top: 28px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--brand-grey);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.hero-creds span { display: inline-flex; align-items: center; gap: 8px; }
.hero-creds span::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--brand-red);
  border-radius: 50%;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: all .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: 0.4px;
}
.btn-primary { background: var(--brand-red); color: #fff; }
.btn-primary:hover { background: var(--brand-red-dark); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(227,34,42,0.22); }

.btn-dark { background: var(--brand-dark); color: #fff; }
.btn-dark:hover { background: var(--brand-red); }

.btn-outline { background: transparent; color: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline:hover { background: var(--brand-dark); color: #fff; }

.btn-ghost { background: transparent; color: var(--brand-dark); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-red); color: var(--brand-red); }

/* =========================================================
   SECTIONS
   ========================================================= */
section { padding: 100px 80px; }
section.alt { background: var(--brand-soft); }

.section-container { max-width: 1280px; margin: auto; }
.section-narrow { max-width: 1000px; margin: auto; }

.section-head { text-align: center; margin-bottom: 60px; }
.section-head.left { text-align: left; }

.eyebrow {
  font-size: 11.5px;
  letter-spacing: 2.6px;
  color: var(--brand-red);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--brand-red);
  margin: 14px auto 22px;
}
.section-head.left .section-line { margin-left: 0; }

.section-desc {
  font-size: 16.5px;
  color: var(--brand-grey);
  line-height: 1.75;
  max-width: 760px;
  margin: 0 auto;
}
.section-head.left .section-desc { margin: 0; }

/* =========================================================
   GRIDS / CARDS
   ========================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: 6px;
  transition: all .25s ease;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 0;
  height: 3px;
  background: var(--brand-red);
  transition: width .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(58,63,64,0.08);
  border-color: #d8d8da;
}
.card:hover::before { width: 36px; }

.card-soft {
  background: var(--card);
  padding: 30px;
  border-radius: 6px;
  transition: all .25s ease;
}
.card-soft:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(58,63,64,0.08); }

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
}
.card p { color: var(--brand-grey); font-size: 15px; line-height: 1.7; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: rgba(227,34,42,0.08);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
}

/* Feature row */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-row.reverse > :first-child { order: 2; }

.feature-visual {
  background: var(--card);
  border-radius: 8px;
  padding: 40px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-grey);
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.feature-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(45deg, transparent 49.5%, rgba(227,34,42,0.06) 49.5%, rgba(227,34,42,0.06) 50.5%, transparent 50.5%);
  background-size: 14px 14px;
  pointer-events: none;
}

/* =========================================================
   STATS / PILLARS
   ========================================================= */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.stat {
  text-align: center;
  padding: 24px 12px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat-num { font-size: 32px; font-weight: 700; color: var(--brand-red); }
.stat-label { font-size: 13px; color: var(--brand-grey); margin-top: 8px; letter-spacing: 0.3px; font-family: 'Montserrat', sans-serif; }

/* =========================================================
   ARCHITECTURE DIAGRAM
   ========================================================= */
.arch {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: stretch;
  justify-content: center;
  margin: 30px auto;
  max-width: 1100px;
}
.arch-node {
  flex: 1 1 160px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 18px;
  text-align: center;
  position: relative;
  margin: 8px;
  min-width: 160px;
}
.arch-node h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
}
.arch-node p { font-size: 12px; color: var(--brand-grey); line-height: 1.5; }
.arch-node.accent { border-color: var(--brand-red); background: #fff8f8; }
.arch-arrow {
  align-self: center;
  color: var(--brand-red);
  font-size: 22px;
  font-weight: 700;
}

/* =========================================================
   CALLOUT
   ========================================================= */
.callout {
  background: var(--brand-dark);
  color: #fff;
  border-radius: 6px;
  padding: 56px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(45deg, transparent 49.5%, rgba(227,34,42,0.10) 49.5%, rgba(227,34,42,0.10) 50.5%, transparent 50.5%);
  background-size: 16px 16px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 50% 100% at 100% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 50% 100% at 100% 50%, black, transparent 80%);
}
.callout > * { position: relative; }
.callout h2 { font-size: 26px; font-weight: 700; margin-bottom: 10px; font-family: 'Montserrat', sans-serif; letter-spacing: -0.3px; }
.callout p { color: #c9cccd; max-width: 620px; font-size: 15px; line-height: 1.7; }

/* =========================================================
   LISTS
   ========================================================= */
.bullet-list { list-style: none; padding: 0; }
.bullet-list li {
  padding: 10px 0 10px 26px;
  position: relative;
  color: var(--brand-grey);
  line-height: 1.7;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.bullet-list li:last-child { border-bottom: none; }
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 19px;
  width: 8px;
  height: 8px;
  background: var(--brand-red);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* =========================================================
   PROSE
   ========================================================= */
.prose { max-width: 820px; margin: auto; color: var(--brand-dark); }
.prose h1 { font-family: 'Montserrat', sans-serif; font-size: 38px; font-weight: 700; line-height: 1.18; margin-bottom: 18px; color: var(--ink); letter-spacing: -0.6px; }
.prose h2 { font-family: 'Montserrat', sans-serif; font-size: 26px; font-weight: 700; margin: 44px 0 14px; color: var(--ink); letter-spacing: -0.3px; }
.prose h3 { font-family: 'Montserrat', sans-serif; font-size: 19px; font-weight: 700; margin: 28px 0 10px; color: var(--ink); }
.prose p { font-size: 16.5px; line-height: 1.85; margin-bottom: 16px; color: var(--brand-grey); }
.prose ul, .prose ol { margin: 10px 0 20px 22px; }
.prose li { font-size: 16.5px; line-height: 1.85; margin-bottom: 8px; color: var(--brand-grey); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose blockquote {
  border-left: 3px solid var(--brand-red);
  padding: 8px 18px;
  margin: 22px 0;
  color: var(--brand-grey);
  background: var(--brand-soft);
  border-radius: 0 6px 6px 0;
}
.prose code {
  background: var(--brand-soft);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  color: var(--brand-red-dark);
}
.prose pre {
  background: #14161a;
  color: #e6e6ea;
  padding: 18px 20px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 18px 0 22px;
  font-size: 13.5px;
  line-height: 1.6;
  border: 1px solid #1e2026;
}
.prose pre code { background: transparent; color: inherit; padding: 0; font-size: 13.5px; border-radius: 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 14.5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.prose thead { background: var(--brand-soft); }
.prose th, .prose td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
}
.prose th {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.prose td { color: var(--brand-grey); }
.prose tbody tr:last-child th,
.prose tbody tr:last-child td { border-bottom: none; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 36px 0; }
.prose a { color: var(--brand-red); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-red-dark); }

.post-meta {
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 18px;
  letter-spacing: 0.3px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-weight: 600;
}
.post-meta span + span::before { content: '·'; margin: 0 8px; color: var(--line); }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 30px;
  font-family: 'Montserrat', sans-serif;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--brand-red);
  font-size: 22px;
  font-weight: 400;
  transition: transform .2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; color: var(--brand-grey); font-size: 15px; line-height: 1.75; }

/* Tag chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* =========================================================
   BLOG INDEX CARD
   ========================================================= */
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.blog-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 0;
  height: 3px;
  background: var(--brand-red);
  transition: width .25s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(58,63,64,0.08);
  border-color: #d8d8da;
}
.blog-card:hover::before { width: 36px; }
.blog-card .chip { background: rgba(227,34,42,0.08); color: var(--brand-red-dark); align-self: flex-start; margin-bottom: 14px; }
.blog-card h3 { font-size: 18px; line-height: 1.3; margin-bottom: 10px; color: var(--ink); font-family: 'Montserrat', sans-serif; }
.blog-card p { font-size: 14.5px; color: var(--brand-grey); line-height: 1.65; margin-bottom: 16px; flex: 1; }
.blog-card .read-more { font-size: 13px; font-weight: 600; color: var(--brand-red); text-decoration: none; font-family: 'Montserrat', sans-serif; letter-spacing: 0.3px; }
.blog-card a { text-decoration: none; color: inherit; }

/* =========================================================
   CONTACT FORM
   ========================================================= */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--brand-dark); font-family: 'Montserrat', sans-serif; letter-spacing: 0.3px; }
.form-row input,
.form-row select,
.form-row textarea {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: 'Source Sans 3', sans-serif;
  background: #fff;
  transition: border-color .2s;
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { outline: none; border-color: var(--brand-red); }
.form-row textarea { min-height: 140px; resize: vertical; }

/* =========================================================
   FOOTER — enterprise structure with brand block + ecosystem
   ========================================================= */
.footer {
  background: var(--brand-dark);
  color: #c9cccd;
  padding: 80px 80px 28px;
  font-size: 14.5px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(45deg, transparent 49.5%, rgba(227,34,42,0.06) 49.5%, rgba(227,34,42,0.06) 50.5%, transparent 50.5%);
  background-size: 18px 18px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 50% at 0% 0%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 0% 0%, black, transparent 70%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1.1fr;
  gap: 40px;
  max-width: 1320px;
  margin: auto;
  position: relative;
}
.footer-brand-block {
  padding-right: 16px;
}
.footer-brand-mark {
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 18px;
  border: 1px solid #2a2e2f;
}
.footer-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.footer-brand-name {
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.footer-brand-name .accent { color: var(--brand-red); }
.footer-brand-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #9aa0a3;
  margin-bottom: 18px;
}
.footer-brand-block p {
  font-size: 13.5px;
  color: #a4a8aa;
  line-height: 1.65;
  max-width: 320px;
  margin-bottom: 18px;
}
.footer-org-tree {
  font-size: 12px;
  color: #9aa0a3;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.2px;
  border-left: 2px solid #4a5051;
  padding: 6px 0 6px 14px;
  line-height: 1.9;
}
.footer-org-tree strong { color: #e3e5e6; font-weight: 600; }
.footer-org-tree .accent { color: var(--brand-red); font-weight: 700; }

.footer h4 {
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 11px; }
.footer ul a {
  color: #9aa0a3;
  font-size: 14px;
  text-decoration: none;
  transition: color .2s;
}
.footer ul a:hover { color: var(--brand-red); }
.footer ul a.ext::after {
  content: ' ↗';
  font-size: 11px;
  opacity: .7;
}
.footer-contact {
  font-size: 13.5px;
  color: #9aa0a3;
  line-height: 1.7;
}
.footer-contact strong {
  display: block;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 14px;
  margin-bottom: 6px;
}
.footer-contact a { color: #c9cccd; text-decoration: none; }
.footer-contact a:hover { color: var(--brand-red); }

.footer-bottom {
  border-top: 1px solid #4a5051;
  margin-top: 60px;
  padding-top: 26px;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #8a9092;
  position: relative;
}
.footer-bottom .legal {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.2px;
}
.footer-bottom a { color: #c9cccd; text-decoration: none; }
.footer-bottom a:hover { color: var(--brand-red); }
.footer-bottom .legal-links { display: inline-flex; gap: 16px; }

/* =========================================================
   PAGE HEADER (interior pages)
   ========================================================= */
.page-header {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, var(--brand-soft));
  background-size: 60px 60px, 60px 60px, auto;
  padding: 80px 80px 70px;
  text-align: center;
  border-bottom: 1px solid var(--brand-soft);
}
.page-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.7px;
  margin-bottom: 16px;
  color: var(--ink);
}
.page-header p {
  font-size: 17.5px;
  color: var(--brand-grey);
  max-width: 720px;
  margin: 14px auto 0;
  line-height: 1.7;
}
.page-header .section-line { margin: 18px auto 22px; }

/* Trust strip */
.trust-strip {
  background: var(--brand-dark);
  color: #d8dadb;
  padding: 22px 80px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}
.trust-strip strong { color: var(--brand-red); margin-right: 6px; letter-spacing: 1.8px; }

/* Notice */
.notice {
  background: #fff5f5;
  border: 1px solid #f6d8da;
  border-left: 3px solid var(--brand-red);
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--brand-grey);
  margin: 18px 0;
  line-height: 1.7;
}
.notice strong { color: var(--brand-dark); }

/* Read-more arrow links */
.read-more {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--brand-red);
  text-decoration: none;
  letter-spacing: 0.3px;
}
.read-more:hover { color: var(--brand-red-dark); }
