html { scroll-behavior: smooth; }

::selection { background: rgba(197, 160, 89, 0.3); color: #1A2B48; }

:focus-visible { outline: 2px solid #C5A059; outline-offset: 2px; }

.glass {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
}
.dark .glass {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(16, 26, 43, 0.7);
}

.section-padding { padding: 4rem 1rem; }
@media (min-width: 640px) { .section-padding { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .section-padding { padding: 6rem 2rem; } }

.container-wide { max-width: 80rem; margin-left: auto; margin-right: auto; }

.heading-display {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
}
@media (min-width: 640px) { .heading-display { font-size: 3rem; } }
@media (min-width: 1024px) { .heading-display { font-size: 3.75rem; } }

.heading-section {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}
@media (min-width: 640px) { .heading-section { font-size: 2.25rem; } }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    background: #C5A059;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 24px rgba(26, 43, 72, 0.08);
    transition: all 0.3s;
}
.btn-primary:hover { background: #9E8047; box-shadow: 0 12px 48px rgba(26, 43, 72, 0.15); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 2px solid #1A2B48;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1A2B48;
    transition: all 0.3s;
}
.btn-outline:hover { background: #1A2B48; color: white; }
.dark .btn-outline { border-color: white; color: white; }
.dark .btn-outline:hover { background: white; color: #1A2B48; }

.card-hover { transition: all 0.3s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 48px rgba(26, 43, 72, 0.15); }

.form-input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: white;
    padding: 0.75rem 1rem;
    color: #1A2B48;
    transition: border-color 0.2s;
}
.form-input:focus { border-color: #C5A059; outline: none; box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.3); }
.dark .form-input { border-color: #475569; background: #101A2B; color: white; }

#site-header.scrolled {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(26, 43, 72, 0.12);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.dark #site-header.scrolled {
    background: rgba(16, 26, 43, 0.7);
}

.fade-in { animation: fadeIn 0.6s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.hero-carousel .hero-slide img {
    transform: scale(1.05);
    transition: transform 8s ease-out;
}
.hero-carousel .hero-slide.is-active img {
    transform: scale(1);
}

.circular-chart-ring {
    filter: drop-shadow(0 0 8px rgba(115, 194, 251, 0.45));
}

.circular-chart-value {
    font-variant-numeric: tabular-nums;
    transition: transform 0.2s ease;
}

.circular-chart.is-animating .circular-chart-value {
    transform: scale(1.05);
}

.circular-chart.is-complete .circular-chart-value {
    transform: scale(1);
}

/* Partners marquee — scroll right to left */
.partners-marquee {
    overflow: hidden;
    width: 100%;
}

.partners-marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 3rem;
    padding: 1rem 0;
    animation: marquee-rtl 35s linear infinite;
    will-change: transform;
}

.partners-marquee:hover .partners-marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-rtl {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.partner-logo-card {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16rem;
    height: 10rem;
    padding: 1.25rem 1.75rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #fff;
    box-shadow: 0 4px 24px rgba(26, 43, 72, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
    .partner-logo-card {
        width: 18rem;
        height: 11rem;
        padding: 1.5rem 2rem;
    }
}

@media (min-width: 1024px) {
    .partner-logo-card {
        width: 20rem;
        height: 12rem;
    }
}

.dark .partner-logo-card {
    border-color: rgba(71, 85, 105, 0.6);
    background: #101A2B;
}

.partner-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(26, 43, 72, 0.12);
}

.partner-logo-img {
    max-height: 5.5rem;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.9;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

@media (min-width: 768px) {
    .partner-logo-img {
        max-height: 6.5rem;
    }
}

@media (min-width: 1024px) {
    .partner-logo-img {
        max-height: 7.5rem;
    }
}

.partner-logo-card:hover .partner-logo-img {
    filter: grayscale(0%);
    opacity: 1;
}

.partners-marquee-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 5rem;
    z-index: 2;
    pointer-events: none;
}

.partners-marquee-fade-left {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.partners-marquee-fade-right {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.dark .partners-marquee-fade-left {
    background: linear-gradient(to right, #101A2B, transparent);
}

.dark .partners-marquee-fade-right {
    background: linear-gradient(to left, #101A2B, transparent);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .partners-marquee-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 72rem;
        margin: 0 auto;
        padding: 0 1rem;
    }
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-only:focus { position: fixed; width: auto; height: auto; padding: 0.5rem 1rem; margin: 0; overflow: visible; clip: auto; white-space: normal; z-index: 100; }
