/* 
 * CSS Design System: Grupo CR Serviços Landing Page (Compact & High-Density UX)
 * Palette: Deep Navy Blue & Gold/Amber (Accented, Contrast aligned)
 * Accessibility: WCAG AA compliant contrast and touch targets
 */

:root {
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Colors (Matching Logo: Dark Navy and Gold/Yellow) */
    --bg-primary: #060913;      /* Deepest Navy/Slate */
    --bg-secondary: #0b101f;    /* Dark Navy */
    --bg-card: rgba(17, 25, 47, 0.75);
    --bg-card-hover: rgba(25, 37, 68, 0.9);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dark: #0f172a;       /* For light backgrounds */
    
    /* Accent: Gold / Amber (Saturation: 75%) */
    --accent: #fbbf24;          /* Warm Yellow/Gold */
    --accent-hover: #d97706;    /* Dark Amber */
    --accent-muted: rgba(251, 191, 36, 0.12);
    --accent-border: rgba(251, 191, 36, 0.35);
    
    /* Layout & Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --shadow-diffusion: 0 15px 30px -10px rgba(0, 0, 0, 0.4);
    --shadow-inset-glass: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 15px; /* Slightly smaller base font for tighter density */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Keyboard Focus States (WCAG AA Compliance) */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
}

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

/* Header & Navigation Overhaul (Light themed glassmorphism for logo contrast) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-container {
    max-width: 1100px; /* Tighter container width */
    margin: 0 auto;
    padding: 0.5rem 1.5rem; /* Tight margins */
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 56px; /* Compact height */
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px; /* Restored to be prominent and readable */
    width: auto;
    display: block;
}

/* WhatsApp Header Button (Dark Theme contrast) */
.btn-header-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #0b1220;
    color: #ffffff;
    padding: 0.65rem 1.15rem; /* Touch target 44px height */
    border-radius: var(--radius-md);
    font-size: 0.825rem;
    font-weight: 700;
    border: 1px solid #0b1220;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-header-whatsapp:hover {
    background-color: var(--accent);
    color: var(--text-dark);
    border-color: var(--accent);
    transform: translateY(-1.5px);
    box-shadow: 0 6px 12px rgba(251, 191, 36, 0.2);
}

.btn-header-whatsapp:active {
    transform: translateY(-1px) scale(0.98);
}

/* Hero Section (First Fold) */
.hero-section {
    position: relative;
    min-height: 100dvh;
    padding-top: 100px; /* Reduced to match tighter header */
    padding-bottom: 50px;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(6, 9, 19, 0.97) 35%, rgba(6, 9, 19, 0.75) 100%), 
                url('assets/hero-bg.png') no-repeat center center / cover;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem; /* Reduced from 4rem */
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Tighter layout */
}

.badge-hero {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.badge-hero svg {
    color: var(--accent);
}

.hero-content h1 {
    font-size: 2.5rem; /* Reduced from 3.25rem for balanced proportion */
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 20ch;
    background: linear-gradient(135deg, #ffffff 70%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1rem; /* Tighter font */
    line-height: 1.5;
    max-width: 48ch;
}

.hero-trust-indicators {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-number {
    font-family: var(--font-heading);
    font-size: 1.85rem; /* Reduced from 2.25rem */
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.trust-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.trust-divider {
    width: 1px;
    height: 32px;
    background-color: var(--border-color);
}

/* Lead Card & Capture Form */
.hero-form-container {
    perspective: 1000px;
}

.lead-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md); /* Reduced border radius */
    padding: 1.75rem; /* Reduced from 2.25rem for layout density */
    box-shadow: var(--shadow-inset-glass), var(--shadow-diffusion);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.25s ease;
}

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

.lead-card h3 {
    font-size: 1.2rem; /* Tighter heading */
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 0.95rem; /* Tighter input spacing */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.input-wrapper, .select-wrapper {
    position: relative;
    width: 100%;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background-color: rgba(6, 9, 19, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem; /* Target touch target height: ~40px inside card context */
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.825rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1rem;
    padding-right: 2.25rem;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(6, 9, 19, 0.8);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}

.form-input.invalid, .form-select.invalid, .form-textarea.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-helper {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.form-error {
    display: none;
    font-size: 0.7rem;
    color: #ef4444;
    font-weight: 500;
}

.form-group.has-error .form-error {
    display: block;
}

.form-group.has-error .form-helper {
    display: none;
}

.form-textarea {
    resize: vertical;
}

/* Dynamic Benefit Card */
.dynamic-benefit-card {
    background-color: rgba(251, 191, 36, 0.04);
    border: 1px solid rgba(251, 191, 36, 0.12);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    animation: zoom-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.benefit-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
}

.benefit-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#dynamic-benefit-text {
    font-size: 0.775rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* CTA submit button */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    background-color: var(--accent);
    color: var(--text-dark);
    padding: 0.8rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 0.25rem;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
    box-shadow: 0 8px 16px -4px rgba(217, 119, 6, 0.35);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(1px) scale(0.99);
}

.btn-submit:disabled {
    background-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-arrow {
    transform: translateX(3px);
}

/* Solutions Section */
.solutions-section {
    background-color: var(--bg-secondary);
    padding: 60px 0; /* Reduced from 100px for tight density */
    position: relative;
    border-top: 1px solid var(--border-color);
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    max-width: 550px;
    margin: 0 auto 3rem auto; /* Reduced from 5rem */
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-header h2 {
    font-size: 1.85rem; /* Reduced from 2.25rem */
}

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

/* Asymmetric Bento Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem; /* Reduced from 2.5rem */
}

.solution-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md); /* Reduced from radius-lg */
    padding: 1.75rem; /* Reduced from 2.75rem */
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-inset-glass), var(--shadow-diffusion);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem; /* Tighter internal layout */
}

.solution-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.card-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; /* Reduced from 56px */
    height: 44px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    border: 1px solid var(--border-color);
}

.card-icon-box svg {
    width: 22px;
    height: 22px;
}

.bg-navy {
    background-color: rgba(30, 62, 98, 0.2);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.15);
}

.bg-emerald {
    background-color: rgba(251, 191, 36, 0.1);
    color: var(--accent);
    border-color: rgba(251, 191, 36, 0.2);
}

.bg-amber {
    background-color: rgba(217, 119, 6, 0.1);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.15);
}

.solution-card h3 {
    font-size: 1.25rem; /* Reduced from 1.5rem */
    color: #ffffff;
}

.solution-card p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.feature-tag {
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.02);
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
}

.feature-tag.font-emerald {
    color: #fef08a;
    border-color: rgba(251, 191, 36, 0.15);
}

/* Featured styling for card 2 (Facilities) */
.solution-card.featured {
    border-color: var(--accent-border);
    background: linear-gradient(180deg, rgba(17, 25, 47, 0.75) 0%, rgba(35, 30, 15, 0.4) 100%);
}

.card-tag {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background-color: var(--accent);
    color: var(--text-dark);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Differentials Section (Gatilhos de Autoridade) */
.differentials-section {
    padding: 60px 0;
    position: relative;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.differentials-wrapper {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem; /* Reduced from 4rem */
    align-items: center;
}

.diff-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.diff-header h2 {
    font-size: 1.85rem;
    max-width: 15ch;
}

.diff-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 36ch;
}

.diff-visual-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.visual-circle {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
}

.visual-line {
    width: 60px;
    height: 2px;
    background-color: var(--accent-border);
}

.diff-grid {
    display: flex;
    flex-direction: column;
    gap: 1.75rem; /* Reduced from 2.25rem */
}

.diff-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.diff-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Reduced from 48px */
    height: 40px;
    background-color: var(--accent-muted);
    color: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid var(--accent-border);
    transition: transform 0.25s ease;
}

.diff-icon-circle svg {
    width: 18px;
    height: 18px;
}

.diff-item:hover .diff-icon-circle {
    transform: scale(1.08);
}

.diff-content h4 {
    font-size: 1.05rem; /* Tighter header */
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.diff-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 50ch;
}

/* FAQ Section (Accordion) */
.faq-section {
    background-color: var(--bg-secondary);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.faq-grid {
    max-width: 750px; /* Slightly tighter width */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-inset-glass);
}

.faq-item:hover {
    border-color: var(--border-hover);
    background-color: var(--bg-card-hover);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 1.1rem 1.5rem; /* Tighter padding, maintains touch height */
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.95rem; /* Reduced from 1.0625rem */
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    color: var(--text-secondary);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-line-v {
    transition: transform 0.25s ease;
    transform-origin: center;
}
.faq-question[aria-expanded="true"] .faq-line-v {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease;
    padding: 0 1.5rem;
}

.faq-answer p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-secondary);
    padding-bottom: 1.1rem;
}

/* Call to Action Final Section */
.cta-section {
    background-color: var(--bg-secondary);
    padding: 60px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.cta-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-inset-glass), var(--shadow-diffusion);
    border-radius: var(--radius-lg); /* Reduced radius */
    padding: 3rem; /* Reduced from 4.5rem for tight density */
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.cta-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.cta-wrapper h2 {
    font-size: 1.85rem; /* Reduced from 2.25rem */
    max-width: 25ch;
    line-height: 1.2;
}

.cta-wrapper p {
    font-size: 1rem;
    max-width: 48ch;
    margin-bottom: 0.5rem;
}

.btn-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--accent);
    color: var(--text-dark);
    padding: 0.95rem 2rem; /* Touch target height: ~50px */
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 16px -4px rgba(251, 191, 36, 0.25);
}

.btn-cta-whatsapp:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
    box-shadow: 0 12px 24px -4px rgba(217, 119, 6, 0.45);
    transform: translateY(-1.5px);
}

.btn-cta-whatsapp:active {
    transform: translateY(-1px) scale(0.98);
}

/* Footer Section */
.main-footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 30px 0; /* Reduced from 80px/40px */
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem; /* Reduced from 4rem */
    padding-bottom: 2.5rem; /* Reduced */
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: max-content;
}

.footer-logo-img {
    height: 38px; /* Restored to be prominent and legible */
    width: auto;
    display: block;
}

.footer-tagline {
    font-size: 0.85rem;
    max-width: 38ch;
}

.footer-links h5 {
    font-size: 0.825rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: 1rem; /* Reduced */
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Reduced from 1rem */
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.icon-footer {
    color: var(--accent);
    flex-shrink: 0;
}

.contact-list a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem; /* Reduced */
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-recruitment {
    font-size: 0.75rem;
}

.recruitment-link {
    color: var(--text-muted);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.recruitment-link:hover {
    color: var(--text-secondary);
    border-bottom-color: var(--text-secondary);
}

/* WhatsApp Floating Button */
.whatsapp-floating {
    position: fixed;
    bottom: 1.5rem; /* Reduced from 2rem */
    right: 1.5rem;
    width: 50px; /* Reduced from 60px */
    height: 50px;
    border-radius: 50%;
    background-color: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 99;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: pulse-whatsapp 2.5s infinite;
}

.whatsapp-floating:hover {
    transform: scale(1.08) translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
    background-color: #20ba5a;
}

.whatsapp-floating:active {
    transform: scale(0.95);
}

.whatsapp-icon-floating {
    width: 26px;
    height: 26px;
}

/* Scroll reveals */
.reveal {
    opacity: 0;
    transform: translateY(16px); /* Reduced from 24px */
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

/* Success Card */
.success-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    gap: 1.25rem;
    animation: zoom-fade-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--accent-muted);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-border);
}

.success-card h3 {
    font-size: 1.35rem;
}

.success-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 32ch;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
}

/* KEYFRAMES & ANIMATIONS */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes zoom-fade-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Layout Breakpoints */

@media (min-width: 1024px) {
    .solutions-grid {
        grid-template-columns: 1.15fr 1fr 1.05fr;
        gap: 2rem;
        align-items: start;
        padding-bottom: 1.5rem;
    }
    
    .card-asymmetric-1 {
        transform: translateY(15px);
    }
    
    .card-asymmetric-2 {
        transform: translateY(0);
        min-height: 380px;
    }
    
    .card-asymmetric-3 {
        transform: translateY(30px);
    }
}

@media (max-width: 1023px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero-content {
        text-align: center;
        align-items: center;
    }
    
    .badge-hero {
        align-self: center;
    }
    
    .hero-content h1 {
        max-width: 100%;
        font-size: 2.25rem;
    }
    
    .hero-content p {
        max-width: 100%;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .differentials-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .diff-header {
        text-align: center;
        align-items: center;
    }
    
    .diff-header h2 {
        max-width: 100%;
    }
    
    .diff-header p {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 14px; /* Even tighter base for mobile */
    }
    
    .header-container {
        padding: 0.5rem 1rem;
        min-height: 50px;
    }
    
    .logo-img {
        height: 38px;
    }
    
    .btn-header-whatsapp span {
        display: none;
    }
    
    .btn-header-whatsapp {
        padding: 0.5rem;
        border-radius: 50%;
    }
    
    .hero-section {
        padding-top: 90px;
        padding-bottom: 35px;
    }
    
    .hero-container {
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 1.85rem;
    }
    
    .hero-trust-indicators {
        gap: 1rem;
    }
    
    .trust-number {
        font-size: 1.6rem;
    }
    
    .lead-card {
        padding: 1.25rem;
    }
    
    .solutions-section {
        padding: 45px 0;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .section-header {
        margin-bottom: 2.25rem;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-asymmetric-1, .card-asymmetric-2, .card-asymmetric-3 {
        transform: none !important;
    }
    
    .solution-card {
        padding: 1.5rem;
    }
    
    .differentials-section {
        padding: 45px 0;
    }
    
    .diff-grid {
        gap: 1.5rem;
    }
    
    .diff-item {
        gap: 0.85rem;
    }
    
    .faq-section {
        padding: 45px 0;
    }
    
    .faq-question {
        padding: 0.85rem 1.15rem;
        font-size: 0.9rem;
    }
    
    .faq-answer {
        padding: 0 1.15rem;
    }
    
    .faq-answer p {
        padding-bottom: 0.85rem;
    }
    
    .cta-section {
        padding: 45px 0;
    }
    
    .cta-wrapper {
        padding: 2rem 1.15rem;
    }
    
    .cta-wrapper h2 {
        font-size: 1.6rem;
    }
    
    .btn-cta-whatsapp {
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        padding-top: 1.25rem;
    }
    
    .whatsapp-floating {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
    
    .whatsapp-icon-floating {
        width: 22px;
        height: 22px;
    }
}
