/* =============================================
   METHODOLOGY.CSS — methodology.html Specific Styles
   Inherits root scale & globals from base.css
   No global styles redefined here.
   ============================================= */

/* =============================================
   METHODOLOGY HERO
   Matches the-system.html monumental hero
   ============================================= */
.method-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"] .method-hero {
  background-color: var(--brand-navy);
}

/* Gold Overline Label */
.method-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;
}

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

/* Massive H1 */
.method-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;
}

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

/* Hero Content — above watermark */
.method-hero .container {
  position: relative;
  z-index: 2;
}

/* =============================================
   HERO SEAL WATERMARK — Methodology Page
   Matches the-system.html: right side,
   half-offscreen, 800px width, opacity 0.05
   ============================================= */
.method-hero .method-hero-watermark {
  position: absolute;
  right: -12%;
  top: 50%;
  transform: translateY(-50%);
  /* 800px / 16 = 50rem */
  width: 50rem;
  pointer-events: none;
  z-index: 1;
}

.method-hero .method-hero-watermark img {
  width: 100%;
  height: auto;
  opacity: 0.07;
  filter: brightness(0) invert(1) drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2));
  transform: rotate(-5deg);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.method-hero .method-hero-watermark:hover img {
  opacity: 0.12;
  transform: rotate(0deg) scale(1.02);
}

/* =============================================
   PROCESS SECTION — "The Process"
   Section padding inherited from base.css
   ============================================= */
.process-section {
  background-color: var(--bg-color);
  transition: background-color 0.4s ease;
  position: relative;
}

/* Watermark Tree — Methodology Specific */
.watermark-tree-methodology {
  position: absolute;
  right: -10%;
  bottom: 0%;
  height: 58%; /* Reduced by 45% (from 105% to 58%) */
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    filter 0.4s ease;
}

[data-theme="dark"] .watermark-tree-methodology {
  opacity: 0.05;
  filter: invert(1) brightness(2);
}

/* Section Title Area */
.process-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.process-section-header h2 {
  margin-bottom: 0;
}

/* Divider under section title */
.process-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 0;
  max-width: 18.75rem;
}

.process-divider-line {
  flex-grow: 1;
  height: 1px;
  background-color: var(--accent-gold);
  opacity: 0.4;
}

.process-divider-diamond {
  width: 0.625rem;
  height: 0.625rem;
  background-color: var(--accent-gold);
  transform: rotate(45deg);
  margin: 0 1rem;
  opacity: 0.7;
}

/* =============================================
   2×2 PROCESS GRID
   ============================================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

/* =============================================
   PROCESS STEP CARD — Premium Document Feel
   ============================================= */
.process-step {
  position: relative;
  z-index: 2; /* Ensures cards are above the watermark */
  background-color: #ffffff;
  padding: 3.5rem;
  border: 1px solid rgba(201, 166, 70, 0.1);
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
    border-color 0.4s ease,
    box-shadow 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-theme="dark"] .process-step {
  background-color: var(--card-bg);
  border-color: rgba(201, 166, 70, 0.08);
}

/* Gold top-line reveal on hover */
.process-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-gold);
  transition: width 0.4s ease;
}

/* =============================================
   HOVER STATE — translateY(-10px) + wide shadow
   ============================================= */
.process-step:hover {
  transform: translateY(-10px);
  border-color: var(--accent-gold);
  box-shadow:
    0 30px 60px rgba(15, 34, 64, 0.08),
    0 10px 30px rgba(201, 166, 70, 0.06);
}

[data-theme="dark"] .process-step:hover {
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    0 10px 30px rgba(201, 166, 70, 0.08);
}

.process-step:hover::before {
  width: 100%;
}

/* Subtle gold glow on hover for the numeral */
.process-step:hover .step-numeral {
  opacity: 0.1;
}

/* =============================================
   ROMAN NUMERAL — Background Watermark
   Semi-transparent, serif font, 6rem
   ============================================= */
.step-numeral {
  position: absolute;
  top: 1.25rem;
  right: 1.875rem;
  font-family: var(--heading-font);
  font-size: 6rem;
  font-weight: 700;
  color: var(--accent-gold);
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 0;
  user-select: none;
}

[data-theme="dark"] .step-numeral {
  opacity: 0.07;
}

/* =============================================
   STEP NUMBER (small visible badge)
   ============================================= */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.process-step:hover .step-number {
  background-color: var(--brand-navy);
  color: var(--brand-ivory);
}

/* =============================================
   CARD CONTENT
   ============================================= */
.step-content {
  position: relative;
  z-index: 1;
}

.step-content h3 {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  color: var(--heading-color);
  margin-bottom: 1rem;
  font-weight: 400;
}

/* Gold accent line under title */
.step-accent-line {
  width: 2.5rem;
  height: 2px;
  background-color: var(--accent-gold);
  margin-bottom: 1.5rem;
  transition: width 0.4s ease;
}

.process-step:hover .step-accent-line {
  width: 4.375rem;
}

.step-content p {
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 0;
}

/* =============================================
   METHODOLOGY PAGE — CTA SECTION
   ============================================= */
.method-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;
}

.method-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;
}

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

/* =============================================
   MOBILE OVERRIDES (≤992px)
   ============================================= */
@media (max-width: 992px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

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

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

  .method-hero p {
    font-size: 1.05rem;
  }

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

  /* Cards */
  .process-step {
    padding: 2.5rem 2rem;
  }

  .step-numeral {
    font-size: 4rem;
    top: 0.625rem;
    right: 0.625rem;
  }

  /* CTA */
  .method-cta-section h2 {
    font-size: 2rem;
  }
}
