/* ===========================
   RESET E VARIÁVEIS GLOBAIS
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #07149b;
    --primary-light: #1a3ba8;
    --primary-lighter: #e8f0ff;
    --secondary-color: #0099ff;
    --accent-color: #25d366;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --spacing-unit: 16px;
    --shadow-light: 0 2px 10px rgba(7, 20, 155, 0.08);
    --shadow-medium: 0 8px 30px rgba(7, 20, 155, 0.12);
    --shadow-heavy: 0 15px 40px rgba(7, 20, 155, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--primary-lighter) 0%, #f0f8ff 100%);
    --border-radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 50%, #f8faff 100%);
    background-attachment: fixed;
}

/* ===========================
   CONTAINER E LAYOUT
   =========================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    width: 100%;
}

/* Flexibilidade para imagens */
img {
    max-width: 100%;
    height: auto;
}

/* Layout flexível para grids */
.servicos-grid,
.diferenciais-grid,
.testimonials-grid {
    display: grid;
    gap: calc(var(--spacing-unit) * 2);
    width: 100%;
}

.servicos-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.diferenciais-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

/* ===========================
   HEADER/NAVIGATION
   =========================== */

.header {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: calc(var(--spacing-unit) * 1.5) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-unit);
    margin-left: -8px; /* desloca levemente para a esquerda conforme pedido */
}

.logo-image {
    flex-shrink: 0;
}

.logo-img {
    width: clamp(72px, 8vw, 110px);
    height: clamp(72px, 8vw, 110px);
    border-radius: 10px;
    object-fit: contain;
}

.logo-placeholder {
    width: clamp(72px, 8vw, 110px);
    height: clamp(72px, 8vw, 110px);
    border-radius: 10px;
    overflow: hidden;
}

.logo-placeholder svg {
    width: 100%;
    height: 100%;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.logo-text .tagline {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 300;
}

.nav {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 14px;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    background: var(--gradient-secondary);
    padding: calc(var(--spacing-unit) * 5) 0;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(7, 20, 155, 0.05) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 3);
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1.5);
    max-width: 100%;
}

.hero-title {
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    word-wrap: break-word;
}

.hero-subtitle {
    font-size: clamp(14px, 3vw, 18px);
    color: var(--text-light);
    line-height: 1.5;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.image-placeholder {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(7, 20, 155, 0.15);
    min-width: 200px;
}

.image-placeholder svg {
    width: 80%;
    height: 80%;
}

/* ===========================
   BUTTONS
   =========================== */

.cta-button {
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
    border: none;
    border-radius: var(--border-radius);
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-align: center;
    min-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    text-decoration: none;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-medium);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.cta-button.secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0080cc 100%);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(0, 153, 255, 0.3);
}

.cta-button.secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 153, 255, 0.4);
}

.cta-button.full-width {
    width: 100%;
}

/* ===========================
   SEÇÕES GERAIS
   =========================== */

.section-title {
    font-size: clamp(22px, 5vw, 36px);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-unit);
    word-wrap: break-word;
}

.section-subtitle {
    font-size: clamp(14px, 3vw, 18px);
    color: var(--text-light);
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
    line-height: 1.6;
}

/* ===========================
   SERVIÇOS SECTION
   =========================== */

.servicos {
    padding: calc(var(--spacing-unit) * 5) 0;
    background-color: #ffffff;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.servico-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 255, 0.9) 100%);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition-smooth);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.servico-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(7, 20, 155, 0.05) 0%, transparent 70%);
    transition: var(--transition-smooth);
    opacity: 0;
}

.servico-card:hover::before {
    opacity: 1;
}

.servico-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-left-color: var(--secondary-color);
}

.servico-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto calc(var(--spacing-unit) * 1.5);
    background: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(7, 20, 155, 0.1);
}

.servico-icon svg {
    width: 50px;
    height: 50px;
}

.servico-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
}

.servico-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

/* ===========================
   MINI-GALERIAS DOS SERVIÇOS
   =========================== */

.mini-galeria {
    margin-top: calc(var(--spacing-unit) * 1.5);
    border-top: 1px solid rgba(7, 20, 155, 0.1);
    padding-top: calc(var(--spacing-unit) * 1.5);
    width: 100%;
    overflow: hidden;
}

.mini-galeria-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.mini-galeria-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: 100%;
    align-items: stretch;
    flex-wrap: nowrap;
}

.mini-slide {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
}

.mini-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.mini-slide img:hover {
    transform: scale(1.02);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 0.75);
    border-radius: 0 0 6px 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mini-slide:hover .slide-caption {
    opacity: 1;
}

.slide-caption h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
}

.slide-caption p {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.3;
}

.mini-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 5;
    opacity: 0;
    backdrop-filter: blur(5px);
}

.mini-galeria-container:hover .mini-carousel-btn {
    opacity: 1;
}

.mini-carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mini-carousel-btn.prev {
    left: 8px;
}

.mini-carousel-btn.next {
    right: 8px;
}

.mini-carousel-btn svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.mini-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: calc(var(--spacing-unit) * 0.75);
}

.mini-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(7, 20, 155, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mini-indicator.active,
.mini-indicator:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Estilo para galerias vazias */
.mini-galeria-empty {
    text-align: center;
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 2);
    background: linear-gradient(135deg, #f8faff 0%, rgba(7, 20, 155, 0.05) 100%);
    border-radius: 8px;
    border: 2px dashed rgba(7, 20, 155, 0.2);
}

.mini-galeria-empty p {
    color: var(--text-light);
    font-style: italic;
    margin: 0;
    font-size: 14px;
}

/* Correção específica para desktop */
@media (min-width: 769px) {
    .mini-galeria-container {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
        contain: layout;
    }

    .mini-galeria-track {
        display: flex;
        transition: transform 0.4s ease-in-out;
        width: 100%;
        align-items: stretch;
        flex-wrap: nowrap;
        will-change: transform;
    }

    .mini-slide {
        min-width: 100%;
        max-width: 100%;
        flex-shrink: 0;
        position: relative;
        box-sizing: border-box;
        width: 100%;
    }
}

/* ===========================
   MODAL PARA AMPLIAR IMAGENS
   =========================== */

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -10px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-caption {
    margin-top: 15px;
    color: white;
    text-align: center;
}

.modal-caption h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #ffffff;
}

.modal-caption p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.hero-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(7, 20, 155, 0.15);
    object-fit: cover;
}

.placeholder-svg {
    width: 80%;
    height: 80%;
}

/* ===========================
   DIFERENCIAIS SECTION
   =========================== */

.diferenciais {
    padding: calc(var(--spacing-unit) * 5) 0;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, #f0f8ff 100%);
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 2.5);
}

.diferencial-item {
    background: var(--text-white);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(7, 20, 155, 0.08);
    transition: all 0.3s ease;
}

.diferencial-item:hover {
    box-shadow: 0 8px 25px rgba(7, 20, 155, 0.15);
    transform: translateY(-3px);
}

.diferencial-numero {
    font-size: 32px;
    color: var(--success-color);
    margin-bottom: var(--spacing-unit);
    font-weight: 700;
}

.diferencial-item h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.diferencial-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* Testimonials removed (styles kept minimal). */

/* ===========================
   CTA SECTION
   =========================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-white);
    padding: calc(var(--spacing-unit) * 4) 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: var(--spacing-unit);
}

.cta-section p {
    font-size: 18px;
    margin-bottom: calc(var(--spacing-unit) * 2);
    opacity: 0.95;
}

/* ===========================
   CONTACT FORM SECTION
   =========================== */

.contact-section {
    padding: calc(var(--spacing-unit) * 5) 0;
    background-color: #f9f9f9;
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--text-white);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(7, 20, 155, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.form-wrapper h2 {
    font-size: clamp(20px, 4vw, 28px);
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
    text-align: center;
    word-wrap: break-word;
}

.form-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-size: clamp(13px, 3vw, 16px);
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1.5);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: calc(var(--spacing-unit) * 0.75) var(--spacing-unit);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(7, 20, 155, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-message {
    padding: var(--spacing-unit);
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background-color: #e8f5e9;
    color: var(--success-color);
    display: block;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
    display: block;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-white);
    padding: calc(var(--spacing-unit) * 3) 0 var(--spacing-unit);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-section h4 {
    margin-bottom: var(--spacing-unit);
    font-size: 16px;
}

.footer-section p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

/* Corrige estilo de links telefônicos automáticos em mobile (tel:) no rodapé */
.footer-section a[href^="tel"],
.footer-bottom a[href^="tel"] {
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none !important;
    opacity: 0.95;
}

.footer-section a[href^="tel"]:hover,
.footer-bottom a[href^="tel"]:hover {
    text-decoration: underline !important;
    color: #ffffff !important;
}

.social-links {
    margin-top: var(--spacing-unit);
    display: flex;
    gap: calc(var(--spacing-unit) * 0.75);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-link.whatsapp {
    background: #25d366;
    border-color: #25d366;
}

.social-link.whatsapp:hover {
    background: #128c7e;
    border-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-info {
    margin-top: calc(var(--spacing-unit) * 0.75);
    font-size: 13px;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-unit);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    opacity: 0.8;
}

/* Crédito discreto no rodapé */
.footer-credit {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1;
}

/* Estiliza link dentro do crédito para ficar discreto e legível */
.footer-credit a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 10px;
    opacity: 0.9;
}

.footer-credit a:hover {
    text-decoration: underline;
    color: #ffffff;
}

@media (max-width: 480px) {
    .footer-credit {
        font-size: 10px;
        text-align: center;
    }
}

/* Link discreto para portfolio pessoal no rodapé */
.footer-portfolio {
    margin-top: 4px;
}

.footer-portfolio a {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-portfolio a:hover {
    color: #ffffff;
}

/* ===========================
   RESPONSIVIDADE
   =========================== */

/* Tablets e dispositivos médios */
@media (max-width: 1024px) {
    .container {
        padding: 0 calc(var(--spacing-unit) * 1.5);
    }

    .hero-title {
        font-size: 36px;
    }

    .servicos-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .diferenciais-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

/* Tablets em modo retrato */
@media (max-width: 768px) {
    .header {
        padding: var(--spacing-unit) 0;
    }

    .header .container {
        flex-direction: column;
        gap: var(--spacing-unit);
        text-align: center;
    }

    .logo {
        justify-content: center;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: calc(var(--spacing-unit) * 1.5);
    }

    .hero {
        padding: calc(var(--spacing-unit) * 3) 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 2);
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .section-title {
        font-size: 30px;
        margin-bottom: calc(var(--spacing-unit) * 1.5);
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: calc(var(--spacing-unit) * 2.5);
    }

    .servicos,
    .diferenciais,
    .testimonials {
        padding: calc(var(--spacing-unit) * 4) 0;
    }

    .servicos-grid,
    .diferenciais-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 2);
    }

    .servico-card,
    .diferencial-item,
    .testimonial-card {
        padding: calc(var(--spacing-unit) * 1.5);
    }

    /* Mini-galerias responsivas */
    .mini-slide img {
        height: 180px;
    }

    .slide-caption {
        padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 0.5);
        opacity: 1; /* Sempre visível em tablets */
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    }

    .slide-caption h4 {
        font-size: 13px;
    }

    .slide-caption p {
        font-size: 11px;
    }

    .mini-carousel-btn {
        width: 28px;
        height: 28px;
    }

    .mini-carousel-btn svg {
        width: 14px;
        height: 14px;
    }

    .mini-carousel-btn.prev {
        left: 6px;
    }

    .mini-carousel-btn.next {
        right: 6px;
    }

    /* Modal responsivo */
    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }

    .modal-close {
        top: -35px;
        right: -5px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }

    .cta-section {
        padding: calc(var(--spacing-unit) * 3) 0;
    }

    .cta-section h2 {
        font-size: 26px;
    }

    .cta-section p {
        font-size: 16px;
    }

    .contact-section {
        padding: calc(var(--spacing-unit) * 4) 0;
    }

    .form-wrapper {
        padding: calc(var(--spacing-unit) * 2);
        margin: 0 var(--spacing-unit);
    }

    .form-wrapper h2 {
        font-size: 24px;
    }

    .footer {
        padding: calc(var(--spacing-unit) * 2.5) 0 var(--spacing-unit);
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: calc(var(--spacing-unit) * 1.5);
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .carousel-slide img {
        height: 400px;
    }

    .slide-overlay h3 {
        font-size: 22px;
    }

    .slide-overlay p {
        font-size: 16px;
    }
}

/* Smartphones em modo paisagem */
@media (max-width: 640px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 26px;
    }

    .servico-card h3,
    .diferencial-item h3 {
        font-size: 18px;
    }

    .servico-card p,
    .diferencial-item p {
        font-size: 14px;
    }

    /* Mini-galerias em telas pequenas */
    .mini-slide img {
        height: 160px;
    }

    .slide-caption {
        padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 0.25);
        opacity: 1; /* Sempre visível em mobile */
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    }

    .slide-caption h4 {
        font-size: 12px;
    }

    .slide-caption p {
        font-size: 10px;
    }

    .mini-carousel-btn {
        width: 24px;
        height: 24px;
    }

    .mini-carousel-btn svg {
        width: 12px;
        height: 12px;
    }

    /* Modal em telas pequenas */
    .modal-content {
        max-width: 98%;
        max-height: 90%;
    }

    .modal-close {
        top: -30px;
        right: 0;
        font-size: 20px;
        width: 30px;
        height: 30px;
    }

    .modal-caption h4 {
        font-size: 16px;
    }

    .modal-caption p {
        font-size: 12px;
    }

    .cta-button {
        padding: calc(var(--spacing-unit) * 0.875) calc(var(--spacing-unit) * 1.5);
        font-size: 15px;
    }

    .form-wrapper {
        margin: 0 calc(var(--spacing-unit) * 0.5);
    }
}

/* Smartphones pequenos */
@media (max-width: 480px) {
    :root {
        --spacing-unit: 12px;
    }

    .container {
        padding: 0 var(--spacing-unit);
    }

    .header {
        padding: calc(var(--spacing-unit) * 0.75) 0;
    }

    .logo {
        /* Manter logo e texto lado a lado no mobile */
        flex-direction: row;
        text-align: left;
        gap: 10px; /* espaço entre imagem e texto */
        align-items: center;
        justify-content: center;
        width: auto;
        margin-left: 0; /* anula o deslocamento negativo em telas pequenas para centralizar */
    }

    .logo-text h1 {
        font-size: 20px;
    }

    .logo-text .tagline {
        font-size: 11px;
    }

    .logo-img,
    .logo-placeholder {
        /* Aumentado para mobile: maior visibilidade sem sobreposição */
        width: clamp(56px, 16vw, 90px);
        height: clamp(56px, 16vw, 90px);
    }

    /* garantir que o header organize os elementos verticalmente sem sobrepor */
    .header .container {
        align-items: center;
        gap: calc(var(--spacing-unit) * 0.25);
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .logo-image {
        margin-bottom: 0; /* remover margem para alinhar ao lado */
        display: flex;
        align-items: center;
    }

    .nav {
        margin-top: 6px;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: calc(var(--spacing-unit) * 0.8);
    }

    .nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--spacing-unit);
    }

    .nav-link {
        font-size: 13px;
        padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 0.75);
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }

    .hero {
        padding: calc(var(--spacing-unit) * 2.5) 0;
    }

    .hero-title {
        font-size: 24px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.4;
    }

    .image-placeholder {
        max-width: 250px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: var(--spacing-unit);
    }

    .section-subtitle {
        font-size: 15px;
        margin-bottom: calc(var(--spacing-unit) * 2);
    }

    .servicos,
    .diferenciais,
    .testimonials {
        padding: calc(var(--spacing-unit) * 3) 0;
    }

    .servico-card,
    .diferencial-item,
    .testimonial-card {
        padding: calc(var(--spacing-unit) * 1.25);
    }

    .servico-icon,
    .diferencial-numero {
        margin-bottom: var(--spacing-unit);
    }

    .servico-icon {
        width: 60px;
        height: 60px;
    }

    .servico-icon svg {
        width: 35px;
        height: 35px;
    }

    .servico-card h3,
    .diferencial-item h3 {
        font-size: 16px;
        margin-bottom: calc(var(--spacing-unit) * 0.75);
    }

    .servico-card p,
    .diferencial-item p,
    .testimonial-text {
        font-size: 13px;
        line-height: 1.5;
    }

    .diferencial-numero {
        font-size: 28px;
    }

    .stars {
        font-size: 16px;
    }

    .testimonial-author {
        font-size: 13px;
    }

    .cta-section {
        padding: calc(var(--spacing-unit) * 2.5) 0;
    }

    .cta-section h2 {
        font-size: 22px;
        margin-bottom: calc(var(--spacing-unit) * 0.75);
    }

    .cta-section p {
        font-size: 15px;
        margin-bottom: calc(var(--spacing-unit) * 1.5);
    }

    .cta-button {
        padding: calc(var(--spacing-unit) * 0.75) var(--spacing-unit);
        font-size: 14px;
        letter-spacing: 0.3px;
    }

    .contact-section {
        padding: calc(var(--spacing-unit) * 3) 0;
    }

    .form-wrapper {
        padding: calc(var(--spacing-unit) * 1.5);
        margin: 0 calc(var(--spacing-unit) * 0.5);
    }

    .form-wrapper h2 {
        font-size: 20px;
    }

    .form-subtitle {
        font-size: 14px;
        margin-bottom: calc(var(--spacing-unit) * 1.5);
    }

    .contact-form {
        gap: var(--spacing-unit);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: calc(var(--spacing-unit) * 0.625) calc(var(--spacing-unit) * 0.75);
        font-size: 14px;
    }

    .footer {
        padding: calc(var(--spacing-unit) * 2) 0 calc(var(--spacing-unit) * 0.75);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 1.25);
    }

    .footer-section h4 {
        font-size: 15px;
        margin-bottom: calc(var(--spacing-unit) * 0.75);
    }

    .footer-section p {
        font-size: 13px;
    }

    .social-links {
        justify-content: center;
        margin-top: calc(var(--spacing-unit) * 0.75);
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

    .social-info {
        font-size: 12px;
    }

    .footer-bottom {
        font-size: 11px;
        padding-top: calc(var(--spacing-unit) * 0.75);
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .carousel-slide img {
        height: 350px;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
    }

    .carousel-btn.prev {
        left: 15px;
    }

    .carousel-btn.next {
        right: 15px;
    }

    .slide-overlay h3 {
        font-size: 20px;
    }

    .slide-overlay p {
        font-size: 15px;
    }
}

/* Dispositivos extra pequenos */
@media (max-width: 360px) {
    :root {
        --spacing-unit: 10px;
    }

    .hero-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 20px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .nav-link {
        font-size: 12px;
        padding: calc(var(--spacing-unit) * 0.4) calc(var(--spacing-unit) * 0.6);
    }

    .cta-button {
        font-size: 13px;
        padding: calc(var(--spacing-unit) * 0.6) calc(var(--spacing-unit) * 0.8);
    }

    .form-wrapper {
        margin: 0;
        border-radius: 8px;
    }

    .servico-card,
    .diferencial-item,
    .testimonial-card {
        border-radius: 8px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    .carousel-slide img {
        height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .slide-overlay {
        padding: calc(var(--spacing-unit) * 1.5) var(--spacing-unit) var(--spacing-unit);
    }

    .slide-overlay h3 {
        font-size: 18px;
    }

    .slide-overlay p {
        font-size: 14px;
    }
}

/* ===========================
   ANIMAÇÕES E EFEITOS MODERNOS
   =========================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.servico-card,
.diferencial-item,
.testimonial-card {
    animation: fadeInUp 0.8s ease-out forwards;
    will-change: transform, opacity;
}

.servico-card:nth-child(1) { animation-delay: 0.1s; }
.servico-card:nth-child(2) { animation-delay: 0.2s; }
.servico-card:nth-child(3) { animation-delay: 0.3s; }

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-image {
    animation: slideInRight 1s ease-out;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--text-dark);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* ===========================
   GALERIA DE PROJETOS - REMOVIDA
   (Agora cada serviço tem sua mini-galeria)
   =========================== */

/*
.galeria {
    padding: calc(var(--spacing-unit) * 5) 0;
    background: linear-gradient(135deg, #f8faff 0%, var(--primary-lighter) 50%, #f8faff 100%);
}

.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(7, 20, 155, 0.15);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2);
    color: white;
}

.slide-overlay {
    display: none !important;
}

.slide-overlay h3 {
    font-size: 24px;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    font-weight: 600;
}

.slide-overlay p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: calc(var(--spacing-unit) * 2);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(7, 20, 155, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}
*/
