/* ===== CSS VARIABLES ===== */
:root {
    /* Colors - Elite PME Palette */
    --primary-color: #003366;        /* Deep Navy Blue - Authority & Trust */
    --secondary-color: #FFD700;      /* Premium Gold - Excellence & Prestige */
    --accent-color: #007bff;         /* Vibrant Blue - CTAs & Interactive */
    --success-color: #28a745;        /* Success Green */
    --warning-color: #ffc107;        /* Warning Amber */
    --danger-color: #dc3545;         /* Error Red */
    
    /* Neutrals */
    --text-primary: #1a1a1a;         /* Almost Black */
    --text-secondary: #4a5568;       /* Dark Gray */
    --text-muted: #718096;           /* Medium Gray */
    --text-light: #a0aec0;           /* Light Gray */
    
    /* Backgrounds */
    --bg-primary: #ffffff;           /* Pure White */
    --bg-secondary: #f8fafc;         /* Off White */
    --bg-tertiary: #edf2f7;          /* Light Gray */
    --bg-dark: #2d3748;              /* Dark Background */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #004080 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #ffed4e 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #0056b3 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 51, 102, 0.95) 0%, rgba(0, 64, 128, 0.9) 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Font Weights */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    --fw-black: 900;
    
    /* Font Sizes */
    --fs-xs: 0.75rem;     /* 12px */
    --fs-sm: 0.875rem;    /* 14px */
    --fs-base: 1rem;      /* 16px */
    --fs-lg: 1.125rem;    /* 18px */
    --fs-xl: 1.25rem;     /* 20px */
    --fs-2xl: 1.5rem;     /* 24px */
    --fs-3xl: 1.875rem;   /* 30px */
    --fs-4xl: 2.25rem;    /* 36px */
    --fs-5xl: 3rem;       /* 48px */
    --fs-6xl: 3.75rem;    /* 60px */
    --fs-7xl: 4.5rem;     /* 72px */
    
    /* Spacing */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-32: 8rem;     /* 128px */
    
    /* Border Radius */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;   /* Full round */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    font-weight: var(--fw-regular);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* RESPONSIVENESS FIX: Prevents horizontal overflow */
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); }
h6 { font-size: var(--fs-lg); }

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-base);
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--fs-lg);
}

.btn-full {
    width: 100%;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bg-tertiary);
    z-index: var(--z-sticky);
    transition: all var(--transition-normal);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
}

.logo h2 {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--primary-color);
    margin: 0;
}

.logo-subtitle {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-weight: var(--fw-medium);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-32) 0 var(--space-20);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero), url('../images/hero-business-professionals.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid var(--secondary-color);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--secondary-color);
    margin-bottom: var(--space-6);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(var(--fs-4xl), 5vw, var(--fs-7xl));
    font-weight: var(--fw-black);
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.title-highlight {
    color: var(--secondary-color);
    display: block;
}

.title-main {
    color: white;
    display: block;
}

.hero-subtitle {
    font-size: var(--fs-xl);
    font-weight: var(--fw-medium);
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto var(--space-8);
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-bottom: var(--space-10);
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-black);
    color: var(--secondary-color);
    line-height: 1;
}

.stat-label {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
    font-weight: var(--fw-medium);
    margin-top: var(--space-1);
}

.hero-cta {
    margin-top: var(--space-10);
}

.cta-note {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-3);
    margin-bottom: 0;
}

/* ===== SECTION STYLES ===== */
section {
    padding: var(--space-20) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
    font-weight: var(--fw-bold);
    color: var(--primary-color);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    font-weight: var(--fw-medium);
    line-height: 1.6;
}

/* ===== CHALLENGES SECTION ===== */
.challenges {
    background: var(--bg-secondary);
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.challenge-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--bg-tertiary);
}

.challenge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.card-icon i {
    font-size: var(--fs-2xl);
    color: white;
}

.challenge-card h3 {
    font-size: var(--fs-xl);
    color: var(--primary-color);
    margin-bottom: var(--space-3);
}

.challenge-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== SOLUTIONS SECTION ===== */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.solution-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--bg-tertiary);
    position: relative;
}

.solution-card.featured {
    border: 2px solid var(--secondary-color);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 215, 0, 0.02) 100%);
}

.solution-card.featured::before {
    content: 'DESTAQUE';
    position: absolute;
    top: -1px;
    right: var(--space-6);
    background: var(--gradient-secondary);
    color: var(--primary-color);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    padding: var(--space-1) var(--space-3);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.solution-card .card-icon {
    background: var(--gradient-accent);
}

.solution-card h3 {
    font-size: var(--fs-xl);
    color: var(--primary-color);
    margin-bottom: var(--space-3);
}

.feature-list {
    list-style: none;
    margin-top: var(--space-4);
}

.feature-list li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: var(--fw-bold);
}

/* ===== AUTHORITY SECTION ===== */
.authority {
    background: var(--bg-secondary);
}

.authority-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.bio-content p {
    font-size: var(--fs-lg);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.methodology {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.methodology h4 {
    color: var(--primary-color);
    margin-bottom: var(--space-4);
    font-size: var(--fs-xl);
}

.methodology ul {
    list-style: none;
}

.methodology li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.methodology li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: var(--fw-bold);
}

.profile-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-6);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 4px solid var(--secondary-color);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-2);
}

.profile-info p {
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.credential {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

/* ===== CERTIFICATES SECTION ===== */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.certificate-item {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
}

.certificate-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.certificate-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.certificate-item h4 {
    font-size: var(--fs-base);
    color: var(--primary-color);
    margin-bottom: var(--space-2);
}

.certificate-item p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ===== PROCESS SECTION ===== */
.process {
    background: var(--bg-secondary);
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: var(--space-6);
    margin-bottom: var(--space-12);
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 80px;
    width: 2px;
    height: calc(100% + var(--space-12));
    background: var(--bg-tertiary);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--fw-bold);
    font-size: var(--fs-lg);
    position: relative;
    z-index: 2;
}

.step-content {
    flex: 1;
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-3);
    font-size: var(--fs-xl);
}

.step-content p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--primary-color);
    color: white;
}

.contact .section-title,
.contact .section-subtitle {
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

.contact-details {
    margin-bottom: var(--space-8);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: var(--fs-xl);
}

.contact-item h4 {
    color: var(--secondary-color);
    margin-bottom: var(--space-1);
    font-size: var(--fs-base);
}

.contact-item p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.social-links h4 {
    color: var(--secondary-color);
    margin-bottom: var(--space-4);
}

.social-icons {
    display: flex;
    gap: var(--space-3);
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--fs-lg);
    transition: all var(--transition-normal);
}

.social-icons a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== CONTACT FORM ===== */
.contact-form {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
}

.form-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.form-header h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-3);
}

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

.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-size: var(--fs-sm);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-lg);
    font-size: var(--fs-base);
    font-family: var(--font-primary);
    transition: all var(--transition-normal);
    background: white;
    /* IPHONE FIX: Prevent zoom on focus */
    font-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* CHECKBOX FIX: Melhor layout e visibilidade do texto */
.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.consent-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    /* CHECKBOX FIX: Melhor aparência */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid var(--bg-tertiary);
    border-radius: 3px;
    background: white;
    position: relative;
    transition: all var(--transition-normal);
}

.consent-checkbox input[type="checkbox"]:checked {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.consent-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.consent-checkbox label {
    font-size: var(--fs-sm);
    line-height: 1.5;
    margin-bottom: 0;
    cursor: pointer;
    flex: 1;
    color: var(--text-secondary);
}

.form-note {
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-top: var(--space-3);
    margin-bottom: 0;
}

.error-message {
    display: block;
    color: var(--danger-color);
    font-size: var(--fs-sm);
    margin-top: var(--space-1);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: var(--space-4);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--space-2);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--fs-lg);
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-links {
    display: flex;
    gap: var(--space-6);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--fs-sm);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-2xl);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
}

.whatsapp-float:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .authority-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
}

@media (max-width: 768px) {
    :root {
        --fs-5xl: 2.5rem;
        --fs-4xl: 2rem;
        --fs-3xl: 1.75rem;
    }
    
    .nav {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .hero {
        /* RESPONSIVENESS FIX: Adjusted padding */
        padding: var(--space-20) 0 var(--space-16);
        min-height: 90vh;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .challenges-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .process-step::after {
        display: none;
    }

    .contact-content {
        /* RESPONSIVENESS FIX: Ensure single column layout */
        grid-template-columns: 1fr;
    }

    .contact-form {
        /* RESPONSIVENESS FIX: Adjusted padding for smaller screens */
        padding: var(--space-6);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    section {
        /* RESPONSIVENESS FIX: Adjusted padding for all sections */
        padding: var(--space-12) 0;
    }
}

/* IPHONE SPECIFIC FIXES */
@media (max-width: 480px) {
    .container {
        /* RESPONSIVENESS FIX: Adjusted padding */
        padding: 0 var(--space-4);
    }
    
    .btn-large {
        padding: var(--space-3) var(--space-6);
        font-size: var(--fs-base);
    }
    
    .hero-background {
        background-attachment: scroll;
    }
    
    .whatsapp-float {
        bottom: var(--space-6);
        right: var(--space-6);
        width: 50px;
        height: 50px;
        font-size: var(--fs-xl);
    }

    /* IPHONE FORM FIXES */
    .contact-form {
        padding: var(--space-4);
        margin: 0 var(--space-2);
        /* IPHONE FIX: Prevent form from expanding beyond viewport */
        max-width: calc(100vw - var(--space-8));
        box-sizing: border-box;
    }

    .form-group input,
    .form-group select {
        /* IPHONE FIX: Prevent zoom and ensure proper sizing */
        font-size: 16px !important;
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 8px;
    }

    /* IPHONE CHECKBOX FIXES */
    .consent-checkbox {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: var(--space-4);
    }

    .consent-checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-top: 0;
        flex-shrink: 0;
    }

    .consent-checkbox label {
        font-size: 14px;
        line-height: 1.4;
        word-wrap: break-word;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-on-scroll.animate-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-on-scroll.animate-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }

.hidden { display: none; }
.visible { display: block; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/******************************************/
/* ===== ALL NEW STYLES ADDED BELOW ===== */
/******************************************/

/* ===== NEW: SECTION CTA ===== */
.section-cta {
    text-align: center;
    margin-top: var(--space-16);
}
.section-cta .btn {
    font-size: var(--fs-lg);
    box-shadow: var(--shadow-md);
}
.section-cta .btn:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}
.section-cta i {
    transition: transform var(--transition-normal);
}
.section-cta .btn:hover i {
    transform: translateX(5px);
}

/* ===== NEW: CASE STUDY SECTION ===== */
.case-study {
    background-color: var(--bg-secondary);
}
.case-study-content {
    max-width: 1000px;
    margin: 0 auto;
}
.case-study-scenario {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: var(--space-12);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--bg-tertiary);
}
.case-study-scenario h3 {
    color: var(--primary-color);
    font-size: var(--fs-2xl);
}
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}
.case-study-step {
    text-align: center;
    padding: var(--space-6);
}
.case-study-step .card-icon {
    margin: 0 auto var(--space-6);
    background: var(--gradient-accent);
}
.case-study-step h4 {
    color: var(--primary-color);
    font-size: var(--fs-xl);
    margin-bottom: var(--space-3);
}

/* ===== NEW: FAQ SECTION ===== */
.faq {
    background-color: var(--bg-primary);
}
.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-6);
}
.faq-item {
    background-color: var(--bg-secondary);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border-left: 5px solid var(--primary-color);
}
.faq-item h3 {
    color: var(--primary-color);
    font-size: var(--fs-xl);
    margin-bottom: var(--space-4);
}
.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== NEW: POLICY PAGE STYLES ===== */
.policy-content {
    padding: var(--space-16) 0;
}
.policy-content .container {
    max-width: 900px;
    background: white;
    padding: var(--space-12);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
.policy-content h1 {
    font-size: var(--fs-5xl);
    margin-bottom: var(--space-8);
}
.policy-content h2 {
    font-size: var(--fs-3xl);
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
    border-bottom: 2px solid var(--bg-tertiary);
    padding-bottom: var(--space-2);
}
.policy-content p, .policy-content li {
    font-size: var(--fs-lg);
    line-height: 1.8;
    color: var(--text-secondary);
}
.policy-content ul {
    list-style-position: outside;
    padding-left: var(--space-6);
}

/* ===== FIX for intl-tel-input dropdown country list text color ===== */
.iti__country-name {
    color: var(--text-primary) !important;
}

/* ===== NEW STYLE FOR SUBSECTION TITLES (for Methodology consolidation) ===== */
.subsection-title {
    text-align: center;
    font-size: var(--fs-3xl);
    color: var(--primary-color);
    margin-top: var(--space-20);
    margin-bottom: var(--space-10);
    font-weight: var(--fw-bold);
}

/* NOVO: Estilo para a introdução dos indicadores na secção Hero */
.stats-intro {
    font-weight: 500;
    margin-bottom: var(--space-4);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.hero-title {
    color: var(--secondary-color) !important;
}

/* ========================
   RESPONSIVIDADE GERAL MELHORADA
   ======================== */

/* ----------- TABLETS (600px a 900px) ----------- */
@media (min-width: 600px) and (max-width: 900px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .hero-title {
    font-size: 2.7rem;
    line-height: 1.15;
  }
  .hero-subtitle {
    font-size: 1.3rem;
  }
  .hero-stats {
    gap: 2rem;
  }
  .challenge-card,
  .solution-card,
  .certificate-item,
  .profile-card,
  .methodology {
    padding: 2rem;
    font-size: 1.1rem;
  }
  .btn,
  .btn-primary,
  .btn-outline,
  .btn-large {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
  }
  .contact-form {
    padding: 2rem 1rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }
  .footer, .footer-bottom {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ----------- MOBILE MELHORADO (até 600px) ----------- */
@media (max-width: 600px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Header fixo: espaço no topo para não cobrir conteúdo */
  .hero {
    padding-top: 7rem !important;
  }
  
  .hero-title {
    font-size: 2rem;
    color: var(--secondary-color) !important;
    line-height: 1.18;
    margin-bottom: 1.2rem;
    word-break: break-word;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.1rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  
  .hero-badge {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.3rem 0.8rem;
  }
  
  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.2rem;
  }
  
  .stat-item {
    width: 100%;
  }
  
  /* Botões: nunca deixa texto sair do botão */
  .btn,
  .btn-primary,
  .btn-outline,
  .btn-large {
    width: 100%;
    font-size: 1rem;
    padding: 1rem 1rem;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
    word-break: break-word;
    text-align: center;
  }
  
  .hero-cta {
    margin-top: 1.2rem;
  }
  
  .cta-note {
    font-size: 0.95rem;
    margin-top: 1rem;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .section-header {
    margin-bottom: 1.2rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
  
  .section-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    word-break: break-word;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .challenge-card,
  .solution-card,
  .certificate-item,
  .profile-card,
  .methodology {
    padding: 1rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
  }
  
  .challenges-grid,
  .solutions-grid,
  .certificates-grid {
    grid-template-columns: 1fr !important;
    gap: 1.3rem;
  }
  
  .process-timeline {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
  
  .process-step {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .step-number {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
  
  .step-content {
    padding: 0.9rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
  }
  
  /* FORMULÁRIO CORRIGIDO PARA IPHONE */
  .contact-form {
    padding: 1.5rem 1rem;
    max-width: calc(100vw - 2rem);
    margin: 0 1rem;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .form-header {
    margin-bottom: 1.3rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .form-group input,
  .form-group select {
    font-size: 16px !important; /* Evita zoom no iPhone */
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  
  /* CHECKBOX CORRIGIDO */
  .consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
  }
  
  .consent-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
  }
  
  .consent-checkbox label {
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
    word-wrap: break-word;
  }
  
  /* Footer mais compacto */
  .footer,
  .footer-bottom {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  /* Ícones touch */
  .card-icon,
  .contact-item i,
  .profile-image {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
  }
  
  .profile-image img {
    width: 100%;
    height: 100%;
  }
}

/* --------- Corrige header fixo no desktop e tablet --------- */
@media (min-width: 601px) {
  .hero {
    padding-top: 7.5rem !important;
  }
}

/* --------- Melhora geral --------- */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

.btn i {
  vertical-align: middle;
}

/* CORREÇÕES FINAIS PARA IPHONE */
@media (max-width: 480px) {
  /* Remove qualquer padding lateral que possa causar overflow */
  .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* Formulário nunca deve sair da tela */
  .contact-form {
    width: calc(100vw - 1rem) !important;
    max-width: calc(100vw - 1rem) !important;
    margin: 0 0.5rem !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Inputs sempre respeitam o container */
  .contact-form input,
  .contact-form select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
  }

  /* Checkbox layout melhorado */
  .consent-checkbox {
    width: 100%;
    box-sizing: border-box;
  }

  .consent-checkbox label {
    width: calc(100% - 32px);
    box-sizing: border-box;
  }
}

/* VERSÃO FINAL E LIMPA DA SOLUÇÃO DO CHECKBOX */

.form-group.consent-checkbox {
    display: flex;
    align-items: flex-start; /* Alinha o checkbox com o topo do texto */
    padding-top: 5px;
    padding-bottom: 15px; /* Adiciona espaço abaixo */
}

.form-group.consent-checkbox input[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: checkbox;
    width: 18px;
    height: 18px;
    margin-top: 4px; /* Pequeno ajuste para alinhar com a primeira linha de texto */
    margin-right: 12px; /* Espaço entre o checkbox e o texto */
    flex-shrink: 0;
}

/* Agora estilizando a nossa nova classe .consent-text */
.form-group.consent-checkbox .consent-text {
    flex-grow: 1; /* Permite que o texto ocupe o espaço restante */
    min-width: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4A5568; /* Uma cor de texto padrão para formulários */
    cursor: pointer;
}

/* Estilo para o link dentro do texto de consentimento */
.form-group.consent-checkbox .consent-text a {
    color: #3182CE; /* Uma cor de link visível */
    text-decoration: underline;
}