:root {
    --bg-page: #E1E7CA;
    --card-dark: #233725;
    --card-light: #F4F8EC;
    --card-accent: #C2DB96;
    
    --text-dark: #19291B;
    --text-light: #FFFFFF;
    --text-accent: #A4CF6C;
    
    --text-muted-dark: rgba(25, 41, 27, 0.65);
    --text-muted-light: rgba(255, 255, 255, 0.65);
    
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    
    --gap: 1.5rem;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    background-color: var(--bg-page);
    font-family: 'Outfit', sans-serif;
    color: var(--text-light);
    line-height: 1.5;
    padding: 1.5rem;
    overflow-x: clip;
    min-height: 100vh;
    min-height: 100svh;
}

/* === UTILITIES === */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 100px;
}

.font-display {
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-dark   { color: var(--text-dark) !important; }
.text-light  { color: var(--text-light) !important; }
.text-accent { color: var(--text-accent) !important; }
.text-muted-dark  { color: var(--text-muted-dark) !important; }
.text-muted-light { color: var(--text-muted-light) !important; }

.mt-section { margin-top: var(--gap); }
.mt-6 { margin-top: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-grid { margin-bottom: var(--gap); }
.pb-4 { padding-bottom: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.p-0 { padding: 0 !important; }
.border-bottom { border-bottom: 1px solid rgba(255,255,255,0.15); }

.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-between-wrap { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-col-center { display: flex; flex-direction: column; justify-content: center; }
.flex-col-between { display: flex; flex-direction: column; justify-content: space-between; }

/* === CARDS === */
.slide-card {
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    overflow: hidden;
    position: relative;
}

.card-dark   { background-color: var(--card-dark); color: var(--text-light); }
.card-light  { background-color: var(--card-light); color: var(--text-dark); }
.card-accent { background-color: var(--card-accent); color: var(--text-dark); }

/* === GRID LAYOUTS === */
.slide-grid { display: grid; gap: var(--gap); }
.slide-2-1  { grid-template-columns: 1.5fr 1fr; }
.slide-1-1  { grid-template-columns: 1fr 1fr; }
.slide-3-col { grid-template-columns: repeat(3, 1fr); }
.slide-grid-vert { display: grid; grid-template-rows: 1fr 1fr; gap: var(--gap); }

.full-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rounded { border-radius: var(--radius-md); }

/* === REVEAL ANIMATIONS === */
.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.active {
    opacity: 1 !important;
    transform: none !important;
}

/* === BUTTONS === */
.btn-accent, .btn-dark {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform 250ms var(--ease-out), background-color 250ms var(--ease-out);
}
.btn-accent { background-color: var(--card-accent); color: var(--text-dark); }
.btn-dark   { background-color: var(--card-dark); color: var(--text-light); }

@media (hover: hover) and (pointer: fine) {
    .btn-accent:hover { background-color: #B2CC83; }
    .btn-dark:hover   { background-color: #1a2a1d; }
}
.btn-accent:active, .btn-dark:active {
    transform: scale(0.97);
    transition-duration: 100ms;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1400px;
    background: var(--card-dark);
    color: var(--text-light);
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    gap: 0.5rem;
    flex-shrink: 0;
}

.mini-logo {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}
.nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    opacity: 0.85;
    transition: opacity 200ms var(--ease-out), color 200ms var(--ease-out);
    white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
    .nav a:hover { opacity: 1; color: var(--text-accent); }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* Hamburger */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 101;
}
.mobile-menu-toggle span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    border-radius: 2px;
    left: 0;
    transition: transform 300ms var(--ease-out), opacity 200ms var(--ease-out);
}
.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 9px; }
.mobile-menu-toggle span:nth-child(3) { top: 18px; }
.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--card-dark);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms var(--ease-out);
}
.mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
}

/* === HERO === */
.hero-slide {
    min-height: calc(100dvh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
}

.hero-slide .bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(35, 55, 37, 0.92) 0%,
        rgba(35, 55, 37, 0.6) 40%,
        rgba(35, 55, 37, 0.15) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-pill {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}
.pill-logo {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.year-pill {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.85;
}
.hero-sub {
    font-size: 1.1rem;
    font-weight: 300;
    margin-top: 1rem;
    opacity: 0.9;
}

.desc-text { font-size: 1.05rem; line-height: 1.6; }

/* === STATS === */
.slide-stats {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(25, 41, 27, 0.15);
    padding-top: 1.5rem;
}
.stat-num { font-size: 2.2rem; font-weight: 300; line-height: 1; }
.stat-desc { font-size: 0.9rem; opacity: 0.8; margin-top: 0.25rem; }

/* === STRUCTURE GRID === */
.grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
    margin-top: 2rem;
}
.num-block { display: flex; gap: 1rem; align-items: flex-start; }
.big-num {
    font-size: 3rem;
    font-weight: 300;
    line-height: 0.85;
    opacity: 0.7;
    font-feature-settings: "tnum";
    flex-shrink: 0;
}
.num-text h4 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.25rem; }
.num-text p  { font-size: 0.9rem; }

/* === BENTO FLEX === */
.flex-bento {
    display: flex;
    gap: var(--gap);
    align-items: stretch;
}
.w-half { width: 50%; }
.bento-text {
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.bento-img {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.side-card { padding: 1.5rem; }
.card-mini-img {
    height: 140px;
    /* height: 100%; */
    width: 100%;
    /* object-fit: cover; */
     object-fit: contain;
    object-position: center;
}

/* === CONTACT === */
.contact-list { list-style: none; padding: 0; }
.contact-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.list-label {
    font-weight: 600;
    min-width: 85px;
    flex-shrink: 0;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 992px) {
    .slide-2-1,
    .slide-1-1,
    .slide-3-col {
        grid-template-columns: 1fr;
    }
    
    .slide-grid-vert {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .nav { display: none; }
    .nav-btn { display: none; }
    .mobile-menu-toggle { display: block; }
}

/* Mobile */
@media (max-width: 768px) {
    body { padding: 0.5rem; }
    .page-container { padding-top: 80px; }
    
    .header {
        width: calc(100% - 1rem);
        top: 0.5rem;
        padding: 0.5rem 1rem;
    }
    
    .slide-card {
        padding: 1.5rem;
        border-radius: var(--radius-md);
    }
    
    .hero-slide {
        min-height: calc(100dvh - 80px);
        padding: 1.5rem;
    }
    
    .grid-2x2 { grid-template-columns: 1fr; gap: 2rem; }
    .slide-grid-vert { grid-template-columns: 1fr; }
    
    .flex-bento { flex-direction: column; }
    .w-half { width: 100%; }
    .bento-img { min-height: 180px; }
    
    .slide-stats { flex-direction: column; gap: 1.5rem; }
    
    .flex-between-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .flex-between-wrap p { text-align: left !important; }
    
    .hide-mobile { display: none; }
    .year-pill { font-size: 0.95rem; }
    .logo-text { font-size: 0.85rem; }
    
    .contact-list li { flex-direction: column; gap: 0.25rem; }
    
    .font-display { font-size: clamp(1.5rem, 6vw, 2.5rem); }
}

/* Very small screens */
@media (max-width: 400px) {
    .logo-text { display: none; }
}

/* === A POUSADA: botão visível só no desktop === */
.about-cta { display: none; }

/* === A POUSADA: ajuste de espaçamento (somente desktop) === */
@media (min-width: 993px) {
    #sobre-nos {
        grid-template-columns: 1fr minmax(320px, 32%);
    }
    #sobre-nos > .card-accent {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    #sobre-nos > .card-accent .desc-text {
        font-size: 1.25rem;
        line-height: 1.65;
        max-width: 52ch;
        margin-top: 1.25rem;
    }
    #sobre-nos > .card-accent .slide-stats {
        margin-top: auto;
        gap: 4rem;
    }
    #sobre-nos > .card-accent .stat-num { font-size: 3rem; }
    #sobre-nos > .card-accent .stat-desc { font-size: 1rem; }
    #sobre-nos .slide-grid-vert { grid-template-rows: auto 1fr; }
    .about-cta { display: inline-block; align-self: flex-start; margin-top: 1.75rem; }
}

/* === VIVA TRIUNFO: imagens dos cards laterais (desktop/tablet) === */
@media (min-width: 769px) {
    .side-card .card-mini-img {
        flex: 1 1 0px;
        width: 100%;
        height: 0;
        min-height: 200px;
        object-fit: cover;
        object-position: center bottom;
        margin-top: 1rem;
    }
}

/* === PÔR DO SOL: imagem totalmente visível === */
.sunset-card {
    padding: 0;
    display: flex;
    justify-content: center;
}
.sunset-img {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
}
.sunset-card::before {
    content: "";
    position: absolute;
    inset: -30px;
    background: url("assets/porsol.jpeg") center / cover no-repeat;
    filter: blur(28px) brightness(0.75);
}
.sunset-img { position: relative; z-index: 1; }

/* === VIVA TRIUNFO: imagens dos cards laterais (mobile) === */
@media (max-width: 768px) {
    .side-card .card-mini-img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        object-position: center 40%;
        margin-top: 1rem;
    }
}

/* === REVEAL: estabilidade no mobile === */
@media (max-width: 768px) {
    /* sem deslocamento lateral: evita estourar a largura da tela */
    .reveal-left, .reveal-right {
        transform: translateY(24px);
    }
    .reveal-up { transform: translateY(24px); }
    .reveal-scale { transform: none; }
    .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
        transition-duration: 500ms;
    }
    /* altura estável: não muda quando a barra do navegador esconde/mostra */
    .hero-slide { min-height: calc(100svh - 80px); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1; transform: none; transition: none;
    }
    html { scroll-behavior: auto; }
}

/* === MAPA (Fale Conosco): Google Maps nas cores do tema === */
.map-card {
    min-height: 380px;
    background-color: var(--card-accent);
    isolation: isolate;
}
.map-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    /* mapa em tons de cinza multiplicado pelo verde do card = mapa verde do tema */
    filter: grayscale(1) contrast(1.05);
    /* mix-blend-mode: multiply; */
}
.map-link {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 2;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    box-shadow: 0 6px 18px rgba(25, 41, 27, 0.25);
}
/* no celular o dedo rola a página em vez de ficar preso no mapa; o botão abre o app de mapas */
@media (hover: none) and (pointer: coarse) {
    .map-frame { pointer-events: none; }
}
@media (max-width: 768px) {
    .map-card { min-height: 320px; }
}
