/* =========== RESET E CONFIGURAÇÃO BASE =========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); /* Usando variável para consistência */
    font-size: 16px;
}

body {
    font-family: 'Montserrat', 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Regras específicas para slideshow sem conflitar com outras imagens */
/* Imagens do carrossel - SIMPLES E FUNCIONAL */
.slideshow .hero__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Enhanced Image Container and Object-Fit Styles */
.image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: block;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
}

/* Generic image enhancement for better fitting */
.img-cover {
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;
}

.img-contain {
    object-fit: contain;
    object-position: center center;
    width: 100%;
    height: 100%;
}

/* Object position utilities for focal point control */
.img-position-top { object-position: center top; }
.img-position-bottom { object-position: center bottom; }
.img-position-left { object-position: left center; }
.img-position-right { object-position: right center; }
.img-position-top-left { object-position: left top; }
.img-position-top-right { object-position: right top; }
.img-position-bottom-left { object-position: left bottom; }
.img-position-bottom-right { object-position: right bottom; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* =========== ANIMAÇÕES =========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes buttonPulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes ripple {
    0% { transform: scale(0, 0); opacity: 0.5; }
    100% { transform: scale(100, 100); opacity: 0; }
}

/* =========== UTILIDADES =========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ----- INTERACTIVE UTILITIES (DRY Principle) ----- */
/* Base interactive lift effect for consistent hover behavior */
.interactive-lift {
    transition: var(--transition);
}

.interactive-lift:hover {
    transform: translateY(-3px);
}

.interactive-lift--medium:hover {
    transform: translateY(-5px);
}

.interactive-lift--large:hover {
    transform: translateY(-10px);
}

/* Combined lift with scale for special elements */
.interactive-lift-scale:hover {
    transform: translateY(-3px) scale(1.02);
}

/* ----- GLOBAL FOCUS STRATEGY (Acessibilidade) ----- */
/* Estratégia única e acessível para estado de foco */
:is(a, button, input, select, textarea, .btn, .nav__link, .service-card, .testimonial-card):focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 2px;
    box-shadow: none; /* Evita conflitos */
}

/* Remove outline padrão para usuários de mouse */
:is(a, button, input, select, textarea, .btn, .nav__link):focus:not(:focus-visible) {
    outline: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform; /* Otimização para GPU */
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.skeleton-loading {
    position: relative;
    overflow: hidden;
    background-color: var(--gray-light);
    border-radius: var(--rounded);
}

.skeleton-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0) 100%);
    animation: shimmer 2s infinite;
    background-size: 1000px 100%;
}
/* =========== VARIÁVEIS CSS GLOBAIS =========== */
:root {
    /* Cores primárias otimizadas para conversão */
    --primary: #e63946;
    --primary-dark: #c52836;
    --primary-light: #f8d7da;
    --primary-transparent: rgba(230, 57, 70, 0.08);

    /* Cores secundárias - paleta coesa */
    --secondary: #1d3557;
    --secondary-light: #457b9d;
    --secondary-transparent: rgba(29, 53, 87, 0.08);

    /* Cores de destaque */
    --accent-green: #25d366;
    --accent-green-dark: #1da851;
    --accent-blue: #0d6efd;
    --accent-yellow: #ffc107;
    --accent-yellow-dark: #ffb300;
    --accent-orange: #ff6b35;

    /* Gradientes modernos */
    --gradient-primary: linear-gradient(135deg, #e63946 0%, #c52836 100%);
    --gradient-emergency: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffc107 100%);
    --gradient-success: linear-gradient(135deg, #25d366 0%, #1da851 100%);
    --gradient-hero: linear-gradient(135deg, rgba(230, 57, 70, 0.05) 0%, rgba(255, 193, 7, 0.05) 100%);

    /* Tons neutros */
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --gray-dark: #343a40;

    /* Cores semânticas */
    --error: #dc3545;
    --success: #198754;
    --warning: #ffc107;
    --info: #0dcaf0;

    /* Sistema de sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 5px 12px rgba(230, 57, 70, 0.3);

    /* Sistema de arredondamento */
    --rounded-xs: 0.125rem;
    --rounded-sm: 0.25rem;
    --rounded: 0.5rem;
    --rounded-lg: 1rem;
    --rounded-xl: 1.5rem;
    --rounded-full: 9999px;

    /* Sistema de transições */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Sistema de espaçamento - baseado em grid de 8px */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.25rem;  /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-7: 1.75rem;  /* 28px */
    --space-8: 2rem;     /* 32px */
    --space-9: 2.25rem;  /* 36px */
    --space-10: 2.5rem;  /* 40px */
    --space-12: 3rem;    /* 48px */
    --space-16: 4rem;    /* 64px */
    --space-18: 4.5rem;  /* 72px - para padding específico do header */
    --space-20: 5rem;    /* 80px */
    --space-24: 6rem;    /* 96px */

    /* Espaçamentos específicos para componentes */
    --header-padding: var(--space-9);     /* 1.125rem = 18px convertido */
    --header-padding-scrolled: 0.625rem;  /* Pode ser convertido depois */
    --header-height: 120px;               /* Altura estimada do header + margem */

    /* Sistema de grid */
    --grid-gap: var(--space-8);
    --container-padding: var(--space-6);
    --container-padding-mobile: var(--space-4);
    --section-spacing: var(--space-20);
    --section-spacing-mobile: var(--space-12);

    /* Sistema de Z-index */
    --z-header: 100;
    --z-modal: 200;
    --z-float: 150;
    --z-overlay: 95;

    /* Sistema tipográfico */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Proporção áurea */
    --golden-ratio: 1.618;
}
/* =========== COMPONENTES =========== */

/* ----- HEADER E NAVEGAÇÃO ----- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: var(--header-padding) 0;
    transition: var(--transition);
    z-index: var(--z-header);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
}

.header--scrolled {
    padding: var(--header-padding-scrolled) 0;
}

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

.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: calc(var(--z-header) + 1);
}

.logo__icon {
    width: 42px;
    height: 42px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline-end: 0.625rem;
    color: white;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.logo:hover .logo__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow);
}

.logo__text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logo__highlight {
    color: var(--primary);
    position: relative;
}

.logo__highlight::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-light);
    z-index: -1;
    border-radius: var(--rounded-xs);
    transition: var(--transition);
}

.logo:hover .logo__highlight::after {
    height: 6px;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    color: var(--gray-dark);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
    border-radius: var(--rounded-full);
}

.nav__link:hover {
    color: var(--primary);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background-color: var(--primary);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: var(--rounded-full);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-primary);
    font-weight: 600;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav__link--cta:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    color: var(--dark);
    font-size: 1.5rem;
    transition: var(--transition);
    position: relative;
    z-index: calc(var(--z-header) + 1);
    border-radius: var(--rounded-sm);
}

.nav__toggle:hover {
    color: var(--primary);
    background-color: var(--primary-transparent);
}

/* ----- BOTÕES ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--rounded);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    line-height: 1;
    position: relative;
    overflow: hidden;
    font-size: var(--font-size-md);
}

/* Aplicar efeito de lift padrão a todos os botões */
.btn:hover {
    transform: translateY(-3px);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

.btn--primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    /* transform já aplicado pela classe base .btn:hover */
    box-shadow: 0 8px 15px rgba(230, 57, 70, 0.35);
}

.btn--primary:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.btn--secondary {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
    background-color: var(--primary-transparent);
    /* transform já aplicado pela classe base .btn:hover */
    box-shadow: var(--shadow);
}

.btn--secondary:active {
    transform: translateY(-1px);
}

.btn--whatsapp {
    background-color: var(--accent-green);
    color: white;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp:hover {
    background-color: var(--accent-green-dark);
    /* transform já aplicado pela classe base .btn:hover */
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp:active {
    transform: translateY(-1px);
}

.btn--emergency {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffc107 100%);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn--emergency::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn--emergency:hover::before {
    left: 100%;
}

.btn--emergency:hover {
    background: linear-gradient(135deg, #ff5722 0%, #f57f17 50%, #ffb300 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.5);
    animation: emergencyPulse 1.5s ease-in-out infinite;
}

.btn--emergency:active {
    transform: translateY(-2px) scale(1.01);
}

@keyframes emergencyPulse {
    0%, 100% { 
        box-shadow: 0 10px 25px rgba(255, 107, 53, 0.5), 0 0 0 0 rgba(255, 107, 53, 0.7); 
    }
    50% { 
        box-shadow: 0 10px 25px rgba(255, 107, 53, 0.5), 0 0 0 10px rgba(255, 107, 53, 0); 
    }
}

.btn--location {
    background-color: var(--accent-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--rounded);
    border: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--location:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

.btn--location i {
    margin-right: 0;
}

.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    border-radius: calc(var(--rounded) * 1.2);
}

.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
}

.btn--pulse {
    animation: buttonPulse 2s infinite;
}

.btn i {
    margin-inline-end: var(--space-2);
}

/* ----- NOTIFICATION ----- */
.notification {
    position: fixed;
    top: 2rem;
    right: -100%;
    background-color: white;
    border-radius: var(--rounded);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: var(--z-float);
    transition: var(--transition);
    max-width: 400px;
    border-left: 4px solid var(--primary);
}

.notification--visible {
    right: 2rem;
}

.notification--success {
    border-left-color: var(--success);
}

.notification--success .notification__icon {
    color: var(--success);
}

.notification--error {
    border-left-color: var(--error);
}

.notification--error .notification__icon {
    color: var(--error);
}

.notification__icon {
    font-size: 1.25rem;
    color: var(--primary);
}

.notification__message {
    flex-grow: 1;
    font-size: var(--font-size-sm);
}

.notification__close {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition-fast);
}

.notification__close:hover {
    color: var(--primary);
    transform: scale(1.2);
}

/* ----- MODAL ----- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    overflow-y: auto;
}

.modal--visible {
    opacity: 1;
    visibility: visible;
}

.modal--animating .modal__content {
    animation: fadeIn 0.4s;
}

.modal--closing .modal__content {
    transform: translateY(-20px);
    opacity: 0;
}

.modal__content {
    background-color: white;
    border-radius: var(--rounded-lg);
    max-width: 550px;
    width: 100%;
    margin: 2rem;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: none;
}

.modal__header {
    background-color: var(--secondary);
    color: white;
    border-bottom: 1px solid var(--gray-light);
    padding: 1.5rem;
    border-radius: var(--rounded-lg) var(--rounded-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__title {
    font-size: var(--font-size-xl);
    margin: 0;
}

.modal__close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition-fast);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal__close:hover {
    background-color: var(--primary-transparent);
    color: var(--primary);
}

.modal__body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 60vh;
}

.modal__footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* ----- FORM ----- */
.form-group {
    margin-bottom: var(--space-5);
    width: 100%;
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.form-label--required::after {
    content: '*';
    color: var(--primary);
    margin-inline-start: 0.25rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-md);
    border: 1px solid var(--gray-light);
    border-radius: var(--rounded);
    transition: var(--transition);
}

/* Remover os conflitos de focus no form - usando a estratégia global */
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    /* box-shadow removido - usando a estratégia global :focus-visible */
}

.form-control.is-invalid {
    border-color: var(--error);
}

.form-control.is-valid {
    border-color: var(--success);
}

.form-feedback {
    display: none;
    font-size: var(--font-size-xs);
    margin-top: 0.25rem;
}

.form-feedback--invalid {
    color: var(--error);
}

.is-invalid + .form-feedback--invalid {
    display: block;
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: var(--font-size-md);
    border: 1px solid var(--gray-light);
    border-radius: var(--rounded);
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    /* box-shadow removido - usando a estratégia global :focus-visible */
}

.custom-phone {
    display: flex;
    align-items: center;
}

.custom-phone__prefix {
    padding: 0.75rem 1rem;
    background-color: var(--gray-light);
    border: 1px solid var(--gray-light);
    border-radius: var(--rounded) 0 0 var(--rounded);
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.custom-phone .form-control {
    border-radius: 0 var(--rounded) var(--rounded) 0;
    flex-grow: 1;
}

.custom-location {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

/* Emergency Form Styles */
.emergency-notice-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 1rem;
    border-radius: var(--rounded);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.emergency-notice-banner i {
    font-size: 1.5rem;
    animation: emergencyFlash 2s ease-in-out infinite;
}

@keyframes emergencyFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

.location-group .form-label {
    font-weight: 600;
    color: var(--primary);
}

.input-location-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.input-location-wrapper .form-control {
    flex: 1;
    min-width: 250px;
}

.location-help {
    margin-top: 0.5rem;
}

.location-help small {
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-help i {
    color: var(--accent-blue);
}

.emergency-actions-banner {
    background-color: var(--light);
    border: 2px solid var(--success);
    border-radius: var(--rounded);
    padding: 1rem;
    margin-top: 1.5rem;
}

.emergency-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--success);
    font-weight: 600;
    text-align: center;
}

.emergency-guarantee i {
    font-size: 1.25rem;
    animation: clockTick 1s ease-in-out infinite;
}

@keyframes clockTick {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Scheduling Section Styles */
.scheduling-section {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 107, 53, 0.05) 100%);
    border: 2px solid rgba(255, 193, 7, 0.2);
    border-radius: var(--rounded);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.form-help {
    color: var(--gray);
    font-size: var(--font-size-xs);
    margin-top: 0.25rem;
    display: block;
}

/* Enhanced form controls with better focus states */
.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-blue);
    /* Removido box-shadow - usando estratégia global :focus-visible */
    transform: translateY(-1px);
}

.form-control:valid {
    border-color: var(--success);
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: var(--error);
}

/* Loading states for interactive elements */
.form-control.loading {
    position: relative;
    background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: shimmer 1.5s infinite;
}

/* Micro-interactions for better UX */
.btn:active {
    transform: translateY(1px) scale(0.98);
}

.form-control:hover {
    border-color: var(--gray);
    transition: var(--transition);
}

/* Emergency Sticky Bar for Mobile */
.emergency-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    z-index: calc(var(--z-float) + 10);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -4px 20px rgba(255, 107, 53, 0.4);
}

.emergency-sticky-bar.show {
    transform: translateY(0);
}

.emergency-sticky-content {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "text actions close";
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.emergency-sticky-text {
    grid-area: text;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.emergency-sticky-text i {
    font-size: 1.25rem;
    animation: emergencyFlash 2s ease-in-out infinite;
}

.emergency-sticky-actions {
    grid-area: actions;
    display: flex;
    gap: 0.75rem;
}

.emergency-sticky-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.emergency-sticky-btn--call {
    background-color: var(--success);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.4);
}

.emergency-sticky-btn--call:hover {
    background-color: #157347;
    transform: scale(1.1);
}

.emergency-sticky-btn--form {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.emergency-sticky-btn--form:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.emergency-sticky-close {
    grid-area: close;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.emergency-sticky-close:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.emergency-sticky-bar.hidden {
    transform: translateY(100%);
}

/* Hide sticky bar on desktop */
@media (min-width: 768px) {
    .emergency-sticky-bar {
        display: none;
    }
}

/* Show only on mobile when scrolled */
@media (max-width: 767px) {
    .emergency-sticky-bar {
        display: block;
    }
}

/* Very small screens adjustments */
@media (max-width: 480px) {
    .emergency-sticky-content {
        grid-template-columns: 1fr auto auto;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    
    .emergency-sticky-text {
        font-size: 14px;
        gap: 0.5rem;
        min-width: 0; /* Allow text to shrink */
    }
    
    .emergency-sticky-text span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .emergency-sticky-close {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .emergency-sticky-actions {
        gap: 0.5rem;
    }
    
    .emergency-sticky-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Extra small screens - optimize for very narrow displays */
@media (max-width: 360px) {
    .emergency-sticky-content {
        grid-template-columns: 1fr 80px 32px;
        gap: 0.25rem;
        padding: 0.5rem 0.75rem;
    }
    
    .emergency-sticky-text {
        font-size: 13px;
        gap: 0.25rem;
    }
    
    .emergency-sticky-actions {
        gap: 0.25rem;
    }
    
    .emergency-sticky-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .emergency-sticky-close {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

.custom-location__icon {
    color: var(--primary);
    margin-right: 0.5rem;
}

.custom-location__detect {
    background: none;
    border: none;
    font-size: var(--font-size-sm);
    color: var(--secondary-light);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.custom-location__detect:hover {
    color: var(--secondary);
}

.option-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 1.5rem;
}

.option-tab {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--gray);
    position: relative;
}

.option-tab--active {
    color: var(--primary);
}

.option-tab--active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: var(--rounded-full) var(--rounded-full) 0 0;
}

.step-content {
    display: none;
}

.step-content--active {
    display: block;
}

.form-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success);
    padding: 1rem;
    border-radius: var(--rounded);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    display: none;
}

.form-success--visible {
    display: flex;
}

.simulation-notice {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--accent-blue);
    padding: 1rem;
    border-radius: var(--rounded);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--font-size-sm);
}

.custom-price {
    display: flex;
    align-items: center;
    background-color: var(--gray-light);
    border-radius: var(--rounded);
    padding: 1.25rem;
    margin-top: 2rem;
}

.custom-price__icon {
    width: 48px;
    height: 48px;
    background-color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.custom-price__content {
    flex-grow: 1;
}

.custom-price__title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.custom-price__value {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.custom-price__text {
    font-size: var(--font-size-xs);
    color: var(--gray);
    margin: 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--gray-light);
    border-radius: var(--rounded-full);
    overflow: hidden;
}

.progress-bar__inner {
    height: 100%;
    background-color: var(--success);
    transition: width 0.5s ease;
}

/* ----- FLOAT BUTTONS ----- */
.float-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: var(--z-float);
    padding-bottom: 1rem;
    transition: bottom 0.3s ease-in-out;
}

.float-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.float-button:hover {
    transform: translateY(-5px) scale(1.05);
}

.float-button--whatsapp {
    background-color: var(--accent-green);
}

.float-button--phone {
    background-color: var(--accent-blue);
}

.float-button--solicitar {
    background-color: var(--primary);
}

/* ----- SCROLL TOP ----- */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: var(--z-float);
    border: none;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

/* ----- ESTATÍSTICAS ----- */
.stats {
    padding: 2rem 0;
    background: linear-gradient(180deg, 
        rgba(248, 215, 218, 0.15) 0%, 
        rgba(255, 250, 245, 0.8) 30%, 
        rgba(248, 249, 250, 0.95) 70%,
        white 100%);
    position: relative;
    z-index: 5;
}

.stats__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: -5rem;
    background-color: white;
    border-radius: var(--rounded-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.stats__container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary-light));
}

.stat {
    text-align: center;
    padding: 1.25rem;
    transition: var(--transition);
    border-radius: var(--rounded);
    position: relative;
}

.stat::after {
    content: '';
    position: absolute;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background-color: var(--gray-light);
    right: -1.25rem;
}

.stat:last-child::after {
    display: none;
}

.stat:hover {
    transform: translateY(-5px);
    background-color: var(--primary-transparent);
    box-shadow: var(--shadow-sm);
}

.stat__value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
    line-height: 1;
}

.stat__value::after {
    content: '+';
    position: absolute;
    top: 0;
    right: -20px;
    font-size: 1.75rem;
    color: var(--primary);
    opacity: 0.8;
}

.stat__label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* =========== LAYOUT =========== */

/* ----- SEÇÕES ----- */
.section {
    padding: var(--section-spacing) 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

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

.section--compact {
    padding: var(--space-16) 0;
}

.section__header {
    margin-bottom: var(--space-10);
    max-width: 700px;
    /* Propriedades lógicas para centralização */
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section__pretitle {
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--primary);
    margin-bottom: var(--space-2);
    letter-spacing: 1.5px;
    background-color: var(--primary-transparent);
    padding: var(--space-1) var(--space-6);
    border-radius: var(--rounded-full);
}

.section__title {
    /* Tipografia fluida: mínimo 1.5rem, ideal 4vw, máximo 2rem */
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: var(--space-5);
    position: relative;
    display: inline-block;
    color: var(--dark);
    letter-spacing: -0.02em;
    line-height: 1.3;
    text-align: center;
}

.section__subtitle {
    color: rgba(33, 37, 41, 0.8);
    max-width: 700px;
    font-size: var(--font-size-md);
    line-height: 1.5;
    text-align: center;
}

.section__highlight {
    color: var(--primary);
    position: relative;
}

.section__highlight::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-orange) 100%);
    z-index: -1;
    border-radius: var(--rounded-xs);
    opacity: 0.3;
}

.section__divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-emergency);
    margin: var(--space-5) auto;
    border-radius: var(--rounded-full);
}

/* ----- HERO SECTION ----- */
.hero {
    /* Ajustado padding superior para compensar header fixo */
    padding: calc(var(--header-height) + var(--space-12)) 0 var(--section-spacing);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before, .hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    z-index: 1;
}

.hero::before {
    top: -15%;
    right: -15%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.08) 0%, rgba(255, 193, 7, 0) 70%);
}

.hero::after {
    bottom: -15%;
    left: -15%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.06) 0%, rgba(230, 57, 70, 0) 70%);
}

.hero__container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: var(--space-16);
}

.hero__content {
    flex: 1;
    max-width: calc(100% / var(--golden-ratio));
}

.hero__image {
    flex: 1;
}

.realtime {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.disponivel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success);
    padding: 0.5rem 1rem;
    border-radius: var(--rounded-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.disponivel:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.disponivel__indicador {
    width: 10px;
    height: 10px;
    background-color: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.tempo-espera {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--accent-blue);
    padding: 0.5rem 1rem;
    border-radius: var(--rounded-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tempo-espera:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tempo-espera__indicador {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.hero__title {
    /* Tipografia fluida: mínimo 2rem, ideal 5vw, máximo 4xl */
    font-size: clamp(2rem, 5vw, var(--font-size-4xl));
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero__highlight {
    color: var(--primary);
    position: relative;
    white-space: nowrap;
}

.hero__highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-orange) 100%);
    z-index: -1;
    border-radius: var(--rounded-xs);
    opacity: 0.3;
    transition: var(--transition);
}

.hero__highlight:hover::after {
    opacity: 0.5;
    height: 12px;
}

.hero__subtitle {
    /* Tipografia fluida para subtítulo */
    font-size: clamp(1rem, 2.5vw, var(--font-size-xl));
    margin-bottom: 2.5rem;
    color: var(--gray);
    max-width: 90%;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.hero__info {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--gray);
    font-size: var(--font-size-sm);
}

.hero__info i {
    color: var(--primary);
}

/* Simplified hero wrapper for better carousel performance */
.hero__img-wrapper {
    position: relative;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotate(1deg);
    transition: var(--transition-slow);
    aspect-ratio: 6/4;
    width: 100%;
    height: auto;
    min-height: 300px;
    display: block;
}

.hero__img-wrapper:hover {
    transform: rotate(0) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Ajustes para o overlay menos escuro */
.hero__img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, 
                rgba(0, 0, 0, 0.4), /* Reduzido de 0.5 para 0.4 na parte inferior */
                rgba(0, 0, 0, 0.05) 60%, /* Reduzido de 0.1 para 0.05 no meio */
                transparent);
    z-index: 1;
    pointer-events: none; /* Garante que não interfira na interação */
}

/* Simple, effective slideshow styles */
/* CARROSSEL SIMPLES - MOBILE FIRST */
.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
}

.slideshow__track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
    will-change: transform;
}

.slideshow__slide {
    flex-shrink: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Simplified hero image styling for reliability */
.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    transition: transform 0.8s ease-in-out;
    filter: brightness(1.1);
}

.slideshow__slide:hover .hero__img {
    transform: scale(1.05);
}

/* Navegação por pontos - GLASSMORPHISM AVANÇADO */
.slideshow__dots {
    position: absolute;
    top: 16px; /* movido para o topo */
    bottom: auto; /* garante que o bottom anterior não prevaleça */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.625rem;
    align-items: center;
    padding: 8px 12px; /* ~25% menor */
    /* Glassmorphism multicamadas */
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.12) 50%,
        rgba(0, 0, 0, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    z-index: 3;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    max-width: 94%;
    overflow-x: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Performance optimizations */
    will-change: transform, opacity;
    contain: layout style paint;
}

.slideshow__dots::-webkit-scrollbar { 
    height: 6px; 
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.slideshow__dots::-webkit-scrollbar-thumb { 
    background: rgba(255, 255, 255, 0.25); 
    border-radius: 3px;
    transition: background 0.2s ease;
}
.slideshow__dots::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slideshow__dot {
    width: 8px;   /* ~20-25% menor */
    height: 8px;  /* ~20-25% menor */
    border-radius: 50%;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.6) 0%, 
        rgba(255, 255, 255, 0.3) 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    /* Performance optimizations */
    will-change: transform, background, box-shadow;
    contain: layout style paint;
}

.slideshow__dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    will-change: width, height, opacity;
}

.slideshow__dot:hover {
    transform: scale(1.25);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.85) 0%, 
        rgba(255, 255, 255, 0.65) 100%);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.slideshow__dot:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.slideshow__dot:hover::before {
    width: 6px;  /* acompanha a redução */
    height: 6px; /* acompanha a redução */
    opacity: 1;
}

.slideshow__dot--active {
    width: 12px;  /* ~25% menor */
    height: 12px; /* ~25% menor */
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 50%,
        rgba(230, 57, 70, 0.1) 100%);
    box-shadow: 
        0 6px 24px rgba(255, 255, 255, 0.2),
        0 2px 8px rgba(230, 57, 70, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.6),
        inset 0 -1px 2px rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px) saturate(150%);
}

.slideshow__dot--active::before {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, 
        rgba(230, 57, 70, 0.3) 0%, 
        rgba(255, 255, 255, 0.4) 40%,
        transparent 70%);
    opacity: 1;
}

.slideshow__dot[aria-current="true"] {
    outline: 2px solid rgba(255, 255, 255, 0.2);
    outline-offset: 2px;
}

/* Setas de navegação - GLASSMORPHISM MODERNO */
.slideshow__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    /* Glassmorphism para setas */
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.1) 50%,
        rgba(0, 0, 0, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    font-weight: 600;
}

.slideshow__arrow--prev {
    left: 18px;
}

.slideshow__arrow--next {
    right: 18px;
}

.hero__img-wrapper:hover .slideshow__arrow {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.slideshow__arrow:hover {
    background: linear-gradient(145deg, 
        rgba(230, 57, 70, 0.9) 0%, 
        rgba(230, 57, 70, 0.7) 50%,
        rgba(0, 0, 0, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 
        0 6px 24px rgba(230, 57, 70, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: white;
}

.slideshow__arrow:active {
    transform: translateY(-50%) scale(1.05);
    transition: all 0.1s ease;
}

/* Caption - ALINHAMENTO OTIMIZADO */
.hero__caption {
    position: absolute;
    bottom: 1.25rem; /* movido para a parte de baixo */
    top: auto;       /* evita conflitos */
    left: 1.25rem;
    right: 1.25rem;
    color: white;
    font-weight: 700;
    font-size: calc(var(--font-size-sm) + 2px);
    z-index: 4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    /* Glassmorphism refinado para caption */
    background: linear-gradient(145deg, 
        rgba(0, 0, 0, 0.45) 0%, 
        rgba(0, 0, 0, 0.3) 100%);
    padding: 0.75rem 1.125rem;
    border-radius: 999px;
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    /* Typography refinements */
    letter-spacing: 0.5px;
    line-height: 1.3;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero__img-wrapper:hover .hero__caption {
    transform: translateY(-5px);
}

/* Animação de fade para os slides (opcional) */
@keyframes fadeIn {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

.slideshow__slide--active {
    animation: fadeIn 0.5s forwards;
}

.slideshow__arrow.is-hidden {
    display: none;
}

/* Media Queries - RESPONSIVIDADE APRIMORADA */
@media (max-width: 768px) {
    /* Layout geral do hero em mobile: colunas empilhadas e respiro melhor */
    .hero__container {
        flex-direction: column;
        gap: var(--space-6);
    }

    .slideshow__dots {
        top: 12px;        /* topo no mobile também */
        bottom: auto;
        padding: 6px 10px; /* ligeiramente menor em telas pequenas */
        gap: 0.5rem;
        backdrop-filter: blur(10px) saturate(180%);
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    
    .slideshow__arrow {
        width: 38px;
        height: 38px;
        opacity: 1; /* Sempre visível em dispositivos móveis */
        backdrop-filter: blur(6px) saturate(120%);
    }
    
    .slideshow__arrow--prev {
        left: 12px;
    }
    
    .slideshow__arrow--next {
        right: 12px;
    }
    
    .hero__img-wrapper {
        /* Reduz altura para leitura mais confortável no mobile */
        min-height: 220px;
        aspect-ratio: 16/9;
        transform: none;
        display: block;
        width: 100%;
        position: relative;
        margin-top: var(--space-6);
    }
    
    /* Slideshow no mobile - mantém comportamento consistente */
    .slideshow {
        width: 100% !important;
        height: 100% !important;
    }
    
    .slideshow__track {
        height: 100% !important;
    }
    
    .slideshow__slide {
        height: 100% !important;
    }
    
    .hero__caption {
        font-size: var(--font-size-sm);
        padding: 0.6rem 0.9rem;
        bottom: 1rem; /* legenda na parte de baixo em mobile */
        top: auto;
        left: 1rem;
        right: 1rem;
        text-align: center;
        letter-spacing: 0.3px;
    }
    
    /* Otimizações específicas para imagens em mobile */
    .hero__img {
        /* Em dispositivos móveis, podemos ajustar o focal point */
        object-position: center center;
        object-fit: cover;
        /* Reduz o brilho em telas menores para melhor legibilidade */
        filter: brightness(1.05);
        width: 100%;
        height: 100%;
    }
    
    /* Garantir que imagens do slideshow se comportem corretamente no mobile */
    .slideshow .hero__img {
        object-fit: cover !important;
        object-position: center center !important;
    }
    
    /* Reduz transformações em mobile para melhor performance */
    .slideshow__slide:hover .hero__img,
    .hero__img-wrapper:hover {
        transform: none;
    }
    
    .hero__image {
        display: block;
    }

    /* Dots responsivos mobile */
    .slideshow__dot {
        width: 8px;
        height: 8px;
    }
    .slideshow__dot--active {
        width: 12px;
        height: 12px;
    }

    /* Setas menores mas ainda acessíveis no mobile */
    .slideshow__arrow {
        font-size: 1rem;
    }
}

/* Dispositivos ultra-pequenos - REFINAMENTO ADICIONAL */
@media (max-width: 480px) {
    .slideshow__dots {
        top: 8px;     /* topo em 480px */
        bottom: auto;
        padding: 5px 8px;
        gap: 0.4rem;
        max-width: 96%;
    }

    .hero__caption {
        font-size: var(--font-size-xs);
        padding: 0.5rem 0.75rem;
        bottom: 0.75rem; /* manter embaixo */
        top: auto;
        left: 0.75rem;
        right: 0.75rem;
        letter-spacing: 0.2px;
    }

    .slideshow__arrow {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .slideshow__arrow--prev {
        left: 8px;
    }
    
    .slideshow__arrow--next {
        right: 8px;
    }

    .slideshow__dot {
        width: 7px;
        height: 7px;
    }
    .slideshow__dot--active {
        width: 11px;
        height: 11px;
    }
}

/* Dispositivos extra pequenos - ULTRA OTIMIZAÇÃO */
@media (max-width: 360px) {
    .slideshow__dots {
        top: 6px;   /* topo em 360px */
        bottom: auto;
        padding: 5px 8px;
        gap: 0.35rem;
    }

    .hero__caption {
        font-size: 12px;
        padding: 0.4rem 0.6rem;
        letter-spacing: 0.1px;
    }

    .slideshow__arrow {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .slideshow__dot {
        width: 6px;
        height: 6px;
    }
    .slideshow__dot--active {
        width: 10px;
        height: 10px;
    }
}

/* ----- SERVIÇOS ----- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: auto;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-top: 4px solid transparent;
    text-align: start;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;

    /* CSS Nesting - Estados e elementos filhos */
    &:hover {
        /* Usando padrão large lift para cards */
        transform: translateY(-10px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        border-top-color: var(--primary);

        .service-card__icon {
            background-color: var(--primary);
            color: white;
            transform: scale(1.1) rotate(5deg);
            border-radius: 24px;
        }

        .service-card__action {
            transform: translateX(8px);

            &::after {
                width: 100%;
            }
        }
    }

    &--highlight {
        border: 2px solid transparent;
        background: linear-gradient(white, white) padding-box,
                    var(--gradient-emergency) border-box;
        box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
        position: relative;
        overflow: hidden;

        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient-emergency);
            z-index: 2;
        }

        .service-card__icon {
            background: var(--gradient-emergency);
            color: white;
        }
    }
}

.service-card__icon {
    width: 56px;
    height: 56px;
    background-color: var(--primary-transparent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

/* Hover states movidos para o nesting do .service-card */

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--dark);
}

.service-card__text {
    color: rgba(33, 37, 41, 0.8);
    margin-bottom: 1.75rem;
    flex-grow: 1;
    line-height: 1.6;
    font-size: 1.1rem;
}

.service-card__action {
    color: var(--secondary-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;

    &::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        height: 2px;
        width: 0;
        background-color: var(--primary);
        transition: var(--transition);
    }
}

/* Hover states movidos para o nesting do .service-card */

/* Classes removidas - integradas no CSS Nesting do .service-card */

.services__cta {
    text-align: center;
    margin-top: 3.5rem;
}

/* ----- TIMELINE ----- */
.timeline {
    position: relative;
    max-width: 900px;
    /* Propriedades lógicas para centralização */
    margin-inline: auto;
}

.timeline__line {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: 1;
    border-radius: var(--rounded-full);
}

.timeline__items {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    align-items: flex-start;
    gap: 1rem;
}

.timeline__item {
    text-align: center;
    padding: 1.5rem;
    transition: var(--transition);
    flex: 1;
}

.timeline__item:hover {
    /* Usando padrão medium lift */
    transform: translateY(-5px);
}

.timeline__step {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.25rem;
    position: relative;
}

.timeline__circle {
    width: 64px;
    height: 64px;
    background-color: var(--primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline__item:hover .timeline__circle {
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(230, 57, 70, 0.15);
    border-radius: 22px;
}

.timeline__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.timeline__description {
    color: rgba(33, 37, 41, 0.8);
    font-size: var(--font-size-sm);
    max-width: 180px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ----- FEATURES ----- */
.features {
    background: linear-gradient(135deg, var(--gray-dark), var(--secondary));
    color: white;
    position: relative;
    overflow: hidden;
}

.features::before, .features::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
}

.features::before {
    top: -200px;
    left: -200px;
}

.features::after {
    bottom: -200px;
    right: -200px;
}

.features__container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.features__title {
    color: white;
}

.features__highlight {
    color: #f8d7da;
}

.features__highlight::after {
    background-color: rgba(248, 215, 218, 0.3);
    height: 10px;
    bottom: 2px;
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--rounded);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    /* Usando padrão medium lift com translateX mantido */
    transform: translateY(-5px) translateX(5px);
    box-shadow: var(--shadow);
}

.feature-item__icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    font-size: 1.25rem;
}

.feature-item:hover .feature-item__icon {
    transform: rotate(10deg) scale(1.1);
    border-radius: 18px;
}

.feature-item p {
    margin: 0;
    font-size: var(--font-size-md);
    font-weight: 500;
    line-height: 1.5;
}

.features__cta {
    text-align: center;
    margin-top: 3rem;
}

/* ----- COBERTURA ----- */
.coverage__map {
    margin-bottom: 2rem;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    /* Ensure consistent aspect ratio for map display */
    aspect-ratio: 16/9;
    position: relative;
    width: 100%;
}

.coverage__map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
    /* Enhanced visual quality */
    filter: brightness(1.05) contrast(1.05);
}

.coverage__map:hover img {
    transform: scale(1.02);
}

.coverage__cities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem; /* Slightly increased spacing */
    max-width: 95%; /* Wider reach toward map borders */
    margin: 0 auto;
    padding: 0.5rem;
}

.coverage__city {
    display: flex;
    align-items: center;
    justify-content: center; /* Center items horizontally */
    gap: 0.5rem;
    background-color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--rounded-full);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    font-size: var(--font-size-sm);
}

.coverage__city:hover {
    /* Usando padrão de lift básico */
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    background-color: var(--primary-transparent);
}

.coverage__city--active {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-primary);
    transform: translateY(-3px);
}

.coverage__city--active .coverage__icon {
    color: white;
}

.coverage__icon {
    color: var(--primary);
}

/* ----- TESTIMONIALS ----- */
.testimonials {
    max-width: 900px;
    margin: 0 auto;
}

.testimonials__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--rounded-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card__quote {
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.5;
    z-index: 0;
}

.testimonial-card__text {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--gray-dark);
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--gray-light);
    /* Ensure perfect circular container */
    flex-shrink: 0;
    position: relative;
}

.testimonial-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
}

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

.testimonial-card__info {
    flex: 1;
}

.testimonial-card__name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-card__city {
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.testimonial-card__stars {
    display: flex;
    gap: 0.25rem;
    color: var(--warning);
    margin-top: 0.25rem;
}

/* ----- CTA SECTION ----- */
.cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    text-align: center;
}

.cta__container {
    max-width: 800px;
    margin: 0 auto;
}

.cta__title {
    /* Tipografia fluida para títulos de CTA */
    font-size: clamp(1.5rem, 4vw, var(--font-size-3xl));
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta__text {
    font-size: var(--font-size-lg);
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.cta__button-phone {
    background-color: white;
    color: var(--primary);
}

.cta__button-phone:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* ----- FOOTER ----- */
.footer {
    background-color: var(--secondary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

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

.footer__social-link:hover {
    background-color: var(--primary);
    /* Usando padrão de lift básico */
    transform: translateY(-3px);
}

.footer__heading {
    font-size: var(--font-size-lg);
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer__heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer__contact, .footer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__contact-item, .footer__nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer__contact-icon {
    color: var(--primary-light);
}

.footer__nav-link:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}

.footer__copy {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
}

/* ----- PRICE ESTIMATOR ----- */
.price-estimator {
    background: linear-gradient(135deg, white 0%, rgba(255, 193, 7, 0.02) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: var(--rounded-lg);
    padding: 2rem;
    max-width: 900px;
    margin: 3rem auto;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.price-estimator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-emergency);
    border-radius: var(--rounded-lg) var(--rounded-lg) 0 0;
}

.price-estimator__title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: var(--font-size-xl);
}

.price-estimator__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.price-estimator__result {
    background: var(--gradient-emergency);
    color: white;
    border-radius: var(--rounded);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.price-estimator__label {
    font-size: var(--font-size-md);
    font-weight: 500;
    color: white;
    margin-bottom: 0.25rem;
    display: block;
}

.price-estimator__price {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: white;
}

.price-estimator__note {
    font-size: var(--font-size-xs);
    color: var(--gray);
    margin-top: 0.5rem;
    text-align: center;
}

/* ----- URGENT REQUEST ----- */
.urgent-request-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background-color: var(--primary-light);
    border-radius: var(--rounded-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.urgent-request-box__icon {
    font-size: 3rem;
    color: var(--primary);
}

.urgent-request-box__form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
}

.urgent-request-box__button {
    width: 100%;
}

.urgent-request-box__alt-contact {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--gray-dark);
}

.urgent-request-box__alt-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* ----- EMERGENCY SERVICE ----- */
.service-urgente {
    background-color: rgba(230, 57, 70, 0.08);
    border-radius: var(--rounded-lg);
    padding: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow);
}

.service-urgente__content {
    flex: 1;
}

.service-urgente__badge {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--rounded-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-urgente__title {
    font-size: var(--font-size-2xl);
    margin-bottom: 1rem;
}

.service-urgente__text {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.service-urgente__icon {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background-color: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    box-shadow: var(--shadow);
}

/* ----- EMERGENCY SECTION ----- */
.emergency-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(248, 215, 218, 0.2) 0%, rgba(248, 215, 218, 0.4) 100%);
}

.emergency-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    top: -300px;
    right: -200px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, rgba(230, 57, 70, 0) 70%);
    z-index: 0;
}

.emergency-card {
    background-color: white;
    border-radius: var(--rounded-lg);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.15);
    display: flex;
    overflow: hidden;
    position: relative;
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.emergency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.25);
}

.emergency-card__content {
    flex: 1;
    padding: 3rem;
    position: relative;
    z-index: 2;
}

.emergency-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: var(--rounded-full);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.25);
    animation: pulse 2s infinite;
}

.emergency-badge i {
    margin-inline-end: 0.5rem;
}

.emergency-title {
    /* Tipografia fluida para título de emergência */
    font-size: clamp(1.5rem, 4.5vw, var(--font-size-3xl));
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--dark);
}

.emergency-highlight {
    color: var(--primary);
    position: relative;
}

.emergency-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--primary-light);
    z-index: -1;
    border-radius: var(--rounded-xs);
}

.emergency-description {
    color: var(--gray);
    font-size: var(--font-size-md);
    margin-bottom: 2rem;
    max-width: 90%;
}

.emergency-form {
    margin-bottom: 2rem;
}

.emergency-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--primary);
    font-size: 1rem;
}

.emergency-form .form-control {
    padding-left: 3rem;
    height: 56px;
    border-radius: var(--rounded);
    border: 2px solid var(--gray-light);
    font-size: var(--font-size-md);
    transition: all 0.3s ease;
    width: 100%;
}

.emergency-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
    outline: none;
}

.location-group {
    position: relative;
}

.location-detect {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-detect:hover {
    background-color: var(--gray-light);
    color: var(--secondary);
}

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

.emergency-submit {
    padding: 1.25rem;
    font-size: var(--font-size-lg);
    font-weight: 600;
    border-radius: var(--rounded);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    transition: all 0.3s ease;
}

.emergency-submit::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%);
    transition: all 0.6s ease;
}

.emergency-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

.emergency-submit:hover::after {
    left: 100%;
}

.emergency-submit i {
    margin-inline-end: 0.5rem;
}

.emergency-divider {
    position: relative;
    text-align: center;
    margin: 1rem 0;
}

.emergency-divider span {
    display: inline-block;
    padding: 0 1rem;
    background-color: white;
    position: relative;
    z-index: 1;
    color: var(--gray);
    font-size: var(--font-size-sm);
}

.emergency-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--gray-light);
    z-index: 0;
}

.emergency-call {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--rounded);
    font-weight: 600;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.emergency-call:hover {
    background-color: var(--gray-light);
    color: var(--secondary-dark);
    border-color: var(--gray);
}

.emergency-call i {
    margin-inline-end: 0.5rem;
}

.emergency-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--gray-light);
    border-radius: var(--rounded);
    padding: 1rem 1.5rem;
}

.emergency-notice i {
    font-size: 1.25rem;
    color: var(--primary);
}

.emergency-notice p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--gray-dark);
}

.emergency-card__decoration {
    position: relative;
    width: 380px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pulse-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    animation: pulse-expand 3s infinite ease-out;
}

.tow-truck-icon {
    position: relative;
    z-index: 2;
    font-size: 6rem;
    color: white;
    animation: float 6s infinite ease-in-out;
}

/* Animações */
@keyframes pulse-expand {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Media Queries */
@media (max-width: 992px) {
    .emergency-card {
        flex-direction: column;
    }
    
    .emergency-card__decoration {
        width: 100%;
        height: 150px;
        order: -1;
    }
    
    .tow-truck-icon {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .emergency-card__content {
        padding: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .emergency-title {
        font-size: var(--font-size-2xl);
    }
}
/* =========== RESPONSIVIDADE =========== */

/* ----- DESKTOP GRANDE (1200px+) ----- */
@media (min-width: 1201px) {
    /* Ajustes específicos para telas grandes, se necessário */
}

/* ----- DESKTOP MÉDIO (992px - 1200px) ----- */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }
}

/* ----- TABLET (768px - 992px) ----- */
@media (max-width: 992px) {
    .features__list {
        grid-template-columns: 1fr;
    }

    .stats__container {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 0;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

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

/* ----- MOBILE (abaixo de 768px) ----- */
@media (max-width: 768px) {
    /* Atualizar container padding para mobile */
    .container {
        padding: 0 var(--container-padding-mobile);
    }

    /* Reduzir espaçamento de seções para mobile */
    .section {
        padding: var(--section-spacing-mobile) 0;
    }

    .section--compact {
        padding: var(--space-10) 0;
    }

    .section__header {
        margin-bottom: var(--space-8);
    }

    /* Hero section mobile */
    .hero {
        /* Ajustado padding superior para mobile considerando header fixo */
        padding: calc(var(--header-height) + var(--space-8)) 0 var(--section-spacing-mobile);
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Header e navegação */
    .nav__toggle {
        display: block;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transform: translateX(-100%);
        transition: var(--transition);
        z-index: var(--z-header);
    }

    .nav__menu--active {
        transform: translateX(0);
    }

    /* Hero Section */
    .hero__container {
        flex-direction: column;
        gap: var(--space-8);
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__image {
        display: block;
    }

    .realtime {
        justify-content: center;
    }

    /* Estatísticas */
    .stats__container {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .stat::after {
        display: none;
    }

    /* Timeline */
    .timeline {
        max-width: 100%;
        padding: 0 1rem;
    }

    .timeline__line {
        display: none;
    }

    .timeline__items {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .timeline__item {
        flex: none;
        width: 100%;
        max-width: 400px;
        padding-bottom: 3rem;
        position: relative;
        text-align: center;
    }

    .timeline__item:not(:last-child)::before {
        content: '';
        position: absolute;
        width: 2px;
        background-color: var(--primary-light);
        top: 80px;
        bottom: -1.5rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 0;
    }

    .timeline__step {
        width: auto;
        height: auto;
        margin-bottom: 1rem;
        position: relative;
        z-index: 1;
    }

    .timeline__circle {
        margin-left: auto;
        margin-right: auto;
    }

    .timeline__content {
        position: relative;
        z-index: 1;
        background-color: var(--gray-light);
        padding: 0.5rem 0;
    }

    .timeline__description {
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Serviços */
    .service-card {
        min-height: auto;
    }

    /* Features */
    .feature-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .feature-item__icon {
        margin-bottom: 1rem;
    }

    /* Price Estimator */
    .price-estimator__form {
        grid-template-columns: 1fr;
    }

    .price-estimator__result {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* CTA Section */
    .cta__buttons {
        flex-direction: column;
        gap: 1rem;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
    }

    /* Float Buttons */
    .float-buttons {
        bottom: 1rem;
        right: 1rem;
    }

    /* Scroll Top */
    .scroll-top {
        bottom: 1rem;
        left: 1rem;
    }

    /* Notification */
    .notification--visible {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    /* Service Urgente */
    .service-urgente {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .service-urgente__icon {
        order: -1;
    }

    /* Urgent Request Box */
    .urgent-request-box {
        padding: 1.5rem;
    }

    .urgent-request-box__form-grid {
        max-width: 100%;
    }

    /* Modal */
    .modal__content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* ----- MOBILE PEQUENO (abaixo de 576px) ----- */
@media (max-width: 576px) {
    html {
        font-size: 14px; /* Reduzindo o tamanho da fonte base */
    }

    /* Reduzir ainda mais o container padding para telas muito pequenas */
    .container {
        padding: 0 var(--space-3);
    }

    /* Ajustar seções para telas muito pequenas */
    .section {
        padding: var(--space-10) 0;
    }

    .section--compact {
        padding: var(--space-8) 0;
    }

    .section__header {
        margin-bottom: var(--space-6);
    }

    /* Hero ainda menor */
    .hero {
        /* Ajustado padding superior para telas muito pequenas */
        padding: calc(var(--header-height) + var(--space-4)) 0 var(--space-10);
    }

    .hero__actions {
        gap: var(--space-2);
    }

    .hero__actions .btn {
        padding: var(--space-3) var(--space-4);
        font-size: var(--font-size-sm);
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: var(--font-size-lg);
    }

    .stat__value {
        font-size: 2.25rem;
    }

    .section__title {
        font-size: 1.75rem;
    }

    .cta__title {
        font-size: var(--font-size-2xl);
    }

    .realtime {
        flex-direction: column;
        gap: 0.5rem;
    }

    .testimonial-card {
        padding: 1.25rem;
    }

    .feature-item {
        padding: 1.25rem;
    }

    /* Ajustes para formulários */
    .custom-phone {
        flex-direction: column;
        align-items: flex-start;
    }

    .custom-phone__prefix {
        width: 100%;
        border-radius: var(--rounded) var(--rounded) 0 0;
        text-align: center;
    }

    .custom-phone .form-control {
        border-radius: 0 0 var(--rounded) var(--rounded);
    }

    .custom-location {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* =========== STARWIND UI ENHANCEMENTS =========== */

/* Enhanced Material Icons Support */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Enhanced Component System */
.card {
    background: white;
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
    background: var(--gray-light);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-light);
    background: var(--gray-light);
}

/* Enhanced Select Styling with Icons */
.form-select-with-icon {
    position: relative;
}

.form-select-with-icon select {
    padding-left: 3rem;
}

.form-select-with-icon::before {
    content: attr(data-icon);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Material Icons';
    color: var(--primary);
    z-index: 1;
    pointer-events: none;
}

/* Enhanced Typography System */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced Spacing System */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Enhanced Grid System */
.grid {
    display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Enhanced Mobile Touch Targets */
@media (max-width: 768px) {
    /* Minimum 44px touch targets for accessibility */
    .btn,
    .form-control,
    .form-select,
    .nav__link,
    .emergency-sticky-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Enhanced button spacing for mobile */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: var(--font-size-lg);
    }
    
    /* Better form spacing */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-control,
    .form-select {
        padding: 1rem;
        font-size: var(--font-size-lg);
        border-radius: var(--rounded-lg);
    }
    
    /* Enhanced navigation for mobile */
    .nav__menu {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .nav__link {
        font-size: var(--font-size-lg);
        padding: 1rem 2rem;
        border-radius: var(--rounded);
        margin: 0.5rem 0;
        transition: var(--transition);
    }
    
    .nav__link:hover {
        background-color: var(--primary-transparent);
        transform: translateX(8px);
    }
    
    /* Enhanced modal for mobile */
    .modal__content {
        margin: 1rem;
        border-radius: var(--rounded-xl);
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal__header {
        padding: 1.5rem;
        position: sticky;
        top: 0;
        z-index: 1;
    }
    
    .modal__body {
        padding: 1.5rem;
        max-height: none;
    }
    
    /* Enhanced image behavior on mobile */
    .coverage__map {
        /* Better aspect ratio for mobile viewing */
        aspect-ratio: 4/3;
    }
    
    .testimonial-card__avatar {
        /* Larger avatar on mobile for better touch interaction */
        width: 60px;
        height: 60px;
    }
    
    /* Disable transform effects on mobile for better performance */
    .image-container img:hover,
    .coverage__map:hover img,
    .testimonial-card:hover .testimonial-card__avatar img {
        transform: none;
    }
}

/* Enhanced Focus States for Accessibility */
/* Estratégia de foco movida para as utilidades globais no topo do arquivo */

/* Enhanced Loading States */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Error States */
.form-group.has-error .form-control {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.form-group.has-success .form-control {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.25);
}

/* Enhanced Micro-Interactions */
.interactive {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.interactive:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

/* Enhanced Component States */
.component-entering {
    opacity: 0;
    transform: translateY(20px);
}

.component-entered {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.component-exiting {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Enhanced Visual Hierarchy */
.priority-high {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.priority-medium {
    border-left: 4px solid var(--warning);
    padding-left: 1rem;
}

.priority-low {
    border-left: 4px solid var(--info);
    padding-left: 1rem;
}

/* Enhanced Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #1a1a1a;
        --foreground: #ffffff;
        --card-background: #2a2a2a;
        --border: #3a3a3a;
    }
    
    .supports-dark {
        background-color: var(--background);
        color: var(--foreground);
    }
    
    .supports-dark .card {
        background-color: var(--card-background);
        border-color: var(--border);
    }
}

/* Enhanced Performance Optimizations */
.will-change-transform { will-change: transform; }
.will-change-opacity { will-change: opacity; }
.will-change-scroll { will-change: scroll-position; }

/* Enhanced Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.not-sr-only {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Enhanced Responsive Text */
@media (max-width: 640px) {
    .text-responsive-sm {
        font-size: var(--font-size-sm);
    }
    
    .text-responsive-base {
        font-size: var(--font-size-md);
    }
    
    .text-responsive-lg {
        font-size: var(--font-size-lg);
    }
}

/* =========== ADVANCED IMAGE UTILITIES =========== */

/* Aspect Ratio Containers for Consistent Image Display */
.aspect-ratio {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.aspect-ratio::before {
    content: '';
    display: block;
    padding-bottom: var(--aspect-ratio, 56.25%); /* Default 16:9 */
}

.aspect-ratio > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Common Aspect Ratios */
.aspect-square { --aspect-ratio: 100%; }
.aspect-video { --aspect-ratio: 56.25%; } /* 16:9 */
.aspect-photo { --aspect-ratio: 75%; } /* 4:3 */
.aspect-wide { --aspect-ratio: 42.86%; } /* 21:9 */
.aspect-portrait { --aspect-ratio: 133.33%; } /* 3:4 */

/* Image Display Modes */
.img-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(1.1) contrast(1.05);
    transition: transform 0.8s ease-in-out, filter 0.3s ease;
}

.img-hero:hover {
    transform: scale(1.05);
    filter: brightness(1.15) contrast(1.1);
}

.img-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: var(--rounded);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow);
}

.img-card {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center center;
    border-radius: var(--rounded) var(--rounded) 0 0;
}

.img-profile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

/* Interactive Image Effects */
.img-zoom-on-hover {
    overflow: hidden;
    border-radius: var(--rounded);
}

.img-zoom-on-hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease;
    will-change: transform;
}

.img-zoom-on-hover:hover img {
    transform: scale(1.1);
}

.img-parallax {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    will-change: transform;
}

/* Responsive Image Containers */
.img-container-sm {
    width: 100%;
    height: 150px;
    border-radius: var(--rounded);
    overflow: hidden;
}

.img-container-md {
    width: 100%;
    height: 250px;
    border-radius: var(--rounded);
    overflow: hidden;
}

.img-container-lg {
    width: 100%;
    height: 350px;
    border-radius: var(--rounded);
    overflow: hidden;
}

.img-container-xl {
    width: 100%;
    height: 450px;
    border-radius: var(--rounded);
    overflow: hidden;
}

/* Image Loading States */
.img-loading {
    background: linear-gradient(90deg, 
        var(--gray-light) 25%, 
        rgba(229, 229, 229, 0.5) 50%, 
        var(--gray-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.img-loaded {
    animation: fadeIn 0.5s ease-in-out;
}

/* Image Filters for Enhanced Visual Appeal */
.img-filter-bright { filter: brightness(1.2); }
.img-filter-contrast { filter: contrast(1.1); }
.img-filter-saturate { filter: saturate(1.2); }
.img-filter-warm { filter: sepia(0.1) saturate(1.1) brightness(1.05); }
.img-filter-cool { filter: hue-rotate(10deg) saturate(0.9) brightness(1.05); }
.img-filter-vintage { filter: sepia(0.3) contrast(1.1) brightness(1.1); }

/* Image Overlay System */
.img-overlay {
    position: relative;
    overflow: hidden;
    border-radius: var(--rounded);
}

.img-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.img-overlay:hover::after {
    opacity: 1;
}

.img-overlay-dark::after {
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.2) 0%, 
        rgba(0,0,0,0.7) 100%);
}

.img-overlay-primary::after {
    background: linear-gradient(to bottom, 
        rgba(230, 57, 70, 0) 0%, 
        rgba(230, 57, 70, 0.6) 100%);
}

/* Performance Optimized Images */
.img-optimized {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Accessibility Enhancements */
.img-accessible {
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.img-accessible:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* Container Query Responsive Images */
@container (min-width: 300px) {
    .container-img-sm {
        height: 200px;
    }
}

@container (min-width: 500px) {
    .container-img-md {
        height: 300px;
    }
}

@container (min-width: 700px) {
    .container-img-lg {
        height: 400px;
    }
}

/* Enhanced Container Queries Support */
/* Componentes modulares que se adaptam ao container */
.services__grid {
    container-type: inline-size;
    container-name: services-grid;
}

.testimonials__list {
    container-type: inline-size;
    container-name: testimonials;
}

.features__list {
    container-type: inline-size;
    container-name: features;
}

.footer__grid {
    container-type: inline-size;
    container-name: footer;
}

/* Container queries para componentes modulares */
@container services-grid (min-width: 400px) {
    .services__grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@container services-grid (min-width: 600px) {
    .services__grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@container testimonials (min-width: 400px) {
    .testimonials__list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@container features (min-width: 500px) {
    .features__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@container footer (min-width: 600px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@container footer (max-width: 599px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

/* Container queries originais mantidas e expandidas */
@container (min-width: 400px) {
    .container-md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (min-width: 600px) {
    .container-lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Novas container queries para componentes específicos */
@container (min-width: 320px) {
    .container-sm\:flex-row {
        flex-direction: row;
    }
    
    .container-sm\:text-start {
        text-align: start;
    }
}

@container (min-width: 768px) {
    .container-md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .container-md\:gap-8 {
        gap: 2rem;
    }
}

/* =========== BLUR SEPARATORS (transição "blur-in-and-out" entre seções claras) =========== */
/* Use a small markup divider between two consecutive light sections:
   <div class="blur-sep blur-sep--light" aria-hidden="true"></div>
   Rules below create a subtle, non-overlapping blurred band that softens the edge
   between two light backgrounds without affecting dark sections. Pointer events disabled. */
.blur-sep {
    width: 100%;
    height: 48px; /* reduced visual thickness for subtlety */
    position: relative;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
}

.blur-sep::before,
.blur-sep::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 50%;
    pointer-events: none;
    will-change: opacity, transform;
}

/* Top half: continues the hero section gradient and fades into transition */
.blur-sep::before {
    top: 0;
    background: linear-gradient(180deg,
        rgba(230, 57, 70, 0.02) 0%,
        rgba(255, 193, 7, 0.015) 30%,
        rgba(248, 215, 218, 0.1) 80%,
        rgba(248, 215, 218, 0.15) 100%);
    filter: blur(6px);
    transform-origin: top center;
    opacity: 0.9;
}

/* Bottom half: transitions from middle point to stats section */
.blur-sep::after {
    bottom: 0;
    background: linear-gradient(0deg,
        rgba(248, 215, 218, 0.15) 0%,
        rgba(255, 250, 245, 0.6) 50%,
        rgba(248, 249, 250, 0.4) 100%);
    filter: blur(6px);
    transform-origin: bottom center;
    opacity: 0.8;
}

/* Variant tuned for hero-to-stats transition (inherits hero gradient colors) */
.blur-sep--light::before {
    background: linear-gradient(180deg,
        rgba(230, 57, 70, 0.015) 0%,
        rgba(255, 193, 7, 0.01) 25%,
        rgba(248, 215, 218, 0.08) 70%,
        rgba(248, 215, 218, 0.12) 100%);
    filter: blur(4px);
    opacity: 1;
}

.blur-sep--light::after {
    background: linear-gradient(0deg,
        rgba(248, 215, 218, 0.12) 0%,
        rgba(255, 250, 245, 0.5) 40%,
        rgba(248, 249, 250, 0.3) 80%,
        rgba(255,255,255,0.1) 100%);
    filter: blur(4px);
    opacity: 0.9;
}

/* Reduce intensity on small screens to avoid large stacking */
@media (max-width: 768px) {
    .blur-sep { height: 32px; }
    .blur-sep::before, .blur-sep::after { filter: blur(4px); opacity: 0.5; }
}

/* Accessibility: hide from assistive tech (decorative) */
