/* =====================================================================
   Sun Building Services — Route 1 Premium / Boutique  (merged build)
   Visual system: Codex design language
   Content depth: Full brief implementation
   ===================================================================== */

:root {
  --navy: #16263a;
  --navy-deep: #0f1d2d;
  --white: #ffffff;
  --stone: #e7e1d7;
  --stone-soft: #f5f2ec;
  --stone-deep: #d5cec2;
  --slate: #5d6a75;
  --gold: #b08a3e;
  --gold-soft: rgba(176, 138, 62, 0.14);
  --line: rgba(22, 38, 58, 0.12);
  --line-strong: rgba(22, 38, 58, 0.2);
  --surface: #fcfaf6;
  --surface-strong: #f3eee7;
  --shadow-soft: 0 24px 55px rgba(15, 29, 45, 0.07);
  --shadow-card: 0 12px 28px rgba(15, 29, 45, 0.05);
  --radius-lg: 30px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --max-width: 1220px;
  --font-sans: "Public Sans", "Segoe UI", sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--navy);
  line-height: 1.7;
  background:
    linear-gradient(180deg, rgba(231, 225, 215, 0.55), rgba(255, 255, 255, 0) 18rem),
    linear-gradient(90deg, rgba(176, 138, 62, 0.045), transparent 18rem),
    var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; color: var(--slate); }
ul, ol { margin: 0; padding-left: 1.2rem; color: var(--slate); }
li + li { margin-top: 0.55rem; }

h1, h2, h3, h4 { margin: 0 0 1rem; color: var(--navy); line-height: 1.08; }
h1, h2, .display { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.035em; }
h1 { font-size: clamp(3rem, 5.2vw, 5.4rem); }
h2 { font-size: clamp(2.15rem, 3.3vw, 3.5rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.02em; }
small, .small { font-size: 0.92rem; }

/* — Shell / Container — */
.site-shell,
.site-header__inner,
.site-footer__inner,
.section,
.page-hero__inner {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

/* — Header — */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(252, 250, 246, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(22, 38, 58, 0.08);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  justify-content: space-between; padding: 1.15rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.9rem; min-width: 0; }
.brand img { width: 258px; height: auto; }
.brand__text { display: none; }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--white);
  color: var(--navy); border-radius: 999px; padding: 0.68rem 0.95rem; font: inherit; cursor: pointer;
}
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.2rem; }
.site-nav a {
  padding: 0.78rem 0.92rem; font-size: 0.81rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate);
  border-radius: 999px; transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.site-nav a:hover, .site-nav a:focus-visible {
  color: var(--navy); background: rgba(176, 138, 62, 0.1); transform: translateY(-1px);
}
.site-nav a.is-active { color: var(--navy); background: rgba(176, 138, 62, 0.14); }

/* — Hero — */
.hero, .page-hero { position: relative; overflow: clip; }
.hero { padding: 6.2rem 0 4.2rem; }
.page-hero { padding: 4.8rem 0 3rem; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 2rem auto auto -5rem;
  width: 18rem; height: 18rem; border-radius: 50%;
  border: 1px solid rgba(176, 138, 62, 0.18); pointer-events: none;
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: auto -7rem 0 auto;
  width: 25rem; height: 18rem;
  background: radial-gradient(circle at center, rgba(176, 138, 62, 0.12), rgba(176, 138, 62, 0) 70%);
  pointer-events: none;
}
.hero__grid, .page-hero__grid {
  display: grid; gap: 2.2rem; align-items: stretch;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.75fr);
}
.hero__content, .page-hero__content { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  margin-bottom: 1.4rem; color: var(--navy); font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 2.6rem; height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(176, 138, 62, 0.28));
}
.hero__lede, .page-hero__lede {
  max-width: 58rem; font-size: 1.16rem; color: rgba(22, 38, 58, 0.8);
}

.action-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.8rem; }

/* — Buttons — */
.button, button.button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55rem; min-height: 3.25rem; padding: 0.9rem 1.35rem;
  border: 1px solid transparent; border-radius: 0.8rem; font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
  cursor: pointer; font-family: inherit; font-size: inherit;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button--primary { background: var(--navy); color: var(--white); box-shadow: var(--shadow-card); }
.button--secondary { background: var(--white); color: var(--navy); border-color: rgba(22, 38, 58, 0.18); }
.button--ghost { background: rgba(176, 138, 62, 0.1); color: var(--navy); }

/* — Card base — */
.hero-panel, .page-hero__panel, .panel, .form-card,
.stat-card, .card, .route-card, .service-card, .process-card,
.support-card, .policy-card, .sector-card, .value-card,
.disclosure-strip, .cta-band {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 247, 241, 0.97));
  border: 1px solid rgba(22, 38, 58, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.hero-panel, .page-hero__panel, .panel, .form-card {
  z-index: 1; display: grid; gap: 1.15rem; align-content: start;
  padding: 1.8rem; box-shadow: var(--shadow-soft);
}
.hero-panel::before, .page-hero__panel::before, .panel::before, .form-card::before,
.stat-card::before, .card::before, .route-card::before, .service-card::before,
.process-card::before, .support-card::before, .policy-card::before,
.sector-card::before, .value-card::before, .cta-band::before, .disclosure-strip::before {
  content: ""; position: absolute; inset: 0 auto auto 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(176, 138, 62, 0));
  border-radius: inherit;
}
.panel h3, .hero-panel h3, .page-hero__panel h3 { margin-bottom: 0.2rem; }

/* — Grids — */
.badge-grid, .stats-grid, .card-grid, .route-grid, .service-grid,
.process-grid, .support-grid, .policy-grid, .sector-grid, .value-grid {
  display: grid; gap: 1.05rem;
}
.stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.2rem; }
.stat-card, .card, .route-card, .service-card, .process-card,
.support-card, .policy-card, .sector-card, .value-card { padding: 1.5rem; }
.stat-card strong, .support-card strong, .policy-card strong, .value-card strong {
  display: block; margin-bottom: 0.35rem; color: var(--navy); font-size: 1.02rem;
}

/* — Sections — */
.section { padding: 5.1rem 0; }
.section--compact { padding-top: 2rem; }
.section--stone {
  background: linear-gradient(180deg, rgba(231, 225, 215, 0.56), rgba(255, 255, 255, 0.72));
  border-top: 1px solid rgba(22, 38, 58, 0.06);
  border-bottom: 1px solid rgba(22, 38, 58, 0.06);
}
.section--navy { background: linear-gradient(180deg, rgba(22, 38, 58, 0.98), rgba(15, 29, 45, 1)); }
.section--navy h2, .section--navy h3, .section--navy p,
.section--navy li, .section--navy .eyebrow { color: rgba(255, 255, 255, 0.92); }
.section--navy .eyebrow::before { background: linear-gradient(90deg, var(--gold), rgba(176, 138, 62, 0.28)); }
.section--navy .process-card, .section--navy .card, .section--navy .route-card,
.section--navy .service-card, .section--navy .cta-band, .section--navy .support-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.section-header { display: grid; gap: 1rem; margin-bottom: 2rem; max-width: 56rem; }
.section-header--split {
  max-width: none; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr); align-items: end;
}
.kicker {
  color: var(--gold); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}

.route-grid, .card-grid, .sector-grid, .support-grid, .policy-grid, .value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.route-card p:last-child, .service-card p:last-child, .process-card p:last-child,
.card p:last-child, .panel p:last-child, .support-card p:last-child,
.policy-card p:last-child, .value-card p:last-child { margin-bottom: 0; }
.route-card a, .card a, .policy-card a, .support-card a { color: var(--navy); font-weight: 600; }

/* — Lists — */
.list-plain { list-style: none; padding: 0; }
.list-plain li { display: flex; gap: 0.8rem; align-items: flex-start; }
.list-plain li::before {
  content: ""; flex: 0 0 0.5rem; height: 0.5rem;
  margin-top: 0.48rem; border-radius: 50%; background: var(--gold);
}

/* — Two-column & info grid — */
.info-grid, .two-column, .split-grid, .form-layout {
  display: grid; gap: 1.3rem; grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* — Timeline — */
.timeline { display: grid; gap: 1rem; }
.timeline-item {
  display: grid; gap: 0.4rem; padding: 1.2rem 1.25rem;
  background: rgba(176, 138, 62, 0.06); border: 1px solid rgba(22, 38, 58, 0.08);
  border-radius: var(--radius-sm);
}
.timeline-item strong { color: var(--navy); }

/* — CTA band — */
.cta-band {
  display: grid; gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.68fr);
  padding: 2rem;
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* — Disclosure — */
.disclosure-strip { padding: 1rem 1.2rem; font-size: 0.95rem; color: var(--slate); }
.disclosure-strip strong { color: var(--navy); }

/* — Forms — */
.form-card { padding: 1.75rem; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
label { color: var(--navy); font-weight: 600; }
input, select, textarea {
  width: 100%; padding: 0.92rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(22, 38, 58, 0.16); background: rgba(255, 255, 255, 0.92);
  color: var(--navy); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(176, 138, 62, 0.2); border-color: var(--gold); }
textarea { min-height: 9rem; resize: vertical; }
.form-note {
  margin-top: 1rem; padding: 1rem 1.1rem;
  border-left: 3px solid var(--gold);
  background: rgba(176, 138, 62, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* — Table list — */
.table-list { display: grid; gap: 0.8rem; }
.table-row {
  display: grid; gap: 0.8rem;
  grid-template-columns: minmax(170px, 0.55fr) minmax(0, 1fr);
  padding: 1rem 0; border-bottom: 1px solid rgba(22, 38, 58, 0.08);
}
.table-row:last-child { border-bottom: 0; }
.table-row strong { color: var(--navy); }

/* — Page links (pill nav) — */
.page-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.page-links a {
  display: inline-flex; align-items: center; padding: 0.58rem 0.9rem;
  border-radius: 999px; background: rgba(176, 138, 62, 0.08);
  color: var(--navy); font-size: 0.9rem; font-weight: 600;
}
.page-links a:hover { background: rgba(176, 138, 62, 0.18); }

/* — Footer — */
.site-footer {
  padding: 4rem 0 2rem;
  background: linear-gradient(180deg, var(--navy), var(--navy-deep));
  color: rgba(255, 255, 255, 0.84);
}
.site-footer__inner { display: grid; gap: 2rem; }
.footer-top {
  display: grid; gap: 1.5rem;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(220px, 0.75fr));
}
.footer-brand img { width: 270px; margin-bottom: 1.1rem; }
.footer-top h3 {
  margin-bottom: 0.75rem; color: var(--white);
  font-size: 0.96rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.footer-links, .footer-meta { display: grid; gap: 0.6rem; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--white); }
.footer-note {
  padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.94rem;
}
.footer-note p { color: rgba(255, 255, 255, 0.75); }

/* — Prose (legal pages) — */
.prose { max-width: 52rem; }
.prose h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose p { line-height: 1.78; }
.prose ul { margin-bottom: 1.2rem; }

/* — Responsive — */
@media (max-width: 1100px) {
  .hero__grid, .page-hero__grid, .section-header--split, .cta-band,
  .form-layout, .split-grid, .two-column, .info-grid, .footer-top {
    grid-template-columns: 1fr;
  }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .route-grid, .card-grid, .support-grid, .policy-grid, .sector-grid, .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .site-header__inner { align-items: flex-start; flex-direction: column; }
  .nav-toggle { display: inline-flex; align-self: flex-end; margin-top: -4rem; }
  .site-nav { display: none; width: 100%; padding-top: 0.8rem; border-top: 1px solid rgba(22, 38, 58, 0.08); }
  .site-nav.is-open { display: grid; }
  .site-nav a { width: 100%; border-radius: var(--radius-sm); }
  .stats-grid, .route-grid, .card-grid, .service-grid, .process-grid,
  .support-grid, .policy-grid, .sector-grid, .value-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .table-row { grid-template-columns: 1fr; gap: 0.35rem; }
}
@media (max-width: 640px) {
  .site-shell, .site-header__inner, .site-footer__inner, .section, .page-hero__inner {
    width: min(var(--max-width), calc(100% - 1.2rem));
  }
  .hero { padding-top: 4.4rem; }
  .page-hero { padding-top: 3.6rem; }
  .hero-panel, .page-hero__panel, .panel, .form-card { padding: 1.25rem; }
  .button, button.button { width: 100%; }
  .action-row, .cta-band__actions, .page-links { flex-direction: column; }
  .brand img { width: 220px; }
  .footer-brand img { width: 230px; }
}

/* Print */
@media print {
  .site-header, .site-footer, .cta-band, .section--navy { display: none; }
  body { background: #fff; color: #000; }
}
