/* ==========================================================================
   Banner Clean Co. — shared site styles
   ========================================================================== */

:root{
  --bg:#F7FAF8;
  --surface:#FFFFFF;
  --surface-2:#EAF6EE;
  --text:#16302B;
  --text-muted:#52706A;
  --accent:#FF6F59;
  --accent-strong:#E85A45;
  --accent-contrast:#FFFFFF;
  --secondary:#127475;
  --secondary-soft:#DFF3F1;
  --danger:#C0392B;
  --danger-soft:#FBE4E1;
  --border:#DCEFE6;
  --shadow: 0 12px 30px -18px rgba(22,48,43,0.35);
  --radius-lg:22px;
  --radius-md:14px;
  --radius-sm:9px;
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; overflow-x:hidden; }
body{ overflow-x:hidden; }
/* keep the sticky header from covering a section's heading when jumping to an anchor */
section, .article-head{ scroll-margin-top:96px; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.display{
  font-family:"Fredoka","Inter",system-ui,sans-serif;
  font-weight:600;
  text-wrap:balance;
  margin:0;
  color:var(--text);
}
p{ margin:0 0 1em; }
a{ color:var(--secondary); }
a.plain{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }
img,svg{ max-width:100%; display:block; }
:focus-visible{ outline:3px solid var(--accent); outline-offset:2px; border-radius:6px; }

.wrap{ max-width:1080px; margin:0 auto; padding:0 24px; }
.visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

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

/* ---------- Nav ---------- */
header.site{
  position:sticky; top:0; z-index:40;
  background:color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:12px 0; gap:16px; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand img{ height:38px; width:auto; }
nav.links{ display:flex; gap:18px; }
nav.links a{ text-decoration:none; font-weight:600; font-size:0.94rem; color:var(--text-muted); padding:6px 2px; border-bottom:2px solid transparent; white-space:nowrap; }
nav.links a:hover, nav.links a.active{ color:var(--text); border-color:var(--accent); }
.nav-actions{ display:flex; align-items:center; gap:10px; }
.nav-toggle{
  display:none; background:none; border:1px solid var(--border); border-radius:10px;
  width:42px; height:42px; align-items:center; justify-content:center;
  font-size:1.35rem; line-height:1; cursor:pointer; color:var(--text); flex:0 0 auto;
}
.cart-btn-label{ display:inline; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border-radius:999px; border:1px solid transparent; cursor:pointer; text-decoration:none;
  font-weight:700; font-size:0.94rem; padding:11px 20px; white-space:nowrap;
  transition:transform 0.15s ease, background 0.15s ease, border-color .15s ease;
}
.btn:active{ transform:scale(0.97); }
.btn-primary{ background:var(--accent); color:var(--accent-contrast); }
.btn-primary:hover{ background:var(--accent-strong); }
.btn-ghost{ background:transparent; color:var(--text); border-color:var(--border); }
.btn-ghost:hover{ border-color:var(--accent); }
.btn-sm{ padding:7px 13px; font-size:0.82rem; }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:0.5; cursor:not-allowed; }

.cart-btn{ position:relative; }
.cart-badge{
  position:absolute; top:-6px; right:-6px; background:var(--danger); color:#fff;
  font-size:0.68rem; font-weight:700; min-width:18px; height:18px; border-radius:999px;
  display:flex; align-items:center; justify-content:center; padding:0 4px;
}

/* ---------- Hero ---------- */
.hero{ padding:56px 0 48px; }
.hero-inner{ display:grid; grid-template-columns:1.05fr 0.95fr; gap:44px; align-items:center; }
.kicker{
  display:inline-block; font-size:0.78rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--secondary); background:var(--secondary-soft); padding:6px 12px; border-radius:999px; margin-bottom:16px;
}
.hero h1{ font-size:clamp(2rem, 4vw, 2.9rem); letter-spacing:-0.01em; }
.hero p.lead{ color:var(--text-muted); font-size:1.08rem; max-width:48ch; margin:16px 0 26px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.trust-row{ display:flex; flex-wrap:wrap; gap:10px 22px; margin-top:26px; font-size:0.85rem; color:var(--text-muted); }
.trust-row span{ display:flex; align-items:center; gap:6px; }
.trust-row span::before{ content:"✓"; color:var(--secondary); font-weight:700; }

/* image placeholder block — swap for a real <img> once you have photos */
.img-placeholder{
  border:2px dashed var(--border); border-radius:var(--radius-lg); background:var(--surface-2);
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  color:var(--text-muted); gap:8px; padding:24px; aspect-ratio:4/3; width:100%;
}
.img-placeholder .ph-icon{ font-size:2rem; }
.img-placeholder small{ max-width:28ch; font-size:0.78rem; line-height:1.4; }

/* real photos (embedded inline as data URIs — no separate image files/folders) */
/* height:auto is required here to override the width/height HTML attributes on
   the <img> tags (kept only to prevent layout shift before the image paints) —
   without it the browser locks in the raw photo's own height and ignores aspect-ratio. */
.hero-photo{
  width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; display:block;
  border-radius:var(--radius-lg); box-shadow:var(--shadow);
}
.blog-card-photo{ width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; display:block; }
.article-cover-photo{
  width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; display:block;
  border-radius:var(--radius-lg); margin:1.6em 0;
}

/* ---------- Generic sections ---------- */
section{ padding:52px 0; border-top:1px solid var(--border); }
.section-title{ font-size:clamp(1.5rem,2.6vw,2rem); letter-spacing:-0.01em; margin-bottom:10px; }
.section-sub{ color:var(--text-muted); margin-bottom:32px; max-width:60ch; }

/* ---------- Service / pricing cards ---------- */
.cards-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.svc-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:22px; display:flex; flex-direction:column; gap:10px;
}
.svc-card h3{ font-size:1.08rem; }
.svc-card p{ color:var(--text-muted); font-size:0.92rem; margin:0; }
.price-line{ display:flex; justify-content:space-between; align-items:center; margin-top:auto; padding-top:8px; border-top:1px dashed var(--border); gap:10px; }
.svc-card .price{ font-weight:700; font-family:"Fredoka",sans-serif; color:var(--secondary); }

.option-row{ display:flex; align-items:center; padding:10px 0; border-bottom:1px solid var(--border); gap:14px; }
.option-row:last-child{ border-bottom:0; }
.option-row > div:first-child{ flex:1 1 auto; min-width:0; }
.option-name{ font-weight:600; font-size:0.95rem; }
.option-desc{ color:var(--text-muted); font-size:0.82rem; margin-top:2px; }
.option-price{ font-weight:700; white-space:nowrap; font-family:"Fredoka",sans-serif; flex:0 0 64px; text-align:right; }
.option-row .btn{ flex:0 0 auto; min-width:148px; }

.bundle-card{
  background:linear-gradient(160deg, var(--secondary-soft), var(--surface) 60%);
  border:1px solid var(--border); border-radius:var(--radius-lg); padding:22px;
}
.bundle-card h3{ font-size:1.1rem; margin-bottom:6px; }
.bundle-card .save-tag{ display:inline-block; background:var(--accent); color:#fff; font-size:0.72rem; font-weight:700; padding:3px 10px; border-radius:999px; margin-bottom:10px; }

.steps-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.step-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:22px; display:flex; flex-direction:column; gap:10px; }
.step-num{ width:32px; height:32px; border-radius:50%; background:var(--secondary-soft); color:var(--secondary); font-weight:700; font-family:"Fredoka",sans-serif; display:flex; align-items:center; justify-content:center; font-size:0.9rem; }
.step-card p{ color:var(--text-muted); font-size:0.94rem; margin:0; }

.area-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.area-tags span{ background:var(--surface-2); color:var(--secondary); border-radius:999px; padding:6px 14px; font-size:0.86rem; font-weight:600; }

/* ---------- Blog teaser + listing ---------- */
.blog-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.blog-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; text-decoration:none; color:inherit; display:flex; flex-direction:column; }
.blog-card .img-placeholder{ border-radius:0; border-width:0 0 1px; aspect-ratio:16/9; }
.blog-card .blog-card-body{ padding:18px; display:flex; flex-direction:column; gap:8px; }
.blog-card h3{ font-size:1.02rem; }
.blog-card p{ color:var(--text-muted); font-size:0.88rem; margin:0; }
.blog-card .read-more{ font-weight:700; color:var(--accent); font-size:0.85rem; margin-top:auto; }
.blog-meta{ font-size:0.78rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.04em; }

/* ---------- Article prose ---------- */
.article-head{ padding:44px 0 20px; }
.article-head .kicker{ margin-bottom:14px; }
.article-head h1{ font-size:clamp(1.9rem,4vw,2.6rem); }
.article-meta{ color:var(--text-muted); font-size:0.88rem; margin-top:14px; }
.prose{ max-width:72ch; margin:0 auto; }
.prose h2{ font-size:1.4rem; margin-top:2.2em; margin-bottom:0.6em; }
.prose h3{ font-size:1.12rem; margin-top:1.6em; margin-bottom:0.5em; }
.prose p{ margin-bottom:1.1em; }
.prose ul, .prose ol{ margin:0 0 1.2em; padding-left:1.3em; }
.prose li{ margin-bottom:0.5em; }
.prose a{ text-decoration:underline; text-underline-offset:2px; }
.prose blockquote{ border-left:3px solid var(--secondary); margin:1.6em 0; padding:2px 0 2px 18px; color:var(--text-muted); font-style:italic; }
.prose .img-placeholder{ margin:1.6em 0; }
.cta-box{ background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-md); padding:22px; margin:2em 0; display:flex; flex-wrap:wrap; align-items:center; gap:16px; justify-content:space-between; }
.cta-box p{ margin:0; font-weight:600; }

/* ---------- Cart bar (mobile-first sticky) ---------- */
.cart-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:50;
  background:var(--surface); border-top:1px solid var(--border);
  box-shadow:0 -12px 24px -20px rgba(0,0,0,0.35);
  padding:12px 20px; display:none; align-items:center; justify-content:space-between; gap:14px;
  padding-bottom:calc(12px + env(safe-area-inset-bottom, 0px));
}
.cart-bar.show{ display:flex; }
.cart-bar-total{ font-weight:700; }
.cart-bar-total small{ display:block; color:var(--text-muted); font-weight:500; font-size:0.75rem; }

/* ---------- Modal / overlay ---------- */
.overlay{
  position:fixed; inset:0; background:rgba(15,30,26,0.5); backdrop-filter:blur(2px);
  display:none; align-items:flex-end; justify-content:center; z-index:60; padding:0;
}
.overlay.show{ display:flex; }
.panel{
  background:var(--bg); width:100%; max-width:520px; max-height:92vh; overflow-y:auto;
  border-radius:22px 22px 0 0; padding:24px; box-shadow:var(--shadow);
  padding-bottom:calc(24px + env(safe-area-inset-bottom, 0px));
}
@media (min-width:640px){
  .overlay{ align-items:center; padding:24px; }
  .panel{ border-radius:var(--radius-lg); padding-bottom:24px; }
}
.panel-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.panel-head h2{ font-size:1.3rem; }
.icon-btn{ background:none; border:0; cursor:pointer; font-size:1.3rem; color:var(--text-muted); line-height:1; padding:4px; }
.icon-btn:hover{ color:var(--text); }

.svc-picker-group{ margin-bottom:22px; }
.svc-picker-group h4{ font-size:0.8rem; text-transform:uppercase; letter-spacing:0.05em; color:var(--secondary); margin-bottom:10px; }
.svc-pick-row{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); }
.svc-pick-row:last-child{ border-bottom:0; }
.svc-pick-name{ font-weight:600; font-size:0.92rem; }
.svc-pick-price{ color:var(--text-muted); font-size:0.82rem; }
.qty-stepper{ display:flex; align-items:center; border:1px solid var(--border); border-radius:999px; }
.qty-stepper button{ width:32px; height:32px; border:0; background:transparent; cursor:pointer; font-size:1.05rem; color:var(--text); }
.qty-stepper span{ min-width:18px; text-align:center; font-weight:700; font-size:0.88rem; }

.cart-line{ display:flex; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); align-items:center; }
.cart-line-name{ font-weight:600; font-size:0.95rem; }
.cart-line-price{ color:var(--text-muted); font-size:0.85rem; }
.cart-line-remove{ background:none; border:0; color:var(--danger); font-size:0.8rem; font-weight:700; cursor:pointer; padding:0; }
.cart-empty{ color:var(--text-muted); text-align:center; padding:32px 0; }

.totals-row{ display:flex; justify-content:space-between; padding:6px 0; font-size:0.95rem; }
.totals-row.grand{ font-weight:700; font-size:1.1rem; border-top:1px solid var(--border); margin-top:8px; padding-top:14px; }

.field{ margin-bottom:16px; }
.field label{ display:block; font-weight:600; font-size:0.88rem; margin-bottom:6px; }
.field input, .field textarea{
  width:100%; padding:11px 13px; border-radius:var(--radius-sm); border:1px solid var(--border);
  background:var(--surface); color:var(--text); font-size:0.95rem; font-family:inherit;
}
.field input:focus, .field textarea:focus{ border-color:var(--accent); }
.field.error input, .field.error textarea{ border-color:var(--danger); }
.field .err-msg{ color:var(--danger); font-size:0.78rem; margin-top:4px; display:none; }
.field.error .err-msg{ display:block; }
textarea{ resize:vertical; min-height:64px; }
.field-hint{ color:var(--text-muted); font-size:0.78rem; margin-top:4px; }

.confirm-icon{
  width:56px; height:56px; border-radius:50%; background:var(--secondary-soft); color:var(--secondary);
  display:flex; align-items:center; justify-content:center; font-size:1.6rem; margin-bottom:14px;
}
.confirm-order-num{
  background:var(--surface-2); border-radius:var(--radius-sm); padding:12px 14px; margin:14px 0;
  display:flex; justify-content:space-between; align-items:center;
}
.confirm-order-num .val{ font-weight:700; font-size:1.05rem; font-family:"Fredoka",sans-serif; }

/* ---------- Contact / footer ---------- */
.contact-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.contact-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:20px; }
.contact-card h3{ font-size:0.82rem; text-transform:uppercase; letter-spacing:0.05em; color:var(--secondary); font-weight:700; margin-bottom:8px; }
.contact-card p{ margin:0; font-size:0.98rem; }
.whatsapp-link{ color:var(--accent); font-weight:700; text-decoration:none; }
.whatsapp-link:hover{ text-decoration:underline; }

footer.site{ border-top:1px solid var(--border); padding:24px 0 90px; color:var(--text-muted); font-size:0.82rem; }
footer.site .wrap{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
footer.site .foot-links{ display:flex; gap:16px; flex-wrap:wrap; }
footer.site .foot-links a{ color:var(--text-muted); text-decoration:none; }
footer.site .foot-links a:hover{ color:var(--text); }
footer.site .legal{ max-width:64ch; margin-top:10px; }

@media (max-width:960px){
  .hero-inner{ grid-template-columns:1fr; }
  .cards-grid{ grid-template-columns:1fr; }
  .steps-grid{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .blog-grid{ grid-template-columns:1fr; }

  /* ---- mobile nav: collapsible dropdown instead of a hidden menu ---- */
  .nav{ flex-wrap:wrap; }
  .nav-toggle{ display:inline-flex; order:3; }
  .nav-actions{ order:2; gap:8px; }
  .nav-actions .btn-primary{ display:none; } /* "Book a Clean" — reachable via the Pricing link in the menu */
  .cart-btn-label{ display:none; } /* keep just the basket icon + badge to save space */
  nav.links{
    display:none;
    flex-direction:column;
    width:100%;
    order:4;
    gap:0;
    margin-top:10px;
    padding-top:6px;
    border-top:1px solid var(--border);
  }
  nav.links.open{ display:flex; }
  nav.links a{ padding:13px 4px; border-bottom:1px solid var(--border); }
  nav.links a:last-child{ border-bottom:0; }
}

@media (max-width:420px){
  .brand img{ height:32px; }
}

/* ---- pricing rows: stack the button on its own line on narrow phones ---- */
@media (max-width:560px){
  .option-row{ flex-wrap:wrap; row-gap:10px; }
  .option-row > div:first-child{ flex:1 1 100%; }
  .option-price{ flex:0 0 auto; text-align:left; }
  .option-row .btn{ flex:1 1 auto; min-width:0; margin-left:auto; }
}
