/* ===================== CasaVivaBrazil - style.css ===================== */

:root {
    --terracotta: #c1603e;
    --terracotta-dark: #a34e30;
    --warm-beige: #ecdfce;
    --soft-green: #8ba888;
    --cream: #faf6ef;
    --dark-brown: #3f2f26;
    --text-color: #3f2f26;
    --border-color: #ddccb5;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--cream);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: var(--terracotta-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===================== HEADER ===================== */

.site-header {
    background-color: var(--cream);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--terracotta-dark);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: var(--dark-brown);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--terracotta-dark);
}

/* burger elements hidden on desktop */
.menu-toggle-input,
.menu-toggle-label {
    display: none;
}

/* ===================== BUTTONS ===================== */

.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--terracotta);
    color: #fff;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--terracotta-dark);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--soft-green);
    color: #fff;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #6f8f6c;
    text-decoration: none;
}

/* ===================== SECTION PHOTOS ===================== */

.section-photo {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    background-color: var(--warm-beige);
}

.photo-16x9 {
    aspect-ratio: 16 / 9;
}

/* ===================== HERO ===================== */

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.2rem;
    color: var(--dark-brown);
    margin-bottom: 16px;
}

.hero-content p {
    margin-bottom: 24px;
    font-size: 1.05rem;
}

/* ===================== GENERIC CONTENT SECTIONS ===================== */

.content-section {
    padding: 60px 24px;
}

.alt-bg {
    background-color: var(--warm-beige);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.section-inner.reverse {
    direction: rtl;
}

.section-inner.reverse>* {
    direction: ltr;
}

.section-inner-narrow {
    max-width: 1000px;
    margin: 0 auto;
}

.section-text h2 {
    font-size: 1.8rem;
    color: var(--dark-brown);
    margin-bottom: 16px;
}

.section-text p {
    margin-bottom: 22px;
}

/* ===================== TESTIMONIALS ===================== */

.testimonials-section {
    padding: 60px 24px;
    background-color: var(--cream);
    text-align: center;
}

.testimonials-section h2 {
    font-size: 1.8rem;
    color: var(--dark-brown);
    margin-bottom: 40px;
}

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

.testimonial-card {
    background-color: var(--warm-beige);
    border-radius: 8px;
    padding: 28px 22px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 16px;
}

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

/* ===================== CONTACT / FORM ===================== */

.contact-section {
    padding: 60px 24px;
    background-color: var(--warm-beige);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 20px;
}

.contact-form label {
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--soft-green);
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
}

.checkbox-line input {
    margin-top: 4px;
}

.contact-form button {
    margin-top: 22px;
    align-self: flex-start;
}

/* ===================== MODAL ===================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(63, 47, 38, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-box {
    background-color: var(--cream);
    padding: 36px 30px;
    border-radius: 8px;
    max-width: 420px;
    width: 90%;
    text-align: center;
}

.modal-box h3 {
    color: var(--terracotta-dark);
    margin-bottom: 14px;
}

.modal-box p {
    margin-bottom: 22px;
}

/* ===================== COOKIE BANNER ===================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-brown);
    color: #fff;
    padding: 18px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 300;
}

.cookie-banner[hidden] {
    display: none;
}

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

.cookie-banner p {
    max-width: 800px;
    margin: 0;
    font-size: 0.95rem;
}

/* ===================== FOOTER ===================== */

.site-footer {
    background-color: var(--dark-brown);
    color: var(--warm-beige);
    padding: 50px 24px 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--warm-beige);
}

.footer-heading {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--cream);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 0.9rem;
}

/* ===================== RESPONSIVE / BURGER MENU (CSS ONLY) ===================== */

@media (max-width: 900px) {

    .menu-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 32px;
        height: 26px;
        cursor: pointer;
        z-index: 110;
    }

    .burger-line {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--dark-brown);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--cream);
        border-bottom: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 24px;
    }

    .main-nav ul li {
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav ul li a {
        display: block;
        padding: 14px 0;
    }

    /* checkbox + label + menu on same level, controlled purely by :checked and sibling selectors */
    .menu-toggle-input:checked~.main-nav {
        max-height: 400px;
    }

    .menu-toggle-input:checked~.menu-toggle-label .burger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle-input:checked~.menu-toggle-label .burger-line:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle-input:checked~.menu-toggle-label .burger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero,
    .section-inner {
        grid-template-columns: 1fr;
    }

    .section-inner.reverse {
        direction: ltr;
    }

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

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