/* Custom styles for Paramount Business Advisors */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefcf7;
}
::-webkit-scrollbar-thumb {
    background: #d4a84b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c49a3a;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 75, 0.2);
    color: #0a1628;
}

/* Hero reveal animations */
.hero-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.hero-reveal:nth-child(2) { transition-delay: 0.1s; }
.hero-reveal:nth-child(3) { transition-delay: 0.2s; }
.hero-reveal:nth-child(4) { transition-delay: 0.3s; }
.hero-reveal:nth-child(5) { transition-delay: 0.4s; }
.hero-reveal:nth-child(6) { transition-delay: 0.5s; }

.hero-image {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-image.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Service card hover */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, background-color 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Approach step animation */
.approach-step {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.approach-step.revealed {
    opacity: 1;
    transform: translateY(0);
}
.approach-step:nth-child(1) { transition-delay: 0s; }
.approach-step:nth-child(2) { transition-delay: 0.1s; }
.approach-step:nth-child(3) { transition-delay: 0.2s; }
.approach-step:nth-child(4) { transition-delay: 0.3s; }

/* Intersection observer animations */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar glass effect */
.nav-glass {
    background: rgba(254, 252, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.05);
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Menu animation */
.menu-line {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.menu-open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.25rem;
}

/* Custom select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a1628' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Image hover zoom */
img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(rgba(10, 22, 40, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4a84b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Tablet adjustments */
@media (max-width: 767px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .hero-reveal:nth-child(1) { transition-delay: 0s; }
}
