/* ═══════════════════════════════════════════════════════════
   SHARED SUBPAGE STYLES — pages.css
   Consistent layout, typography, and components for all subpages.
   ═══════════════════════════════════════════════════════════ */

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero {
  padding: clamp(2rem,5vh,3rem) var(--gutter) clamp(1.5rem,3vh,2rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(245,200,66,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(17,24,39,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245,200,66,0.3);
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: var(--padding-sm) var(--padding-md);
  border-radius: 30px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(245,200,66,0.15);
  position: relative;
  z-index: 2;
}
.page-hero .badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  animation: heroPulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(245,200,66,0.6);
}
@keyframes heroPulse {
  0%,100% { opacity:1; transform:scale(1) }
  50% { opacity:0.4; transform:scale(0.9) }
}
.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: normal;
  background: linear-gradient(135deg, #f0ebe0 0%, #d4cfc4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
}
.page-hero .hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.9;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ── Section Layout ───────────────────────────────────────── */
.page-section {
  padding: clamp(3rem,6vh,5rem) var(--gutter);
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}
.page-section--wide {
  max-width: none;
  padding: clamp(3rem,6vh,5rem) 40px;
}
.page-section--alt {
  background: linear-gradient(145deg, rgba(14,20,32,0.95) 0%, rgba(22,30,50,0.9) 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  max-width: none;
  padding: clamp(3rem,6vh,5rem) 40px;
}
.page-section--alt > .section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Section Header ───────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header--left {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.section-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  background: linear-gradient(135deg, rgba(245,200,66,0.12) 0%, rgba(245,200,66,0.05) 100%);
  padding: var(--padding-sm) var(--padding-md);
  border-radius: 10px;
  border: 1px solid rgba(245,200,66,0.2);
  white-space: nowrap;
}
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(245,200,66,0.3), transparent);
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: normal;
  color: var(--text-strong);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* ── Card Grid ────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}
.card-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Card ─────────────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: var(--padding-xl);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), rgba(245,200,66,0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  border-color: rgba(245,200,66,0.2);
}
.card:hover::before {
  opacity: 1;
}
.card-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(245,200,66,0.15), rgba(245,200,66,0.05));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.card-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Stat Cards (for metrics) ─────────────────────────────── */
.stat-card {
  text-align: center;
  padding: var(--padding-xl);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
}
.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── FAQ Accordion ────────────────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(255,255,255,0.12);
}
.faq-item.active {
  border-color: rgba(245,200,66,0.25);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  user-select: none;
}
.faq-question:hover {
  background: rgba(245,200,66,0.04);
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--yellow);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s ease;
}
.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 1.5rem 1.5rem;
}
.faq-answer p {
  color: var(--text);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ── Page CTA ─────────────────────────────────────────────── */
.page-cta {
  padding: clamp(3rem,8vh,5rem) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,200,66,0.06) 0%, transparent 70%);
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.page-cta h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--text-strong);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}
.page-cta p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 2;
}
.page-cta .cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* ── Step Pills (3-step overview) ─────────────────────────── */
.step-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.step-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.step-num {
  width: 24px; height: 24px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-arrow {
  color: var(--yellow);
  font-size: 1.2rem;
  margin: 0 0.5rem;
}

/* ── Tags ─────────────────────────────────────────────────── */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.tag {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s ease;
}
.tag:hover {
  border-color: rgba(245,200,66,0.3);
  background: rgba(245,200,66,0.06);
  color: var(--yellow);
}

/* ── Contact Box ──────────────────────────────────────────── */
.contact-box {
  background: linear-gradient(135deg, rgba(245,200,66,0.1), rgba(245,200,66,0.04));
  border: 1px solid rgba(245,200,66,0.2);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  max-width: 600px;
  margin: 3rem auto 0;
}
.contact-box h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--text-strong);
  margin-bottom: 0.75rem;
}
.contact-box p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.contact-box a.btn-primary {
  display: inline-flex;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-hero {
    padding: 3rem 1rem 2rem;
  }
  .page-hero h1 {
    font-size: 2rem;
  }
  .page-section,
  .page-section--wide,
  .page-section--alt {
    padding: 2.5rem 1rem;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .card-grid--2col,
  .card-grid--3col {
    grid-template-columns: 1fr;
  }
  .step-pills {
    flex-direction: column;
    gap: 0.5rem;
  }
  .step-arrow {
    transform: rotate(90deg);
    margin: 0;
  }
  .page-cta .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .section-title {
    font-size: 1.8rem;
  }
}
