/* =========================================
   Auto Escola Livre - Stylesheet
   ========================================= */

/* --- CSS Variables --- */
:root {
    /* Colors */
    --primary-blue: #1a365d;
    --primary-blue-light: #2563eb;
    --primary-yellow: #fbbf24;
    --primary-yellow-hover: #f59e0b;
    
    --text-main: #334155;
    --text-light: #64748b;
    --text-white: #ffffff;
    
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    
    --border-color: #e2e8f0;
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Layout & Shadows */
    --max-width: 1200px;
    --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-yellow: 0 10px 25px -5px rgba(251, 191, 36, 0.4);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-base: 0.3s ease-in-out;
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

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

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

.text-white {
    color: var(--text-white);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

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

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

.btn-outline:hover {
    background-color: var(--primary-yellow);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--primary-blue);
    color: var(--text-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-yellow);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
}

.logo-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-yellow);
    letter-spacing: 2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-yellow);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    background-color: var(--primary-blue);
    color: var(--text-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Abstract shapes background */
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.4) 0%, transparent 40%),
                radial-gradient(circle at bottom left, rgba(251, 191, 36, 0.1) 0%, transparent 30%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary-yellow);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem 2.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.feature-item i {
    color: var(--primary-yellow);
    font-size: 1.25rem;
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title.text-white {
    color: var(--text-white);
}

.section-description {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Pacotes 1ª Habilitação --- */
.pricing-included {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
    text-align: center;
    border-left: 4px solid var(--primary-yellow);
}

.pricing-included h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.included-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--text-main);
    font-weight: 500;
}

.included-list li {
    position: relative;
    padding-left: 1.5rem;
}

.included-list li::before {
    content: '•';
    color: var(--primary-yellow);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: var(--bg-main);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border: 2px solid var(--primary-yellow);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-yellow);
    color: var(--primary-blue);
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.25rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.pricing-card.popular .card-title {
    color: var(--primary-blue);
    font-weight: 800;
}

.card-price {
    color: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.card-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.card-price .value {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.card-price .cents {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.features {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.features li i {
    color: var(--primary-yellow);
}

.fees-alert {
    background-color: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}

.fees-alert p {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.fees-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.9rem;
}

.fees-details .divider {
    color: var(--border-color);
}

/* --- Aulas Extras & Simulado --- */
.classes-section {
    background-color: var(--primary-blue);
    position: relative;
    overflow: hidden;
}

/* Stripe background mimicking caution tape subtly */
.classes-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.02),
        rgba(0, 0, 0, 0.02) 20px,
        rgba(0, 0, 0, 0) 20px,
        rgba(0, 0, 0, 0) 40px
    );
}

.extra-classes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.extra-classes-image {
    background: var(--primary-yellow);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    min-height: 100%;
}

.caution-tape {
    position: absolute;
    width: 150%;
    height: 40px;
    background: repeating-linear-gradient(
        45deg,
        #000,
        #000 20px,
        var(--primary-yellow) 20px,
        var(--primary-yellow) 40px
    );
    top: 20px;
    left: -25%;
    transform: rotate(-5deg);
    box-shadow: var(--shadow-md);
}

.caution-tape.bottom {
    top: auto;
    bottom: 20px;
    transform: rotate(5deg);
}

.caution-content {
    color: var(--primary-blue);
    position: relative;
    z-index: 2;
}

.caution-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.caution-content p {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.large-icon {
    font-size: 4rem;
    color: var(--primary-blue);
}

.extra-classes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.class-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-white);
    backdrop-filter: blur(5px);
    transition: all var(--transition-base);
}

.class-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
    border-color: var(--primary-yellow);
}

.class-item.highlight {
    background: var(--primary-yellow);
    color: var(--primary-blue);
    border-color: var(--primary-yellow);
    font-weight: 700;
}

.class-item.highlight:hover {
    background: var(--primary-yellow-hover);
    transform: translateX(10px);
}

.class-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.class-info p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.class-item.highlight .class-info p {
    opacity: 1;
    font-weight: 500;
}

.class-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: auto;
    margin-right: 1.5rem;
}

.class-item .arrow {
    font-size: 1.25rem;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.class-item:hover .arrow {
    opacity: 1;
}

/* --- Depoimentos --- */
#depoimentos {
    background-color: var(--bg-main);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(251, 191, 36, 0.5); /* Subtle yellow border on hover */
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar i {
    font-size: 3rem;
    color: var(--primary-blue-light);
}

.testimonial-info h4 {
    color: var(--primary-blue);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stars {
    color: var(--primary-yellow);
    font-size: 0.875rem;
    display: flex;
    gap: 0.25rem;
}

.testimonial-body p {
    color: var(--text-main);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Contato --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-list li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-list i {
    font-size: 1.5rem;
    color: var(--primary-yellow);
    background: var(--bg-main);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.contact-list strong {
    color: var(--primary-blue);
    display: block;
    margin-bottom: 0.25rem;
}

.contact-list a {
    color: var(--primary-blue-light);
    font-weight: 600;
}

.contact-list a:hover {
    text-decoration: underline;
}

.contact-map {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    max-width: 400px;
}

.footer-logo .logo {
    margin-bottom: 1rem;
}

.footer-logo p {
    margin-top: 1rem;
}

.footer-links h3 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
    
    .extra-classes-container {
        grid-template-columns: 1fr;
    }
    
    .extra-classes-image {
        min-height: 250px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 72px; /* Header height approx */
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background-color: var(--primary-blue);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: left var(--transition-base);
        z-index: 999;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.25rem;
        display: block;
    }
    
    .nav-btn {
        width: 100%;
        margin-top: auto;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        max-width: 300px;
    }
    
    .included-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .class-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        position: relative;
    }
    
    .class-price {
        margin-left: 0;
    }
    
    .class-item .arrow {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
}
