/* ── Base & Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    /* Staggered delays */
    .card-service.reveal { transition-delay: 0ms; }
    .card-service.reveal:nth-child(2) { transition-delay: 80ms; }
    .card-service.reveal:nth-child(3) { transition-delay: 160ms; }
    .card-service.reveal:nth-child(4) { transition-delay: 240ms; }
    .card-service.reveal:nth-child(5) { transition-delay: 320ms; }
    .card-service.reveal:nth-child(6) { transition-delay: 400ms; }

    .card-phone.reveal { transition-delay: 0ms; }
    .card-phone.reveal:nth-child(2) { transition-delay: 100ms; }
    .card-phone.reveal:nth-child(3) { transition-delay: 200ms; }
    .card-phone.reveal:nth-child(4) { transition-delay: 300ms; }

    .card-testimonial.reveal { transition-delay: 0ms; }
    .card-testimonial.reveal:nth-child(2) { transition-delay: 120ms; }
    .card-testimonial.reveal:nth-child(3) { transition-delay: 240ms; }
}

/* ── Navbar ── */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
}

.nav-fixed.scrolled {
    background-color: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(4, 120, 87, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* ── Mobile Menu ── */
.mobile-menu-overlay {
    animation: menuOverlayIn 0.3s ease forwards;
}

@keyframes menuOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mobile-menu-link {
    display: block;
    color: rgb(2, 44, 34);
    text-decoration: none;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgb(209, 250, 229);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu-link:hover {
    color: rgb(4, 120, 87);
    padding-left: 0.5rem;
}

/* ── Floating Cards Animation ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.absolute.-top-6.-left-6 {
    animation: float 4s ease-in-out infinite;
}

.absolute.top-1\/3.-right-4 {
    animation: float-delayed 5s ease-in-out infinite 0.5s;
}

.absolute.-bottom-4.left-8 {
    animation: float-slow 4.5s ease-in-out infinite 1s;
}

/* ── Custom Selection ── */
::selection {
    background-color: rgb(4, 120, 87);
    color: rgb(254, 253, 248);
}

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid rgb(4, 120, 87);
    outline-offset: 2px;
}

/* ── Smooth image loading ── */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ── Print ── */
@media print {
    .nav-fixed, .mobile-menu-overlay, #menuBtn {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
