/* ==========================================================================
   Services — page-local styles (v4)
   - Premium dark service selector
   - Entire page on #000 — NO white sections
   - Liquid-glass cards reusing the global glass primitives
   - Service grid: interactive expand-on-click (paired with services-grid.js)
   - Care plans: equal visual weight
   - FAQ: dark glass accordion
   ========================================================================== */

/* === Page-wide dark canvas ================================================ */
body.page--dark {
  background: #000 !important;
  color: #fff;
}

/* Make sure global section utility tokens still work, but force backgrounds black */
.services-grid-section,
.care-section,
.faq-section,
.services-cta,
.services-hero,
.cta-inline {
  background: #000;
  color: #fff;
  position: relative;
}

/* Override any global "story-section/ bento-section" white from global.css if reused */
:where(.story-section, .bento-section) {
  background: #000 !important;
}

/* Local layout token */
:root { --section-pad-y: clamp(36px, 5vw, 72px); }
.section-pad {
  padding-top: clamp(40px, 5vw, 80px);
  padding-bottom: clamp(40px, 5vw, 80px);
}

.services-inner {
  width: var(--content-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.services-hero {
  padding-top: clamp(36px, 5vw, 64px) !important;
  padding-bottom: clamp(28px, 4vw, 48px) !important;
}
.services-hero__kicker {
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
.services-hero__title {
  margin: 0 0 18px;
  font-weight: 900;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.06;
}
.services-hero__sub {
  margin: 0 0 24px;
  max-width: 780px;
  color: rgba(255,255,255,.78);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6;
}
.services-hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Brand gradient ink reused in hero title */
.grad-ink {
  background: linear-gradient(135deg, var(--pink), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  background-size: 200% 200%;
  animation: hue-pan 8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce){ .grad-ink{ animation: none; } }
@keyframes hue-pan {
  0%,100%{ background-position: 0% 50%; }
  50%    { background-position: 100% 50%; }
}

/* Ghost glass button on dark */
.btn-glass--ghost::after {
  background: rgba(255,255,255,.04) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.18),
    inset 0 0 4px rgba(255,255,255,.30) !important;
}
.btn-glass--ghost { color: #fff; }

/* ==========================================================================
   KICKER + SECTION TITLES (dark)
   ========================================================================== */
.kicker {
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
.services-section-title {
  margin: 0 0 clamp(22px, 3.6vw, 36px);
  font-weight: 900;
  font-size: clamp(28px, 4.8vw, 44px);
  letter-spacing: -0.005em;
  color: #fff;
}

/* ==========================================================================
   SERVICE GRID — interactive
   ========================================================================== */
.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 20px);
}
@media (max-width: 820px){
  .service-grid { grid-template-columns: 1fr; }
}

.service-card {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  transition: flex .35s cubic-bezier(.22,.61,.36,1),
              transform .25s cubic-bezier(.22,.61,.36,1),
              opacity .25s ease, filter .25s ease;
  cursor: pointer;
}

.service-card .glass {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: transparent;
}

/* Dark-friendly glass tint on this page */
.service-card .glass__overlay {
  background: rgba(20,20,24,.45);
}
.service-card.is-active .glass__overlay {
  background: linear-gradient(135deg, rgba(244,143,177,.18), rgba(244,196,48,.18));
}
.service-card .glass__specular {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 0 4px rgba(255,255,255,.18);
}

.service-card__content {
  padding: clamp(22px, 2.6vw, 32px);
  display: grid;
  gap: 10px;
  color: #fff;
  height: 100%;
  align-content: start;
}

.service-card__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 2px;
}
.service-card__num {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.45);
}
.service-card__head h3 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.service-card__price {
  margin: 0;
  font-size: 16px;
  color: rgba(255,255,255,.7);
}
.service-card__price strong {
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.service-card__price--bespoke {
  color: rgba(255,255,255,.85);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 13px;
}

.service-card__lead {
  margin: 6px 0 4px;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
}

.service-card__bullets {
  margin: 8px 0 0;
  padding-left: 1.1em;
  /* Collapsed by default — last 3 bullets hidden, revealed when active */
  --service-bullets-shown: 3;
}
.service-card__bullets li {
  margin: .4em 0;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}
.service-card__bullets li:nth-child(n+4) {
  display: none;
}
.service-card.is-active .service-card__bullets li:nth-child(n+4) {
  display: list-item;
  animation: bulletReveal .3s ease both;
}
@keyframes bulletReveal {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

.service-card__cta-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  /* Revealed only when active */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s ease, opacity .25s ease, margin-top .35s ease;
}
.service-card.is-active .service-card__cta-row {
  max-height: 200px;
  opacity: 1;
}

/* Active state — promote card */
.service-card.is-active {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(244,143,177,.18);
}

/* When grid has any active card, others fade */
.service-grid.has-active .service-card:not(.is-active) {
  opacity: .55;
  filter: saturate(.85);
}

/* Hover affordance (when nothing is active yet) */
.service-grid:not(.has-active) .service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0,0,0,.30);
}

/* Custom card subtle gradient hint */
.service-card--custom .glass__overlay {
  background: linear-gradient(135deg, rgba(20,20,24,.45), rgba(244,143,177,.06));
}

/* Pricing note */
.services-pricing-note {
  margin: clamp(20px, 3vw, 30px) 0 0;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,.55);
  font-style: italic;
  letter-spacing: .01em;
}

/* ==========================================================================
   INLINE CTA
   ========================================================================== */
.cta-inline {
  padding-top: clamp(20px, 2.4vw, 28px) !important;
  padding-bottom: clamp(20px, 2.4vw, 28px) !important;
}
.cta-inline .btn--full {
  display: flex;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  justify-content: center;
}

/* ==========================================================================
   CARE PLANS — equal weight
   ========================================================================== */
.plans-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 22px);
}
@media (max-width:1024px) { .plans-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:760px)  { .plans-grid { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: transparent;
  display: block;
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s;
}
.plan .glass__overlay { background: rgba(20,20,24,.50); }
.plan .glass__specular {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 0 4px rgba(255,255,255,.18);
}

.plan__content {
  padding: clamp(22px, 2.8vw, 30px) clamp(22px, 2.6vw, 28px) clamp(72px, 8vw, 84px);
  display: grid;
  align-content: start;
  gap: 12px;
  color: #fff;
  height: 100%;
}
.plan h3 {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 900;
  letter-spacing: -0.005em;
}
.plan-lead {
  margin: 0 0 6px;
  color: rgba(255,255,255,.74);
  line-height: 1.5;
}
.plan-list {
  margin: 0;
  padding-left: 1.1em;
  list-style: disc;
}
.plan-list li {
  margin: .4em 0;
  color: rgba(255,255,255,.86);
  line-height: 1.5;
}

.plan--focus .glass__overlay {
  background: linear-gradient(135deg, rgba(244,143,177,.18), rgba(244,196,48,.18));
}
.plan--focus { box-shadow: 0 16px 40px rgba(244,143,177,.18); }

.plan__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, rgba(244,143,177,.95), rgba(244,196,48,.95));
  box-shadow: 0 6px 14px rgba(0,0,0,.30), inset 0 0 0 1px rgba(255,255,255,.25);
}

/* Price pill (reuse btn-glass-grad gradient + override absolute placement) */
.plan-price-pill.btn-glass-grad {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  line-height: 1;
  font-weight: 800;
  color: #fff !important;
  pointer-events: none;
  z-index: 4;
  box-shadow:
    0 8px 18px rgba(0,0,0,.25),
    inset 0 0 0 1px rgba(255,255,255,.30);
}
.plan-price-pill.btn-glass-grad strong { margin-right: 4px; font-weight: 900; }

/* ==========================================================================
   FAQ — dark glass accordion
   ========================================================================== */
.faq-acc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.faq-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s cubic-bezier(.22,.61,.36,1);
}
.faq-item .glass__overlay { background: rgba(20,20,24,.45); }
.faq-item .glass__specular {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 0 4px rgba(255,255,255,.16);
}
.faq-item:hover { box-shadow: 0 16px 36px rgba(0,0,0,.25); }

.faq-head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 17px);
  text-align: left;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.faq-head .chev {
  flex-shrink: 0;
  transition: transform .25s ease;
  color: rgba(255,255,255,.7);
}
.faq-head[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--gold); }

.faq-panel { display: block; }
.faq-panel[hidden] { display: none; }
.faq-body {
  padding: 0 22px 20px;
  color: rgba(255,255,255,.80);
  line-height: 1.6;
  font-size: clamp(14px, 1.5vw, 16px);
  max-width: 80ch;
}

/* Active FAQ item gets a subtle gradient border feel */
.faq-item:has(.faq-head[aria-expanded="true"]) .glass__overlay {
  background: linear-gradient(135deg, rgba(244,143,177,.10), rgba(244,196,48,.10));
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.services-cta {
  padding-top: clamp(28px, 3.4vw, 44px) !important;
  padding-bottom: clamp(48px, 6vw, 80px) !important;
  text-align: left;
}
.services-cta__title {
  margin: 0 0 14px;
  font-weight: 900;
  font-size: clamp(28px, 4.8vw, 44px);
  color: #fff;
  letter-spacing: -0.005em;
}
.services-cta__lead {
  margin: 0 0 22px;
  color: rgba(255,255,255,.78);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 720px;
  line-height: 1.6;
}

/* ==========================================================================
   Reveal + reduced motion + small-screen perf
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media (max-width: 480px) {
  .glass__filter, .sp-header__shell::before { filter: none; }
}

/* Anchor offset for fixed header */
#services, #care, #faq, #cta { scroll-margin-top: 96px; }

/* Reset any accidental section borders */
section, .services-hero, .services-grid-section, .care-section, .faq-section, .services-cta {
  border: 0 !important;
}
