html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-green: #516947;
    --dark-green: #405338;
    --accent-brown: #8D7A5E;
    --bg-cream: #F1E9DB;
    --text-charcoal: #2C3326;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --header-height: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-charcoal);
    background-color: var(--bg-cream);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Decoration */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.leaf {
    position: absolute;
    opacity: 0.4;
    mix-blend-mode: multiply;
    transition: var(--transition);
    pointer-events: none;
}

.leaf-1 {
    width: 900px;
    top: -150px;
    left: -200px;
    transform: rotate(-15deg);
    animation: float 25s infinite ease-in-out;
}

.leaf-2 {
    width: 800px;
    bottom: -100px;
    right: -200px;
    transform: rotate(140deg);
    animation: float 30s infinite ease-in-out reverse;
}

.leaf-3 {
    width: 700px;
    top: 30%;
    right: -250px;
    transform: rotate(70deg);
    opacity: 0.2;
    animation: float 22s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(var(--rot, -15deg));
    }

    50% {
        transform: translateY(-30px) rotate(calc(var(--rot, -15deg) + 5deg));
    }
}

.leaf-1 {
    --rot: -15deg;
}

.leaf-2 {
    --rot: 140deg;
}

.leaf-3 {
    --rot: 70deg;
}

/* Typography */
h1,
h2,
h3,
.logo-text {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 8%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(241, 233, 219, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    position: relative;
}

/* Hamburger Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--dark-green);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--dark-green);
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
    left: 0;
}

.hamburger::after {
    bottom: -8px;
    left: 0;
}

.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-btn.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--dark-green);
    line-height: 1;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--primary-green);
}

nav ul li a:hover {
    color: var(--primary-green);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-header {
    background: var(--primary-green);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(141, 191, 91, 0.3);
    white-space: nowrap;
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(141, 191, 91, 0.4);
}

.hero {
    position: relative;
    padding: 120px 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-margin-top: 0;
    box-sizing: border-box;
}


.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-secondary {
    background: #3D4449;
    color: var(--white);
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-icon {
    flex-shrink: 0;
}

/* Sections */
section {
    padding: 30px 8% 120px;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    scroll-margin-top: var(--header-height);
    position: relative;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.service-card {
    background: linear-gradient(145deg, var(--primary-green), var(--dark-green));
    color: var(--bg-cream);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover,
.service-card:focus-visible {
    transform: translateY(-10px);
    outline: 2px solid var(--white);
    outline-offset: 4px;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

/* Testimonial Carousel */
.testimonial-carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-carousel.animate {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-track-wrapper {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
    flex: 0 0 100%;
    width: 100%;
}

.testimonial-card {
    background: linear-gradient(145deg, var(--primary-green), var(--dark-green));
    color: var(--bg-cream);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.testimonial-card:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 4px;
}

.quote-icon {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--white);
    opacity: 0.6;
    margin-bottom: 10px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--white);
    color: var(--dark-green);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-info {
    text-align: left;
}

.author-name {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
}

.author-role {
    font-size: 0.8rem;
    opacity: 0.8;
}

.carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
    background: var(--dark-green);
    transform: scale(1.08);
    outline: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--primary-green);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary-green);
    transform: scale(1.2);
}

.sobre-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.sobre-img {
    flex-shrink: 0;
    width: 260px;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.sobre-content {
    flex: 1;
    min-height: 320px;
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
    background: linear-gradient(145deg, var(--primary-green), var(--dark-green));
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    color: var(--bg-cream);
    box-sizing: border-box;
}

.sobre-content:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 4px;
}

.sobre-content p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

#sobre {
    padding-bottom: 200px;
}

/* Footer / Final Section (Now embedded in Section 3) */
.footer-simple {
    margin-top: auto;
    /* Pushes footer to the bottom of the section */
    width: 100%;
    text-align: center;
    padding-top: 40px;
    position: absolute;
    bottom: 0;
    left: 0;
    padding-bottom: 20px;
}

.footer-slogan {
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    color: var(--dark-green);
    margin-bottom: 15px;
    font-style: italic;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-social a {
    color: var(--dark-green);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-green);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(44, 51, 38, 0.1);
    padding-top: 15px;
    width: 100%;
    text-align: center;
    color: var(--dark-green);
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 5px;
    margin-bottom: -5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.3s; }
.service-card:nth-child(3) { transition-delay: 0.5s; }

/* Responsive */
@media (max-width: 991px) {
    header {
        padding: 15px 5%;
    }

    .mobile-menu-btn {
        display: block;
        order: 3;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-cream);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        padding: 100px 40px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    nav ul li a {
        font-size: 1.1rem;
    }

    .header-actions {
        margin-right: 15px;
    }

    .btn-header {
        padding: 10px 20px;
        font-size: 0.8rem;
    }


    .hero-btns {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 5%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .sobre-grid {
        flex-direction: column;
        gap: 25px;
    }

    .sobre-img {
        width: 100%;
        max-width: 260px;
        height: 260px;
    }

    .sobre-content {
        min-height: auto;
        padding: 40px 25px;
    }

    .sobre-content p {
        font-size: 1rem;
    }

    .testimonial-carousel {
        gap: 10px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .testimonial-card {
        padding: 40px 20px;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 45px;
    }

    :root {
        --header-height: 75px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .header-actions {
        margin-right: 10px;
    }

    header .header-actions .btn-header {
        display: none;
    }
}