/* ==========================================================================
   PREMIUM POLISH LAYER — Triple N Cleaning
   Feel model: nintendo.com store — restraint, tactile motion, quiet depth.
   Adds refinement only. No layout, color-scheme, or content changes.
   ========================================================================== */

/* ---------- Motion tokens ---------- */
:root {
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-fast: 0.18s;
  --dur-med: 0.32s;
  --dur-slow: 0.6s;
  --ring: 0 0 0 4px rgba(20, 184, 166, 0.16);
  --shadow-sm: 0 1px 2px rgba(13,27,42,.05), 0 2px 10px rgba(13,27,42,.06);
  --shadow-md: 0 2px 4px rgba(13,27,42,.04), 0 14px 34px rgba(13,27,42,.11);
  --shadow-lift: 0 14px 30px -10px rgba(13,27,42,.30);
}

/* ---------- One easing curve everywhere (Nintendo's secret: consistency) ---------- */
a, button, .btn-primary, .btn-secondary, .btn-book, .btn-book-outline, .btn-submit,
.btn-review-submit, .calc-book-btn, .calc-chip, .calc-step-btn, .cv-btn, .cv-play,
.nav-cta, .mobile-cta, .faq-cat-btn, .cookie-btn, .chat-quick-btn, .area-pill,
.faq-question, .service-card, .why-card, .review-card, .ba-card, .form-card,
.lr-form-card, .lr-info-card, input, select, textarea, .theme-toggle, .hamburger {
  transition-timing-function: var(--ease-out);
}

/* ---------- Focus states you can see (keyboard users get the premium feel too) ---------- */
:focus { outline: none; }
:focus-visible {
  box-shadow: var(--ring);
  border-radius: 10px;
  outline: 2px solid transparent;
}

/* ---------- Typography rhythm ---------- */
body {
  letter-spacing: 0.002em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, .section-title { letter-spacing: -0.015em; text-wrap: balance; }
.section-title { line-height: 1.12; }
p, .section-sub, .service-desc, .why-desc, .review-text, .hero-sub { text-wrap: pretty; }
::selection { background: rgba(245,185,66,.35); }

/* ---------- Primary CTAs: tactile press + light sweep ---------- */
.btn-primary, .btn-book, .calc-book-btn, .cv-btn, .btn-submit, .btn-review-submit, .nav-cta {
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              filter var(--dur-fast) ease;
  will-change: transform;
}
.btn-primary::after, .btn-book::after, .calc-book-btn::after, .cv-btn::after,
.btn-submit::after, .btn-review-submit::after, .nav-cta::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.32) 50%, transparent 64%);
  transform: translateX(-140%) skewX(-8deg);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}
.btn-primary:hover, .btn-book:hover, .calc-book-btn:hover, .cv-btn:hover,
.btn-submit:hover, .btn-review-submit:hover, .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.btn-primary:hover::after, .btn-book:hover::after, .calc-book-btn:hover::after,
.cv-btn:hover::after, .btn-submit:hover::after, .btn-review-submit:hover::after,
.nav-cta:hover::after { transform: translateX(140%) skewX(-8deg); }
.btn-primary:active, .btn-book:active, .calc-book-btn:active, .cv-btn:active,
.btn-submit:active, .btn-review-submit:active, .nav-cta:active {
  transform: translateY(0) scale(0.975);
  transition-duration: 0.08s;
}

/* ---------- Chips: springy selection ---------- */
.calc-chip { transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, box-shadow var(--dur-fast) ease; }
.calc-chip:hover { transform: translateY(-1px); }
.calc-chip:active { transform: scale(0.95); }

/* ---------- Cards: quiet depth on hover ---------- */
.service-card, .why-card, .review-card, .ba-card, .form-card, .lr-form-card, .lr-info-card {
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
@media (hover: hover) {
  .service-card:hover, .why-card:hover, .review-card:hover, .ba-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
}

/* Gallery grid layout */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.ba-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.ba-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.ba-card:hover img {
  transform: scale(1.03);
}
.ba-card figcaption {
  padding: 14px 18px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray500);
  text-align: center;
  border-top: 1px solid #eee;
}
.ba-card.ba-cta-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: #fff;
  text-align: left;
  grid-column: 1 / -1;
}
.ba-card.ba-cta-card figcaption {
  border-top-color: rgba(255,255,255,.1);
}
.ba-card.ba-cta-card .ba-cta-title {
  display: block;
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.ba-card.ba-cta-card .ba-cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 52px;
  min-width: 280px;
  text-align: center;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .2s var(--ease-out);
}
.ba-card.ba-cta-card:hover .ba-cta-btn {
  transform: scale(1.04);
}

@media (max-width: 600px) {
  .ba-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Gallery photos: slow Ken Burns on hover */
.ba-card img { transition: transform var(--dur-slow) var(--ease-out); }
.ba-card:hover img { transform: scale(1.03); }

/* ---------- Nav links: gold underline draws in ---------- */
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -4px;
  height: 2px; border-radius: 2px;
  background: var(--gold);
  transition: right var(--dur-med) var(--ease-out);
}
.nav-links a:hover::after { right: 0; }

/* ---------- FAQ rows: soft hover tint ---------- */
.faq-question { transition: background-color var(--dur-fast) ease; }
.faq-question:hover { background: rgba(26,158,143,.05); }

/* ---------- Forms: teal focus ring, everywhere ---------- */
input, select, textarea {
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal2);
  box-shadow: var(--ring);
}

/* ---------- Scroll progress: buttery ---------- */
.scroll-progress { transition: width 0.12s linear; }

/* ---------- Theme switch: fade instead of snap ---------- */
body, section, footer, nav {
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out);
}

/* ---------- Reveal animations: longer, softer tail ---------- */
.animate-up { transition-timing-function: var(--ease-out) !important; }

/* ---------- Scrollbar: thin, branded (WebKit) ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #c3d0da;
  border-radius: 8px;
  border: 2px solid var(--gray50, #f8fafb);
}
::-webkit-scrollbar-thumb:hover { background: var(--gray300, #c8d3dc); }

/* ---------- Accessibility: respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   MOBILE LAYERING — one clean bottom bar (the native sticky CTA),
   utilities lifted above it, consent floats, zero overlap pileups.
   Site's mobile breakpoint is 760px — aligned.
   ========================================================================== */
@media (max-width: 760px) {
  /* lift utility bubbles above the sticky CTA bar (bar ≈ 70px + safe area) */
  .back-to-top { bottom: calc(70px + env(safe-area-inset-bottom, 0px) + 14px); left: 14px; }
  .cookie-bar { bottom: calc(70px + env(safe-area-inset-bottom, 0px) + 14px); }
  /* reserve space so the footer's last row is never hidden under the bar */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  /* roomier tap targets */
  .nav-links a, .faq-question, .area-pill { min-height: 44px; }
  /* the native bar is THE bar */
  .mobile-sticky-cta { z-index: 9998; }
  input, select, textarea { font-size: 16px !important; }
  .hamburger { width: 44px; height: 44px; }
  .calc-chip { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .calc-step-btn { width: 44px; height: 44px; font-size: 1.3rem; }
  .faq-cat-btn, .cookie-btn, .chat-quick-btn { min-height: 44px; }
  .btn-secondary[href^="tel"], a[href^="tel:"].phone-link, .cta-primary[href^="tel"] {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  a[href^="tel:"], a[href^="tel"] {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .footer-links a, .footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ==========================================================================
   ICON SYSTEM — consistent stroke set (replaces emoji)
   ========================================================================== */
/* baseline: any unsized 24-grid svg scales to text (inline icons, york page) */
svg[viewBox="0 0 24 24"]:not([width]) { width: 1em; height: 1em; vertical-align: -0.14em; }
.service-icon svg, .why-icon svg, .info-icon svg { stroke-width: 2; }
/* icon tiles */
.service-icon svg { width: 26px; height: 26px; color: var(--teal); }
.why-icon svg { width: 28px; height: 28px; color: var(--teal); }
.info-icon svg { width: 20px; height: 20px; color: var(--teal); }
.cookie-icon svg { width: 26px; height: 26px; color: var(--gold); display: block; }
/* inline contexts */
.form-note svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-secondary svg { width: 16px; height: 16px; }
.footer-links a svg { width: 14px; height: 14px; opacity: .85; }

/* ---------- Button hardening: numbers never wrap, icons never squish ---------- */
.btn-primary, .btn-secondary, .cv-btn, .calc-book-btn, .nav-cta, .btn-submit, .btn-review-submit {
  white-space: nowrap;
  align-items: center;
  justify-content: center;
}
.btn-secondary svg, .btn-primary svg, .cv-btn svg, .btn-submit svg, .nav-cta svg { flex-shrink: 0; }
@media (max-width: 400px) {
  .btn-primary, .btn-secondary { padding-left: 26px; padding-right: 26px; font-size: .95rem; }
}


/* ---------- Gallery sits below hanging service cards ---------- */
.services {
  padding-bottom: 40px !important;
}
.before-after {
  padding-top: 96px !important;
  padding-bottom: 88px !important;
}
.before-after .ba-grid {
  margin-top: 40px !important;
}


/* ==========================================================================
   2026 RESTRAINT — editorial navy / gold. Words unchanged.
   No grid, no mesh motion, no capsules, no cookie card over the quote.
   ========================================================================== */

header.hero::before {
  animation: none !important;
  transform: none !important;
  opacity: 1;
  background:
    radial-gradient(ellipse 62% 38% at 50% -6%, rgba(212,175,55,.14), transparent 62%) !important;
}
header.hero::after { display: none !important; }

.section-title,
.nav-logo,
.service-name,
header.hero .stat-num,
.calc-total-price {
  font-weight: 500;
  letter-spacing: -0.03em;
}
header.hero h1 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; }
header.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: #e4d2a2;
}
.hero-sub { color: rgba(255,255,255,.58); font-weight: 400; max-width: 34rem; }

header.hero .hero-stats { gap: 0; }
header.hero .stat { padding: 0 36px; border-left: 1px solid rgba(212,175,55,.28); }
header.hero .stat:first-child { border-left: none; }
header.hero .stat-num span { color: #e4d2a2; }
header.hero .stat-label {
  letter-spacing: .18em;
  font-size: .62rem;
  font-weight: 500;
  color: rgba(255,255,255,.42);
}

header.hero .hero-scroll { display: none !important; }

.nav-logo span { color: #d4af37; }
.nav-links a {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
nav { border-bottom-color: rgba(212,175,55,.22); }

.availability-dot {
  width: 16px;
  height: 1px;
  border-radius: 0;
  box-shadow: none;
  background: #d4af37;
}

.btn-primary, .btn-secondary, .btn-book, .btn-book-outline, .btn-submit,
.btn-review-submit, .calc-book-btn, .cv-btn, .nav-cta, .mobile-cta,
.cookie-btn, .ba-cta-btn, .faq-cat-btn, .service-badge, .msc-btn,
.cta-primary, .cta-secondary {
  border-radius: 2px !important;
  box-shadow: none !important;
}
.btn-primary, .btn-book, .calc-book-btn, .cv-btn, .nav-cta, .cookie-btn,
.ba-cta-btn, .btn-submit, .btn-review-submit, .msc-book, .cta-primary {
  background: #d4af37 !important;
  color: #0d1b2a !important;
  letter-spacing: .03em;
  font-weight: 600 !important;
}
.btn-primary:hover, .btn-book:hover, .nav-cta:hover, .calc-book-btn:hover,
.cv-btn:hover, .cookie-btn:hover, .ba-cta-btn:hover, .msc-book:hover,
.cta-primary:hover, .btn-submit:hover, .btn-review-submit:hover {
  background: #e4c56a !important;
  color: #0d1b2a !important;
  transform: none !important;
  box-shadow: none !important;
}
.btn-primary::after, .btn-book::after, .calc-book-btn::after, .cv-btn::after,
.btn-submit::after, .btn-review-submit::after, .nav-cta::after { display: none !important; }

.btn-secondary, .cta-secondary {
  border-color: rgba(255,255,255,.32) !important;
  background: transparent !important;
  color: #fff !important;
}
.btn-secondary:hover, .cta-secondary:hover {
  transform: none !important;
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(212,175,55,.7) !important;
}
.book-now-btn, .book-now-btn:hover {
  background: #d4af37 !important;
  color: #0d1b2a !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  transform: none !important;
}
/* Hero pair: metal gold on Text Us, hairline quote. Effects stay on this cluster. */
header.hero .hero-btns a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .32s cubic-bezier(.25,1,.5,1), box-shadow .32s cubic-bezier(.25,1,.5,1), background .32s ease, border-color .32s ease, color .32s ease !important;
}
header.hero .btn-primary,
header.hero .btn-secondary,
header.hero .btn-primary:hover,
header.hero .btn-secondary:hover {
  background: linear-gradient(180deg, #f0d78a 0%, #d4af37 46%, #b8922a 100%) !important;
  color: #0d1b2a !important;
  border: 1px solid #c9a24a !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 12px 26px -16px rgba(212,175,55,.85) !important;
}
header.hero .btn-primary::after,
header.hero .btn-secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.42) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform .7s cubic-bezier(.25,1,.5,1);
  pointer-events: none;
  display: block !important;
}
header.hero .btn-primary:hover,
header.hero .btn-secondary:hover {
  background: linear-gradient(180deg, #f6e2a4 0%, #e0bc4e 46%, #c49a32 100%) !important;
  color: #0d1b2a !important;
  border-color: #c9a24a !important;
  transform: translateY(-1px) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 18px 32px -14px rgba(212,175,55,.7) !important;
}
header.hero .btn-primary:hover::after,
header.hero .btn-secondary:hover::after { transform: translateX(130%); }
header.hero .hero-btns a:active {
  transform: translateY(0) scale(.985) !important;
  transition-duration: .08s !important;
}
.msc-call { border-radius: 2px !important; background: #0d1b2a !important; color: #fff !important; }

.section-label {
  color: #8a7340;
  letter-spacing: .22em;
  font-weight: 500;
  font-size: .68rem;
}
.service-card, .why-card, .review-card, .form-card, .lr-form-card, .ba-card {
  border-radius: 2px !important;
}
.service-card::before { display: none; }
.service-card:hover, .why-card:hover, .review-card:hover, .ba-card:hover {
  transform: none !important;
}
.service-card:hover, .why-card:hover { border-color: #d4af37; }
.service-icon, .why-icon {
  border-radius: 2px !important;
  background: transparent !important;
  border: 1px solid rgba(13,27,42,.12);
  box-shadow: none;
}
.service-card.featured { border-color: rgba(212,175,55,.5); }
.service-card.featured .service-price,
.service-card.featured .service-icon { color: #e4d2a2; border-color: rgba(212,175,55,.35); }
.service-badge {
  background: transparent !important;
  color: #d4af37 !important;
  border: 1px solid rgba(212,175,55,.55);
  letter-spacing: .16em;
  border-radius: 0 !important;
  padding: 4px 10px;
}
.service-price { font-weight: 500; letter-spacing: -0.03em; }

.trust-bar {
  background: #0a1520;
  border-top: 1px solid rgba(212,175,55,.22);
  border-bottom: 1px solid rgba(212,175,55,.22);
  padding: 18px 24px;
}
.trust-track {
  animation: none !important;
  transform: none !important;
  flex-wrap: wrap;
  justify-content: center;
  white-space: normal;
  gap: 14px 36px;
}
.trust-track .trust-item:nth-child(n+7) { display: none; }
.trust-item {
  letter-spacing: .1em;
  font-size: .68rem;
  text-transform: uppercase;
  font-weight: 500;
}
.trust-item svg { color: #d4af37; }

.area-pill, .faq-cat-btn { border-radius: 2px !important; }
.back-to-top { border-radius: 2px; }

.cookie-icon { display: none; }
.cookie-bar {
  top: 68px;
  bottom: auto !important;
  left: 0;
  right: 0;
  max-width: none;
  margin: 0;
  border-radius: 0 !important;
  border: none;
  border-bottom: 1px solid rgba(212,175,55,.4);
  box-shadow: none;
  padding: 10px 28px;
  transform: translateY(-160%);
  z-index: 101;
  background: #0d1b2a;
}
.cookie-bar.show { transform: translateY(0); }
.cookie-text { font-size: .78rem; letter-spacing: .01em; text-align: left; }
.cookie-btn { padding: 8px 16px; min-height: 36px; }

@media (max-width: 760px) {
  .cookie-bar {
    top: 68px;
    bottom: auto !important;
    flex-direction: row;
    text-align: left;
    gap: 12px;
    padding: 10px 16px;
  }
  header.hero .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  header.hero .stat { border-left: none; padding: 0 4px; }
  header.hero .stat-num { font-size: 1.35rem; }
  header.hero .stat-label { font-size: .56rem; letter-spacing: .08em; }
  .cookie-btn { min-height: 44px; }
  .nav-links a { text-transform: none; letter-spacing: .02em; font-size: .95rem; }
  .btn-primary, .btn-secondary, .msc-btn, .nav-cta { min-height: 44px; }
}

body.dark-mode .service-icon,
body.dark-mode .why-icon { border-color: rgba(255,255,255,.14); }
