/* =========================================================
   Pro Painting Plus Inc - styles
   Palette: white, red, blue. Edit the colors here.
   ========================================================= */
:root {
  --red: #D62839;
  --red-dark: #B01E2E;
  --navy: #0B2559;
  --navy-deep: #081A40;
  --blue: #1B5FD6;
  --blue-tint: #EEF4FD;
  --ink: #14213D;
  --muted: #526078;
  --line: #E1E7F0;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 89, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.mt { margin-top: 2.2rem; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .75em 1.35em;
  border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .95em 1.7em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(214, 40, 57, .3); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { color: var(--navy); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--blue-tint); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .7); background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-deep); color: #dbe5fb; font-size: .9rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-name .pro { color: var(--blue); }
.brand-name .plus { color: var(--red); }
.brand-tag { font-size: .78rem; color: var(--muted); }

.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; }
.site-nav a:hover { color: var(--red); }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-call, .header-quote { padding: .6em 1.1em; font-size: .95rem; }

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: #fff; border: 2px solid var(--line); border-radius: 12px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(27, 95, 214, .55), transparent 60%),
    linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #12388a);
  overflow: hidden;
}
.hero::after { /* red accent stripe */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--red) 0 33%, #fff 33% 66%, var(--blue) 66%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 64px 0 80px; }
.hero h1 { color: #fff; }
.hero .hl { color: #ff8a96; white-space: nowrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .8rem; color: #ffb3bb; margin-bottom: .8rem; }
.eyebrow.eyebrow-dark { color: var(--red); }
.lead { font-size: 1.15rem; color: #dbe5fb; max-width: 40ch; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 1.4rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; font-size: .95rem; color: #fff; }
.hero-points li::before { content: "\2713"; color: #7fe3a3; font-weight: 800; margin-right: .5em; }

/* ---------- Quote card ---------- */
.quote-card {
  background: #fff; color: var(--ink); border-radius: 20px; padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35); border-top: 6px solid var(--red);
  scroll-margin-top: 90px;
}
.quote-card h2 { font-size: 1.6rem; margin-bottom: .25em; }
.quote-sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.1rem; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 5px; color: var(--navy); }
.opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .7em .85em; border: 2px solid var(--line); border-radius: 10px; background: #fff;
  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(--blue); box-shadow: 0 0 0 4px rgba(27, 95, 214, .15);
}
.field input.invalid, .field select.invalid { border-color: var(--red); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { margin: 12px 0 0; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form-status.ok { color: #14753b; }
.form-status.err { color: var(--red-dark); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tint { background: var(--blue-tint); }
.section-head { max-width: 680px; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--blue-tint);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .icon svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-link { margin-top: auto; font-weight: 700; color: var(--red); text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.card-cta { background: var(--navy); border-color: var(--navy); color: #fff; justify-content: center; }
.card-cta h3 { color: #fff; }
.card-cta p { color: #cfdbf7; }

/* Before / After */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ba-item { margin: 0; }
.ba-item figcaption, .more-item figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.ba-item figcaption strong, .more-item figcaption strong { display: block; color: var(--navy); font-size: 1.02rem; margin-bottom: 2px; }
.ba {
  position: relative; aspect-ratio: 1 / 1; max-width: 100%; overflow: hidden; border-radius: var(--radius);
  background: #cfd8ea; box-shadow: var(--shadow); user-select: none; -webkit-user-select: none;
  touch-action: pan-y; cursor: ew-resize; /* horizontal drag moves the slider, vertical swipe still scrolls the page */
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-tag {
  position: absolute; top: 12px; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: #fff; pointer-events: none;
}
.ba-tag-before { left: 12px; background: rgba(8, 26, 64, .82); }
.ba-tag-after { right: 12px; background: var(--red); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; transform: translate(-50%, -50%);
  background: #fff; border-radius: 50%; box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.ba-handle span::before, .ba-handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; transform: translateY(-50%);
  border: 6px solid transparent;
}
.ba-handle span::before { left: 7px; border-right-color: var(--red); border-left: 0; }
.ba-handle span::after { right: 7px; border-left-color: var(--red); border-right: 0; }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  pointer-events: none; /* dragging is handled on .ba; the input stays for keyboard use */
}
.ba:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Tap-to-switch cards (for pairs shot from different angles) */
.ba-toggle { cursor: pointer; touch-action: manipulation; }
.ba-toggle .ba-before { clip-path: none; transition: opacity .35s ease; }
.ba-toggle[data-show="after"] .ba-before { opacity: 0; }
.ba-switch {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; padding: 4px; gap: 4px; border-radius: 999px;
  background: rgba(8, 26, 64, .78); backdrop-filter: blur(6px);
}
.ba-switch button {
  font: inherit; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: transparent; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer;
  min-height: 36px;
}
.ba-switch button[aria-pressed="true"][data-view="before"] { background: #fff; color: var(--navy); }
.ba-switch button[aria-pressed="true"][data-view="after"] { background: var(--red); color: #fff; }
.ba-switch button:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
.ba-toggle:focus-within { outline: none; }

/* More finished work */
.more-h { margin: 3rem 0 1rem; font-size: 1.25rem; }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.more-item {
  margin: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
}
.more-item img { width: 150px; height: 150px; object-fit: cover; border-radius: 10px; }
.more-item figcaption { margin: 0; }

/* About */
.about-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow); }
.about-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; max-width: 52ch; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.checks li { font-weight: 700; color: var(--navy); display: flex; gap: .55em; align-items: baseline; }
.checks li::before { content: "\2713"; color: var(--red); font-weight: 800; }
.about-note { font-size: .95rem !important; margin: 0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.steps p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 14px;
}

/* Service area */
.section-navy { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; }
.section-navy h2 { color: #fff; }
.area-inner { display: grid; grid-template-columns: 1.4fr .8fr; gap: 48px; align-items: center; }
.lead-sm { color: #d3def8; font-size: 1.05rem; }
.chips { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); padding: 6px 14px; border-radius: 999px; font-size: .92rem; font-weight: 600; }
.hours-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 28px; display: grid; gap: 12px; border-top: 6px solid var(--red); }
.hours-card h3 { margin: 0; }
.hours-card .btn-outline-light { color: var(--navy); border-color: var(--navy); }
.hours-card .btn-outline-light:hover { background: var(--navy); color: #fff; }
.hours-line { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hours-line span { color: var(--muted); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq summary {
  cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 700; color: var(--navy); list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--red); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] { border-color: var(--blue); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--red); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; max-width: 24ch; }
.cta-band p { margin: 0; color: #ffe3e6; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-white { color: var(--red-dark); }
.cta-band .btn-outline-light:hover { color: var(--red-dark); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #b9c8ea; padding-top: 52px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer-brand { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: .4em; }
.footer-h { color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: .6em; }
.site-footer a { color: #fff; font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0 22px; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* Mobile sticky bar */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0 64px; gap: 36px; }
  .lead { max-width: none; }
  .cards, .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .area-inner { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .header-call { display: none; }
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgba(11, 37, 89, .12);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .25s ease;
  }
  .site-nav.open { max-height: 420px; visibility: visible; }
  .site-nav a { padding: 15px 20px; border-top: 1px solid var(--line); }
  .nav-cta-mobile { display: block; color: var(--red) !important; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-inner > span { display: none; }
  .header-quote { display: none; }
  .brand-tag { display: none; }
  .section { padding: 60px 0; }
  .cards, .ba-grid, .more-grid { grid-template-columns: 1fr; }
  .more-item { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
  .more-item img { width: 110px; height: 110px; }
  .checks { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .quote-card { padding: 22px; }
  .hero-buttons .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-buttons, .cta-buttons .btn { width: 100%; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .18); padding-bottom: env(safe-area-inset-bottom);
    background: var(--navy);
  }
  .mobile-bar a { text-align: center; padding: 17px 8px; font-weight: 800; color: #fff; text-decoration: none; }
  .mobile-bar .mb-quote { background: var(--red); }
}

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