/* =========================================================
   Brighton Driveway Cleaning — main stylesheet
   Mobile-first, dependency-free, fast-loading.
   ========================================================= */

:root {
  --navy: #0b3d63;
  --navy-dark: #082c48;
  --teal: #14b8a6;
  --teal-dark: #0e8c7f;
  --orange: #f2994a;
  --orange-dark: #d97e2c;
  --ink: #1c2a33;
  --grey-100: #f5f7f8;
  --grey-200: #e8ecee;
  --grey-500: #64748b;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(11, 61, 99, 0.12);
  --max-width: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 5vw, 2.85rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 16px; color: var(--ink); }
.lede { font-size: 1.15rem; color: var(--grey-500); }

ul.check-list { list-style: none; margin: 0 0 16px; padding: 0; }
ul.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
ul.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
}
ul.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

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

/* ---------- Top utility bar ---------- */
.top-bar {
  background: var(--navy-dark);
  color: #dce7ee;
  font-size: 0.85rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
}
.top-bar a { color: #fff; font-weight: 600; }
.top-bar .areas { color: #b7c8d4; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  position: sticky;
  top: 0;
  z-index: 500;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; }
.brand .brand-text {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand .brand-text span { display: block; color: var(--teal-dark); font-size: 0.8rem; font-weight: 600; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.96rem;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a[aria-current="page"] {
  color: var(--teal-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
}

.header-cta { display: flex; align-items: center; gap: 14px; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
  white-space: nowrap;
}
.phone-link svg { flex: none; }

.nav-toggle {
  display: none;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 1rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--orange-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.8);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: rgba(255,255,255,0.12);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 60%, #063049 100%);
  color: #fff;
  padding: 56px 0 64px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero .lede { color: #cfe0ea; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  font-size: 0.9rem;
  color: #cfe0ea;
}
.hero-trust li { list-style: none; display: flex; align-items: center; gap: 8px; }
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid rgba(255,255,255,0.08);
}
.hero-media img { width: 100%; }

.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 46px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero .lede { color: #cfe0ea; margin-bottom: 0; }
.breadcrumbs {
  font-size: 0.85rem;
  color: #b7c8d4;
  margin-bottom: 14px;
}
.breadcrumbs a { color: #dce7ee; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-alt { background: var(--grey-100); }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-block;
  color: var(--teal-dark);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }
.grid-2 { grid-template-columns: repeat(1, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 2px 8px rgba(11,61,99,0.05);
}
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(20,184,166,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--teal-dark);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card a.card-link { font-weight: 700; }

.service-card {
  display: block;
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(11,61,99,0.05);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.service-card:hover, .service-card:focus {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  text-decoration: none;
}
.service-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.service-card .body { padding: 20px; }
.service-card h3 { color: var(--navy); margin-bottom: 6px; }
.service-card p { color: var(--grey-500); margin-bottom: 0; font-size: 0.95rem; }

/* Before/after */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare figure { margin: 0; position: relative; }
.compare img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.compare figcaption {
  position: absolute;
  bottom: 0; left: 0;
  background: rgba(11,61,99,0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Steps / process */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step;
}
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Surfaces / types grid used on driveway page */
.type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.type-card {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}
.type-card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.type-card p { color: var(--grey-500); font-size: 0.94rem; margin-bottom: 0; }

/* Area list */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.area-list li {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

/* Testimonials */
.testimonial {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonial .stars { color: var(--orange); font-size: 1rem; margin-bottom: 10px; letter-spacing: 2px; }
.testimonial p { font-style: italic; color: var(--ink); }
.testimonial cite { display: block; margin-top: 12px; font-style: normal; font-weight: 700; color: var(--navy); font-size: 0.9rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #e8fbf8; }
.cta-band .hero-actions { justify-content: center; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--grey-200);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--teal-dark);
  flex: none;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 12px; color: var(--grey-500); }

/* ---------- Forms ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.form-card {
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 0.92rem; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9d3d9;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font);
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
textarea { resize: vertical; min-height: 130px; }
.required { color: var(--orange-dark); }
.form-note { font-size: 0.82rem; color: var(--grey-500); margin-top: 10px; }

/* honeypot field - hidden from real users, visible to bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-info-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card a { color: #fff; font-weight: 700; }
.contact-info-list { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-info-list li { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-info-list svg { flex: none; margin-top: 2px; }

.form-status {
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-status.success { background: #e3f8f1; color: #0e7a5f; border: 1px solid #b7ead7; }
.form-status.error { background: #fdeceb; color: #b3261e; border: 1px solid #f7c8c4; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #cfe0ea;
  padding: 48px 0 24px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #cfe0ea; }
.site-footer a:hover { color: #fff; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 8px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand strong { color: #fff; font-size: 1.05rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: #9db3c0;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.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;
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1.3fr 1fr; }
}

@media (min-width: 780px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .hero .container { grid-template-columns: 1.05fr 0.95fr; }
}

@media (min-width: 980px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .type-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .top-bar .areas { display: none; }
}

@media (max-width: 900px) {
  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow);
  }
  .site-header.nav-open .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 18px;
  }
  .site-header.nav-open .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--grey-200);
  }
}

@media (max-width: 480px) {
  .phone-link .phone-text { display: none; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
}

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