:root {
  /* Palette matches the home page (src/pages/home.php .pc-modern). */
  --ink: #142d45;
  --ink-2: #33506b;
  --muted: #60748a;
  --brand: #082c56;      /* navy */
  --accent: #087fda;     /* bright blue */
  --accent-dark: #0066b7;
  --accent-soft: #e3f4ff;
  --sky: #6bd0ff;        /* light blue on dark backgrounds */
  --check: #0c9c8c;
  --sun: #ffd166;
  --bg: #ffffff;
  --tint: #f1f8fd;
  --line: #e1ecf4;
  --danger: #c0392b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 37, 48, .06), 0 8px 24px rgba(11, 37, 48, .07);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.035em; }
h2 { color: var(--brand); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.muted { color: var(--muted); }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.icon { width: 24px; height: 24px; flex: none; }
.icon.sm { width: 18px; height: 18px; }
.icon.lg { width: 36px; height: 36px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 24px; border-radius: 9px; font: inherit; font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 26px rgba(8,127,218,.19); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-outline:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #e7f5ff; }

/* Header */
.topbar { background: var(--brand); color: #cfe0f2; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar a { color: #fff; font-weight: 600; }
@media (max-width: 560px) { .topbar-inner > span { display: none; } .topbar-inner { justify-content: center; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--brand)); color: #fff; }
.logo-mark .icon { width: 22px; height: 22px; }
.logo-text { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1; }
.logo-text span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-dark); margin-top: 4px; }
.logo-light { color: #fff; }
.logo-light .logo-text span { color: var(--sky); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .96rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--brand); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent-dark); }
  .site-nav .btn { margin-top: 12px; }
}

/* Shared bits */
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 800; color: var(--accent); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }

.page-hero { background: linear-gradient(90deg, rgba(4,29,57,.95) 0%, rgba(4,29,57,.85) 45%, rgba(4,29,57,.25) 100%), var(--hero-img, none) center/cover, var(--brand); color: #fff; padding: 88px 0 80px; }
.page-hero h1 { color: #fff; max-width: 15em; margin: 16px 0; }
.page-hero h1 em { font-style: normal; color: var(--sky); }
.page-hero .eyebrow { color: #75ceff; margin: 0; }
.page-hero .lead { color: #e4f0fb; max-width: 34em; margin: 0; }
@media (max-width: 650px) { .page-hero { padding: 60px 0 56px; background: linear-gradient(90deg, rgba(4,29,57,.94), rgba(4,29,57,.7)), var(--hero-img, none) center/cover, var(--brand); } }

/* Sections */
.section { padding: 94px 0; }
@media (max-width: 650px) { .section { padding: 65px 0; } }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin: 0 auto 42px; text-align: center; }

.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.service-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.service-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.service-card p { color: var(--muted); flex: 1; }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; flex: none; }
.card-icon.lg { width: 64px; height: 64px; }
.card-icon.lg .icon { width: 30px; height: 30px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent-dark); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.steps p { color: var(--muted); margin: 0; }
.step-num { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 1.35rem; font-weight: 900; margin-bottom: 18px; }

.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.feature-list li, .value { display: flex; gap: 16px; align-items: flex-start; }
.feature-list li > .icon, .value > .icon { color: var(--accent-dark); background: var(--accent-soft); border-radius: 12px; padding: 10px; width: 44px; height: 44px; }
.feature-list p, .value p { color: var(--muted); margin: 0; }
.values { display: grid; gap: 22px; }
.prose p { color: var(--ink-2); }
.prose .eyebrow { color: var(--accent); }

.cta-band { background: linear-gradient(115deg, #062b54, #0879c9); color: #fff; padding: 62px 0; }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band .eyebrow { color: #8cdaff; }
.cta-band p { margin: 0; color: #d9eeff; }

/* Services page */
.service-list { display: grid; gap: 28px; }
.service-row { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid #e6edf5; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 35px rgba(11,44,75,.05); scroll-margin-top: 100px; }
.service-row img { width: 100%; height: 240px; object-fit: cover; }
.service-body { padding: 28px; }
.service-row h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: .3em; }
.service-body .btn { margin-top: 22px; }
@media (min-width: 820px) {
  .service-row { grid-template-columns: 380px 1fr; }
  .service-row img { height: 100%; min-height: 300px; }
  .service-body { padding: 36px 40px; }
  .service-row:nth-child(even) { grid-template-columns: 1fr 380px; }
  .service-row:nth-child(even) img { order: 2; }
}
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.checks li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink); font-weight: 600; }
.checks .icon { margin-top: 3px; }

.area-list { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.area-list li { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; }
.area-list .icon { color: var(--accent); }

/* About page */
.split-photo { width: 100%; height: 470px; object-fit: cover; border-radius: 20px; box-shadow: 20px 20px 0 #e1f3ff; }
@media (max-width: 900px) { .split-photo { height: 340px; } }
@media (max-width: 650px) { .split-photo { height: 280px; box-shadow: 10px 10px 0 #e1f3ff; } }

/* Quote form */
.quote-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .quote-grid { grid-template-columns: 1.6fr 1fr; } }
.form-card, .contact-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .form-card { padding: 36px; } }
.contact-card { background: var(--tint); box-shadow: none; }
.contact-card h2 { font-size: 1.35rem; }
.contact-card .contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-card .contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-card .contact-list .icon { color: var(--accent-dark); margin-top: 2px; }
.contact-card strong { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.contact-card a, .contact-card span { font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }

.form-row { display: grid; gap: 0 18px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field em { color: var(--danger); font-style: normal; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(8,127,218,.15); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .88rem; font-weight: 600; margin: 6px 0 0; }
.alert { background: #fdecea; color: #8e2a1f; border: 1px solid #f5c6c0; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.fine { font-size: .85rem; color: var(--muted); text-align: center; margin: 14px 0 0; }
.success { text-align: center; padding: 24px 0; }
.success .card-icon { margin: 0 auto 18px; }

/* Footer */
.site-footer { background: #061f3d; color: #b8cbd1; padding: 56px 0 0; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.2fr 1fr .8fr 1.4fr; } }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { transition: color .15s; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #d6e4e8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #8ea3bb; margin-top: 14px; }
.site-footer .contact-list li, .site-footer .contact-list a { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.footer-base { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; padding-bottom: 24px; font-size: .85rem; color: #8ea3bb; }

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