:root {
    --bg-color: #FFFFFF;
    --bg-alt: #F5F6F9;
    --surface: #FFFFFF;
    --surface-alt: #F1F2F6;
    --text-primary: #12172B;
    --text-secondary: #5B6478;
    --accent: #F37021;
    --accent-hover: #ff8a4c;
    --accent-2: #1F2A52;
    --border-color: #E5E7EE;
    --shadow-sm: 0 2px 10px rgba(18, 23, 43, 0.06);
    --shadow-md: 0 14px 40px rgba(18, 23, 43, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--accent);
    -webkit-text-fill-color: transparent;
}

/* Layout Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: left;
    margin-bottom: 60px;
    max-width: 700px;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Card surface utility (formerly glassmorphism, now a light card) */
.glass {
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    background: var(--surface);
    border-color: rgba(243, 112, 33, 0.3);
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(243, 112, 33, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 112, 33, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: var(--surface-alt);
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 200;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* Header: mesmo padrão do site (logo em imagem, menu em pílula, CTA laranja) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: #ffffff;
    transition: box-shadow 0.3s var(--ease-premium), background 0.3s var(--ease-premium);
}

/* Largura do container igual ao do site: cresce por faixa de tela, até 1536px. */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    height: 80px;
    max-width: none;
    padding: 0 16px;
}
@media (min-width: 640px) { .header .container { max-width: 640px; } }
@media (min-width: 768px) { .header .container { max-width: 768px; padding: 0 24px; } }
@media (min-width: 1024px) { .header .container { max-width: 1024px; } }
@media (min-width: 1280px) { .header .container { max-width: 1280px; } }
@media (min-width: 1536px) { .header .container { max-width: 1536px; } }

.logo {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 8px 0;
}

.logo img {
    display: block;
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 6px;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.6);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.5;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a.nav-cta {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-links a.nav-cta:hover {
    background: #e06810;
    color: #ffffff;
}

@media (min-width: 640px) { .logo img { height: 40px; } }
@media (min-width: 768px) {
    .header .container { height: 112px; }
    .logo img { height: 48px; }
}
@media (min-width: 1024px) { .logo img { height: 56px; } }
@media (min-width: 1280px) { .logo img { height: 64px; } }

/* Mobile nav: hamburger + slide-in drawer */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 23, 43, 0.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-premium);
    z-index: 98;
}

.nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 120px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--bg-alt);
}

.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cpath d='M0 70 Q35 25 70 70 T140 70' stroke='%23DDE1EA' stroke-width='2' fill='none'/%3E%3Cpath d='M0 115 Q35 70 70 115 T140 115' stroke='%23DDE1EA' stroke-width='2' fill='none'/%3E%3Cpath d='M0 25 Q35 -20 70 25 T140 25' stroke='%23DDE1EA' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-size: 140px 140px;
    z-index: -1;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}

.glow-effect {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    z-index: -2;
    opacity: 0.5;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: rgba(243, 112, 33, 0.25);
    top: -100px;
    right: -100px;
    animation: drift1 14s ease-in-out infinite;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(31, 42, 82, 0.12);
    bottom: -200px;
    left: -200px;
    animation: drift2 18s ease-in-out infinite;
}

.glow-3 {
    width: 320px;
    height: 320px;
    background: rgba(243, 112, 33, 0.14);
    top: 38%;
    left: 42%;
    animation: drift1 22s ease-in-out infinite reverse;
}

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-24px, 26px); }
}

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(26px, -22px); }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-content {
    max-width: 800px;
}

@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(243, 112, 33, 0.1);
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(243, 112, 33, 0.2);
    opacity: 0;
    transform: translateY(16px);
    animation: heroIn 0.6s var(--ease-premium) 0.05s forwards;
}

.hero .headline {
    font-size: 4rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.headline-line {
    display: block;
    opacity: 0;
    transform: translateY(24px);
    animation: heroIn 0.7s var(--ease-premium) forwards;
}

.headline-line:first-child { animation-delay: 0.16s; }
.headline-line.highlight { animation-delay: 0.3s; }

.hero .headline-line.highlight {
    background-image: linear-gradient(100deg, var(--accent) 25%, #ffb37a 42%, var(--accent) 58%, var(--accent-2) 100%);
    background-size: 220% 100%;
    animation: heroIn 0.7s var(--ease-premium) 0.3s forwards, heroShine 4.5s ease-in-out 2.6s infinite;
}

@keyframes heroShine {
    0%, 15%, 100% { background-position: 180% 0; }
    55% { background-position: -40% 0; }
}

.hero .sub-headline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 650px;
    opacity: 0;
    transform: translateY(16px);
    animation: heroIn 0.6s var(--ease-premium) 0.44s forwards;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(16px);
    animation: heroIn 0.6s var(--ease-premium) 0.56s forwards;
}

.hero-link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.hero-link-secondary:hover {
    border-color: var(--text-primary);
}

.hero-link-secondary i {
    transition: transform 0.3s ease;
}

.hero-link-secondary:hover i {
    transform: translateX(4px);
}

.hero-scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    opacity: 0;
    animation: fadeInOnly 0.6s ease 1.7s forwards;
    transition: var(--transition);
    z-index: 2;
}

.hero-scroll-cue:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-scroll-bounce {
    display: block;
    animation: scrollCueBounce 1.8s ease-in-out infinite;
}

@keyframes fadeInOnly {
    to { opacity: 1; }
}

@keyframes scrollCueBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

@media (max-width: 992px) {
    .hero-scroll-cue { display: none; }
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(12px);
    animation: heroIn 0.5s var(--ease-premium) forwards;
}

.hero-tags .tag-pill:nth-child(1) { animation-delay: 0.66s; }
.hero-tags .tag-pill:nth-child(2) { animation-delay: 0.74s; }
.hero-tags .tag-pill:nth-child(3) { animation-delay: 0.82s; }
.hero-tags .tag-pill:nth-child(4) { animation-delay: 0.9s; }

.tag-pill i {
    color: var(--accent);
    font-size: 1rem;
}

/* Hero visual widget: dashboard mockup + satellite chips, parallax on mousemove (desktop) */
.hero-visual {
    position: relative;
    height: 460px;
}

.hero-halo {
    position: absolute;
    inset: 6% 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 112, 33, 0.22), transparent 70%);
    filter: blur(50px);
    z-index: 0;
    opacity: 0;
    animation: fadeInOnly 1s ease 0.7s forwards, haloPulse 6s ease-in-out 1.7s infinite;
}

@keyframes haloPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

/* Dashboard card: main visual anchor */
.hero-dashboard {
    position: absolute;
    top: 9%;
    right: 0;
    width: 290px;
    z-index: 2;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 30px 60px -20px rgba(18, 23, 43, 0.25), var(--shadow-md);
    opacity: 0;
    transform: translateY(24px) rotate(-2deg) scale(0.96);
    animation: heroDashIn 0.8s var(--ease-premium) 1s forwards, heroFloatDash 7s ease-in-out 1.8s infinite;
    will-change: transform;
}

@keyframes heroDashIn {
    to { opacity: 1; transform: translateY(0) rotate(-2deg) scale(1); }
}

.hd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hd-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.hd-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: dotPing 2s ease-out infinite;
}

@keyframes dotPing {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hd-header > i {
    color: var(--text-secondary);
    opacity: 0.5;
}

.hd-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.hd-chart {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 84px;
    margin-bottom: 20px;
}

.hd-chart span {
    flex: 1;
    height: 0;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, var(--accent-hover), var(--accent));
    animation: barGrow 0.8s var(--ease-premium) forwards;
}

@keyframes barGrow {
    from { height: 0; }
    to { height: var(--h); }
}

.hd-chart span:nth-child(1) { animation-delay: 1.35s; }
.hd-chart span:nth-child(2) { animation-delay: 1.43s; }
.hd-chart span:nth-child(3) { animation-delay: 1.51s; }
.hd-chart span:nth-child(4) { animation-delay: 1.59s; }
.hd-chart span:nth-child(5) { animation-delay: 1.67s; }
.hd-chart span:nth-child(6) { animation-delay: 1.75s; }
.hd-chart span:nth-child(7) { animation-delay: 1.83s; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }

.hd-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.hd-stat i {
    font-size: 1.3rem;
    color: var(--accent);
}

.hd-stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.hd-stat-label {
    font-size: 0.76rem;
    color: var(--text-secondary);
}

/* Satellite chips: overlap the dashboard corners for a layered, collage feel */
.hero-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    will-change: transform;
}

.hero-chip i {
    color: var(--accent);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.hero-chip--partner {
    top: -2%;
    left: -4%;
    width: 186px;
    z-index: 3;
    animation: heroChipInA 0.7s var(--ease-premium) 1.15s forwards, heroFloatA 5.5s ease-in-out 1.85s infinite;
}

.hero-chip--team {
    bottom: 4%;
    left: 0%;
    width: 200px;
    z-index: 1;
    animation: heroChipInB 0.7s var(--ease-premium) 1.35s forwards, heroFloatB 6.5s ease-in-out 2.05s infinite;
}

@keyframes heroChipInA {
    from { opacity: 0; transform: translateY(16px) rotate(-6deg); }
    to { opacity: 1; transform: translateY(0) rotate(-6deg); }
}

/* Flutuação contínua dos cards do hero. Começa quando a entrada termina.
   As variáveis --px/--py recebem o deslocamento do parallax do mouse (script.js). */
@keyframes heroFloatDash {
    0%, 100% { transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(-2deg) scale(1); }
    50% { transform: translate3d(var(--px, 0px), calc(var(--py, 0px) - 10px), 0) rotate(-1.2deg) scale(1); }
}

@keyframes heroFloatA {
    0%, 100% { transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(-6deg); }
    50% { transform: translate3d(var(--px, 0px), calc(var(--py, 0px) - 12px), 0) rotate(-4.5deg); }
}

@keyframes heroFloatB {
    0%, 100% { transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(4deg); }
    50% { transform: translate3d(var(--px, 0px), calc(var(--py, 0px) - 9px), 0) rotate(5.5deg); }
}

@keyframes heroChipInB {
    from { opacity: 0; transform: translateY(16px) rotate(4deg); }
    to { opacity: 1; transform: translateY(0) rotate(4deg); }
}

@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
}

/* Quem Somos / O que fazemos: filter pills */
.services-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.filter-pill {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.service-card.is-hidden {
    display: none;
}

/* Quem Somos / O que fazemos: Services Bento Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 24px;
}

.service-card {
    grid-column: span 2;
    position: relative;
    background: radial-gradient(140% 140% at 10% 0%, var(--surface) 0%, var(--bg-alt) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(243, 112, 33, 0.3);
    box-shadow: var(--shadow-md);
}

.service-card--wide {
    grid-column: span 4;
}

.service-card--tall {
    grid-row: span 2;
    justify-content: flex-end;
}

/* Explicit bento placement, mirroring the reference's rhythm: two tall feature
   tiles anchoring the left column, wide banners, small tiles filling in between */
.bento-pos-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento-pos-2 { grid-column: 3 / 7; grid-row: 1 / 2; }
.bento-pos-3 { grid-column: 3 / 5; grid-row: 2 / 3; }
.bento-pos-4 { grid-column: 5 / 7; grid-row: 2 / 3; }
.bento-pos-5 { grid-column: 1 / 3; grid-row: 3 / 5; }
.bento-pos-6 { grid-column: 3 / 7; grid-row: 3 / 4; }
.bento-pos-7 { grid-column: 3 / 5; grid-row: 4 / 5; }
.bento-pos-8 { grid-column: 5 / 7; grid-row: 4 / 5; }
.bento-pos-9 { grid-column: 1 / 7; grid-row: 5 / 6; }

/* Filtro ativo: os cards visíveis são reposicionados pelo script em mosaico
   (sem buracos). Os slots ajustam só o alinhamento interno de cada formato. */
.services-grid.is-filtered .service-card {
    justify-content: flex-start;
}
.services-grid.is-filtered .slot-tall {
    justify-content: flex-end;
}
@keyframes mosaic-in {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to { opacity: 1; transform: none; }
}
.services-grid.is-swapping .service-card:not(.is-hidden) {
    animation: mosaic-in 0.45s var(--ease-premium) both;
}
.services-grid.is-swapping .service-card:nth-child(2) { animation-delay: 40ms; }
.services-grid.is-swapping .service-card:nth-child(3) { animation-delay: 80ms; }
.services-grid.is-swapping .service-card:nth-child(4) { animation-delay: 120ms; }
.services-grid.is-swapping .service-card:nth-child(5) { animation-delay: 160ms; }
.services-grid.is-swapping .service-card:nth-child(6) { animation-delay: 200ms; }
.services-grid.is-swapping .service-card:nth-child(7) { animation-delay: 240ms; }
.services-grid.is-swapping .service-card:nth-child(8) { animation-delay: 280ms; }
.services-grid.is-swapping .service-card:nth-child(9) { animation-delay: 320ms; }

/* Card background decoration: soft corner glow + faint wave pattern, same tokens/technique as the hero section */
.service-card::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(243, 112, 33, 0.08);
    filter: blur(70px);
    opacity: 0.85;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.service-card:hover::before {
    opacity: 1;
}
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cpath d='M0 70 Q35 25 70 70 T140 70' stroke='%23DDE1EA' stroke-width='2' fill='none'/%3E%3Cpath d='M0 115 Q35 70 70 115 T140 115' stroke='%23DDE1EA' stroke-width='2' fill='none'/%3E%3Cpath d='M0 25 Q35 -20 70 25 T140 25' stroke='%23DDE1EA' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-size: 130px 130px;
    opacity: 0.4;
    mask-image: radial-gradient(ellipse at top right, black 0%, transparent 68%);
    -webkit-mask-image: radial-gradient(ellipse at top right, black 0%, transparent 68%);
    pointer-events: none;
}

.service-card--wide::before {
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    background: rgba(243, 112, 33, 0.11);
    filter: blur(80px);
}
.service-card--wide::after {
    opacity: 0.5;
}

.service-card--tall::before {
    top: -90px;
    right: -90px;
    width: 260px;
    height: 260px;
    background: rgba(243, 112, 33, 0.14);
    filter: blur(90px);
}
.service-card--tall::after {
    opacity: 0.6;
}

.service-card-index {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    opacity: 0.45;
    letter-spacing: 1px;
    transition: var(--transition);
    z-index: 1;
}
.service-card:hover .service-card-index {
    opacity: 0.9;
    color: var(--accent);
}
.service-card--negative .service-card-index {
    color: rgba(255, 255, 255, 0.75);
}

.service-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(243, 112, 33, 0.16), rgba(243, 112, 33, 0.06));
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 20px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}
.service-card:hover .service-card-icon {
    background: var(--accent);
    color: #fff;
    transform: rotate(8deg) scale(1.04);
}
.service-card--tall .service-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    font-size: 2.25rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.service-card--wide h3,
.service-card--tall h3 {
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}
.service-card-link i {
    font-size: 1.05rem;
    transition: transform 0.3s ease;
}
.service-card:hover .service-card-link i {
    transform: translate(3px, -3px);
}

/* Negative tile: solid accent fill, inverted content, for a premium bento highlight */
.service-card--negative {
    background: linear-gradient(145deg, var(--accent-hover) 0%, var(--accent) 60%, var(--accent) 100%);
    border-color: transparent;
}
.service-card--negative:hover {
    border-color: transparent;
    box-shadow: 0 20px 44px -14px rgba(243, 112, 33, 0.5);
}
.service-card--negative h3 {
    color: #fff;
}
.service-card--negative p {
    color: rgba(255, 255, 255, 0.85);
}
.service-card--negative .service-card-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.service-card--negative:hover .service-card-icon {
    background: #fff;
    color: var(--accent);
}
.service-card--negative .service-card-link {
    color: #fff;
}
.service-card--negative::before {
    background: rgba(255, 255, 255, 0.2);
    filter: blur(90px);
}
.service-card--negative::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cpath d='M0 70 Q35 25 70 70 T140 70' stroke='%23FFFFFF' stroke-width='2' fill='none'/%3E%3Cpath d='M0 115 Q35 70 70 115 T140 115' stroke='%23FFFFFF' stroke-width='2' fill='none'/%3E%3Cpath d='M0 25 Q35 -20 70 25 T140 25' stroke='%23FFFFFF' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    opacity: 0.15;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-flow: dense;
    }
    .service-card,
    .bento-pos-1, .bento-pos-3, .bento-pos-4,
    .bento-pos-5, .bento-pos-7, .bento-pos-8 {
        grid-column: span 2;
        grid-row: auto;
    }
    .service-card--wide,
    .bento-pos-2, .bento-pos-6, .bento-pos-9 {
        grid-column: span 4;
        grid-row: auto;
    }
    .service-card--tall {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card,
    .service-card--wide,
    .service-card--tall,
    [class*="bento-pos-"] {
        grid-column: span 1;
        grid-row: auto;
    }
}

/* Scroll Reveal */
.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-premium), transform 0.6s var(--ease-premium);
    transition-delay: var(--delay, 0ms);
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .services-grid.is-swapping .service-card:not(.is-hidden) { animation: none; }
    .service-card, .service-card *, .reveal-item,
    .glow-effect, .headline-line, .badge, .sub-headline, .hero-actions, .tag-pill,
    .hero-dashboard, .hero-chip, .hero-halo, .hd-chart span, .hd-dot,
    .hero-scroll-cue, .hero-scroll-bounce,
    .perfil-image-display img, .cursos-marquee-track,
    .form-step, .back-to-top, .accordion-item, .accordion-content p {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
    /* Perfil: troca instantânea, mas a seta continua virando para indicar o card aberto */
    .perfil-rail-marker, .accordion-item::before, .accordion-content,
    .accordion-toggle, .accordion-toggle i, .accordion-item h4 {
        transition: none !important;
        animation: none !important;
    }
    .reveal-item, .badge, .headline-line, .sub-headline, .hero-actions, .tag-pill,
    .hero-dashboard, .hero-chip, .hero-halo, .hd-chart span, .hero-scroll-cue {
        opacity: 1;
    }
    .hd-chart span { height: var(--h) !important; }
}

/* Propósito */
.proposito {
    background-color: var(--bg-alt);
}

.proposito .proposito-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.proposito-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.proposito-badge i {
    color: var(--accent-2);
}

.proposito-text h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.proposito-text p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 20px;
}

.proposito-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 48px;
}

.btn.pill {
    border-radius: 100px;
    padding: 12px 24px;
}

.proposito-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.identity-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.identity-chip i {
    color: var(--accent);
    font-size: 1.1rem;
}

.proposito-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.proposito-img {
    width: 100%;
    height: 112%;
    max-height: 660px;
    margin: -6% 0;
    object-fit: cover;
    will-change: transform;
}

/* Perfil Stalse (Nova Diagramação) */
.perfil-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 40px;
}
.perfil-header-flex .section-header {
    margin-bottom: 0;
    flex: 1;
}
.perfil-action {
    flex-shrink: 0;
}

.perfil-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.perfil-accordion-wrap {
    display: flex;
    gap: 20px;
}

.perfil-rail {
    position: relative;
    width: 4px;
    background: var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
}

/* Posição e altura vêm do script, quadro a quadro, acompanhando o card ativo enquanto ele abre. */
.perfil-rail-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    background: var(--accent);
    border-radius: 4px;
    will-change: transform, height;
}

.perfil-accordion {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.accordion-item {
    position: relative;
    isolation: isolate;
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
    cursor: pointer;
    transition: padding 0.55s var(--ease-premium), margin 0.55s var(--ease-premium), border-color 0.3s ease;
}

/* Fundo do card aberto: entra com fade e leve escala, na mesma curva da altura. */
.accordion-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 16px;
    background: var(--accent-2);
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.45s var(--ease-premium), transform 0.55s var(--ease-premium);
}

.accordion-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 8px;
}
.accordion-item:first-child {
    border-top: 1px solid var(--border-color);
}

.accordion-item.active {
    padding: 32px;
    margin: 12px 0;
    border-top-color: transparent;
    border-bottom-color: transparent;
}

.accordion-item.active::before {
    opacity: 1;
    transform: scale(1);
}
.accordion-item.active + .accordion-item {
    border-top: none;
}

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

.accordion-item h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
    transition: color 0.35s ease, transform 0.45s var(--ease-premium);
}

@media (hover: hover) {
    .accordion-item:not(.active):hover h4 {
        transform: translateX(4px);
    }
}

.accordion-item.active h4 {
    color: #fff;
}

.accordion-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.3s var(--ease-premium);
    color: var(--text-primary);
    font-size: 1.25rem;
}

/* Uma seta só, que vira ao abrir */
.accordion-toggle i {
    display: block;
    transition: transform 0.55s var(--ease-premium);
}

.accordion-item.active .accordion-toggle i {
    transform: rotate(180deg);
}

.accordion-item:active .accordion-toggle {
    transform: scale(0.92);
}

.accordion-item:hover .accordion-toggle {
    border-color: var(--accent);
    color: var(--accent);
}

.accordion-item.active .accordion-toggle {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Abre e fecha pela altura real do texto (0fr a 1fr), sem salto. */
.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    transition: grid-template-rows 0.55s var(--ease-premium), margin-top 0.55s var(--ease-premium);
}

.accordion-content p {
    min-height: 0;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.45s var(--ease-premium), color 0.3s ease, visibility 0s linear 0.55s;
}

.accordion-item.active .accordion-content {
    grid-template-rows: 1fr;
    margin-top: 16px;
}

.accordion-item.active .accordion-content p {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.4s ease 0.12s, transform 0.55s var(--ease-premium) 0.12s, color 0.3s ease, visibility 0s;
}

.perfil-image-display {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 24px;
    overflow: hidden;
}

/* Duas camadas: a nova imagem entra por cima da atual (crossfade), sem piscar em branco. */
.perfil-image-display img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.perfil-image-display img.is-current {
    opacity: 1;
}

/* Entra levemente ampliada e assenta; depois segue o Ken Burns lento. */
.perfil-image-display img.kb-active {
    animation: perfilImgIn 1.2s var(--ease-premium) both, kenburns 8s ease-in-out 1.2s forwards;
}

@keyframes perfilImgIn {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

@keyframes kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

/* Entrada da seção: cards em sequência e a imagem logo depois. Só com script (classe will-reveal). */
.perfil-layout.will-reveal .accordion-item,
.perfil-layout.will-reveal .perfil-image-display {
    opacity: 0;
}

.perfil-layout.is-in .accordion-item {
    animation: perfilItemIn 0.7s var(--ease-premium) both;
}
.perfil-layout.is-in .accordion-item:nth-child(2) { animation-delay: 80ms; }
.perfil-layout.is-in .accordion-item:nth-child(3) { animation-delay: 160ms; }
.perfil-layout.is-in .accordion-item:nth-child(4) { animation-delay: 240ms; }

.perfil-layout.is-in .perfil-image-display {
    animation: perfilImageIn 0.9s var(--ease-premium) 0.12s both;
}

@keyframes perfilItemIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@keyframes perfilImageIn {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.perfil-image-overlay {
    position: absolute;
    top: 24px;
    left: 24px;
}

.perfil-tag {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 992px) {
    .perfil-layout {
        grid-template-columns: 1fr;
    }
    .perfil-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}

/* Cursos */
.cursos-marquee {
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    margin-bottom: 48px;
}

.cursos-marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: cursosScroll 22s linear infinite;
}

.cursos-marquee:hover .cursos-marquee-track {
    animation-play-state: paused;
}

.cursos-marquee-track span {
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    font-size: 0.95rem;
}

.cursos-marquee-track span b {
    color: var(--accent);
    font-weight: 700;
}

@keyframes cursosScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.cursos-group {
    margin-bottom: 44px;
}

.cursos-group:last-child {
    margin-bottom: 0;
}

.cursos-group-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: start;
    gap: 24px;
}

.cards-grid--featured {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cards-grid--secondary {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: stretch;
}

.card {
    padding: 32px;
}

.card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(243, 112, 33, 0.1);
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 20px;
    transition: var(--transition);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Photo card: course card with a portrait image and a dark readability overlay */
.card--photo {
    position: relative;
    padding: 0;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    transition: var(--transition);
}
.card--photo:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}
.card--photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.card--photo:hover img {
    transform: scale(1.06);
}
.card--photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 23, 43, 0.05) 0%, rgba(18, 23, 43, 0.55) 55%, rgba(18, 23, 43, 0.92) 100%);
}
.card--photo-content {
    position: relative;
    z-index: 1;
    padding: 32px;
}
.card--photo i {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}
.card--photo h3 {
    color: #fff;
}
.card--photo p {
    color: rgba(255, 255, 255, 0.8);
}

.cursos {
    background-color: var(--bg-alt);
}

.cursos-note {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 40px;
}

/* Impacto */
.impacto-box {
    padding: 60px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent);
}

.impacto-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.impacto-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 16px;
}

.stats {
    display: flex;
    justify-content: center;
}

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

.stat-item .number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item .label {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.impacto-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    text-align: left;
}

.impacto-stat {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
}

.impacto-stat-number {
    font-size: 2.5rem;
    text-align: left;
    display: block;
    font-variant-numeric: tabular-nums;
}

.impacto-stat-label {
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .impacto-stats-grid { grid-template-columns: 1fr; }
}

/* Form */
.inscricao {
    background-color: var(--bg-alt);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.form-header p {
    color: var(--text-secondary);
}

/* Form wizard / stepper */
.form-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 44px;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stepper-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--surface);
    transition: var(--transition);
}

.stepper-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition);
}

.stepper-step.active .stepper-circle,
.stepper-step.done .stepper-circle {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.stepper-step.active .stepper-label,
.stepper-step.done .stepper-label {
    color: var(--text-primary);
}

.stepper-line {
    width: 60px;
    height: 2px;
    background: var(--border-color);
    margin: 19px 8px 0;
    flex-shrink: 0;
    transition: var(--transition);
}

.stepper-line.done {
    background: var(--accent);
}

.form-step { display: none; }
.form-step.active { display: block; }

@keyframes formStepInRight {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes formStepInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-step.active.from-right { animation: formStepInRight 0.45s var(--ease-premium); }
.form-step.active.from-left { animation: formStepInLeft 0.45s var(--ease-premium); }

.form-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

.form-step-actions .btn {
    flex: 1;
}

@media (max-width: 480px) {
    .stepper-label { display: none; }
    .stepper-line { width: 32px; }
}

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

.form-section {
    border: none;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-top: 24px;
    margin-bottom: 8px;
}

.form-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.form-section.no-border {
    border-top: none;
}

.form-section legend {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding: 0;
    width: 100%;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

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

.input-icon-wrapper > i:first-child {
    position: absolute;
    left: 16px;
    font-size: 1.25rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition);
}

.input-icon-wrapper.textarea-wrapper > i:first-child {
    top: 16px;
    align-items: flex-start;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

textarea {
    padding-top: 16px;
    resize: vertical;
    min-height: 120px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--surface);
    box-shadow: 0 0 0 4px rgba(243, 112, 33, 0.1);
}

.input-icon-wrapper:focus-within > i:first-child {
    color: var(--accent);
}

/* Custom Select */
.select-wrapper select {
    appearance: none;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
}

/* File input */
.file-input {
    display: none;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-alt);
    margin-bottom: 0;
}

.file-upload-label:hover {
    border-color: var(--accent);
    background: rgba(243, 112, 33, 0.03);
}

.upload-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(243, 112, 33, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.upload-icon-box i {
    font-size: 1.5rem;
    color: var(--accent);
}

.upload-text {
    display: flex;
    flex-direction: column;
}

.upload-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.upload-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 4px;
}

.file-name {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.125rem;
    margin-top: 16px;
    border-radius: 12px;
}

.submit-btn i {
    transition: transform 0.3s ease;
}
.submit-btn:hover i {
    transform: translateX(4px) translateY(-4px);
}

.form-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #15803d;
}

/* Footer: mesmo padrão do site (chamada, marca, contato, links, serviços, legal) */
/* Rodapé igual ao do site: usa o laranja da marca do site (#fa7516) só aqui dentro. */
.footer {
    --accent: #fa7516;
    position: relative;
    overflow: hidden;
    background: #202226;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-glow {
    position: absolute;
    top: -160px;
    right: -10%;
    width: 620px;
    height: 420px;
    border-radius: 50%;
    background: rgba(250, 117, 22, 0.15);
    filter: blur(140px);
    pointer-events: none;
}
.footer .container { position: relative; }

.footer-cta {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 48px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-cta-text { max-width: 640px; }
.footer-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}
.footer-cta h2 {
    margin: 12px 0 0;
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #fff;
}
.footer-cta h2 span { color: var(--accent); }
.footer-cta p {
    margin: 12px 0 0;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}
.footer-cta-actions { display: flex; flex-direction: column; gap: 12px; }
.footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: var(--transition);
}
.footer-btn i { font-size: 1rem; }
.footer-btn--primary { background: var(--accent); color: #fff; }
.footer-btn--primary:hover { background: #e06810; color: #fff; }
.footer-btn--ghost { border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; }
.footer-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 0;
}
.footer-logo-link { display: inline-block; }
.footer-logo { display: block; height: 64px; width: auto; }
.footer-brand p {
    margin: 20px 0 0;
    max-width: 24rem;
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.6;
}
.footer-partner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 10px 16px 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    transition: var(--transition);
}
.footer-partner:hover { border-color: rgba(250, 117, 22, 0.6); }
.footer-partner-icon {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    flex-shrink: 0;
}
.footer-partner-icon img { width: 24px; height: auto; }
.footer-partner small {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
}
.footer-partner strong { display: block; font-size: 0.875rem; font-weight: 600; color: #fff; }
.footer-social { display: flex; gap: 8px; margin-top: 24px; }
.footer-social a {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}
.footer-social a:hover { border-color: var(--accent); background: var(--accent); color: #fff; }

.footer-col h4 {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}
.footer-col ul {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.footer-col ul a {
    color: #cbd5e1;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
}
.footer-col ul a:hover { color: #fff; text-decoration: underline; }
.footer-contact { gap: 16px; }
.footer-contact li {
    display: flex;
    gap: 12px;
    font-size: 0.875rem;
    color: #cbd5e1;
    line-height: 1.6;
}
.footer-contact li > i { flex-shrink: 0; margin-top: 3px; color: var(--accent); font-size: 1rem; }
.footer-contact a:hover { text-decoration: none; }
.footer-phone { white-space: nowrap; }
.footer-whats {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(250, 117, 22, 0.15);
    color: var(--accent);
    font-size: 0.6875rem;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
}
.footer-col ul a.footer-whats:hover { background: var(--accent); color: #fff; text-decoration: none; }

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: #94a3b8;
}
.footer-legal p { margin: 0; }
.footer-legal p { color: #94a3b8; }
.footer-legal .footer-sep { color: #64748b; margin: 0 8px; }

@media (min-width: 640px) {
    .footer-cta-actions { flex-direction: row; }
    .footer-services ul { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-legal { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
    .footer-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 56px 0; }
    .footer-cta-actions { flex-shrink: 0; }
    .footer-grid { grid-template-columns: 1.2fr 1.15fr 0.75fr 0.9fr; gap: 40px; padding: 56px 0; }
    .footer-services ul { grid-template-columns: 1fr; }
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.9);
    transition: opacity 0.3s var(--ease-premium), transform 0.3s var(--ease-premium), border-color 0.3s;
    z-index: 90;
}

.back-to-top:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.back-to-top-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.back-to-top-ring .ring-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 2;
}

.back-to-top-ring .ring-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 119.4;
    stroke-dashoffset: 119.4;
}

.back-to-top i {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .hero .headline { font-size: 3rem; }
    .proposito .proposito-content { grid-template-columns: 1fr; }
    .proposito-image { order: -1; }
    .impacto-box { grid-template-columns: 1fr; text-align: center; padding: 40px; }
    .impacto-box .stats { justify-content: center; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero .headline { font-size: 2.5rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .checklist-grid { grid-template-columns: 1fr; }

    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(78vw, 300px);
        margin: 0;
        padding: 96px 24px 32px;
        border-radius: 0;
        background: #ffffff;
        box-shadow: -10px 0 40px rgba(18, 23, 43, 0.15);
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-premium);
        z-index: 99;
    }

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

    .nav-links a {
        padding: 4px 0;
        border-radius: 0;
        font-size: 1.125rem;
        color: rgba(18, 23, 43, 0.8);
    }

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

    .nav-links a.nav-cta {
        margin-top: 8px;
        justify-content: center;
        padding: 10px 16px;
        border-radius: 12px;
        font-size: 0.875rem;
        font-weight: 600;
        color: #ffffff;
        box-shadow: 0 10px 20px -10px rgba(243, 112, 33, 0.6);
    }

    .perfil-accordion-wrap { gap: 12px; }
    .back-to-top { bottom: 20px; right: 20px; width: 46px; height: 46px; }
}
