/* ===================================================================
   3SRB — Sri S N Tavariya Ji page specific styles
   =================================================================== */

html {
    scroll-snap-type: y proximity;
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 40px 60px;
    position: relative;
    /* overflow is handled below to prevent photo clipping */
}

/* Portrait image - constrain height so it doesn't overflow hero on smaller screens */
.hero-portrait {
    position: relative;
}

/* Decorative border frame — like homepage master photo */
.hero-portrait .master-photo-wrap::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid rgba(216, 162, 62, 0.2);
    border-radius: 16px;
    pointer-events: none;
    z-index: 0;
}

.hero-portrait .master-photo-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 162, 62, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-portrait .master-photo-wrap img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow:
        0 8px 40px rgba(0,0,0,0.06),
        0 0 0 1px rgba(216, 162, 62, 0.08);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    position: relative;
    z-index: 1;
}

.hero-portrait .master-photo-wrap img:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.1),
        0 0 0 2px rgba(216, 162, 62, 0.15);
}

.hero-inner {
    max-width: var(--section-max);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-portrait {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.hero-portrait figcaption {
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
    font-family: var(--font-body);
    font-weight: 400;
}

.hero-portrait figcaption strong {
    color: var(--text);
    font-weight: 500;
}

.hero-text {
    display: flex;
    flex-direction: column;
}

.hero-text .hero-badge {
    display: inline-block;
    font-family: var(--font-button);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(184, 134, 11, 0.2);
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 0.3em;
}

.hero-text .subtitle {
    font-family: var(--font-subheading);
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-style: italic;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.hero-text .intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    max-width: 540px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-family: var(--font-button);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.4;
}

.hero-scroll-indicator .scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--muted), transparent);
}

/* ========== CONTENT ========== */
.content-section {
    padding: 80px 40px;
    max-width: var(--section-max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.content-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.content-section p:last-child { margin-bottom: 0; }

.bio-highlight {
    background: var(--card);
    border-radius: 16px;
    padding: 50px;
    margin: 2rem 0;
    border-left: 4px solid var(--secondary);
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.bio-highlight h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.book-card {
    background: var(--card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    border: 1px solid var(--border-light);
}

.book-card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.book-card .book-meta { font-size: 0.85rem; color: var(--muted); font-style: italic; }

.quote-block {
    font-family: var(--font-subheading);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-style: italic;
    color: var(--primary);
    text-align: center;
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 3rem auto;
    border-top: 2px solid var(--secondary);
    border-bottom: 2px solid var(--secondary);
    line-height: 1.5;
}

.quote-block cite {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-style: normal;
    color: var(--muted);
    margin-top: 1rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-portrait img {
        max-width: 300px;
    }
    .hero-text .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-text .intro {
        max-width: 100%;
    }
    .hero, .content-section {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 600px) {
    .hero { padding: calc(var(--nav-height) + 40px) 20px 40px; }
    .hero-portrait img { max-width: 240px; }
    .content-section { padding: 50px 20px; }
    .bio-highlight { padding: 30px 20px; }
    .books-grid { grid-template-columns: 1fr; }
}

/* ========== FIX: disciple photos - prevent clipping ========== */
.disciple-photo {
    overflow: visible;
}

.disciple-photo img {
    object-fit: contain;
    object-position: center center;
}
