/* ═══════════════════════════════════════════════════════════════════
   IVY CHIN — UI COMPONENT LIBRARY
   Purpose: Modular, reusable UI components for consistent design
   Version: v1.0
═══════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════
   HERO SECTIONS
══════════════════════════════════════════════ */

/* Standard page hero */
.page-hero {
  background: var(--cream);
  padding: calc(var(--nav-h) + 64px) var(--inner-pad) 64px;
  position: relative;
  border-bottom: 1px solid var(--divider);
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  margin: 16px 0 24px;
}

.page-hero .lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 40px;
}

/* Dark hero variant (for Advisory, Speaking pages) */
.hero-dark {
  background: var(--slate);
  color: var(--cream);
  padding: calc(var(--nav-h) + 80px) var(--inner-pad) 80px;
}

.hero-dark::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
}

.hero-dark h1 {
  color: var(--cream);
}

.hero-dark .lead {
  color: rgba(250, 248, 243, 0.78);
}

/* ══════════════════════════════════════════════
   SECTION LABELS & EYEBROWS
══════════════════════════════════════════════ */

.section-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
}

.section-label::before {
  content: '';
  width: 40px;
  height: 2.5px;
  display: block;
  background: var(--gold);
}

.section-label-lg {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.26em;
  margin-bottom: 28px;
  gap: 16px;
}

.section-label-lg::before {
  width: 48px;
  height: 3px;
}

/* ══════════════════════════════════════════════
   SECTION HEADINGS
══════════════════════════════════════════════ */

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 20px;
}

.section-heading-lg {
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 300;
  margin: 0 0 24px;
}

.section-subhead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 48px;
  max-width: 680px;
}

/* ══════════════════════════════════════════════
   NUMBERED CARDS (Focus Areas, Steps, Themes)
══════════════════════════════════════════════ */

.numbered-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.numbered-card {
  padding: 36px 32px;
  border: 1px solid var(--divider);
  background: var(--card-bg);
  position: relative;
  transition: box-shadow var(--t-base), transform var(--t-base);
  border-radius: var(--r-sm);
}

.numbered-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.numbered-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.numbered-card-num {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.28;
  line-height: 0.9;
  margin-bottom: 20px;
  display: block;
  letter-spacing: -0.02em;
}

.numbered-card:hover .numbered-card-num {
  opacity: 0.45;
}

.numbered-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.3;
}

.numbered-card-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

/* 2-column variant for larger cards */
.numbered-cards-grid-2col {
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.numbered-cards-grid-2col .numbered-card {
  padding: 40px 36px;
}

/* ══════════════════════════════════════════════
   TESTIMONIAL CARDS
══════════════════════════════════════════════ */

/* Standard testimonial section */
.testimonials-section {
  background: var(--slate);
  padding: 96px var(--inner-pad);
}

.testimonials-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.testimonials-heading {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonials-heading::before {
  content: '';
  width: 40px;
  height: 2.5px;
  background: var(--gold);
  display: block;
}

.testimonials-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 300;
  color: var(--cream);
  margin: 0 0 56px;
  line-height: 1.3;
}

/* Large testimonial cards */
.testimonial-cards-lg {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 48px;
}

.testimonial-card-lg {
  padding: 56px 52px;
  background: rgba(250, 248, 243, 0.05);
  border: 1.5px solid rgba(201, 168, 108, 0.24);
  border-radius: var(--r-md);
  position: relative;
  transition: background var(--t-base), border-color var(--t-base);
}

.testimonial-card-lg:hover {
  background: rgba(250, 248, 243, 0.08);
  border-color: rgba(201, 168, 108, 0.35);
}

.testimonial-card-lg::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 160px;
  line-height: 0.5;
  color: rgba(201, 168, 108, 0.16);
  position: absolute;
  top: 40px;
  left: 38px;
  pointer-events: none;
}

.testimonial-card-lg blockquote {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 24px);
  font-style: italic;
  font-weight: 300;
  color: rgba(250, 248, 243, 0.95);
  line-height: 1.75;
  margin: 0 0 28px;
  position: relative;
  z-index: 1;
  padding-left: 20px;
}

.testimonial-card-lg cite {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  padding-left: 20px;
}

.testimonial-card-lg cite::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

/* Medium testimonial cards (2-column grid) */
.testimonial-cards-md {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card-md {
  padding: 36px 32px;
  border: 1px solid rgba(201, 168, 108, 0.22);
  background: rgba(250, 248, 243, 0.04);
  border-radius: var(--r-sm);
}

.testimonial-card-md blockquote {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.4vw, 17px);
  font-style: italic;
  font-weight: 300;
  color: rgba(250, 248, 243, 0.90);
  line-height: 1.75;
  margin: 0 0 18px;
  quotes: none;
}

.testimonial-card-md cite {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 8px;
}

.testimonial-card-md cite::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   CALLOUT BLOCKS & QUOTE BLOCKS
══════════════════════════════════════════════ */

.callout-block {
  background: var(--cream-deep);
  border-left: 4px solid var(--gold);
  padding: 32px 36px;
  margin: 40px 0;
}

.callout-block-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.callout-block p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
}

/* Dark variant callout */
.callout-block-dark {
  background: rgba(250, 248, 243, 0.05);
  border-left-color: var(--gold);
  color: rgba(250, 248, 243, 0.92);
}

.callout-block-dark p {
  color: rgba(250, 248, 243, 0.80);
}

/* ══════════════════════════════════════════════
   AUDIENCE STRIPS
══════════════════════════════════════════════ */

.audience-strip {
  background: var(--slate);
  padding: 72px var(--inner-pad);
  border-top: 1px solid rgba(201, 168, 108, 0.15);
}

.audience-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.audience-strip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.audience-strip h3 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 300;
  color: var(--cream);
  margin: 0;
}

.audience-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(250, 248, 243, 0.82);
}

.audience-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 8px;
}

/* Light variant */
.audience-strip-light {
  background: var(--cream-deep);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.audience-strip-light h3 {
  color: var(--ink);
}

.audience-strip-light .audience-item {
  color: var(--muted);
}

/* ══════════════════════════════════════════════
   BUTTONS & CTAs
══════════════════════════════════════════════ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--slate);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--r-sm);
  transition: background var(--t-base), transform var(--t-fast);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--slate-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--slate);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: background var(--t-base), color var(--t-base);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--slate);
  color: var(--cream);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: #a37d43;
}

.cta-pair {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ══════════════════════════════════════════════
   PROGRAM SECTIONS
══════════════════════════════════════════════ */

.prog-section {
  background: var(--cream);
  padding: 80px var(--inner-pad);
}

.prog-section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.prog-section-dark {
  background: var(--slate);
  color: var(--cream);
}

/* ══════════════════════════════════════════════
   RESPONSIVE DESIGN
══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .numbered-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .audience-strip-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .page-hero,
  .hero-dark {
    padding: calc(var(--nav-h) + 48px) var(--inner-pad) 48px;
  }
  
  .numbered-cards-grid,
  .numbered-cards-grid-2col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .testimonial-cards-md {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .testimonial-card-lg {
    padding: 40px 32px;
  }
  
  .testimonial-card-lg::before {
    font-size: 120px;
    top: 28px;
    left: 24px;
  }
  
  .testimonial-card-lg blockquote {
    font-size: clamp(16px, 4vw, 20px);
    padding-left: 12px;
  }
  
  .section-label,
  .testimonials-heading {
    font-size: 11px;
  }
  
  .section-label::before,
  .testimonials-heading::before {
    width: 32px;
    height: 2px;
  }
  
  .cta-pair {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════
   UTILITY CLASSES
══════════════════════════════════════════════ */

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.15s;
}

.fade-in-delay-2 {
  animation-delay: 0.3s;
}

.fade-in-delay-3 {
  animation-delay: 0.45s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
