/* ============================================
   Pro Painting & Carpentry — Custom Styles
   Classic & Elegant | Midnight Blue + Mint
   ============================================ */

/* ---- Custom clip-path for hero ---- */
.clip-hero-right {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

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

/* ---- Selection color ---- */
::selection {
    background-color: #96d3be;
    color: #0f142b;
}

/* ---- Focus visible ---- */
:focus-visible {
    outline: 2px solid #96d3be;
    outline-offset: 2px;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
    background: #d5ddef;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8192d1;
}

/* ---- Hero eyebrow animation ---- */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-eyebrow {
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

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

#top h1,
#top p,
#top .flex.flex-col.sm\:flex-row {
    animation: fadeInUp 0.8s ease-out both;
}

#top h1 {
    animation-delay: 0.5s;
}

#top p {
    animation-delay: 0.7s;
}

#top .flex.flex-col.sm\:flex-row {
    animation-delay: 0.9s;
}

/* ---- Reveal animations (progressive enhancement) ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal[data-revealed="false"] {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---- Navbar transition ---- */
.nav-scrolled #navbar {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(15, 20, 43, 0.08);
}

.nav-scrolled .nav-text-color {
    color: #0f142b;
}

/* ---- Mobile menu ---- */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(6) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-nav-link:nth-child(7) { transition-delay: 0.3s; }

/* ---- Image hover overlay ---- */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ---- Service card hover ---- */
.group:hover {
    transform: translateY(-4px);
}

/* ---- Button ripple effect ---- */
button, a[role="button"] {
    position: relative;
    overflow: hidden;
}

/* ---- Form input focus states ---- */
input:focus,
select:focus,
textarea:focus {
    border-color: #96d3be;
    box-shadow: 0 0 0 3px rgba(150, 211, 190, 0.2);
}

/* ---- Testimonial card hover ---- */
.bg-midnight-50:hover {
    box-shadow: 0 20px 60px rgba(15, 20, 43, 0.1) !important;
    transform: translateY(-4px);
}

/* ---- Responsive adjustments ---- */
@media (max-width: 767px) {
    .clip-hero-right {
        clip-path: none;
    }

    #top {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    #top h1 {
        font-size: 2.75rem;
    }

    #top .relative.-bottom-8.-left-8 {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 24px;
        max-width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #top h1 {
        font-size: 4rem;
    }
}
