/* =============================================
   CERTIFICATION.CSS — certification.html Specific Styles
   Inherits root scale & globals from base.css
   ============================================= */

/* =============================================
   CERTIFICATION HERO
   ============================================= */
.cert-hero {
  background-color: var(--brand-navy);
  background-image:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(201, 166, 70, 0.05) 0%,
      transparent 50%
    ),
    linear-gradient(to right, rgba(15, 34, 64, 0.9), rgba(15, 34, 64, 0.6));
  color: #ffffff;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: background-color 0.4s ease;
}

[data-theme="dark"] .cert-hero {
  background-color: var(--brand-navy);
}

.cert-hero .section-overline-master {
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  font-family: var(--body-font);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: none;
}

.cert-hero .section-overline-master::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background-color: var(--accent-gold);
}

.cert-hero h1 {
  color: #ffffff;
  font-family: var(--heading-font);
  font-size: 5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.cert-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.3rem;
  max-width: 40rem;
  line-height: 1.8;
}

.cert-hero .container {
  position: relative;
  z-index: 2;
}

.cert-hero .cert-hero-watermark {
  position: absolute;
  right: -12%;
  top: 50%;
  transform: translateY(-50%);
  width: 50rem; /* 800px at 16px */
  pointer-events: none;
  z-index: 1;
}

.cert-hero .cert-hero-watermark img {
  width: 100%;
  height: auto;
  opacity: 0.05;
  filter: brightness(0) invert(1);
  transition: opacity 0.4s ease;
}

/* =============================================
   TIERED MASTERY SYSTEM
   ============================================= */
.tier-section {
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: background-color 0.4s ease;
  position: relative;
}

.tier-section-light {
  background-color: var(--bg-color);
}

.tier-section-dark {
  background-color: var(--brand-navy);
  color: #ffffff;
}

[data-theme="dark"] .tier-section-dark {
  background-color: var(--brand-navy);
}

.tier-container {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  width: 100%;
  max-width: 65rem;
  margin: 0 auto;
}

/* Large Gold Number */
.tier-number {
  font-family: var(--heading-font);
  font-size: 8rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 0.8;
  opacity: 0.8;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Tier Content */
.tier-content {
  flex: 1;
  padding-top: 0.5rem;
  position: relative;
  z-index: 2;
}

.watermark-tree-left {
  left: -12%;
  right: auto;
}

/* Ensure consistent watermark sizing across all tiers */
.tier-section .watermark-tree-global {
  height: 100%;
  bottom: -2%;
  z-index: 1;
}

.section-overline-master {
  display: inline-block;
  color: var(--accent-gold);
  font-family: var(--body-font);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.tier-section-light .tier-content h2 {
  color: var(--heading-color);
}

.tier-section-dark .tier-content h2 {
  color: #ffffff;
}

.tier-content h2 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-family: var(--heading-font);
}

.tier-content p {
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 0;
}

.tier-section-dark .tier-content p {
  color: rgba(255, 255, 255, 0.85);
}

/* Gold Diamond Divider */
.cert-divider-wrapper {
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0;
  position: relative;
  z-index: 10;
}

/* =============================================
   SEAL OF EXCELLENCE SECTION
   ============================================= */
.seal-section {
  background-color: var(--bg-color);
  text-align: center;
  transition: background-color 0.4s ease;
}

.seal-container {
  max-width: 50rem;
  margin: 0 auto;
}

.seal-icon-wrapper {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
}

.seal-icon-wrapper img {
  width: 9rem;
  height: auto;
  opacity: 1;
  transition: opacity 0.4s ease;
}

[data-theme="dark"] .seal-icon-wrapper img {
  filter: brightness(0) invert(1);
}

.seal-section h2 {
  font-size: 3rem;
  font-family: var(--heading-font);
  margin-bottom: 1.5rem;
}

.seal-section p {
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--text-color);
}

.seal-features {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
}

.seal-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.seal-feature-item strong {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-size: 1.25rem;
  font-weight: 600;
}

.seal-feature-item span {
  font-family: var(--body-font);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
}

/* =============================================
   CTA SECTION
   ============================================= */
.cert-cta-section {
  background-color: var(--brand-navy);
  background-image: radial-gradient(
    circle at center,
    rgba(201, 166, 70, 0.05) 0%,
    transparent 70%
  );
  text-align: center;
  color: var(--brand-ivory);
  padding-bottom: 5.263rem;
  margin-bottom: 0;
  transition: background-color 0.4s ease;
}

.cert-cta-section h2 {
  font-family: var(--heading-font);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--brand-ivory);
  max-width: none;
  margin: 0 auto 3rem;
  line-height: 1.4;
}

.cert-cta-section .cta-voice {
  color: var(--accent-gold);
  font-style: italic;
}

/* =============================================
   MOBILE OVERRIDES (≤992px)
   ============================================= */
@media (max-width: 992px) {
  .tier-container {
    flex-direction: column;
    gap: 2rem;
  }

  .tier-content h2 {
    font-size: 2.8rem;
  }

  .seal-features {
    flex-direction: column;
    gap: 2rem;
  }
}

/* =============================================
   MOBILE OVERRIDES (≤768px)
   ============================================= */
@media (max-width: 768px) {
  .cert-hero {
    min-height: 65vh;
    padding: 4.211rem 5%;
  }

  .cert-hero h1 {
    font-size: 2.5rem;
  }

  .cert-hero-watermark {
    right: -25%;
    width: 80%;
  }

  .seal-section h2 {
    font-size: 2rem;
  }

  .cert-cta-section h2 {
    font-size: 2rem;
  }
}
