/* ==========================================================================
   Star Brands Consulting Group — shared stylesheet (mobile-first)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy-950: #050712;
  --navy-900: #0a0f24;
  --navy-800: #121a3a;
  --navy-700: #1d2753;
  --ink: #1a1a1a;
  --ink-soft: #3d4152;
  --paper: #ffffff;
  --paper-warm: #f7f5ee;
  --paper-cool: #eef0ff;
  --line-light: #dde4ff;
  --gold: #d4af37;
  --gold-light: #f1dd9c;
  --gold-pale: #fff2bd;
  --gold-deep: #7a5e0c;
  --periwinkle: #c7ceff;
  --text-on-dark: #eef0ff;
  --muted-on-dark: #b9c0e0;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-xs: clamp(0.78rem, 0.76rem + 0.1vw, 0.85rem);
  --fs-sm: clamp(0.9rem, 0.87rem + 0.15vw, 0.97rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --fs-lg: clamp(1.12rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.6vw, 1.55rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.7vw, 2.75rem);
  --fs-h1: clamp(2.1rem, 1.5rem + 3.2vw, 4.1rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --section-y: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --container: 1240px;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(5, 7, 18, 0.06), 0 2px 8px rgba(5, 7, 18, 0.05);
  --shadow-md: 0 8px 28px rgba(5, 7, 18, 0.1);
  --shadow-lg: 0 20px 50px rgba(5, 7, 18, 0.22);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.25);

  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 160ms;
  --t: 260ms;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
  min-width: 320px;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-4);
  line-height: 1.15;
  font-weight: 600;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}

p {
  margin: 0 0 var(--space-4);
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-inline-start: 1.25rem;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
  inset-inline-start: var(--space-4);
  top: -100px;
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--gold);
  color: var(--navy-950);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus {
  top: var(--space-3);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--dark {
  background: radial-gradient(1200px 600px at 85% -10%, rgba(212, 175, 55, 0.12), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
  color: var(--text-on-dark);
}

.section--warm {
  background: var(--paper-warm);
}

.section--cool {
  background: var(--paper-cool);
}

.section-head {
  max-width: 760px;
  margin-bottom: var(--space-7);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--gold);
}

.lead {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
}
.section--dark .lead,
.hero .lead,
.page-hero .lead {
  color: var(--muted-on-dark);
}

.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
}
.grid > * {
  min-width: 0;
}

@media (min-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.split {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.split > * {
  min-width: 0;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background-color var(--t) var(--ease),
    color var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-950);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover {
  background: linear-gradient(135deg, var(--gold-pale), var(--gold-light));
}

.btn--ghost {
  border-color: rgba(238, 240, 255, 0.45);
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.04);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn--navy {
  background: var(--navy-900);
  color: var(--paper);
}
.btn--navy:hover {
  background: var(--navy-700);
}

.btn--outline {
  border-color: var(--navy-900);
  color: var(--navy-900);
  background: transparent;
}
.btn--outline:hover {
  background: var(--navy-900);
  color: var(--paper);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 48px;
  font-weight: 700;
  color: var(--gold-deep);
  text-decoration: none;
}
.text-link::after {
  content: "→";
  transition: transform var(--t-fast) var(--ease);
}
[dir="rtl"] .text-link::after {
  content: "←";
}
.text-link:hover::after {
  transform: translateX(4px);
}
[dir="rtl"] .text-link:hover::after {
  transform: translateX(-4px);
}
.section--dark .text-link {
  color: var(--gold);
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 18, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  color: var(--text-on-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 48px;
}
.brand img {
  width: 164px;
  height: 52px;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 1024px) {
  .brand img {
    width: 196px;
    height: 62px;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-on-dark);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle-bars {
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
}
.nav-toggle-bars::before {
  top: -7px;
}
.nav-toggle-bars::after {
  top: 7px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  position: fixed;
  top: var(--header-h);
  inset-inline: 0;
  bottom: 0;
  padding: var(--space-5) var(--gutter) var(--space-7);
  background: var(--navy-950);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
.primary-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-inline: var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-lg);
  font-weight: 600;
  text-decoration: none;
  color: var(--text-on-dark);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav-list a:hover {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.05);
}
.nav-list a.is-active,
.nav-list a[aria-current="page"] {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: inset 3px 0 0 var(--gold);
}
[dir="rtl"] .nav-list a.is-active,
[dir="rtl"] .nav-list a[aria-current="page"] {
  box-shadow: inset -3px 0 0 var(--gold);
}

.nav-cta {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

body.nav-open {
  overflow-y: clip;
}

@media (min-width: 1100px) {
  .nav-toggle {
    display: none;
  }
  .primary-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: 0;
    background: transparent;
    overflow: visible;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }
  .nav-list {
    flex-direction: row;
    gap: var(--space-1);
  }
  .nav-list a {
    min-height: 48px;
    font-size: var(--fs-sm);
    padding-inline: var(--space-3);
    background: transparent;
  }
  .nav-list a:hover {
    background: transparent;
  }
  .nav-list a.is-active,
  .nav-list a[aria-current="page"],
  [dir="rtl"] .nav-list a.is-active,
  [dir="rtl"] .nav-list a[aria-current="page"] {
    background: transparent;
    box-shadow: none;
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    inset-inline: var(--space-3);
    bottom: 8px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--t) var(--ease);
  }
  .nav-list a:hover::after,
  .nav-list a.is-active::after,
  .nav-list a[aria-current="page"]::after {
    transform: scaleX(1);
  }
  .nav-cta {
    margin-top: 0;
    flex-direction: row;
  }
}

/* ---------- Hero ---------- */
.hero,
.page-hero {
  position: relative;
  color: var(--text-on-dark);
  background: radial-gradient(900px 500px at 90% 0%, rgba(212, 175, 55, 0.16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(199, 206, 255, 0.1), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  overflow-x: clip;
}
.hero {
  padding-block: clamp(3.5rem, 2rem + 7vw, 8rem);
}
.page-hero {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(221, 228, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(221, 228, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero > .container,
.page-hero > .container {
  position: relative;
}

.hero-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.hero-grid > * {
  min-width: 0;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  }
}

.hero h1 .accent,
.page-hero h1 .accent {
  display: block;
  color: var(--gold);
  font-style: italic;
}

.page-hero .container {
  max-width: 980px;
  margin-inline: auto;
}

.stats {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: var(--space-4);
}
.stats li {
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}
.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem);
  line-height: 1.05;
  color: var(--gold);
}
.stats span {
  font-size: var(--fs-xs);
  color: var(--muted-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signal-live {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--periwinkle);
}
.signal-live::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

/* Intelligence map panel */
.intel-panel {
  padding: var(--space-5);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(29, 39, 83, 0.75), rgba(10, 15, 36, 0.9));
  box-shadow: var(--shadow-lg);
}
.intel-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.intel-panel-head strong {
  color: var(--gold-light);
}
.intel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.intel-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  font-size: var(--fs-sm);
}
.intel-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--gold);
}
.intel-dot--risk {
  background: #f87171;
}
.intel-dot--ok {
  background: #4ade80;
}
.meter {
  margin-top: var(--space-4);
}
.meter-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--muted-on-dark);
}
.meter-bar {
  height: 8px;
  margin: 6px 0 var(--space-3);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.meter-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.panel-note {
  margin: var(--space-4) 0 0;
  font-size: var(--fs-xs);
  color: var(--muted-on-dark);
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-5);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.6);
}
.card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}
.card p {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}
.card > :last-child {
  margin-bottom: 0;
}
.card .text-link {
  margin-top: auto;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.card--dark {
  border-color: rgba(212, 175, 55, 0.2);
  background: linear-gradient(160deg, rgba(29, 39, 83, 0.55), rgba(10, 15, 36, 0.75));
  color: var(--text-on-dark);
}
.card--dark p {
  color: var(--muted-on-dark);
}
.card--dark .card-icon {
  background: rgba(212, 175, 55, 0.12);
}

.tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: var(--space-3);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--gold-pale);
  color: var(--gold-deep);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.card--dark .tag {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.checklist li {
  position: relative;
  padding-inline-start: 2rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.3em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--gold) no-repeat center / 70%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23050712' stroke-width='2.4' d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E");
}
.checklist--cross li::before {
  background: #fde2e2 no-repeat center / 60%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23a61b1b' stroke-width='2.4' d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E");
}

.chips {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chips li {
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.chips li:has(a) {
  padding: 0;
}
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 1rem;
  text-decoration: none;
}
.chips a:hover {
  color: var(--gold-light);
}
.section--warm .chips li,
.section .chips--light li {
  border-color: var(--line-light);
  background: var(--paper);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .steps--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .steps--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.steps li {
  counter-increment: step;
  position: relative;
  min-width: 0;
  padding: var(--space-5);
  padding-top: calc(var(--space-5) + 2.2rem);
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
  background: var(--paper);
}
.section--dark .steps li {
  border-color: rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.03);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: var(--space-4);
  inset-inline-start: var(--space-5);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-deep);
}
.section--dark .steps li::before {
  color: var(--gold);
}
.steps h3 {
  font-size: var(--fs-base);
  margin-bottom: var(--space-2);
}
.steps p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.section--dark .steps p {
  color: var(--muted-on-dark);
}

/* Callout / notice */
.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-inline-start: 5px solid var(--gold);
  background: rgba(212, 175, 55, 0.08);
}
.notice p {
  flex: 1 1 280px;
  margin: 0;
  min-width: 0;
}

/* ---------- Media / insights ---------- */
.media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--paper-cool);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.post-card:hover,
.post-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.post-card:hover .media img {
  transform: scale(1.04);
}
.post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-5);
}
.post-body h3 {
  font-size: var(--fs-base);
  line-height: 1.35;
}
.post-body h3 a {
  text-decoration: none;
}
.post-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.post-card {
  position: relative;
}
.post-body h3 a:hover {
  color: var(--gold-deep);
}
.post-meta {
  margin-top: auto;
  font-size: var(--fs-xs);
  color: var(--ink-soft);
}

/* ---------- Tables ---------- */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
  background: var(--paper);
}
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
caption {
  padding: var(--space-4);
  text-align: start;
  font-weight: 700;
}
th,
td {
  padding: var(--space-4);
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--line-light);
}
thead th {
  background: var(--navy-900);
  color: var(--text-on-dark);
  font-weight: 700;
}
tbody th {
  font-weight: 700;
  color: var(--navy-900);
}
tbody tr:last-child > * {
  border-bottom: 0;
}

/* ---------- FAQ (details) ---------- */
.faq {
  display: grid;
  gap: var(--space-3);
  max-width: 880px;
  margin-inline: auto;
}
.faq details {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color var(--t) var(--ease);
}
.faq details[open] {
  border-color: var(--gold);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-height: 56px;
  padding: var(--space-4) var(--space-5);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold-deep);
  transition: transform var(--t) var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--ink-soft);
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: radial-gradient(600px 300px at 100% 0%, rgba(212, 175, 55, 0.2), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: var(--text-on-dark);
  text-align: center;
}
.cta-band p {
  max-width: 680px;
  margin-inline: auto;
  color: var(--muted-on-dark);
}
.cta-band .btn-row {
  justify-content: center;
  margin-top: var(--space-5);
}

.disclaimer-text {
  margin-top: var(--space-5);
  font-size: var(--fs-xs);
  color: var(--ink-soft);
}
.section--dark .disclaimer-text {
  color: var(--muted-on-dark);
}

/* ---------- Forms ---------- */
.form-card {
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field--full {
    grid-column: 1 / -1;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}
.field label,
.field legend {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy-900);
}
.req {
  color: #a61b1b;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #b8c0dd;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.45);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #a61b1b;
}
.field-error {
  min-height: 1em;
  margin: 0;
  font-size: var(--fs-xs);
  color: #a61b1b;
}
fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
}
.radio-group {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
.radio-group label,
.consent {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 48px;
  padding: var(--space-2) var(--space-3);
  border: 1.5px solid var(--line-light);
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
}
.consent {
  align-items: flex-start;
  font-size: var(--fs-sm);
}
.radio-group input,
.consent input {
  width: 20px;
  height: 20px;
  min-height: 0;
  flex-shrink: 0;
  accent-color: var(--navy-900);
}
.consent input {
  margin-top: 0.2em;
}
.form-status {
  margin: var(--space-4) 0 0;
  font-weight: 600;
}
.form-status.is-success {
  color: #166534;
}
.form-status.is-error {
  color: #a61b1b;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-4);
}
.contact-list li {
  display: flex;
  gap: var(--space-3);
  min-width: 0;
}
.contact-list .card-icon {
  flex-shrink: 0;
  margin: 0;
}
.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
  word-break: break-word;
}

address {
  font-style: normal;
}

/* ---------- Modal (native dialog) ---------- */
.modal {
  width: min(560px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.modal::backdrop {
  background: rgba(5, 7, 18, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal-inner {
  padding: clamp(1.25rem, 1rem + 2vw, 2.25rem);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}
.modal-head h2 {
  font-size: var(--fs-h3);
  margin: 0;
}
.modal-close {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover {
  border-color: var(--gold);
}
.modal .checklist {
  margin-top: var(--space-5);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: var(--section-y);
  background: var(--navy-950);
  color: var(--muted-on-dark);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: minmax(0, 1fr);
}
.footer-grid > * {
  min-width: 0;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  }
}
.footer-brand img {
  width: 220px;
  height: 72px;
  object-fit: cover;
  margin-bottom: var(--space-4);
}
.footer-col h2 {
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover,
.footer-col a[aria-current="page"] {
  color: var(--gold-light);
  text-decoration: underline;
}
.footer-offices {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.footer-offices strong {
  display: block;
  color: var(--text-on-dark);
}
.socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: 0;
}
.socials a {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50%;
  color: var(--text-on-dark);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.socials a:hover {
  background: var(--gold);
  color: var(--navy-950);
}
.socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.footer-bottom {
  margin-top: var(--space-7);
  padding-block: var(--space-6);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  font-size: var(--fs-xs);
}
.footer-bottom p {
  margin-bottom: var(--space-3);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  inset-inline-end: clamp(1rem, 0.5rem + 1.5vw, 2rem);
  bottom: clamp(1rem, 0.5rem + 1.5vw, 2rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-950);
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s;
}
.back-to-top:hover {
  transform: translateY(-3px);
}
.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.is-visible,
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Utilities ---------- */
.mt-0 {
  margin-top: 0;
}
.mt-6 {
  margin-top: var(--space-6);
}
.mb-0 {
  margin-bottom: 0;
}
.center {
  text-align: center;
}
.gold {
  color: var(--gold);
}
