/* ==========================================================================
   Pages: Service parent (Think/Create/Make) & area child pages
   ========================================================================== */

/* ── Service hero — full viewport, image + gradient, content pinned to bottom */
.service-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.service-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.service-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.20) 55%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

/* Content column pinned to the bottom */
.service-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--header-h) + 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Row: eyebrow tag + CTA button */
.service-hero__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Eyebrow pill — e.g. "Think". Unified glass tag size (Figma 3190:9242): 46px
   tall, 24px sides, 20px corners, 20px/regular text. Keep in sync with
   .site-hero__tag and .case-hero-x__tag. Glass via .glass-card + --fx-filter. */
.service-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  font-size: var(--body-md);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

/* Headline wrapper — no visible container, just constrains width */
.service-hero__headline-wrap {
  max-width: 66%;            /* heading ~2/3 of the hero width, not full-bleed */
}

/* H1 headline — using title-lg token */
.service-hero__title {
  font-size: var(--title-lg);
  font-weight: 400;
  line-height: var(--title-lg-lh);
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin: 0;
  margin-bottom: 0.75rem;
}

/* Tagline — subtitle under headline */
.service-hero__tagline {
  font-size: var(--body-lg);
  font-weight: 400;
  line-height: var(--body-lg-lh);
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ── Area page content ──────────────────────────────────────────────────── */
.area-description {
  font-size: var(--body-lg);
  line-height: var(--body-lg-lh);
  color: var(--text-body);
  margin-bottom: 60px;
}

.area-sections {
  display: grid;
  gap: 48px;
  margin-bottom: 60px;
}

.area-section {
  display: grid;
  gap: 12px;
}

.area-section__title {
  font-size: var(--title-sm);
  font-weight: 400;
  line-height: var(--title-sm-lh);
  color: var(--text-title);
  margin: 0;
}

.area-section__body {
  font-size: var(--body-md);
  line-height: var(--body-md-lh);
  color: var(--text-body);
}

/* ── Area cards — horizontal scroll ──────────────────────────────────────── */
.area-cards-section {
  background-color: var(--bg-primary);
  padding-block: 9.375rem; /* 150px */
  position: relative;
  overflow: hidden;          /* clip SVG glow bleed vertically */
}

/* Decorative background curve SVG */
.area-cards__deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Scrollable track — first card aligns with container left edge, cards overflow right */
.area-cards-track {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.25rem;              /* 20px between cards */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(var(--margin-primary), calc((100vw - var(--container-max)) / 2 + var(--margin-primary)));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* First card starts at same x as container content on any viewport width */
  padding-left:  max(var(--margin-primary), calc((100vw - var(--container-max)) / 2 + var(--margin-primary)));
  padding-right: max(var(--margin-primary), calc((100vw - var(--container-max)) / 2 + var(--margin-primary)));
}
.area-cards-track::-webkit-scrollbar { display: none; }

/* ── Sub-services horizontal scroll track ────────────────────────────────── */
.sub-services {
  background-color: var(--bg-primary);
  padding-block: 0 80px;
  overflow: hidden;
}
.sub-services__label {
  font-size: var(--body-sm);
  color: var(--text-muted);
  margin-bottom: 24px;
}
.sub-services__track {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sub-services__track::-webkit-scrollbar { display: none; }

@media (max-width: 767px) {
  .service-hero__headline-wrap { max-width: 100%; }
}

/* Mobile: cap oversized section padding to the 60px base rhythm. */
@media (max-width: 767px) {
  .area-cards-section { padding-block: 60px; }
  .sub-services { padding-block: 0 60px; }
}
