/* css/style.css - COMPLETE & CORRECTED */

/* This is the single, consolidated stylesheet for all custom styles 
  for the Escola Amarela website.
*/

/* Custom CSS Variables (Theme) */
:root {
    --ea-yellow: #F7CB18;
    --ea-dark: #212529;
    --ea-light: #f8f9fa;
    --ea-gray: #6c757d; /* ADDED for consistency */
}

/* Global Body Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    /* MODIFIED - Added base color, font-size, and line-height for better hierarchy */
    color: var(--ea-dark);
    font-size: 16px;
    line-height: 1.6;
}

/* Custom Helper Classes */
.ea-bg-yellow {
    background-color: var(--ea-yellow);
}
.ea-text-yellow {
    color: var(--ea-yellow);
}
.ea-border-yellow {
    border-color: var(--ea-yellow);
}

/* Add this rule to prevent the icon from stealing taps */
button .material-icons {
    pointer-events: none;
}

/* Header Styling */
header {
    transition: background-color 0.3s ease, padding 0.3s ease;
    /* MODIFIED - Added more padding for better spacing */
    padding: 1.5rem 1rem;
}
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem;
}
header.scrolled .nav-link {
    color: var(--ea-dark); /* MODIFIED - Removed !important */
}
header.scrolled .nav-link:hover {
    color: var(--ea-yellow); /* MODIFIED - Removed !important */
}
header.scrolled .logo-white {
    display: none;
}
header.scrolled .logo-color {
    display: block;
}
header.scrolled #mobile-menu-button {
    color: var(--ea-dark);
}
.logo-color {
    display: none;
}

/* --- FIXED HERO SECTION --- */

.hero-section {
    position: relative; /* Establishes the positioning context for its children */
    height: 100vh; /* Makes the section take up the full browser height */
    width: 100%;
    overflow: hidden; /* Prevents any content from spilling out */
    display: flex; /* Using Flexbox to easily center the content */
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover; 
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    z-index: 2; 
}

.hero-content {
    position: absolute; 
    top: 50%;           
    left: 50%;   
    width: 90%; 
    max-width: 1200px; 
    z-index: 3;       
    padding: 1rem;
    transform: translate(-50%, -50%) translateY(20px); /* Restores the subtle "lift" effect */
    
    opacity: 0; /* Hide it by default */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out; /* Slower 1.5s transition */
}

.hero-content.visible {
    opacity: 1; 
    transform: translate(-50%, -50%) translateY(0); /* Final position */
}

/* --- HIERARCHY & SPACING FIXES --- */
.hero-content h1 {

    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    line-height: 1.2;
}
/* NEW - Added rule for hero subtitle */
.hero-content h2 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    margin-top: 1rem;
}
.section-title {
    /* MODIFIED - Using clamp for responsive font size */
    font-size: clamp(2rem, 6vw, 2.75rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
}
.section-subtitle {
     font-size: clamp(1rem, 2.5vw, 1.25rem);
     color: var(--ea-gray);
     margin-bottom: 3.5rem; /* Increased spacing */
     max-width: 700px; /* Constrain line length */
     margin-left: auto;
     margin-right: auto;
}
/* NEW - Rule for card titles */
section .grid h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
/* NEW - Rule for card paragraphs */
section .grid p {
    color: var(--ea-gray);
    line-height: 1.7;
}
/* --- END OF HIERARCHY FIXES --- */


/* --- ALL ORIGINAL STYLES BELOW ARE PRESERVED --- */

/* GDPR Banner Styling */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(5px);
    color: white;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.gdpr-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}
.gdpr-text {
    flex-grow: 1;
    margin-right: 1rem;
}
.gdpr-actions {
    display: flex;
    gap: 0.5rem;
}
.gdpr-button {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
.gdpr-accept {
    background-color: var(--ea-yellow);
    color: var(--ea-dark);
}
.gdpr-accept:hover {
    background-color: #d4ac0d;
}
.gdpr-decline {
    background-color: transparent;
    color: white;
    border: 2px solid #555;
}
.gdpr-decline:hover {
    background-color: #333;
}


/* STYLES FOR 2-STEP CONTACT FORM */
.contact-form-2step {
    font-family: 'Nunito', sans-serif;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
}
@media (max-width: 600px) {
    .contact-form-2step { max-width: 100%; }
}
.contact-form-2step .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.contact-form-2step label:not(.privacy-label) {
    font-size: .9rem;
    font-weight: 600;
    color: #333;
}
.contact-form-2step input,
.contact-form-2step textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form-2step input:focus,
.contact-form-2step textarea:focus {
    outline: none;
    border-color: #e7c21b;
    box-shadow: 0 0 0 2px rgba(231,194,27,.35);
}
.contact-form-2step textarea { min-height: 120px; resize: vertical; }
.privacy-group {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: .5rem;
}
.privacy-group input {
    width: 1.1em; height: 1.1em;
    accent-color: #e7c21b;
}
.privacy-label {
    font-size: .85rem;
    color: #333;
}
.privacy-label a {
    color: #e7c21b;
    text-decoration: underline;
}
.privacy-label a:hover {
    color: #d4ac0d;
}
.contact-form-2step .btn {
    background: #e7c21b;
    color: #424242;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    cursor: pointer;
    width: 100%;
    height: 55px;
    margin-top: 1rem;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.contact-form-2step .btn:hover {
    background-color: #d4ac0d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,.15);
}
.contact-form-2step .ghost-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: transparent;
    color: #424242;
    font-weight: 600;
    font-size: 1rem;
    border: 3px solid #e7c21b;
    border-radius: 8px;
    padding: 16px 32px;
    width: 100%;
    height: 55px;
    cursor: pointer;
    text-decoration: none;
    margin-top: .75rem;
    transition: background-color .15s ease, color .15s ease;
}
.contact-form-2step .ghost-btn img.whatsapp-icon {
    width: 1.25em; height: 1.25em;
}
.contact-form-2step .ghost-btn:hover {
    background-color: #e7c21b;
    color: #424242;
}
.contact-form-2step .error-msg {
    color: #c62828;
    font-size: .8rem;
    display: none;
}
.is-error { border-color: #c62828 !important; }
.submit-error-msg {
    color: #c62828;
    text-align: center;
    margin-top: .5rem;
    display: none;
}
.step-1, .step-2 {
    display: flex;
    flex-direction: column;
    gap: inherit;
}
.step-2 { display: none; opacity: 0; transition: opacity .35s ease-in-out; }
.step-2.active { display: flex; opacity: 1; }
.form-thank-you {
    font-family: 'Nunito', sans-serif;
    max-width: 520px;
    margin: 0 auto;
    padding: 2.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
    color: #333;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.form-thank-you .thank-you-icon {
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: #e7c21b;
}
.form-thank-you h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.form-thank-you .confirmation-message {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.thank-you-divider {
    height: 1px;
    background-color: #eeeeee;
    margin: 2rem auto;
    width: 80%;
}
.form-thank-you .next-step-info {
    font-size: 0.95rem;
    color: #444444;
    margin-bottom: 1rem;
    font-weight: 600;
}
.form-thank-you .linkedin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0077B5;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.form-thank-you .linkedin-btn:hover {
    background-color: #005E8E;
    transform: translateY(-2px);
}
.form-thank-you .linkedin-btn .linkedin-icon {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}
.form-thank-you .additional-resource {
    font-size: 0.9rem;
    color: #666666;
    margin-top: 1.5rem;
}
.form-thank-you .additional-resource a {
    color: #e7c21b;
    text-decoration: underline;
    font-weight: 600;
}
.form-thank-you .additional-resource a:hover {
    color: #d4ac0d;
}
.form-sending-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.7);
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 600; color: #333;
    border-radius: 8px;
    z-index: 10;
}
.form-sending-overlay.active { display: flex; }

/* FAQ Section Styles */
.faq-container {
    font-family: 'Nunito', sans-serif;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}
.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}
.faq-question {
    background-color: #fdfdfd;
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    font-family: inherit;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #444;
    transition: background-color 0.3s ease;
    position: relative;
}
.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: #F7CB18; /* Brand Yellow */
    opacity: 0;
    transition: opacity 0.3s ease;
}
.faq-question:hover::before,
.faq-question.active::before {
    opacity: 1;
}
.faq-question:hover {
    background-color: #f5f5f5;
}
.faq-icon {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #555;
    margin-left: 15px;
}
.faq-question.active .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #fff;
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    color: #555;
    line-height: 1.7;
}
.faq-answer p {
    padding: 20px 25px;
}
.faq-answer a {
    color: #007bff;
    text-decoration: underline;
    font-weight: 600;
}
.faq-answer a:hover {
    color: #0056b3;
}

/* Rotating Verb from Hero Section */
.rotating-verb {
    color: #F7CB18; /* This is your brand's yellow */
    display: inline-block;
    vertical-align: baseline;
    text-align: left;
    opacity: 1;
    font-weight: bold; /* Make it bold like the original */
    transition: opacity 0.6s ease-in-out;
}
.rotating-verb.fading-out {
    opacity: 0;
}

/* --- Quiz Result Area Styles --- */
.hr-result-area {
  display: none; /* Hidden by default */
  text-align: center;
}

.hr-analysis-category {
  font-weight: 800;
  font-size: 1.5em;
  color: #F7CB18; /* Brand yellow color */
  margin-bottom: 0.75em;
}

.hr-analysis-description {
  margin-top: 0;
  text-align: left;
}

/* --- Custom Styles for Legal Pages (politica-de-uso, etc.) --- */
.legal-content {
    color: #374151; /* A slightly softer black for readability */
}

.legal-content h1 {
    font-size: 2.25rem; /* 36px */
    font-weight: 800;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb; /* A light underline for the main title */
}

.legal-content h2 {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    margin-top: 3rem; /* More space before a new section */
    margin-bottom: 1.25rem;
}

.legal-content h3 {
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol,
.legal-content dl {
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.5rem;
    list-style-position: outside;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: #F7CB18; /* Your brand yellow */
    text-decoration: underline;
    font-weight: 600;
}

.legal-content a:hover {
    color: #ca9b0d;
}

.legal-content strong {
    font-weight: 700;
    color: #111827;
}

.legal-content dt {
    font-weight: bold;
    margin-top: 1rem;
}

.legal-content dd {
    margin-left: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #e5e7eb;
}

.legal-content hr {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

    .portal-switch-btn {
        padding: 8px 16px;
        border: 2px solid #D1D5DB; /* gray-300 */
        border-radius: 9999px;
        font-weight: 600;
        color: #4B5563; /* gray-600 */
        transition: all 0.2s ease-in-out;
        background-color: white;
    }
    .portal-switch-btn:hover {
        background-color: #FBBF24; /* yellow-400 */
        border-color: #FBBF24;
        color: #1F2937; /* gray-800 */
    }
    .portal-switch-btn.active {
        background-color: #FBBF24; /* yellow-400 */
        border-color: #F59E0B; /* yellow-500 */
        color: #1F2937; /* gray-800 */
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    }