@import url('color.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --cor-primaria: #6c161b;
    --cor-primaria-clara: #f8e9eb;
    --cor-texto: #3b2222;
    --cor-fundo: #ffffff;
    --cor-cinza: #f5f5f7;
    --cor-borda: #e0dde0;

    --font-base: 'Poppins', sans-serif;

    --shadow-soft: 0 10px 25px rgba(0,0,0,0.08);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
}

/* CONTAINERS E SEÇÕES */
.container {
    width: 100%;
    max-width: 1180px;
    padding: 0 16px;
    margin: 0 auto;
}

.section {
    padding: 64px 0;
}

.section-alt {
    background-color: var(--cor-cinza);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--cor-primaria);
    text-align: left;
    margin-bottom: 8px;
}

.section-title-light {
    color: #ffffff;
    text-align: center;
}

.section-divider {
    width: 80px;
    height: 3px;
    border-radius: 999px;
    background-color: var(--cor-primaria);
    margin-bottom: 24px;
}

.section-divider-light {
    margin: 8px auto 24px;
    background-color: #ffffff;
}

.section-text p {
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 1rem;
}

/* HEADER */
.top-header {
    background-image: url('../img/LINHASPARAOFUNDO.png');
    background-size: cover;
    background-position: center;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--cor-primaria);
}

.brand-sub {
    font-size: 0.8rem;
    opacity: 0.8;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.95rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--cor-texto);
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--cor-primaria);
    transition: width 0.2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--cor-primaria);
    color: var(--cor-primaria);
}

.nav-cta:hover {
    background-color: var(--cor-primaria);
    color: #ffffff;
}

/* ================= HERO ================= */

.hero {
    padding: 24px 0 18px;
}

/* imagem em cima, texto embaixo */
.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

/* full width visual do banner */
.hero-image-wrapper {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: flex;
    justify-content: center;
}

/* imagem SEM corte: largura total, altura automática */
.hero-image {
    width: 100%;
    max-width: 1400px;      /* limite pra monitores grandes */
    height: auto;           /* mantém proporção da imagem */
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
}

/* texto do hero */
.hero-text {
    width: 100%;
    max-width: 820px;
}

.hero-text h1 {
    font-size: 2.8rem;
    color: var(--cor-primaria);
    margin-bottom: 14px;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.hero-list {
    padding-left: 20px;
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

.hero-list li {
    margin-bottom: 6px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* BOTÕES GENÉRICOS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-primary {
    background-color: var(--cor-primaria);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background-color: #8a1b22;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--cor-primaria);
    color: var(--cor-primaria);
}

.btn-outline:hover {
    background-color: var(--cor-primaria-clara);
}

/* ================= GASTRO GRID E IMAGENS ================= */

/* agora usando FLEX, não GRID */
.gastro-grid {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* texto e imagem dividem o espaço igualmente no desktop */
.gastro-text,
.gastro-image-wrapper {
    flex: 1 1 0;
}

.gastro-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* tamanho padrão para todas as imagens grandes no desktop */
.gastro-image,
.instagram {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

/* seção invertida: troca ordem no desktop (imagem à direita, texto à esquerda) */
.gastro-grid.invert {
    flex-direction: row-reverse;
}

/* INSTAGRAM / COLONOSCOPIA (reaproveitando gastro-grid no HTML novo) */
.insta-grid {
    display: flex;
    justify-content: center;
}

/* Se você ainda usar .insta-card em outro lugar, deixa flex também */
.insta-card {
    display: flex;
    align-items: stretch;
    gap: 24px;
    text-decoration: none;
    color: inherit;
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.insta-text {
    padding: 18px;
    display: flex;
    align-items: center;
}

.texto-insta {
    font-size: 0.96rem;
}

/* FEEDBACK */
.section-feedback {
    background-image: url('../img/FUNDOFEEDBACK.png');
    background-size: cover;
    background-position: center;
    padding: 72px 0;
    color: #ffffff;
}

.feedback-overlay {
    background: rgba(0,0,0,0.45);
    padding: 32px 0;
}

.carousel-track {
    position: relative;
    width: 100%;
    max-width: 720px;
    height: 220px;
    margin: 24px auto 0;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.comentario-card {
    min-width: 100%;
    background-color: rgba(255,255,255,0.08);
    margin: 0 auto;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: #ffffff;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

/* CONTATO */
.contato-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 30px;
    align-items: stretch;
}

.contato-info .texto {
    font-size: 0.98rem;
}

.contato-info a {
    color: var(--cor-primaria);
    text-decoration: none;
}

.contato-info a:hover {
    text-decoration: underline;
}

.contato-icons {
    display: flex;
    gap: 18px;
    margin-top: 12px;
}

.contato-icons img {
    width: 36px;
    height: 36px;
}

/* MAPA */
.mapa {
    width: 100%;
    min-height: 260px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* TEXTO GENÉRICO .texto */
.texto {
    line-height: 1.7;
    font-size: 1rem;
}

/* FOOTER */
.site-footer {
    background-color: #faf8f8;
    padding: 18px 0;
    margin-top: 24px;
    border-top: 1px solid var(--cor-borda);
}

.footer-inner {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ================== COOKIE BANNER ================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(40,40,40,0.94);
    width: 100%;
    max-width: 100%;
    color: #ffffff;
    padding: 16px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.25);
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.ptermo {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.btncookies {
    background-color: var(--cor-primaria);
    color: #ffffff;
    padding: 8px 18px;
    margin: 4px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btncookies:hover {
    background-color: #8a1b22;
    transform: translateY(-1px);
}

/* MODAL DE COOKIES */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.cookie-modal-content {
    background-color: #ffffff;
    margin: 8% auto;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    color: var(--cor-texto);
    font-family: var(--font-base);
    text-align: left;
    box-shadow: var(--shadow-soft);
}

.modal-buttons {
    text-align: center;
    margin-top: 16px;
}

/* ============================================
   ========  LAYOUT APENAS PARA DESKTOP  ========
   ============================================ */

@media (min-width: 961px) {

    /* Seções de conteúdo com imagem + texto lado a lado */
    .gastro-grid {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 40px;
    }

    /* Alterna a ordem: imagem à direita, texto à esquerda */
    .gastro-grid.invert {
        flex-direction: row-reverse;
    }

    .gastro-image-wrapper,
    .gastro-text {
        flex: 1 1 0;
    }

    .gastro-image-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .gastro-image,
    .instagram {
        width: 100%;
        max-width: 520px;
        height: auto;
        border-radius: 22px;
        object-fit: cover;
        box-shadow: var(--shadow-soft);
    }

    /* Bloco de Instagram também organizado em duas colunas */
    .insta-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 32px;
    }

    .insta-card img {
        width: 50%;
        max-width: 520px;
        height: auto;
        object-fit: cover;
    }

    .insta-text {
        width: 50%;
        padding: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ================== RESPONSIVO ================== */



/* MOBILE — até 960px */
@media (max-width: 960px) {

    /* Ajustes gerais do topo */
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .main-nav {
        flex-wrap: wrap;
        row-gap: 6px;
        column-gap: 14px;
        font-size: 0.9rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.02rem;
    }

    /* ================================
       TODAS AS .gastro-grid → COLUNA
       IMAGEM EM CIMA, TEXTO EMBAIXO
       ================================ */

    .gastro-grid {
        display: flex !important;          /* sobrescreve grid/flex anterior */
        flex-direction: column !important; /* empilha imagem + texto */
        gap: 20px !important;
    }

    .gastro-grid .gastro-image-wrapper {
        order: 0 !important;
        width: 100% !important;
        margin-bottom: 12px;
    }

    .gastro-grid .gastro-text {
        order: 1 !important;
        width: 100% !important;
    }

    /* Insta-card também em coluna (se ainda usar) */
    .insta-card {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Contato em 1 coluna */
    .contato-grid {
        grid-template-columns: 1fr !important;
    }

    body {
        overflow-x: hidden !important;
    }
}

/* MOBILE — até 600px (ajuste fino do topo e hero) */
@media (max-width: 600px) {

    /* HEADER mais compacto */
    .top-header {
        position: relative;
        padding: 10px 0;
        box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .brand-name {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .brand-sub {
        font-size: 0.78rem;
        max-width: 260px;
    }

    /* MENU em bloco, mais organizado */
    .main-nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        row-gap: 4px;
        column-gap: 12px;
        font-size: 0.86rem;
    }

    .main-nav a {
        padding: 2px 0;
    }

    /* botão “Agende sua consulta” ocupando a largura toda */
    .nav-cta {
        margin-top: 4px;
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 8px 16px;
    }

    /* HERO mais enxuto */
    .hero {
        padding-top: 14px;
        padding-bottom: 18px;
    }

    /* imagem do banner 100% da largura, sem sobrar para os lados */
    .hero-image-wrapper {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hero-image {
        max-width: 100% !important;
        border-radius: 20px;
    }

    .hero-grid {
        gap: 14px;
    }

    .hero-text {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .hero-subtitle,
    .texto,
    .texto-insta {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 12px !important;
    }

    body {
        overflow-x: hidden !important;
    }
}
