/* American Clean Care — site styles
   Colors come from the logo (navy, red, white). Change them here and the whole site updates. */
:root {
  --navy: #0f2340;
  --navy-2: #18345e;
  --red: #c8102e;
  --red-dark: #a10d25;
  --sky: #e8f0fb;
  --ink: #16202e;
  --muted: #5b6676;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 35, 64, .10);
  --shadow-lg: 0 24px 60px rgba(15, 35, 64, .18);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; letter-spacing: .2px; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { 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: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; cursor: pointer; font-size: 1rem; font-family: var(--body); }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(200, 16, 46, .30); }
.btn-red:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }

/* Top bar + header */
.topbar { background: var(--navy); color: #cfd9ea; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 7px 20px; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--head); font-size: 1.45rem; color: var(--navy); letter-spacing: .3px; }
.brand-text small { color: var(--red); font-weight: 600; font-size: .8rem; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav > ul > li > a { padding: 10px 12px; border-radius: 10px; display: block; }
.site-nav > ul > li > a:hover, body[data-nav] .site-nav li.active > a { color: var(--red); }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 10px 12px; border-radius: 10px; }
.sub a:hover { background: var(--bg-soft); color: var(--red); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.site-nav .btn-red, .site-nav .btn-red:hover { color: #fff; }
.nav-cta .phone { font-weight: 700; color: var(--navy); white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--navy); position: relative; transition: .2s; margin: auto; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.menu-open .bars { background: transparent; }
.menu-open .bars::before { top: 0; transform: rotate(45deg); }
.menu-open .bars::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,35,64,.96) 0%, rgba(15,35,64,.75) 50%, rgba(15,35,64,.25) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(64px, 10vw, 120px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #dbe4f3; max-width: 46ch; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.hero .eyebrow { color: #fff; background: rgba(200,16,46,.9); padding: 6px 12px; border-radius: 999px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: #e7eef9; font-weight: 500; }
.hero-points li::before { content: "✓"; color: #fff; background: var(--red); border-radius: 50%; width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: .7rem; margin-right: 8px; }
.page-hero .wrap { padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(48px, 7vw, 84px); }

/* Sections */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #dbe4f3; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-navy .section-head p { color: #c3cfe3; }

/* Trust strip */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0 auto; padding: 22px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.trust .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--sky); display: grid; place-items: center; color: var(--red); font-size: 1.2rem; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card-body .more { margin-top: auto; font-weight: 600; color: var(--red); text-decoration: none; }
.card-body .more::after { content: " →"; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--red); font-weight: 800; }
.cols-2 { columns: 2; column-gap: 32px; }

/* Feature tiles */
.feature { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.section-navy .feature { background: var(--navy-2); border-color: rgba(255,255,255,.08); }
.section-navy .feature p { color: #c3cfe3; }
.feature .num { font-family: var(--head); font-size: 2.6rem; color: var(--red); line-height: 1; margin-bottom: 8px; }
.feature h3 { font-size: 1.35rem; }

/* Split layout */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Industries chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 500; color: var(--navy); }

/* Before / after pairs */
.pair { display: grid; grid-template-columns: 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.caption { color: var(--muted); font-size: .95rem; margin-top: 10px; }

/* Gallery */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.gallery figcaption { padding: 10px 14px; font-size: .9rem; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); position: relative; }
.steps li::before { counter-increment: step; content: counter(step); width: 42px; height: 42px; border-radius: 12px; background: var(--red); color: #fff; font-family: var(--head); font-size: 1.5rem; display: grid; place-items: center; margin-bottom: 14px; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--red); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); }

/* Forms */
.form-card { background: #fff; border-radius: 20px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.req { color: var(--red); }
input, select, textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid #cfd7e3; border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(24,52,94,.12); }
textarea { min-height: 120px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 8px; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.checks label { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); background: var(--bg-soft); padding: 10px 12px; border-radius: 10px; cursor: pointer; margin: 0; }
.checks input { width: 18px; height: 18px; accent-color: var(--red); }
.hp { position: absolute; left: -5000px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; display: none; }
.form-status.ok { display: block; background: #e8f7ee; color: #145c32; }
.form-status.err { display: block; background: #fdecee; color: #8a1023; }
.quote-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.aside-card { background: var(--navy); color: #dbe4f3; border-radius: 20px; padding: 32px; position: sticky; top: 100px; }
.aside-card h3 { color: #fff; }
.aside-card a { color: #fff; font-weight: 700; }

/* CTA band + footer */
.cta-band { background: linear-gradient(120deg, var(--red) 0%, #9c0c24 100%); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; color: #ffe3e7; max-width: 52ch; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-red { background: #fff; color: var(--red); box-shadow: none; }
.site-footer { background: #0a1830; color: #b6c3d9; padding: 64px 0 24px; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1.2rem; letter-spacing: .5px; }
.site-footer a { color: #dbe4f3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid img { margin-bottom: 14px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: .85rem; }
.mobile-call, .mobile-quote { display: none; }

/* Scroll reveal (only when JS has run; never hides content otherwise) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* Tablet */
@media (max-width: 1080px) {
  .nav-cta .phone { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 900px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .topbar span { display: none; }
  .topbar-inner { justify-content: center; }
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 0 0 0 0; top: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 96px 20px 32px; gap: 20px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; z-index: -1; }
  .menu-open .site-nav { transform: none; }
  .site-nav > ul { flex-direction: column; gap: 0; }
  .site-nav > ul > li > a { font-size: 1.25rem; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .has-sub > a::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 12px; min-width: 0; }
  .nav-cta { flex-direction: column; align-items: stretch; }
  .nav-cta .phone { display: block; text-align: center; padding: 12px; border: 2px solid var(--navy); border-radius: 999px; }
  .grid-3, .grid-2, .split, .steps, .quote-layout { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .form-grid, .checks { grid-template-columns: 1fr; }
  .cols-2 { columns: 1; }
  .aside-card { position: static; }
  .mobile-call, .mobile-quote { display: flex; position: fixed; bottom: 0; z-index: 60; width: 50%; height: 60px; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; color: #fff; }
  .mobile-call { left: 0; background: var(--navy); }
  .mobile-quote { right: 0; background: var(--red); }
}
@media (max-width: 560px) {
  .grid-4, .trust ul, .footer-grid { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .hero-actions .btn { width: 100%; }
}

/* Heading that looks like an h3 (used where an h2 is needed for page structure) */
h2.h3 { font-size: 1.55rem; }
