html {
    scroll-behavior: smooth;
}

:root {
    --primary: #320003;
    --primary-container: #540b0e;
    --on-primary: #ffffff;
    --background: #f9f9f9;
    --surface: #f9f9f9;
    --surface-container-low: #f3f3f3;
    --surface-container: #eeeeee;
    --on-surface: #1a1c1c;
    --on-surface-variant: #554241;
    --outline-variant: #dbc0be;
    --text-slate-600: #475569;
    --text-slate-500: #64748b;
    --text-slate-400: #94a3b8;
}

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

body {
    font-family: 'Sarabun', sans-serif;
    background-color: var(--background);
    color: var(--on-surface);
    line-height: 1.5;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Sarabun', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Navigation */
nav.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 2rem;
    /* Reduzido 10%+ */
    background-color: #ffffff;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: -0.05em;
    color: #2d0001;
}

.nav-links {
    display: none;
    gap: 3rem;
    /* Espaçamento entre os links */
}

@media (min-width: 1024px) {

    /* Links aparecem em desktop/laptop */
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-size: 0.9375rem;
    /* Equivale a 15px */
    font-weight: 700;
    /* Aplicado Negrito */
    color: var(--text-slate-600);
    text-transform: uppercase;
    text-decoration: none;
}

.nav-links a.active {
    color: #7f1d1d;
    border-bottom: 2px solid #450a0a;
    padding-bottom: 0.25rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 4.5rem;
    /* Aumentado 50% para separar melhor os links do botão */
}

.search-container {
    position: relative;
    display: none;
}

@media (min-width: 1024px) {
    .search-container {
        display: block;
    }
}

.search-input {
    background: transparent;
    border: 1px solid rgba(219, 192, 190, 0.3);
    border-radius: 9999px;
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
    width: 12rem;
    outline: none;
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-slate-400);
    font-size: 0.875rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-container);
    color: white;
    padding: 0.45rem 1.4rem;
    /* Reduzido proporcionalmente */
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    /* Negrito aplicado */
    border: 1px solid transparent;
    /* Reserva espaço para borda do hover */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.btn-primary:hover {
    background-color: white;
    color: var(--primary-container);
    /* Muda cor da fonte */
    border-color: var(--primary-container);
}

.btn-primary:active {
    transform: scale(0.95);
}


/* Ebook (Antigo Hero) */
.ebook {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.ebook-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ebook-content {
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    color: white;
    z-index: 10;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    /* Sombra para leitura clara */
}

.ebook-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    /* Gradiente focado na área do texto para máxima leitura */
}

@media (min-width: 768px) {
    .ebook-content {
        left: 6rem;
        max-width: 50%;
        /* Concentra o texto na metade esquerda */
        padding-right: 4rem;
    }
}

.ebook-content h2 {
    font-size: 2.75rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.ebook-content .btn-primary {
    font-size: 1.05rem;
    /* Aumentado 20% */
    padding: 0.75rem 2rem;
}

@media (min-width: 768px) {
    .ebook-content h2 {
        font-size: 3.5rem;
    }
}

.ebook-content p {
    font-size: 1.25rem;
    /* Igual à galeria */
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 38rem;
}

/* Floating Contact */
.floating-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    text-decoration: none;
    opacity: 0;
    /* Invisível inicialmente */
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-contact.show {
    opacity: 1;
    /* Revelado após scroll */
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

.contact-badge {
    width: 5.5rem;
    height: 5.5rem;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-badge:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(37, 211, 102, 0.6);
    background: #20ba5a;
}

.contact-badge .material-symbols-outlined {
    margin-bottom: 0.25rem;
}

/* Editorial Section */
.editorial {
    padding: 5rem 3rem;
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .editorial {
        grid-template-columns: 1fr 1fr;
        padding: 5rem 6rem;
    }
}

.editorial-img-container {
    position: relative;
}

.editorial-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.signature-box {
    position: absolute;
    bottom: -2.5rem;
    right: -2.5rem;
    background: var(--primary-container);
    padding: 3rem;
    display: none;
}

@media (min-width: 1024px) {
    .signature-box {
        display: block;
    }
}

.signature-box h2 {
    color: white;
    font-size: 2.25rem;
    font-weight: 300;
    font-style: italic;
}

.label-small {
    color: var(--primary-container);
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
}

.editorial h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.editorial-text {
    color: var(--text-slate-600);
    column-count: 1;
    column-gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .editorial-text {
        column-count: 2;
    }
}

.editorial-text p {
    margin-bottom: 1.5rem;
}

.icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid rgba(219, 192, 190, 0.2);
    padding-top: 3rem;
}

.icon-item {
    text-align: center;
}

.icon-item span {
    color: var(--primary-container);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.icon-item p {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text-slate-500);
}

/* Gallery */
.gallery-section {
    background: var(--surface-container-low);
    padding: 5rem 5%;
    /* Mantido 5% de margem lateral */
    position: relative;
    overflow: hidden;
}

.gallery-header {
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

@media (min-width: 768px) {
    .gallery-header {
        padding: 0 6rem;
    }
}

.gallery-header h2 {
    font-size: 3.75rem;
    font-weight: 300;
    color: var(--primary);
}

.gallery-header p {
    color: var(--text-slate-500);
    max-width: 42rem;
    /* Aumentado para acomodar fonte maior */
    margin-top: 1rem;
    font-size: 1.25rem;
    /* Equivale a 20px */
}

.gallery-nav {
    position: absolute;
    top: 60%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
    z-index: 20;
}

.nav-btn {
    pointer-events: auto;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 1px solid rgba(84, 11, 14, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background: var(--primary-container);
    color: white;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    padding: 0 10%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .gallery-track {
        padding-left: 6rem;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    flex: 0 0 80%;
    height: 600px;
    scroll-snap-align: center;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.btn-outline {
    color: white;
    border: 1px solid white;
    padding: 0.75rem 2rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    backdrop-filter: blur(12px);
}

/* Video Section */
.video-section {
    position: relative;
    height: 100vh;
    /* Ocupa a tela inteira para centralização perfeita */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 60%;
    left: 50%;
    width: 124%;
    height: 124%;
    transform: translate(-50%, -50%);
    border: none;
    object-fit: cover;
}

.video-intro-bg {
    position: absolute;
    inset: 0;
    z-index: 8;
    background: url('brooklin/arkadio-brooklin-capa.jpg') center/cover no-repeat;
    animation: fadeOutIntro 1.2s forwards 4s;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 5;
}

/* Conteúdo Principal Centrado */
.video-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Títulos e Subtítulos conjugando entrada e saída */
.video-content h1 {
    animation: fadeInSlide 1s forwards 0.5s, fadeOutIntro 1s forwards 4s;
    opacity: 0;
}

.video-content h2 {
    animation: fadeInSlide 1s forwards 1.5s, fadeOutIntro 1s forwards 4s;
    opacity: 0;
}

/* Camada externa que move os botões para baixo aos 4s */
.cta-move-layer {
    animation: moveDownCTA 1.2s forwards 4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    /* Remove qualquer margem que desvie o centro */
}

/* Logo revelado ao centro do vídeo no segundo 4 e com loop de saída */
.video-logo-reveal {
    opacity: 0;
    overflow: hidden; /* Container para recorte da revelação */
    display: inline-block;
    /* Inicia no 4s e repete a cada 27s (ajustado para o tempo real do vídeo) */
    animation: fadeInIntro 1s forwards 4s;
}

.video-logo-reveal img {
    display: block;
    transform: translateY(100%);
    animation: logoRevealUp 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards 4.2s;
}

@keyframes logoRevealUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeInIntro {
    to {
        opacity: 1;
    }
}

@keyframes logoLoop {

    0%,
    11.1% {
        opacity: 0;
    }

    /* Invisível nos primeiros 3s do loop (11.1% de 27s) */
    15% {
        opacity: 1;
    }

    /* Surge suavemente aos 4s aprox */
    92.6% {
        opacity: 1;
    }

    /* Mantém visível até os 25s (faltando 2s para o fim) */
    100% {
        opacity: 0;
    }

    /* Desaparece nos últimos 2s */
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutIntro {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes moveDownCTA {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(10vh);
    }
}

.video-content h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .video-content h1 {
        font-size: 4rem;
    }
}

.video-content h2 {
    font-size: 1.53rem;
    /* Ajustado para equilíbrio ideal (reduzido 15% após ampliação) */
    font-weight: 300;
    margin-bottom: 2.5rem;
    line-height: 1.4;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

@media (max-width: 767px) {
    .video-content h1,
    .video-content h2 {
        display: none;
    }
}

.video-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-video {
    min-width: 250px;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.video-content .btn-primary,
.video-content .btn-outline {
    text-decoration: none;
    /* Remove o sublinhado de link */
    display: inline-block;
    /* Mantém comportamento de botão */
    text-align: center;
}

.video-content .btn-outline {
    border-color: white;
    color: white;
    background: transparent;
}

.video-content .btn-outline:hover {
    background: white;
    color: var(--primary-container);
}

/* Project Highlight Section */
.project-highlight {
    background-color: var(--surface-container);
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.highlight-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    max-width: 1200px;
    width: 100%;

}

.highlight-logo {
    flex: 0 0 auto;
}

.highlight-logo img {
    width: 320px;
    height: auto;
    display: block;
}

.highlight-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.highlight-text p {
    font-size: 1.25rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.highlight-text .text-bold {
    font-weight: 800;
    color: var(--primary-container);
}

.highlight-text .text-accent {
    color: #e91e63;
    font-weight: 400;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

@media (max-width: 991px) {
    .highlight-container {
        gap: 3rem;
    }
    .highlight-logo img {
        width: 260px;
    }
}

@media (max-width: 767px) {
    .project-highlight {
        padding: 3rem 1.5rem;
    }
    .highlight-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 0 10%;
    }
    .highlight-logo img {
        width: 220px;
        margin: 0 auto;
    }
    .highlight-text p {
        font-size: 1.1rem;
    }
}

/* Location Section */
.location-section {
    padding: 5rem 3rem;
    background: var(--surface);
}

@media (min-width: 768px) {
    .location-section {
        padding: 5rem 6rem;
    }
}

.location-grid {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
}

@media (min-width: 1024px) {
    .location-grid {
        grid-template-columns: 1fr 2fr;
        align-items: center;
    }
}

.location-info h3 {
    font-size: 2.1rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.location-info p {
    color: var(--text-slate-500);
    margin-bottom: 3rem;
    font-size: 1.25rem;
    /* Equivale a 20px */
    max-width: 42rem;
    line-height: 1.6;
}

.amenities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-slate-600);
}

.amenity-item span:first-child {
    color: var(--primary-container);
}

.amenity-item span:last-child {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.map-container {
    position: relative;
    height: 500px;
    background: var(--surface-container);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-dot {
    width: 1rem;
    height: 1rem;
    background: var(--primary-container);
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.marker-ping {
    position: absolute;
    width: 1rem;
    height: 1rem;
    background: var(--primary-container);
    border-radius: 50%;
    animation: ping 1.5s infinite;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.marker-label {
    margin-top: 1rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
}

/* Tradition Section (Institucional) */
.eztec-tradition-section {
    padding: 6rem 3rem;
    background: var(--surface-container-low);
    text-align: center;
}

@media (min-width: 768px) {
    .eztec-tradition-section {
        padding: 8rem 6rem;
    }
}

.tradition-content {
    max-width: 54rem;
    margin: 0 auto;
}

.eztec-tradition-section h2 {
    font-size: 2.75rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .eztec-tradition-section h2 {
        font-size: 3.5rem;
    }
}

.eztec-tradition-section p {
    color: var(--text-slate-600);
    font-size: 1.25rem;
    line-height: 1.7;
    margin: 0;
}

.tradition-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    /* Distância sofisticada entre os logos */
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Divisor sutil */
}

.tradition-logo-eztec {
    height: 57px;
    /* Aumentado 50% */
    opacity: 0.9;
}

.tradition-logo-projeto {
    height: 105px;
    /* Aumentado 50% */
    opacity: 0.9;
}

@media (max-width: 640px) {
    .tradition-logos {
        flex-direction: column;
        gap: 3rem;
    }
}

/* Form Section */
.form-section {
    background: linear-gradient(135deg, #320003, #540b0e);
    padding: 5rem 3rem;
}

@media (min-width: 768px) {
    .form-section {
        padding: 5rem 6rem;
    }
}

.form-grid {
    max-width: 64rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-intro {
    color: white;
}

.form-intro h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.form-intro p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    line-height: 1.6;
}

.form-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 10px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    color: white;
    outline: none;
    transition: ring 0.3s;
}

.form-input:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.phone-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 1rem;
}

.btn-submit {
    width: 100%;
    background: white;
    color: var(--primary);
    padding: 1.25rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-alternative-cta {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.form-alternative-cta a {
    color: #FFD700;
    /* Amarelo para destaque */
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.3s;
}

.form-alternative-cta a:hover {
    color: #f6d100;
}

/* Recommendations */
.recom-section {
    padding: 5rem 3rem;
    background: var(--surface-container-low);
}

@media (min-width: 768px) {
    .recom-section {
        padding: 5rem 6rem;
    }
}

.recom-section h2 {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 4rem;
}

.recom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .recom-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.recom-card {
    background: var(--surface);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: 0.5s;
    cursor: pointer;
}

.recom-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.recom-card-img {
    height: 16rem;
    overflow: hidden;
}

.recom-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.7s;
}

.recom-card:hover .recom-card-img img {
    transform: scale(1.1);
}

.recom-card-body {
    padding: 2rem;
}

.recom-card-body span {
    font-size: 10px;
    font-weight: bold;
    color: var(--primary-container);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.recom-card-body h4 {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.recom-card-body p {
    font-size: 0.75rem;
    color: var(--text-slate-500);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #320003, #540b0e);
    color: white;
    padding: 6rem 3rem 3rem;
}

@media (min-width: 768px) {
    footer {
        padding: 6rem 6rem 3rem;
    }
}

.footer-grid {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
        /* Distribuição otimizada para as 4 colunas */
    }
}

.footer-logo-wrapper {
    background: white;
    width: 117px;
    height: 117px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.footer-logo-img {
    width: 100%;
    height: auto;
}

.footer-about {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 24rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-title {
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.contact-list .material-symbols-outlined {
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.legal-links {
    display: none;
    /* display: flex; */
    gap: 2rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.legal-links a:hover {
    color: white;
}

/* Estilização Criativa - Endereço de Referência */
.endereco_referencia {
    margin-top: 3rem;
    padding: 2.5rem;
    background: #ffffff;
    border: 1px solid rgba(84, 11, 14, 0.1);
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.endereco_referencia::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #540b0e;
    border-radius: 0 0 4px 4px;
}

.endereco_referencia h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 300;
    color: #333;
    margin: 0;
    line-height: 1.8;
}

.endereco_referencia h4 span {
    display: block;
    font-size: 0.65rem;
    color: #540b0e;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3em;
    opacity: 0.7;
}

/* Diferenciais Horizontal Section */
.diferenciais-horizontal {
    grid-column: 1 / -1;
    background-color: #f2f2f2;
    padding: 3.5rem 2.5rem;
    border-radius: 4px;
    margin-top: 2rem;
}

.diferenciais-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem 2rem;
}

@media (min-width: 768px) {
    .diferenciais-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .diferenciais-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.diferencial-item-h {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.diferencial-item-h img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    /* Brand color #540B0E */
    filter: brightness(0) saturate(100%) invert(11%) sepia(54%) saturate(4597%) hue-rotate(344deg) brightness(88%) contrast(100%);
}

.diferencial-item-h p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.4;
    font-weight: 400;
    margin: 0;
}

/* Signatures Section */
.signatures-section {
    padding: 5rem 3rem;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .signatures-section {
        padding: 5rem 6rem;
    }
}

.signatures-header {
    text-align: center;
    margin-bottom: 5rem;
}

.signatures-header h2 {
    font-size: 4rem;
    /* Aumentado para 4rem para acompanhar os cards */
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.signatures-header p {
    color: var(--text-slate-500);
    max-width: 48rem;
    /* Aumentado para acomodar texto maior */
    margin: 0 auto;
    font-size: 1.25rem;
}

.signatures-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 640px) {
    .signatures-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .signatures-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.signature-card {
    background: white;
    border: 1px solid var(--outline-variant);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.signature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -12px rgba(50, 0, 3, 0.15);
    border-color: var(--primary-container);
}

.signature-img {
    width: 100%;
    aspect-ratio: 4/5;
    /* Formato mais vertical/editorial */
    overflow: hidden;
}

.signature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.signature-card:hover .signature-img img {
    transform: scale(1.1);
}

.signature-info {
    padding: 2.5rem 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.signature-info h4 {
    font-size: 1.4rem;
    /* Aumentado em 50% */
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.signature-info p {
    font-size: 1.10rem;
    /* Aumentado em 50% */
    color: var(--text-slate-600);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   REFINAMENTO GLOBAL MOBILE - TIPOGRAFIA E CABEÇALHOS
   (Redução de aprox. 20% para H1, H2 e H3 apenas em celulares)
============================================================ */
.btn-mobile-more {
    display: none !important;
}

@media (max-width: 767px) {

    /* Ajuste na altura da linha para acompanhar a redução */
    h1,
    h2,
    h3 {
        line-height: 1.25 !important;
    }

    /* H1 - Títulos Principais */
    .intro-text h1 {
        font-size: 2.8rem !important;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important; /* Mesma sombra do ebook para leitura clara */
    }

    /* Era 3.5rem */
    .video-content h1 {
        font-size: 2.2rem !important;
    }

    /* Era 2.75rem */

    /* H2 - Chamadas de Seções e Subtítulos */
    .video-content h2 {
        font-size: 1.22rem !important;
    }

    /* Era 1.53rem - Redução de 20% */
    .recom-section h2 {
        font-size: 2.1rem !important;
    }

    /* Era 3.75rem - Reduzido 44% no total */
    .form-intro h2 {
        font-size: 2.4rem !important;
    }

    /* Era 3rem */
    .map-content h2 {
        font-size: 2.4rem !important;
    }

    /* Era 3rem */
    .tradition-content h2 {
        font-size: 2.2rem !important;
    }

    /* Era 2.75rem */
    .ebook-content h2 {
        font-size: 2rem !important;
    }

    /* Era 2.5rem */

    /* Demais H1, H2, H3 genéricos */
    h1 {
        font-size: 2.4rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    /* Centralização Vertical da Seção Vídeo no Mobile */
    .video-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: auto !important;
        height: auto !important;
        background: #000 !important;
        padding-top: 20% !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        overflow: hidden;
    }

    .video-content {
        position: relative !important;
        padding: 3rem 1.5rem !important;
        width: 100% !important;
        height: auto !important;
        justify-content: center !important;
        transform: translateY(20vh) !important;
        z-index: 10 !important;
        order: 1;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    }

    /* Redução da Margem do Título Principal Mobile - Zerada */
    .video-content h1 {
        margin-top: 0 !important;
        animation: fadeInSlide 1s forwards 0.5s !important;
        /* Remove o fadeOut no mobile */
        opacity: 0;
    }

    .video-content h2 {
        animation: fadeInSlide 1s forwards 1.5s !important;
        /* Remove o fadeOut no mobile */
        opacity: 0;
    }

    /* "Desmembrar" o vídeo da apresentação no Mobile - Empilhamento Vertical */




    .video-bg {
        position: relative !important;
        /* Sai de cima do texto e vai para baixo */
        display: block !important;
        width: 100% !important;
        height: 100vh !important;
        /* Vídeo ocupa a altura total da tela */
        order: 2;
        /* Garante que o vídeo venha por último */
        z-index: 5 !important;
    }

    .video-intro-bg {
        display: none !important;
    }

    .video-overlay {
        display: none !important;
        /* Remove o filtro sobre o vídeo para facilitar o clique */
    }

    .video-logo-reveal {
        animation: none !important;
        opacity: 1 !important;
    }

    .video-logo-reveal img {
        animation: none !important;
        transform: none !important;
    }

    .cta-move-layer {
        animation: none !important;
    }

    /* Redução de 30% na Distância Vertical entre Seções no Mobile */
    .form-section,
    .recom-section,
    .tradition-section,
    .ebook-section,
    .signatures-section,
    footer {
        padding-top: 2rem !important;
        /* Era 3.5rem ou 5rem */
        padding-bottom: 2rem !important;
    }

    /* Ajuste específico para a div do Mapa no Mobile */
    .map-container {
        width: 90% !important;
        /* Mapa ocupa 90% da largura total */
        margin: 0 auto !important;
        /* Centralizado horizontalmente */
        padding: 0 !important;
        /* Removemos o padding para o iframe encostar na borda da div */
        background: transparent !important;
    }

    /* Redução de Padding Horizontal Mobile do Formulário */
    .form-section {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    /* Manter a introdução do formulário com recuo maior (estilo desktop) */
    .form-intro {
        padding-left: 8% !important;
        padding-right: 8% !important;
    }

    /* Ajuste do botão do Ebook no Mobile para caber na tela */
    .ebook-content {
        left: 5% !important;
        right: 5% !important;
        width: 90% !important;
    }

    .ebook-content .btn-primary {
        font-size: 0.9rem !important;
        /* Redução para caber o texto longo */
        padding: 0.75rem 1rem !important;
        /* Padding lateral menor */
        display: inline-block !important;
        width: auto !important;
        max-width: 100% !important;
        white-space: normal !important;
        /* Permite quebrar se for necessário em telas extremas */
        text-align: center !important;
    }

    /* Galeria Mobile: 1 foto central e botões sobrepostos */
    .gallery-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .gallery-track {
        padding: 0 !important;
        gap: 0 !important;
    }

    .gallery-item {
        flex: 0 0 100% !important;
        /* Ocupa a largura total (1 foto por vez) */
        height: 350px !important;
        /* Ajuste de altura para celulares */
    }

    .gallery-nav {
        top: 65% !important;
        /* Posicionado levemente abaixo do centro (60%) no mobile */
        bottom: auto !important;
        padding: 0 1rem !important;
        height: 0 !important;
        /* Deixa apenas os botões ocuparem espaço */
        align-items: center;
    }

    .nav-btn {
        width: 3.5rem !important;
        height: 3.5rem !important;
        background: rgba(255, 255, 255, 0.8) !important;
        /* Botões semi-transparentes sobre a foto */
        border: none !important;
    }

    /* Padding horizontal do cabeçalho da galeria */
    .gallery-header {
        padding-left: 7% !important;
        padding-right: 7% !important;
    }

    /* Espaçamento ajustado na Barra de Navegação Mobile */
    nav.top-nav {
        padding: 0.85rem 1rem !important; /* Mais respiro lateral para caber tudo */
    }

    .nav-right {
        gap: 20px !important; /* Espaço de 20px entre o logo e o botão conforme pedido */
    }

    /* Redução de 15% (distância) no Botão do WhatsApp para não encobrir o conteúdo */
    .floating-contact {
        bottom: 1.5rem !important; /* Estava 2rem */
        right: 1.5rem !important;  /* Estava 2rem */
    }

    .contact-badge {
        width: 4rem !important; /* Estava 4.8rem - Reduzido mais 15% */
        height: 4rem !important; /* Estava 4.8rem - Reduzido mais 15% */
    }

    .contact-badge svg {
        width: 34px !important; /* Reduzido proporcionalmente para manter o preenchimento */
        height: 34px !important;
    }

    /* Botão Saiba Mais exclusivo para Mobile - Centralizado a 14% do bottom */
    .btn-mobile-more {
        display: inline-block !important;
        position: absolute;
        bottom: 14%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        min-width: 200px;
        text-align: center;
        opacity: 0;
    }
}

/* Definição da animação animate-in */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideLocal 1s forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeInSlideLocal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajuste específico para o botão Saiba Mais carregar com a animação correta sem quebrar o transform X */
@media (max-width: 767px) {
    .btn-mobile-more.animate-in {
        animation: fadeInSlideMobile 1s both !important;
        animation-delay: var(--delay, 0s) !important;
    }
}

@keyframes fadeInSlideMobile {
    from {
        opacity: 0;
        transform: translateY(20px) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}

/* Visibility Utilities */
.desktop-only {
    /* Mantém o display original do elemento */
}

.mobile-only {
    display: none !important;
}

@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }
}

/* Mobile Video Section */
.mobile-video-section {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    display: none; /* Hidden by default, shown via .mobile-only media query above */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
}

.mobile-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    object-fit: cover;
}

.mobile-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.mobile-video-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem;
    text-align: center;
}

.mobile-video-logo {
    width: 200px;
    height: auto;
}