/* =================================================================
   M-PAC CLEANING - styles.css

   BRAND COLORS live in the :root block below. Change a value once
   here and it updates everywhere on the site.
   ================================================================= */

:root {
  /* ---- Brand palette (edit here) ---- */
  --navy:      #0F172A;   /* primary dark background / headers */
  --gold:      #D4AF37;   /* accents, buttons, highlights */
  --gold-dark: #B8932B;   /* button hover */
  --platinum:  #E5E7EB;   /* light text on navy / light section bg */
  --graphite:  #2D3748;   /* secondary dark */
  --ink:       #16202E;   /* dark text on light sections */
  --white:     #ffffff;

  /* ---- Derived / UI ---- */
  --bg-light:   #F7F8FA;
  --border:     #E2E6EC;
  --shadow:     0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg:  0 20px 50px rgba(15, 23, 42, 0.18);
  --radius:     14px;
  --radius-sm:  10px;
  --maxw:       1140px;

  /* ---- Type ---- */
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); overflow-wrap: break-word; }

/* Keep grid/flex children from forcing horizontal overflow on small screens */
.contact-inner > *, .about-inner > *, .pricing-wrap > * { min-width: 0; }

a { color: inherit; text-decoration: none; }

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

/* Accessibility helpers */
.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: -999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* Image placeholder (shown until real photos are added) */
.img-placeholder {
  background:
    repeating-linear-gradient(45deg, #dde3ea, #dde3ea 12px, #e9eef4 12px, #e9eef4 24px);
  position: relative; min-height: 220px; width: 100%; min-width: 0; height: auto;
  border-radius: var(--radius); color: transparent; /* hide leftover alt text */
}
.hero-media .img-placeholder { height: 300px; }
.img-placeholder::after {
  content: "Photo placeholder"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #7b8794; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  letter-spacing: .03em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--radius-sm); cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(212,175,55,.35); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--platinum); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(212,175,55,.22);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 72px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 52px; width: auto; }
.brand-fallback { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--gold); }

.main-nav ul { list-style: none; display: flex; gap: 26px; }
.main-nav a {
  color: var(--platinum); font-weight: 500; font-size: .98rem; padding: 6px 0;
  position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width .2s ease;
}
.main-nav a:hover::after, .main-nav a:focus::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.phone-link { color: var(--gold); font-weight: 600; white-space: nowrap; font-family: var(--font-head); }
.phone-link:hover { text-decoration: underline; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav-toggle-bar { width: 26px; height: 3px; background: var(--gold); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(212,175,55,.14), transparent 60%),
    var(--navy);
  color: var(--platinum);
  padding: 70px 0 80px;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center;
}
/* min-width:0 lets the grid tracks shrink on small screens instead of being
   forced wide by an item's intrinsic (min-content) size. */
.hero-copy, .hero-media { min-width: 0; }
.eyebrow {
  color: var(--gold); font-weight: 600; font-family: var(--font-head);
  letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: 14px;
}
.eyebrow.center { text-align: center; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
.hero-sub { font-size: 1.18rem; margin: 18px 0 28px; max-width: 38ch; color: var(--platinum); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 24px; font-weight: 600; color: var(--platinum); }
.hero-trust span { color: var(--gold); }
.hero-image { border-radius: var(--radius); box-shadow: var(--shadow-lg); object-fit: cover; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--graphite); padding: 22px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  color: var(--platinum); font-weight: 600; font-family: var(--font-head); font-size: .98rem;
}
.trust-icon { font-size: 1.4rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }
.section-dark { background: var(--navy); color: var(--platinum); }
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem); text-align: center; margin-bottom: 8px; font-weight: 700;
}
.section-title.left { text-align: left; }
.section-title.light { color: var(--white); }
.section-intro { text-align: center; max-width: 60ch; margin: 0 auto 44px; color: #475569; }
.section-dark .section-intro { color: var(--platinum); }

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 12px; font-size: 1.6rem;
  background: rgba(212,175,55,.14); margin-bottom: 16px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--navy); }
.card p { color: #475569; font-size: .96rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
  background: var(--white); border-radius: var(--radius); padding: 34px 26px; text-align: center;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 16px;
  background: var(--navy); color: var(--gold); font-family: var(--font-head);
  font-weight: 700; font-size: 1.5rem;
}
.step h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: #475569; }

/* ---------- Pricing ---------- */
.pricing-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; }
.pricing-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.pricing-table caption { caption-side: top; }
.pricing-table thead th {
  background: var(--navy); color: var(--gold); text-align: left; font-family: var(--font-head);
  padding: 16px 20px; font-size: 1rem;
}
.pricing-table tbody th, .pricing-table td { padding: 14px 20px; border-top: 1px solid var(--border); font-weight: 500; }
.pricing-table tbody th { text-align: left; font-weight: 600; color: var(--ink); }
.pricing-table td { text-align: right; color: var(--navy); font-weight: 700; font-family: var(--font-head); white-space: nowrap; }
.pricing-table tbody tr:nth-child(even) { background: #fafbfc; }

.addons {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.addons h3 { color: var(--navy); margin-bottom: 14px; font-size: 1.2rem; }
.addon-list { list-style: none; }
.addon-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.addon-list li:last-child { border-bottom: 0; }
.addon-list li span:last-child { color: var(--gold-dark); font-weight: 700; font-family: var(--font-head); white-space: nowrap; }

.pm-callout {
  margin-top: 30px; background: var(--navy); color: var(--platinum);
  border-radius: var(--radius); padding: 30px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border: 1px solid rgba(212,175,55,.3);
}
.pm-callout h3 { color: var(--gold); margin-bottom: 6px; }
.pm-callout p { max-width: 56ch; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; background: #fff; margin: 0;
}
.gallery-item img { width: 100%; height: 200px; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 10px; top: 10px;
  background: rgba(15,23,42,.82); color: var(--gold); font-family: var(--font-head);
  font-weight: 600; font-size: .78rem; padding: 4px 10px; border-radius: 6px;
}
.gallery-item .img-placeholder { height: 200px; min-height: 200px; border-radius: 0; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 5; }
.about-copy p { margin-bottom: 16px; color: #3a4757; }
.about-copy .btn { margin-top: 8px; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.review-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 12px; }
.review-text { color: #3a4757; font-style: italic; margin-bottom: 16px; flex: 1; }
.review-author { font-weight: 700; font-family: var(--font-head); color: var(--navy); }
.review-author span { display: block; font-weight: 500; font-family: var(--font-body); color: #6b7785; font-size: .88rem; }
.review-cta { text-align: center; margin-top: 36px; }

/* ---------- Service area ---------- */
.area-inner { text-align: center; }
.town-list {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  max-width: 760px; margin: 10px auto 22px;
}
.town-list li {
  background: var(--bg-light); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 20px; font-weight: 600; font-family: var(--font-head); color: var(--navy);
}
.area-note { color: #475569; }
.area-note a { color: var(--gold-dark); font-weight: 600; text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1.4fr .9fr; gap: 40px; align-items: start; }
.contact-sub { margin-bottom: 24px; }
.quote-form {
  background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg);
}
.form-row { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .92rem; }
.req { color: #c0392b; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s ease;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--gold);
}
.quote-form textarea { resize: vertical; }
.quote-form .btn { margin-top: 8px; }
.error-msg { display: block; color: #c0392b; font-size: .84rem; margin-top: 5px; min-height: 1em; }
.quote-form input.invalid, .quote-form select.invalid { border-color: #c0392b; }
.form-note { font-size: .82rem; color: #6b7785; margin-top: 12px; text-align: center; }

.contact-info { background: var(--graphite); color: var(--platinum); border-radius: var(--radius); padding: 30px; }
.contact-info h3 { color: var(--gold); font-size: 1.15rem; margin: 0 0 14px; }
.contact-info h3:nth-of-type(2) { margin-top: 26px; }
.contact-list, .hours-list { list-style: none; }
.contact-list li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.ci-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: 2px; }
.contact-list a { font-weight: 600; font-size: 1.05rem; }
.contact-list a:hover { color: var(--gold); }
.hours-list li { display: flex; justify-content: space-between; padding: 7px 0; gap: 12px; }
.insured-badge { margin-top: 22px; font-weight: 700; font-family: var(--font-head); color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--platinum); padding: 54px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: #aeb7c4; max-width: 42ch; margin-bottom: 10px; }
.footer-insured { color: var(--gold); font-weight: 600; }
.footer-nav h4, .footer-contact h4 { color: var(--gold); margin-bottom: 14px; font-size: 1rem; }
.footer-nav ul, .footer-contact ul { list-style: none; }
.footer-nav li, .footer-contact li { padding: 6px 0; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; }
.footer-bottom p { color: #aeb7c4; font-size: .9rem; text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8,12,22,.92);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-caption { color: var(--gold); font-family: var(--font-head); font-weight: 600; margin-top: 14px; }
.lightbox-close {
  position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff;
  font-size: 2.6rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { color: var(--gold); }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; max-width: 520px; }
  .card-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .pricing-wrap { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; }
  .contact-inner { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* Switch to hamburger early so the logo + quote button have room */
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--navy);
    border-bottom: 1px solid rgba(212,175,55,.22);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 70vh; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .main-nav li { border-top: 1px solid rgba(255,255,255,.08); }
  .main-nav a { display: block; padding: 15px 20px; }
  .main-nav a::after { display: none; }
  .header-cta .phone-link { display: none; }

  .steps { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .pm-callout { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 560px) {
  .card-grid, .review-grid, .trust-grid, .gallery, .footer-inner, .form-grid { grid-template-columns: 1fr; }
  .header-cta .btn { padding: 10px 16px; font-size: .92rem; }
  .hero { padding: 48px 0 56px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

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