/* --- VARIABLES --- */
:root {
    --primary: #F5F8F5;
    --secondary: #5D8A66;
    --accent: #3D6A46;
    --dark: #2A4A30;
    --text: #2A3A2D;
    --light: #FFFFFF;
    --font-primary: 'Work Sans', sans-serif;
    --font-secondary: 'IBM Plex Sans', sans-serif;
    --shadow: 0 10px 40px rgba(0,0,0,0.08);
    --radius-pill: 50px;
    --radius-card: 16px;
}

/* --- RESET & GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark);
}

ul {
    list-style: none;
}

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

/* --- LAYOUT & CONTAINERS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--light);
}

.btn-primary:hover {
    background-color: var(--dark);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: var(--light);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
}

/* --- HEADER & NAVIGATION --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
    background-color: var(--light);
}

.header.transparent {
    background-color: transparent;
}
.header:not(.transparent) {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.4s ease;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
}
.header.transparent .logo {
    color: var(--light);
}
.header:not(.transparent) .logo {
    color: var(--dark);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    padding-bottom: 5px;
    position: relative;
}

.header.transparent .nav-menu li a {
    color: var(--light);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--dark);
}

.header.transparent .bar {
    background-color: var(--light);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: var(--light);
    padding: 0 24px 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero.webp') no-repeat center center/cover;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(42, 74, 48, 0.7), transparent 60%);
}

.hero-content h1 {
    color: var(--light);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-family: var(--font-secondary);
}

/* --- CLASSES SECTION --- */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--light);
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
}

.card-elevated {
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-elevated:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 24px;
}

.card-title {
    margin-bottom: 8px;
}

.card-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 16px;
}

.card .btn {
    width: 100%;
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: var(--light);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    background-color: var(--light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--primary);
    padding: 30px;
    border-radius: var(--radius-card);
    text-align: center;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--secondary);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 16px;
    color: var(--text);
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark);
    font-family: var(--font-primary);
}

/* --- FOOTER --- */
.footer {
    background: var(--dark);
    color: #ccc;
    padding: 60px 0 0;
}

.footer .logo {
    color: var(--light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--light);
    margin-bottom: 20px;
}

.footer-col p {
    color: #ccc;
    margin-top: 16px;
    max-width: 300px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
}

.footer-col ul li a:hover {
    color: var(--light);
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-icons a {
    color: #ccc;
    font-size: 1.5rem;
}

.social-icons a:hover {
    color: var(--light);
}

.footer-bottom {
    border-top: 1px solid #455a43;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

/* --- ABOUT PAGE --- */
.page-header {
    background-color: var(--light);
    text-align: center;
    padding: 140px 0 60px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
}

.about-text h2 {
    margin-top: 20px;
    margin-bottom: 15px;
}
.about-text h2:first-of-type {
    margin-top: 0;
}

/* --- FAQ PAGE --- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion details {
    background: var(--light);
    border-radius: var(--radius-card);
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
}

.accordion summary {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-primary);
    padding: 20px;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion details[open] summary::after {
    transform: rotate(45deg);
}

.accordion p {
    padding: 0 20px 20px;
    margin: 0;
}

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.contact-form-wrapper, .contact-info-wrapper {
    background: var(--light);
    padding: 40px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: var(--font-secondary);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.contact-info p {
    margin-bottom: 20px;
}

.working-hours li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--light);
    margin: 15% auto;
    padding: 30px;
    border-radius: var(--radius-card);
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover, .close-button:focus {
    color: var(--dark);
}

/* --- LEGAL PAGES --- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}
.legal-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}
.legal-content ul {
    list-style: disc;
    padding-left: 20px;
}
.legal-content ul li {
    margin-bottom: 10px;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--dark);
    color: var(--light);
    padding: 20px;
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 2000;
}

.cookie-banner p {
    margin: 0;
}

.cookie-banner a {
    color: var(--light);
    text-decoration: underline;
}

.cookie-banner div {
    display: flex;
    gap: 10px;
}


/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }

    .masonry-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        padding: 20px;
        display: block;
        color: var(--dark);
    }

    .header.transparent .nav-menu li a {
        color: var(--dark);
    }

    .header {
        background-color: var(--light) !important;
    }
    .header .logo, .header .bar {
        color: var(--dark) !important;
    }

    .hero {
        height: 70vh;
    }

    .masonry-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col p {
        max-width: none;
    }

    .social-icons {
        justify-content: center;
    }
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }

}