/* =========================================================
   G&C Consultoria — Landing Page
   ========================================================= */

:root {
    --azul-escuro: #1c4095;
    --azul-medio: #1b5da6;
    --azul-claro: #2e8cc7;
    --cinza-bg: #e2eaf3;
    --verde-cta: #0eefc8;
    --verde-cta-hover: #0bd1ae;
    --texto: #1a2540;
    --texto-suave: #5b6b86;
    --branco: #ffffff;
    --shadow-sm: 0 4px 12px rgba(28, 64, 149, 0.08);
    --shadow-md: 0 12px 32px rgba(28, 64, 149, 0.12);
    --shadow-lg: 0 24px 60px rgba(28, 64, 149, 0.18);
    --grad-primary: linear-gradient(135deg, #1c4095 0%, #1b5da6 50%, #2e8cc7 100%);
    --grad-soft: linear-gradient(135deg, #e2eaf3 0%, #ffffff 100%);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--texto);
    background: var(--branco);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   LOADER
   ========================================================= */
.loader {
    position: fixed;
    inset: 0;
    background: var(--grad-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; color: var(--branco); }
.loader-logo-img {
    height: 120px;
    width: auto;
    margin: 0 auto 28px;
    display: block;
    animation: pulse 1.6s ease-in-out infinite;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.3));
}
.loader-bar {
    width: 220px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}
.loader-bar-fill {
    height: 100%;
    width: 0;
    background: var(--verde-cta);
    border-radius: 4px;
    animation: loaderFill 1.4s ease-in-out forwards;
}
@keyframes loaderFill { to { width: 100%; } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.2); } }

/* =========================================================
   SCROLL INDICATOR
   ========================================================= */
.scroll-indicator {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--verde-cta), var(--azul-claro));
    z-index: 9998;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(14, 239, 200, 0.6);
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--branco);
    transition: var(--transition);
}
.logo-img {
    height: 33px;
    width: auto;
    display: block;
    transition: var(--transition);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}
.header.scrolled .logo-img {
    height: 43px;
    filter: none;
}
/* Troca de logo conforme estado do header */
.logo .logo-img-dark { display: none; }
.header.scrolled .logo .logo-img-light { display: none; }
.header.scrolled .logo .logo-img-dark { display: block; }
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: var(--branco);
    transition: var(--transition);
}
.logo-text strong {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.logo-text small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--branco);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-top: 2px;
}
.header.scrolled .logo-text { color: var(--texto); }
.header.scrolled .logo-text small { color: var(--texto); }

.nav ul {
    display: flex;
    gap: 32px;
}
.nav-link {
    color: var(--branco);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}
.header.scrolled .nav-link { color: var(--texto); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: var(--verde-cta);
    transition: var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--verde-cta); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
}
.menu-toggle span {
    height: 2px;
    width: 100%;
    background: var(--branco);
    transition: var(--transition);
    border-radius: 2px;
}
.header.scrolled .menu-toggle span { background: var(--azul-escuro); }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.btn-primary {
    background: var(--verde-cta);
    color: var(--azul-escuro);
}
.btn-header { padding: 10px 22px; font-size: 0.9rem; }
.btn-cta {
    background: var(--verde-cta);
    color: var(--azul-escuro);
    box-shadow: 0 8px 24px rgba(14, 239, 200, 0.4);
}
.btn-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left 0.6s;
}
.btn-cta:hover::before { left: 100%; }
.btn-cta:hover {
    background: var(--verde-cta-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(14, 239, 200, 0.55), 0 0 30px rgba(14, 239, 200, 0.3);
}
.btn-cta-large { padding: 18px 40px; font-size: 1.05rem; }
.btn-ghost {
    background: transparent;
    color: var(--branco);
    border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--verde-cta);
    color: var(--verde-cta);
}
.btn-block { width: 100%; }
.btn i { transition: transform 0.3s; }
.btn:hover i { transform: translateX(4px); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--grad-primary);
    color: var(--branco);
    padding: 140px 0 80px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(14, 239, 200, 0.15), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(46, 140, 199, 0.3), transparent 40%);
    pointer-events: none;
}

.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
    position: absolute;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    backdrop-filter: blur(8px);
    animation: float 8s ease-in-out infinite;
}
.shape-1 { width: 120px; height: 120px; top: 15%; left: 8%; animation-delay: 0s; }
.shape-2 { width: 80px; height: 80px; top: 60%; left: 12%; animation-delay: 1s; border-radius: 18px; }
.shape-3 { width: 160px; height: 160px; top: 20%; right: 10%; animation-delay: 2s; }
.shape-4 { width: 60px; height: 60px; bottom: 15%; right: 20%; animation-delay: 3s; border-radius: 14px; }
.shape-5 { width: 100px; height: 100px; bottom: 25%; left: 45%; animation-delay: 1.5s; }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-25px) rotate(8deg); }
}

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

.badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(14, 239, 200, 0.15);
    border: 1px solid rgba(14, 239, 200, 0.4);
    color: var(--verde-cta);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.text-gradient {
    background: var(--verde-cta);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-highlight { color: var(--verde-cta); }
.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    max-width: 560px;
}
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--verde-cta);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

/* Hero Visual */
.hero-visual { position: relative; height: 480px; }
.visual-card {
    position: absolute;
    background: var(--branco);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--texto);
}
.card-main {
    width: 100%;
    max-width: 420px;
    top: 30px;
    right: 30px;
    overflow: hidden;
    animation: floatCard 6s ease-in-out infinite;
}
.card-header {
    background: linear-gradient(90deg, #f7f9fc, var(--cinza-bg));
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e0e7f0;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: #ffbd44; }
.dot:nth-child(1) { background: #ff6058; }
.dot:nth-child(3) { background: #28ca42; }
.card-title {
    margin-left: 12px;
    font-size: 0.8rem;
    color: var(--texto-suave);
    font-weight: 500;
}
.card-body { padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.bar {
    height: 14px;
    background: var(--cinza-bg);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.bar span {
    display: block;
    height: 100%;
    background: var(--grad-primary);
    border-radius: 8px;
    animation: fillBar 2s ease-out forwards;
    width: 0 !important;
}
.card-main.animate .bar:nth-child(1) span { animation-delay: 0.2s; --w: 85%; }
.card-main.animate .bar:nth-child(2) span { animation-delay: 0.4s; --w: 65%; }
.card-main.animate .bar:nth-child(3) span { animation-delay: 0.6s; --w: 92%; }
.card-main.animate .bar:nth-child(4) span { animation-delay: 0.8s; --w: 48%; }
.card-main.animate .bar:nth-child(5) span { animation-delay: 1.0s; --w: 78%; }
@keyframes fillBar { to { width: var(--w) !important; } }

/* ---------- Gráfico de estratégia ---------- */
.card-chart { padding: 22px 22px 18px; gap: 14px; }
.chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.chart-label {
    display: block;
    font-size: 0.78rem;
    color: var(--texto-suave);
    font-weight: 500;
    letter-spacing: 0.3px;
}
.chart-value {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-top: 2px;
}
.chart-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(14, 239, 200, 0.15);
    color: #0bd1ae;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}
.chart-svg {
    width: 100%;
    height: 170px;
    display: block;
}
.chart-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
}
.card-main.animate .chart-line {
    animation: drawLine 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    animation-delay: 0.4s;
}
.chart-area { opacity: 0; }
.card-main.animate .chart-area {
    animation: fadeArea 1.2s ease forwards;
    animation-delay: 1.6s;
}
.chart-target { transform-origin: 271px 14px; }
.card-main.animate .chart-target {
    animation: pulseTarget 2s ease-in-out infinite;
    animation-delay: 2.2s;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeArea { to { opacity: 1; } }
@keyframes pulseTarget {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}
.chart-foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px solid #eef2f8;
}
.chart-foot span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--texto-suave);
    font-weight: 500;
}
.chart-foot i { color: var(--azul-medio); font-size: 0.85rem; }

.card-float {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    animation: floatCard 5s ease-in-out infinite;
}
.card-float i {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--grad-primary);
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.card-float-2 i { background: linear-gradient(135deg, var(--verde-cta), #0bd1ae); color: var(--azul-escuro); }
.card-float strong { display: block; font-weight: 700; font-size: 0.95rem; }
.card-float span { font-size: 0.78rem; color: var(--texto-suave); }
.card-float-1 { top: 0; left: 0; animation-delay: 0.5s; }
.card-float-2 { bottom: 30px; right: 0; animation-delay: 1.5s; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 14px;
    z-index: 5;
}
.scroll-down span {
    position: absolute;
    top: 8px; left: 50%;
    width: 4px; height: 8px;
    background: var(--verde-cta);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s ease-in-out infinite;
}
@keyframes scrollMouse {
    0% { opacity: 0; transform: translate(-50%, 0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 16px); }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 110px 0; position: relative; }
.section-about { background: var(--grad-soft); }
.section-services { background: var(--branco); }
.section-features {
    background: var(--cinza-bg);
    position: relative;
    overflow: hidden;
}
.section-features::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: var(--azul-claro);
    opacity: 0.08;
    border-radius: 80px;
    transform: rotate(20deg);
}
.section-portfolio { background: var(--branco); }
.section-contact { background: var(--grad-soft); }

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 64px;
}
.eyebrow {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(28, 64, 149, 0.08);
    color: var(--azul-escuro);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}
.section-head h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
.section-head p {
    font-size: 1.05rem;
    color: var(--texto-suave);
}

/* =========================================================
   ABOUT — MVV
   ========================================================= */
.mvv {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.mvv-card {
    background: var(--branco);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(28, 64, 149, 0.05);
    position: relative;
    overflow: hidden;
}
.mvv-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s;
}
.mvv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.mvv-card:hover::before { transform: scaleX(1); }
.mvv-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: var(--grad-primary);
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}
.mvv-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.mvv-card p { color: var(--texto-suave); }

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    background: var(--branco);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(28, 64, 149, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 0; height: 0;
    background: var(--grad-primary);
    border-radius: 50%;
    transition: all 0.6s;
    opacity: 0;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::after {
    width: 200%; height: 200%;
    bottom: -50%; right: -50%;
    opacity: 0.04;
}
.service-icon {
    width: 70px; height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(28, 64, 149, 0.1), rgba(46, 140, 199, 0.15));
    color: var(--azul-medio);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 24px;
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: var(--grad-primary);
    color: var(--branco);
    transform: rotate(-6deg) scale(1.05);
}
.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--texto-suave); margin-bottom: 22px; font-size: 0.95rem; }
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--azul-medio);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}
.service-link i { transition: transform 0.3s; }
.service-link:hover { color: var(--azul-escuro); }
.service-link:hover i { transform: translateX(6px); }

/* =========================================================
   FEATURES
   ========================================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 2;
}
.feature {
    background: var(--branco);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.feature:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--grad-primary);
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
    transition: var(--transition);
}
.feature:hover .feature-icon {
    transform: rotate(360deg);
    background: linear-gradient(135deg, var(--verde-cta), #0bd1ae);
    color: var(--azul-escuro);
}
.feature h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.feature p { color: var(--texto-suave); font-size: 0.92rem; }

/* =========================================================
   PORTFOLIO
   ========================================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.portfolio-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}
.portfolio-img {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    font-size: 4.5rem;
    transition: transform 0.6s;
}
.portfolio-1 { background: linear-gradient(135deg, #1c4095, #2e8cc7); }
.portfolio-2 { background: linear-gradient(135deg, #1b5da6, #0eefc8); }
.portfolio-3 { background: linear-gradient(135deg, #2e8cc7, #1c4095); }
.portfolio-4 { background: linear-gradient(135deg, #1c4095, #1b5da6); }
.portfolio-5 { background: linear-gradient(135deg, #1b5da6, #2e8cc7); }
.portfolio-6 { background: linear-gradient(135deg, #2e8cc7, #0eefc8); }
.portfolio-item:hover .portfolio-img { transform: scale(1.1); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 64, 149, 0.95) 0%, rgba(28, 64, 149, 0.4) 60%, transparent 100%);
    color: var(--branco);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay .tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--verde-cta);
    color: var(--azul-escuro);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    align-self: flex-start;
}
.portfolio-overlay h3 { font-size: 1.25rem; margin-bottom: 8px; }
.portfolio-overlay p { font-size: 0.9rem; color: rgba(255,255,255,0.9); }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
    background: var(--azul-escuro);
    background-image: var(--grad-primary);
    color: var(--branco);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.cta-shapes { position: absolute; inset: 0; pointer-events: none; }
.cta-shapes .shape-1 { width: 200px; height: 200px; top: -50px; left: -50px; }
.cta-shapes .shape-2 { width: 140px; height: 140px; bottom: -30px; right: 10%; }
.cta-shapes .shape-3 { width: 100px; height: 100px; top: 30%; right: -30px; }
.cta-inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.cta-inner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
}
.cta-inner p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start;
}
.contact-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}
.contact-info > p {
    color: var(--texto-suave);
    margin-bottom: 36px;
}
.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-list li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--grad-primary);
    color: var(--branco);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    text-align: center;
}
.contact-icon i {
    display: block;
    line-height: 1;
}
.contact-list strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}
.contact-list a, .contact-list span {
    font-size: 0.95rem;
    transition: color 0.3s;
}
.contact-list a:hover { color: var(--azul-medio); }

.contact-form {
    background: var(--branco);
    padding: 44px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 22px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--texto);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #e0e7f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--texto);
    background: #f7f9fc;
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--azul-claro);
    background: var(--branco);
    box-shadow: 0 0 0 4px rgba(46, 140, 199, 0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-feedback {
    margin-top: 18px;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 500;
    min-height: 22px;
}
.form-feedback.success { color: #0bd1ae; }
.form-feedback.error { color: #e74c5c; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: #0e1f47;
    color: rgba(255,255,255,0.75);
    padding: 80px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 60px;
}
.logo-footer { color: var(--branco); margin-bottom: 18px; }
.logo-img-footer { height: 72px; opacity: 0.95; }
.logo-footer .logo-text { color: var(--branco); }
.logo-footer .logo-text strong { font-size: 1.15rem; }
.logo-footer .logo-text small { color: var(--branco); }
.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 320px;
}
.social { display: flex; gap: 12px; }
.social a {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.social a:hover {
    background: var(--verde-cta);
    color: var(--azul-escuro);
    transform: translateY(-3px);
}
.footer-col h4 {
    color: var(--branco);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}
.footer-col ul li {
    margin-bottom: 12px;
    font-size: 0.92rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    word-break: break-word;
}
.footer-col ul li i {
    color: var(--verde-cta);
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 4px;
}
.footer-col ul li a { transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--verde-cta); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--grad-primary);
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--verde-cta); color: var(--azul-escuro); transform: translateY(-4px); }

/* =========================================================
   ANIMATIONS — FADE UP
   ========================================================= */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 60px; }
    .hero-visual { height: 420px; max-width: 480px; margin: 0 auto; width: 100%; }
    .services-grid,
    .features-grid,
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .mvv { grid-template-columns: 1fr; max-width: 580px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

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

    /* Impede overflow horizontal em mobile */
    .hero,
    .section,
    .cta-banner,
    .footer { overflow-x: clip; max-width: 100%; }
    .hero-shapes,
    .cta-shapes { overflow: hidden; }
    .shape { max-width: 50vw; }
    img { max-width: 100%; height: auto; }
    .nav {
        position: fixed;
        top: 0; right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--branco);
        padding: 100px 32px 40px;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s ease;
        z-index: 999;
    }
    .nav.open { right: 0; }
    .nav ul { flex-direction: column; gap: 20px; }
    .nav-link { color: var(--texto); font-size: 1.05rem; }
    .menu-toggle { display: flex; z-index: 1001; }
    .btn-header { display: none; }

    .hero { padding: 130px 0 70px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .stat-number { font-size: 1.8rem; }
    .hero-visual { display: none; }

    .services-grid,
    .features-grid,
    .portfolio-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
    .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .section-head h2 { font-size: 1.7rem; }
    .mvv-card, .service-card, .feature { padding: 28px 22px; }
}
