/* ============================================================
   Amazon Services — page.css
   Extends ../style.css — shared tokens and components defined there
   line-height for headings: Inter (cap_height+descender)/UPM + 0.20 buffer = 1.15
   ============================================================ */

/* ── Service page hero ────────────────────────────────────── */
.svc-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  padding-top: 4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.svc-hero-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.svc-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}

.svc-hero-h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-size: clamp(2rem, min(4.5vw, 8svh), 3.5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.15;
  margin: 0.375rem 0 0.5rem;
  max-width: 1060px;
}

.svc-hero-tag {
  display: block;
  font-size: clamp(1.125rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 0.3em;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.42) 20%, rgba(192, 208, 255, 0.42) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.svc-hero-sub {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 1.25rem;
}

.svc-hero-sub a {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  text-decoration: none;
}

.svc-hero-sub a:hover {
  text-decoration: underline;
}


/* ── Breadcrumb ─────────────────────────────────────────────── */
.svc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
}

.svc-bc-home {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s;
}

.svc-bc-home:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.svc-bc-current {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.875rem;
  background: var(--accent);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  white-space: nowrap;
}

.svc-bc-arrow {
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.8;
}


/* ── Hero price block ─────────────────────────────────────── */
.hero-price-block {
  margin: 0.25rem 0 0.875rem;
}

.hero-price-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}


/* ── Hero image column ────────────────────────────────────── */
.hero-example-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  align-self: center;
}

.hero-example-img img {
  width: 100%;
  height: auto;
  display: block;
}


/* ── Active nav link ───────────────────────────────────────── */
.nav-dropdown a.nav-active {
  color: var(--accent);
}


/* ── Q&A / Key Takeaways ──────────────────────────────────── */
.qa-section {
  background: var(--surface2);
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.qa-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 2rem;
}

.qa-question {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 0.875rem;
}

.qa-answer {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}


/* ── Services overview cards ──────────────────────────────── */
.uc-section {
  background: var(--surface);
}

.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.uc-card {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 2rem;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.uc-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: var(--bg);
}

.uc-label {
  display: block;
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.uc-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 0.875rem;
}

.uc-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
}

.uc-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  letter-spacing: 0.01em;
}


/* ── Amazon service detail sections ──────────────────────── */
.amz-section {
  background: var(--surface2);
}

.amz-section--alt {
  background: var(--surface);
}

.amz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.amz-head {
  position: sticky;
  top: 5rem;
}

.amz-headline {
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.375rem 0 1rem;
}

.amz-intro {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.amz-cta {
  display: inline-block;
}

.amz-delivers {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.amz-deliver-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, padding-left 0.15s;
}

.amz-deliver-item:hover {
  background: rgba(59, 130, 246, 0.025);
  padding-left: 0.75rem;
}

.amz-deliver-num {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.amz-deliver-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.amz-deliver-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}


/* ── Who it is for ────────────────────────────────────────── */
.fit-section {
  background: var(--bg);
}

.fit-head {
  margin-bottom: 3.5rem;
  max-width: 640px;
}


/* ── Process steps ─────────────────────────────────────────── */
.steps-section {
  background: var(--surface2);
}

.steps-head {
  margin-bottom: 3rem;
  max-width: 640px;
}

.steps-list {
  border-top: 1px solid var(--border);
}

.step-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, padding-left 0.2s, padding-right 0.2s;
}

.step-row:hover {
  background: rgba(59, 130, 246, 0.03);
  padding-left: 1rem;
  padding-right: 1rem;
}

.step-left {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

.step-num {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  flex-shrink: 0;
}

.step-name {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.85;
  padding-top: 0.25rem;
}


/* ── Related services ─────────────────────────────────────── */
.related-section {
  background: var(--surface);
}

.related-head {
  margin-bottom: 3rem;
  max-width: 640px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.related-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: var(--bg);
}

.related-tag {
  display: block;
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.625rem;
}

.related-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.625rem;
}

.related-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.related-arrow {
  display: inline-block;
  margin-top: 1.125rem;
  font-size: 0.875rem;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  font-weight: 600;
}


/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .svc-hero-inner {
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
  }

  .amz-grid {
    gap: 3rem;
  }

  .uc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .qa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .amz-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .amz-head {
    position: static;
  }

  .step-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .step-left {
    gap: 0.75rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .svc-hero-inner {
    display: block;
  }

  .hero-example-img {
    display: none;
  }
}

@media (max-width: 640px) {
  .uc-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .qa-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .step-row {
    padding: 1.75rem 0;
  }
}
