/* ================================================================
   Clean Partner — Shared Styles
   Brand tokens, base, typography, reusable components,
   header / nav / footer + responsive behaviour.
   Page-specific styles live inside each HTML <style> block.
================================================================ */

/* ---------- 1. Brand variables ---------- */
:root {
  /* Brand palette (light only — original site has no dark toggle) */
  --primary:        #283b6e;
  --primary-deep:   #1b2a52;
  --primary-fg:     #ffffff;
  --gold:           #d6a73a;
  --gold-deep:      #b78a26;
  --gold-fg:        #2a1f00;

  --bg:             #ffffff;
  --surface:        #f6f7fb;
  --section-tint:   #f3f5fa;
  --text:           #16213d;
  --text-muted:     #5a6584;
  --border:         #e4e7ef;
  --card-bg:        #ffffff;

  /* Type */
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  /* Spacing & radii */
  --radius-sm: 0.5rem;
  --radius:    0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;

  --shadow-soft:     0 4px 24px -8px rgba(40, 59, 110, 0.18);
  --shadow-elevated: 0 20px 50px -20px rgba(40, 59, 110, 0.35);

  --container-max: 80rem;   /* 1280px */
  --container-pad: clamp(1.25rem, 4vw, 2rem);

  --header-h: 4rem;
}

@media (min-width: 768px) {
  :root { --header-h: 5rem; }
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.25rem; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.15;
}
.h1 { font-size: clamp(2.25rem, 5vw + 0.5rem, 3.75rem); font-weight: 800; line-height: 1.05; }
.h2 { font-size: clamp(1.875rem, 4vw + 0.25rem, 3rem);  font-weight: 700; line-height: 1.1;  }
.h3 { font-size: clamp(1.25rem, 1.5vw + 0.75rem, 1.5rem); font-weight: 600; }
.lead {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.125rem);
  color: var(--text-muted);
  line-height: 1.65;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .75rem;
  background: rgba(214, 167, 58, .18);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 999px;
}
.eyebrow--dark {
  background: rgba(255,255,255,.10);
  color: var(--gold);
}

/* ---------- 4. Layout helpers ---------- */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); }
.section { padding-block: clamp(3rem, 6vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 4vw, 4rem); }
.bg-surface { background: var(--surface); }
.bg-section-tint { background: var(--section-tint); }
.bg-primary-deep { background: var(--primary-deep); color: #fff; }
.bg-primary-deep h1, .bg-primary-deep h2, .bg-primary-deep h3 { color: #fff; }
.bg-primary-deep .lead { color: rgba(255,255,255,.85); }
.grid { display: grid; gap: 1.5rem; }
.flex { display: flex; }
.text-center { text-align: center; }

/* ---------- 5. Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;             /* touch target */
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: var(--primary-fg);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-elevated); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--gold-fg);
}
.btn--gold:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn--outline {
  background: transparent;
  border-color: rgba(40,59,110,.25);
  color: var(--primary);
}
.btn--outline:hover { background: rgba(40,59,110,.05); }
.btn--outline-light {
  background: transparent;
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.btn--outline-light:hover { background: rgba(255,255,255,.1); }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

/* ---------- 6. Card ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

/* ---------- 7. Form base ---------- */
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], textarea, select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  min-height: 44px;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(40,59,110,.15); }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--text); }

/* ================================================================
   8. Header / Nav (shared on every page)
================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.site-header__logo img { height: 2.75rem; width: auto; }
@media (min-width: 768px) { .site-header__logo img { height: 3.25rem; } }

/* Desktop nav */
.site-nav { display: none; }
.site-nav__list { list-style: none; padding: 0; display: flex; align-items: center; gap: 1.75rem; }
.site-nav__list a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(22, 33, 61, .82);
  transition: color .15s ease;
}
.site-nav__list a:hover, .site-nav__list a.is-active { color: var(--primary); font-weight: 600; }
.site-nav__list a.nav--strong { font-weight: 600; color: var(--text); }
.site-header__cta { display: none; align-items: center; gap: .75rem; }
.site-header__phone {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--primary); font-size: .9rem;
}
@media (min-width: 1024px) {
  .site-nav { display: block; }
  .site-header__cta { display: flex; }
}

/* Hamburger */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  color: var(--text);
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav__inner { padding: 1rem var(--container-pad); display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav a {
  display: block; padding: .65rem .75rem; border-radius: var(--radius-sm);
  font-size: 1rem; color: rgba(22,33,61,.85); min-height: 44px;
}
.mobile-nav a:hover { background: rgba(40,59,110,.06); color: var(--primary); }
.mobile-nav a.strong { font-weight: 600; color: var(--primary); }
.mobile-nav details { border-radius: var(--radius-sm); }
.mobile-nav details > summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem .75rem; cursor: pointer; min-height: 44px;
  font-weight: 500; color: rgba(22,33,61,.85);
  border-radius: var(--radius-sm);
}
.mobile-nav details > summary::-webkit-details-marker { display: none; }
.mobile-nav details > summary::after {
  content: "";
  width: .55rem; height: .55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}
.mobile-nav details[open] > summary::after { transform: rotate(-135deg); }
.mobile-nav details > summary:hover { background: rgba(40,59,110,.06); }
.mobile-nav .sub-list {
  list-style: none; padding: 0;
  margin-left: .75rem; padding-left: .75rem;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .15rem;
}
.mobile-nav .sub-list a { font-size: .9rem; padding: .5rem .75rem; }
.mobile-nav .mobile-cta { margin-top: .75rem; }

@media (min-width: 1024px) {
  .mobile-nav { display: none !important; }
}

/* ================================================================
   9. Footer
================================================================ */
.site-footer {
  margin-top: 6rem;
  background: var(--primary-deep);
  color: rgba(255,255,255,.85);
}
.site-footer a:hover { color: var(--gold); }
.site-footer__grid {
  display: grid; gap: 2.5rem;
  padding-block: 4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(4, 1fr); } }
.site-footer__brand img { height: 3rem; }
.site-footer h4 {
  color: #fff; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.site-footer__contact { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; font-size: .9rem; }
.site-footer__contact a, .site-footer__contact span { display: inline-flex; align-items: center; gap: .5rem; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-block: 1.25rem;
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  display: flex; flex-direction: column; gap: .5rem;
  align-items: center; text-align: center;
}
@media (min-width: 768px) {
  .site-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ================================================================
   10. Sticky mobile CTA (shared)
================================================================ */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; gap: .5rem; padding: .65rem;
  background: var(--bg); border-top: 1px solid var(--border);
  z-index: 40;
  box-shadow: 0 -10px 30px -20px rgba(0,0,0,.25);
}
.sticky-cta .btn { flex: 1; padding: .75rem 1rem; font-size: .9rem; min-height: 48px; }
body { padding-bottom: 5rem; }
@media (min-width: 1024px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- 11. Utility ---------- */
.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;
}
.icon { width: 1em; height: 1em; flex: none; }
