/* ==========================================================================
   Oasis Cleaning — Site-Wide Design System
   Version: 2026-03-28
   Loads AFTER premium.css, BEFORE page-specific CSS
   Extracts shared patterns from homepage into reusable site-wide classes
   ========================================================================== */

/* ---------- PAGE HERO (shared dark hero pattern) ---------- */
/* Mirrors the hero-alt gradient background used across about, contact,
   faq, janitorial, service-areas, industries, quote pages */
.page-hero {
  padding: clamp(40px, 5.6vw, 66px) 0 clamp(78px, 9vw, 118px);
  background:
    radial-gradient(720px 420px at 4% 0, rgba(30,159,255,.18), rgba(30,159,255,0) 64%),
    radial-gradient(520px 320px at 96% 0, rgba(65,173,74,.16), rgba(65,173,74,0) 62%),
    radial-gradient(420px 260px at 72% 100%, rgba(255,208,103,.14), rgba(255,208,103,0) 70%),
    linear-gradient(135deg, #05111f 0, #07192f 52%, #0c2c54 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

/* Hero 2-col grid */
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}

/* Hero text column */
.page-hero__copy {
  max-width: 700px;
}

.page-hero__copy .kicker {
  color: #d7eaff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}

.page-hero__copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.75rem, 5.8vw, 5.2rem);
  line-height: .94;
  letter-spacing: -.055em;
}

.page-hero__copy .lead {
  margin: 1.2rem 0 0;
  max-width: 33ch;
  color: #d7e4f2;
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  line-height: 1.74;
}

/* Hero CTA row */
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 1.7rem;
}

.page-hero__actions .btn-primary {
  box-shadow: 0 18px 34px rgba(65,173,74,.28);
}

.page-hero__actions .btn-ghost,
.page-hero .btn-ghost {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.page-hero__actions .btn-ghost:hover,
.page-hero__actions .btn-ghost:focus-visible,
.page-hero .btn-ghost:hover,
.page-hero .btn-ghost:focus-visible {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.32);
}

/* Hero trust chips */
.page-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.page-hero__trust li {
  padding: .74rem .98rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #eff7ff;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Hero glassmorphism panel */
.page-hero__panel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.08)),
    rgba(255,255,255,.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 28px 60px rgba(4,16,34,.18);
}

.page-hero__panel h2 {
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.12;
}

.page-hero__panel p {
  margin: 12px 0 0;
  color: #d2dfee;
  line-height: 1.66;
}

/* Hero metrics grid (inside panel) */
.page-hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.page-hero__metric {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
}

.page-hero__metric strong {
  display: block;
  color: #fff;
  font-size: 1.32rem;
  line-height: 1;
}

.page-hero__metric span {
  display: block;
  margin-top: .45rem;
  color: #d4e4f2;
  font-size: .88rem;
  line-height: 1.5;
}

/* ---------- SECTION SYSTEM ---------- */
/* Alternating section background for visual rhythm */
.section--alt {
  background: var(--bg);
}

/* Subtle top gradient accent for rhythm sections */
.section--accent::before {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--navy-500));
  border-radius: 2px;
  margin: 0 auto;
  position: relative;
  top: calc(clamp(-56px, -7vw, -88px) + 0px);
  opacity: .5;
}

/* ---------- CARD SYSTEM ---------- */
/* Hover lift for any card — add .card--hover to cards */
.card--hover {
  transition: transform .3s var(--ease-out, cubic-bezier(.22,1,.36,1)),
              box-shadow .3s var(--ease-out, cubic-bezier(.22,1,.36,1)),
              border-color .3s var(--ease-out, cubic-bezier(.22,1,.36,1));
}

.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(7,31,60,.13);
  border-color: var(--accent, #2FBE72);
}

/* Top accent bar for cards */
.card--accent-top {
  position: relative;
  overflow: hidden;
}

.card--accent-top::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #1e9fff 0, #41ad4a 58%, #ffd067 100%);
}

/* Card eyebrow/label */
.card__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .5rem .82rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Standard card base for inner pages */
.page-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0, #f8fbff 100%);
  box-shadow: 0 24px 52px rgba(7,31,60,.08);
}

.page-card h3 {
  margin: 0;
  color: var(--navy-700, #0A2746);
}

.page-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.66;
}

/* ---------- PAGE CTA BLOCK (dark closing section) ---------- */
.page-cta {
  background:
    radial-gradient(340px 180px at 100% 0, rgba(65,173,74,.16), rgba(65,173,74,0) 74%),
    radial-gradient(320px 180px at 0 100%, rgba(30,159,255,.14), rgba(30,159,255,0) 74%),
    linear-gradient(145deg, #07192f 0, #0c294c 100%);
}

.page-cta__panel {
  padding: clamp(30px, 4vw, 44px);
  border-radius: 32px;
  border: 1px solid rgba(10,34,58,.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-cta__copy {
  max-width: 760px;
}

.page-cta__copy .kicker {
  color: #d7eaff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}

.page-cta__copy h2 {
  margin: 14px 0 0;
  color: #fff;
  max-width: 15ch;
  letter-spacing: -.04em;
}

.page-cta__copy .lead {
  margin: 1rem 0 0;
  color: #d6e4f2;
  line-height: 1.72;
}

.page-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-cta .btn-ghost {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.page-cta .btn-ghost:hover,
.page-cta .btn-ghost:focus-visible {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.32);
}

/* ---------- INNER-PAGE KICKER (on dark bg) ---------- */
.kicker--dark {
  color: #d7eaff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}

/* Inner-page kicker (on light bg) — matches the about/contact/faq pattern */
.kicker--page {
  color: #175b97;
  background: rgba(30,159,255,.09);
  border: 1px solid rgba(30,159,255,.14);
}

/* ---------- INNER-PAGE SECTION TYPOGRAPHY ---------- */
.page-section-header h2 {
  max-width: 15ch;
  color: var(--navy-700, #0A2746);
  letter-spacing: -.04em;
}

.page-section-header .muted {
  max-width: 66ch;
  color: var(--muted);
}

/* ---------- INNER-PAGE GRIDS ---------- */
.page-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.page-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* ---------- INNER-PAGE NUMBERED STEP PATTERN ---------- */
.page-step-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #eef6ff 0, #e3f1ff 100%);
  color: #0d3b66;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
}

/* ---------- INNER-PAGE FULL BG GRADIENT ---------- */
.page-bg-gradient {
  background: linear-gradient(180deg, #f7fbff 0, #eef5fb 36%, #f8fbfd 70%, #fff 100%);
}

/* ---------- SCROLL REVEAL EXTENSIONS ---------- */
/* Extend premium.css reveal to recognize inner-page card classes */
.reveal.visible .page-card,
.reveal.visible .card--hover {
  animation: revealChild .5s var(--ease-out, cubic-bezier(.22,1,.36,1)) both;
}

.reveal.visible .page-card:nth-child(1),
.reveal.visible .card--hover:nth-child(1) { animation-delay: 0s; }
.reveal.visible .page-card:nth-child(2),
.reveal.visible .card--hover:nth-child(2) { animation-delay: .08s; }
.reveal.visible .page-card:nth-child(3),
.reveal.visible .card--hover:nth-child(3) { animation-delay: .16s; }
.reveal.visible .page-card:nth-child(4),
.reveal.visible .card--hover:nth-child(4) { animation-delay: .24s; }
.reveal.visible .page-card:nth-child(5),
.reveal.visible .card--hover:nth-child(5) { animation-delay: .32s; }
.reveal.visible .page-card:nth-child(6),
.reveal.visible .card--hover:nth-child(6) { animation-delay: .40s; }

/* ---------- MOBILE HERO RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .page-hero__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .page-hero__metrics,
  .page-grid-2,
  .page-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-hero {
    padding-top: 24px;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding-top: 18px;
    padding-bottom: 68px;
  }

  .page-hero__copy h1 {
    max-width: 12.8ch;
    font-size: clamp(2.15rem, 8.8vw, 3rem);
  }

  .page-hero__copy .lead {
    font-size: 1rem;
  }

  .page-hero__actions,
  .page-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero__actions > *,
  .page-cta__actions > * {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .page-hero__trust li {
    flex: 1 1 calc(50% - .36rem);
  }

  .page-hero__panel,
  .page-card,
  .page-cta__panel {
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 24px;
  }

  .page-grid-2,
  .page-grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- NEARBY CITIES GRID ---------- */
.city-nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.city-nearby-grid li a {
  display: block;
  padding: 14px 18px;
  border-radius: var(--radius-sm, 10px);
  border: 1px solid var(--line, #E7ECF2);
  background: #fff;
  font-weight: 700;
  color: var(--navy, #0D3B66);
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.city-nearby-grid li a:hover {
  border-color: var(--accent, #2FBE72);
  box-shadow: 0 4px 12px rgba(47,190,114,.12);
  transform: translateY(-2px);
}

/* ---------- MOBILE STICKY CTA: BODY PADDING ---------- */
/* Ensure content isn't hidden behind the fixed bottom bar */
@media (max-width: 768px) {
  body[class*="page-"] {
    padding-bottom: 72px;
  }
  /* Homepage already handled in premium.css */
  body.page-home {
    padding-bottom: 72px;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal.visible .page-card,
  .reveal.visible .card--hover {
    animation: none;
  }
  .card--hover {
    transition: none;
  }
}
