/* CCA Cleaning Services — site styles */
/* Self-hosted font (no external requests) */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}
:root {
  --navy-900: #0b1d33;
  --navy-800: #102a47;
  --navy-700: #17385d;
  --ink: #142233;
  --muted: #5a6878;
  --line: #e2e7ee;
  --surface: #ffffff;
  --surface-2: #f4f7fa;
  --accent: #1fa3a8;
  --accent-strong: #158287;
  --accent-soft: #e3f4f4;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 29, 51, .06), 0 8px 24px rgba(11, 29, 51, .06);
  --shadow-lg: 0 24px 60px rgba(11, 29, 51, .18);
  --container: 1200px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-xs: .8125rem;
  --text-sm: .9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.125rem, 1rem + .4vw, 1.375rem);
  --text-xl: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem);
  --text-2xl: clamp(2.25rem, 1.4rem + 3vw, 3.75rem);
  --section: clamp(4rem, 8vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .6em; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy-900); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(11, 29, 51, .05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy-900); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand-sub { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  display: block; padding: .5rem .9rem; border-radius: 999px;
  font-size: var(--text-sm); font-weight: 600; text-decoration: none; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:not(.btn):hover { color: var(--navy-900); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--navy-900); }
.nav-links .btn { margin-left: .75rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--navy-900); }
.nav-toggle svg { width: 28px; height: 28px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 var(--text-sm)/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(31, 163, 168, .28); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-outline { border-color: var(--line); color: var(--navy-900); background: #fff; }
.btn-outline:hover { border-color: var(--navy-900); }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow { color: #7fd9dc; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 29, 51, .92) 0%, rgba(11, 29, 51, .7) 45%, rgba(11, 29, 51, .2) 100%),
    linear-gradient(0deg, rgba(11, 29, 51, .7) 0%, rgba(11, 29, 51, 0) 40%);
}
.hero-content { position: relative; padding-block: clamp(6rem, 12vw, 9rem) clamp(3.5rem, 7vw, 5.5rem); }
.hero h1 { font-size: var(--text-2xl); max-width: 16ch; font-weight: 800; }
.hero h1 span { color: #7fd9dc; }
.hero-lede { font-size: var(--text-lg); max-width: 52ch; color: rgba(255, 255, 255, .84); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.hero-stats span { font-size: var(--text-xs); color: rgba(255, 255, 255, .7); letter-spacing: .04em; }

/* Page hero (interior) */
.page-hero { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 100% 0%, rgba(31, 163, 168, .35), transparent 60%),
              radial-gradient(40% 80% at 0% 100%, rgba(23, 56, 93, .9), transparent 70%);
}
.page-hero .container { position: relative; padding-block: clamp(4.5rem, 9vw, 7rem) clamp(3.5rem, 7vw, 5rem); }
.page-hero h1 { font-size: var(--text-2xl); max-width: 18ch; font-weight: 800; }
.page-hero p { font-size: var(--text-lg); max-width: 58ch; color: rgba(255, 255, 255, .82); margin: 0; }

/* Sections */
.section { padding-block: var(--section); }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: var(--text-xl); }
.section-head p { color: var(--muted); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Service cards (home) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.125rem; margin-bottom: .45rem; }
.card p { font-size: var(--text-sm); color: var(--muted); margin-bottom: 1.2rem; }
.card-link { margin-top: auto; font-size: var(--text-sm); font-weight: 700; color: var(--accent-strong); display: inline-flex; align-items: center; gap: .35rem; }
.card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-link svg { transform: translateX(3px); }

/* Split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.split-media .badge {
  position: absolute; left: -1.25rem; bottom: -1.25rem; background: var(--navy-900); color: #fff;
  padding: 1.25rem 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 230px;
}
.badge strong { display: block; font-size: 2.25rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: #7fd9dc; }
.badge span { font-size: var(--text-xs); color: rgba(255, 255, 255, .8); }
.split-copy h2 { font-size: var(--text-xl); }
.split-copy p { color: var(--muted); }

/* Feature list */
.checks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .8rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--text-sm); }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }

/* Value grid */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.value-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 1.1rem; }
.value-icon svg { width: 24px; height: 24px; }
.value h3 { font-size: 1.0625rem; margin-bottom: .4rem; }
.value p { font-size: var(--text-sm); color: var(--muted); margin: 0; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding-top: 1.25rem; border-top: 2px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: var(--text-xs); font-weight: 800; letter-spacing: .1em; color: var(--accent-strong); margin-bottom: .6rem; }
.step h3 { font-size: 1.0625rem; margin-bottom: .4rem; }
.step p { font-size: var(--text-sm); color: var(--muted); margin: 0; }

/* Service detail (services page) */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service:last-child { border-bottom: 0; }
.service:nth-child(even) .service-media { order: 2; }
.service-media img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.service-num { font-size: var(--text-xs); font-weight: 800; letter-spacing: .14em; color: var(--accent-strong); text-transform: uppercase; margin-bottom: .75rem; display: block; }
.service h2 { font-size: var(--text-xl); }
.service p { color: var(--muted); }
.service .checks { grid-template-columns: 1fr 1fr; gap: .7rem 1.25rem; margin-bottom: 0; }

.service-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.service-nav a { padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); color: #fff; text-decoration: none; font-size: var(--text-sm); font-weight: 600; transition: background .2s, border-color .2s; }
.service-nav a:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* Agreements */
.agreements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.agreement { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 1.75rem; }
.agreement h3 { font-size: 1.0625rem; color: #fff; margin-bottom: .4rem; }
.agreement p { font-size: var(--text-sm); color: rgba(255, 255, 255, .72); margin: 0; }
.dark-band { background: var(--navy-900); color: #fff; }
.dark-band .section-head p { color: rgba(255, 255, 255, .72); }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: calc(var(--radius) * 1.5); background: var(--navy-800); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 140% at 100% 50%, rgba(31, 163, 168, .45), transparent 65%); }
.cta > * { position: relative; }
.cta h2 { font-size: var(--text-xl); margin-bottom: .5rem; }
.cta p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 52ch; }
.cta-actions { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.cta-email { font-size: var(--text-xs); color: rgba(255, 255, 255, .7); text-decoration: none; }
.cta-email:hover { color: #fff; text-decoration: underline; }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding-block: 4rem 2rem; font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand-sub { color: rgba(255, 255, 255, .55); }
.site-footer h3 { color: #fff; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: var(--text-xs); color: rgba(255, 255, 255, .5); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .25rem;
    background: #fff; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(11, 29, 51, .08);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { padding: .85rem 1rem; font-size: var(--text-base); }
  .nav-links .btn { margin: .5rem 0 0; }
  .split, .service, .cta { grid-template-columns: 1fr; }
  .split.reverse .split-media, .service:nth-child(even) .service-media { order: 0; }
  .split-media .badge { left: 1rem; bottom: -1.5rem; }
  .split-media { margin-bottom: 1.5rem; }
  .values, .agreements { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .service .checks { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .brand-sub { display: none; }
}

/* Footer overflow guard for long email addresses */
.footer-grid > * { min-width: 0; }
.site-footer a, .cta-email { overflow-wrap: anywhere; }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand svg rect { stroke: rgba(255,255,255,.18); stroke-width: 1; }

/* Keep full company name on one line */
.brand-name { white-space: nowrap; }
@media (max-width: 360px) { .brand { gap: .55rem; } .brand svg { width: 34px; height: 34px; } .brand-name { font-size: 1rem; } }
