/* ============================================
   C T Sales Inc — Custom Styles
   Bold Editorial | Midnight Blue + Mint
   ============================================ */

/* ---------- Base & Typography ---------- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(52, 212, 160, 0.3);
    color: #ffffff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1e3454;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2c4a72;
}

/* ---------- Navbar ---------- */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #34d4a0;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ---------- Hero Animations ---------- */
.hero-elem {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}
.hero-elem:nth-child(1) { animation-delay: 0.1s; }
.hero-elem:nth-child(2) { animation-delay: 0.3s; }
.hero-elem:nth-child(3) { animation-delay: 0.5s; }
.hero-elem:nth-child(4) { animation-delay: 0.7s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-elem {
        opacity: 1;
        transform: none;
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ---------- Mobile Menu ---------- */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ---------- Form Styles ---------- */
select option {
    background-color: #0d1a2e;
    color: #ffffff;
}

/* ---------- Service Card Hover Glow ---------- */
.group:hover .w-14 {
    box-shadow: 0 0 20px rgba(52, 212, 160, 0.2);
}

/* ---------- Testimonial Quote Mark ---------- */
/* Already handled via SVG */

/* ---------- CTA Section Pattern ---------- */
/* Pattern overlay handled in HTML */

/* ---------- Print Styles ---------- */
@media print {
    .reveal, .hero-elem {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    #navbar, #mobile-menu {
        display: none;
    }
}
