/* ==========================================================================
   Oasis Cleaning — Premium Visual Upgrade
   Version: 2026-03-27
   Loads AFTER style.css — overrides and enhances only
   ========================================================================== */

/* ---------- DESIGN TOKENS (additive) ---------- */
:root {
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --transition-base: .3s var(--ease-out);
  --shadow-card: 0 2px 8px rgba(10,39,70,.06);
  --shadow-card-hover: 0 14px 36px rgba(10,39,70,.13);
  --glass: rgba(7,18,40,.82);
  --glass-light: rgba(7,18,40,.65);
}

/* ---------- GLOBAL REFINEMENTS ---------- */
.section { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }

/* Smoother link transitions everywhere */
a { transition: color var(--transition-base), opacity var(--transition-base); }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children for card grids */
.reveal.visible .home-service-card,
.reveal.visible .pillars-v2__item,
.reveal.visible .home-signature__card,
.reveal.visible .home-compare-row,
.reveal.visible .faq-item {
  animation: revealChild .5s var(--ease-out) both;
}
.reveal.visible .home-service-card:nth-child(1),
.reveal.visible .pillars-v2__item:nth-child(1),
.reveal.visible .home-signature__card:nth-child(1),
.reveal.visible .faq-item:nth-child(1) { animation-delay: 0s; }
.reveal.visible .home-service-card:nth-child(2),
.reveal.visible .pillars-v2__item:nth-child(2),
.reveal.visible .home-signature__card:nth-child(2),
.reveal.visible .faq-item:nth-child(2) { animation-delay: .08s; }
.reveal.visible .home-service-card:nth-child(3),
.reveal.visible .pillars-v2__item:nth-child(3),
.reveal.visible .home-signature__card:nth-child(3),
.reveal.visible .faq-item:nth-child(3) { animation-delay: .16s; }
.reveal.visible .home-service-card:nth-child(4),
.reveal.visible .faq-item:nth-child(4) { animation-delay: .24s; }
.reveal.visible .home-service-card:nth-child(5) { animation-delay: .32s; }

@keyframes revealChild {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- HERO V2 ---------- */
/* Override legacy .hero-alt + .hero-home rules when v2 is active */
.hero-v2.hero-alt {
  background: none;
  padding: 0;
}
.hero-v2.hero-home {
  padding: 0;
}
.hero-v2 .hero-home__grid {
  display: contents; /* neutralise old grid — v2 uses flex */
}

.hero-v2 {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 72px;
}
.hero-v2__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-v2__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  filter: brightness(.55);
}
.hero-v2__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(7,18,40,.88) 0%, rgba(13,59,102,.55) 60%, rgba(7,18,40,.7) 100%);
}
.hero-v2__inner {
  position: relative; z-index: 1;
  max-width: 660px;
  text-align: left;
}
.hero-v2 h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: .5em;
  letter-spacing: -.02em;
}
.hero-v2__lead {
  color: rgba(255,255,255,.8);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.55;
  max-width: 540px;
}
.hero-v2__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-v2__trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.hero-v2__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
}

/* Kicker light variant (for dark backgrounds) */
.kicker--light {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
}

/* Ghost button light variant — stronger contrast on dark hero */
.btn-ghost--light {
  border: 2px solid rgba(255,255,255,.55);
  color: #fff;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn-ghost--light:hover {
  border-color: #fff;
  background: rgba(255,255,255,.16);
  color: #fff;
}

/* Larger CTA variant */
.btn--lg {
  padding: .85em 2em;
  font-size: 1.05rem;
}

/* ---------- PILLARS V2 (merged section, split layout) ---------- */
.pillars-v2__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.pillars-v2__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.pillars-v2__media img {
  width: 100%; height: auto;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.pillars-v2__content .kicker { margin-bottom: 16px; }
.pillars-v2__content h2 { margin-bottom: 28px; }
.pillars-v2__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pillars-v2__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.pillars-v2__item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.pillars-v2__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #EDF4FC;
}
.pillars-v2__icon svg { width: 22px; height: 22px; }
.pillars-v2__item h3 {
  font-size: clamp(16px, 1.6vw, 18px);
  margin-bottom: 4px;
}
.pillars-v2__item .muted {
  font-size: .925rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------- SERVICE CARDS — PREMIUM HOVER ---------- */
.home-service-card {
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.home-service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}
.home-service-card img {
  transition: transform .45s var(--ease-out);
}
.home-service-card:hover img {
  transform: scale(1.04);
}
/* Contain the image scale */
.home-service-card .home-service-card__card-link {
  overflow: hidden;
}
.home-service-card a { overflow: hidden; }

/* Service card link arrow animation */
.home-service-card__link {
  transition: gap .25s var(--ease-out);
}
.home-service-card:hover .home-service-card__link {
  gap: 8px;
}

/* Service grid: 2+3 layout for 5 cards */
.home-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.home-service-card:nth-child(1),
.home-service-card:nth-child(2) {
  grid-column: span 1;
}

/* ---------- HOW IT WORKS — TIMELINE FEEL ---------- */
.home-signature__grid {
  position: relative;
}
/* Connecting line on desktop */
@media (min-width: 769px) {
  .home-signature__grid::before {
    content: '';
    position: absolute;
    top: 26px;
    left: calc(16.66% + 12px);
    right: calc(16.66% + 12px);
    height: 2px;
    background: var(--line);
    z-index: 0;
  }
}
.home-signature__card {
  position: relative;
  z-index: 1;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.home-signature__card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

/* ---------- COMPARISON TABLE HOVER ---------- */
.home-compare-row {
  transition: background var(--transition-base);
  border-radius: 8px;
  padding: 2px 0;
}
.home-compare-row:hover {
  background: rgba(47,190,114,.06);
}
.home-compare-row:hover .home-compare-row__fix {
  color: var(--navy);
}

/* ---------- FAQ ACCORDION POLISH ---------- */
.faq-item {
  transition: border-color var(--transition-base);
}
.faq-item[open] {
  border-color: var(--accent);
}
.faq-summary {
  transition: color var(--transition-base);
  cursor: pointer;
}
.faq-summary:hover {
  color: var(--accent-600);
}
/* Smooth reveal for FAQ body */
.faq-body {
  animation: faqOpen .3s var(--ease-out);
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- FINAL CTA V2 ---------- */
.home-cta--v2 .home-cta__panel {
  text-align: center;
}
.home-cta--v2 .home-cta__content {
  max-width: 680px;
  margin: 0 auto;
}
.home-cta--v2 .home-cta__actions {
  justify-content: center;
  margin-top: 32px;
}
.home-cta__tagline {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.home-cta--v2 h2 {
  font-size: clamp(28px, 4vw, 44px);
}

/* ---------- BUTTONS — REFINED TRANSITIONS ---------- */
.btn {
  transition: all .25s var(--ease-out);
}
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.12);
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.btn-primary:hover::after {
  opacity: 1;
}
.btn-ghost {
  transition: all .25s var(--ease-out);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(13,59,102,.04);
}

/* ---------- MOBILE STICKY CTA BAR ---------- */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(10,39,70,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.08);
  transform: translateY(100%);
  transition: transform .35s var(--ease-out);
}
.mobile-sticky-cta[data-show="true"] {
  transform: translateY(0);
}
.mobile-sticky-cta a {
  flex: 1;
  text-align: center;
  padding: 13px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all .2s var(--ease-out);
}
.mobile-sticky-cta__call {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
}
.mobile-sticky-cta__call:hover,
.mobile-sticky-cta__call:active { border-color: #fff; }
.mobile-sticky-cta__quote {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid transparent;
}
.mobile-sticky-cta__quote:hover,
.mobile-sticky-cta__quote:active { background: var(--accent-600); }
@media (min-width: 769px) {
  .mobile-sticky-cta { display: none !important; }
}

/* ---------- MOBILE HERO ---------- */
@media (max-width: 768px) {
  .hero-v2 {
    min-height: 480px;
    padding-top: 80px;
    padding-bottom: 56px;
  }
  .hero-v2__inner {
    max-width: 100%;
  }
  .hero-v2 h1 {
    font-size: clamp(28px, 7.5vw, 38px);
  }
  .hero-v2 h1 br { display: none; }
  .hero-v2__actions {
    flex-direction: column;
    gap: 10px;
  }
  .hero-v2__actions .btn { width: 100%; text-align: center; }
  .hero-v2__trust {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  .hero-v2__trust li {
    font-size: .85rem;
  }

  /* Pillars: stack vertically */
  .pillars-v2__split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pillars-v2__media {
    max-height: 220px;
  }

  /* Service cards: horizontal scroll on mobile */
  .home-service-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .home-service-grid::-webkit-scrollbar { display: none; }
  .home-service-card {
    flex: 0 0 82vw;
    scroll-snap-align: start;
    max-width: none;
  }

  /* Ensure mobile body has space for sticky bar */
  .page-home { padding-bottom: 72px; }
}

/* ---------- TABLET ADJUSTMENTS ---------- */
@media (min-width: 641px) and (max-width: 1080px) {
  .home-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillars-v2__split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- SECTION SEPARATORS / RHYTHM ---------- */
/* Alternate section backgrounds for visual rhythm */
.home-pillars-v2 { background: #fff; }
.home-signature { background: var(--bg); }
.strip#home-services { background: #fff; }
.home-proof-strip { background: var(--bg); }
.home-faq { background: #fff; }

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

/* ---------- FEATURE CARDS (pricing/buyer guide) ---------- */
.home-feature-card {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.home-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* ---------- COVERAGE CARDS ---------- */
.home-coverage-card {
  transition: border-color var(--transition-base);
}
.home-coverage-card:hover {
  border-color: var(--accent);
}

/* ==========================================================================
   SERVICE HUB — PREMIUM OVERRIDES
   ========================================================================== */

/* ---------- HUB SERVICE CARDS — SMOOTHER HOVER + IMAGE SCALE ---------- */
.services-hub-service-card {
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.services-hub-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(7,31,60,.16);
  border-color: var(--accent, #2FBE72);
}
.services-hub-service-card__art img {
  transition: transform .45s var(--ease-out);
}
.services-hub-service-card:hover .services-hub-service-card__art img {
  transform: scale(1.04);
}
.services-hub-service-card__art {
  overflow: hidden;
}

/* Stagger reveal for hub service cards */
.reveal.visible .services-hub-service-card {
  animation: revealChild .5s var(--ease-out) both;
}
.reveal.visible .services-hub-service-card:nth-child(1) { animation-delay: 0s; }
.reveal.visible .services-hub-service-card:nth-child(2) { animation-delay: .07s; }
.reveal.visible .services-hub-service-card:nth-child(3) { animation-delay: .14s; }
.reveal.visible .services-hub-service-card:nth-child(4) { animation-delay: .21s; }
.reveal.visible .services-hub-service-card:nth-child(5) { animation-delay: .28s; }
.reveal.visible .services-hub-service-card:nth-child(6) { animation-delay: .35s; }
.reveal.visible .services-hub-service-card:nth-child(7) { animation-delay: .42s; }
.reveal.visible .services-hub-service-card:nth-child(8) { animation-delay: .49s; }
.reveal.visible .services-hub-service-card:nth-child(9) { animation-delay: .56s; }
.reveal.visible .services-hub-service-card:nth-child(10) { animation-delay: .63s; }

/* ---------- HUB PRIORITY CARDS — PREMIUM EASING ---------- */
.hub-priority-card {
  transition: transform .3s var(--ease-out), border-color .3s var(--ease-out), background .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.page-services .hub-priority-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.3);
  box-shadow: 0 20px 40px rgba(2,9,22,.22);
}

/* ---------- HUB COMPARE CARDS — HOVER LIFT ---------- */
.services-hub-compare-card {
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.services-hub-compare-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(7,31,60,.13);
  border-color: var(--accent, #2FBE72);
}

/* Stagger reveal for compare cards */
.reveal.visible .services-hub-compare-card {
  animation: revealChild .5s var(--ease-out) both;
}
.reveal.visible .services-hub-compare-card:nth-child(1) { animation-delay: 0s; }
.reveal.visible .services-hub-compare-card:nth-child(2) { animation-delay: .08s; }
.reveal.visible .services-hub-compare-card:nth-child(3) { animation-delay: .16s; }
.reveal.visible .services-hub-compare-card:nth-child(4) { animation-delay: .24s; }

/* ---------- HUB PROCESS CARDS — HOVER + STAGGER ---------- */
.services-hub-process__card {
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.services-hub-process__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(7,31,60,.13);
}

/* Stagger reveal for process steps */
.reveal.visible .services-hub-process__card {
  animation: revealChild .5s var(--ease-out) both;
}
.reveal.visible .services-hub-process__card:nth-child(1) { animation-delay: 0s; }
.reveal.visible .services-hub-process__card:nth-child(2) { animation-delay: .12s; }
.reveal.visible .services-hub-process__card:nth-child(3) { animation-delay: .24s; }

/* ---------- HUB COVERAGE CARDS — HOVER ACCENT BORDER ---------- */
.services-hub-coverage__card {
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.services-hub-coverage__card:hover {
  transform: translateY(-3px);
  border-color: var(--accent, #2FBE72);
  box-shadow: 0 14px 32px rgba(7,31,60,.12);
}

/* Stagger reveal for coverage cards */
.reveal.visible .services-hub-coverage__card {
  animation: revealChild .5s var(--ease-out) both;
}
.reveal.visible .services-hub-coverage__card:nth-child(1) { animation-delay: 0s; }
.reveal.visible .services-hub-coverage__card:nth-child(2) { animation-delay: .08s; }
.reveal.visible .services-hub-coverage__card:nth-child(3) { animation-delay: .16s; }

/* ---------- HUB PROOF BAND ITEMS — HOVER HIGHLIGHT ---------- */
.services-hub-proof-band__item {
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.services-hub-proof-band__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(7,31,60,.08);
}

/* Stagger reveal for proof band */
.reveal.visible .services-hub-proof-band__item {
  animation: revealChild .5s var(--ease-out) both;
}
.reveal.visible .services-hub-proof-band__item:nth-child(1) { animation-delay: 0s; }
.reveal.visible .services-hub-proof-band__item:nth-child(2) { animation-delay: .08s; }
.reveal.visible .services-hub-proof-band__item:nth-child(3) { animation-delay: .16s; }
.reveal.visible .services-hub-proof-band__item:nth-child(4) { animation-delay: .24s; }

/* ---------- HUB FEATURE CARDS — HOVER LIFT ---------- */
.services-hub-feature-card {
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.services-hub-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(7,31,60,.14);
}
.services-hub-feature-card img {
  transition: transform .45s var(--ease-out);
}
.services-hub-feature-card:hover img {
  transform: scale(1.03);
}

/* ---------- HUB PROOF METRICS — SUBTLE LIFT ---------- */
.services-hub-proof__metric {
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.services-hub-proof__metric:hover {
  transform: translateY(-2px);
}

/* ---------- HUB DIVISION PANEL — ACCENT BORDER ON HOVER ---------- */
.services-hub-division__panel {
  transition: box-shadow .3s var(--ease-out);
}
.services-hub-division__panel:hover {
  box-shadow: 0 18px 48px rgba(7,31,60,.14);
}

/* ---------- HUB SECTION RHYTHM ---------- */
.services-hub-proof-band { background: var(--bg, #f5f8fb); }
.services-hub-services { background: #fff; }
.services-hub-compare { background: var(--bg, #f5f8fb); }
.services-hub-proof { background: #fff; }
.services-hub-coverage { background: var(--bg, #f5f8fb); }
.services-hub-process { background: #fff; }
.services-hub-cta { background: var(--bg, #f5f8fb); }

/* ---------- HUB MOBILE: body padding for sticky bar ---------- */
@media (max-width: 768px) {
  .page-services { padding-bottom: 72px; }
}

/* ---------- UTILITY: REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal.visible .home-service-card,
  .reveal.visible .pillars-v2__item,
  .reveal.visible .home-signature__card,
  .reveal.visible .home-compare-row,
  .reveal.visible .faq-item,
  .reveal.visible .services-hub-service-card,
  .reveal.visible .services-hub-compare-card,
  .reveal.visible .services-hub-process__card,
  .reveal.visible .services-hub-coverage__card,
  .reveal.visible .services-hub-proof-band__item { animation: none; }
  .faq-body { animation: none; }
  .home-service-card,
  .home-service-card img,
  .home-signature__card,
  .home-feature-card,
  .home-coverage-card,
  .services-hub-service-card,
  .services-hub-service-card__art img,
  .services-hub-compare-card,
  .services-hub-process__card,
  .services-hub-coverage__card,
  .services-hub-proof-band__item,
  .services-hub-feature-card,
  .services-hub-feature-card img,
  .services-hub-proof__metric,
  .services-hub-division__panel,
  .hub-priority-card,
  .mobile-sticky-cta { transition: none; }
}
