/* ===================================================
   DEAR AGENCY - Subpages Stylesheet (Terms, Privacy, About)
   =================================================== */

/* --- Page Hero --- */
.page-hero {
  padding: 8rem 0 3rem;
  background: var(--bg-darker);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-tall {
  padding: 9rem 0 4rem;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.page-hero-sub {
  color: var(--text-muted);
  font-size: 1rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--primary); }

.breadcrumb-sep { color: var(--text-muted); opacity: 0.4; }

.breadcrumb span:last-child { color: var(--text-secondary); }

/* ===================================================
   LEGAL PAGES (Terms, Privacy)
   =================================================== */
.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

/* --- Sidebar TOC --- */
.legal-sidebar {
  position: sticky;
  top: 100px;
}

.toc-card {
  background: var(--bg-surface);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.toc-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.toc-list a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all var(--transition);
  line-height: 1.4;
}

.toc-list a:hover {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.1);
}

/* --- Legal Main Content --- */
.legal-intro-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(236, 72, 153, 0.05));
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 3rem;
}

.legal-intro-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-cta);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.legal-intro-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.legal-intro-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.legal-article section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.legal-article section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-article h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-cta);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.legal-article h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-primary);
}

.legal-article p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-list {
  margin: 1rem 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-cta);
}

.legal-list li strong {
  color: var(--text-primary);
}

/* --- Highlight Box --- */
.highlight-box {
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box.accent {
  background: rgba(249, 115, 22, 0.06);
  border-color: rgba(249, 115, 22, 0.15);
  border-left-color: var(--accent);
}

.highlight-box h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.highlight-box p {
  margin-bottom: 0.5rem;
}

.highlight-box .legal-list {
  margin-bottom: 0.5rem;
}

/* --- Contact Box --- */
.contact-box {
  background: var(--bg-surface);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-box-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.contact-box-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  flex-shrink: 0;
}

.contact-box-item a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.contact-box-item a:hover { color: var(--primary); }

/* ===================================================
   ABOUT PAGE
   =================================================== */

/* --- Story Section --- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-content .about-tag {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

.story-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.story-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.story-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.story-card {
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s ease;
}

.story-card:hover { transform: translateX(8px); }

.story-card-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.story-card-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

.story-card-label {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

/* --- Mission Section --- */
.mission-section {
  background: var(--bg-darker);
}

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

.mission-card {
  background: var(--bg-surface);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.3);
}

.mission-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
}

.mission-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
}

.mission-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.mission-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* --- What We Do --- */
.what-we-do {
  background: var(--bg-dark);
}

.wwd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 1.5rem;
}

.wwd-card {
  background: rgba(26, 24, 48, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.wwd-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.3);
}

.wwd-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
  margin-bottom: 1rem;
  line-height: 1;
}

.wwd-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.wwd-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.wwd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wwd-tags span {
  padding: 0.3rem 0.8rem;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- Approach Section --- */
.approach-section {
  background: var(--bg-darker);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.approach-content .about-tag {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

.approach-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.approach-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.approach-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.approach-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.approach-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
}

.approach-item h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.approach-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.approach-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.approach-stat {
  background: var(--bg-surface);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.approach-stat:hover { transform: translateY(-4px); }

.approach-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
}

.approach-stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* --- CTA Section --- */
.about-cta {
  background: var(--bg-dark);
}

.cta-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.cta-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-card p {
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================================
   SERVICE DETAIL PAGE
   =================================================== */
.svc-detail {
  background: var(--bg-dark);
}

.svc-detail-alt {
  background: var(--bg-darker);
}

.svc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.svc-detail-grid.svc-detail-reverse {
  direction: rtl;
}

.svc-detail-grid.svc-detail-reverse > * {
  direction: ltr;
}

.svc-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-cta);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.svc-detail-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.svc-detail-content > p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.svc-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.svc-features li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.svc-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-cta);
}

.svc-visual-card {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
  transition: transform 0.4s ease;
}

div.svc-visual-card {
  display: grid;
  place-items: center;
}

.svc-visual-card:hover { transform: scale(1.03); }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .mission-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
  }

  .toc-card {
    margin-bottom: 1rem;
  }

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

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

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

  .svc-detail-grid,
  .svc-detail-grid.svc-detail-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .svc-visual-card { max-width: 400px; margin: 0 auto; }

  .legal-intro-card {
    flex-direction: column;
  }

  .page-hero { padding: 7rem 0 2.5rem; }
}

@media (max-width: 480px) {
  .approach-stat-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}
