/* =========================================================
   THE FUNKY SPONGE — Brand Design System
   Clean Homes. Good Vibes.
   ========================================================= */

/* Brand fonts — all four self-hosted in assets/fonts/, per the brand guide:
     Headings    → Cenzo Flare Condensed Bold   (--font-display)
     Subheadings → DIN 2014 Narrow Extra Bold   (--font-subhead)  *closest licensed weight to the guide's "Narrow Bold"
     Paragraphs  → DIN 2014 Demi                (--font-body)
     Accent      → Pierce Jameson Script         (--font-script)
   Barlow Semi Condensed stays as a free DIN-like fallback only if a file fails to load. */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'Cenzo Flare Condensed';
  src: url('fonts/CenzoFlareCond-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Pierce Jameson';
  src: url('fonts/PierceJameson-Script.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  /* Body / paragraphs — exact brand match */
  font-family: 'DIN 2014';
  src: url('fonts/DIN2014-Demi.otf') format('opentype');
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  /* Subheadings — Extra Bold stands in for the guide's "Narrow Bold".
     To soften, swap to fonts/DIN2014Narrow-Demi.otf (also bundled). */
  font-family: 'DIN 2014 Narrow';
  src: url('fonts/DIN2014Narrow-ExtraBold.otf') format('opentype');
  font-weight: 600 800; font-style: normal; font-display: swap;
}

:root {
  /* Brand palette (pulled from logo + hero assets) */
  --purple:        #5B2C9C;
  --purple-deep:   #3B1A6E;
  --purple-darker: #2A1248;
  --purple-light:  #8A5FD0;
  --purple-wash:   #F4EEFC;
  --yellow:        #FBB81C;
  --yellow-deep:   #E89A00;
  --cyan:          #2BC4F3;
  --cyan-deep:     #1597d6;
  --ink:           #271640;
  --muted:         #6E6286;
  --cream:         #FBF8FF;
  --white:         #ffffff;
  --line:          #ECE4F7;

  --radius:    18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 14px rgba(59,26,110,.08);
  --shadow:    0 14px 40px rgba(59,26,110,.14);
  --shadow-lg: 0 30px 70px rgba(59,26,110,.22);
  --maxw: 1160px;
  --font-display: 'Cenzo Flare Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-subhead: 'DIN 2014 Narrow', 'Barlow Semi Condensed', system-ui, sans-serif;
  --font-body: 'DIN 2014', 'Barlow Semi Condensed', system-ui, sans-serif;
  --font-script: 'Pierce Jameson', 'Pacifico', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-deep); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.center { text-align: center; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.08; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: -.4px; }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.eyebrow {
  font-family: var(--font-subhead);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .82rem;
  color: var(--purple);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  padding: 15px 30px; border-radius: var(--radius-pill);
  border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--yellow); color: var(--purple-darker); box-shadow: 0 10px 24px rgba(251,184,28,.4); }
.btn--primary:hover { background: var(--yellow-deep); color: var(--purple-darker); }
.btn--purple { background: var(--purple); color: #fff; box-shadow: 0 10px 24px rgba(91,44,156,.32); }
.btn--purple:hover { background: var(--purple-deep); color:#fff; }
.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color:#fff; }
.btn--lg { padding: 18px 38px; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.brand { display: flex; align-items: center; gap: 8px; line-height: 1; white-space: nowrap; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand .the { font-family: var(--font-script); font-size: 1.45rem; color: var(--purple); transform: translateY(-2px); }
.brand .funky { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--purple); letter-spacing: -.5px; }
.brand .sponge { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--yellow-deep); letter-spacing: -.5px; }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: .95rem; white-space: nowrap; }
.nav-links a:hover { color: var(--purple); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone { font-family: var(--font-display); font-weight: 600; color: var(--purple); white-space: nowrap; }
.site-header .nav-cta .btn { padding: 12px 22px; font-size: .95rem; }

/* Hamburger + slide-down menu (markup built by assets/site.js) */
.nav-toggle { display: none; }
.mobile-menu { display: none; }
@media (max-width: 1120px) {
  .site-header .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }            /* relocated into the slide-down menu */
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 44px; margin-left: auto;
    background: var(--purple-wash); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span { display: block; height: 2.5px; width: 22px; margin: 0 auto; background: var(--purple); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .mobile-menu {
    display: block; max-height: 0; overflow: hidden; background: #fff;
    border-top: 1px solid transparent; transition: max-height .28s ease;
  }
  .site-header.nav-open .mobile-menu { max-height: 85vh; overflow-y: auto; border-top-color: var(--line); box-shadow: var(--shadow); }
  .mobile-links { list-style: none; margin: 0; padding: 6px 24px 0; }
  .mobile-links li { border-bottom: 1px solid var(--line); }
  .mobile-links a { display: block; padding: 15px 2px; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.12rem; }
  .mobile-links a:active, .mobile-links a:hover { color: var(--purple); }
  .mobile-cta { display: flex; flex-direction: column; gap: 12px; padding: 16px 24px 24px; }
  .mobile-cta .nav-phone { text-align: center; font-size: 1.18rem; font-weight: 700; }
  .mobile-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(108deg, rgba(42,18,72,.88) 0%, rgba(59,26,110,.62) 44%, rgba(59,26,110,.18) 100%),
    url('hero-bg.jpg') center/cover no-repeat,
    linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 55%, var(--purple-darker) 100%);
  color: #fff;
}
/* The real brand background already carries bubbles — hide the CSS stand-ins */
.hero .bubble { display: none; }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 78px 0 84px; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--yellow); }
.hero .lead { color: rgba(255,255,255,.86); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-trust { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust .stat .n { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--yellow); }
.hero-trust .stat .l { font-size: .85rem; color: rgba(255,255,255,.78); }
.hero-mascot { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-mascot img { max-width: 380px; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
.hero-mascot .mascot-fallback {
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.25), transparent 60%), var(--purple-light);
  display: flex; align-items: center; justify-content: center; font-size: 5rem;
  border: 6px solid rgba(255,255,255,.25);
}
/* floating bubbles */
.bubble { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.7), rgba(43,196,243,.25)); opacity: .5; z-index: 1; }
.bubble.b1 { width: 120px; height: 120px; top: 8%; left: 6%; }
.bubble.b2 { width: 60px; height: 60px; top: 60%; left: 12%; }
.bubble.b3 { width: 90px; height: 90px; top: 18%; right: 10%; }
.bubble.b4 { width: 44px; height: 44px; bottom: 14%; right: 22%; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding: 44px 0 52px; gap: 20px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-mascot { order: -1; }
  .hero-mascot img { max-width: 200px; width: auto; height: auto; }   /* width-only — keep the art's aspect ratio */
  .hero-mascot .mascot-fallback { width: 190px; height: 190px; }
}

/* ---------- Trust bar ---------- */
.trustbar { background: var(--purple-wash); border-bottom: 1px solid var(--line); }
.trustbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; }
.trustbar .item { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; color: var(--purple-deep); font-size: .95rem; }
.trustbar .item .ic { color: var(--yellow-deep); font-size: 1.1rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 16px;
  background: var(--purple-wash); color: var(--purple);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 14px; }
.card .link { font-family: var(--font-display); font-weight: 600; color: var(--purple); }
.card .link::after { content: " →"; }

.svc-card { display: flex; flex-direction: column; }
.svc-card .price { font-family: var(--font-display); font-weight: 600; color: var(--yellow-deep); font-size: .95rem; margin-top: auto; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .num {
  width: 54px; height: 54px; border-radius: 50%; background: var(--yellow); color: var(--purple-darker);
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  display: grid; place-items: center; margin-bottom: 16px;
}

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.media-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--purple-wash); min-height: 320px; display:grid; place-items:center; }
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.media-fallback { color: var(--purple-light); font-family: var(--font-display); font-weight: 600; padding: 40px; text-align:center; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: var(--purple-darker);
  font-weight: 700; font-size: .8rem; display: grid; place-items: center;
}

/* ---------- Bands ---------- */
.band-purple { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%); color: #fff; }
.band-purple h2, .band-purple h3 { color: #fff; }
.band-cream { background: var(--cream); }
.band-wash { background: var(--purple-wash); }

/* ---------- Area links ---------- */
.area-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.area-cloud a {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 10px 18px; font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--purple-deep);
}
.area-cloud a:hover { background: var(--purple); color: #fff; border-color: var(--purple); }

/* ---------- Testimonials ---------- */
.quote { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.quote .stars { color: var(--yellow); letter-spacing: 2px; margin-bottom: 10px; }
.quote p { font-size: 1.05rem; color: var(--ink); }
.quote .who { font-family: var(--font-display); font-weight: 600; color: var(--purple-deep); margin-top: 8px; }
.quote .where { color: var(--muted); font-size: .9rem; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.cmp { border-collapse: collapse; width: 100%; background: #fff; }
table.cmp th, table.cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.cmp th { font-family: var(--font-display); background: var(--purple-wash); color: var(--purple-deep); }
table.cmp td:first-child { font-weight: 500; }

/* ---------- FAQ ---------- */
.faq details { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; padding: 16px 0; list-style: none; color: var(--ink); }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content: "+"; float: right; color: var(--purple); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .btn { margin: 6px; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .88rem; color: var(--muted); padding: 16px 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--purple); }
.url-note { font-family: var(--font-body); font-size: .78rem; color: var(--purple-light); background: var(--purple-wash); display:inline-block; padding: 4px 12px; border-radius: var(--radius-pill); margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-darker); color: rgba(255,255,255,.8); padding: 60px 0 28px; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.footer-logo { width: 250px; max-width: 72%; height: auto; display: block; margin-bottom: 14px; }
.footer-brand .the { font-family: var(--font-script); color: #fff; font-size: 1.4rem; }
.footer-brand .funky { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.6rem; }
.footer-brand .sponge { font-family: var(--font-display); font-weight: 700; color: var(--yellow); font-size: 1.6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: .85rem; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Utility ---------- */
.tag { display:inline-block; background: var(--cyan); color:#063b4d; font-family: var(--font-display); font-weight:600; font-size:.78rem; padding:5px 12px; border-radius: var(--radius-pill); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.maxw-prose { max-width: 68ch; }
.intro-prose p { font-size: 1.08rem; }

/* Keep anchored sections clear of the sticky header */
[id] { scroll-margin-top: 84px; }

/* ---------- SVG icons (replace emoji) ---------- */
.card .ic svg { width: 30px; height: 30px; }
.card:hover .ic { background: linear-gradient(135deg, var(--purple-wash), #E2F6FE); color: var(--cyan-deep); }
.trustbar .item .ic { display: inline-flex; align-items: center; color: var(--cyan-deep); }
.trustbar .item .ic svg { width: 20px; height: 20px; }

/* ---------- Scroll-reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sticky header: shadow on scroll ---------- */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 6px 22px rgba(59,26,110,.10); }

/* ---------- Credentials / trust badge row ---------- */
.badge-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.badge-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 11px 18px; box-shadow: var(--shadow-sm);
  font-family: var(--font-subhead); font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; font-size: .78rem; color: var(--purple-deep);
}
.badge-chip svg { width: 18px; height: 18px; color: var(--cyan-deep); flex: none; }

/* ---------- CTA band: brand gradient art ---------- */
.cta-band {
  background-image:
    linear-gradient(120deg, rgba(42,18,72,.84) 0%, rgba(59,26,110,.5) 55%, rgba(21,151,214,.34) 100%),
    url('band-gradient.jpg');
  background-size: cover; background-position: center;
}

/* ---------- Small-screen polish ---------- */
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .section { padding: 54px 0; }
  .section--tight { padding: 38px 0; }
  .brand-logo { height: auto; width: auto; max-width: 62vw; max-height: 30px; }
  h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 6.5vw, 2rem); }
  .lead { font-size: 1.08rem; }

  /* --- Mobile hero: compact + balanced, primary CTA near the fold --- */
  .hero-grid { padding: 20px 0 32px; gap: 10px; }
  .hero h1 { margin-bottom: .32em; }
  .hero .lead { font-size: 1.02rem; max-width: 34ch; }

  /* Full-width, thumb-friendly primary actions */
  .hero-cta { flex-direction: column; align-items: stretch; margin-top: 20px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .cta-band .btn { width: 100%; margin: 6px 0; }
  .btn--lg { padding: 16px 24px; }

  /* Hero stats read as an even row */
  .hero-trust { gap: 14px 22px; margin-top: 22px; }
  .hero-trust .stat .n { font-size: 1.45rem; }

  /* Smaller, undistorted mascot so the headline + CTA come up the screen */
  .hero-mascot img { max-width: 148px; filter: drop-shadow(0 12px 22px rgba(0,0,0,.3)); }
  .hero-mascot .mascot-fallback { width: 148px; height: 148px; font-size: 3.4rem; }

  /* Roomier tap targets / less cramped cards */
  .card { padding: 24px; }
  .trustbar .wrap { gap: 12px 18px; padding: 14px 18px; }
  .footer-bottom { flex-direction: column; }
}
