/* ============================================
   RESET E VARIÁVEIS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e2a1a;
    --secondary-color: #3a5e2b;
    --accent-color: #7aab5a;
    --accent-mid: #2e4a20;
    --text-dark: #1c2419;
    --text-mid: #4a5545;
    --text-light: #f0f4ee;
    --bg-light: #f4f6f1;
    --bg-white: #ffffff;
    --bg-alt: #eef1eb;
    --bg-dark: #131a10;
    --border-color: #cdd8c5;
    --shadow: 0 2px 10px rgba(30, 42, 26, 0.1);
    --shadow-lg: 0 8px 32px rgba(30, 42, 26, 0.18);
    --shadow-green: 0 4px 20px rgba(122, 171, 90, 0.2);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVEGAÇÃO
   ============================================ */
.navbar {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
    border-bottom: 2px solid var(--accent-mid);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    color: rgba(240, 244, 238, 0.85);
    text-decoration: none;
    transition: color 0.25s ease;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.nav-menu a:hover { color: var(--accent-color); }

@media (max-width: 900px) {
    .nav-menu { gap: 0.7rem; font-size: 0.72rem; }
}
@media (max-width: 600px) {
    .nav-menu { display: none; }
}

/* ============================================
   HERO COM FOTO
   ============================================ */
.hero {
    position: relative;
    color: var(--text-light);
    padding: 0;
    text-align: center;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('img/antonio-dias-tostes-hero.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    filter: brightness(0.35) saturate(0.7);
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        linear-gradient(to bottom,
            rgba(19, 26, 16, 0.45) 0%,
            rgba(19, 26, 16, 0.15) 40%,
            rgba(19, 26, 16, 0.6) 80%,
            rgba(19, 26, 16, 0.88) 100%),
        radial-gradient(ellipse at 20% 50%, rgba(122, 171, 90, 0.08) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 760px;
    margin: 0 auto;
    padding: 120px 24px 90px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    letter-spacing: 1px;
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-style: italic;
    font-weight: 400;
}

.hero-desc {
    font-size: 0.9rem;
    color: rgba(240, 244, 238, 0.75);
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

.hero-curator {
    font-size: 0.58rem;
    color: rgba(240, 244, 238, 0.28);
    letter-spacing: 0.3px;
}

.hero-curator strong {
    color: rgba(240, 244, 238, 0.38);
    font-weight: 700;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-scroll-indicator span {
    display: block;
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    margin: 0 auto;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

@media (max-width: 768px) {
    .hero-content { padding: 80px 20px 70px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.15rem; }
    .hero { min-height: 460px; }
}

/* ============================================
   SEÇÕES
   ============================================ */
.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease-out both;
}

.section:last-of-type { border-bottom: none; }
.section-alt { background-color: var(--bg-alt); }

.section-dark {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a4020 100%);
    color: var(--text-light);
    border-bottom: none;
}

.section-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.65rem;
    background: rgba(122, 171, 90, 0.1);
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid rgba(122, 171, 90, 0.25);
}

.section-dark .section-label {
    background: rgba(122, 171, 90, 0.2);
    border-color: rgba(122, 171, 90, 0.4);
}

.section-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    line-height: 1.25;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.section-dark .section-header h2 { color: #ffffff; }
.section-dark .section-header h2::after {
    background: linear-gradient(90deg, var(--accent-color), rgba(122,171,90,0.4));
}

/* ============================================
   CONTEÚDO DE TEXTO
   ============================================ */
.content-text {
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.85;
}

.content-text p {
    margin-bottom: 1.4rem;
    text-align: justify;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.content-text--light p { color: rgba(240, 244, 238, 0.83); }
.content-text--light strong { color: var(--accent-color); }

.content-text h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.content-attribution {
    font-size: 0.7rem !important;
    color: rgba(44, 62, 40, 0.32) !important;
    text-align: center !important;
    margin-top: 2rem !important;
    letter-spacing: 0.3px;
}

/* ============================================
   FLOAT IMAGES
   ============================================ */
.float-img-right {
    float: right;
    margin: 0 0 1.25rem 1.75rem;
    width: 210px;
    text-align: center;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.float-img-left {
    float: left;
    margin: 0 1.75rem 1.25rem 0;
    width: 210px;
    text-align: center;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.float-img-right img,
.float-img-left img {
    width: 100%;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
    display: block;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.float-img-right:hover img,
.float-img-left:hover img {
    transform: scale(1.03);
    box-shadow: var(--shadow-green);
}

.float-img-caption {
    margin-top: 0.5rem;
    font-size: 0.68rem;
    color: var(--text-mid);
    font-style: italic;
    line-height: 1.45;
}

.float-img-caption span {
    font-size: 0.42rem;
    color: rgba(74, 85, 69, 0.22);
    display: block;
    margin-top: 3px;
    letter-spacing: 0.3px;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.section-dark .float-img-caption { color: rgba(240,244,238,0.6); }
.section-dark .float-img-caption span { color: rgba(240,244,238,0.15); font-size: 0.42rem; }
.section-dark .float-img-right img,
.section-dark .float-img-left img { border-color: rgba(122,171,90,0.3); }

@media (max-width: 600px) {
    .float-img-right, .float-img-left {
        float: none;
        width: 100%;
        max-width: 260px;
        margin: 0 auto 1.25rem;
    }
}

/* ============================================
   GRID DE FOTOS DAS FAZENDAS
   ============================================ */
.fazenda-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.5rem auto;
    max-width: 860px;
}

.fazenda-photo-item {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: var(--bg-light);
}

.fazenda-photo-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-green);
}

.fazenda-photo-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center;
    display: block;
}

.fazenda-photo-caption {
    font-size: 0.55rem;
    color: var(--text-mid);
    font-style: italic;
    padding: 0.3rem 0.5rem 0.4rem;
    line-height: 1.35;
    text-align: center;
}

.fazenda-photo-caption span {
    font-size: 0.42rem;
    color: rgba(74, 85, 69, 0.22);
    display: block;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

@media (max-width: 600px) {
    .fazenda-photo-grid,
    .fortaleza-photo-grid { grid-template-columns: repeat(2, 1fr); }
}

.fortaleza-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.5rem auto 0;
    max-width: 860px;
}

/* ============================================
   MODAL CAPTION
   ============================================ */
.modal-caption {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
    max-width: 760px;
    line-height: 1.6;
    padding: 0 20px;
}

/* ============================================
   RETRATO
   ============================================ */
.portrait-block {
    text-align: center;
    margin-bottom: 2.5rem;
}

.portrait-img {
    max-width: 420px;
    width: 100%;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--border-color);
    display: block;
    margin: 0 auto;
}

.portrait-caption {
    margin-top: 0.5rem;
    font-size: 0.6rem;
    color: var(--text-mid);
    font-style: italic;
    line-height: 1.4;
    text-align: center !important;
}

.portrait-caption span {
    font-size: 0.55rem;
    color: rgba(74, 85, 69, 0.45);
    display: block;
    margin-top: 1px;
}

/* ============================================
   HIGHLIGHT QUOTE
   ============================================ */
.highlight-quote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--accent-color);
    background: rgba(122, 171, 90, 0.08);
    border-radius: 0 8px 8px 0;
}

.highlight-quote blockquote {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(240, 244, 238, 0.88);
}

/* ============================================
   GRID DE FAMÍLIAS
   ============================================ */
.families-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.family-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 3px solid var(--secondary-color);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.family-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-green);
}

.family-card-photo {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: top;
    border-radius: 4px;
    margin: 0 auto 0.75rem;
    border: 2px solid var(--border-color);
    display: block;
}

.family-card-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.6rem;
    opacity: 0.7;
}

.family-card h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.family-card p {
    color: var(--text-mid);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   FAZENDAS FEATURE
   ============================================ */
.fazenda-feature {
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1.75rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.fazenda-feature:hover { box-shadow: var(--shadow-green); }

.fazenda-feature-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-mid));
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fazenda-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    color: rgba(122, 171, 90, 0.45);
    font-weight: 700;
    line-height: 1;
}

.fazenda-feature-header h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 700;
}

.fazenda-feature-body { padding: 1.75rem; }

.fazenda-feature-body p {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 0.92rem;
    line-height: 1.8;
    text-align: justify;
}

.fazenda-feature-body p:last-child { margin-bottom: 0; }

.fazenda-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    background: var(--bg-alt);
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    margin-top: 0.75rem;
    border-left: 3px solid var(--accent-color);
}

.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   GRID DE FAZENDAS MENORES
   ============================================ */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0 0;
}

.company-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-green);
}

.company-card h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    font-size: 0.98rem;
}

.company-card p {
    color: var(--text-mid);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.65;
}

/* ============================================
   GALERIA
   ============================================ */
.gallery-intro {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(74, 85, 69, 0.45);
    margin-bottom: 2rem;
    font-style: italic;
    letter-spacing: 0.2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bg-light);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.gallery-item:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-green);
}

.gallery-item img {
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-caption {
    font-size: 0.5rem;
    color: rgba(0, 0, 0, 0.15);
    text-align: center;
    padding: 2px 4px 4px;
    background: transparent;
    letter-spacing: 0.2px;
    font-style: italic;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a2d14 100%);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
    border-top: 2px solid var(--accent-mid);
}

.footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.footer-tagline {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 1.25rem;
    opacity: 0.85;
}

.footer-divider {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 0 auto 1.25rem;
}

.footer-text {
    font-size: 0.8rem;
    color: rgba(240, 244, 238, 0.58);
    margin: 0.3rem 0;
}

.footer-text strong { color: rgba(240, 244, 238, 0.82); }
.footer-small { font-size: 0.72rem; opacity: 0.7; }

.footer-credits {
    font-size: 0.65rem !important;
    opacity: 0.32;
    margin-top: 0.4rem !important;
}

/* ============================================
   HAMBURGUER MOBILE
   ============================================ */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.25s ease;
}

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

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

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        border-top: 1px solid rgba(122,171,90,0.2);
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        z-index: 200;
    }

    .nav-menu.nav-open { display: flex; }

    .nav-menu li a {
        display: block;
        padding: 0.75rem 1.5rem;
        font-size: 0.82rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .navbar .container { position: relative; }
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
    .section { padding: 50px 0; }
    .section-header h2 { font-size: 1.5rem; }
    .section-header { margin-bottom: 2rem; }
    .content-text p { text-align: left; font-size: 0.88rem; }
    .companies-grid { grid-template-columns: 1fr; }
    .families-grid { grid-template-columns: 1fr; }
    .fazenda-feature-header { padding: 1rem 1.25rem; }
    .fazenda-feature-body { padding: 1.25rem; }
    .fazenda-photo-grid,
    .fortaleza-photo-grid { grid-template-columns: 1fr; }
    .portrait-img { max-width: 100%; }
    .families-grid { gap: 1rem; }
    .family-card { padding: 1.25rem; }
    .family-card-photo { max-width: 120px; }
    .highlight-quote { padding: 1.2rem 1.25rem; }
    .highlight-quote blockquote { font-size: 0.9rem; }
    .fazenda-feature-header h3 { font-size: 1.1rem; }
    .fazenda-feature-body p { font-size: 0.88rem; }
    .fazenda-stat { padding: 0.5rem 1rem; }
    .stat-number { font-size: 1.4rem; }
    .footer-credits { display: none; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.75rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-eyebrow { font-size: 0.68rem; letter-spacing: 2.5px; }
    .section-header h2 { font-size: 1.3rem; }
    .nav-brand { font-size: 1rem; }
    .navbar { padding: 0.75rem 0; }
    .container { padding: 0 16px; }
    .content-text p { font-size: 0.85rem; line-height: 1.7; }
    .section-label { font-size: 0.6rem; letter-spacing: 2.5px; }
    .companies-grid { grid-template-columns: 1fr; gap: 1rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .footer { padding: 2rem 0; }
    .footer-brand { font-size: 1.1rem; }
    .footer-tagline { font-size: 0.78rem; }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */
a:focus { outline: 2px solid var(--accent-color); outline-offset: 2px; }
button:focus, input:focus { outline: 2px solid var(--accent-color); outline-offset: 2px; }
