/* ─── Custom Styles for Summit Heights Gateway ─── */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Navigation ─── */
#site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(10, 37, 64, 0.06);
}

#site-header.scrolled {
    box-shadow: 0 1px 20px rgba(10, 37, 64, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2DD4BF;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

/* ─── Mobile Menu ─── */
.mobile-nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: #14B8A6;
}

/* ─── Hero Content Animation (above fold — always visible) ─── */
.hero-content {
    opacity: 1;
    animation: heroFadeIn 0.8s ease forwards;
}

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

/* ─── Scroll Reveal (below fold only — progressive enhancement) ─── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* ─── Image hover effects ─── */
.relative .rounded-3xl.overflow-hidden {
    transition: transform 0.5s ease;
}

/* ─── Card hover lift ─── */
.group:hover {
    transform: translateY(-4px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.group {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* ─── Input focus styles ─── */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

/* ─── Button ripple effect ─── */
button, a {
    transition: all 0.25s ease;
}

/* ─── Custom scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F0FDFA;
}

::-webkit-scrollbar-thumb {
    background: #99F6E4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2DD4BF;
}

/* ─── Selection color ─── */
::selection {
    background: #99F6E4;
    color: #0A2540;
}

/* ─── Responsive adjustments ─── */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.15;
    }
}

/* ─── Print styles ─── */
@media print {
    #site-header,
    #mobile-menu,
    .reveal {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }

    footer {
        background: #0A2540 !important;
        color: white !important;
    }
}
