/* =========================================================
   KalaEnergia — main.css
   Design System traduzido do Next.js (Tailwind) para CSS puro
   Paleta:
     #00e677  — primary green (vibrant)
     #003399  — secondary deep blue
     #0047ab  — accent medium blue
     #f5f8f7  — foreground (light text)
     #0f2319  — card / surfaces elevated
     #050c14  — background (deepest dark)
   ========================================================= */

/* ---------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   --------------------------------------------------------- */
:root {
    --bg: #050c14;
    --fg: #f5f8f7;
    --primary: #00e677;
    --primary-dark: #00b85a;
    --secondary: #003399;
    --accent: #0047ab;
    --card: #0f2319;
    --muted-fg: #a0b0a8;
    --border: rgba(245, 248, 247, 0.10);
    --border-primary: rgba(0, 230, 119, 0.20);
    --radius: 0.625rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 1.875rem;
    --shadow-glow: 0 0 20px rgba(0, 230, 119, 0.4);
    --container-max: 80rem;
    /* max-w-7xl = 1280px */
    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    /* +50% global */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* ---------------------------------------------------------
   3. Utilitários Globais
   --------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Acessibilidade: texto visível apenas para leitores de tela */
.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;
}

/* CTA de serviços: layout de duas colunas */
.services-cta-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
}

@media (min-width: 768px) {
    .services-cta-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.services-cta-text h3 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 0.5rem;
}

.services-cta-text p {
    font-size: 1.124rem;
    color: var(--muted-fg);
    line-height: 1.6;
    max-width: 36rem;
}

.services-cta-action {
    flex-shrink: 0;
}

/* Ícones Material Symbols */
.icon-sm {
    font-size: 1.2rem;
    line-height: 1;
}

.icon-md {
    font-size: 1.5rem;
    line-height: 1;
}

.icon-lg {
    font-size: 1.8rem;
    line-height: 1;
}

.icon-xl {
    font-size: 2.4rem;
    line-height: 1;
}

.material-symbols-outlined {
    vertical-align: middle;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Badge / pill */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid var(--border-primary);
    background: rgba(0, 230, 119, 0.05);
    border-radius: 9999px;
    padding: 0.25rem 0.875rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

/* Acento visual de seção (barra verde) */
.accent-bar {
    display: block;
    margin-top: 0.75rem;
    height: 0.25rem;
    width: 4rem;
    border-radius: 9999px;
    background: var(--primary);
}

/* Section Header */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-header.left {
    align-items: flex-start;
    text-align: left;
}

.section-header.center {
    align-items: center;
    text-align: center;
}

.section-header h2 {
    font-size: clamp(3.15rem, 6vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fg);
    line-height: 1.15;
}

.section-header p {
    max-width: 40rem;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--muted-fg);
}

/* Highlight em texto */
.highlight {
    color: var(--primary);
}

/* ---------------------------------------------------------
   4. Botões
   --------------------------------------------------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--bg);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    background: var(--primary-dark);
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0a0f1d;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.35rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-dark:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #0a0f1d;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.35rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid #0a0f1d;
}

.btn-outline-dark:hover {
    background: #0a0f1d;
    color: #fff;
}

/* ---------------------------------------------------------
   5. NAVBAR
   --------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: background 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    height: 6.5rem;
    background: transparent;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(5, 12, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border-primary);
    height: 5rem;
}

.navbar-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.navbar-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.navbar-logo img {
    width: 5rem;
    height: 5rem;
    transition: var(--transition);
}

.navbar-brand-text {
    display: inline-flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    line-height: 1;
    letter-spacing: -0.5px;
}

.brand-kala {
    color: #ffffff;
}

.brand-energia {
    color: #006400ff;
}

/* Desktop Nav links */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.navbar-nav a {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(245, 248, 247, 0.8);
    transition: color 0.2s ease;
}

.navbar-nav a:hover {
    color: var(--primary);
}

/* CTA Button (navbar) */
.navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-primary);
    background: rgba(0, 230, 119, 0.05);
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
    white-space: nowrap;
}

.navbar-cta:hover {
    background: rgba(0, 230, 119, 0.10);
    border-color: var(--primary);
}

/* Hamburger (mobile) */
.navbar-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--fg);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    line-height: 1;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(5, 12, 20, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-primary);
    padding: 1.5rem;
}

.mobile-menu a {
    font-size: 1.688rem;
    font-weight: 500;
    color: rgba(245, 248, 247, 0.8);
    transition: color 0.2s ease;
}

.mobile-menu a:hover {
    color: var(--primary);
}

.mobile-menu .mobile-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-primary);
    background: rgba(0, 230, 119, 0.05);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.5rem;
}

.mobile-menu.is-open {
    display: flex;
}

/* ---------------------------------------------------------
   6. HERO SECTION
   Imagem: 65% esquerda | Texto + botão: 35% direita
   --------------------------------------------------------- */
.hero {
    position: relative;
    width: 100%;
    display: flex;
    align-items: stretch;
    margin-top: 6.5rem;
    min-height: calc(100vh - 6.5rem);
    min-height: calc(100dvh - 6.5rem);
    overflow: hidden;
}

/* Gradiente: funde a borda direita da imagem com o bg escuro do texto */
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left,
            var(--bg) 30%,
            rgba(5, 12, 20, 0.75) 55%,
            transparent 100%);
    z-index: 10;
    pointer-events: none;
}

/* Carrossel: ocupa os 65% do lado ESQUERDO */
.hero-carousel-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 65%;
    height: 100%;
    display: none;
    /* hidden on mobile */
    z-index: 1;
}

.hero-carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-carousel-img.active {
    opacity: 0.85;
}

/* Overlay da imagem: escurece levemente + funde borda direita da foto */
.hero-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            transparent 55%,
            var(--bg) 100%);
    pointer-events: none;
}

/* Indicadores do carrossel */
.hero-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

.hero-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.hero-indicator.active {
    width: 1.5rem;
    background: var(--primary);
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Área de conteúdo: alinha o texto nos 35% à direita */
.hero-content {
    position: relative;
    z-index: 20;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* empurra para a direita */
    padding: 6rem 0;
    height: 100%;
}

/* Coluna de texto: 100% por padrão (mobile/tablet), 35% no desktop */
.hero-inner {
    width: 100%;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Título: alinhado à esquerda */
.hero-inner h1 {
    font-size: clamp(3.6rem, 5.25vw, 3.9rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--fg);
    text-align: left;
    letter-spacing: -0.02em;
}

/* Parágrafo: justificado */
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--muted-fg);
    margin-bottom: 2rem;
    line-height: 1.75;
    text-align: justify;
    hyphens: auto;
}

.hero-ctas {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* ---------------------------------------------------------
   7. SERVICES SECTION (Home)
   --------------------------------------------------------- */
.services-section {
    padding: 6rem 0;
    background: var(--bg);
    position: relative;
}

.services-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
    align-items: flex-start;
}

.services-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
}

.services-link:hover {
    color: rgba(0, 230, 119, 0.8);
}

.services-link .material-symbols-outlined {
    transition: transform 0.2s ease;
}

.services-link:hover .material-symbols-outlined {
    transform: translateX(4px);
}

/* Grid de cards */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Service Card */
.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 2rem;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    cursor: default;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.card-icon {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--fg);
}

.service-card p {
    font-size: 1.05rem;
    color: #94a3b8;
    /* slate-400 */
    line-height: 1.7;
    flex-grow: 1;
}

/* Borda inferior animada */
.card-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.25rem;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover .card-bottom-bar {
    transform: scaleX(1);
}

/* ---------------------------------------------------------
   8. DIFFERENTIAL SECTION
   --------------------------------------------------------- */
.differential-section {
    padding: 6rem 0;
    background: #0a0f1d;
    position: relative;
    overflow: hidden;
}

.differential-layout {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    align-items: center;
}

/* Header */
.differential-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    max-width: 60rem;
    margin: 0 auto;
}

.differential-header .badge {
    align-self: center;
}

.differential-header h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

/* Video */
.differential-video-wrapper {
    width: 100%;
    max-width: 72rem;
    /* Expanded size */
    margin: 0 auto;
}

.differential-video-inner {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    cursor: pointer;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.differential-video-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 230, 119, 0.10), transparent);
}

.differential-video-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url('../images/hero/blueprint_pattern.webp');
    background-size: cover;
    mix-blend-mode: overlay;
}

.differential-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}

.differential-video-inner:hover .differential-video-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.play-button-group {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.play-button {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 230, 119, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 12, 20, 0.8);
    transition: transform 0.3s ease;
    color: var(--primary);
}

.differential-video-inner:hover .play-button {
    transform: scale(1.1);
}

.play-label {
    display: flex;
    flex-direction: column;
}

.play-label-top {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.play-label-bottom {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

/* Features Grid */
.differential-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

@media (min-width: 768px) {
    .differential-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-item-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.feature-item-card:hover {
    border-color: var(--border-primary);
    background: rgba(0, 230, 119, 0.05);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(0, 230, 119, 0.10);
    color: var(--primary);
}

.feature-item-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.feature-item-content p {
    color: var(--muted-fg);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ---------------------------------------------------------
   9. CTA SECTION
   --------------------------------------------------------- */
.cta-section {
    padding: 3rem 1.5rem;
    position: relative;
}

.cta-card {
    max-width: 62rem;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #003399 0%, #00e677 100%);
    box-shadow: 0 12px 25px -6px rgba(0, 0, 0, 0.5);
}

.cta-bg-icon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2.5rem;
    opacity: 0.1;
    pointer-events: none;
    transition: transform 0.7s ease;
}

.cta-card:hover .cta-bg-icon {
    transform: rotate(12deg);
}

.cta-bg-icon .material-symbols-outlined {
    font-size: 4.8rem;
    color: #0a0f1d;
}

.cta-card h2 {
    font-size: clamp(1.8rem, 3.75vw, 2.25rem);
    font-weight: 700;
    position: relative;
    z-index: 10;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    max-width: 40rem;
    margin: 0 auto 1.5rem;
    font-weight: 500;
    position: relative;
    z-index: 10;
}

.cta-buttons {
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* ---------------------------------------------------------
   10. PARTNERS SECTION
   --------------------------------------------------------- */
.partners-section {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
}

.partners-heading {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--muted-fg);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 4rem;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.partner-logo {
    width: 7.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

/* ---------------------------------------------------------
   11. FOOTER
   --------------------------------------------------------- */
.site-footer {
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0;
}

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

/* Footer Brand */
.footer-brand p {
    color: var(--muted-fg);
    font-size: 1.313rem;
    line-height: 1.7;
    margin: 1.5rem 0;
    max-width: 20rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-fg);
    transition: var(--transition);
}

.footer-social a:hover {
    background: rgba(0, 230, 119, 0.10);
    border-color: var(--primary);
    color: var(--primary);
}

/* Footer Nav */
.footer-heading {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--fg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.125rem;
}

.footer-nav ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.313rem;
    color: var(--muted-fg);
}

.footer-nav a:hover {
    color: var(--primary);
}

/* Footer Contact */
.footer-contact {
    font-style: normal;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-contact .material-symbols-outlined {
    color: rgba(0, 230, 119, 0.7);
    flex-shrink: 0;
}

/* Footer Bottom bar */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    font-size: 1.125rem;
    color: var(--muted-fg);
    font-weight: 500;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* ---------------------------------------------------------
   12. ABOUT SECTIONS
   --------------------------------------------------------- */

/* Utilitário: ocultar no mobile */
.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: inline;
    }
}

/* ---- About Hero ---- */
.about-hero {
    padding: 3rem 1.5rem;
    background: var(--bg);
    text-align: center;
    margin-top: 6.5rem;
    min-height: calc(100vh - 6.5rem);
    min-height: calc(100dvh - 6.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-hero .badge {
    display: inline-flex;
    margin-bottom: 1.5rem;
}

.about-hero h1 {
    font-size: clamp(4.05rem, 7.5vw, 4.8rem);
    font-weight: 800;
    color: var(--fg);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.about-hero p {
    font-size: 1.35rem;
    color: var(--muted-fg);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- About MVV (Missão, Visão, Valores) ---- */
.about-mvv {
    padding: 6rem 0;
    background: var(--bg);
}

.mvv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .mvv-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mvv-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.mvv-card:hover {
    border-color: var(--border-primary);
    background: rgba(0, 230, 119, 0.04);
}

.mvv-card-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(0, 230, 119, 0.10);
    color: var(--primary);
    flex-shrink: 0;
}

.mvv-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--fg);
}

.mvv-card p {
    font-size: 1.124rem;
    color: var(--muted-fg);
    line-height: 1.7;
}

/* ---- About Expertise ---- */
.about-expertise {
    padding: 6rem 0;
    background: var(--bg);
}

.expertise-header {
    text-align: center;
    margin-bottom: 3rem;
}

.expertise-header h2 {
    font-size: clamp(3.6rem, 6vw, 3.6rem);
    font-weight: 800;
    color: var(--fg);
    margin-bottom: 1rem;
}

.expertise-header p {
    color: var(--muted-fg);
    font-size: 1.2rem;
    max-width: 40rem;
    margin: 0 auto;
    line-height: 1.7;
}

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

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition);
}

.tech-item:hover {
    border-color: var(--border-primary);
    background: rgba(0, 230, 119, 0.05);
}

.tech-item-icon {
    color: var(--primary);
}

.tech-item span:last-child {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--fg);
}

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

.expertise-feature-card {
    position: relative;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    min-height: 12rem;
    display: flex;
    align-items: flex-end;
}

.expertise-feature-card .bg-image {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 230, 119, 0.15), rgba(0, 51, 153, 0.2));
}

.expertise-feature-card h3 {
    position: relative;
    z-index: 10;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg);
    line-height: 1.4;
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expertise-list-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.expertise-list-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(0, 230, 119, 0.10);
    color: var(--primary);
    flex-shrink: 0;
}

.expertise-list-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 0.375rem;
}

.expertise-list-item p {
    font-size: 1.05rem;
    color: var(--muted-fg);
    line-height: 1.6;
}

/* ---------------------------------------------------------
   13. SERVICES PAGE
   --------------------------------------------------------- */

/* Wrapper principal da página de serviços */
/* Equivale a: pt-48 pb-16 max-w-7xl mx-auto px-6 lg:px-20 */
.page-services-main {
    background: var(--bg);
    min-height: 100vh;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.services-container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 1024px) {
    .services-container {
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

/* ---- Services Hero ---- */
/* Equivale a ServicesHero.tsx: mb-12, flex row md, h2 max-w-2xl à esq, NRs à dir */
.svc-hero {
    margin-bottom: 3rem;
}

.svc-hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

@media (min-width: 768px) {
    .svc-hero-inner {
        flex-direction: row;
        align-items: flex-end;
    }
}

.svc-hero-text {
    max-width: 42rem;
}

.svc-hero-text h1 {
    font-size: clamp(3.6rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--fg);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.svc-hero-text p {
    font-size: 1.35rem;
    color: var(--muted-fg);
    line-height: 1.7;
}

.svc-hero-certs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .svc-hero-certs {
        align-items: flex-end;
    }
}

.svc-cert-label {
    font-size: 1.05rem;
    color: var(--muted-fg);
}

.svc-cert-items {
    display: flex;
    gap: 1.25rem;
}

.svc-cert-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--fg);
}

.svc-cert-item img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

/* ---- Services Tabs ---- */
.svc-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.svc-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.375rem;
    border-radius: 9999px;
    font-size: 1.05rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted-fg);
    cursor: pointer;
    transition: var(--transition);
}

.svc-tab-btn:hover,
.svc-tab-btn.active {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}

/* ---- Services Grid ---- */
/* Equivale a: grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-20 */
.svc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 5rem;
}

@media (min-width: 768px) {
    .svc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .svc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.svc-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.svc-card:hover {
    border-color: rgba(0, 230, 119, 0.5);
}

/* Área de imagem — h-48 = 192px FIXO (como no Next.js) */
.svc-card-img {
    position: relative;
    height: 192px;
    overflow: hidden;
    flex-shrink: 0;
}

.svc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 0.7s ease, opacity 0.7s ease;
}

.svc-card:hover .svc-card-img img {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Gradiente: from-background via-background/60 to-transparent */
.svc-card-img-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            var(--bg) 0%,
            rgba(5, 12, 20, 0.60) 50%,
            transparent 100%);
}

/* Ícone + h3 sobrepostos na base da foto */
.svc-card-img-bottom {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
}

.svc-card-img-icon {
    display: flex;
    padding: 0.5rem;
    background: var(--primary);
    border-radius: var(--radius);
    color: #050c14;
    flex-shrink: 0;
}

.svc-card-img-bottom h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

/* Corpo do card — p-6 */
.svc-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.svc-card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

/* Badges — norma técnica e categoria */
.svc-badge-primary,
.svc-badge-muted {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.svc-badge-primary {
    background: rgba(0, 230, 119, 0.10);
    color: var(--fg);
    border: 1px solid rgba(0, 230, 119, 0.20);
}

.svc-badge-muted {
    background: rgba(245, 248, 247, 0.08);
    color: var(--muted-fg);
}

/* Features list — space-y-3 text-sm text-muted */
.svc-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.svc-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 1.05rem;
    color: var(--muted-fg);
    line-height: 1.5;
}

.svc-features li .material-symbols-outlined {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Footer do card */
.svc-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    min-height: 0.5rem;
}

/* ---- Services Specs ---- */
.services-specs {
    padding: 3rem;
    background: rgba(10, 15, 29, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: 4rem;
}

.specs-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 2rem;
}

.specs-title .material-symbols-outlined {
    color: var(--primary);
}

.specs-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.05rem;
}

.specs-table thead tr {
    background: rgba(0, 230, 119, 0.08);
    border-bottom: 1px solid var(--border-primary);
}

.specs-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.specs-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.specs-table tbody tr:last-child {
    border-bottom: none;
}

.specs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.specs-table td {
    padding: 1rem 1.25rem;
    color: var(--muted-fg);
    vertical-align: top;
    line-height: 1.5;
}

.specs-cell-area {
    font-weight: 700;
    color: var(--fg) !important;
}

.specs-cell-norma {
    font-family: monospace;
    font-size: 0.976rem;
    color: var(--primary) !important;
    opacity: 0.85;
}

/* ---- Services CTA ---- */
.services-cta {
    padding: 2rem 0 3rem;
    background: var(--bg);
}


/* ---------------------------------------------------------
   14. QUOTE / ORÇAMENTO PAGE
   --------------------------------------------------------- */

/* Layout da página */
.page-orcamento-main {
    background: var(--bg);
    min-height: 100vh;
    padding-top: 5rem;
    /* compensa navbar fixa */
}

/* Container estreito — centralizado, max 48rem */
.container-narrow {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    padding: 5rem 1.5rem 6rem;
}

/* Cabeçalho da página */
.container-narrow .section-header {
    margin-bottom: 3rem;
}

/* ---- Formulário (fallback nativo + CF7) ---- */

/* Grid de campos: 2 colunas no md+ */
.cf7-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .cf7-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Inputs e selects dentro do .wpcf7 / .cf7-form-grid */
.wpcf7 label,
.cf7-form-grid label {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.25rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select,
.cf7-form-grid input[type="text"],
.cf7-form-grid input[type="email"],
.cf7-form-grid input[type="tel"],
.cf7-form-grid textarea,
.cf7-form-grid select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(245, 248, 247, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--fg);
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus,
.cf7-form-grid input:focus,
.cf7-form-grid textarea:focus,
.cf7-form-grid select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 230, 119, 0.15);
}

.wpcf7 textarea,
.cf7-form-grid textarea {
    resize: vertical;
    min-height: 8rem;
}

.wpcf7 select option,
.cf7-form-grid select option {
    background: var(--bg);
    color: var(--fg);
}

/* Botão de submit */
.wpcf7 input[type="submit"],
.cf7-form-grid input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--bg);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    width: 100%;
}

.wpcf7 input[type="submit"]:hover,
.cf7-form-grid input[type="submit"]:hover {
    box-shadow: var(--shadow-glow);
    background: var(--primary-dark);
}

/* Aviso de campo obrigatório */
.required-mark {
    color: #f87171;
    /* vermelho suave */
    margin-left: 0.125rem;
}

/* Divider "ou fale diretamente" */
.orcamento-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0;
    color: var(--muted-fg);
    font-size: 1.05rem;
}

.orcamento-divider .line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ---- Bloco de WhatsApp ---- */
.whatsapp-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.whatsapp-cta p {
    color: var(--muted-fg);
    font-size: 1.124rem;
    line-height: 1.6;
}

/* Botão do WhatsApp */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: #25d366;
    color: #fff;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #1ebe5c;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    color: #fff;
}

.btn-whatsapp svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Compatibilidade com form-group legado */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(245, 248, 247, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--fg);
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 230, 119, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 8rem;
}

.form-group select option {
    background: var(--bg);
    color: var(--fg);
}

/* ---------------------------------------------------------
   15. RESPONSIVE — md (768px)
   --------------------------------------------------------- */
@media (min-width: 768px) {
    .hero-ctas {
        flex-direction: row;
    }

    .services-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

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

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .tech-stack-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* ---------------------------------------------------------
   16. RESPONSIVE — lg (1024px)
   --------------------------------------------------------- */
@media (min-width: 1024px) {

    /* Navbar */
    .navbar-hamburger {
        display: none;
    }

    .navbar-nav {
        display: flex;
    }

    .navbar-cta {
        display: inline-flex;
    }

    .mobile-menu {
        display: none !important;
    }

    /* Hero: exibe o carousel à esquerda */
    .hero-carousel-wrapper {
        display: block;
    }

    /* Garante largura de 35% e padding direito adequado */
    .hero-inner {
        width: 35%;
        padding-right: 3rem;
        padding-left: 1rem;
    }

    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Differential */

    /* Expertise */
    .tech-stack-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ---------------------------------------------------------
   17. RESPONSIVE — mobile (max 767px)
   --------------------------------------------------------- */
@media (max-width: 767px) {
    .navbar-nav {
        display: none;
    }

    .navbar-cta {
        display: none;
    }

    .navbar-hamburger {
        display: flex;
    }

    .navbar-logo {
        gap: 0.25rem;
        max-width: 70vw;
        overflow: hidden;
    }

    .navbar-logo img {
        width: auto;
        height: auto;
        max-height: 2.5rem;
        max-width: 100%;
        object-fit: contain;
    }

    .navbar-brand-text {
        font-size: 1.1rem;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .hero-content {
        justify-content: center;
        /* centraliza no mobile */
        min-height: 70vh;
    }

    .hero-inner {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        align-items: flex-start;
    }

    .hero-inner h1 {
        font-size: clamp(2.2rem, 10vw, 3.15rem);
        word-wrap: break-word;
        max-width: 100%;
    }

    .hero-subtitle {
        text-align: left;
        max-width: 100%;
        word-wrap: break-word;
    }

    .cta-card {
        padding: 3rem 1.5rem;
    }

    .services-cta-inner {
        padding: 1.5rem;
    }

    .btn-primary {
        white-space: normal;
        max-width: 100%;
        text-align: center;
    }

    .partners-grid {
        gap: 1.5rem;
    }

    /* Centralizar conteúdo da página About no mobile */
    .page-about-main .mvv-card,
    .page-about-main .expertise-feature-card,
    .page-about-main .expertise-feature-card h3,
    .page-about-main .expertise-list-item,
    .page-about-main .expertise-list-item > div {
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    .page-about-main .expertise-list-item {
        flex-direction: column;
    }

    .svc-cert-label {
        color: #ffffff !important;
    }
}