/* Cross Timbers Cleaning — mobile-first marketing site styles */

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  --color-brand:        #054f13;   /* forest green — use sparingly */
  --color-brand-light:  #2d7a3e;   /* mid green for links/hover */
  --color-accent:       #ff80d8;   /* pink */
  --color-accent-hover: #e85ec8;
  --color-text:         #1a1a1a;
  --color-text-muted:   #555;
  --color-bg:           #ffffff;
  --color-bg-alt:       #f5f8f5;
  --color-border:       #d6e0d7;
  --color-success:      #054f13;

  --font-sans: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius:    20px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.09);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.11);
}

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

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--color-brand-light); }
a:hover { color: var(--color-brand); }

/* ── Layout ──────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

main { flex: 1; }

/* ── Typography ──────────────────────────────────────────────────────── */
h1 { font-size: 1.9rem; line-height: 1.2; color: var(--color-brand); }
h2 { font-size: 1.4rem; line-height: 1.3; color: var(--color-brand); margin-bottom: .5rem; }
h3 { font-size: 1.1rem; line-height: 1.4; color: var(--color-text); margin-bottom: .4rem; }

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: .3rem; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-hover); color: #fff; border-color: var(--color-accent-hover); }

.btn-secondary {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn-secondary:hover { background: var(--color-brand); color: #fff; }

.btn-call {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn-call:hover { background: var(--color-brand); color: #fff; }

.btn-lg { min-height: 56px; padding: 1rem 2rem; font-size: 1.1rem; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  background: #fff;
  color: var(--color-brand);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .6rem;
  padding-bottom: .6rem;
  gap: 1rem;
}
.site-header .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

/* nav */
.site-nav {
  display: none;
  gap: 1.5rem;
  align-items: center;
}
.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: color .15s;
}
.site-nav a:hover { color: var(--color-brand); }

.header-cta { display: none; }

/* hamburger */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-brand);
  border-radius: 2px;
  transition: .25s;
}

/* mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--color-bg-alt);
  padding: 1rem;
  border-top: 1px solid var(--color-border);
}
.mobile-nav.open { display: block; }
.mobile-nav a:not(.btn) {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  padding: .65rem 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav a:not(.btn):last-of-type { border-bottom: none; }
.mobile-actions {
  display: flex;
  gap: .75rem;
  margin-top: .75rem;
}
.mobile-actions .btn {
  flex: 1;
  justify-content: center;
  text-align: center;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-brand);
  color: rgba(255,255,255,.8);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.footer-col a { color: rgba(255,255,255,.75); text-decoration: none; display: block; margin-bottom: .35rem; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: .9rem; margin-bottom: .4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: .8rem;
  text-align: center;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.6); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: url('/static/hero-image.webp') center center / cover no-repeat;
  color: #fff;
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, 0.45);
}
.hero .container { position: relative; }
.hero h1 { color: #fff; font-size: 2rem; margin-bottom: .75rem; }
.hero .subhead { font-size: 1.05rem; color: rgba(255,255,255,.9); margin-bottom: 1.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero .hero-cta { display: flex; flex-direction: column; gap: .75rem; align-items: center; justify-content: center; }
.hero .btn-secondary { color: #fff; border-color: rgba(255,255,255,.8); }
.hero .btn-secondary:hover { background: #fff; color: var(--color-brand); }
.hero-call { margin-top: .75rem; font-size: .95rem; color: rgba(255,255,255,.8); }
.hero-call a { color: #fff; font-weight: 600; text-decoration: none; }
.hero-call a:hover { text-decoration: underline; color: #fff; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 1.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.25);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.95);
}
.hero-trust-item span { color: var(--color-accent); font-size: 1rem; }

.hero-scroll {
  display: block;
  margin-top: 1.75rem;
  font-size: 2rem;
  line-height: 1;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  animation: hero-bounce .8s ease-in-out infinite alternate;
}
.hero-scroll:hover { color: #fff; }
@keyframes hero-bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(6px); }
}

/* ── Section layouts ─────────────────────────────────────────────────── */
.section { padding: 2.5rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title { text-align: center; margin-bottom: 1.75rem; }
.section-title h2 { font-size: 1.5rem; }
.section-title p { color: var(--color-text-muted); max-width: 560px; margin: .5rem auto 0; }

/* ── Cards ───────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card h3 { color: var(--color-brand); margin-bottom: .5rem; }
.card p { color: var(--color-text-muted); font-size: .95rem; margin-bottom: 1rem; }
.card a { font-weight: 600; font-size: .9rem; }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; cursor: pointer; }
.card-link:hover { box-shadow: var(--shadow-md); }
.card-link .card-cta { font-weight: 600; font-size: .9rem; color: var(--color-brand); margin-top: auto; }

/* area cards */
.area-card {
  display: block;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  text-decoration: none;
  color: var(--color-brand);
  font-weight: 600;
  font-size: .95rem;
  text-align: center;
  transition: background .15s, box-shadow .15s;
}
.area-card:hover { background: var(--color-brand); color: #fff; box-shadow: var(--shadow-sm); }

.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

/* ── Trust signals ───────────────────────────────────────────────────── */
.trust-bar {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-brand);
}
.trust-item .icon { font-size: 1.2rem; }

/* ── Social proof / reviews ──────────────────────────────────────────── */
.stars { color: #f39c12; font-size: 1.2rem; letter-spacing: .05em; }
.review-card {
  background: var(--color-bg);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.review-card p { font-style: italic; margin-bottom: .5rem; }
.review-card .reviewer { font-size: .85rem; color: var(--color-text-muted); font-weight: 600; }

/* ── Service page specifics ──────────────────────────────────────────── */
.service-hero {
  background: var(--color-bg-alt);
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.service-hero h1 { color: var(--color-brand); margin-bottom: .6rem; }
.service-hero .sub { color: var(--color-text-muted); font-size: 1.05rem; }
.service-hero .cta-row { margin-top: 1.25rem; }

.include-list { list-style: none; padding: 0; }
.include-list li { padding: .45rem 0; border-bottom: 1px solid var(--color-border); display: flex; gap: .5rem; }
.include-list li:last-child { border-bottom: none; }
.include-list .check { color: var(--color-success); font-weight: 700; }

.compare-table { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; font-size: .9rem; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.compare-row > div { padding: .7rem .85rem; border-bottom: 1px solid var(--color-border); }
.compare-row:last-child > div { border-bottom: none; }
.compare-row > div:not(:last-child) { border-right: 1px solid var(--color-border); }
.compare-header { background: var(--color-brand); color: #fff; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.compare-header > div:first-child { background: transparent; }
.compare-row:not(.compare-header) > div:first-child { font-weight: 600; color: var(--color-brand); background: var(--color-bg-alt); }
.compare-row:not(.compare-header):nth-child(even) > div:not(:first-child) { background: var(--color-bg-alt); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; }
details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}
details summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-bg);
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 1.25rem; color: var(--color-brand); }
details[open] summary::after { content: "−"; }
details[open] summary { background: var(--color-bg-alt); }
details .answer { padding: 1rem 1.25rem; background: var(--color-bg); color: var(--color-text-muted); }

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.contact-info p { margin-bottom: .6rem; }
.contact-info a { color: var(--color-brand-light); font-weight: 600; }

form .field { margin-bottom: 1.1rem; }
form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
form input, form textarea, form select {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color .15s;
}
form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--color-brand-light);
}
form textarea { min-height: 120px; resize: vertical; }

/* ── Prose (terms/privacy) ───────────────────────────────────────────── */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { margin-top: 2rem; margin-bottom: .6rem; }
.prose h3 { margin-top: 1.25rem; margin-bottom: .4rem; }
.prose ul { margin-left: 1.25rem; }

/* ── Page header (inner pages) ───────────────────────────────────────── */
.page-header {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 1.75rem 0 1.25rem;
}
.page-header h1 { font-size: 1.7rem; }
.breadcrumb { font-size: .85rem; color: var(--color-text-muted); margin-bottom: .5rem; }
.breadcrumb a { color: var(--color-brand-light); text-decoration: none; }
.breadcrumb-light { color: rgba(255,255,255,.7); }
.breadcrumb-light a { color: rgba(255,255,255,.85); }
.breadcrumb-light a:hover { color: #fff; }

/* ── Inline CTA banner ───────────────────────────────────────────────── */
.cta-banner {
  background: var(--color-accent);
  padding: 2rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--color-brand); margin-bottom: .75rem; }
.cta-banner p { color: var(--color-brand); opacity: .85; margin-bottom: 1rem; }

/* ── Nearby cities strip ─────────────────────────────────────────────── */
.nearby-strip { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.nearby-strip a {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: .3rem .75rem;
  font-size: .85rem;
  color: var(--color-brand-light);
  text-decoration: none;
}
.nearby-strip a:hover { background: var(--color-brand); color: #fff; border-color: var(--color-brand); }

/* ── Desktop breakpoints ─────────────────────────────────────────────── */
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid  { grid-template-columns: repeat(3, 1fr); }
  .hero h1    { font-size: 2.4rem; }
  .hero .hero-cta { flex-direction: row; justify-content: center; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .site-nav    { display: flex; }
  .header-cta  { display: inline-flex; }
  .nav-toggle  { display: none; }

  h1 { font-size: 2.25rem; }
  .hero h1 { font-size: 2.75rem; }
  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3.5rem 0; }

  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

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