/* ===========================================================
   Gnomo Lanches — identidade visual
   Mesmos componentes do Boteco do Gnomo
   Paleta da marca: azul + vermelho + dourado sobre creme
   =========================================================== */
:root {
    --blue:       #1c8bc9;   /* azul da marca (GNOMO) */
    --blue-dark:  #14699b;
    --blue-deep:  #0c3a54;   /* header/footer (azul profundo) */
    --red:        #e11d1a;   /* vermelho do chapéu do gnomo (acento) */
    --red-dark:   #b31512;
    --gold:       #e11d1a;   /* TESTE: vermelho da logo no lugar do dourado (CTA e detalhes) */
    --gold-light: #ff5a4d;
    --cream:      #fbf6ec;   /* fundo claro quente */
    --cream-2:    #f3ead9;
    --ink:        #17303d;   /* texto principal (azul-petróleo escuro) */
    --ink-soft:   #4a6472;
    --white:      #fffdf8;
    --shadow:     rgba(12, 58, 84, 0.18);
}

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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--blue-deep) 0%, #0f4a6b 100%);
    color: var(--white);
    padding: 0.6rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 18px rgba(0,0,0,0.35);
    border-bottom: 3px solid var(--gold);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 58px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.25s;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--gold-light);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Menu Hamburguer */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-dark) 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Overlay para dar contraste ao texto */
.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(12,58,84,0.35) 0%, rgba(12,58,84,0.55) 55%, rgba(12,58,84,0.82) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 820px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.95rem;
    color: var(--gold-light);
    background: rgba(12,58,84,0.45);
    border: 1px solid rgba(255,90,77,0.55);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1.4rem;
}

.hero-tagline {
    position: relative;
    height: 4rem;
    margin-bottom: 2.2rem;
}

.tagline-text {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    font-size: 1.5rem;
    font-weight: 500;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.tagline-text.active {
    opacity: 1;
}

.hero h1 {
    font-family: 'Anton', 'Oswald', sans-serif;
    font-size: 5rem;
    line-height: 0.95;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 4px 4px 0 var(--red), 6px 6px 12px rgba(0,0,0,0.5);
}

.hero h1 .accent {
    color: #ff4a2e;
    /* sombra escura própria: destaca o vermelho sobre a foto */
    text-shadow: 2px 2px 0 rgba(0,0,0,0.6), 4px 4px 14px rgba(0,0,0,0.6);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--red-dark) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(225, 29, 26, 0.5);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(225, 29, 26, 0.7);
    filter: brightness(1.05);
}

/* Sections */
section {
    padding: 5.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--blue);
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--cream-2);
    border-radius: 24px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.12rem;
    line-height: 1.85;
    color: var(--ink);
}

.about-text p + p { margin-top: 1.1rem; }

.about-image {
    height: 420px;
    border-radius: 18px;
    box-shadow: 0 14px 36px var(--shadow);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border: 4px solid var(--white);
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28,139,201,0.35), transparent 55%);
}

/* Features */
#diferenciais { background: var(--cream); }

.features {
    display: grid;
    /* 8 cards: sempre 4 colunas (2 linhas) no desktop — nunca sobra card */
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Telas médias: 2 colunas (4 linhas) — continua fechando certinho */
@media (max-width: 992px) {
    .features { grid-template-columns: repeat(2, 1fr); }
}

.feature-card {
    background: var(--white);
    padding: 2.2rem 2rem;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 6px 22px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--gold);
    will-change: transform;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 36px var(--shadow);
}

.feature-icon {
    width: 86px;
    height: 86px;
    margin: 0 auto 1.3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold) 0%, var(--red-dark) 100%);
    color: var(--white);
    font-size: 2.1rem;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(225, 29, 26, 0.45);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 10px 24px rgba(225, 29, 26, 0.6);
}

.feature-card h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--blue);
    margin-bottom: 0.8rem;
    font-size: 1.45rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-card a {
    color: var(--red) !important;
    font-weight: 700;
}

.feature-card a:hover { color: var(--gold) !important; }

/* Gallery */
.gallery {
    background: var(--cream-2);
    border-radius: 24px;
}

.gallery-grid {
    display: grid;
    /* 9 fotos: sempre 3 colunas (3x3) — nunca sobra foto */
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 22px var(--shadow);
    transition: transform 0.35s;
    background-size: cover;
    background-position: center;
    position: relative;
    will-change: transform;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, rgba(12,58,84,0.75));
    opacity: 0;
    transition: opacity 0.3s;
}

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

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

/* Contact */
#contato { background: var(--cream); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background: var(--white);
    padding: 2.4rem;
    border-radius: 18px;
    box-shadow: 0 6px 22px var(--shadow);
    border-left: 5px solid var(--gold);
}

.contact-info h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--blue) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.6rem;
    font-size: 1.08rem;
}

.contact-item .icon {
    font-size: 1.5rem;
    color: var(--blue);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--blue-dark) !important;
    font-weight: 700;
}

.contact-item a:hover { color: var(--red) !important; }

.phone-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

.contact-item a.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.phone-btn-call { background: var(--blue); }
.phone-btn-whatsapp { background: #25D366; }

.map {
    border-radius: 18px;
    height: 420px;
    overflow: hidden;
    box-shadow: 0 6px 22px var(--shadow);
    border: 4px solid var(--white);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--blue-deep) 0%, #0f4a6b 100%);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 2rem;
    border-top: 3px solid var(--gold);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.2rem;
}

.social-links a {
    color: var(--white);
    font-size: 2rem;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.social-links a:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

footer p { opacity: 0.9; }

/* Botão flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.35);
    z-index: 1001;
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }

    .menu-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 72%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, var(--blue-deep) 0%, #0f4a6b 100%);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.4);
        z-index: 999;
    }

    .nav-links.active { right: 0; }

    .nav-links li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.6s; }

    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-card { padding: 1.5rem 1rem; }

    .feature-icon {
        width: 62px;
        height: 62px;
        font-size: 1.55rem;
        margin-bottom: 1rem;
    }

    .feature-card h3 { font-size: 1.1rem; }

    .feature-card p { font-size: 0.9rem; }

    section { padding: 3.5rem 1.25rem; }

    .about, .gallery { border-radius: 0; }

    h2 { font-size: 2.1rem; }

    .hero-tagline { height: 5.5rem; }

    .tagline-text { font-size: 1.15rem; }

    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }

    .about-image { height: 280px; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* 9ª foto ocupa a linha toda no celular (fecha sem buraco) */
    .gallery-grid .gallery-item:last-child { grid-column: 1 / -1; }

    .gallery-item { height: 180px; }

    .map { height: 320px; }

    .contact-info { padding: 1.6rem; }

    .whatsapp-float {
        width: 54px;
        height: 54px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1.8rem;
    }
}

@media (max-width: 400px) {
    .hero h1 { font-size: 2.4rem; }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1.1rem;
    }
}
