* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', sans-serif;
    background: #FAFAF5;
    color: #0a0f0c;
    overflow-x: hidden
}

::-webkit-scrollbar {
    width: 6px
}

::-webkit-scrollbar-track {
    background: #FAFAF5
}

::-webkit-scrollbar-thumb {
    background: #A3B18A;
    border-radius: 10px
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: .6
    }

    100% {
        transform: scale(1.8);
        opacity: 0
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

@keyframes marquee-rev {
    0% {
        transform: translateX(-50%)
    }

    100% {
        transform: translateX(0)
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0)
    }

    to {
        transform: rotate(360deg)
    }
}

@keyframes drift {

    0%,
    100% {
        transform: translate(0, 0)
    }

    33% {
        transform: translate(20px, -15px)
    }

    66% {
        transform: translate(-15px, 10px)
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s cubic-bezier(.22, 1, .36, 1)
}

.reveal.vis {
    opacity: 1;
    transform: translateY(0)
}

.reveal-d1 {
    transition-delay: .1s
}

.reveal-d2 {
    transition-delay: .2s
}

.reveal-d3 {
    transition-delay: .3s
}

.reveal-d4 {
    transition-delay: .4s
}

/* === 1. NAV: sliding pill === */
.nav-pill {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(224, 221, 213, .7);
    box-shadow: 0 10px 40px -10px rgba(15, 31, 20, .08);
}

.nav-track {
    position: relative
}

.nav-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    background: #344E41;
    border-radius: 8px;
    transition: all .35s cubic-bezier(.22, 1, .36, 1);
    opacity: 0;
    z-index: 0;
}

.nav-link {
    position: relative;
    z-index: 1;
    padding: 7px 14px;
    color: #6b6b6b;
    font-size: 13px;
    font-weight: 500;
    transition: color .3s;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: #fff
}

.nav-link[data-href] {
    cursor: pointer
}

/* === 2. HERO === */
.hero-bg {
    background:
        radial-gradient(ellipse at 80% 20%, rgba(88, 129, 87, .18) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(163, 177, 138, .12) 0%, transparent 50%),
        linear-gradient(135deg, #0a0f0c 0%, #1a3324 50%, #0a0f0c 100%);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #344E41, #A3B18A);
    z-index: 60;
    transition: width .1s;
}

/* === 3. TRUST TAPE === */
.marquee-track {
    display: flex;
    animation: marquee 40s linear infinite;
    width: max-content
}

.marquee-track.rev {
    animation: marquee-rev 50s linear infinite
}

/* === 4. ABOUT drop-cap === */
.drop-cap::first-letter {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    float: left;
    font-size: 4.5rem;
    line-height: 0.85;
    padding: 8px 12px 0 0;
    color: #344E41;
}

.sticky-vert {
    position: sticky;
    top: 100px
}

@media (max-width: 768px) {
    .sticky-vert {
        position: static
    }
}

/* === 5. WHY asymmetric === */
.why-tile {
    transition: all .4s cubic-bezier(.22, 1, .36, 1);
    cursor: default
}

.why-tile:hover {
    transform: translateY(-4px)
}

/* === 6. SERVICES card flip === */
.flip-card {
    perspective: 1200px;
    height: 220px;
    cursor: pointer
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .65s cubic-bezier(.22, 1, .36, 1);
}

.flip-card.flipped .flip-inner,
.flip-card:hover .flip-inner {
    transform: rotateY(180deg)
}

.flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flip-back {
    transform: rotateY(180deg)
}

@media (max-width: 1024px) {
    .flip-card:hover .flip-inner {
        transform: rotateY(0)
    }

    .flip-card.flipped .flip-inner {
        transform: rotateY(180deg)
    }
}

/* === 7. STATS ladder === */
.stat-bar {
    position: relative;
    overflow: hidden
}

.stat-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(52, 78, 65, .08), rgba(163, 177, 138, .15));
    border-left: 3px solid #344E41;
    width: 0;
    transition: width 1.5s cubic-bezier(.22, 1, .36, 1);
}

.stat-bar.vis .stat-fill {
    width: var(--w)
}

/* === 8. SUBSCRIBE rotating ring === */
.ring-rotate {
    animation: spin-slow 22s linear infinite
}

/* === 9. REVIEWS scroll-snap === */
.rv-scroll {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none
}

.rv-scroll::-webkit-scrollbar {
    display: none
}

.rv-card {
    scroll-snap-align: center
}

/* === 10. FAQ expanding rows === */
.faq-row {
    transition: all .4s cubic-bezier(.22, 1, .36, 1)
}

.faq-watermark {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 8rem;
    color: rgba(52, 78, 65, .05);
    line-height: 1;
    pointer-events: none;
    transition: color .4s;
}

.faq-row.open .faq-watermark {
    color: rgba(52, 78, 65, .12)
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all .5s cubic-bezier(.22, 1, .36, 1)
}

.faq-row.open .faq-answer {
    max-height: 300px;
    opacity: 1;
    padding-top: 16px
}

.faq-toggle {
    transition: transform .4s
}

.faq-row.open .faq-toggle {
    transform: rotate(45deg)
}

/* === 11. CONTACT floating card === */
.contact-bg-left {
    background:
        radial-gradient(circle at 30% 50%, rgba(52, 78, 65, .15) 0%, transparent 60%),
        #0a0f0c;
}

.map-grid-dark {
    background-image:
        linear-gradient(rgba(163, 177, 138, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(163, 177, 138, .06) 1px, transparent 1px);
    background-size: 40px 40px
}

.contact-pin {
    animation: drift 4s ease-in-out infinite
}

/* === Toast === */
.toast-msg {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    background: #344E41;
    color: #fff;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 20px 50px -10px rgba(52, 78, 65, .35);
    transform: translateY(16px);
    opacity: 0;
    transition: all .4s cubic-bezier(.22, 1, .36, 1);
    display: flex;
    align-items: center;
    gap: 10px
}

.toast-msg.show {
    transform: translateY(0);
    opacity: 1
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #344E41 !important;
    box-shadow: 0 0 0 3px rgba(52, 78, 65, .08)
}

.cbox {
    appearance: none;
    width: 17px;
    height: 17px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0
}

.cbox:checked {
    background: #344E41;
    border-color: #344E41;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2.5-2.5a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-size: 13px;
    background-position: center;
    background-repeat: no-repeat
}

/* === Modal === */
.modal-bg {
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease
}

.modal-bg.on {
    opacity: 1;
    pointer-events: auto
}

.modal-bg .modal-box {
    transform: translateY(24px) scale(.97);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1)
}

.modal-bg.on .modal-box {
    transform: translateY(0) scale(1)
}

.outline-text {
    -webkit-text-stroke: 2px rgba(163, 177, 138, .18);
    color: transparent
}

@media (max-width: 768px) {
    .nav-track {
        display: none
    }
}