/* ============================================
   DIDASKALIA WISDOM - DESIGN SYSTEM
   "The Living Parchment" Aesthetic
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    /* Colors: The Living Parchment Palette */
    --color-deep-fig: #4A2C40;
    --color-deep-fig-light: #6B4460;
    --color-deep-fig-dark: #3A2030;
    --color-ancient-marble: #F2F0E9;
    --color-ancient-marble-dark: #DED9CA;
    --color-ancient-marble-warm: #EDE5D4;
    --color-olive-grove: #606C38;
    --color-olive-grove-light: #7A8A4C;
    --color-olive-grove-dark: #4A5429;
    --color-gilded-spirit: #D4AF37;
    --color-gilded-spirit-light: #E5C85A;
    --color-gilded-spirit-dark: #B89530;
    --color-gilded-spirit-glow: rgba(212, 175, 55, 0.6);
    --color-inkwell: #2B2D42;
    --color-inkwell-light: #4A4D66;

    /* Semantic Colors */
    --color-bg-primary: var(--color-ancient-marble);
    --color-bg-secondary: #FFFFFF;
    --color-bg-accent: var(--color-deep-fig);
    --color-text-primary: var(--color-inkwell);
    --color-text-secondary: var(--color-inkwell-light);
    --color-text-inverse: var(--color-ancient-marble);
    --color-accent-primary: var(--color-deep-fig);
    --color-accent-secondary: var(--color-olive-grove);
    --color-accent-gold: var(--color-gilded-spirit);

    /* Typography */
    --font-heading: 'Cinzel', Georgia, serif;
    --font-greek: 'Cormorant Garamond', serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Font Sizes (fluid typography) */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --container-padding: clamp(1rem, 4vw, 2rem);

    /* Borders & Shadows - Enhanced for OLED */
    --border-thin: 1px solid var(--color-gilded-spirit);
    --border-decorative: 2px solid var(--color-gilded-spirit);
    --shadow-sm: 0 2px 8px rgba(43, 45, 66, 0.15);
    --shadow-md: 0 4px 16px rgba(43, 45, 66, 0.18);
    --shadow-lg: 0 8px 32px rgba(43, 45, 66, 0.22);
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.4);
    --shadow-gold-intense: 0 0 40px rgba(212, 175, 55, 0.5), 0 0 80px rgba(212, 175, 55, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-smooth: 600ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-deep-fig);
    letter-spacing: 0.02em;
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 700;
    color: var(--color-deep-fig);
}

em {
    font-style: italic;
    color: var(--color-olive-grove);
}

/* Greek Text */
.greek-text {
    font-family: var(--font-greek);
    font-style: italic;
    font-weight: 500;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-5xl) 0;
    position: relative;
}

/* Visible section divider lines */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--color-ancient-marble-dark) 30%,
            var(--color-gilded-spirit) 50%,
            var(--color-ancient-marble-dark) 70%,
            transparent 100%);
}

.section:first-of-type::before {
    display: none;
}

.section:nth-child(even) {
    background-color: var(--color-bg-secondary);
}

/* Section Headers */
.section__label {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gilded-spirit-dark);
    margin-bottom: var(--space-sm);
}

.section__title {
    margin-bottom: var(--space-lg);
    position: relative;
}

.section__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg,
            var(--color-gilded-spirit) 0%,
            var(--color-gilded-spirit-light) 60%,
            transparent 100%);
    margin-top: var(--space-md);
    border-radius: var(--radius-full);
    box-shadow: 0 0 8px var(--color-gilded-spirit-glow);
}

.section__description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn--primary {
    background-color: var(--color-deep-fig);
    color: var(--color-text-inverse);
    border: 2px solid var(--color-deep-fig);
}

.btn--primary:hover {
    background-color: var(--color-deep-fig-light);
    border-color: var(--color-deep-fig-light);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-deep-fig);
    border: 2px solid var(--color-gilded-spirit);
}

.btn--outline:hover {
    background-color: var(--color-gilded-spirit);
    color: var(--color-deep-fig-dark);
    border-color: var(--color-gilded-spirit);
}

.btn--lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-base);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(242, 240, 233, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav__logo {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.3em;
    line-height: 1;
}

.nav__logo-greek {
    font-family: var(--font-greek);
    font-size: var(--text-lg);
    font-weight: 600;
    font-style: italic;
    color: var(--color-deep-fig);
}

.nav__logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gilded-spirit-dark);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav__link {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--color-text-primary);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gilded-spirit);
    transition: width var(--transition-base);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--color-deep-fig);
}

.nav__link--cta {
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--color-deep-fig);
    color: var(--color-text-inverse);
    border-radius: var(--radius-sm);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background-color: var(--color-deep-fig-light);
    color: var(--color-text-inverse);
}

/* Mobile Navigation Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    z-index: 1001;
}

.nav__toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-deep-fig);
    transition: all var(--transition-base);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(160deg,
            var(--color-bg-primary) 0%,
            var(--color-ancient-marble-warm) 40%,
            var(--color-ancient-marble-dark) 100%);
}

/* Decorative gold accent line at bottom of hero */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--color-gilded-spirit) 20%,
            var(--color-gilded-spirit) 80%,
            transparent 100%);
    box-shadow: var(--shadow-glow);
}

.hero__overlay {
    position: absolute;
    top: 0;
    right: 5%;
    width: 50%;
    height: 100%;
    background-image: url('assets/greek-portico.png');
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    opacity: 0.35;
    pointer-events: none;
    filter: sepia(15%) contrast(1.15);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%);
    mask-image: linear-gradient(to right, transparent, black 20%);
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    align-items: flex-start;
    position: relative;
    z-index: 3;
}

/* Constrain hero text to left half on large screens to avoid slideshow overlap */
.hero__text {
    max-width: 50%;
}

.hero__subtitle {
    font-family: var(--font-greek);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--color-gilded-spirit-dark);
    margin-bottom: var(--space-md);
    letter-spacing: 0.05em;
}

/* Decorative flourish */
.hero__flourish {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.hero__flourish img {
    width: 80px;
    height: auto;
    opacity: 0.7;
}

.hero__title {
    font-size: var(--text-3xl);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: var(--space-lg);
    letter-spacing: 0.02em;
}

/* Prominent brand name */
.hero__brand {
    display: block;
    font-size: var(--text-4xl);
    font-weight: 500;
    color: var(--color-deep-fig);
    letter-spacing: 0.03em;
    margin-bottom: var(--space-xs);
}



/* Tagline styling */
.hero__tagline {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--color-text-primary);
}

.hero__tagline em {
    font-style: normal;
    font-weight: 500;
}

.hero__title-accent {
    display: block;
    color: var(--color-olive-grove);
    font-weight: 400;
}

.hero__description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 500px;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__image-frame {
    position: relative;
    max-width: 320px;
    border-radius: var(--radius-lg);
    overflow: visible;
    padding: 6px;
    background: linear-gradient(135deg,
            var(--color-gilded-spirit) 0%,
            var(--color-gilded-spirit-light) 50%,
            var(--color-gilded-spirit) 100%);
    box-shadow:
        0 0 20px var(--color-gilded-spirit-glow),
        0 0 40px rgba(212, 175, 55, 0.3),
        0 8px 32px rgba(43, 45, 66, 0.25);
}

.hero__image-frame::before {
    display: none;
}

.hero__image-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--radius-lg) - 4px);
}

/* Hero Scroll Indicator - Hidden */
.hero__scroll {
    display: none;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.5;
        transform: scaleY(0.8);
    }
}

/* ============================================
   LOGO SLIDESHOW ANIMATION
   ============================================ */
.logo-slideshow {
    position: absolute;
    /* Center on the greek-portico image: image is right: 5%, width: 50% */
    /* So center of image is at right: 5% + 25% = 30% from right, or 70% from left */
    right: 30%;
    top: 55%;
    transform: translate(50%, -50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: none;
}

.logo-slideshow__word-container {
    position: relative;
    height: 1.4em;
    min-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-slideshow__word {
    position: absolute;
    font-family: var(--font-greek);
    font-size: var(--text-3xl);
    font-style: italic;
    font-weight: 500;
    color: var(--color-deep-fig);
    opacity: 0;
    white-space: nowrap;
}

.logo-slideshow__static {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gilded-spirit-dark);
    margin-top: var(--space-xs);
}

/* Animation timing: 24s total loop
   Words 1-5: 3s each (0.5s fade in, 2s hold, 0.5s fade out)
   Word 6: 6s (0.5s fade in, 5.5s hold - extra pause on Didaskalia)
   Total: 5*3 + 6 = 21s, rounded to 24s for smoother math */

.logo-slideshow__word--1 {
    animation: fadeWord1 24s ease-in-out infinite;
}

.logo-slideshow__word--2 {
    animation: fadeWord2 24s ease-in-out infinite;
}

.logo-slideshow__word--3 {
    animation: fadeWord3 24s ease-in-out infinite;
}

.logo-slideshow__word--4 {
    animation: fadeWord4 24s ease-in-out infinite;
}

.logo-slideshow__word--5 {
    animation: fadeWord5 24s ease-in-out infinite;
}

.logo-slideshow__word--6 {
    animation: fadeWord6 24s ease-in-out infinite;
}

/* Word 1: 0% - 12.5% (0-3s) */
@keyframes fadeWord1 {
    0% {
        opacity: 0;
    }

    2% {
        opacity: 1;
    }

    10% {
        opacity: 1;
    }

    12.5% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Word 2: 12.5% - 25% (3-6s) */
@keyframes fadeWord2 {
    0% {
        opacity: 0;
    }

    12.5% {
        opacity: 0;
    }

    14.5% {
        opacity: 1;
    }

    22.5% {
        opacity: 1;
    }

    25% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Word 3: 25% - 37.5% (6-9s) */
@keyframes fadeWord3 {
    0% {
        opacity: 0;
    }

    25% {
        opacity: 0;
    }

    27% {
        opacity: 1;
    }

    35% {
        opacity: 1;
    }

    37.5% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Word 4: 37.5% - 50% (9-12s) */
@keyframes fadeWord4 {
    0% {
        opacity: 0;
    }

    37.5% {
        opacity: 0;
    }

    39.5% {
        opacity: 1;
    }

    47.5% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Word 5: 50% - 62.5% (12-15s) */
@keyframes fadeWord5 {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    52% {
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    62.5% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Word 6 (Didaskalia): 62.5% - 100% (15-24s) - Longer hold */
@keyframes fadeWord6 {
    0% {
        opacity: 0;
    }

    62.5% {
        opacity: 0;
    }

    64.5% {
        opacity: 1;
    }

    97% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Larger slideshow text on wide screens */
@media (min-width: 1200px) {
    .logo-slideshow__word {
        font-size: var(--text-4xl);
    }

    .logo-slideshow__static {
        font-size: var(--text-3xl);
    }
}

/* Stack slideshow above content before overlap occurs */
@media (max-width: 1100px) {
    .logo-slideshow {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        display: flex;
        justify-content: center;
        padding: var(--space-2xl) var(--container-padding);
        margin-top: 80px;
    }

    .hero {
        flex-direction: column;
        background: linear-gradient(160deg,
                var(--color-bg-primary) 0%,
                var(--color-ancient-marble-warm) 40%,
                var(--color-ancient-marble-dark) 100%);
    }

    /* Add pseudo-element for portico with controlled opacity */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('assets/greek-portico.png') center 15% / contain no-repeat;
        opacity: 0.6;
        z-index: 0;
        pointer-events: none;
    }

    /* Hide the original overlay */
    .hero__overlay {
        display: none;
    }

    .hero__content {
        text-align: center;
        align-items: center;
    }

    .hero__text {
        max-width: 100%;
    }

    .hero__description {
        margin: 0 auto var(--space-2xl);
    }

    .hero__actions {
        justify-content: center;
    }
}

/* Mobile: Stack vertically and center */
@media (max-width: 768px) {
    .logo-slideshow {
        padding: var(--space-xl) var(--container-padding);
        margin-top: 80px;
    }

    .logo-slideshow__word-container {
        min-width: auto;
    }

    .logo-slideshow__word {
        font-size: var(--text-2xl);
    }

    .logo-slideshow__static {
        font-size: var(--text-xl);
    }

    /* Adjust portico opacity and position for narrow screens */
    .hero::before {
        opacity: 0.45;
    }
}

/* ============================================
   DIDACHE SECTION
   ============================================ */
.didache__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-4xl);
}

.didache__header .section__title {
    font-family: var(--font-greek);
    font-size: var(--text-5xl);
    font-style: italic;
    font-weight: 500;
}

.didache__header .section__title::after {
    margin: var(--space-md) auto 0;
}

.didache__pronunciation {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.didache__meaning {
    font-size: var(--text-sm);
    color: var(--color-olive-grove);
    font-weight: 500;
}

.didache__content {
    display: grid;
    gap: var(--space-4xl);
}

/* Scripture Card */
.scripture-card {
    background: linear-gradient(135deg, var(--color-olive-grove) 0%, var(--color-olive-grove-light) 100%);
    color: var(--color-text-inverse);
    padding: var(--space-3xl);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.scripture-card::before {
    display: none;
}

.scripture-card__heart {
    position: absolute;
    top: -10px;
    left: 10px;
    width: 120px;
    height: auto;
    color: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 0;
}

.scripture-card__text {
    font-family: var(--font-greek);
    font-size: var(--text-xl);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Mission Section */
.didache__mission {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.didache__mission-image {
    position: relative;
}

.didache__mission-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.didache__mission-text h3 {
    margin-bottom: var(--space-lg);
    position: relative;
}

.didache__mission-text h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--color-gilded-spirit);
    margin-top: var(--space-sm);
}

.didache__mission-text p {
    color: var(--color-text-secondary);
}

/* ============================================
   METHODOLOGY SECTION
   ============================================ */
.methodology__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-4xl);
}

.methodology__header .section__title::after {
    margin: var(--space-md) auto 0;
}

.methodology__header .section__description {
    margin: 0 auto;
}

.methodology__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-4xl);
}

/* Pillar Cards */
.pillar {
    background: var(--color-bg-primary);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.pillar:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.3);
}

.pillar__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    color: var(--color-gilded-spirit);
    transition: color var(--transition-base);
}

.pillar:hover .pillar__icon {
    color: var(--color-gilded-spirit-dark);
}

.pillar__icon--image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar__icon--image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pillar__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.pillar__description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Methodology Image */
.methodology__image {
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.methodology__image img {
    width: 100%;
}

/* ============================================
   MENTOR SECTION
   ============================================ */
.mentor__header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.mentor__header .section__title::after {
    margin: var(--space-md) auto 0;
}

.mentor__content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.mentor__image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.mentor__image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: var(--border-decorative);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.mentor__image-frame img {
    width: 100%;
}

/* Mentor Quote */
.mentor__quote {
    background: linear-gradient(135deg, var(--color-deep-fig) 0%, var(--color-deep-fig-light) 100%);
    color: var(--color-text-inverse);
    padding: var(--space-2xl);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2xl);
    position: relative;
}

.mentor__quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-gilded-spirit);
    border-radius: var(--radius-full);
}

.mentor__quote-heading {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    color: var(--color-gilded-spirit) !important;
    text-shadow: none !important;
}

.mentor__quote p {
    font-family: var(--font-greek);
    font-size: var(--text-xl);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    color: #FFFFFF !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mentor__quote cite {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-style: normal;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.mentor__bio p {
    color: var(--color-text-secondary);
}

.mentor__closing {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-olive-grove) !important;
    margin-top: var(--space-xl);
}

/* Credentials */
.mentor__credentials {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: var(--border-thin);
}

.credential {
    text-align: center;
}

.credential__number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--color-deep-fig);
    line-height: 1;
}

.credential__number--degree {
    font-family: var(--font-greek);
    font-style: normal;
    /* Override italic if set on --font-greek usage elsewhere */
}

.credential__label {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-xs);
}

/* ============================================
   RESOURCES SECTION
   ============================================ */
.resources__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-4xl);
}

.resources__header .section__title::after {
    margin: var(--space-md) auto 0;
}

.resources__header .section__description {
    margin: 0 auto;
}

.resources__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* Resource Cards */
.resource-card {
    background: var(--color-bg-primary);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.resource-card--coming {
    opacity: 0.8;
}

.resource-card--coming::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(212, 175, 55, 0.03) 10px,
            rgba(212, 175, 55, 0.03) 20px);
    pointer-events: none;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.4);
}

.resource-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-lg);
    color: var(--color-gilded-spirit);
}

.resource-card__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.resource-card__description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.resource-card__status {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gilded-spirit-dark);
    background: rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-full);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: linear-gradient(135deg, var(--color-deep-fig) 0%, var(--color-deep-fig-dark) 100%);
    color: var(--color-text-inverse);
    text-align: center;
}

.contact__content {
    max-width: 600px;
    margin: 0 auto;
}

.contact .section__label {
    color: var(--color-gilded-spirit);
}

.contact .section__title {
    color: var(--color-text-inverse);
}

.contact .section__title::after {
    background: linear-gradient(90deg, transparent, var(--color-gilded-spirit), transparent);
    margin: var(--space-md) auto 0;
}

.contact__text {
    font-size: var(--text-lg);
    opacity: 0.9;
    margin-bottom: var(--space-2xl);
}

.contact .btn--primary {
    background-color: var(--color-gilded-spirit);
    border-color: var(--color-gilded-spirit);
    color: var(--color-deep-fig-dark);
}

.contact .btn--primary:hover {
    background-color: var(--color-gilded-spirit-light);
    border-color: var(--color-gilded-spirit-light);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--color-inkwell);
    color: var(--color-text-inverse);
    padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
    display: flex;
    flex-direction: column;
}

.footer__logo-greek {
    font-family: var(--font-greek);
    font-size: var(--text-2xl);
    font-style: italic;
    font-weight: 600;
    color: var(--color-gilded-spirit);
}

.footer__logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-ancient-marble);
    opacity: 0.7;
}

.footer__tagline {
    font-size: var(--text-sm);
    opacity: 0.6;
    margin-top: var(--space-md);
}

.footer__nav {
    display: flex;
    gap: var(--space-xl);
}

.footer__link {
    font-size: var(--text-sm);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer__link:hover {
    opacity: 1;
    color: var(--color-gilded-spirit);
}

.footer__bottom {
    text-align: center;
}

.footer__copyright {
    font-size: var(--text-sm);
    opacity: 0.5;
}

/* ============================================
   ANIMATIONS
   ============================================ */
/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Children Animation */
.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0ms;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 100ms;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 200ms;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 300ms;
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero__image-frame {
        max-width: 300px;
    }

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

    .didache__mission-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .methodology__pillars {
        grid-template-columns: repeat(2, 1fr);
    }

    .mentor__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mentor__image {
        max-width: 300px;
        margin: 0 auto;
    }

    .mentor__credentials {
        justify-content: center;
    }

    .resources__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px var(--space-2xl) var(--space-2xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-base);
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__toggle.active .nav__toggle-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav__toggle.active .nav__toggle-line:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active .nav__toggle-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: auto;
        padding: 120px 0 var(--space-4xl);
    }

    .hero__overlay {
        width: 100%;
        opacity: 0.08;
    }

    .hero__scroll {
        display: none;
    }

    .methodology__pillars,
    .resources__grid {
        grid-template-columns: 1fr;
    }

    .methodology__pillars {
        gap: var(--space-lg);
    }

    .footer__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-2xl);
    }

    .footer__nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .scripture-card {
        padding: var(--space-2xl);
    }

    .pillar,
    .resource-card {
        padding: var(--space-xl);
    }

    .mentor__credentials {
        flex-direction: column;
        gap: var(--space-lg);
    }
}