/* =========================================================
   NeatNow Cleaners — stylesheet
   Design tokens live at the top as CSS custom properties.
   ========================================================= */

:root {
  /* Colour */
  --bg: #f6f7f1;
  --bg-panel: #eceee3;
  --ink: #14211a;
  --ink-soft: #47554c;
  --ink-faint: #8a9389;
  --green: #1f6f4c;
  --green-deep: #123d2a;
  --green-pale: #e3ede6;
  --sun: #eeac1f;
  --white: #ffffff;
  --line: rgba(20, 33, 26, 0.14);
  --line-soft: rgba(20, 33, 26, 0.08);

  /* Text/icons placed on the dark green accent panels (join panel, city
     bands, filled buttons). Those panels stay dark-toned in both themes
     by design, so this stays a fixed light value rather than following
     --bg or --white, which flip per theme. */
  --on-accent: #f5f7f0;

  /* Type */
  --f-display: "Big Shoulders", "Arial Narrow", sans-serif;
  --f-body: "Work Sans", "Segoe UI", Arial, sans-serif;

  /* Layout */
  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10160f;
    --bg-panel: #17201a;
    --ink: #eef1ea;
    --ink-soft: #b7c1b6;
    --ink-faint: #7c8a7e;
    --green: #4caf82;
    --green-deep: #0d2a1c;
    --green-pale: #1a2e22;
    --sun: #f0bc44;
    --white: #1b241d;
    --line: rgba(238, 241, 234, 0.16);
    --line-soft: rgba(238, 241, 234, 0.08);
  }
}

:root[data-theme="dark"] {
  --bg: #10160f;
  --bg-panel: #17201a;
  --ink: #eef1ea;
  --ink-soft: #b7c1b6;
  --ink-faint: #7c8a7e;
  --green: #4caf82;
  --green-deep: #0d2a1c;
  --green-pale: #1a2e22;
  --sun: #f0bc44;
  --white: #1b241d;
  --line: rgba(238, 241, 234, 0.16);
  --line-soft: rgba(238, 241, 234, 0.08);
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  color: var(--ink);
}

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

a { color: inherit; }

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

section { padding: clamp(3rem, 7vw, 6rem) 0; }

.eyebrow-label {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green);
  letter-spacing: 0.02em;
  margin-bottom: 0.6em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--green-deep); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

.btn-sun {
  background: var(--sun);
  color: var(--green-deep);
}
.btn-sun:hover { filter: brightness(1.06); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--ink);
}
.logo .mark { color: var(--green); }
.logo svg { width: 30px; height: 30px; }

.nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink-soft);
  position: relative;
}
.nav a:hover { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 0.9rem; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-outline { display: none; }
  .menu-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--bg);
    padding: 1.2rem var(--pad) 1.6rem;
    border-bottom: 1px solid var(--line);
    gap: 1.1rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}

.city-switch {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-panel);
  border-radius: 999px;
  margin-bottom: 1.6rem;
  border: 1px solid var(--line-soft);
}
.city-switch button {
  border: none;
  background: transparent;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5em 1.15em;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.city-switch button[aria-pressed="true"] {
  background: var(--green);
  color: var(--on-accent);
}

.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  max-width: 14ch;
}
.hero .lede {
  font-size: 1.18rem;
  max-width: 46ch;
  margin-bottom: 1.8rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.hero-note {
  font-size: 0.92rem;
  color: var(--ink-faint);
}
.hero-note strong { color: var(--ink-soft); }

[data-city-text] { display: none; }
[data-city-text].active { display: block; }
.hero [data-city-text].active { animation: rise 0.5s ease both; }
[data-city-text-inline] { display: none; }
[data-city-text-inline].active { display: inline; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-art { width: 100%; }

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 1.8rem 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-panel);
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 760px) {
  .trust-strip .container { grid-template-columns: 1fr 1fr; }
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.trust-item svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--green); margin-top: 1px; }
.trust-item strong { display: block; color: var(--ink); font-size: 0.98rem; }

/* ---------- Section heads ---------- */
.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.service-card .icon-badge { margin-bottom: 1.1rem; }
.service-card h3 { font-size: 1.35rem; margin-bottom: 0.4em; }
.service-card p { font-size: 0.96rem; margin-bottom: 0; }

.icon-badge {
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-pale);
  border-radius: 10px;
  color: var(--green);
}
.icon-badge svg { width: 24px; height: 24px; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  counter-reset: step;
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  position: relative;
  padding-top: 0.3rem;
  border-top: 3px solid var(--green);
}
.step .step-num {
  font-family: var(--f-display);
  font-size: 3.4rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.3rem;
  display: block;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.35em; }
.step p { font-size: 0.96rem; }

/* ---------- Cities ---------- */
.cities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
@media (max-width: 800px) {
  .cities-grid { grid-template-columns: 1fr; }
}
.city-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.city-card .city-band {
  background: var(--green-deep);
  color: var(--on-accent);
  padding: 1.4rem 1.8rem;
}
.city-card .city-band h3 {
  font-size: 1.9rem;
  color: var(--on-accent);
  margin-bottom: 0.1em;
}
.city-card .city-band span {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--on-accent) 70%, transparent);
}
.city-card .city-body { padding: 1.6rem 1.8rem 1.9rem; }
.city-card ul {
  list-style: none;
  margin: 0.6rem 0 1.2rem;
  padding: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.city-card li {
  padding: 0.4em 0;
  border-bottom: 1px solid var(--line-soft);
}
.city-card li:last-child { border-bottom: none; }

/* ---------- Join panel ---------- */
.join-panel {
  background: var(--green-deep);
  color: var(--on-accent);
  border-radius: 18px;
  padding: clamp(2rem, 5vw, 3.4rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 860px) {
  .join-panel { grid-template-columns: 1fr; }
}
.join-panel h2 { color: var(--on-accent); font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.join-panel p { color: color-mix(in srgb, var(--on-accent) 82%, transparent); font-size: 1.02rem; }
.join-panel .btn-primary { background: var(--sun); color: var(--green-deep); }
.join-panel .btn-primary:hover { background: color-mix(in srgb, var(--sun) 90%, white); }
.join-panel .btn-outline { border-color: color-mix(in srgb, var(--on-accent) 55%, transparent); color: var(--on-accent); }
.join-panel .btn-outline:hover { background: var(--on-accent); color: var(--green-deep); }

.perk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.perk-list li {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  font-size: 0.98rem;
}
.perk-list svg {
  width: 20px; height: 20px;
  color: var(--sun);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; max-width: 780px; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.15rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  font-size: 1.6rem;
  color: var(--green);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p { margin-top: 0.7rem; font-size: 0.97rem; }

/* ---------- Contact ---------- */
.contact-info .info-row {
  display: flex;
  gap: 0.9em;
  align-items: flex-start;
  margin-bottom: 1.3rem;
}
.contact-info .info-row svg { width: 22px; height: 22px; color: var(--green); margin-top: 3px; flex-shrink: 0; }
.contact-info .info-row a { text-decoration: none; font-weight: 600; }
.contact-info .info-row a:hover { color: var(--green); }
.contact-info .info-row span.label { display: block; font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 0.15em; }

.contact-info-standalone {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1.8rem, 4vw, 3rem);
  max-width: 520px;
}
.contact-info-standalone .info-row { margin-bottom: 1.5rem; }
.contact-info-standalone .info-row:last-child { margin-bottom: 0; }
.contact-info-standalone .info-row a,
.contact-info-standalone .info-row div { font-size: 1.15rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 2rem;
  background: var(--bg-panel);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: none;
  color: var(--ink-faint);
  font-family: var(--f-body);
  font-weight: 700;
  margin-bottom: 0.8em;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.55em; }
.footer-grid a { text-decoration: none; color: var(--ink-soft); font-size: 0.94rem; }
.footer-grid a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
