/* =========================================================
   Double J Custom Painting — site styles
   Mobile-first. No frameworks. Edit the tokens below to retheme.
   ========================================================= */

:root {
  --navy: #0f2a44;
  --navy-700: #16395c;
  --navy-50: #eef3f8;
  --gold: #ffc629;
  --gold-600: #e6a800;
  --ink: #1b2430;
  --muted: #4f5b69;
  --line: #dbe2ea;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --ok: #1d7a46;
  --err: #b42318;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 6px 24px rgba(15, 42, 68, 0.10);
  --shadow-lg: 0 14px 40px rgba(15, 42, 68, 0.18);
  --wrap: 1140px;
  --header-h: 64px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.15; color: var(--navy); margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); font-weight: 850; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--gold-600); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.75em 1.4em;
  font: inherit; font-weight: 800; font-size: 1.05rem; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 4px 0 var(--gold-600); }
.btn-primary:hover { background: #ffd04f; color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color: #fff; }
.btn-outline { border-color: currentColor; color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-dark:hover { background: var(--navy-50); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(15,42,68,.06);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255,255,255,.88); backdrop-filter: blur(8px); }
}
.header-inner { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); margin-right: auto; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-size: 1.15rem; font-weight: 900; letter-spacing: -0.02em; }
.logo-text span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

.header-call {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--gold); color: var(--navy); font-weight: 800; text-decoration: none;
  box-shadow: 0 3px 0 var(--gold-600);
}
.header-call svg { width: 18px; height: 18px; }
.header-call .call-number { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 2px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.site-nav ul { list-style: none; margin: 0; padding: 8px 16px 16px; }
.site-nav a {
  display: block; padding: 12px 6px; font-weight: 700; color: var(--navy);
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
.site-nav .nav-cta { margin-top: 12px; border: 0; }
.site-nav .nav-cta a { border: 0; text-align: center; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
  .site-nav a { border: 0; padding: 8px 10px; border-radius: 8px; }
  .site-nav a:hover { background: var(--navy-50); }
  .site-nav .nav-cta { margin: 0 0 0 6px; }
  .site-nav .nav-cta a { padding: 0.6em 1.1em; min-height: 44px; }
  .site-nav .nav-cta a:hover { background: #ffd04f; }
  .header-call .call-number { display: inline; }
  .header-call { order: 3; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,28,46,.70) 0%, rgba(10,28,46,.82) 100%);
}
.hero-inner { padding: 56px 16px 64px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 .hl { color: var(--gold); }
.hero-lede { font-size: 1.15rem; max-width: 46ch; color: #e8eef5; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 22px; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 700; font-size: .95rem; color: #e8eef5; }
.hero-badges li { display: flex; align-items: center; gap: 6px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--gold); }

@media (min-width: 600px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 960px) {
  .hero-inner { padding: 110px 16px 120px; }
  .hero::after { background: linear-gradient(90deg, rgba(10,28,46,.88) 0%, rgba(10,28,46,.65) 55%, rgba(10,28,46,.25) 100%); }
}

/* Interior page banner */
.page-hero { background: var(--navy); color: #fff; padding: 44px 0 40px; position: relative; overflow: hidden; border-bottom: 6px solid var(--gold); }
.page-hero::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  border-radius: 50%; background: #fff; opacity: .06;
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #dbe5ef; max-width: 60ch; font-size: 1.1rem; margin: 0; }
.breadcrumbs { font-size: .9rem; margin-bottom: 10px; }
.breadcrumbs a { color: #c9d6e3; }
.breadcrumbs span { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #e8eef5; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 30px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--navy-700); margin-bottom: 8px; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 4px; background: var(--gold); border-radius: 2px; vertical-align: middle; margin-right: 8px; }
.section-navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); }
.section-navy .lead { color: #cbd7e3; }
@media (min-width: 960px) { .section { padding: 84px 0; } }

/* Grids */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy); color: var(--gold); margin-bottom: 14px;
}
.card-icon svg { width: 28px; height: 28px; }
.card-link { font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card-link::after { content: "→"; transition: transform .15s; }
.card-link:hover::after { transform: translateX(3px); }

/* Check list */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a44' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* Split layout */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.reverse > :first-child { order: 2; }
}
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy-50); }
.media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Stats / trust strip */
.trust-strip { background: var(--gold); color: var(--navy); }
.trust-strip ul { list-style: none; margin: 0; padding: 18px 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); font-weight: 800; font-size: .95rem; }
.trust-strip li { display: flex; align-items: center; gap: 8px; }
.trust-strip svg { width: 22px; height: 22px; flex: none; }
@media (min-width: 900px) { .trust-strip ul { grid-template-columns: repeat(4, 1fr); padding: 22px 0; font-size: 1.02rem; } }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; background: #fff; border-radius: var(--radius-lg); padding: 26px 22px 22px; border: 1px solid var(--line); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-weight: 900; margin-bottom: 12px;
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }

/* Service area chips */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; color: var(--navy); }
.section-navy .chips li { background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }

/* ---------- Services page ---------- */
.service-nav { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.service-nav a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--navy-50); color: var(--navy); font-weight: 700; text-decoration: none; }
.service-nav a:hover { background: var(--gold); }
.service-block { padding: 56px 0; border-bottom: 1px solid var(--line); }
.service-block:nth-of-type(even) { background: var(--bg-soft); }
.service-block h2 { display: flex; align-items: center; gap: 12px; }
.service-block h2 .card-icon { margin: 0; width: 46px; height: 46px; flex: none; }
.realtor-callout { border-left: 6px solid var(--gold); background: #fffbea; padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.2em 0; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button {
  font: inherit; font-weight: 700; padding: 8px 16px; min-height: 44px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--line); background: #fff; color: var(--navy);
}
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery { display: grid; gap: 24px; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.ba { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.ba[hidden] { display: none; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.ba-pair div { position: relative; }
.ba-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ba-tag {
  position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em;
}
.ba-tag.before { background: rgba(15,42,68,.85); color: #fff; }
.ba-tag.after { background: var(--gold); color: var(--navy); }
.ba figcaption { padding: 16px 20px 20px; }
.ba figcaption strong { display: block; color: var(--navy); font-size: 1.08rem; }
.ba figcaption span { color: var(--muted); font-size: .95rem; }

/* ---------- Reviews ---------- */
.review { position: relative; }
.review blockquote { margin: 0 0 14px; font-size: 1.05rem; }
.review .stars { color: var(--gold-600); font-size: 1.15rem; letter-spacing: 2px; margin-bottom: 8px; }
.review footer { font-weight: 800; color: var(--navy); }
.review footer span { display: block; font-weight: 600; color: var(--muted); font-size: .92rem; }
.example-flag {
  display: inline-block; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  background: #fde7e5; color: var(--err); border: 1px dashed var(--err); padding: 2px 8px; border-radius: 6px; margin-bottom: 10px;
}
.notice { background: #fffbea; border: 2px dashed var(--gold-600); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: 0 2px 8px rgba(15,42,68,.05); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; position: relative;
  font-weight: 800; color: var(--navy); font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-50); font-size: 1.3rem; font-weight: 700; line-height: 1;
}
.faq details[open] summary::after { content: "–"; background: var(--gold); }
.faq .answer { padding: 0 20px 18px; color: var(--ink); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff; padding: 52px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d5e0ea; max-width: 56ch; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
@media (min-width: 600px) { .cta-band .actions { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: start; } }
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { display: block; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.field .req { color: var(--err); }
.field .hint { display: block; font-size: .9rem; color: var(--muted); font-weight: 500; margin-top: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; min-height: 48px; border-radius: 10px;
  border: 2px solid var(--line); background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-700); outline: 3px solid rgba(255,198,41,.6); outline-offset: 0; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); }
.field .error { color: var(--err); font-size: .92rem; font-weight: 700; margin-top: 4px; }
.field .error:empty { display: none; }
.photo-note { display: flex; gap: 12px; background: var(--navy-50); border-radius: var(--radius); padding: 16px; }
.photo-note svg { width: 28px; height: 28px; flex: none; color: var(--navy-700); }
.photo-note p { margin: 0; }
.form-status { padding: 14px 16px; border-radius: 10px; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.ok { background: #e7f6ee; color: var(--ok); }
.form-status.err { background: #fde7e5; color: var(--err); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-card { background: var(--navy); color: #e8eef5; border-radius: var(--radius-lg); padding: 26px; }
.contact-card h2 { color: #fff; font-size: 1.5rem; }
.contact-card a { color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 0 0 18px; }
.contact-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-list svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 3px; }
.contact-list strong { display: block; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1d30; color: #b8c6d4; padding: 48px 0 24px; font-size: .97rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer .logo-text span { color: #9fb2c5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--muted); }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; }

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

@media print {
  .site-header, .site-footer, .cta-band, .hero-actions { display: none; }
}
