/* ═══════════════════════════════════════════════════════════════════════════════
 * Cookie AI — Services Page Styles (v2 Editorial Cards)
 * ═══════════════════════════════════════════════════════════════════════════════
 * Editorial card layout on cream background. Featured package with badge,
 * individual service cards with hover accents.
 * ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Page Background & Scoping ───────────────────────────────────────────── */
body[data-page="services"],
body[data-page="services"] main {
  background-color: var(--bg-cream);
  color: var(--text-dark);
}

body[data-page="services"] main {
  position: relative;
  overflow: hidden;
}

/* ─── Nav Override (dark text for cream bg) ────────────────────────────────── */
body[data-page="services"] .nav__link,
body[data-page="services"] .nav__logo-text {
  color: var(--text-dark);
}

body[data-page="services"] .nav__link:hover,
body[data-page="services"] .nav__link--current {
  color: var(--copper);
}

body[data-page="services"] .nav__link::after {
  background: var(--copper);
}

body[data-page="services"] .nav__toggle-bar {
  background: var(--text-dark);
}

/* ─── Content Container Override ──────────────────────────────────────────── */
body[data-page="services"] .container--narrow {
  max-width: var(--max-width-narrow);
  padding-top: 120px;
}

/* ─── Decorative SVGs ─────────────────────────────────────────────────────── */
.services-deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: var(--opacity-deco);
}

.services-deco--top-left {
  top: 10%;
  left: -50px;
  width: 180px;
  height: 540px;
}

.services-deco--bottom-right {
  bottom: 80px;
  right: -30px;
  width: 160px;
  height: 480px;
  transform: rotate(180deg);
}

/* Keep content above decorations */
.services-hero,
.service-featured,
.service,
body[data-page="services"] .cta-closing {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════════
 * HERO — Eyebrow + Title + Subtitle
 * ═══════════════════════════════════════════════════════════════════════════════ */
.services-hero {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.services-hero__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--copper);
  margin-bottom: 12px;
}

.services-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: 400;
  color: var(--text-dark);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-heading);
  margin: 0 0 var(--space-xs) 0;
}

.services-hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-loose, 1.8);
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════════
 * FEATURED PACKAGE — Premium card with badge
 * ═══════════════════════════════════════════════════════════════════════════════ */
.service-featured {
  background-color: var(--featured-bg);
  border-left: 4px solid var(--copper);
  padding: 2rem 2.5rem;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.service-featured__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bg-cream);
  background-color: var(--copper);
  padding: 4px 12px;
  margin-bottom: 16px;
}

.service-featured__name {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 400;
  color: var(--text-dark);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-heading);
  margin: 0 0 12px 0;
}

.service-featured__body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--text-dark);
  opacity: var(--opacity-body);
  margin: 0 0 12px 0;
}

.service-featured__includes {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--text-muted);
  margin: 0 0 16px 0;
}

.service-featured__price {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.service-featured__discount {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 400;
  color: var(--copper);
}

/* ═══════════════════════════════════════════════════════════════════════════════
 * SERVICE CARDS — Individual offerings
 * ═══════════════════════════════════════════════════════════════════════════════ */
.service {
  display: block;
  padding: 2rem;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
  border-left: 3px solid transparent;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color 0.2s ease;
  cursor: pointer;
}

.service:last-of-type {
  margin-bottom: 0;
}

.service:hover {
  border-left-color: var(--copper);
}

/* Arrow — hidden by default, appears on hover, bottom-right inline with price */
.service__arrow {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  color: var(--copper);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service:hover .service__arrow {
  opacity: 1;
}

/* Mobile/tablet: arrows always visible (no hover on touch) */
@media (max-width: 768px) {
  .service__arrow {
    opacity: 1;
  }
}

/* Featured card CTA button */
.service-featured__cta {
  margin: 16px 0 0;
}

.service-featured__cta .btn {
  color: var(--copper);
  border-color: var(--copper);
}

.service-featured__cta .btn:hover {
  color: var(--text-cream);
}

.service__name {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--copper);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-heading);
  margin: 0 0 10px 0;
}

.service__body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--text-dark);
  opacity: var(--opacity-body);
  margin: 0 0 12px 0;
}

.service__price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  font-style: normal;
}

.service__cta-text {
  margin: 0;
}

.service__link {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--copper);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.service__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--copper);
  transition: width 0.3s ease;
}

.service__link:hover::after {
  width: 100%;
}

.service__link:hover {
  color: var(--copper-hover);
}

.service__link:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

/* ─── CTA Closing Override ────────────────────────────────────────────────── */
body[data-page="services"] .cta-closing {
  margin-top: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════════════════════════
 * RESPONSIVE: Mobile
 * ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  body[data-page="services"] .container--narrow {
    padding-top: 72px;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .services-hero {
    margin-bottom: var(--space-md);
  }

  .service-featured {
    padding: 1.25rem 1.5rem;
  }

  .service {
    padding: 1.25rem 1.25rem;
    margin-bottom: 16px;
  }

  .services-deco {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
 * RESPONSIVE: Tablet
 * ═══════════════════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
  body[data-page="services"] .container--narrow {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .services-deco {
    opacity: var(--opacity-deco-tablet);
  }
}
