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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(15, 76, 58, 0.15);
    color: #0F4C3A;
}

/* ── Navigation ── */
.nav {
    background: rgba(250, 246, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 207, 200, 0.5);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* ── Mobile Menu ── */
.mobile-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    position: relative;
    transition: opacity 0.3s ease;
}

.mobile-menu-link:hover {
    opacity: 0.7;
}

/* ── Scroll Indicator ── */
.scroll-line-fill {
    animation: scrollFill 2s ease-in-out infinite;
}

@keyframes scrollFill {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}

/* ── Marquee ── */
.marquee-track {
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Service Cards ── */
.service-card {
    transition: background 0.4s ease;
}

.service-card:hover {
    background: rgba(250, 246, 240, 0.8);
}

/* ── Reveal Animations ── */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ── Image Hover ── */
img {
    display: block;
}

/* ── Form ── */
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='%238A8580' 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 1rem center;
    padding-right: 2.5rem;
}

select:focus {
    outline: none;
    border-color: #0F4C3A;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #0F4C3A;
}

/* ── Smooth Scroll Offset ── */
section[id] {
    scroll-margin-top: 80px;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .nav {
        background: rgba(250, 246, 240, 0.98);
    }

    h1 .block {
        font-size: 2.5rem;
    }

    h1 .block:nth-child(2) {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) {
    h1 .block {
        font-size: 4rem;
    }

    h1 .block:nth-child(2) {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    h1 .block {
        font-size: 5rem;
    }

    h1 .block:nth-child(2) {
        font-size: 4.5rem;
    }
}

@media (min-width: 1280px) {
    h1 .block {
        font-size: 6rem;
    }

    h1 .block:nth-child(2) {
        font-size: 5.5rem;
    }
}
