/* ============================================================
   Camping da Praia — style.css
   Identidade: azul #89BDD5 + #3774A1 · terracota #D67836
   · oliva #A09E41 · #BFBD31 · folhas tropicais decorativas
   Mobile First | Material Icons Round | Hepta Slab + Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hepta+Slab:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Round');

/* ──────────────────────────────────────────
   1. DESIGN TOKENS
   ────────────────────────────────────────── */
:root {
    /* Paleta real — extraída do PDF */
    --sky:          #89BDD5;
    --ocean:        #3774A1;
    --terracotta:   #D67836;
    --burnt:        #C16928;
    --olive:        #A09E41;
    --yellow:       #BFBD31;

    /* Neutros */
    --white:        #FFFFFF;
    --cream:        #FAF7F2;
    --sand:         #F2EDE4;
    --warm-gray:    #E8E0D5;
    --mid-gray:     #9E9488;
    --text-dark:    #2A231C;
    --text-body:    #4A3E35;
    --text-muted:   #7A6E65;

    /* Aliases semânticos */
    --color-primary:        var(--terracotta);
    --color-primary-dark:   var(--burnt);
    --color-secondary:      var(--ocean);
    --color-accent:         var(--yellow);

    /* Tipografia */
    --font-heading: 'Hepta Slab', Georgia, serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-md:   1.125rem;
    --text-lg:   1.375rem;
    --text-xl:   1.75rem;
    --text-2xl:  2.25rem;
    --text-3xl:  2.875rem;
    --text-4xl:  3.75rem;
    --text-5xl:  4.75rem;

    /* Espaçamento */
    --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem;
    --sp-4: 1rem;    --sp-5: 1.25rem; --sp-6: 1.5rem;
    --sp-8: 2rem;    --sp-10: 2.5rem; --sp-12: 3rem;
    --sp-16: 4rem;   --sp-20: 5rem;   --sp-24: 6rem;
    --sp-32: 8rem;

    /* Bordas */
    --r-sm:   0.5rem;
    --r-md:   1rem;
    --r-lg:   1.75rem;
    --r-xl:   2.5rem;
    --r-full: 999px;

    /* Sombras */
    --shadow-xs: 0 1px 4px rgba(42,35,28,0.06);
    --shadow-sm: 0 2px 8px rgba(42,35,28,0.08);
    --shadow-md: 0 6px 24px rgba(42,35,28,0.10);

    /* Layout */
    --container-max: 1200px;
    --header-h:      88px;
    --bottom-nav-h:  62px;
    --section-py:    var(--sp-16);
    --transition:    250ms ease;
}

/* ──────────────────────────────────────────
   2. RESET
   ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* FIX: garante que não há overflow horizontal no html */
    overflow-x: hidden;
}
body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;  /* FIX: evita vazamento lateral */
    padding-top: var(--header-h);
    padding-bottom: var(--bottom-nav-h);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ──────────────────────────────────────────
   3. TIPOGRAFIA
   ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
p  { color: var(--text-body); line-height: 1.75; }

.label {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--sp-4);
}
.label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.section-title { font-size: var(--text-xl); margin-bottom: var(--sp-4); }
.section-lead  { font-size: var(--text-base); color: var(--text-muted); max-width: 520px; }
.center { text-align: center; }
.center .section-lead { margin: 0 auto; }
.section-head  { margin-bottom: var(--sp-10); } /* espaço entre subtítulo e conteúdo da seção */

/* ──────────────────────────────────────────
   4. LAYOUT
   ────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--sp-5);
}
.section {
    padding: var(--section-py) 0;
    position: relative;
    overflow: hidden;
}

/* ──────────────────────────────────────────
   6. BOTÕES
   ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.75rem 1.75rem;
    border-radius: var(--r-full);
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
}
.btn .material-icons-round { font-size: 1.1rem; }

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
    border-color: var(--terracotta);
}
.btn-primary:hover {
    background: var(--burnt);
    border-color: var(--burnt);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(214,120,54,0.35);
}

.btn-ocean {
    background: var(--ocean);
    color: var(--white);
    border-color: var(--ocean);
}
.btn-ocean:hover {
    background: #2d5f85;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(55,116,161,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--terracotta);
    border-color: var(--terracotta);
}
.btn-outline:hover {
    background: var(--terracotta);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.65);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--terracotta);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border-color: #25D366;
}
.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,211,102,0.35);
}

.btn-lg { padding: 1rem 2.25rem; font-size: var(--text-base); }

/* ──────────────────────────────────────────
   7. HEADER — fundo colorido IDV
   ────────────────────────────────────────── */
:root {
    --header-bg:           var(--terracotta);
    --header-text:         #ffffff;
    --header-sub:          rgba(255,255,255,0.65);
    --header-nav-hover-bg: rgba(255,255,255,0.15);
}

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: var(--header-bg);
    transition: background 1.2s ease, box-shadow var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding-top: var(--sp-3);
    padding-bottom: var(--sp-3);
}
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-shrink: 0;
}
.site-logo img {
    height: 62px;
    width: auto;
    filter: brightness(0) invert(1);
}
.logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-sm);   /* mobile-first: menor para caber com o lang-switcher */
    font-weight: 700;
    color: var(--header-text);
    line-height: 1.2;
    transition: color 1.2s ease;
}
.logo-text span {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 400;
    color: var(--header-sub);
    transition: color 1.2s ease;
}

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--header-text);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-full);
    transition: background var(--transition), color 1.2s ease;
    opacity: 0.88;
}
.main-nav a:hover { opacity: 1; background: var(--header-nav-hover-bg); }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }

/* ──────────────────────────────────────────
   FIX MOBILE: CTA "Reservar" no header
   No mobile o botão "Reservar" aparece quando
   .scrolled é adicionada e empurra o menu-toggle
   para fora. Ocultamos no mobile, pois a ação
   já está no bottom-nav (item--cta).
   ────────────────────────────────────────── */
#header-cta {
    display: none !important;   /* oculto por padrão (mobile-first) */
}

.lang-switcher {
    display: flex;
    background: rgba(255,255,255,0.18);
    border-radius: var(--r-full);
    padding: 3px;
    gap: 2px;
}
.lang-switcher a {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.75);
    padding: 3px 10px;
    border-radius: var(--r-full);
    transition: all var(--transition);
}
.lang-switcher a.active,
.lang-switcher a:hover {
    background: rgba(255,255,255,0.9);
    color: var(--header-bg);
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--r-full);
    color: var(--header-text);
    transition: background var(--transition);
}
.menu-toggle:hover { background: rgba(255,255,255,0.18); }

/* Drawer */
.mobile-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 290px;
    background: var(--white);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 380ms cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    padding: var(--sp-6);
    overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-8);
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--sp-8); }
.mobile-nav a {
    display: flex; align-items: center; gap: var(--sp-3);
    font-size: var(--text-base); font-weight: 500;
    color: var(--text-body);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-md);
    transition: all var(--transition);
}
.mobile-nav a:hover { background: var(--sand); color: var(--terracotta); }
.mobile-nav a .material-icons-round { color: var(--terracotta); font-size: 1.2rem; }

.nav-overlay {
    position: fixed; inset: 0;
    background: rgba(42,35,28,0.45);
    z-index: 1050;
    opacity: 0; pointer-events: none;
    transition: opacity var(--transition);
    backdrop-filter: blur(2px);
}
.nav-overlay.active { opacity: 1; pointer-events: auto; }

/* ──────────────────────────────────────────
   8. BOTTOM NAV
   FIX: position:fixed com transform:translateZ(0)
   força camada GPU própria — garante que o nav
   nunca role junto com o conteúdo em nenhum
   dispositivo móvel.
   ────────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 900;
    height: var(--bottom-nav-h);
    background: var(--white);
    border-top: 1px solid var(--warm-gray);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding: 0;
    /* FIX: suporte ao home indicator do iPhone (notch inferior) */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 12px rgba(42,35,28,0.08);
    /* FIX: isolamento de stacking context + camada GPU dedicada */
    isolation: isolate;
    will-change: transform;
    transform: translateZ(0);
}

/* FIX: body deve reservar espaço para o bottom-nav incluindo safe-area */
body {
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}

.bottom-nav-item {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-muted);
    /* FIX: tamanho do texto adaptável à largura da tela */
    font-size: clamp(0.55rem, 2vw, 0.65rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: var(--sp-2) var(--sp-1);
    border-radius: 0;
    transition: all var(--transition);
    flex: 1;
    text-align: center;
    min-width: 0;        /* FIX: permite encolher sem cortar */
    overflow: hidden;    /* FIX: corta texto que ainda assim transbordar */
}
.bottom-nav-item:hover { color: var(--terracotta); }
.bottom-nav-item .material-icons-round {
    font-size: 1.35rem;
    flex-shrink: 0;
}
/* FIX: label do nav-bottom nunca quebra linha nem fica cortada */
.bottom-nav-item span:not(.material-icons-round) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}
.bottom-nav-item--cta {
    background: var(--terracotta);
    color: var(--white);
    border-radius: 0;
    padding: var(--sp-2) var(--sp-1);
    font-size: clamp(0.55rem, 2vw, 0.65rem);
}
.bottom-nav-item--cta:hover { background: var(--burnt); color: var(--white); }

/* ──────────────────────────────────────────
   9. HERO
   ────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: calc(100svh - var(--header-h));
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--text-dark);
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center 30%;
    z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        110deg,
        rgba(42,35,28,0.82) 0%,
        rgba(42,35,28,0.55) 55%,
        rgba(55,116,161,0.25) 100%
    );
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 3;
    max-width: 660px;
    padding: var(--sp-16) 0;
}
.hero-pin {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    color: var(--sky); font-size: var(--text-sm); font-weight: 500;
    margin-bottom: var(--sp-5);
}
.hero-pin .material-icons-round { font-size: 1rem; }
.hero-title {
    font-size: var(--text-2xl);
    color: var(--white);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: var(--sp-5);
}
.hero-title em { font-style: normal; color: var(--terracotta); }
.hero-sub {
    font-size: var(--text-md);
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
    margin-bottom: var(--sp-8);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero-scroll {
    position: absolute; bottom: var(--sp-6); left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: var(--sp-1);
    color: rgba(255,255,255,0.5); font-size: var(--text-xs);
    animation: bob 2s ease-in-out infinite;
}
.hero-scroll .material-icons-round { font-size: 1.4rem; }
@keyframes bob { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ──────────────────────────────────────────
   10. ABOUT
   ────────────────────────────────────────── */
.section-about { background: var(--cream); }
.section-about .label { color: var(--terracotta); }
.section-about .section-title { color: var(--text-dark); }
.section-about .section-title em { color: var(--terracotta); font-style: normal; }
.about-grid { display: grid; gap: var(--sp-10); align-items: center; }
.about-img-wrap {
    border-radius: var(--r-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--sand);
    position: relative;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.about-img-wrap:hover img { transform: scale(1.04); }
.about-chip {
    position: absolute;
    bottom: var(--sp-4); left: var(--sp-4);
    background: var(--terracotta);
    color: var(--white);
    font-size: var(--text-xs); font-weight: 700;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-full);
    display: flex; align-items: center; gap: var(--sp-2);
}
.about-chip .material-icons-round { font-size: 0.95rem; }
.about-text-block { position: relative; }
.about-text-block .section-lead { margin-bottom: var(--sp-6); }
.stats-row { display: flex; gap: var(--sp-4); margin: var(--sp-6) 0; }
.stat { flex: 1; border-top: 2px solid var(--terracotta); padding-top: var(--sp-3); }
.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-xl); font-weight: 700;
    color: var(--terracotta); line-height: 1; margin-bottom: var(--sp-1);
}
.stat-lbl { font-size: var(--text-xs); color: var(--text-muted); font-weight: 500; }
.pet-pill {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    background: var(--sky); color: var(--ocean);
    font-size: var(--text-sm); font-weight: 600;
    padding: var(--sp-2) var(--sp-4); border-radius: var(--r-full);
}
.pet-pill .material-icons-round { font-size: 1rem; }

/* ──────────────────────────────────────────
   11. ACOMODAÇÕES
   ────────────────────────────────────────── */
.section-acc { background: var(--sky); }
.section-acc .label { color: rgba(255,255,255,0.7); }
.section-acc .section-title { color: var(--white); }
.section-acc .section-lead { color: rgba(255,255,255,0.8); }
.acc-grid { display: grid; gap: var(--sp-5); position: relative; z-index: 1; }
.acc-card { background: var(--white); border-radius: var(--r-xl); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.acc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.acc-card-img { aspect-ratio: 3/2; overflow: hidden; background: var(--sand); }
.acc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.acc-card:hover .acc-card-img img { transform: scale(1.06); }
.acc-card-body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.acc-card { display: flex; flex-direction: column; }
.acc-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(55,116,161,0.12); color: var(--ocean); border-radius: var(--r-md); margin-bottom: var(--sp-3); }
.acc-card-icon .material-icons-round { font-size: 1.35rem; }
.acc-card-name { font-size: var(--text-md); font-weight: 700; margin-bottom: var(--sp-2); color: var(--ocean); }
.acc-card-desc { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--sp-4); line-height: 1.65; flex: 1; }
.section-acc .btn-outline { color: var(--ocean); border-color: var(--ocean); }
.section-acc .btn-outline:hover { background: var(--ocean); color: var(--white); }

/* ──────────────────────────────────────────
   12. PACOTES
   ────────────────────────────────────────── */
.section-pkg { background: var(--terracotta); }
.section-pkg .label { color: rgba(255,255,255,0.65); }
.section-pkg .section-title { color: var(--white); }
.section-pkg .section-lead { color: rgba(255,255,255,0.8); }
.pkg-grid { display: grid; gap: var(--sp-4); position: relative; z-index: 1; }
.pkg-card { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); border-radius: var(--r-xl); padding: var(--sp-6); position: relative; transition: all var(--transition); backdrop-filter: blur(4px); }
.pkg-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-4px); }
.pkg-card--star { background: var(--white); border-color: var(--white); }
.pkg-card--star .pkg-name, .pkg-card--star .pkg-desc { color: var(--text-dark); }
.pkg-card--star .pkg-icon { background: rgba(214,120,54,0.1); color: var(--terracotta); }
.pkg-star-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--burnt); color: var(--white); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 14px; border-radius: var(--r-full); white-space: nowrap; }
.pkg-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: rgba(255,255,255,0.18); color: var(--white); border-radius: var(--r-md); margin-bottom: var(--sp-4); }
.pkg-icon .material-icons-round { font-size: 1.6rem; }
.pkg-name { font-size: var(--text-md); font-weight: 700; color: var(--white); margin-bottom: var(--sp-2); }
.pkg-desc { font-size: var(--text-sm); color: rgba(255,255,255,0.82); line-height: 1.65; margin-bottom: var(--sp-5); }
.pkg-note { display: flex; align-items: flex-start; gap: var(--sp-3); background: rgba(255,255,255,0.15); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); margin-top: var(--sp-8); font-size: var(--text-sm); color: rgba(255,255,255,0.9); position: relative; z-index: 1; }
.pkg-note .material-icons-round { color: var(--yellow); font-size: 1.15rem; flex-shrink: 0; margin-top: 2px; }

/* ──────────────────────────────────────────
   13. ESTRUTURA / AMENITIES
   ────────────────────────────────────────── */
.section-ame { background: var(--olive); }
.section-ame .label { color: rgba(255,255,255,0.65); }
.section-ame .section-title { color: var(--white); }
.section-ame .section-lead { color: rgba(255,255,255,0.8); }
.ame-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); position: relative; z-index: 1; }
.ame-item { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: rgba(255,255,255,0.12); border-radius: var(--r-md); font-size: var(--text-sm); font-weight: 500; color: rgba(255,255,255,0.92); transition: background var(--transition); }
.ame-item:hover { background: rgba(255,255,255,0.2); }
.ame-item .material-icons-round { color: var(--white); font-size: 1.25rem; flex-shrink: 0; }
.ame-item--full { grid-column: span 2; background: rgba(255,255,255,0.2); font-weight: 700; }
.ame-item--full .material-icons-round { color: var(--white); }

/* ──────────────────────────────────────────
   14. ATIVIDADES
   ────────────────────────────────────────── */
.section-act { background: var(--ocean); }
.section-act .label { color: rgba(255,255,255,0.65); }
.section-act .section-title { color: var(--white); }
.section-act .section-lead { color: rgba(255,255,255,0.8); }
.act-grid { display: grid; gap: var(--sp-5); position: relative; z-index: 1; }
.act-card { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16/9; background: var(--text-dark); }
.act-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 500ms ease, opacity var(--transition); }
.act-card:hover img { transform: scale(1.05); opacity: 0.7; }
.act-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(42,35,28,0.85) 0%, transparent 55%); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--sp-6); }
.act-name { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 700; color: var(--white); margin-bottom: var(--sp-2); }
.act-desc { font-size: var(--text-sm); color: rgba(255,255,255,0.8); margin-bottom: var(--sp-4); line-height: 1.65; display: none; }

/* ──────────────────────────────────────────
   15. GALERIA
   ────────────────────────────────────────── */
.section-gal { background: var(--cream); }
.section-gal .label { color: var(--olive); }
.section-gal .section-title { color: var(--text-dark); }
.gal-overlay { background: rgba(191,189,49,0.35); }
.gal-overlay .material-icons-round { color: var(--white); font-size: 2rem; }
.gal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); }
.gal-item { position: relative; overflow: hidden; border-radius: var(--r-md); cursor: pointer; aspect-ratio: 1; background: var(--sand); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.gal-item:hover img { transform: scale(1.08); }
.gal-overlay { position: absolute; inset: 0; background: rgba(42,35,28,0.38); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition); }
.gal-item:hover .gal-overlay { opacity: 1; }
.gal-overlay .material-icons-round { color: var(--white); font-size: 2rem; }
.gal-item--wide { grid-column: span 2; aspect-ratio: 2/1; }
.gal-item--hidden { display: none; }

/* Galeria — ações abaixo do grid */
.gal-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-6); }
.btn-facebook { background: #1877F2; color: var(--white); border: none; display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5); border-radius: var(--r-full); font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: background var(--transition), transform var(--transition); text-decoration: none; }
.btn-facebook:hover { background: #0f65d9; transform: translateY(-2px); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.93); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: var(--sp-6); opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-img { max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: var(--r-md); }
.lightbox-close, .lightbox-nav { position: absolute; color: var(--white); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-full); background: rgba(255,255,255,0.12); cursor: pointer; transition: background var(--transition); }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.24); }
.lightbox-close { top: var(--sp-5); right: var(--sp-5); }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: var(--sp-5); }
.lightbox-next { right: var(--sp-5); }

/* ──────────────────────────────────────────
   16. CONTATO
   FIX MOBILE: overflow lateral, botões cortados,
   mapa transbordando.
   ────────────────────────────────────────── */
.section-con { background: var(--white); }
.section-con .label { color: var(--ocean); }
.section-con .section-title { color: var(--text-dark); }

/* FIX: container da seção não vaza para a lateral */
.section-con .container {
    overflow: hidden;
}

.con-grid { display: grid; gap: var(--sp-8); position: relative; z-index: 1; }
.con-info-list { display: flex; flex-direction: column; gap: var(--sp-5); }
.con-info-item { display: flex; align-items: flex-start; gap: var(--sp-4); }
.con-info-icon { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(214,120,54,0.1); color: var(--terracotta); border-radius: var(--r-md); }
.con-info-icon .material-icons-round { font-size: 1.2rem; }
.con-info-lbl { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.con-info-val { font-size: var(--text-base); font-weight: 500; color: var(--text-dark); }

/* FIX: botões de contato — coluna no mobile, linha no desktop */
.con-links { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-6); }
.con-links-row {
    display: flex;
    flex-direction: column; /* FIX mobile: empilha por padrão */
    gap: var(--sp-3);
}
.con-links-row .btn {
    width: 100%;             /* FIX: botão ocupa largura total no mobile */
    justify-content: center;
    box-sizing: border-box;
}

/* FIX: mapa 100% responsivo — nunca ultrapassa o container */
.map-wrap {
    border-radius: var(--r-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--sand);
    width: 100%;
    max-width: 100%;
    position: relative; /* FIX: garante que o iframe fique contido */
}
.map-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ──────────────────────────────────────────
   17. REGRAS
   ────────────────────────────────────────── */
.section-rules { background: var(--sand); }
.section-rules .label { color: var(--olive); }
.section-rules .section-title { color: var(--text-dark); }
.rule-item .material-icons-round { color: var(--olive); }
.rules-list { display: grid; gap: var(--sp-3); position: relative; z-index: 1; }
.rule-item { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); background: var(--white); border-radius: var(--r-md); font-size: var(--text-sm); font-weight: 500; color: var(--text-body); }
.rule-item .material-icons-round { color: var(--terracotta); font-size: 1.2rem; flex-shrink: 0; }

/* ──────────────────────────────────────────
   18. FOOTER
   ────────────────────────────────────────── */
.site-footer { background: var(--text-dark); color: rgba(255,255,255,0.65); padding: var(--sp-12) 0 var(--sp-6); position: relative; overflow: hidden; }
.footer-grid { display: grid; gap: var(--sp-8); margin-bottom: var(--sp-10); position: relative; z-index: 1; }
.footer-logo-img { height: 72px; width: auto; filter: brightness(0) invert(1); margin-bottom: var(--sp-4); display: block; }
.footer-logo-text { font-family: var(--font-heading); font-size: var(--text-md); font-weight: 700; color: var(--white); display: block; margin-bottom: var(--sp-1); }
.footer-logo-text span { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 400; color: rgba(255,255,255,0.45); display: block; margin-bottom: var(--sp-4); }
.footer-desc { font-size: var(--text-sm); line-height: 1.75; color: rgba(255,255,255,0.55); margin-bottom: var(--sp-5); }
.footer-social { display: flex; gap: var(--sp-3); }
.social-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-full); background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); transition: all var(--transition); }
.social-btn:hover { background: var(--terracotta); color: var(--white); transform: translateY(-2px); }
.social-btn .material-icons-round { font-size: 1.1rem; }
.footer-h { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: var(--sp-4); }
.footer-links-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-links-list a { font-size: var(--text-sm); color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-links-list a:hover { color: var(--terracotta); }
.footer-con-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-con-item { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--text-sm); color: rgba(255,255,255,0.55); }
.footer-con-item .material-icons-round { font-size: 0.95rem; color: var(--sky); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); align-items: center; text-align: center; position: relative; z-index: 1; }
.footer-cr { font-size: var(--text-xs); color: rgba(255,255,255,0.35); }
.footer-dev { font-size: var(--text-xs); color: rgba(255,255,255,0.35); }
.footer-dev a { color: var(--terracotta); font-weight: 600; transition: color var(--transition); }
.footer-dev a:hover { color: var(--yellow); }

/* ──────────────────────────────────────────
   19. SCROLL REVEAL
   ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ──────────────────────────────────────────
   20. BACK TO TOP
   ────────────────────────────────────────── */
.back-top { position: fixed; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 1rem); right: 1rem; width: 44px; height: 44px; display: none; align-items: center; justify-content: center; background: var(--terracotta); color: var(--white); border-radius: var(--r-full); z-index: 800; box-shadow: var(--shadow-sm); transition: all var(--transition); }
.back-top:hover { background: var(--burnt); transform: translateY(-2px); }
.back-top.visible { display: flex; }

/* ──────────────────────────────────────────
   21. UTILIDADES
   ────────────────────────────────────────── */
.sr-only { position: absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.divider { width: 40px; height: 3px; background: var(--terracotta); border-radius: var(--r-full); margin-bottom: var(--sp-5); }
.divider--center { margin: 0 auto var(--sp-5); }

/* ──────────────────────────────────────────
   22. GRID HELPERS
   ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }

/* ──────────────────────────────────────────
   23. RESPONSIVE — TABLET ≥640px
   ────────────────────────────────────────── */
@media (min-width: 640px) {
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    .hero-title { font-size: var(--text-3xl); }
    .section-title { font-size: var(--text-2xl); }

    .about-grid { grid-template-columns: 1fr 1fr; }
    .acc-grid { grid-template-columns: repeat(3, 1fr); }
    .pkg-grid { grid-template-columns: repeat(2, 1fr); }
    .ame-grid { grid-template-columns: repeat(3, 1fr); }
    .ame-item--full { grid-column: span 3; }
    .act-grid { grid-template-columns: repeat(2, 1fr); }
    .act-desc { display: block; }
    .gal-grid { grid-template-columns: repeat(3, 1fr); }
    .gal-item--wide { grid-column: span 3; aspect-ratio: 3/1; }
    .con-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }

    /* FIX tablet: botões da seção contato em linha a partir de 640px */
    .con-links-row {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .con-links-row .btn {
        flex: 1 1 auto;
        width: auto;
        min-width: 140px;
    }
}


/* ──────────────────────────────────────────
   24. RESPONSIVE — DESKTOP ≥1024px
   ────────────────────────────────────────── */
@media (min-width: 1024px) {
    :root {
        --section-py: var(--sp-24);
        --header-h: 96px;
    }
    body { padding-bottom: 0; }

    h1 { font-size: var(--text-4xl); }
    .hero-title { font-size: var(--text-4xl); }

    .site-logo img { height: 72px; }
    .logo-text { font-size: var(--text-md); } /* restaura tamanho normal no desktop */

    /* Desktop: mostra o CTA e esconde o hamburger */
    #header-cta { display: inline-flex !important; }
    .main-nav { display: block; }
    .menu-toggle { display: none; }
    .bottom-nav { display: none; }
    .back-top { bottom: 1.5rem; }

    .pkg-grid { grid-template-columns: repeat(4, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .container { padding: 0 var(--sp-8); }

    /* Contato: botões em linha no desktop */
    .con-links-row {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    .con-links-row .btn {
        flex: 0 0 auto;
        width: auto;
        min-width: auto;
    }
}

/* ──────────────────────────────────────────
   25. PRINT
   ────────────────────────────────────────── */
@media print {
    .site-header, .bottom-nav, .mobile-nav,
    .nav-overlay, .lightbox, .back-top { display: none !important; }
    body { padding: 0; }
}
