/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #fff;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 30px);
}

.sec {
    padding: clamp(50px, 8vw, 80px) 0;
}

.pad {
    padding: clamp(50px, 8vw, 80px) 0;
}

.alt {
    background-color: #f9f9f9;
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    inset: 0;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity .5s ease, visibility .5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    border: 5px solid #f3f3f3;
    border-top: 5px solid #8e6841;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(12px, 3vw, 15px) clamp(20px, 4vw, 40px);
    background-color: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    z-index: 1000;
    transition: all .3s ease;
}

header.scrolled {
    padding: clamp(8px, 2vw, 10px) clamp(20px, 4vw, 40px);
    background-color: rgba(255, 255, 255, .98);
}

.contlog {
    display: flex;
    align-items: center;
}

.logo,
.logoverm {
    height: clamp(100px, 12vw, 150px);
    transition: all .3s ease;
}

.logoverm {
    display: none;
}

.menu {
    display: flex;
    gap: clamp(20px, 3vw, 30px);
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: clamp(14px, 2vw, 16px);
    transition: color .3s ease;
    position: relative;
}

.menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #8e6841;
    transition: width .3s ease;
}

.menu a:hover:after,
.menu a.active:after {
    width: 100%;
}

.menu a:hover,
.menu a.active {
    color: #8e6841;
}

.menu-icon {
    display: none;
    font-size: clamp(20px, 4vw, 24px);
    cursor: pointer;
    z-index: 1001;
}

/* ===== HERO INTERNA ===== */
.hero-interna {
    min-height: clamp(40vh, 55vh, 65vh);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 180px;
    text-align: center;
    color: #fff;
    position: relative;
    padding-top: clamp(80px, 10vw, 100px);
    background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .45)),
        url('../img/fazenda/fazenda (60).jpg') no-repeat center/cover;
}

.hero-content {
    max-width: min(800px, 90vw);
    padding: 0 clamp(15px, 3vw, 20px);
    z-index: 2;
}

.hero-interna h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: clamp(8px, 2vw, 12px);
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, .7);
    line-height: 1.2;
}

.hero-interna p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: clamp(16px, 3vw, 26px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .6);
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: clamp(12px, 2vw, 16px);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero,
.btn-hero-outline {
    padding: clamp(10px, 2vw, 12px) clamp(20px, 3vw, 28px);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all .3s ease;
    border: 2px solid #8e6841;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.btn-hero {
    background: #8e6841;
    color: #fff;
}

.btn-hero:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-hero-outline:hover {
    background: #fff;
    color: #333;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: clamp(30px, 6vw, 50px);
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #333;
    margin-bottom: clamp(10px, 2vw, 15px);
    line-height: 1.2;
}

.divider {
    width: clamp(40px, 8vw, 60px);
    height: 3px;
    background: #8e6841;
    margin: 0 auto clamp(15px, 3vw, 20px);
}

.section-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    color: #666;
    max-width: min(700px, 90vw);
    margin: 0 auto;
    line-height: 1.5;
}

.intro-text {
    font-size: clamp(0.9rem, 2.5vw, 1.08rem);
    line-height: 1.7;
    color: #555;
}

/* ===== TWO COLUMNS ===== */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 50px);
    align-items: center;
}

.text-content p {
    margin-bottom: clamp(12px, 2vw, 18px);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.image-content {
    display: flex;
    justify-content: center;
}

.history-image-frame {
    width: 100%;
    height: clamp(250px, 40vw, 400px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
    position: relative;
}

.history-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, .1), rgba(142, 104, 65, .05));
}

/* ===== CARDS GRID (serviços) ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(20px, 3vw, 26px);
    margin-top: clamp(20px, 4vw, 30px);
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: clamp(20px, 3vw, 28px);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
    transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
}

.card-icon {
    margin-bottom: clamp(10px, 2vw, 14px);
}

.icon-lg {
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    color: #8e6841;
}

.card h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: clamp(8px, 1.5vw, 10px);
    color: #333;
    font-size: clamp(1.2rem, 3vw, 1.4rem);
}

.card p {
    color: #666;
    line-height: 1.6;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* ===== GRID ILUSTRATIVO (reaproveitando estilo de sustentabilidade) ===== */
.sustentabilidade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: clamp(20px, 3vw, 26px);
    margin-top: clamp(16px, 3vw, 24px);
}

.sustentabilidade-item {
    text-align: center;
}

.sustentabilidade-item img {
    width: 100%;
    height: clamp(180px, 30vw, 220px);
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: clamp(8px, 1.5vw, 12px);
    transition: transform .3s ease;
}

.sustentabilidade-item img:hover {
    transform: scale(1.04);
}

.sustentabilidade-item h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: clamp(4px, 1vw, 6px);
    color: #333;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.sustentabilidade-item p {
    color: #666;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* ===== GALERIA (mosaico) ===== */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 20vw, 230px), 1fr));
    grid-auto-rows: clamp(120px, 20vw, 180px);
    grid-auto-flow: dense;
    gap: clamp(10px, 2vw, 16px);
}

.galeria-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .08);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.galeria-item:hover img {
    transform: scale(1.06);
}

.galeria-item.wide {
    grid-column: span 2;
}

.galeria-item.tall {
    grid-row: span 2;
}

/* ===== FORM / VISITA ===== */
.form {
    background: #fff;
    padding: clamp(20px, 4vw, 34px);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 2vw, 18px);
    margin-bottom: 10px;
}

.field label {
    display: block;
    margin-bottom: clamp(4px, 1vw, 6px);
    font-weight: 500;
    color: #333;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: clamp(10px, 2vw, 12px) clamp(12px, 2vw, 14px);
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: border-color .3s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: #8e6841;
}

.btn {
    display: inline-block;
    background: #8e6841;
    color: #fff;
    padding: clamp(10px, 2vw, 12px) clamp(20px, 3vw, 28px);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all .3s ease;
    border: 2px solid #8e6841;
    text-align: center;
    cursor: pointer;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.btn:hover {
    background: #735732;
    border-color: #735732;
    color: #fff;
}

.btn-submit {
    width: 100%;
    padding: clamp(12px, 2vw, 14px);
    margin-top: 10px;
    position: relative;
}

.btn-text,
.btn-loading {
    transition: opacity .3s ease;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.visita-section {
    background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), url('../img/fazenda/fazenda (57).jpg') no-repeat center/cover;
    color: #fff;
    text-align: center;
}

.visita-content {
    max-width: min(720px, 90vw);
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 20px);
}

.visita-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: clamp(8px, 2vw, 12px);
    line-height: 1.2;
}

.visita-content p {
    font-size: clamp(0.9rem, 2.5vw, 1.08rem);
    margin-bottom: clamp(16px, 3vw, 24px);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: #333;
    color: #fff;
    padding: clamp(40px, 6vw, 60px) 0 clamp(15px, 3vw, 20px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 20px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: clamp(25px, 4vw, 40px);
    margin-bottom: clamp(25px, 4vw, 40px);
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: clamp(12px, 2vw, 16px);
    color: #fff;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.logofot {
    height: clamp(100px, 12vw, 150px);
    margin-bottom: clamp(8px, 1.5vw, 12px);
    max-width: 100%;
}

.contact-info p {
    margin-bottom: clamp(6px, 1vw, 8px);
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 10px);
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.contact-info i {
    color: #8e6841;
}

.footer-section.links {
    display: flex;
    flex-direction: column;
}

.footer-section.links a {
    color: #ccc;
    text-decoration: none;
    margin-bottom: clamp(6px, 1vw, 8px);
    transition: color .3s ease;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.footer-section.links a:hover {
    color: #8e6841;
}

.social-icons {
    display: flex;
    gap: clamp(10px, 2vw, 14px);
    margin-bottom: clamp(12px, 2vw, 18px);
    flex-wrap: wrap;
    justify-content: center;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(35px, 6vw, 40px);
    height: clamp(35px, 6vw, 40px);
    background: #444;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: background .3s ease;
}

.social-icon:hover {
    background: #8e6841;
}

.footer-cta {
    margin-top: clamp(8px, 1.5vw, 10px);
}

.footer-cta p {
    margin-bottom: clamp(8px, 1.5vw, 10px);
    color: #ccc;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.btn-footer {
    display: inline-block;
    background: #8e6841;
    color: #fff;
    padding: clamp(8px, 1.5vw, 10px) clamp(15px, 2.5vw, 20px);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background .3s ease;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.btn-footer:hover {
    background: #735732;
}

.footer-bottom {
    text-align: center;
    padding-top: clamp(12px, 2vw, 16px);
    border-top: 1px solid #444;
    color: #999;
    font-size: clamp(0.8rem, 1.5vw, 0.92rem);
}

.footer-bottom p {
    margin-bottom: 4px;
}

/* ===== MENU MOBILE ===== */
.mobile-menu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    overflow-y: auto;
}

.mobile-menu-content {
    position: relative;
    background: white;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: clamp(40px, 10vw, 100px) clamp(20px, 5vw, 40px);
}

.mobile-menu-content a {
    text-decoration: none;
    color: #333;
    font-size: clamp(1.3rem, 4vw, 2rem);
    padding: clamp(12px, 2vw, 16px) clamp(20px, 3vw, 25px);
    margin: clamp(8px, 1.5vw, 12px) 0;
    text-align: center;
    width: 100%;
    max-width: 300px;
    transition: all .3s ease;
    border-radius: 5px;
}

.mobile-menu-content a:hover {
    background: #8e6841;
    color: #fff;
}

.close-mobile-menu {
    position: absolute;
    top: clamp(15px, 3vw, 20px);
    right: clamp(15px, 3vw, 20px);
    background: none;
    border: none;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    cursor: pointer;
    color: #333;
    padding: 10px;
    z-index: 2001;
}

.icon-perfil {
    position: absolute;
    top: clamp(15px, 3vw, 20px);
    left: clamp(15px, 3vw, 20px);
    background: none;
    border: none;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    cursor: pointer;
    color: #333;
    padding: 10px;
    z-index: 2001;
}

/* ===== ANIMAÇÕES DE ENTRADA ===== */
.animate-in {
    animation: fadeUp .6s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        
        padding: 0 clamp(15px, 3vw, 30px);
    }
    .hero-interna{
         margin-top: 120px;
    }
}

@media (max-width: 1024px) {
    .hero-interna h1 {
        font-size: clamp(1.8rem, 4vw, 2.6rem);
    }
.hero-interna{
     margin-top: 120px;
}
    .two-columns {
        grid-template-columns: 1fr;
        gap: clamp(25px, 4vw, 36px);
    }
}

@media (max-width: 768px) {
    .menu {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .logo {
        display: none;
    }

    .logoverm {
        display: block;
    }

    .hero-interna {
        min-height: clamp(35vh, 48vh, 55vh);
         margin-top: 120px;
    }

    .hero-interna h1 {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }

    .hero-interna p {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: clamp(20px, 3vw, 30px);
    }
    
    .galeria-item.wide,
    .galeria-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 480px) {
    header {
        padding: clamp(10px, 2.5vw, 14px) clamp(15px, 3vw, 20px);
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 4vw, 1.9rem);
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .sustentabilidade-grid {
        grid-template-columns: 1fr;
    }

    .form {
        padding: clamp(18px, 4vw, 26px) clamp(15px, 3vw, 20px);
    }

    .mobile-menu-content a {
        font-size: clamp(1.1rem, 3.5vw, 1.25rem);
        padding: 10px 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-interna{
        margin-top: 120px;
        padding: 10px;
    }
    
    .btn-hero, .btn-hero-outline {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 150px;
    }
    
    .card {
        padding: 15px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
    }
    
    .mobile-menu-content {
        padding: 60px 15px;
    }
    
    .mobile-menu-content a {
        font-size: 1.1rem;
        padding: 8px 12px;
        margin: 6px 0;
    }
}   