/* =====================================================
   HYDROSISTEM - Main Stylesheet
   Optimized for Performance
   ===================================================== */

/* CSS Variables */
:root {
    --c-dark: #212529;
    --c-brand: #004398;
    --c-brand-light: #3768F4;
    --c-brand-rgb: 55, 104, 244;
    --c-body: #727272;
    --c-white: #ffffff;
    --c-light: #f8f9fa;
    --c-gray: #e9ecef;

    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --header-height: 80px;
    --container-max: 1200px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.7;
    color: var(--c-body);
    background-color: var(--c-white);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-semibold);
    color: var(--c-dark);
    line-height: 1.3;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

a {
    text-decoration: none;
    color: var(--c-brand);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--c-brand-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section */
.section {
    padding: 100px 0;
}

.section-light {
    background-color: var(--c-light);
}

.section-gradient {
    background: linear-gradient(135deg, #0DA7F0 0%, #004398 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 4px;
    background-color: var(--c-brand);
    margin: 0 auto 24px;
    border-radius: 2px;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--c-body);
}

.text-white {
    color: var(--c-white) !important;
}

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

.mt-4 {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background-color: var(--c-brand);
    color: var(--c-white);
    border-color: var(--c-brand);
}

.btn-primary:hover {
    background-color: var(--c-brand-light);
    border-color: var(--c-brand-light);
    color: var(--c-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--c-white);
    border-color: var(--c-white);
}

.btn-outline:hover {
    background-color: var(--c-white);
    color: var(--c-brand);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Header / Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--c-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    border-radius: 0 0 var(--radius-lg) 0;
}

.navbar {
    height: 100%;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: auto;
    width: 120px;
    min-width: 80px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--c-dark);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--c-brand);
    background-color: rgba(var(--c-brand-rgb), 0.08);
}

.nav-youtube {
    color: var(--c-dark);
}

.nav-youtube i {
    color: #FF0000;
    font-size: 18px;
}

.badge-new {
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    padding: 2px 6px;
    background: linear-gradient(135deg, #FF6B6B, #FF0000);
    color: var(--c-white);
    border-radius: 4px;
    text-transform: uppercase;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    width: 24px;
    height: 2px;
    background-color: var(--c-dark);
    position: relative;
    transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--c-dark);
    transition: var(--transition-fast);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--c-brand-rgb), 0.1) 0%, transparent 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--c-body);
    margin-bottom: 32px;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-buttons .btn-outline {
    color: var(--c-brand);
    border-color: var(--c-brand);
}

.hero-buttons .btn-outline:hover {
    background-color: var(--c-brand);
    color: var(--c-white);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--c-brand);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--c-body);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 170%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* Certificado Flag */
.certificado-flag {
    position: absolute;
    top: calc(var(--header-height) + 20px);
    right: 24px;
    z-index: 50;
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s cubic-bezier(0.22, 1.61, 0.36, 1);
    pointer-events: none;
}

.certificado-flag.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.certificado-flag img {
    width: 100px;
    max-width: 20vw;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    animation: flagWave 3s ease-in-out infinite;
}

@keyframes flagWave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(2deg);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-content h3 {
    margin-bottom: 8px;
}

.about-content>p {
    margin-bottom: 32px;
    color: var(--c-body);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--c-brand-rgb), 0.1);
    color: var(--c-brand);
    font-size: 24px;
    border-radius: var(--radius-sm);
}

.feature-content h4 {
    margin-bottom: 8px;
}

.feature-content p {
    margin-bottom: 0;
    font-size: 14px;
}

/* Certifications */
.certifications {
    text-align: center;
    margin-bottom: 80px;
}

.certifications .section-title {
    font-size: 2rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.cert-item img {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.cert-item:hover img {
    transform: scale(1.02);
}

/* Policy Section */
.policy-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.policy-section .section-title {
    font-size: 2rem;
}

/* Saude Section */
.saude-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.saude-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.saude-content h2 {
    margin-bottom: 32px;
}

.saude-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.saude-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.saude-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--c-white);
    border-radius: var(--radius-sm);
}

.saude-icon img {
    width: 28px;
    height: 28px;
}

.saude-text {
    color: var(--c-white);
}

.saude-text h4 {
    color: var(--c-white);
    margin-bottom: 4px;
    font-size: 1rem;
}

.saude-text p {
    margin-bottom: 0;
    font-size: 14px;
    opacity: 0.9;
    text-align: left;
}

/* Clients Section */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.client-card {
    background-color: var(--c-white);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.client-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(var(--c-brand-rgb), 0.1);
    transition: all var(--transition-normal);
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.client-card:hover::after {
    width: 100%;
    height: 100%;
    background: var(--c-brand);
}

.client-card:hover .client-logo .logo-default {
    display: none;
}

.client-card:hover .client-logo .logo-hover {
    display: block;
}

.client-card:hover p {
    color: var(--c-white);
    position: relative;
    z-index: 2;
}

.client-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.client-logo img {
    max-height: 60px;
    width: auto;
}

.client-logo .logo-hover {
    display: none;
}

.client-card p {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--c-body);
    transition: color var(--transition-normal);
}

.map-preview {

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.map-preview img {

    width: 100%;
    border-radius: 8px;

}

.btn-open-map {
    padding: 12px 22px;
    background: #0a5ca8;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-open-map:hover {
    background: #084b8a;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
}

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

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

/* Mascots Section */
.mascots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.mascot-item {
    text-align: center;
    transition: transform var(--transition-normal);
}

.mascot-item:hover {
    transform: translateY(-8px);
}

.mascot-item img {
    max-width: 200px;
    margin: 0 auto;
}

/* Conduta Section */
.conduta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Contact Section */
.section-contact {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/contato_image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--c-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-anonymous {
    text-align: center;
    margin-bottom: 24px;
}

.form-anonymous img {
    margin: 0 auto 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-input {
    width: 100%;
    padding: 14px 20px;
    font-family: var(--font-base);
    font-size: 14px;
    border: 1px solid var(--c-gray);
    border-radius: 50px;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--c-brand);
    box-shadow: 0 0 0 3px rgba(var(--c-brand-rgb), 0.1);
}

.form-textarea {
    border-radius: var(--radius-md);
    min-height: 120px;
    resize: vertical;
}

.form-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.form-switch input {
    display: none;
}

.switch-slider {
    width: 44px;
    height: 24px;
    background-color: var(--c-gray);
    border-radius: 12px;
    position: relative;
    transition: var(--transition-fast);
}

.switch-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: var(--c-white);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.form-switch input:checked+.switch-slider {
    background-color: var(--c-brand);
}

.form-switch input:checked+.switch-slider::after {
    transform: translateX(20px);
}

.switch-label {
    font-size: 14px;
    color: var(--c-body);
}

/* Footer */
.footer {
    background-color: var(--c-dark);
    padding-top: 80px;
}

.footer-top {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: flex;
    justify-content: space-around;
    gap: 60px;
}

.footer-col img {
    margin-bottom: 16px;
}

.footer-line {
    width: 40px;
    height: 4px;
    background-color: var(--c-brand);
    margin: 12px 0 24px;
}

.footer-col p,
.footer-col li,
.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-col h5 {
    color: var(--c-white);
    font-size: 16px;
    margin-bottom: 0;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-list i {
    color: var(--c-brand);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--c-white);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--c-brand);
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: var(--c-brand-light);
}

/* Galeria */

.galeria-hero {
    padding-top: 120px;
    padding-bottom: 40px;
    max-width: 800px;
    margin: auto;
}

.galeria-subtitle {
    letter-spacing: 4px;
    font-size: 14px;
    color: #7a7a7a;
    margin-bottom: 10px;
}

.galeria-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* BOTÕES */

.galeria-switch {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-switch {
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    background: #f1f3f5;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.btn-switch i {
    margin-right: 6px;
}

.btn-switch.active {
    background: #004398;
    color: white;
}

/* GRID */

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.galeria-item {
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
}

.galeria-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: 0.4s;
}

.galeria-item:hover img {
    transform: scale(1.08);
}

/* VIDEOS */

.galeria-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.video-item iframe {
    width: 100%;
    height: 300px;
    border-radius: 12px;
}

.image-tv {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#galeria-main {
    margin-bottom: 20px;
}

/* GRID 50/50 */
.atuacao-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* ESQUERDA */
.atuacao-tables {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* LINHA (TABELA) */
.atuacao-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    gap: 15px;
}

/* LOGO */
.empresa img {
    max-width: 90px;
}

/* DADOS CENTRO */
.dados {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.col span {
    font-size: 10px;
    color: #777;
    display: block;
}

.col strong {
    font-size: 18px;
    color: #004398;
}

/* DIREITA */
.info {
    display: flex;
    gap: 10px;
}

.pill {
    background: #f4f6f9;
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
    min-width: 90px;
}

.pill span {
    font-size: 9px;
    color: #666;
    display: block;
}

.pill strong {
    font-size: 14px;
}

.pill.destaque {
    background: #e8f8f0;
}

.pill.destaque strong {
    color: #00a859;
}

/* MAPA */
.atuacao-map {
    display: flex;
    justify-content: center;
}

.atuacao-map img {
    width: 100%;
    max-width: 720px;
}

/* RESPONSIVO */
@media (max-width: 1024px) {
    .atuacao-grid {
        grid-template-columns: 1fr;
    }

    .atuacao-map {
        order: -1;
    }

    .atuacao-row {
        flex-direction: column;
        text-align: center;
    }

    .dados {
        justify-content: center;
    }

    .info {
        justify-content: center;
    }
}

.timeline-card {
    max-height: 420px;
    display: flex;
    flex-direction: column;
}

.timeline-card-body {
    overflow-y: auto;
    padding-right: 10px;
}

.timeline-card-body::-webkit-scrollbar {
    width: 6px;
}

.timeline-card-body::-webkit-scrollbar-track {
    background: transparent;
}

.timeline-card-body::-webkit-scrollbar-thumb {
    background: rgba(0, 67, 152, 0.3);
    border-radius: 10px;
}

.timeline-card-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 67, 152, 0.6);
}

.timeline-event {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.timeline-event:last-child {
    border-bottom: none;
}

@media (max-width: 1230px) {
    .hero-image img {
        width: 150%;
        padding-right: 25px;
    }
}

@media (max-width: 768px) {
    .atuacao-card {
        flex-direction: column;
        text-align: center;
    }

    .atuacao-center {
        flex-direction: column;
        gap: 16px;
    }

    .atuacao-right {
        justify-content: center;
    }
}

@media(max-width:768px) {

    .galeria-title {
        font-size: 40px;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .about-grid,
    .saude-grid,
    .atuacao-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--c-white);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
    }

    .certificado-flag {
        top: calc(var(--header-height) + 10px);
        right: 20px;
    }

    .certificado-flag img {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .clients-grid,
    .gallery-grid,
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .mascots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    .footer-grid {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .certificado-flag {
        top: calc(var(--header-height) + 10px);
        right: 16px;
    }

    .certificado-flag img {
        width: 70px;
        max-width: 18vw;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2rem;
    }

    .mascots-grid {
        grid-template-columns: 1fr;
    }

    .mascot-item img {
        max-width: 150px;
    }
}