/*
 * sections/hero.css
 * Hero section: two-column layout, typography, CTA row, photo panel,
 * and entrance animations. Scoped entirely to .hero and its children.
 * Depends on: tokens.css, components.css
 */

/* ─── HERO GRID ─────────────────────────────────────────────────────────────── */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.hero-left {
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-right: 1px solid var(--border);
}

.hero-right {
    position: relative;
    overflow: hidden;
    background: var(--bg2);
    display: flex;
    align-items: flex-end;
}

/* ─── LEFT PANEL CONTENT ────────────────────────────────────────────────────── */

.hero-eyebrow {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--warm1);
    margin-bottom: 32px;
}

.hero-name {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(56px, 7vw, 100px);
    line-height: 0.95;
    letter-spacing: -0.01em;
    margin-bottom: 40px;
}
.hero-name em {
    font-style: italic;
    color: var(--ink2);
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--ink2);
    max-width: 380px;
    line-height: 1.85;
    margin-bottom: 48px;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* ─── RIGHT PANEL CONTENT ───────────────────────────────────────────────────── */

/* Warm atmospheric placeholder shown until a real photo is added.
   To use a photo: replace the inner div with <img src="..." alt="..."> */
.hero-photo-placeholder {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 60% 40%, rgba(201, 132, 90, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 80%, rgba(143, 168, 130, 0.08) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-photo-placeholder .photo-hint {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink3);
    opacity: 0.5;
    border: 1px dashed var(--border);
    padding: 16px 24px;
}

.hero-caption {
    position: relative;
    z-index: 1;
    padding: 32px 40px;
    font-family: var(--display);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--ink3);
}

/* ─── HERO PHOTO (real image) ───────────────────────────────────────────────── */
/*
 * When adding a real photo, replace the .hero-photo-placeholder div with:
 *   <img src="img/your-photo.jpg" alt="Vir Thakor" class="hero-img" />
 *
 * Recommended source size: 900 × 1200 px  (portrait 3:4, 2× retina)
 * The image will fill the right panel and crop from center automatically.
 */
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* keep face in frame — adjust to taste */
    display: block;
}

/* ─── ENTRANCE ANIMATIONS ────────────────────────────────────────────────────── */

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Each direct child of hero-left animates in sequence */
.hero-left > * {
    animation: riseIn 0.7s ease both;
}

.hero-eyebrow {
    animation-delay: 0.1s;
}
.hero-name {
    animation-delay: 0.25s;
}
.hero-desc {
    animation-delay: 0.4s;
}
.hero-cta-row {
    animation-delay: 0.55s;
}
