/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #4fb88c;
    color: #0a1628;
}

/* ===== Clip-path for hero right section ===== */
.clip-hero-right {
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0% 100%);
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 250, 248, 0.97);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
    backdrop-filter: blur(8px);
}

.nav-logo {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo {
    color: #0a1628;
}

/* ===== Mobile Menu ===== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.hamburger-line {
    transition: all 0.3s ease;
}

#mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #4fb88c;
    transition: width 0.4s ease;
}

.service-card:hover::after {
    width: 100%;
}

/* ===== Gallery ===== */
.gallery-img {
    cursor: pointer;
}

.gallery-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0);
    transition: background 0.3s ease;
}

.gallery-img:hover::after {
    background: rgba(10, 22, 40, 0.1);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ===== Form Focus Styles ===== */
input:focus,
textarea:focus,
select:focus {
    border-color: #4fb88c !important;
}

/* ===== Custom Select Arrow ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232d619a' 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 0 center;
    padding-right: 2rem;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #9fb5d0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7899be;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .clip-hero-right {
        clip-path: none;
        position: absolute;
        width: 100%;
        height: 40%;
        top: auto;
        bottom: 0;
    }

    #hero {
        padding-top: 6rem;
    }

    .lg\:col-start-9 {
        order: -1;
    }
}

/* ===== Print ===== */
@media print {
    #navbar,
    #mobile-menu,
    .scroll-indicator {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
