:root {
  --primary: #015778;
  --primary-dark: #013a52;
  --primary-deep: #012a3c;
  --primary-tint: #e6f1f6;
  --accent: #f2a900;
  --accent-dark: #c98c00;
  --ink: #14232b;
  --muted: #5a6b74;
  --line: #d8e2e7;
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --radius: 10px;
  --max: 1120px;
}

* { 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(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Top bar */
.topbar { background: var(--primary-deep); color: #cfe3ec; font-size: .875rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font-weight: 800; font-size: 1.2rem; }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; background: var(--primary); display: grid; place-items: center; }
.brand-mark svg { width: 22px; height: 22px; fill: #fff; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--primary-tint); }
.nav a[aria-current="page"] { color: var(--primary); background: var(--primary-tint); font-weight: 600; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; color: var(--primary); font-weight: 600; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; background: var(--primary); color: #fff !important; text-decoration: none; padding: 12px 22px; border-radius: 8px; font-weight: 700; border: 2px solid var(--primary); cursor: pointer; font-size: 1rem; font-family: inherit; text-align: center; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #1a1400 !important; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; border-color: #fff; color: #fff !important; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { background: transparent; color: var(--primary) !important; }
.btn-outline:hover { background: var(--primary-tint); border-color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 72px 0 80px; }
.home-hero, .photo-hero {
  background-color: var(--primary-deep);
  background-image: linear-gradient(90deg, rgba(1, 20, 30, .76) 0%, rgba(1, 20, 30, .62) 55%, rgba(1, 20, 30, .32) 100%), var(--hero-image, url("assets/sacramento-tower-bridge.jpg"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.home-hero p.lead, .photo-hero p.lead { color: #fff; }
.hero p.lead { font-size: 1.2rem; max-width: 640px; color: #d6e8f0; }
.hero .eyebrow { color: var(--accent); }
.page-hero { padding: 52px 0 56px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }

/* Trust strip */
.trust { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; }
.trust-item .ico { flex: none; }

.ico { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-tint); display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */
section { padding: 64px 0; }
.soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .ico { margin-bottom: 14px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; }
.card .more:hover { text-decoration: underline; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step p { color: var(--muted); margin: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23015778' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.panel { background: var(--primary-tint); border-radius: var(--radius); padding: 32px; }
.panel h3 { color: var(--primary-dark); }

/* CTA band */
.cta-band { background: var(--primary-dark); color: #fff; text-align: center; }
.cta-band p { color: #cfe3ec; max-width: 560px; margin: 0 auto 24px; }
.cta-band .btn-row { justify-content: center; }

/* Notice */
.notice { border-left: 4px solid var(--accent); background: #fff8e6; padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: .95rem; }
.notice.info { border-color: var(--primary); background: var(--primary-tint); }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { background: var(--primary); color: #fff; font-weight: 600; font-size: .9rem; }
tr:last-child td { border-bottom: 0; }
.ph { background: #fff3cd; padding: 1px 6px; border-radius: 4px; font-size: .9em; }

/* Forms */
form.card { padding: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border: 1px solid #b9c8cf; border-radius: 8px; font: inherit; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(1,87,120,.25); border-color: var(--primary); }
.field textarea { min-height: 110px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 14px; padding: 12px 16px; border-radius: 8px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #e6f6ec; color: #14532d; }
.form-msg.warn { background: #fff8e6; color: #5f4500; }
.form-msg.err { background: #fdecea; color: #7a1b13; }
.help { color: var(--muted); font-size: .88rem; margin-top: 4px; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--primary); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); }

/* Footer */
.site-footer { background: var(--primary-deep); color: #b8d0db; padding: 52px 0 24px; font-size: .95rem; }
.site-footer a { color: #e3f0f6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand-mark { background: rgba(255,255,255,.14); }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }

/* Mobile call bar */
.callbar { display: none; }

@media (max-width: 900px) {
  .trust .wrap { grid-template-columns: repeat(2, 1fr); }
  .g3, .g4, .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1260px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 18px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
}
@media (max-width: 760px) {
  .topbar .hide-m { display: none; }
  .callbar { display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--accent); text-align: center; padding: 14px; font-weight: 800; color: #1a1400; text-decoration: none; }
  body { padding-bottom: 52px; }
}
@media (max-width: 600px) {
  .g2, .g3, .g4, .steps, .row2, .trust .wrap { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .hero { padding: 52px 0 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.brand-logo { height: 46px; width: auto; display: block; }
.site-footer .brand-logo { height: 54px; }
.brand { flex: none; }
@media (max-width: 480px) {
  .brand { font-size: 1rem; gap: 8px; }
  .brand-logo { height: 36px; }
  .site-footer .brand-logo { height: 44px; }
  .site-header .wrap { gap: 8px; }
}
