/* Landing page — animated compass + fade-in */

/* ── Fade-in animation ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* All fade targets start invisible */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.9s ease-out forwards;
}

.fade-in.delay-1 { animation-delay: 0.3s; }
.fade-in.delay-2 { animation-delay: 0.7s; }
.fade-in.delay-3 { animation-delay: 1.1s; }
.fade-in.delay-4 { animation-delay: 1.5s; }
.fade-in.delay-5 { animation-delay: 1.9s; }

/* ── Compass container ── */
.compass-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 10px;
}

.compass-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 20px rgba(0, 51, 102, 0.15));
}

/* Slow idle rotation on the outer ring */
@keyframes idleSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.compass-ring {
    transform-origin: center;
    animation: idleSpin 60s linear infinite;
}

/* Needle follows cursor via JS (requestAnimationFrame) */
.compass-needle {
    transform-origin: center;
}

/* ── Title refinements (override base) ── */
#home .landing-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--dark-blue, #003366);
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    text-shadow: none;
    -webkit-text-stroke: unset;
    background: none;
    line-height: 1.15;
}

#home .landing-title .accent {
    color: var(--primary-color, #2d9cdb);
}

#home .landing-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    color: var(--text-color, #333333);
    max-width: 520px;
    margin: 12px auto 0;
    line-height: 1.6;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
}

/* ── Thin divider line ── */
.landing-divider {
    width: 60px;
    height: 1px;
    background: var(--primary-color, #2d9cdb);
    margin: 28px auto;
    opacity: 0.5;
}

/* ── CTA overrides ── */
.landing-cta {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.landing-cta .btn {
    padding: 14px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .compass-wrapper {
        width: 160px;
        height: 160px;
    }

    #home .landing-title {
        font-size: 2.6rem;
    }

    #home .landing-subtitle {
        font-size: 1.15rem;
        padding: 0 20px;
    }

    .landing-cta {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .landing-cta .btn {
        width: 210px;
        min-height: 48px;
    }
}
