/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores */
    --background: hsl(180, 40%, 98%);
    --foreground: hsl(200, 20%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(200, 20%, 15%);
    --primary: hsl(175, 55%, 45%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(195, 25%, 92%);
    --secondary-foreground: hsl(200, 20%, 15%);
    --muted: hsl(195, 20%, 94%);
    --muted-foreground: hsl(200, 15%, 45%);
    --accent: hsl(15, 85%, 65%);
    --accent-foreground: hsl(0, 0%, 100%);
    --destructive: hsl(0, 84.2%, 60.2%);
    --destructive-foreground: hsl(0, 0%, 100%);
    --border: hsl(195, 20%, 88%);
    --input: hsl(195, 20%, 90%);
    --ring: hsl(175, 55%, 45%);

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, hsl(175, 55%, 45%), hsl(175, 60%, 65%));
    --gradient-hero: linear-gradient(180deg, hsl(180, 40%, 98%), hsl(175, 30%, 95%));
    --gradient-accent: linear-gradient(135deg, hsl(15, 85%, 65%), hsl(25, 90%, 70%));

    /* Sombras */
    --shadow-sm: 0 2px 8px hsl(175, 30%, 25%, 0.08);
    --shadow-md: 0 4px 16px hsl(175, 30%, 25%, 0.12);
    --shadow-lg: 0 8px 32px hsl(175, 30%, 25%, 0.15);
    --shadow-glow: 0 0 32px hsl(175, 55%, 45%, 0.15);

    /* Transições */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   MENU A - Links Centralizados (Sem Logo)
   ============================================ */
.menu-a {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
}

.menu-a.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

.menu-a .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

.menu-a-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    height: 6rem;
    width: 100%;
    box-sizing: border-box;
}

.menu-a .menu-link {
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: #343A40;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    font-family: 'Inter', sans-serif;
}

.menu-a .menu-link:hover {
    color: #0078BE;
}

/* ============================================
   MENU B - Logo à Esquerda, Links à Direita
   ============================================ */
.menu-b {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
    height: 6rem;
    overflow: hidden;
}

.menu-b:not(.hidden) {
    display: block;
}

.menu-b.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

.menu-b .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    box-sizing: border-box;
    display: block;
    position: relative;
    background: transparent;
    height: 6rem;
    overflow: hidden;
}

.menu-b-content {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    height: 6rem;
    width: 100%;
    box-sizing: border-box;
    gap: 1rem;
    background: transparent;
}

/* Logo à esquerda - primeira coluna do grid */
.menu-b-content > .menu-b-logo {
    grid-column: 1;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 0;
    margin: 0;
    display: block;
    justify-self: start;
}

.menu-b-logo:hover {
    opacity: 0.8;
}

.menu-b-logo-img {
    height: 4rem;
    width: auto;
    display: block;
    margin: 0;
}

/* Menu à direita - segunda coluna do grid (ocupa espaço restante) */
.menu-b-content > .menu-b-nav {
    grid-column: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    width: 100%;
}

.menu-b .menu-link {
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: #343A40;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.menu-b .menu-link:hover {
    color: #0078BE;
}

/* ============================================
   MENU MOBILE - Botão Hamburger
   ============================================ */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: #343A40;
    z-index: 100;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.menu-b .mobile-menu-btn {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-icon {
    display: block;
    transition: transform 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 6rem;
    left: 0;
    right: 0;
    background: #FFFFFF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 49;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    margin: 0;
    border: none;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 799px) {
    .mobile-menu {
        top: 6rem;
    }
}

.mobile-menu.active {
    display: block;
    max-height: 400px;
    padding: 1rem 0;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-link {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: #343A40;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.mobile-menu-link:hover {
    background-color: #f8f9fa;
    color: #0078BE;
}

/* ============================================
   RESPONSIVIDADE - MENU MOBILE (abaixo de 800px)
   ============================================ */
@media (max-width: 799px) {
    /* Menu A - Completamente oculto no mobile */
    .menu-a {
        display: none !important;
    }
    
    /* Menu B - Sempre visível no mobile, logo e botão hamburger */
    .menu-b {
        display: block !important;
    }
    
    .menu-b.hidden {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }
    
    /* Ocultar completamente o menu desktop no mobile */
    .menu-b-nav {
        display: none !important;
    }
    
    .menu-b .menu-link {
        display: none !important;
    }
    
    .menu-b .mobile-menu-btn {
        display: block !important;
        position: absolute;
        right: 1.25rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 100;
    }
    
    /* Menu mobile só aparece quando tem classe .active */
    .menu-b .mobile-menu {
        display: none;
    }
    
    .menu-b .mobile-menu.active {
        display: block;
    }
    
    /* Simplificar e otimizar espaçamentos para logo maior no mobile */
    .menu-b-content {
        position: relative;
        margin: 0;
        padding: 0;
        gap: 0.25rem; /* Gap mínimo para não comprimir */
        align-items: center;
        height: 6rem;
    }
    
    /* Reduzir padding do container ao mínimo para dar mais espaço à logo */
    .menu-b .container {
        margin: 0;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 0;
        padding-bottom: 0;
        height: 6rem;
    }
    
    /* Aumentar logo no mobile e descolar levemente do topo/baixo sem aumentar o menu */
    .menu-b-logo {
        padding: 0.75rem 0 !important; /* espaçamento triplicado conforme solicitado */
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: 6rem !important; /* mantém a altura do menu */
        box-sizing: border-box; /* padding não aumenta a altura total */
        line-height: 0;
    }

    .menu-b-logo-img {
        height: 100% !important; /* ocupa a área útil descontando o padding */
        width: auto !important;
        object-fit: contain;
        max-width: none;
        display: block;
    }
    
    /* Garantir altura adequada - logo não será cortada pois está dentro do height de 6rem */
    
    /* Aumentar ícone hamburger no mobile */
    .menu-b .mobile-menu-btn {
        font-size: 2rem;
        padding: 0.75rem;
    }
    
    .menu-b .mobile-menu-icon {
        font-size: 2rem;
    }
    
    /* Garantir que o menu não tenha espaçamento extra */
    .menu-b {
        margin: 0;
        padding: 0;
    }
}

/* ============================================
   RESPONSIVIDADE - MENU DESKTOP (800px ou mais)
   ============================================ */
@media (min-width: 800px) {
    .menu-a-nav {
        display: flex;
    }
    
    .menu-a .mobile-menu-btn {
        display: none;
    }
    
    .menu-a .mobile-menu {
        display: none !important;
    }
    
    .menu-b-nav {
        display: flex;
    }
    
    .menu-b .mobile-menu-btn {
        display: none;
    }
    
    .menu-b .mobile-menu {
        display: none !important;
    }

    /* Ajuste fino do menu B no desktop */
    .menu-b .container {
        padding-left: 1.5rem; /* espaço lateral para não colar nas extremidades */
        padding-right: 1.5rem;
    }
}

/* ============================================
   RESPONSIVIDADE - MENU A (ajustes menores)
   ============================================ */
@media (max-width: 768px) {
    .menu-a .menu-link {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .menu-a .menu-link {
        font-size: 0.9rem;
    }
}

/* ============================================
   RESPONSIVIDADE - MENU B (ajustes menores)
   ============================================ */
@media (max-width: 768px) {
    .menu-b .menu-link {
        font-size: 1rem;
    }
    
    .menu-b-logo-img {
        height: 2.5rem;
    }
}

@media (max-width: 480px) {
    .menu-b .menu-link {
        font-size: 0.9rem;
    }
    
    .menu-b-logo-img {
        height: 2rem;
    }
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fundo azul claro uniforme */
    background: #9AC4F5;
    padding-top: 3rem; /* Reduzido para diminuir espaço acima */
    padding-bottom: 5rem; /* Aumentado para aumentar espaço abaixo */
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

@media (max-width: 799px) {
    .hero {
        margin-top: 6rem; /* Espaçamento para o menu fixo no mobile */
        padding-top: 1rem; /* Reduzido do espaçamento */
        padding-bottom: 3rem;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centralizado */
    gap: 2rem;
    justify-content: center;
}

.hero-logo {
    display: flex;
    justify-content: center; /* Centralizado */
    align-items: center;
    margin-bottom: 0;
    width: 100%;
}

.hero-btn {
    margin-top: 0;
}

.hero-logo-img {
    object-fit: contain !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: var(--transition-smooth);
    width: 240px !important;
    height: 240px !important;
    max-width: 240px !important;
    max-height: 240px !important;
    min-width: 240px !important;
    min-height: 240px !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
}

.hero-logo-img:hover {
    transform: scale(1.05);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 2rem;
    max-width: 3xl;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 1), 0 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

/* Hero Button - Força cor azul */
.hero .hero-content .hero-btn {
    background: #0078BE !important;
    color: white !important;
}

.hero .hero-content .hero-btn:hover {
    background: #0066A1 !important;
}

.hero-btn {
    background: #0078BE !important;
    color: white !important;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn:hover {
    background: #0066A1 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Gallery */
.hero-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 120px);
    gap: 1rem;
    height: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    border: 3px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-color: rgba(255, 255, 255, 0.4);
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

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

/* Galeria Expandida */
.gallery-expanded {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 100;
    border-radius: 1.25rem;
    overflow: visible;
    cursor: pointer;
}

.gallery-expanded-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: auto;
}

.gallery-expanded-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.25rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeInScale 0.4s ease-out;
    transition: opacity 0.3s ease;
    opacity: 1;
    padding: 0;
    box-sizing: border-box;
    pointer-events: none;
    position: relative;
    z-index: 2;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    pointer-events: auto;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.gallery-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1) rotate(90deg);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.gallery-nav-prev {
    left: 1rem;
}

.gallery-nav-next {
    right: 1rem;
}

.gallery-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.15);
}

.gallery-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}


.gallery-grid.gallery-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.gallery-item:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.gallery-item:nth-child(3) {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}

.gallery-item:nth-child(4) {
    grid-column: 3 / 5;
    grid-row: 2 / 4;
}

.gallery-item:nth-child(5) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.gallery-item:nth-child(6) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.gallery-item:nth-child(7) {
    grid-column: 1 / 3;
    grid-row: 4 / 5;
}

.gallery-item:nth-child(8) {
    grid-column: 3 / 5;
    grid-row: 4 / 5;
}

.stat-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.stat-label {
    font-size: 1rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Intro Section */
.intro {
    padding: 4rem 1rem;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.intro-content {
    text-align: center;
    max-width: 4xl;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: 3rem;
    max-width: 3xl;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    line-height: 1.6;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 4xl;
    margin: 0 auto;
}

.intro-stat-card {
    background: var(--card);
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    border: 2px solid var(--border);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.intro-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(175, 55%, 45%, 0.5);
}

.intro-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.intro-stat-label {
    font-size: 1rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 100%;
    margin: 0.5rem auto 0;
}

.map-section .section-header {
    margin-bottom: 3rem;
}

/* About Section */
.about {
    padding: 5rem 1rem;
    background: linear-gradient(to bottom, var(--background), rgba(195, 25%, 92%, 0.2));
}

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

.about-text {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.8;
}

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

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.about-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 2px solid var(--border);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(175, 55%, 45%, 0.5);
}

.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(175, 55%, 45%, 0), rgba(175, 55%, 45%, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.about-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.about-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

/* WhatsApp Section */
.whatsapp {
    padding: 3rem 1rem;
    background: var(--background);
}

.whatsapp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.whatsapp-card {
    background: var(--card);
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: var(--transition-smooth);
}

.whatsapp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(175, 55%, 45%, 0.5);
}

.card-image {
    height: 12rem;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.whatsapp-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Delivery Section */
.delivery {
    padding: 3rem 1rem;
    background: rgba(195, 25%, 92%, 0.3);
}

.delivery-content {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 1.5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.delivery-image-main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 0 1.5rem 0;
}

.delivery-image-main img {
    width: 100%;
    height: auto;
    max-width: 350px;
    object-fit: contain;
    border-radius: 1rem;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1));
}

.delivery-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.delivery-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.delivery-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid var(--border);
    transition: var(--transition-smooth);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.delivery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 120, 190, 0.25);
}

.delivery-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.delivery-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
    line-height: 1.3;
}

.delivery-card p {
    font-size: 1rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin: 0;
}

/* Estilos compartilhados para horários */
.schedule-day {
    font-weight: 500;
    color: var(--foreground);
}

.schedule-time {
    font-weight: 600;
    color: var(--primary);
}

.delivery-cta {
    display: flex;
    justify-content: center;
    width: 100%;
}

.delivery-btn {
    background: #0078BE;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 120, 190, 0.2);
}

.delivery-btn:hover {
    background: #0066A1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 120, 190, 0.3);
}

/* Responsividade - Delivery Section */
@media (max-width: 1023px) {
    .delivery-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .delivery-image-main {
        order: 1;
        padding: 1rem;
    }

    .delivery-info {
        order: 2;
        gap: 1.25rem;
    }

    .delivery-cards {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
}

@media (max-width: 767px) {
    .delivery {
        padding: 3rem 1rem;
    }

    .delivery-content {
        gap: 1.25rem;
    }

    .delivery-image-main {
        padding: 0.75rem;
    }

    .delivery-info {
        gap: 1rem;
    }

    .delivery-cards {
        gap: 0.75rem;
    }

    .delivery-card {
        padding: 1.25rem;
    }

    .delivery-icon {
        font-size: 2rem;
    }

    .delivery-card h3 {
        font-size: 1.125rem;
    }

    .delivery-card p {
        font-size: 0.9375rem;
    }

    .delivery-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Services Section */
.services {
    padding: 5rem 1rem 3rem;
    background: rgba(195, 25%, 92%, 0.3);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card--wide {
    grid-column: span 2;
}

/* Responsividade do grid de serviços */
@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card--wide {
        grid-column: span 1;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card--wide {
        grid-column: span 2;
    }
}

.service-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid var(--border);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: default; /* Removido cursor pointer, mantém efeitos de hover */
    display: flex;
    flex-direction: column;
    min-height: fit-content;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 120, 190, 0.25);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(175, 55%, 45%, 0), rgba(175, 55%, 45%, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover::before {
    opacity: 1;
}

/* Desabilitar o hover do ::before padrão para o card farmacêutico */
.service-card--pharmaceutical:hover::before {
    opacity: 0.1 !important; /* Mantém a opacidade baixa mesmo no hover */
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: rgba(175, 55%, 45%, 0.1);
    padding: 1rem;
    border-radius: 1rem;
    width: fit-content;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: rgba(175, 55%, 45%, 0.2);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.service-card:hover h3 {
    color: var(--primary);
}

.service-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Card de Serviços Farmacêuticos - Estilo com ícone de fundo */
.service-card--pharmaceutical {
    position: relative;
    overflow: hidden;
    background: hsla(175, 55%, 45%, 0.1); /* Cor primary com 90% de transparência (10% de opacidade) */
}

/* Remover o efeito de gradiente do hover padrão do service-card para este card específico */
.service-card--pharmaceutical::after {
    display: none;
}

/* Sobrescrever o ::before padrão do service-card para não interferir no ícone */
.service-card.service-card--pharmaceutical::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 8rem !important;
    height: 8rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 5 L50 95 M40 15 Q40 10 50 10 Q60 10 60 15 Q60 25 50 25 Q40 25 40 35 Q40 45 50 45 Q60 45 60 55 Q60 65 50 65 Q40 65 40 75 Q40 85 50 85 Q60 85 60 75' fill='white' stroke='none'/%3E%3Cpath d='M50 5 L45 8 L50 11 L55 8 Z' fill='white'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    opacity: 0.1 !important; /* 90% de transparência = 10% de opacidade */
    z-index: 0 !important;
    pointer-events: none !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    filter: drop-shadow(none) !important;
}

/* Efeito hover: ampliação suave do ícone (sem afetar a opacidade) */
.service-card--pharmaceutical:hover::before {
    transform: translate(-50%, -50%) scale(1.15) !important;
    opacity: 0.1 !important; /* Mantém a mesma opacidade no hover */
}

.service-card--pharmaceutical h3 {
    position: relative;
    z-index: 1;
}

.service-card--pharmaceutical .service-list-checkmarks {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.service-card--pharmaceutical .service-list-checkmarks li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--muted-foreground);
    padding-left: 1.75rem;
    position: relative;
    display: flex;
    align-items: center;
}

.service-card--pharmaceutical .service-list-checkmarks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Responsividade para o card de Serviços Farmacêuticos */
@media (max-width: 767px) {
    .service-card--pharmaceutical::before {
        width: 6rem !important;
        height: 6rem !important;
    }
    
    .service-card--pharmaceutical .service-list-checkmarks {
        gap: 0.4rem;
        margin-top: 0.5rem;
    }
    
    .service-card--pharmaceutical .service-list-checkmarks li {
        font-size: 0.9375rem;
        line-height: 1.5;
        padding-left: 1.5rem;
    }
    
    .service-card--pharmaceutical .service-list-checkmarks li::before {
        width: 1rem;
        height: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .service-card--pharmaceutical::before {
        width: 7rem !important;
        height: 7rem !important;
    }
    
    .service-card--pharmaceutical .service-list-checkmarks li {
        font-size: 1rem;
    }
}

/* Card de imagem na grade de serviços */
.service-card--image {
    padding: 0;
    overflow: hidden;
    cursor: default; /* Removido cursor pointer da imagem */
}

.service-photo-card {
    width: 100%;
    height: 100%;
    cursor: default; /* Removido cursor pointer */
}

.service-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: default; /* Removido cursor pointer */
}

/* Contact Section */
.contact {
    padding: 5rem 1rem;
    background: var(--background);
}

.contact-form-container {
    max-width: 2xl;
    margin: 0 auto;
}

.contact-form {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
}

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

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--input);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: var(--background);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(175, 55%, 45%, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--destructive);
}

.error-message {
    color: var(--destructive);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.submit-btn {
    background: #0078BE !important;
    color: white !important;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background: #0066A1 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Map Section - Estilo Google Maps */
.map-section {
    padding: 3rem 1rem 3rem;
    background: var(--background);
    margin-bottom: 0;
}


.map-layout {
    display: flex;
    flex-direction: column;
    height: 600px;
    max-width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: white;
}

/* Sidebar estilo Google Maps */
.map-sidebar {
    width: 100%;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    overflow-y: auto;
    max-height: 400px;
}

.sidebar-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #202124;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.sidebar-subtitle {
    font-size: 0.875rem;
    color: #70757a;
    margin: 0;
}

.sidebar-content {
    padding: 1.5rem 1.5rem 1.5rem;
}

.sidebar-info-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-info-item:last-of-type {
    border-bottom: none;
}

.sidebar-info-item--hours {
    gap: 0;
    padding: 0;
    border-bottom: none;
}

.sidebar-info-item--hours .info-content {
    width: 100%;
}

.info-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.info-content {
    flex: 1;
}

.info-text {
    font-size: 0.9375rem;
    color: #202124;
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
}

.info-text:last-child {
    margin-bottom: 0;
}

/* Estilos de horários para a seção do mapa - usando o mesmo estilo da entrega */
.map-schedule {
    background: var(--card);
    padding: 1rem;
    border-radius: 1rem;
    border: 2px solid var(--border);
}

.map-schedule-content {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.map-hours-section {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.map-schedule-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-schedule-icon {
    font-size: 1rem;
}

.map-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.map-schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--foreground);
    margin: 0;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border);
}

.map-schedule-item:last-child {
    border-bottom: none;
}

/* Responsividade para horários do mapa */
@media (max-width: 767px) {
    .map-schedule {
        padding: 0.875rem;
    }

    .map-schedule-content {
        gap: 0.75rem;
    }

    .map-hours-section {
        gap: 0.25rem;
    }

    .map-schedule-title {
        font-size: 0.875rem;
    }

    .map-schedule-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        padding: 0.1875rem 0;
        font-size: 0.8125rem;
    }
    
    /* Reduzir tamanho do endereço e telefone para igualar ao título dos horários */
    .info-text {
        font-size: 0.875rem;
    }
}

/* Botão Abrir no Mapa */
.map-open-btn {
    width: 100%;
    background: #0078BE;
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 2px 4px rgba(0, 120, 190, 0.2);
}

.map-open-btn:hover {
    background: #0066A1;
    box-shadow: 0 4px 8px rgba(0, 120, 190, 0.3);
    transform: translateY(-1px);
}

/* Botão Atendimento WhatsApp */
.map-whatsapp-btn {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.2);
}

.map-whatsapp-btn:hover {
    background: #128C7E;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
    transform: translateY(-1px);
}

/* Container do Mapa */
.map-container-wrapper {
    flex: 1;
    position: relative;
    background: #e8e6e4;
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.map-container:hover .map-image {
    transform: scale(1.02);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1rem;
    pointer-events: none; /* Permite clique passar através para o mapa */
}

.map-fullscreen-btn {
    background: white;
    color: #1976d2;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.625rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    pointer-events: auto; /* Botão permanece clicável */
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-fullscreen-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Cards Mobile - Container */
.map-mobile-cards {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.map-mobile-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-mobile-card-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.map-mobile-card-item:last-child {
    border-bottom: none;
}

.map-mobile-card--buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.map-mobile-card--buttons .map-open-btn--mobile,
.map-mobile-card--buttons .map-whatsapp-btn--mobile {
    width: 100%;
    margin-top: 0;
}

/* Responsive - Mobile (até 799px) */
@media (max-width: 799px) {
    /* Ocultar sidebar desktop no mobile */
    .map-sidebar {
        display: none !important;
    }
    
    /* Mostrar cards mobile */
    .map-mobile-cards {
        display: flex;
    }
    
    .map-mobile-card--buttons {
        display: flex;
    }
    
    /* Ajustar layout do mapa no mobile */
    .map-layout {
        width: 100%;
    }
}

/* Responsive - Desktop (800px ou mais) - Consolidado */
@media (min-width: 800px) {
    /* Layout do mapa */
    .map-layout {
        flex-direction: row;
        height: 600px;
    }

    .map-sidebar {
        width: 400px;
        max-height: 600px;
        border-right: 1px solid #e0e0e0;
        display: block !important;
    }
    
    /* Garantir que cards mobile estejam ocultos no desktop */
    .map-mobile-cards {
        display: none !important;
    }
    
    .map-mobile-card--buttons {
        display: none !important;
    }

    .map-container-wrapper {
        flex: 1;
        height: 100%;
    }
}

/* Footer - Força cor azul */
.footer {
    background: #0078BE !important;
    color: white !important;
    padding: 4rem 1rem 2rem;
}

body .footer {
    background: #0078BE !important;
    color: white !important;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo-img {
    height: 6.5rem;
    width: auto;
    object-fit: contain;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-heart {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
}

.schedule {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-section {
    margin-bottom: 0;
}

.schedule-section:last-child {
    margin-bottom: 0;
}

.schedule-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

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

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.footer-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: rgba(255, 255, 255, 1);
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.footer-legal {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-legal p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 40;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(100%) !important;
}

.back-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--card);
    color: var(--foreground);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    z-index: 60;
    transform: translateX(100%);
    transition: var(--transition-smooth);
}

.toast.show {
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 767px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .hero-content {
        padding-top: 4rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-left {
        align-items: center;
        text-align: center;
    }

    .hero-logo {
        justify-content: center;
    }
    
    .hero .hero-logo .hero-logo-img,
    .hero-logo-img,
    img.hero-logo-img {
        width: 180px !important;
        height: 180px !important;
        max-width: 180px !important;
        max-height: 180px !important;
        min-width: 180px !important;
        min-height: 180px !important;
        object-fit: contain !important;
        aspect-ratio: 1 / 1 !important;
    }

    .hero-gallery {
        min-height: 400px;
    }

    .gallery-nav-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }

    .gallery-nav-prev {
        left: 0.5rem;
    }

    .gallery-nav-next {
        right: 0.5rem;
    }

    .gallery-close-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .gallery-expanded-img {
        width: 100%;
        height: 100%;
        padding: 0;
    }


    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 100px);
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(4) {
        grid-column: 1 / 3;
        grid-row: 3 / 4;
    }

    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6),
    .gallery-item:nth-child(7),
    .gallery-item:nth-child(8) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .hero-content {
        padding-top: 2rem;
    }
    
    /* Garantir que logo mantenha tamanho fixo no desktop */
    .hero-logo-img {
        width: 240px !important;
        height: 240px !important;
        max-width: 240px !important;
        max-height: 240px !important;
        min-width: 240px;
        min-height: 240px;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Regras específicas para desktop (800px+) - maior prioridade */
@media (min-width: 800px) {
    /* Garantir que logo mantenha tamanho fixo no desktop */
    .hero .hero-logo .hero-logo-img,
    .hero-logo-img,
    img.hero-logo-img {
        width: 240px !important;
        height: 240px !important;
        max-width: 240px !important;
        max-height: 240px !important;
        min-width: 240px !important;
        min-height: 240px !important;
        object-fit: contain !important;
        aspect-ratio: 1 / 1 !important;
        flex-shrink: 0 !important;
    }
    
    /* Garantir layout do hero no desktop */
    .hero-content {
        grid-template-columns: 1fr 1.5fr !important;
        gap: 4rem !important;
    }
    
    /* Garantir que elementos desktop sejam exibidos */
    .map-sidebar {
        display: block !important;
    }
    
    /* Garantir que elementos mobile sejam ocultos */
    .map-mobile-cards {
        display: none !important;
    }
    
    .map-mobile-card--buttons {
        display: none !important;
    }

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

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-copyright {
        text-align: right;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        padding-top: 8rem;
    }

    .hero-subtitle {
        font-size: 1.875rem;
    }

    .intro-text {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .section-subtitle {
        font-size: 1.5rem;
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Utility Classes */
.btn-icon {
    margin-right: 0.5rem;
}

/* Form Validation Styles */
.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--destructive);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .back-to-top,
    .toast {
        display: none;
    }
    
    .hero {
        background: none;
        color: black;
    }
    
    .footer {
        background: none;
        color: black;
    }
}

/* Regras finais para garantir tamanho da logo - máxima prioridade */
body .hero .hero-logo img.hero-logo-img {
    width: 240px !important;
    height: 240px !important;
    max-width: 240px !important;
    max-height: 240px !important;
    min-width: 240px !important;
    min-height: 240px !important;
    object-fit: contain !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
}

@media (min-width: 800px) {
    body .hero .hero-logo img.hero-logo-img {
        width: 240px !important;
        height: 240px !important;
        max-width: 240px !important;
        max-height: 240px !important;
        min-width: 240px !important;
        min-height: 240px !important;
        object-fit: contain !important;
        aspect-ratio: 1 / 1 !important;
    }
}

@media (max-width: 799px) {
    body .hero .hero-logo img.hero-logo-img {
        width: 180px !important;
        height: 180px !important;
        max-width: 180px !important;
        max-height: 180px !important;
        min-width: 180px !important;
        min-height: 180px !important;
        object-fit: contain !important;
        aspect-ratio: 1 / 1 !important;
    }
}
