/* ==========================================================================
   Dan Bergman Pressure Cleaning LLC — main stylesheet
   Palette taken from the company trailer: navy lettering on white, Florida
   sky and sand, with a warm orange reserved exclusively for the call action.
   ========================================================================== */

:root {
  /* REPLACEABLE IMAGES ---------------------------------------------------
     Swap the file in assets/ (keep the name) or change the name here.      */
  --img-hero:            url("assets/hero-trailer-at-home.jpg");
  --img-banner-services: url("assets/trailer-panorama.jpg");
  /* --------------------------------------------------------------------- */

  --ink:        #0e2135;
  --ink-soft:   #47596c;
  --brand:      #1d4e89;
  --brand-dark: #123458;
  --brand-tint: #e9f1f9;
  --accent:     #c2410c;
  --accent-dark:#9a3412;
  --sand:       #f6f3ed;
  --paper:      #ffffff;
  --line:       #dde4ec;

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

  --step--1: 0.875rem;
  --step-0:  1.0625rem;
  --step-1:  clamp(1.15rem, 1.06rem + 0.35vw, 1.35rem);
  --step-2:  clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
  --step-3:  clamp(1.65rem, 1.35rem + 1.3vw, 2.35rem);
  --step-4:  clamp(2.05rem, 1.5rem + 2.6vw, 3.4rem);

  --sp-section: clamp(3.25rem, 2rem + 5vw, 6rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(14,33,53,.06), 0 8px 28px -12px rgba(14,33,53,.22);
  --shadow-lg: 0 2px 6px rgba(14,33,53,.07), 0 26px 60px -26px rgba(14,33,53,.38);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* on the navy bands the orange ring is too close in luminance to read */
.trust :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible,
.lightbox :focus-visible { outline-color: #fff; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); letter-spacing: -0.015em; }
h4 { font-size: var(--step-1); letter-spacing: -0.01em; }
p  { text-wrap: pretty; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 2.5rem); }
.section { padding-block: var(--sp-section); }
.section--tight { padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: .75rem 1.15rem;
  border-radius: 0 0 var(--radius) 0; font-weight: 700;
}
.skip:focus { left: 0; color: #fff; }
.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0;
}

.eyebrow {
  font-size: var(--step--1); font-weight: 800; letter-spacing: .11em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .75rem;
}
.eyebrow--light { color: #a9c8ea; }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.6; }
.section-head { max-width: 62ch; margin-bottom: clamp(1.75rem, 1rem + 2.5vw, 3rem); }
.section-head p { margin-top: .85rem; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 700; letter-spacing: -0.01em;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(194,65,12,.9); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); border-color: #b9cde3; }
.btn--ghost:hover { background: var(--brand-tint); color: var(--brand-dark); border-color: var(--brand); }
.btn--on-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.45); }
.btn--on-dark:hover { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn--lg { padding: 1rem 1.85rem; font-size: var(--step-1); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: .75rem;
  padding-block: .7rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text b { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.025em; color: var(--brand-dark); }
.brand-text span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

.header-call { display: none; padding: .6rem 1.05rem; font-size: .98rem; }

/* Persistent call bar on phones: the phone number is never more than a thumb
   away, at any scroll position, on any page. */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; gap: .6rem;
  padding: .6rem .85rem calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(150%) blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 26px -14px rgba(14,33,53,.5);
}
.mobile-cta .btn { flex: 1 1 0; padding: .78rem .5rem; font-size: .95rem; }
.mobile-cta .btn--ghost { background: #fff; }
body { padding-bottom: 4.9rem; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  font: inherit; font-weight: 700; color: var(--brand-dark);
  background: var(--brand-tint); border: 1px solid #cfdff0;
  padding: .55rem .9rem; border-radius: 999px; cursor: pointer;
}
.nav-toggle:hover { background: #dbe8f6; }
.nav-toggle .bars { display: grid; gap: 3px; }
.nav-toggle .bars i { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }

.site-nav { flex-basis: 100%; display: none; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; padding: .5rem 0 .75rem; display: grid; gap: .1rem; }
.site-nav a {
  display: block; padding: .6rem .25rem; text-decoration: none;
  font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--accent); }

@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  .site-nav { display: block; flex-basis: auto; margin-inline: auto 0; }
  .site-nav ul { display: flex; gap: .35rem; padding: 0; }
  .site-nav a {
    border-bottom: 0; padding: .5rem .8rem; border-radius: 999px;
    font-weight: 600; font-size: .98rem; color: var(--ink-soft);
  }
  .site-nav a:hover { background: var(--brand-tint); color: var(--brand-dark); }
  .site-nav a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-tint); }
  .header-call { display: inline-flex; margin-left: .6rem; }
  .mobile-cta { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- hero ---------- */
.hero { background: linear-gradient(178deg, var(--brand-tint) 0%, #fff 62%); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 4.75rem);
  align-items: center;
}
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lede { max-width: 46ch; }
.hero .btn-row { margin-top: 1.9rem; }
.hero-note { margin-top: 1rem; font-size: var(--step--1); color: var(--ink-soft); }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-stamp {
  position: static; margin-top: 1rem;
  background: var(--brand-dark); color: #fff;
  padding: .8rem 1.15rem; border-radius: var(--radius);
  box-shadow: var(--shadow); max-width: 15rem;
}
@media (min-width: 75rem) {
  /* only once the photo is wide enough that the badge clears the trailer lettering */
  .hero-stamp { position: absolute; left: -.5rem; bottom: -1.6rem; margin-top: 0; }
}
.hero-stamp b { display: block; font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.03em; }
.hero-stamp span { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #a9c8ea; font-weight: 700; }

/* ---------- trust strip ---------- */
.trust { background: var(--brand-dark); color: #fff; }
.trust ul {
  list-style: none; padding: 1.5rem 0; margin: 0;
  display: grid; gap: 1.1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.trust li { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; }
.trust svg { flex: none; margin-top: .22rem; color: #7fb2e6; }
.trust b { display: block; letter-spacing: -0.01em; }
.trust span { color: #b9cde3; font-size: .88rem; line-height: 1.45; display: block; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--ink-soft); font-size: .99rem; }
.card--service { display: grid; gap: .35rem; align-content: start; }
.card--service .card-icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--brand-tint);
  color: var(--brand); display: grid; place-items: center; margin-bottom: .85rem;
}
a.card:hover, .card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* surfaces list */
.surfaces { list-style: none; padding: 0; display: grid; gap: .5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.surfaces li { display: flex; gap: .6rem; align-items: baseline;
  padding: .55rem .2rem; border-bottom: 1px solid var(--line); font-weight: 600; }
.surfaces li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent); transform: translateY(-1px); }

/* ---------- editorial ---------- */
.prose > * + * { margin-top: 1.05rem; }
.prose h3 { margin-top: 2.2rem; }
.prose ul { padding-left: 1.15rem; }
.split { display: grid; gap: clamp(1.75rem, 1rem + 3.5vw, 3.25rem); align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } .split--wide-text { grid-template-columns: 1.15fr .85fr; } }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.figure-note { margin-top: .7rem; font-size: var(--step--1); color: var(--ink-soft); }

.pullquote {
  border-left: 4px solid var(--accent); background: var(--sand);
  padding: 1.15rem 1.35rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--step-1); font-weight: 600; line-height: 1.5; color: var(--ink);
}

/* ---------- before / after ---------- */
.ba-pair { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .ba-pair { grid-template-columns: 1fr 1fr; } }
.ba-item { position: relative; margin: 0; }
.ba-item img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.ba-tag {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--ink); color: #fff; font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px;
}
.ba-tag--after { background: var(--accent); }

/* ---------- gallery ---------- */
/* Masonry columns: every photo keeps its natural aspect ratio, so the stacked
   before/after composites are never cropped. */
.gallery-grid { columns: 3 17rem; column-gap: 1rem; }
.gallery-item { margin: 0 0 1.6rem; break-inside: avoid; -webkit-column-break-inside: avoid; }
.gallery-item button {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-item button:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: auto; }
.gallery-item figcaption { margin-top: .6rem; font-size: .92rem; color: var(--ink-soft); font-weight: 600; }
.no-js .gallery-item button { cursor: default; }

.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(9,20,32,.93); padding: clamp(1rem, 3vw, 2.5rem);
  align-items: center; justify-content: center;
}
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: var(--radius); }
.lightbox figcaption { color: #dbe8f6; margin-top: .9rem; font-size: .95rem; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1);
  color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: #fff; color: var(--ink); }

/* ---------- testimonials ---------- */
.quote {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow); display: grid; gap: 1rem; align-content: start;
}
.quote blockquote { font-size: var(--step-1); line-height: 1.55; font-weight: 600; letter-spacing: -0.01em; }
.quote blockquote::before { content: "“"; color: var(--accent); font-size: 2.6rem; line-height: 0; vertical-align: -.35em; margin-right: .1em; }
.quote .who { font-size: .85rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .85rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.faq-item h2 { font-size: var(--step-1); padding: 1.15rem 1.4rem .4rem; }
.faq-item p { padding: 0 1.4rem 1.35rem; color: var(--ink-soft); }

/* ---------- bands ---------- */
.band--sand { background: var(--sand); }
.band--tint { background: var(--brand-tint); }
.band--navy { background: var(--brand-dark); color: #fff; }
.band--navy h2, .band--navy h3 { color: #fff; }
.band--navy p { color: #c9dcef; }
.band--navy a:not(.btn) { color: #fff; }

.cta-band { position: relative; overflow: hidden; background: var(--brand-dark); color: #fff; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--img-banner-services);
  background-size: cover; background-position: center 62%;
  opacity: .22;
}
.cta-band .wrap { position: relative; }
.cta-inner { display: grid; gap: 1.5rem; padding-block: clamp(2.75rem, 2rem + 4vw, 4.5rem); }
@media (min-width: 54rem) { .cta-inner { grid-template-columns: 1.3fr auto; align-items: center; gap: 2.5rem; } }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: #cfe0f1; margin-top: .7rem; max-width: 48ch; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 1.25rem + 3vw, 3.25rem); align-items: start; }
@media (min-width: 58rem) { .contact-grid { grid-template-columns: 1fr 1.05fr; } }

.contact-line { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-line:first-of-type { border-top: 1px solid var(--line); }
.contact-line svg { flex: none; color: var(--brand); margin-top: .3rem; }
.contact-line .k { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-line .v { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; word-break: break-word; }
.contact-line .v a { text-decoration: none; }
.contact-line .v a:hover { text-decoration: underline; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); box-shadow: var(--shadow-lg); }
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 700; font-size: .95rem; }
.field .hint { font-size: .82rem; color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: #fcfdfe;
  border: 1.5px solid #c9d5e2; border-radius: 10px; padding: .7rem .85rem; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,78,137,.16);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.cf-turnstile { margin-bottom: 1.1rem; }
.form-status { margin-top: 1rem; padding: .9rem 1.05rem; border-radius: 10px; font-weight: 600; font-size: .97rem; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #e7f5ec; color: #14532d; border: 1px solid #a9d7bb; }
.form-status.err { background: #fdeceb; color: #7f1d1d; border: 1px solid #f0b4ae; }
.form-legal { margin-top: .9rem; font-size: .84rem; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b8c7d6; padding-block: clamp(2.75rem, 2rem + 3vw, 4rem) 1.75rem; font-size: .96rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.site-footer h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #7f95ab; margin-bottom: .9rem; font-weight: 800; }
.site-footer a { color: #e6eef6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.footer-brand b { display: block; color: #fff; font-size: 1.1rem; letter-spacing: -0.02em; }
.footer-brand p { margin-top: .55rem; max-width: 32ch; }
.footer-phone { display: inline-block; margin-top: .9rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: #fff !important; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid #23384c;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .85rem; color: #8299ad;
}
.footer-bottom p { margin: 0; }
[data-ss-credit] a { color: #a7bccf; text-decoration: underline; }

/* ---------- misc ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .9rem; font-size: .85rem; font-weight: 700; color: var(--brand-dark);
  box-shadow: 0 1px 2px rgba(14,33,53,.05);
}
.badge svg { color: var(--accent); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
.sources { font-size: .9rem; color: var(--ink-soft); }
.sources li { margin-bottom: .3rem; word-break: break-word; }
