/* ════════════════════════════════════════════════════════════════════
   cRyPtO sMaRt — SECTION BLOCKS
   Reusable layout patterns: heroes, splits, grids, CTAs, testimonials
   ════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════
   HERO — Layout C (cinematic with stats strip)
   Used on: Homepage, About, Our Story, Premium, Contact
   ════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
  background: var(--bg-dark);
  margin-top: -64px; /* offset fixed nav */
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Subtle parallax zoom on load */
.hero-media img {
  animation: hero-zoom 18s ease-out forwards;
}
@keyframes hero-zoom {
  0%   { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 45%, rgba(0,0,0,.1) 100%),
    linear-gradient(180deg, rgba(10,10,10,.4) 0%, rgba(10,10,10,.1) 30%, rgba(10,10,10,.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--shell-wide);
  margin: 0 auto;
  padding: var(--sp-8) var(--gutter) var(--sp-6);
  width: 100%;
}

.hero-content .eyebrow {
  color: #fff;
  margin-bottom: var(--sp-4);
  animation: hero-fade-up 1s 0.2s var(--t-slow) both;
}
.hero-content .eyebrow::before { background: var(--brand); }
.hero-content .eyebrow::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand-glow);
  margin-left: 4px;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.hero-headline {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 200;
  line-height: .94;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
  max-width: 14ch;
  animation: hero-fade-up 1s 0.35s var(--t-slow) both;
}
.hero-headline strong { font-weight: 700; }
.hero-headline .accent { color: var(--brand); }

.hero-headline-divider {
  width: 80px;
  height: 2px;
  background: var(--brand);
  margin-bottom: var(--sp-4);
  animation: hero-line 1s 0.6s var(--t-slow) both;
  transform-origin: left;
}

.hero-subtitle {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  color: rgba(255,255,255,.78);
  max-width: 56ch;
  margin-bottom: var(--sp-5);
  animation: hero-fade-up 1s 0.5s var(--t-slow) both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  animation: hero-fade-up 1s 0.65s var(--t-slow) both;
}

/* Stats strip — bottom of hero */
.hero-stats {
  position: relative;
  z-index: 2;
  background: rgba(10,10,10,.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stats-grid {
  max-width: var(--shell-wide);
  margin: 0 auto;
  padding: var(--sp-4) var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
.hero-stat {
  text-align: center;
  animation: hero-fade-up 1s 0.85s var(--t-slow) both;
}
.hero-stat-num {
  display: block;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

@media (max-width: 768px) {
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
  .hero-stats-grid .hero-stat:nth-child(1),
  .hero-stats-grid .hero-stat:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding-bottom: var(--sp-3);
  }
}
@media (max-width: 480px) {
  .hero-content { padding: var(--sp-7) var(--gutter) var(--sp-5); }
}

/* Hero animations */
@keyframes hero-fade-up {
  0%   { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes hero-line {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: .4; transform: scale(.9); }
  50%      { opacity: 1;  transform: scale(1.15); }
}

/* ────────────────────────────────────────────────────────
   HERO STANDARD — shorter version for non-homepage pages
   ──────────────────────────────────────────────────────── */
.hero-standard {
  min-height: 75vh;
  min-height: 75dvh;
}
.hero-standard .hero-headline {
  font-size: clamp(40px, 7vw, 88px);
}
.hero-standard .hero-stats { display: none; }

/* ════════════════════════════════════════════════════════════════════
   SECTION INTRO — eyebrow + heading + lead, centered or left
   ════════════════════════════════════════════════════════════════════ */
.section-intro {
  max-width: 720px;
  margin: 0 auto var(--sp-7);
  text-align: center;
}
.section-intro .eyebrow { margin-bottom: var(--sp-3); justify-content: center; }
.section-intro h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}
.section-intro h2 strong { font-weight: 700; }
.section-intro p {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--ink-2);
}
.theme-dark .section-intro h2 { color: #fff; }
.theme-dark .section-intro p { color: var(--ink-on-dark-2); }

.section-intro.left {
  text-align: left;
  max-width: none;
  margin: 0 0 var(--sp-7);
}
.section-intro.left .eyebrow { justify-content: flex-start; }

/* ════════════════════════════════════════════════════════════════════
   3-COLUMN FEATURE GRID
   ════════════════════════════════════════════════════════════════════ */
.feature-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 980px) { .feature-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .feature-grid-3 { grid-template-columns: 1fr; } }

.feature-item {
  padding: var(--sp-5) var(--sp-4);
  border-top: 1px solid var(--line);
  transition: all var(--t-base);
}
.theme-dark .feature-item { border-top-color: var(--line-dark); }

.feature-item:hover { transform: translateY(-3px); }

.feature-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
  color: var(--brand);
}
.feature-icon svg { width: 100%; height: 100%; }

.feature-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  color: var(--ink);
}
.theme-dark .feature-title { color: #fff; }

.feature-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}
.theme-dark .feature-text { color: var(--ink-on-dark-2); }

/* Number variant (instead of icon) */
.feature-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: .12em;
  margin-bottom: var(--sp-3);
  display: block;
}

/* ════════════════════════════════════════════════════════════════════
   SPLIT 50/50 — image + text side-by-side
   ════════════════════════════════════════════════════════════════════ */
.split-50 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}
.split-50.reverse > div:first-child { order: 2; }
@media (max-width: 880px) {
  .split-50 { grid-template-columns: 1fr; gap: var(--sp-5); }
  .split-50.reverse > div:first-child { order: 0; }
}

.split-50-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--r-3);
  background: var(--bg-soft);
}
.split-50-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.split-50-media.aspect-square { aspect-ratio: 1; }
.split-50-media.aspect-wide { aspect-ratio: 16/10; }

.split-50-text h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin-bottom: var(--sp-4);
  color: var(--ink);
}
.split-50-text h2 strong { font-weight: 700; }
.theme-dark .split-50-text h2 { color: #fff; }

.split-50-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: var(--sp-4);
}
.theme-dark .split-50-text p { color: var(--ink-on-dark-2); }

.split-50-text .eyebrow { margin-bottom: var(--sp-3); }

/* ════════════════════════════════════════════════════════════════════
   CARD GRID (4-column for courses/blog cards)
   ════════════════════════════════════════════════════════════════════ */
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 1100px) { .card-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 880px)  {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .card-grid-4 { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════
   CTA BANNER — full-width promotional section
   ════════════════════════════════════════════════════════════════════ */
.cta-banner {
  position: relative;
  padding: var(--sp-8) var(--gutter);
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(28,105,212,.18), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(28,105,212,.08), transparent 70%);
  pointer-events: none;
}
.cta-banner-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.cta-banner h2 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.cta-banner h2 strong { font-weight: 700; }
.cta-banner p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-on-dark-2);
  margin-bottom: var(--sp-5);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════════════
   TESTIMONIAL CARD (minimal BMW style)
   ════════════════════════════════════════════════════════════════════ */
.testimonial {
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: all var(--t-base);
}
.testimonial:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.theme-dark .testimonial {
  background: var(--bg-dark-card);
  border-color: var(--line-dark);
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.theme-dark .testimonial-quote { color: var(--ink-on-dark-2); }
.testimonial-quote::before {
  content: '"';
  font-size: 48px;
  line-height: 0;
  vertical-align: -.2em;
  color: var(--brand);
  margin-right: 4px;
  font-weight: 700;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}
.theme-dark .testimonial-author { border-top-color: var(--line-dark); }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  flex-shrink: 0;
  overflow: hidden;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.theme-dark .testimonial-name { color: #fff; }
.testimonial-role {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ════════════════════════════════════════════════════════════════════
   NEWSLETTER STRIP
   ════════════════════════════════════════════════════════════════════ */
.newsletter-strip {
  padding: var(--sp-7) var(--gutter);
  background: var(--bg-alt);
  text-align: center;
}
.theme-dark .newsletter-strip,
.newsletter-strip.on-dark {
  background: var(--bg-dark-alt);
}
.newsletter-strip-inner {
  max-width: 560px;
  margin: 0 auto;
}
.newsletter-strip h3 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: var(--sp-3);
  color: var(--ink);
}
.theme-dark .newsletter-strip h3 { color: #fff; }
.newsletter-strip p {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: var(--sp-4);
}
.theme-dark .newsletter-strip p { color: var(--ink-on-dark-2); }

/* ════════════════════════════════════════════════════════════════════
   TRUST STRIP (logos / featured-in row)
   ════════════════════════════════════════════════════════════════════ */
.trust-strip {
  padding: var(--sp-5) var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.trust-strip-inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.trust-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.trust-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .04em;
  opacity: .6;
  transition: opacity var(--t-base);
}
.trust-item:hover { opacity: 1; }
