/* =========================================================
   URBAN CLAP BUILDING CLEANING SERVICES EST. — Site Styles
   Palette: Deep Navy / Forest Green / Antique Gold / Ivory Stone
   Type: Fraunces (display serif) + Inter (body/UI)
   ========================================================= */

:root{
  --navy: #142A3D;
  --navy-deep: #0D1E2B;
  --green: #24463A;
  --green-deep: #17322A;
  --gold: #B6893B;
  --gold-light: #D9B876;
  --stone: #F6F2E9;
  --stone-dim: #EFE9DA;
  --paper: #FCFAF4;
  --ink: #24261F;
  --ink-soft: #5B5C50;
  --line: #DCD5C1;
  --white: #FFFFFF;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --radius: 2px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1{ font-size: clamp(2.4rem, 4.4vw, 4rem); font-weight:600; letter-spacing:-0.01em; }
h2{ font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3{ font-size: 1.3rem; }
p{ margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
.section p.lede{ font-size: 1.15rem; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- Layout helpers ---------- */
.wrap{ max-width: var(--maxw); margin:0 auto; padding: 0 28px; }
.section{ padding: 96px 0; }
.section.tight{ padding: 64px 0; }
.section.on-stone{ background: var(--stone); }
.section.on-navy{ background: var(--navy); }
.section.on-navy h2, .section.on-navy h3{ color: var(--white); }
.section.on-navy p{ color: #C7D0D6; }
.section.on-green{ background: var(--green); }
.section.on-green h2, .section.on-green h3{ color: var(--white); }
.section.on-green p{ color: #CFDAD1; }

.eyebrow{
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
  display:inline-block;
}
.rule{ width:56px; height:2px; background: var(--gold); border:0; margin: 18px 0 26px; }
.grid{ display:grid; gap: 32px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .section{ padding: 64px 0; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding: 14px 28px;
  font-weight:600; font-size: .95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor:pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary{ background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover{ background: var(--gold-light); }
.btn-outline{ border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline:hover{ border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline-dark{ border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover{ background: var(--navy); color:var(--white); }
.btn-row{ display:flex; gap:16px; flex-wrap:wrap; margin-top: 30px; }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky; top:0; z-index: 500;
  background: rgba(252,250,244,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 28px;
  max-width: var(--maxw); margin: 0 auto;
}
.brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.brand-mark{
  width:44px; height:44px;
  object-fit: contain;
  flex-shrink:0;
}
.brand-text{ line-height:1.15; }
.brand-text .b1{ font-family: var(--serif); font-weight:600; font-size: 1.05rem; color: var(--navy); }
.brand-text .b2{ font-size: .66rem; letter-spacing: .04em; color: var(--gold); font-weight:600; }

.nav{ display:flex; align-items:center; gap: 30px; }
.nav > ul{ display:flex; gap: 22px; align-items:center; }
.nav a.nav-link{ font-size: .91rem; font-weight:500; color: var(--navy); position:relative; padding: 6px 0; white-space:nowrap; }
.nav a.nav-link:hover{ color: var(--gold); }
.nav-item.has-drop{ position:relative; }
.drop{
  position:absolute; top: 100%; left:0; background: var(--paper);
  border: 1px solid var(--line); min-width: 250px; padding: 10px;
  box-shadow: 0 18px 30px rgba(20,42,61,.12);
  opacity:0; visibility:hidden; transform: translateY(6px);
  transition: all .18s ease;
}
.nav-item.has-drop:hover .drop, .nav-item.has-drop:focus-within .drop{ opacity:1; visibility:visible; transform:translateY(0); }
.drop a{ display:block; padding: 10px 12px; font-size:.9rem; color: var(--ink); border-radius: 2px; }
.drop a:hover{ background: var(--stone); color: var(--gold); }

.header-cta{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
.wa-btn{
  display:flex; align-items:center; gap:8px;
  background: var(--green); color: var(--white);
  padding: 10px 18px; font-size:.88rem; font-weight:600; border-radius: var(--radius);
  white-space:nowrap; flex-shrink:0;
}
.wa-btn svg{ width:18px; height:18px; flex-shrink:0; }
.wa-btn:hover{ background: var(--green-deep); }

.menu-toggle{ display:none; background:none; border:0; cursor:pointer; padding:6px; flex-shrink:0; }
.menu-toggle span{ display:block; width:24px; height:2px; background:var(--navy); margin:5px 0; }

@media (max-width: 1240px){
  .nav{ position:fixed; inset: 68px 0 0 0; background: var(--paper); flex-direction:column; align-items:flex-start;
        padding: 20px 28px; gap:0; overflow-y:auto; transform: translateX(100%); transition: transform .28s ease; z-index:400; }
  .nav.open{ transform: translateX(0); }
  .nav > ul{ flex-direction:column; align-items:flex-start; width:100%; gap:0; }
  .nav-item{ width:100%; border-bottom: 1px solid var(--line); }
  .nav a.nav-link{ display:block; padding: 16px 0; white-space:normal; }
  .drop{ position:static; opacity:1; visibility:visible; transform:none; border:0; box-shadow:none; display:none; padding: 0 0 10px 12px; }
  .nav-item.has-drop.open .drop{ display:block; }
  .header-cta .btn-text{ display:none; }
  .wa-btn{ padding: 10px; }
  .menu-toggle{ display:block; }
}

@media (max-width: 380px){
  .brand-text{ display:none; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--green-deep) 100%);
  color: var(--white);
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%);
  pointer-events:none;
}
.hero-grid{
  position:relative; z-index:2;
  display:grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items:center;
  padding: 88px 0 80px;
}
.hero-eyebrow{ color: var(--gold-light); font-weight:600; font-size:.85rem; margin-bottom:16px; }
.hero h1{ color: var(--white); margin-bottom: 22px; }
.hero p.lede{ color: #D6DCE0; font-size: 1.15rem; max-width: 46ch; }
.hero-media{ position:relative; }
.hero-media img{ width:100%; height: 460px; object-fit:cover; border: 1px solid rgba(255,255,255,.18); }
.hero-media .tag{
  position:absolute; bottom: -22px; left: -22px; background: var(--gold);
  color: var(--navy-deep); padding: 16px 22px; font-family: var(--serif); font-weight:600; font-size:1rem;
  max-width: 230px;
}
.page-hero{ padding: 72px 0 64px; }
.page-hero .hero-grid{ grid-template-columns: 1fr; padding: 0; gap:0; }
.page-hero p.lede{ max-width: 58ch; }

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; padding: 56px 0 60px; }
  .hero-media{ order:-1; }
  .hero-media img{ height: 300px; }
  .hero-media .tag{ display:none; }
}

/* ---------- Cards ---------- */
.svc-card{
  background: var(--white); border: 1px solid var(--line);
  padding: 30px 26px; transition: border-color .2s ease, transform .2s ease;
}
.svc-card:hover{ border-color: var(--gold); transform: translateY(-3px); }
.svc-card .num{ font-family: var(--serif); color: var(--gold); font-size: 1.4rem; margin-bottom: 14px; display:block; }
.svc-card h3{ margin-bottom:10px; font-size: 1.15rem; }
.svc-card p{ font-size: .95rem; margin:0; }

.img-card{ position:relative; overflow:hidden; }
.img-card img{ width:100%; height: 260px; object-fit:cover; transition: transform .4s ease; }
.img-card:hover img{ transform: scale(1.04); }
.img-card .cap{
  position:absolute; left:0; right:0; bottom:0; padding: 20px;
  background: linear-gradient(0deg, rgba(13,30,43,.88), transparent);
  color:var(--white);
}
.img-card .cap h3{ color:var(--white); margin:0; font-size:1.1rem; }

.value-card{ border-top: 2px solid var(--gold); padding-top: 18px; }
.value-card h3{ font-size: 1.05rem; }
.value-card p{ font-size: .93rem; }

.check-list li{ position:relative; padding-left: 26px; margin-bottom: 12px; color: var(--ink-soft); font-size: .97rem; }
.check-list li::before{
  content:""; position:absolute; left:0; top: 8px; width:10px; height:10px;
  border: 2px solid var(--gold); border-radius:50%;
}
.check-cols{ display:grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; }
@media (max-width: 640px){ .check-cols{ grid-template-columns: 1fr; } }

/* ---------- Process / Steps ---------- */
.process-rail{
  display:flex; gap: 0; flex-wrap:wrap; counter-reset: step;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.process-step{
  flex: 1 1 0; min-width: 150px; padding: 26px 20px; border-right: 1px solid var(--line);
  position:relative;
}
.process-step:last-child{ border-right:0; }
.process-step .pnum{ font-family: var(--serif); font-size:1.6rem; color: var(--gold); display:block; margin-bottom:10px; }
.process-step h4{ font-family:var(--sans); font-weight:700; font-size:.98rem; color:var(--navy); margin:0 0 6px; }
.process-step p{ font-size: .85rem; margin:0; }
@media (max-width: 860px){
  .process-step{ flex: 1 1 45%; border-right:0; border-bottom: 1px solid var(--line); }
}

.arrow-flow{ display:flex; flex-wrap:wrap; align-items:center; gap: 10px 6px; }
.arrow-flow .node{
  background: var(--white); border:1px solid var(--line); padding: 12px 18px;
  font-weight:600; font-size:.92rem; color: var(--navy);
}
.arrow-flow .arrow{ color: var(--gold); font-size:1.1rem; }

/* ---------- Stats / feature strip ---------- */
.feature-row{ display:flex; gap: 40px; flex-wrap:wrap; border-top:1px solid var(--line); padding-top: 34px; margin-top: 40px; }
.feature-row .f{ flex:1 1 180px; }
.feature-row .f h4{ font-family:var(--sans); font-weight:700; color:var(--navy); font-size:.95rem; margin-bottom:6px; }
.feature-row .f p{ font-size:.88rem; margin:0; }

/* ---------- Segment / property type cards ---------- */
.segment-card{ background: var(--white); border:1px solid var(--line); padding: 0; overflow:hidden; }
.segment-card img{ width:100%; height:190px; object-fit:cover; }
.segment-card .body{ padding: 22px 24px; }
.segment-card h3{ font-size:1.05rem; margin-bottom:8px; }
.segment-card p{ font-size:.92rem; margin:0; }

/* ---------- Quote / promise ---------- */
.promise{
  border-left: 3px solid var(--gold); padding-left: 28px; margin: 0;
}
.promise p{ font-family: var(--serif); font-size: 1.5rem; color: var(--white); line-height:1.4; max-width: 46ch; }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--green-deep); color: var(--white); padding: 64px 0;
}
.cta-band .wrap{ display:flex; justify-content:space-between; align-items:center; gap: 30px; flex-wrap:wrap; }
.cta-band h2{ color: var(--white); margin:0; font-size: 1.9rem; }
.cta-band p{ color:#CFDAD1; margin: 8px 0 0; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-deep); color: #C7D0D6; padding: 72px 0 28px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-brand{ display:flex; gap:12px; align-items:flex-start; margin-bottom: 16px; }
.footer-logo{ height:96px; width:96px; object-fit:contain; }
.footer-brand .b1{ color: var(--white); }
.site-footer h4{ color: var(--white); font-family: var(--sans); font-size:.92rem; font-weight:700; margin-bottom: 18px; }
.site-footer a{ display:block; color:#B9C2C8; font-size:.9rem; padding: 6px 0; }
.site-footer a:hover{ color: var(--gold-light); }
.footer-tagline{ font-size:.9rem; max-width:34ch; color:#A9B4BA; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 24px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:14px; font-size:.82rem; color:#8B98A0;
}
.brand-strip{ font-family: var(--serif); letter-spacing:.08em; color: var(--gold-light); font-size:.95rem; }
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ---------- Page transitions ---------- */
/* Entrance: pure CSS animation, no JS dependency — cannot get "stuck"
   invisible even if a script errors or JS is disabled. */
body{
  animation: page-fade-in .45s ease both;
}
@keyframes page-fade-in{
  from{ opacity:0; transform: translateY(8px); }
  to{ opacity:1; transform:none; }
}
/* Exit: JS-driven fade before navigating to the next page (progressive
   enhancement only — links work instantly and normally without it). */
body.leaving{
  opacity:0;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease;
}

.reveal{ opacity:0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }

/* ---------- Breadcrumb / page eyebrow bar ---------- */
.subnav{ background: var(--stone); border-bottom:1px solid var(--line); }
.subnav .wrap{ display:flex; gap:22px; padding: 14px 28px; overflow-x:auto; }
.subnav a{ font-size:.85rem; font-weight:600; color: var(--ink-soft); white-space:nowrap; padding: 4px 0; border-bottom: 2px solid transparent; }
.subnav a.active, .subnav a:hover{ color: var(--navy); border-color: var(--gold); }

.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:start; }
@media (max-width: 900px){ .two-col{ grid-template-columns: 1fr; gap:36px; } }
.two-col img{ width:100%; height: 100%; object-fit:cover; min-height:340px; }

.badge-list{ display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.badge-list span{ border:1px solid var(--line); padding:8px 14px; font-size:.83rem; color:var(--navy); background:var(--white); }

/* ---------- Floating WhatsApp button ---------- */
.wa-float{
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 600;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover{ transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 30px rgba(0,0,0,.34); }
.wa-float svg{ width:30px; height:30px; }
.wa-float::before{
  content:"";
  position:absolute; inset:0; border-radius:50%;
  background: #25D366;
  opacity:.55;
  animation: wa-pulse 2.4s ease-out infinite;
  z-index:-1;
}
@keyframes wa-pulse{
  0%{ transform: scale(1); opacity:.5; }
  100%{ transform: scale(1.7); opacity:0; }
}
@media (prefers-reduced-motion: reduce){
  .wa-float::before{ animation: none; display:none; }
}
@media (max-width: 640px){
  .wa-float{ right:16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width:52px; height:52px; }
  .wa-float svg{ width:26px; height:26px; }
}
