@import url('tokens.css');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { background: var(--surface-page); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  transition: background-color .2s ease, color .2s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; margin: 0; color: var(--text-primary); }
p { margin: 0; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; }

.tabular { font-variant-numeric: tabular-nums; }
.mono-tag {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700);
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: border-color .15s ease, color .15s ease;
}
.theme-toggle:hover { color: var(--text-primary); border-color: var(--green-600); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: inline-block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: inline-block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-header);
  border-bottom: 1px solid var(--ink-100);
  box-shadow: 0 1px 0 rgba(11,43,58,0.03);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
  gap: var(--space-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  flex: none;
}
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-logo { height: 46px; width: auto; display: block; }
@media (max-width: 700px) { .brand-logo { height: 38px; } }
.brand small {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 700px) { .brand small { display: none; } }
.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-desktop ul { display: flex; gap: var(--space-3); }
.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 10px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--green-700); border-color: var(--green-600); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-700);
  color: var(--paper-000) !important;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 3px;
  border-bottom: none !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--green-800); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.nav-toggle {
  display: none;
  background: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.nav-toggle:hover { border-color: var(--green-600); background: var(--green-100); }
.nav-mobile { display: none; }

@media (max-width: 960px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile.open {
    display: block;
    background: var(--surface-header);
    border-top: var(--rule);
    padding: var(--space-3);
  }
  .nav-mobile ul { display: flex; flex-direction: column; gap: var(--space-1); }
  .nav-mobile a { display: block; padding: 0.6rem 0.2rem; font-weight: 600; border-bottom: var(--rule); }
  .nav-mobile .nav-cta { margin-top: var(--space-2); text-align: center; justify-content: center; }
}

/* ---------- Hero (split: text + animated visual, no photo) ---------- */
.hero {
  position: relative;
  background: var(--surface-alt);
  overflow: hidden;
  border-bottom: 1px solid var(--ink-100);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-6) var(--space-3);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: center;
}
.hero-inner .wrap { max-width: 560px; }
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; padding-top: var(--space-5); } }

/* Right-side visual: no photo, just the product's "signals" animating in space */
.hero-visual {
  position: relative;
  min-height: 420px;
  border-radius: 20px;
  background: linear-gradient(155deg, var(--blue-100) 0%, var(--sky-050) 45%, var(--green-100) 100%);
  overflow: hidden;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11,43,58,0.07) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 45%, black 0%, transparent 72%);
}
.hero-visual .brand-mark-lg {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 52%;
  opacity: 0.16;
}
@media (max-width: 980px) { .hero-visual { min-height: 320px; } }
@media (max-width: 620px) { .hero-visual { display: none; } }

.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--paper-000);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  box-shadow: 0 16px 30px -16px rgba(11,43,58,0.32);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-900);
  animation: hero-float 6s ease-in-out infinite;
  white-space: nowrap;
}
.hero-float-card svg { flex: none; }
.hero-float-1 { top: 7%; left: 5%; animation-delay: 0s; }
.hero-float-4 { top: 22%; right: 4%; animation-delay: 0.7s; }
.hero-float-2 { top: 68%; right: 6%; animation-delay: 1.4s; }
.hero-float-3 { bottom: 6%; left: 6%; animation-delay: 2.8s; }
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) { .hero-float-card { animation: none; } }

/* Small icon-only chips — secondary layer of motion, quieter than the labeled pills */
.hero-chip {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--paper-000);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 22px -12px rgba(11,43,58,0.3);
  animation: hero-float 5s ease-in-out infinite;
}
.hero-chip-1 { top: 44%; left: 34%; animation-delay: 2s; }
.hero-chip-2 { bottom: 38%; right: 42%; animation-delay: 0.4s; }

/* Ambient dot cluster filling the quietest corner */
.hero-dots { position: absolute; top: 8%; right: 24%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-600); opacity: 0.35; animation: hero-pulse 2.6s ease-in-out infinite; }
.hero-dots span:nth-child(2n) { background: var(--green-600); animation-delay: 0.6s; }
.hero-dots span:nth-child(3n) { animation-delay: 1.2s; }
@keyframes hero-pulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.4); }
}
@media (prefers-reduced-motion: reduce) { .hero-chip, .hero-dots span { animation: none; } }
.hero-eyebrow {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-2);
}
.hero-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--green-600); }
.hero h1 {
  color: var(--text-primary);
  font-size: clamp(2.3rem, 4.2vw, 3.3rem);
  line-height: 1.1;
}
.hero h1 em { font-style: normal; color: var(--blue-600); }
.hero-lede {
  margin-top: var(--space-3);
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--text-secondary);
}
.hero-actions { display: flex; gap: var(--space-2); margin-top: var(--space-4); flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color .15s ease;
}
.btn-primary { background: var(--green-700); color: var(--paper-000); }
.btn-primary:hover { background: var(--green-800); }
.btn-ghost { border-color: var(--text-primary); color: var(--text-primary); background: transparent; }
.btn-ghost:hover { background: var(--surface-alt); }
.btn-dark { background: var(--navy-900); color: var(--paper-000); }
.btn-dark:hover { background: var(--blue-700); }
.btn-blue { background: var(--blue-600); color: var(--paper-000); }
.btn-blue:hover { background: var(--blue-800); }

/* ---------- Floating icon strip ---------- */
.icon-strip { background: var(--surface-alt); padding-bottom: var(--space-5); }
.icon-strip .container { margin-top: -56px; position: relative; z-index: 3; }
.icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
}
.icon-card {
  background: var(--surface-card);
  border-radius: 12px;
  padding: var(--space-3) var(--space-2);
  text-align: center;
  box-shadow: 0 18px 34px -18px rgba(11,43,58,0.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.icon-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -16px rgba(11,43,58,0.32); }
.icon-card .service-icon { margin: 0 auto var(--space-1); }
.icon-card h3 { font-size: 0.98rem; font-family: var(--font-body); font-weight: 700; }
.icon-card p { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.3rem; }
@media (max-width: 980px) { .icon-grid { grid-template-columns: repeat(3, 1fr); } .icon-strip .container { margin-top: -40px; } }
@media (max-width: 620px) { .icon-grid { grid-template-columns: repeat(2, 1fr); } .hero { min-height: auto; } .icon-strip .container { margin-top: 0; } .hero-actions { justify-content: center; } }

.service-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-alt);
  color: var(--blue-600);
}
.service-icon.accent-green { background: var(--green-100); color: var(--green-700); }

/* ---------- Offer grid (line icons + caption) ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4) var(--space-3);
  margin-top: var(--space-4);
}
.offer-item { text-align: center; }
.offer-item .offer-icon {
  width: 52px; height: 52px;
  color: var(--green-600);
  margin: 0 auto var(--space-2);
  display: block;
}
.offer-item p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.offer-item ul { list-style: none; text-align: left; display: inline-block; margin-top: 0.3rem; }
.offer-item ul li { display: flex; align-items: center; gap: 0.5rem; padding: 0.15rem 0; }
.offer-item ul .tick { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; font-size: 0.65rem; }
@media (max-width: 900px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .offer-grid { grid-template-columns: 1fr; } }

/* ---------- Condominios selector ---------- */
.condo-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--blue-700));
  color: #fff;
  padding: var(--space-5) 0 var(--space-4);
  text-align: center;
}
.condo-hero h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.condo-hero p { margin-top: var(--space-1); color: rgba(255,255,255,0.82); }
.condo-search { margin-top: var(--space-3); display: flex; justify-content: center; }
.condo-search input {
  width: min(420px, 100%);
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.condo-search input:focus { outline: 3px solid var(--green-500); outline-offset: 2px; }

.condo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) { .condo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .condo-grid { grid-template-columns: 1fr; } }
.condo-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: var(--space-3);
  text-align: center;
  box-shadow: 0 18px 34px -18px rgba(11,43,58,0.22);
  transition: opacity .15s ease, transform .15s ease;
}
.condo-card.is-hidden { display: none; }
.condo-logo {
  height: 90px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-2);
  padding: var(--space-1);
  overflow: hidden;
}
.condo-logo img { display: block; max-width: 100%; max-height: 74px; width: auto; height: auto; object-fit: contain; }
.condo-card h3 { font-size: 1.05rem; }
.condo-card p { font-size: 0.82rem; color: var(--text-secondary); margin-top: 0.3rem; }
.condo-card .btn { margin-top: var(--space-2); width: 100%; justify-content: center; padding: 0.65rem 1rem; font-size: 0.85rem; }
.condo-empty { text-align: center; color: var(--text-secondary); padding: var(--space-4) 0; display: none; }
.condo-empty.is-visible { display: block; }

/* ---------- Value strip (SIAC acronym) ---------- */
.value-strip { background: var(--surface-page); border-bottom: 1px solid var(--border-subtle); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.value-item { padding: var(--space-2) 0; border-top: 3px solid var(--blue-600); }
.value-item:nth-child(2) { border-top-color: var(--green-600); }
.value-item:nth-child(3) { border-top-color: var(--blue-600); }
.value-item:nth-child(4) { border-top-color: var(--green-600); }
.value-item .letter { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--text-primary); display: block; }
.value-item strong { display: block; margin: 0.3rem 0 0.15rem; }
.value-item p { font-size: 0.85rem; color: var(--text-secondary); }
@media (max-width: 720px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Decorative icon panel (inner pages) ---------- */
.blueprint-panel {
  background: var(--surface-alt);
  border-radius: 12px;
  padding: var(--space-4);
  color: var(--blue-600);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blueprint-panel svg { width: 55%; height: auto; margin: 0 auto; }

/* ---------- Section shell ---------- */
.section { padding: var(--space-6) 0; }
.section-tight { padding: var(--space-5) 0; }
.section-head { max-width: 60ch; margin-bottom: var(--space-4); }
.section-head .mono-tag { display: block; margin-bottom: var(--space-1); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { margin-top: var(--space-2); color: var(--text-secondary); font-size: 1.02rem; }
.section-alt { background: var(--surface-alt); }

/* ---------- Module cards (photo) ---------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.module-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-card);
  box-shadow: 0 10px 28px -20px rgba(11,43,58,0.35);
  border: 1px solid var(--border-subtle);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
}
.module-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -16px rgba(11,43,58,0.3); }
.module-photo { height: 170px; width: 100%; object-fit: cover; }
.module-body { padding: var(--space-3); display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.module-body h3 { font-size: 1.1rem; }
.module-body p { color: var(--text-secondary); font-size: 0.92rem; }
.module-body .link { margin-top: auto; font-family: var(--font-label); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green-700); font-weight: 700; }
@media (max-width: 900px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .module-grid { grid-template-columns: 1fr; } }

/* legacy service-card alias kept for inner pages */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.service-card {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: var(--space-3);
  background: var(--surface-card);
  transition: border-color .15s ease, transform .15s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.service-card:hover { border-color: var(--green-600); transform: translateY(-3px); }
.service-card h3 { font-size: 1.1rem; }
.service-card p { color: var(--text-secondary); font-size: 0.92rem; }
.service-card .link { margin-top: auto; font-family: var(--font-label); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green-700); font-weight: 700; }
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Pull quote ---------- */
.pull-quote {
  border-left: 3px solid var(--green-600);
  padding: 0.2rem var(--space-4);
  margin: 0 auto;
  max-width: 62ch;
  text-align: center;
}
.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.45;
  color: var(--text-primary);
}
.pull-quote p::before { content: '“'; }
.pull-quote p::after { content: '”'; }

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checklist li {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--ink-100);
  font-size: 0.98rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist .tick {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: grid; place-items: center;
  font-size: 0.75rem;
  margin-top: 2px;
}
.checklist-sub { margin-top: 0.4rem; }
.checklist-sub li {
  display: flex;
  gap: 0.5rem;
  padding: 0.2rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.checklist-sub li::before { content: '–'; flex: none; color: var(--green-600); }

.photo-panel { border-radius: 12px; overflow: hidden; min-height: 320px; }
.photo-panel img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.photo-row img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }
@media (max-width: 700px) { .photo-row { grid-template-columns: 1fr; } }

/* ---------- Stat row ---------- */
.stat-table { width: 100%; border-collapse: collapse; table-layout: fixed; border-top: 2px solid var(--ink-100); }
.stat-table td { text-align: center; vertical-align: top; padding: var(--space-2) var(--space-2) 0; }
.stat-table .num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--blue-600); display: block; }
.stat-table .label { display: block; margin-top: 0.25rem; font-size: 0.85rem; color: var(--text-secondary); }
@media (max-width: 700px) {
  .stat-table, .stat-table tbody, .stat-table tr { display: block; width: 100%; }
  .stat-table td { display: block; width: 100%; padding: var(--space-2) 0 0; }
}

/* ---------- Statement / receipt card (used on admin & maintenance pages) ---------- */
.statement-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: var(--space-3);
  box-shadow: 0 20px 40px -24px rgba(11,43,58,0.35);
  position: relative;
}
.statement-card::before {
  content: 'ADCOM-SIAC';
  position: absolute;
  top: -12px;
  left: var(--space-3);
  background: var(--blue-600);
  color: var(--paper-000);
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.statement-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: var(--rule);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
}
.statement-head h3 { font-size: 1rem; }
.statement-head span { font-size: 0.75rem; color: var(--text-secondary); }
.statement-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--ink-100);
  font-size: 0.88rem;
}
.statement-row:last-of-type { border-bottom: none; }
.statement-row .amount { font-weight: 700; }
.statement-row .amount.negative { color: var(--signal-red); }
.statement-row .amount.positive { color: var(--green-700); }
.statement-foot {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 2px solid var(--text-primary);
  display: flex;
  justify-content: space-between;
  font-weight: 800;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--blue-800));
  color: var(--paper-000);
  padding: var(--space-5) 0;
}
.cta-banner .container { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.cta-banner h2 { color: var(--paper-000); font-size: 1.6rem; max-width: 30ch; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-top: 0.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.75); padding: var(--space-5) 0 var(--space-3); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: var(--paper-000); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-2); font-family: var(--font-label); font-weight: 700; }
.footer-logo { height: 60px; width: auto; display: block; margin-bottom: var(--space-2); }
.footer-grid a, .footer-grid p { color: rgba(255,255,255,0.65); font-size: 0.9rem; display: block; margin-bottom: 0.5rem; }
.footer-grid a:hover { color: var(--paper-000); }
.footer-bottom { display: flex; justify-content: center; text-align: center; padding-top: var(--space-3); font-size: 0.8rem; color: rgba(255,255,255,0.45); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { height: 68px; margin: 0 auto var(--space-2); }
}

/* ---------- Inner page header ---------- */
.page-hero {
  background: var(--surface-alt);
  color: var(--text-secondary);
  padding: var(--space-5) 0 var(--space-4);
  border-bottom: 1px solid var(--ink-100);
}
.page-hero .mono-tag { color: var(--green-700); }
.page-hero h1 { color: var(--text-primary); font-size: clamp(2rem, 4vw, 2.8rem); margin-top: var(--space-1); max-width: 22ch; }
.page-hero p { margin-top: var(--space-2); color: var(--text-secondary); max-width: 55ch; }
.breadcrumb { font-family: var(--font-label); font-size: 0.78rem; font-weight: 600; color: var(--green-700); }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--text-primary); }

/* ---------- Forms ---------- */
.form-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 12px; padding: var(--space-4); }
.field { margin-bottom: var(--space-2); }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--text-secondary); }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--surface-alt);
  color: var(--text-primary);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue-600); outline-offset: 1px; background: var(--surface-card); }
.notice {
  border: 1px dashed var(--ink-300);
  background: var(--surface-alt);
  padding: var(--space-2);
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: 8px;
}
