/* ==========================================================================
   Cleaners PH - site stylesheet
   Palette is deliberately high-contrast: deep teal on white, with amber used
   only for emphasis. Nothing is communicated by colour alone - every state also
   carries a word, an icon shape or an underline.
   ========================================================================== */

:root {
  --ink:        #062E33;   /* headings, near-black teal */
  --ink-2:      #123F45;
  --teal:       #0E7490;
  --teal-2:     #0F766E;
  --teal-soft:  #E6F4F6;
  --amber:      #F59E0B;
  --amber-soft: #FEF3C7;
  --body:       #33474B;
  --muted:      #607D82;
  --line:       #DDE7E9;
  --bg:         #FFFFFF;
  --bg-soft:    #F5F9FA;

  --radius:     14px;
  --radius-lg:  22px;
  --shadow:     0 1px 2px rgba(6,46,51,.06), 0 8px 24px rgba(6,46,51,.07);
  --shadow-lg:  0 2px 6px rgba(6,46,51,.08), 0 24px 60px rgba(6,46,51,.13);

  --wrap:       1180px;
  --font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1.05em; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(2rem, 3.5vw, 3rem) 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .8rem;
}
.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--body); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* --- focus: heavy, always visible (low-vision users) --------------------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, .card:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* =========================== 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: 1.5rem;
  min-height: 76px; padding-block: .55rem;
}
.brand { display: block; flex-shrink: 0; }
.brand img { width: 190px; height: auto; }

.nav { display: flex; gap: .3rem; margin-left: auto; align-items: center; }
/* Nav links only. :where() keeps this at zero specificity so it can never
   override a component class such as .btn-primary (which once left the header
   CTA as dark-on-dark text at 1.26:1 - unreadable, especially with
   achromatopsia). Buttons inside the nav must keep their own colours. */
.nav a:not(.btn) {
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .97rem;
  padding: .55rem .8rem; border-radius: 9px;
}
.nav a:not(.btn):hover { background: var(--teal-soft); color: var(--ink); }
.nav a:not(.btn)[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--amber);
  border-radius: 4px 4px 0 0;
}
/* Belt and braces: a button inside the nav always gets its own text colour. */
.nav .btn-primary { color: #fff; }
.nav .btn-primary:hover { color: #fff; }
.nav .btn-ghost { color: var(--ink); }
.nav .btn { margin-left: .5rem; }

.nav-toggle {
  display: none; margin-left: auto;
  background: #fff; border: 2px solid var(--line); border-radius: 10px;
  padding: .55rem .8rem; font: inherit; font-weight: 700; color: var(--ink);
  cursor: pointer; align-items: center; gap: .5rem;
}
.nav-toggle .bars { display: inline-block; width: 18px; height: 2px; background: var(--ink);
  box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink); }

/* =========================== buttons ==================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; text-decoration: none;
  padding: .82rem 1.45rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: #0A4048; color: #fff; transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: #23180A; box-shadow: var(--shadow); }
.btn-amber:hover { background: #FBBF24; color: #23180A; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); background: var(--teal-soft); color: var(--ink); }
/* Ghost button for dark backgrounds (CTA bands, hero). */
.btn-ghost-light {
  background: transparent; color: #FFFFFF;
  border-color: rgba(255,255,255,.55);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,.12); color: #FFFFFF; border-color: #FFFFFF;
}
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* =========================== hero ====================================== */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  min-height: clamp(520px, 72vh, 700px);
}
.hero-copy {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem) clamp(2.5rem, 6vw, 5rem) 0;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 640px;
}
.hero-copy .eyebrow { color: #7DD3E0; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { color: #CFE3E6; }
.hero-media { position: relative; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% center;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(6,46,51,.55) 26%, rgba(6,46,51,0) 62%);
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2rem;
  font-size: .93rem; color: #CFE3E6; font-weight: 600;
}
.hero-badges span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-badges svg { width: 18px; height: 18px; flex-shrink: 0; }

/* =========================== cards ===================================== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--teal-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .35rem; }
.card-body p { color: var(--body); font-size: .98rem; }
.card-foot { margin-top: auto; display: flex; align-items: baseline; gap: .5rem;
  padding-top: 1rem; border-top: 1px solid var(--line); }
.price { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price small { font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* feature / promise tiles */
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow);
}
.tile .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal); margin-bottom: 1rem;
}
.tile .icon svg { width: 24px; height: 24px; }
.tile h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.tile p { font-size: .95rem; margin: 0; color: var(--body); }

/* =========================== process =================================== */
.steps { counter-reset: step; display: grid; gap: 1.2rem; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 3.1rem; }
.step-num {
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 1.05rem;
  display: grid; place-items: center;
}
.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { font-size: .95rem; margin: 0; }
.step::after {
  content: ""; position: absolute; top: 21px; left: 54px; right: -10px;
  height: 2px; background: var(--line);
}
.step:last-child::after { display: none; }

/* =========================== gallery =================================== */
.gallery {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(4, 1fr);
}
.gallery figure {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--teal-soft);
  aspect-ratio: 1 / 1;          /* every tile identical, so rows can never go ragged */
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }

/* =========================== pricing table ============================= */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); background: #fff; }
table.price-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.price-table th, .price-table td { padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th {
  background: var(--ink); color: #fff; font-size: .88rem; letter-spacing: .04em;
  text-transform: uppercase; font-weight: 700; white-space: nowrap;
}
.price-table tbody th { font-weight: 700; color: var(--ink); }
.price-table td { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--teal-soft); }
.table-note { font-size: .88rem; color: var(--muted); margin-top: .9rem; }

/* =========================== forms ===================================== */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(1.6rem, 3.4vw, 2.6rem);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: .4rem; font-size: .95rem; }
.field .hint { font-weight: 500; color: var(--muted); font-size: .85rem; margin-left: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem .95rem; border: 2px solid var(--line); border-radius: 10px;
  background: #fff; transition: border-color .15s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C3D4D7; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; gap: 0 1.1rem; grid-template-columns: 1fr 1fr; }
.req { color: #B91C1C; }

.checkbox-grid { display: grid; gap: .55rem; grid-template-columns: repeat(2, 1fr); }
.check {
  display: flex; align-items: center; gap: .65rem;
  border: 2px solid var(--line); border-radius: 10px; padding: .7rem .85rem;
  font-weight: 600; color: var(--ink-2); cursor: pointer; background: #fff;
}
.check:hover { border-color: #C3D4D7; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); flex-shrink: 0; }
.check .amt { margin-left: auto; color: var(--muted); font-weight: 700; font-size: .9rem; }
.check:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }

.estimate {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--teal-soft); border: 2px dashed var(--teal);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.4rem 0;
}
.estimate .label { font-weight: 700; color: var(--ink); }
.estimate .value { font-size: 1.5rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.estimate .value.empty { color: var(--muted); font-size: 1.05rem; font-weight: 600; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.4rem;
  font-weight: 600; border: 2px solid;
}
.alert-error { background: #FEF2F2; border-color: #FCA5A5; color: #7F1D1D; }
.alert-ok { background: #ECFDF5; border-color: #6EE7B7; color: #065F46; }

/* =========================== misc blocks =============================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .6rem; font-size: .98rem; }
.checklist li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: .18rem;
  border-radius: 50%; background: var(--teal-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230E7490' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E");
  background-size: 20px 20px;
}

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; text-align: center; }
.stat .n { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; color: var(--ink);
  letter-spacing: -.03em; line-height: 1; }
.stat .l { font-size: .9rem; color: var(--muted); font-weight: 600; margin-top: .35rem; }

/* FAQ */
.faq { display: grid; gap: .75rem; max-width: 860px; margin-inline: auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; color: var(--ink);
  list-style: none; display: flex; align-items: center; gap: .9rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; font-size: 1.5rem; font-weight: 400; color: var(--teal);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); background: var(--teal-soft); }
.faq .answer { padding: 1.1rem 1.3rem 1.25rem; font-size: .98rem; }
.faq .answer p:last-child { margin: 0; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2rem, 4.5vw, 3.4rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #CFE3E6; max-width: 56ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* =========================== footer ==================================== */
.site-footer { background: #F5F9FA; border-top: 1px solid var(--line); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .9rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-brand img { width: 175px; margin-bottom: 1rem; }
.footer-brand p { font-size: .93rem; color: var(--muted); max-width: 30ch; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .85rem; color: var(--muted);
}
.footer-bottom p { margin: 0; }
.credit { font-size: .78rem; color: var(--muted); opacity: .85; }

/* =========================== sticky mobile CTA ========================= */
.mobile-cta { display: none; }

/* =========================== responsive ================================ */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { min-height: 320px; order: -1; }
  .hero-copy { padding: 2rem 0 2.5rem; max-width: none; }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(6,46,51,.15) 0%, rgba(6,46,51,.75) 70%, var(--ink) 100%);
  }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .8rem 1.25rem 1.2rem; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .85rem .6rem; }
  .nav .btn { margin: .5rem 0 0; }
  .nav a:not(.btn)[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); border-radius: 4px; }
  .header-inner { position: relative; }
  .brand img { width: 160px; }

  .split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
      /* The widened closing tile only makes sense in the 4-column layout. */
  .stat-row { grid-template-columns: 1fr; gap: 1.6rem; }

  /* Thumb-sized sticky action bar: call or book, always reachable. */
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .7rem .8rem calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(6,46,51,.1);
  }
  .mobile-cta .btn { padding: .85rem 1rem; font-size: .97rem; }
  body { padding-bottom: 82px; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
}

@media print {
  .site-header, .mobile-cta, .site-footer, .btn-row { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  body { font-size: 12pt; color: #000; }
}
