/* ---- Design tokens ---- */
:root {
  --navy: #0b1f3a;
  --navy-rgb: 11, 31, 58;
  --navy-deep: #0a1830;
  --navy-2: #13315c;
  --navy-2-rgb: 19, 49, 92;
  --gold: #f5b301;
  --surface: #f4f7fb;
  --border: #e6ebf2;
  --text: #5b6b82;
  --heading: #0b1f3a;
  --white: #ffffff;
  --text-on-dark: #c7d6ec;
  --text-on-dark-muted: #9fb3d1;
  --text-on-dark-faint: #7e90ab;
  --maxw: 1120px;
  --radius: 10px;
  --nav-h: 64px;
  --ok: #1f7a4d;
  --err: #b3261e;
  --muted: #6b7689;
  --ghost-border: #4a648c;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--heading); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { scroll-margin-top: var(--nav-h); }
.section-pad { padding: 64px 0; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: .8rem; margin: 0 0 .6em; }

/* ---- Buttons ---- */
.btn { display: inline-block; padding: 13px 24px; border-radius: 8px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; font-size: 1rem; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--ghost-border); color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---- Nav ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--white); }
.nav-menu { display: flex; align-items: center; gap: 22px; }
.nav-menu a { text-decoration: none; color: var(--text-on-dark); font-weight: 600; font-size: .95rem; }
.nav-menu a:hover { color: var(--white); }
.nav-menu .nav-cta { color: var(--navy); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); display: block; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--navy-deep); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 0; max-height: 0; overflow: hidden;
    transition: max-height .25s ease; border-top: 1px solid var(--navy-2);
  }
  .nav-menu.open { max-height: 360px; }
  .nav-menu a { padding: 14px 22px; }
  .nav-menu .nav-cta { margin: 10px 22px; text-align: center; }
  .hero { background-position: center; }
}

/* ---- Hero ---- */
/* Hero: navy overlay over an optional self-hosted photo. If the image is absent
   (or blocked), the semi-transparent gradient over --navy-2 still renders a clean
   navy hero — graceful degradation, no broken-image state. */
.hero { background: linear-gradient(135deg, rgba(var(--navy-rgb), .92), rgba(var(--navy-2-rgb), .80)), url('../assets/images/hero.jpg') top / cover no-repeat var(--navy-2); color: var(--white); text-align: center; padding: 72px 0; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 { color: var(--white); margin-bottom: .4em; }
.hero-sub { color: var(--text-on-dark); font-size: 1.1rem; max-width: 560px; margin: 0 auto 1.6em; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Trust badge bar ---- */
.badge-bar { background: var(--navy-deep); color: var(--text-on-dark-muted); }
.badge-list { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; padding: 14px 20px; font-size: .85rem; font-weight: 700; }

/* ---- Shared helpers ---- */
.center { text-align: center; }

/* ---- Services ---- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.service-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--white); transition: transform .15s, box-shadow .15s; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(var(--navy-rgb), .08); }
.service-icon { font-size: 1.8rem; margin-bottom: 8px; }
.service-card h3 { margin-bottom: .3em; }
.service-card p { margin: 0; font-size: .95rem; }

@media (max-width: 880px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .service-grid { grid-template-columns: 1fr; } }

/* ---- Why Us ---- */
.why { background: var(--surface); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 2.4rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label { display: block; margin-top: 8px; font-size: .95rem; }

@media (max-width: 620px) { .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; } }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-text h2 { margin-top: 0; }
/* About photo via background-image so a missing file degrades to a clean navy
   panel (no broken-image icon). Drop public/assets/images/about.jpg to fill it. */
.about-media { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--navy-2) url('../assets/images/about.jpg') center / cover no-repeat; }

@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---- Service area ---- */
.area { background: var(--navy); color: var(--white); }
.white { color: var(--white); }
.area-cities { list-style: none; padding: 0; color: var(--text-on-dark-muted); max-width: 640px; margin: 8px auto 0; }
.area-cities li { display: inline; }
.area-cities li + li::before { content: " · "; }

/* ---- Contact ---- */
.contact { background: var(--surface); }
.contact-lead { margin-top: -.4em; margin-bottom: 28px; }
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.contact-form label { display: flex; flex-direction: column; font-weight: 600; color: var(--heading); font-size: .9rem; gap: 5px; }
.contact-form span[aria-hidden] { color: var(--gold); }
.contact-form input, .contact-form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--navy-2); border-color: var(--navy-2); }
.form-submit { margin-top: 4px; }
.form-status { margin: 0; font-weight: 700; font-size: .9rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.form-hint { margin: 0; font-size: .8rem; color: var(--muted); }
.hp { position: absolute; left: -5000px; }
.info-card { display: flex; flex-direction: column; gap: 2px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--text); }
.info-card strong { color: var(--heading); }
a.info-card:hover { border-color: var(--navy-2); }

/* ---- Footer ---- */
.site-footer { background: var(--navy-deep); color: var(--text-on-dark-faint); text-align: center; padding: 22px 0; font-size: .85rem; }
.site-footer p { margin: 0; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---- Quote form (centered) + Contact Us section ---- */
.quote-form-wrap { max-width: 480px; margin: 0 auto; }
.contact-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 620px; margin: 28px auto 0; }
.contact-cards .info-card { flex: 1 1 260px; align-items: center; text-align: center; }
.info-email { overflow-wrap: anywhere; }
.info-email .nowrap { white-space: nowrap; }
