/**
 * Albireo - Main Styles
 * Section-specific styles for the homepage and inner pages.
 * 
 * Image credits (Unsplash - free for commercial use):
 * Hero: Greg Rakozy (night sky silhouette) - photo-1419242902214-272b3f66ee7a
 * Story divider: Kristopher Roller (milky way) - photo-1462332420958-a05d1e002413
 * Journey bg: Jeremy Thomas (deep space) - photo-1462331940025-496dfbfc7564
 * Presence: Various - see section comments
 */

/* ═══════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════ */

/* Default parallax images (overridable by themes) */
.parallax-1 { background-image: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?w=1600&q=80'); }
.parallax-2 { background-image: url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?w=1600&q=80'); }
.parallax-3 { background-image: url('https://images.unsplash.com/photo-1507400492013-162706c8c05e?w=1600&q=80'); }

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url('https://images.unsplash.com/photo-1419242902214-272b3f66ee7a?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 14, 26, 0.5) 0%,
        rgba(10, 14, 26, 0.3) 40%,
        rgba(10, 14, 26, 0.7) 80%,
        rgba(10, 14, 26, 1) 100%
    );
}

/* Subtle star shimmer effect */
.hero-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 55% 45%, rgba(212,165,116,0.4), transparent);
    animation: pulse 4s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 var(--container-padding);
    max-width: 800px;
    animation: fadeInUp 1.2s ease-out;
}

.hero-logo {
    margin-bottom: 20px;
}

.hero-logo-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    animation: fadeIn 1.5s ease-out;
    filter: drop-shadow(0 0 20px rgba(var(--accent-rgb), 0.3));
}

.hero h1 {
    font-family: var(--font-display);
    font-size: var(--fs-hero);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 4px;
    color: var(--warm-white);
    letter-spacing: 3px;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--soft-gold);
    letter-spacing: 2px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.hero-quote {
    font-size: var(--fs-hero-sub);
    font-weight: 300;
    font-style: italic;
    color: var(--light-text);
    margin: 0 auto 40px;
    line-height: 1.8;
    max-width: 600px;
}

.hero-quote::before { content: '\201C'; color: var(--soft-gold); font-size: 2rem; }
.hero-quote::after  { content: '\201D'; color: var(--soft-gold); font-size: 2rem; }

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-hint {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    text-align: center;
    color: var(--soft-gold);
    opacity: 0.6;
    animation: fadeIn 2s ease 1s both;
}

.scroll-hint span {
    display: block;
    font-size: var(--fs-tiny);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    margin: 0 auto;
    border-left: 1.5px solid var(--soft-gold);
    border-bottom: 1.5px solid var(--soft-gold);
    transform: rotate(-45deg);
    animation: float 2s ease-in-out infinite;
}

[dir="ltr"] .scroll-arrow {
    border-left: 1.5px solid var(--soft-gold);
    border-bottom: 1.5px solid var(--soft-gold);
}

/* ═══════════════════════════════════════
   Story Section
   ═══════════════════════════════════════ */

.story {
    background: var(--deep-blue);
}

/* Persona introduction */
.persona-intro {
    max-width: var(--container-narrow);
    margin: 0 auto 40px;
    text-align: center;
    padding: 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(212,165,116,0.06) 0%, rgba(212,165,116,0.02) 100%);
    border: 1px solid rgba(212,165,116,0.12);
}

.persona-greeting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.persona-wave {
    font-size: 1.8rem;
    display: inline-block;
    animation: wave 2s ease-in-out 1s 1;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%   { transform: rotate(0deg); }
    10%  { transform: rotate(14deg); }
    20%  { transform: rotate(-8deg); }
    30%  { transform: rotate(14deg); }
    40%  { transform: rotate(-4deg); }
    50%  { transform: rotate(10deg); }
    60%  { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.persona-greeting h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--warm-white);
}

.persona-tagline {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--light-text);
    max-width: 540px;
    margin: 0 auto;
}

.story-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    font-size: var(--fs-body);
    line-height: 2;
}

.story-content p {
    margin-bottom: 22px;
    color: var(--light-text);
}

.story-content strong {
    color: var(--warm-white);
    font-weight: 500;
}

/* ═══════════════════════════════════════
   Journey (Timeline)
   ═══════════════════════════════════════ */

.journey {
    /* Subtle space texture behind timeline */
    background:
        linear-gradient(var(--midnight), var(--midnight)),
        url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?auto=format&fit=crop&w=1920&q=30');
    background-size: cover;
    background-attachment: fixed;
}

/* ═══════════════════════════════════════
   What I Do
   ═══════════════════════════════════════ */

.what-i-do {
    background: var(--deep-blue);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.activity-card {
    padding: var(--spacing-medium) 28px;
    text-align: center;
}

.activity-card .card-icon {
    font-size: 2.8rem;
}

/* ═══════════════════════════════════════
   Book Section
   ═══════════════════════════════════════ */

.book-section {
    background: var(--midnight);
}

.book-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-large);
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.book-cover-wrapper {
    flex: 0 0 auto;
    position: relative;
}

.book-cover-wrapper::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    border-radius: calc(var(--radius-medium) + 4px);
    pointer-events: none;
}

.book-cover {
    max-width: 260px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-deep);
    border: 1px solid var(--subtle-border);
    transition: var(--transition-slow);
}

.book-cover:hover {
    transform: rotate(-2deg) scale(1.02);
}

.book-text {
    flex: 1;
    min-width: 280px;
}

.book-text h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--soft-gold);
    margin-bottom: 18px;
    font-weight: 400;
}

.book-text p {
    font-size: var(--fs-body);
    line-height: 1.85;
    color: var(--light-text);
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════
   News Section
   ═══════════════════════════════════════ */

.news {
    background: var(--deep-blue);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ═══════════════════════════════════════
   Presence / Media Section
   ═══════════════════════════════════════ */

.presence {
    background: var(--midnight);
}

.presence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
}

/* ═══════════════════════════════════════
   Contact Section
   ═══════════════════════════════════════ */

.contact {
    background: var(--deep-blue);
    /* Subtle background texture */
    background-image:
        radial-gradient(ellipse at 20% 80%, rgba(var(--accent-rgb), 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(91, 143, 185, 0.03) 0%, transparent 50%);
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: var(--spacing-large);
}

.contact-card {
    padding: var(--spacing-medium) 20px;
    text-align: center;
}

.contact-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 14px;
}

.contact-card h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--warm-white);
    font-weight: 500;
}

.contact-card p {
    font-size: var(--fs-small);
    color: var(--light-text);
    line-height: 1.6;
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

#contact-form .btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════
   Inner Pages - Common Layout
   ═══════════════════════════════════════ */

.page-hero {
    padding: 160px 0 60px;
    text-align: center;
    background: var(--midnight);
    border-bottom: 1px solid var(--subtle-border);
}

.page-content {
    background: var(--deep-blue);
}

/* ═══════════════════════════════════════
   Responsive
   ═══════════════════════════════════════ */

@media (max-width: 1024px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 768px) {
    .hero-bg::before {
        background-attachment: scroll; /* Fix for mobile */
    }

    .journey {
        background-attachment: scroll;
    }

    .activities-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .contact-options {
        grid-template-columns: 1fr 1fr;
    }

    .book-container {
        flex-direction: column;
        text-align: center;
    }

    .book-text h3 {
        font-size: 1.6rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 260px;
    }
}

@media (max-width: 480px) {
    .contact-options {
        grid-template-columns: 1fr;
    }
}
