/* 
   Theme: CFO Engenharia - Painéis Elétricos
   Archetype: Split Assimetrico / Hero Dominante
   Fonts: Clash Display + General Sans
   Colors: Monochrome Dark (Black, Dark Gray, White)
*/

/* Font Declarations - Self Hosted */

/* Clash Display */
@font-face {
    font-family: 'Clash Display';
    src: url('/fonts/ClashDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: optional;
    font-style: normal;
}

@font-face {
    font-family: 'Clash Display';
    src: url('/fonts/ClashDisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: optional;
    font-style: normal;
}

@font-face {
    font-family: 'Clash Display';
    src: url('/fonts/ClashDisplay-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-display: optional;
    font-style: normal;
}

@font-face {
    font-family: 'Clash Display';
    src: url('/fonts/ClashDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: optional;
    font-style: normal;
}

/* General Sans */
@font-face {
    font-family: 'General Sans';
    src: url('/fonts/GeneralSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: optional;
    font-style: normal;
}

@font-face {
    font-family: 'General Sans';
    src: url('/fonts/GeneralSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: optional;
    font-style: normal;
}

@font-face {
    font-family: 'General Sans';
    src: url('/fonts/GeneralSans-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-display: optional;
    font-style: normal;
}

:root {
    --color-bg: #050505;
    --color-bg-light: #121212;
    --color-primary: #FFFFFF;
    --color-accent: #FFFFFF;
    --color-text: #F8FAFC;
    --color-text-dark: #FFFFFF;
    --color-text-muted: #9CA3AF;
    --color-danger: #EF4444;
    --color-whatsapp: #25D366;

    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'General Sans', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-timeline: --page-scroll block;
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar - White theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) var(--color-bg);
}

/* Section base - sempre visível, AOS cuida das animações */
section {
    opacity: 1;
    transform: none;
}

h1,
h2,
h3,
h4,
.btn {
    font-family: var(--font-heading);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== GLOBAL ELEMENTS ===== */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: white;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
    mix-blend-mode: overlay;
    z-index: 9998;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== HEADER ===== */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    height: 85px;
    filter: brightness(0) invert(1);
    width: auto;
    display: block;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: white;
    color: black;
    border: 1px solid white;
}

.btn-primary:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    background: transparent;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* ===== SECTION: HERO ===== */
.hero {
    position: relative;
    height: 100svh;
    min-height: 800px;
    display: flex;
    align-items: center;
    background-color: var(--color-bg);
    overflow: hidden;
    /* Removed contain to prevent AOS issues */
}

.hero-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
    filter: grayscale(100%) contrast(1.1);
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to right, transparent 0%, black 40%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-bg) 40%, rgba(5, 5, 5, 0.4) 70%, rgba(5, 5, 5, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

.hero-text {
    max-width: 650px;
    color: var(--color-text);
}

.eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #333;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.highlight {
    color: white;
    font-weight: 700;
    border-bottom: 2px solid white;
}

.subheadline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
    line-height: 1.6;
}

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

/* ===== SECTION: PROBLEM ===== */
.section-problem {
    background-color: var(--color-bg-light);
    padding: 8rem 0;
    position: relative;
    border-top: 1px solid #262626;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-tag {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.problem-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.problem-content p {
    font-size: 1.125rem;
    color: #A1A1AA;
    margin-bottom: 1.5rem;
}

.danger {
    color: white;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--color-danger);
}

.stat-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #1F1F1F;
    border-left: 4px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 0.9rem;
    color: #9CA3AF;
}

.warning-card {
    background: #1F1F1F;
    padding: 3rem;
    border-radius: 0px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 1px solid #333;
}

.warning-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    background: #333;
    z-index: -1;
    opacity: 0.2;
}

.icon-warning {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.icon-warning svg {
    width: 48px;
    height: 48px;
}

.warning-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.warning-card ul {
    list-style: none;
}

.warning-card ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #333;
    color: #D4D4D8;
    display: flex;
    align-items: center;
}

.warning-card ul li::before {
    content: '×';
    color: #9CA3AF;
    font-weight: bold;
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

/* ===== SECTION: SOLUTION (BENTO BOX) ===== */
.section-solution {
    background-color: var(--color-bg);
    padding: 120px 0;
}

.solution-intro {
    max-width: 700px;
    margin-bottom: 4rem;
}

.solution-intro h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    color: white;
    margin-bottom: 1.5rem;
}

.solution-intro p {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-card {
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    padding: 32px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.bento-card:hover,
.bento-card:focus {
    background: #1F1F1F;
    border-color: #3A3A3A;
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.bento-card:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.bento-card-1 {
    grid-column: 1 / 5;
}

.bento-card-2 {
    grid-column: 5 / 13;
}

.bento-card-3 {
    grid-column: 1 / 9;
}

.bento-card-4 {
    grid-column: 9 / 13;
}

.bento-number {
    position: absolute;
    top: 20px;
    left: 24px;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease-out;
    line-height: 1;
    z-index: 1;
}

.bento-card:hover .bento-number {
    color: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.bento-content h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: white;
    transition: width 0.5s var(--ease-out-expo);
}

.bento-card:hover .bento-content h3::after {
    width: 60px;
}

.bento-content p {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    color: #A1A1AA;
}

/* ===== SECTION: BENEFITS (TIMELINE) ===== */
.section-benefits {
    background-color: var(--color-bg-light);
    border-top: 1px solid #262626;
    padding: 120px 0;
}

.benefits-header {
    text-align: center;
    margin-bottom: 4rem;
}

.benefits-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    color: white;
    max-width: 700px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding-top: 60px;
}

.timeline-line {
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #333;
    z-index: 1;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: white;
    transition: width 1.5s var(--ease-out-expo);
}

.timeline-progress.in-view {
    width: 100%;
}

.timeline-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

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

.timeline-node {
    width: 40px;
    height: 40px;
    border: 2px solid #333;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
    transform: scale(0.8);
    opacity: 0.5;
    transition: all 0.4s var(--ease-out-expo);
}

.timeline-node.active {
    border-color: white;
    transform: scale(1);
    opacity: 1;
}

.timeline-node span {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.timeline-content {
    max-width: 220px;
    margin: 0 auto;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.timeline-content h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.4s var(--ease-out-expo);
}

.timeline-item:hover .timeline-content h3::after {
    width: 100%;
}

.timeline-item:hover .timeline-node {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.timeline-content p {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    color: #A1A1AA;
}

/* ===== SECTION: SERVICES (MASONRY) ===== */
.section-services {
    background-color: var(--color-bg);
    padding: 120px 0;
}

.services-header {
    margin-bottom: 4rem;
}

.services-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    color: white;
    max-width: 600px;
}

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

.service-card {
    background: #111111;
    border: 1px solid #222222;
    padding: 40px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
    overflow: hidden;
    cursor: pointer;
    text-align: left;
}

.service-featured {
    grid-row: span 2;
    min-height: 384px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, white 0%, transparent 100%);
    transition: width 0.6s var(--ease-out-expo);
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    border-color: #444444;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.service-card:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.service-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    transition: all 0.4s ease-out;
}

.service-card:hover .service-number {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.06);
}

.service-sigla {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.service-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: #9CA3AF;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--ease-out-expo);
}

.service-card:hover .service-name {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECTION: ABOUT (EDITORIAL SPLIT) ===== */
.section-about {
    background-color: var(--color-bg-light);
    border-top: 1px solid #262626;
    min-height: 600px;
}

.about-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 600px;
}

.about-content {
    padding: 120px 60px 120px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.about-quote-mark {
    position: absolute;
    top: 60px;
    left: 0;
    font-family: var(--font-heading);
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

.about-line {
    width: 60px;
    height: 2px;
    background: white;
    margin-bottom: 2rem;
}

.about-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.about-content>p {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.8;
    color: #D4D4D8;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.about-content blockquote {
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: white;
    border-left: 4px solid white;
    padding-left: 24px;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.about-image {
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #121212 0%, transparent 30%);
    z-index: 1;
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: 100%;
    min-height: 600px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: transform 8s var(--ease-out-expo);
}

.about-image:hover img {
    transform: scale(1.03);
}

/* ===== SECTION: FAQ ===== */
.section-faq {
    background-color: var(--color-bg);
    padding: 120px 0;
}

.faq-header {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    color: white;
}

.faq-container {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #262626;
    transition: all 0.3s ease;
}

.faq-item:hover,
.faq-item.open {
    border-left: 2px solid white;
    padding-left: 16px;
}

.faq-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 24px 0;
}

.faq-trigger:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 500;
    color: white;
}

.faq-icon {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item:hover .faq-icon,
.faq-item.open .faq-icon {
    color: white;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out-expo);
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: #A1A1AA;
    padding: 0 0 24px 0;
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    margin-bottom: 16px;
}

/* ===== SECTION: CTA ===== */
/* ===== SECTION: CTA ===== */
.section-cta {
    background: #050505;
    /* Fallback */
    background: linear-gradient(135deg, #050505 0%, #0F0F0F 25%, #121212 50%, #0A0A0A 75%, #050505 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    padding: 120px 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.cta-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    color: white;
    margin-bottom: 1.5rem;
}

.cta-header p {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.form-card .form-group {
    margin-bottom: 20px;
}

.form-card label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.form-card input,
.form-card select {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.form-card input::placeholder {
    color: #666;
}

.form-card input:focus,
.form-card select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.form-card select option {
    background: #121212;
    color: white;
}

.form-card .btn-submit {
    width: 100%;
    padding: 18px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #050505;
    background: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-card .btn-submit:hover {
    background: #E5E5E5;
    transform: translateY(-2px);
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.floating-whatsapp {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background: var(--color-whatsapp);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0);
    }
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}

.floating-whatsapp svg {
    color: white;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #0A0A0A;
    border: 1px solid #222;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s var(--ease-out-expo);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: white;
    border-color: white;
}

.modal-close:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.modal-header {
    margin-bottom: 32px;
    text-align: center;
}

.modal-header h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.modal-header p {
    font-size: 1rem;
    color: var(--color-text-muted);
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 16px 20px;
    border-radius: 0;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: white;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background: white;
    color: black;
    padding: 18px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: transparent;
    color: white;
}

.btn-submit:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* intl-tel-input overrides */
.iti {
    width: 100%;
}

.iti__country-list {
    background: #1A1A1A;
    border-color: #333;
}

.iti__country:hover {
    background: #2A2A2A;
}

.iti__selected-flag {
    background: transparent !important;
}

.iti__arrow {
    border-top-color: white;
}

/* ===== FOOTER ===== */
.footer {
    background: #050505;
    border-top: 1px solid #1A1A1A;
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.footer-logo-img {
    width: 80px;
    height: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: #A1A1AA;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a,
.footer-link-btn {
    font-size: 0.9rem;
    font-weight: 500;
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.footer-links a:hover,
.footer-link-btn:hover {
    color: white;
}

.footer-contact {
    text-align: right;
}

.footer-contact p {
    font-size: 0.875rem;
    color: #A1A1AA;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    font-size: 0.875rem;
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #1A1A1A;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: #9CA3AF;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {

    /* Hero */
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-bg-image {
        width: 100%;
        height: 100%;
        opacity: 0.35;
    }

    .hero-bg-image img {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .overlay-gradient {
        background: linear-gradient(180deg, rgba(5, 5, 5, 0.7) 0%, rgba(5, 5, 5, 0.95) 100%);
    }

    .hero-content {
        height: auto;
    }

    .hero-text {
        max-width: 100%;
    }

    .eyebrow {
        margin-top: 0;
    }

    /* Problem */
    .problem-grid {
        grid-template-columns: 1fr;
    }

    /* Bento Box */
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }

    .bento-card-1 {
        grid-column: 1 / 4;
    }

    .bento-card-2 {
        grid-column: 4 / 7;
    }

    .bento-card-3 {
        grid-column: 1 / 4;
    }

    .bento-card-4 {
        grid-column: 4 / 7;
    }

    .section-solution,
    .section-benefits,
    .section-services,
    .section-faq {
        padding: 80px 0;
    }

    /* Timeline */
    .timeline {
        padding-top: 0;
    }

    .timeline-line {
        display: none;
    }

    .timeline-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .timeline-node {
        transform: scale(1);
        opacity: 1;
        border-color: white;
    }

    /* Services */
    .service-featured {
        grid-row: span 1;
        min-height: 160px;
    }

    .services-grid {
        gap: 16px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding: 80px 20px;
        order: 1;
    }

    .about-image {
        order: 2;
        height: 400px;
    }

    .about-image::before {
        background: linear-gradient(180deg, #121212 0%, transparent 20%);
    }

    .about-image img {
        min-height: 400px;
    }

    /* CTA */
    .section-cta {
        padding: 80px 0;
    }

    /* Modal */
    .modal {
        padding: 32px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-contact {
        text-align: center;
    }
}

@media (max-width: 640px) {

    /* Hero Mobile - tela cheia na primeira visualização */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        /* Dynamic viewport height para mobile */
        padding-top: 80px;
        padding-bottom: 40px;
        display: flex;
        align-items: center;
    }

    .hero-text {
        text-align: left;
    }

    h1 {
        font-size: 2rem;
    }

    .subheadline {
        font-size: 1rem;
    }

    .eyebrow {
        font-size: 0.75rem;
    }

    .cta-group {
        justify-content: flex-start;
    }

    /* Section Titles */
    .solution-intro h2,
    .benefits-header h2,
    .services-header h2,
    .cta-header h2 {
        font-size: 1.75rem;
    }

    /* Problem */
    .problem-content h2 {
        font-size: 1.75rem;
    }

    .section-problem {
        padding: 80px 0;
    }

    /* Bento Box */
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card-1,
    .bento-card-2,
    .bento-card-3,
    .bento-card-4 {
        grid-column: 1 / -1;
    }

    .bento-card {
        padding: 24px;
        min-height: auto;
    }

    .bento-number {
        font-size: 2.5rem;
    }

    .section-solution,
    .section-benefits,
    .section-services,
    .section-faq {
        padding: 80px 0;
    }

    /* Timeline */
    .timeline-items {
        grid-template-columns: 1fr;
    }

    .timeline-node {
        width: 32px;
        height: 32px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 140px;
        padding: 24px;
    }

    .service-featured {
        min-height: 140px;
    }

    .service-name {
        opacity: 1;
        transform: translateY(0);
    }

    /* About */
    .about-image {
        height: 300px;
    }

    .about-image img {
        min-height: 300px;
    }

    .about-content {
        padding: 60px 20px;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .about-content blockquote {
        font-size: 1.1rem;
    }

    .about-quote-mark {
        font-size: 8rem;
    }

    /* FAQ */
    .faq-question {
        font-size: 1rem;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }

    .faq-container {
        padding: 0 20px;
    }

    /* CTA - alívio visual no mobile */
    .section-cta {
        padding: 80px 0;
        min-height: auto;
    }

    /* CTA - grid em coluna no mobile */
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .cta-header h2 {
        font-size: 1.75rem;
    }

    .form-card {
        padding: 24px;
    }

    .btn-large {
        width: 100%;
        padding: 18px 24px;
    }

    /* Modal */
    .modal {
        padding: 24px;
    }

    .modal-header h3 {
        font-size: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
    }

    /* Floating Button - mais espaço do fundo */
    .floating-whatsapp {
        bottom: 24px;
        right: 16px;
        width: 56px;
        height: 56px;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}