/* =======================================================================
   Classic Cleaning Crew — design tokens
   Type: Sora (headings, geometric/sturdy) + Inter (body).
   Layout: left-aligned, bordered blocks rather than shadowed cards.

   NOTE ON COLORS: the --navy, --navy-deep, --red, --red-dark, --sand,
   --white, --ink, --slate, and --line variables used throughout this
   file are NOT defined here. They're generated from config/colors.php
   by assets/css/theme.php (loaded right before this file in
   includes/header.php). To change the site's colors, edit the hex
   values in config/colors.php — never hard-code a color in this file.
   ======================================================================= */
:root{
  --line-dark:   rgba(255,255,255,0.14);

  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 3px;
  --wrap: 1180px;
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--sand);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{
  font-family:var(--font-head);
  color:var(--navy);
  margin:0 0 0.5em;
  line-height:1.2;
  font-weight:700;
}
p{ margin:0 0 1em; color:var(--slate); max-width:62ch; }
.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 24px; }
:focus-visible{ outline:3px solid var(--red); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

.icon{ width:1em; height:1em; }
.icon--sm{ width:15px; height:15px; margin-right:6px; vertical-align:-2px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-head); font-weight:600; font-size:0.95rem;
  padding:0.85em 1.6em; border-radius:var(--radius);
  border:1.5px solid transparent; cursor:pointer; transition:background .15s, color .15s, border-color .15s;
  white-space:nowrap;
}
.btn--primary{ background:var(--red); color:var(--white); }
.btn--primary:hover{ background:var(--red-dark); }
.btn--ghost{ border-color:var(--line); color:var(--navy); }
.btn--ghost:hover{ border-color:var(--navy); }
.btn--outline-light{ border-color:rgba(255,255,255,0.5); color:var(--white); }
.btn--outline-light:hover{ border-color:var(--white); background:rgba(255,255,255,0.08); }
.btn--block{ width:100%; justify-content:center; }

/* ---------- Topbar ---------- */
.topbar{ background:var(--navy-deep); color:rgba(255,255,255,0.82); font-size:0.85rem; }
.topbar__row{ display:flex; justify-content:space-between; align-items:center; padding:8px 24px; flex-wrap:wrap; gap:6px; }
.topbar__contact{ display:flex; gap:22px; }
.topbar__contact a:hover{ color:var(--white); }
.topbar__note{ opacity:0.85; }

/* ---------- Header / Nav ---------- */
.site-header{ background:var(--white); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:40; }
.site-header__row{ display:flex; align-items:center; justify-content:space-between; padding:14px 24px; gap:24px; }

.logo{ display:flex; align-items:center; gap:12px; }
.logo__mark{ width:38px; height:38px; flex:none; }
.logo__mark svg{ width:100%; height:100%; fill:none; stroke:var(--navy); stroke-width:3; }
.logo__mark svg path:last-child{ stroke:var(--red); }
.logo--light .logo__mark svg{ stroke:var(--white); }
.logo--light .logo__mark svg path:last-child{ stroke:var(--red); }
.logo__text{ display:flex; flex-direction:column; line-height:1.1; }
.logo__ccc{ font-family:var(--font-head); font-weight:800; letter-spacing:0.04em; font-size:1.15rem; color:var(--navy); }
.logo--light .logo__ccc{ color:var(--white); }
.logo__full{ font-size:0.68rem; letter-spacing:0.03em; color:var(--slate); }
.logo--light .logo__full{ color:rgba(255,255,255,0.65); }

.nav ul{ display:flex; gap:30px; }
.nav a{ font-family:var(--font-head); font-weight:600; font-size:0.95rem; color:var(--navy); padding:6px 0; border-bottom:2px solid transparent; }
.nav a:hover, .nav a.is-active{ border-color:var(--red); }

.site-header__actions{ display:flex; align-items:center; gap:14px; }
.hide-mobile{ display:inline-flex; }

.nav-toggle{ display:none; flex-direction:column; justify-content:center; gap:5px; width:34px; height:34px; background:none; border:none; cursor:pointer; padding:0; }
.nav-toggle span{ height:2px; background:var(--navy); border-radius:2px; }

/* ---------- Hero ---------- */
.hero{ background:var(--navy); color:var(--white); position:relative; overflow:hidden; }
.hero::after{
  content:""; position:absolute; right:-10%; top:-30%; width:60%; height:160%;
  background:radial-gradient(circle at center, rgba(214,41,60,0.35), transparent 70%);
  pointer-events:none;
}
.hero__row{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:center; padding:88px 24px 76px; position:relative; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-head); font-weight:600; font-size:0.82rem;
  color:#7D9B8F; margin-bottom:18px;
}
.eyebrow::before{ content:""; width:26px; height:2px; background:var(--red); display:inline-block; }
.hero h1{ color:var(--white); font-size:clamp(2.1rem, 4vw, 3.1rem); max-width:14ch; }
.hero p.lede{ color:rgba(255,255,255,0.78); font-size:1.08rem; max-width:46ch; }
.hero__cta{ display:flex; gap:16px; margin-top:30px; flex-wrap:wrap; }
.hero__badges{ display:flex; gap:26px; margin-top:44px; flex-wrap:wrap; }
.hero__badge{ display:flex; align-items:center; gap:10px; font-family:var(--font-head); font-weight:600; font-size:0.9rem; color:rgba(255,255,255,0.85); }
.hero__badge svg{ color:var(--red); width:20px; height:20px; }

.hero__panel{ background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.16); border-radius:var(--radius); padding:34px; backdrop-filter:blur(2px); }
.hero__stat{ display:flex; align-items:baseline; gap:12px; padding:18px 0; border-bottom:1px solid rgba(255,255,255,0.14); }
.hero__stat:last-child{ border-bottom:none; }
.hero__stat b{ font-family:var(--font-head); font-size:2.1rem; color:var(--white); }
.hero__stat span{ color:rgba(255,255,255,0.7); font-size:0.92rem; }

/* ---------- Section scaffolding ---------- */
.section{ padding:88px 0; }
.section--tight{ padding:56px 0; }
.section--navy{ background:var(--navy); color:var(--white); }
.section--navy h2{ color:var(--white); }
.section--navy p{ color:rgba(255,255,255,0.72); }
.section--sand{ background:var(--sand); }
.section--white{ background:var(--white); }

.section__head{ max-width:640px; margin-bottom:46px; }
.section__head .eyebrow{ color:var(--red); }
.section__head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- Trust strip ---------- */
.trust-strip{ background:var(--white); border-bottom:1px solid var(--line); }
.trust-strip__row{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:20px; padding:26px 24px; }
.trust-item{ display:flex; align-items:center; gap:10px; font-family:var(--font-head); font-weight:600; color:var(--navy); font-size:0.92rem; }
.trust-item svg{ color:var(--red); width:20px; height:20px; flex:none; }

/* ---------- Service grid ---------- */
.service-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.service-card{ background:var(--white); padding:34px 28px; display:flex; flex-direction:column; gap:14px; }
.service-card__icon{ width:52px; height:52px; border:1.5px solid var(--line); border-radius:var(--radius); display:flex; align-items:center; justify-content:center; color:var(--red); }
.service-card__icon svg{ width:26px; height:26px; }
.service-card h3{ font-size:1.08rem; margin-bottom:4px; }
.service-card p{ font-size:0.94rem; margin-bottom:8px; }
.service-card__link{ margin-top:auto; font-family:var(--font-head); font-weight:600; font-size:0.88rem; color:var(--navy); display:inline-flex; align-items:center; gap:6px; }
.service-card__link svg{ width:14px; height:14px; transform:rotate(-90deg); }

.service-grid--full{ grid-template-columns:repeat(4, 1fr); }
@media (max-width:900px){ .service-grid, .service-grid--full{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:560px){ .service-grid, .service-grid--full{ grid-template-columns:1fr; } }

/* ---------- About / split content ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.split--reverse{ direction:rtl; } .split--reverse > *{ direction:ltr; }

.photo-block{
  background:var(--white); border:1.5px dashed var(--line); border-radius:var(--radius);
  min-height:280px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:8px; color:var(--slate); text-align:center; padding:24px;
}
.photo-block small{ font-size:0.78rem; }

.stat-badge{
  position:relative; margin-top:-56px; margin-left:24px; z-index:2;
  background:var(--red); color:var(--white); padding:22px 26px; border-radius:var(--radius);
  max-width:210px; font-family:var(--font-head);
}
.stat-badge b{ display:block; font-size:2.2rem; }
.stat-badge span{ font-size:0.85rem; opacity:0.9; }

.founder-line{ display:flex; align-items:center; gap:14px; margin-top:26px; padding-top:22px; border-top:1px solid var(--line); }
.founder-line__avatar{
  width:52px; height:52px; border-radius:50%; background:var(--navy); color:var(--white);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-head); font-weight:700; flex:none;
}
.founder-line strong{ display:block; font-family:var(--font-head); color:var(--navy); }
.founder-line span{ font-size:0.85rem; color:var(--slate); }

/* ---------- Why choose us ---------- */
.why-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:36px; }
.why-item{ border-left:3px solid var(--red); padding-left:20px; }
.why-item h3{ font-size:1.05rem; }
.why-item p{ font-size:0.94rem; }

.callout-box{
  background:var(--navy-deep); border:1px solid var(--line-dark); border-radius:var(--radius);
  padding:30px; text-align:center; margin-top:8px;
}
.callout-box svg{ width:30px; height:30px; color:var(--red); margin-bottom:10px; }
.callout-box .phone{ font-family:var(--font-head); font-weight:700; font-size:1.5rem; color:var(--white); }
.callout-box p{ color:rgba(255,255,255,0.65); font-size:0.88rem; margin:6px 0 0; }

@media (max-width:900px){ .why-grid{ grid-template-columns:1fr; } }

/* ---------- FAQ accordion ---------- */
.faq-list{ border-top:1px solid var(--line); max-width:760px; }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-item__q{
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center; gap:20px;
  padding:22px 4px; font-family:var(--font-head); font-weight:600; font-size:1.02rem; color:var(--navy);
}
.faq-item__q svg{ width:18px; height:18px; flex:none; color:var(--red); transition:transform .2s; }
.faq-item[open] .faq-item__q svg{ transform:rotate(180deg); }
.faq-item__a{ padding:0 4px 22px; margin:0; font-size:0.95rem; }
.faq-item summary::-webkit-details-marker{ display:none; }

/* ---------- CTA banner ---------- */
.cta-banner{ background:var(--red); color:var(--white); }
.cta-banner__row{ display:flex; align-items:center; justify-content:space-between; gap:24px; padding:44px 24px; flex-wrap:wrap; }
.cta-banner h2{ color:var(--white); margin-bottom:6px; font-size:1.6rem; }
.cta-banner p{ color:rgba(255,255,255,0.85); margin:0; }
.cta-banner__phone{ font-family:var(--font-head); font-weight:800; font-size:1.4rem; }

/* ---------- Page header (interior pages) ---------- */
.page-header{ background:var(--navy); color:var(--white); padding:64px 24px 54px; }
.page-header h1{ color:var(--white); margin-bottom:10px; }
.breadcrumb{ display:flex; gap:8px; font-size:0.88rem; color:rgba(255,255,255,0.6); }
.breadcrumb a:hover{ color:var(--white); }

/* ---------- Contact page ---------- */
.contact-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:60px; }
.contact-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:26px; margin-bottom:18px; }
.contact-card h3{ font-size:1rem; margin-bottom:4px; }
.contact-card a, .contact-card address{ font-style:normal; color:var(--slate); }
.contact-card__icon{ width:44px; height:44px; border-radius:50%; background:var(--sand); color:var(--red); display:flex; align-items:center; justify-content:center; margin-bottom:14px; }

.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-family:var(--font-head); font-weight:600; font-size:0.85rem; color:var(--navy); margin-bottom:6px; }
.field input, .field textarea, .field select{
  width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius:var(--radius);
  font-family:var(--font-body); font-size:0.95rem; background:var(--white); color:var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus{ border-color:var(--navy); outline:none; }
.form-notice{ padding:14px 16px; border-radius:var(--radius); font-size:0.92rem; margin-bottom:22px; }
.form-notice--ok{ background:#E7F5EC; color:#1E7F4B; border:1px solid #BCE6C9; }
.form-notice--err{ background:#FBEAEA; color:var(--red-dark); border:1px solid #F2C6C9; }

.map-frame{ border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; margin-top:8px; }
.map-frame iframe{ width:100%; height:280px; border:0; display:block; }

@media (max-width:900px){
  .contact-grid, .split{ grid-template-columns:1fr; gap:40px; }
  .form-row{ grid-template-columns:1fr; }
  .stat-badge{ margin-left:0; }
}

/* ---------- Footer ---------- */
.site-footer{ background:var(--navy-deep); color:rgba(255,255,255,0.72); }
.footer__grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr 1.1fr; gap:36px; padding:70px 24px 40px; }
.site-footer h4{ color:var(--white); font-size:0.95rem; margin-bottom:16px; }
.site-footer p{ color:rgba(255,255,255,0.62); font-size:0.92rem; }
.footer__col ul li{ margin-bottom:10px; font-size:0.92rem; }
.footer__col a:hover{ color:var(--white); }
.footer__area li{ color:rgba(255,255,255,0.62); font-size:0.92rem; margin-bottom:10px; }
.footer__contact{ display:flex; flex-direction:column; gap:10px; font-size:0.92rem; }
.footer__social{ display:flex; gap:10px; margin-top:18px; }
.footer__social a{
  width:34px; height:34px; border:1px solid var(--line-dark); border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:0.78rem; text-transform:uppercase;
}
.footer__social a:hover{ border-color:var(--red); color:var(--red); }
.footer__bottom{ border-top:1px solid var(--line-dark); }
.footer__bottom-row{ display:flex; justify-content:space-between; padding:20px 24px; font-size:0.82rem; flex-wrap:wrap; gap:8px; }
.footer__bottom-row p{ color:rgba(255,255,255,0.5); margin:0; }

@media (max-width:980px){
  .footer__grid{ grid-template-columns:1fr 1fr; }
}

/* ---------- Responsive nav ---------- */
@media (max-width:880px){
  .hero__row{ grid-template-columns:1fr; padding:56px 24px; }
  .nav{ position:absolute; top:100%; left:0; right:0; background:var(--white); border-bottom:1px solid var(--line); display:none; }
  .nav.is-open{ display:block; }
  .nav ul{ flex-direction:column; gap:0; padding:8px 24px 16px; }
  .nav a{ display:block; padding:12px 0; border-bottom:1px solid var(--line); }
  .nav-toggle{ display:flex; }
  .hide-mobile{ display:none; }
  .why-grid, .service-grid, .service-grid--full{ grid-template-columns:1fr; }
}
