/* ===================================================================
   3SRB — Common Styles
   Shared across all pages: reset, variables, typography, nav, footer
   =================================================================== */

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

:root {
    --bg: #EDE8DC;
    --card: #FFFFFF;
    --primary: #5C2323;
    --secondary: #D8A23E;
    --accent: #B8860B;
    --text: #1A1A1A;
    --muted: #4A4A4A;
    --success: #8FA88A;
    --border-light: rgba(92, 35, 35, 0.08);

    --font-heading: 'Cormorant Garamond', serif;
    --font-subheading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-button: 'Montserrat', sans-serif;

    --section-max: 1200px;
    --nav-height: 72px;
    --section-padding: 80px 40px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-weight: 400;
    font-size: 17px;
}

/* ========== BACKGROUND TEXTURE & DEPTH ========== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(216, 162, 62, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(92, 35, 35, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(184, 134, 11, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle decorative circle that appears on pages with enough height */
body::after {
    content: '';
    position: fixed;
    bottom: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(92, 35, 35, 0.04);
    pointer-events: none;
    z-index: 0;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
}

h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: 0.5em;
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 500;
}

.subtitle {
    font-family: var(--font-subheading);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    color: var(--muted);
    font-style: italic;
}

.label {
    font-family: var(--font-button);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* ========== NAVIGATION ========== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 40px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(237, 232, 220, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Transparent nav for scroll-snap pages (home, disciple profiles, etc.) */
body.has-scroll-snap nav {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

body.has-scroll-snap nav.scrolled {
    background: rgba(237, 232, 220, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

/* ========== SCROLL SNAP (shared across scroll-snap pages) ========== */
/* Note: scroll-snap-type is set in each page's CSS (html selector).
   The has-scroll-snap class on body enables the snap-section styles below. */

body.has-scroll-snap .snap-section {
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body.has-scroll-snap .snap-section--auto {
    min-height: auto;
}

/* Sections that should NOT be scroll-snapped (e.g. back-home, footer) */
body.has-scroll-snap .no-snap {
    scroll-snap-align: end;
}
body.has-scroll-snap footer {
    scroll-snap-align: end;
}

/* ========== IN-PAGE NAVIGATION INDEX ========== */
.page-index {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.page-index a {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(92, 35, 35, 0.2);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    text-indent: -9999px;
    position: relative;
}

.page-index a:hover,
.page-index a.active {
    background: var(--primary);
    transform: scale(1.4);
}

.page-index a span {
    display: none;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-button);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    text-indent: 0;
}

.page-index a:hover span {
    display: block;
}

/* ========== RESPONSIVE: Page Index (hide on mobile) ========== */
@media (max-width: 768px) {
    .page-index {
        display: none;
    }
}

/* ========== DISCIPLES STRIP (shared across profile pages) ========== */
.disciples-strip {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 20px;
    background: rgba(237, 232, 220, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(92, 35, 35, 0.06);
    font-size: 0.75rem;
    flex-wrap: wrap;
}

.strip-label {
    font-family: var(--font-button);
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-right: 4px;
}

.strip-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.strip-link {
    font-family: var(--font-button);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--muted);
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 20px;
    transition: color 0.4s cubic-bezier(0.23, 1, 0.320, 1), background 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.strip-link:hover {
    color: var(--primary);
    background: rgba(92, 35, 35, 0.08);
}

.strip-link.active {
    color: var(--primary);
    font-weight: 600;
    background: rgba(92, 35, 35, 0.08);
}

.strip-photo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    border: 1.5px solid rgba(92, 35, 35, 0.1);
    flex-shrink: 0;
}

.strip-link.active .strip-photo {
    border-color: var(--primary);
}

.strip-sep {
    color: var(--muted);
    opacity: 0.25;
    font-size: 0.7rem;
}

/* Push hero down on profile pages with disciples strip */
body.has-scroll-snap .hero {
    padding-top: calc(var(--nav-height) + 48px + 40px);
}

/* Responsive: disciples strip */
@media (max-width: 900px) {
    .disciples-strip {
        gap: 6px;
        padding: 6px 12px;
        font-size: 0.65rem;
    }
    .strip-label {
        display: none;
    }
    body.has-scroll-snap .hero {
        padding-top: calc(var(--nav-height) + 40px + 40px);
    }
}

@media (max-width: 600px) {
    .strip-photo {
        width: 18px;
        height: 18px;
    }
    .strip-link {
        font-size: 0.6rem;
        padding: 2px 6px;
        gap: 4px;
    }
}

/* ========== SECTION DIVIDER ========== */
.section-divider {
    text-align: center;
    padding: 0 40px;
    color: var(--muted);
    font-size: 0.7rem;
    font-family: var(--font-button);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.3;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: currentColor;
    opacity: 0.3;
}

.section-divider::before { left: 5%; }
.section-divider::after { right: 5%; }

.nav-logo-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    line-height: 1.2;
    gap: 1px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.nav-tagline {
    font-family: var(--font-heading);
    font-size: 0.90rem;
    font-style: italic;
    color: var(--muted);
    letter-spacing: 0.01em;
    opacity: 0.75;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-button);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    font-weight: 500;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a.cta-nav {
    background: var(--primary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    opacity: 1;
    transition: background 0.4s cubic-bezier(0.23, 1, 0.320, 1), transform 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.nav-links a.cta-nav:hover {
    background: #7a2e2e;
    transform: translateY(-2px);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    border-radius: 2px;
}

/* ========== FOOTER ========== */
footer {
    padding: 60px 40px;
    text-align: center;
    background: var(--card);
    border-top: 1px solid var(--border-light);
}

footer p {
    font-size: 0.85rem;
    color: var(--muted);
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer .footer-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.footer-header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.footer-brand:hover {
    color: var(--accent);
}

.footer-credits {
    border-top: 0px solid var(--border-light);
}

.heart {
    color: var(--primary);
    display: inline-block;
    animation: heartBeat 1.8s ease-in-out infinite;
}

@keyframes heartBeat {

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

    15% {
        transform: scale(1.2);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    60% {
        transform: scale(1);
    }
}

.credits-label {
    font-family: var(--font-button);
    font-size: 0.6rem !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted) !important;
    margin-bottom: 0.8rem;
}

.well-wishers {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
}

.well-wishers p {
    font-family: var(--font-subheading);
    font-size: 0.85rem !important;
    font-style: italic;
    color: var(--muted) !important;
    line-height: 1.7;
}

.well-wishers .ww-heart {
    color: var(--secondary);
    opacity: 0.6;
}

.credits-list {
    display: inline;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.credit-item {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--primary);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.credit-item:hover {
    background: rgba(92, 35, 35, 0.06);
    color: var(--accent);
    text-decoration: none;
}

.credit-sep {
    color: var(--secondary);
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ========== ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== BACK HOME LINK ========== */
.back-home {
    text-align: center;
    padding: 40px;
}

.back-home a {
    font-family: var(--font-button);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.back-home a:hover {
    opacity: 1;
}

/* ========== DISCIPLES SECTION (shared across profile pages) ========== */
.disciples-section {
    padding: 80px 40px 100px;
    position: relative;
}

.disciples-inner {
    max-width: var(--section-max);
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.disciples-header {
    text-align: center;
    margin-bottom: 3rem;
}

.disciples-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 500;
    margin-bottom: 0.3em;
}

.disciples-header p {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1rem;
}

.disciples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Photo wrapper for master photo (glow & border positioned here) */
.master-photo-wrap {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.disciple-card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
}



a.disciple-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.disciple-card--active {
    border-color: var(--secondary);
    box-shadow: 0 4px 24px rgba(216, 162, 62, 0.12);
}

.disciple-photo {
    width: 100%;
    aspect-ratio: 3/4;
    max-height: 240px;
    overflow: hidden;
    background: var(--bg);
}
.disciple-card-group
{
    
    max-height: 501px !important;
  
}

.disciple-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

a.disciple-card:hover .disciple-photo img {
    transform: scale(1.05);
}

.disciple-info {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.disciple-badge {
    display: inline-block;
    font-family: var(--font-button);
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(216, 162, 62, 0.1);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 0.6rem;
    align-self: flex-start;
    font-weight: 500;
}

.disciple-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.disciple-role {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
    font-family: var(--font-button);
    letter-spacing: 0.03em;
}

.disciple-desc {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
    flex: 1;
}

.disciple-link {
    font-family: var(--font-button);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 1rem;
    display: inline-block;
    font-weight: 500;
}

/* ========== RESPONSIVE: Disciples grid ========== */
@media (max-width: 900px) {
    .disciples-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .disciples-section {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ========== RESPONSIVE — NAV ONLY ========== */
@media (max-width: 900px) {
    nav {
        padding: 0 24px;
    }

    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(250, 247, 242, 0.98);
        padding: 20px;
        gap: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }
}

@media (max-width: 600px) {
    :root {
        --nav-height: 60px;
        --section-padding: 48px 20px;
    }

    body {
        font-size: 15px;
    }

    .nav-tagline {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(237, 232, 220, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 20px 24px;
        gap: 1rem;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

/* 600px credit list */
@media (max-width: 600px) {
    .credits-list {
        flex-direction: column;
        gap: 0.4rem;
    }

    .credit-sep {
        display: none;
    }
}