/* 
   Tutor Website Professional Styles
   Pure CSS - No Frameworks 
*/

:root {
    /* Colors */
    --primary-color: #0f172a;
    /* Navy Blue */
    --primary-light: #1e293b;
    --accent-color: #fbbf24;
    /* Gold/Amber */
    --accent-hover: #d97706;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --error-color: #ef4444;
    --success-color: #10b981;

    /* Fonts */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Merriweather', serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 70px;
    --radius: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
body.dark-mode {
    --primary-color: #3b82f6;
    /* Lighter blue for dark bg */
    --primary-light: #60a5fa;
    --bg-light: #0f172a;
    /* Dark bg */
    --bg-white: #1e293b;
    /* Slightly lighter dark bg */
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Specific overrides for dark mode that variables can't handle perfectly */
body.dark-mode .methodology {
    background-color: #1e293b;
    /* Darker than variable if needed, or keep same */
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .hero-subtitle {
    background-color: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

body.dark-mode .contact-wrapper {
    background-color: #1e293b;
}

body.dark-mode .contact-form,
body.dark-mode .faq-item,
body.dark-mode .card,
body.dark-mode .header {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark-mode .faq-question:hover {
    background-color: #334155;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    /* Usando rem para melhor escalabilidade */
}

.text-center {
    text-align: center;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

/* Header & Nav */
.header {
    height: var(--header-height);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--accent-hover);
}

.nav-link.btn-contact {
    padding: 8px 16px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: var(--radius);
}

.nav-link.btn-contact:hover {
    background-color: var(--accent-hover);
    color: #fff;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-main);
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--bg-light);
}

body.dark-mode .theme-toggle {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Hide/Show logic for icons */
.theme-toggle .icon-moon {
    display: block;
}

.theme-toggle .icon-sun {
    display: none;
}

body.dark-mode .theme-toggle .icon-moon {
    display: none;
}

body.dark-mode .theme-toggle .icon-sun {
    display: block;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    margin-top: var(--header-height);
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #dbeafe 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-subtitle {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(251, 191, 36, 0.2);
    color: #b45309;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: #2563eb;
    position: relative;
    z-index: 1;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: var(--accent-color);
    opacity: 0.3;
    z-index: -1;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.image-placeholder {
    width: 100%;
    max-width: 450px;
    /* Um pouco mais largo para dar espaço aos braços */
    height: auto;
    aspect-ratio: 1/1;
    /* Quadrado para equilibrar altura e largura */
    border-radius: 20px;
    display: flex;
    align-items: flex-end;
    /* Alinha a imagem no fundo do container */
    justify-content: center;
    position: relative;
    overflow: visible;
    box-shadow: var(--shadow-lg);
    background-color: transparent;
}

/* Estilo da imagem interna */
.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Garante que nada seja cortado */
    object-position: bottom center;
    /* Fixa a base da imagem no fundo */
    display: block;
    /* Zoom suave mantendo a base alinhada */
    transform: scale(1.2);
    transform-origin: bottom center;
    /* Opacidade diminuindo suavemente na parte de baixo */
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* About Section */
.about {
    background-color: var(--bg-white);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

.about-image .image-placeholder {
    width: 100%;
    max-width: 500px;
    height: 400px;
    /* Altura fixa ou auto com aspect-ratio */
    aspect-ratio: 16/9;
    /* Exemplo de proporção para a seção sobre */
    border-radius: var(--radius);
    margin: 0 auto;
    /* Centraliza se for menor que o pai */
}

.about-image .image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.about-content {
    flex: 1;
}

.credentials-list {
    margin-top: 20px;
}

.credentials-list li {
    margin-bottom: 10px;
    font-weight: 500;
}

/* Cards & Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Methodology */
.methodology {
    background-color: var(--primary-color);
    color: #fff;
}

.methodology .section-title,
.methodology .section-subtitle {
    color: #fff;
}

.methodology .section-subtitle {
    opacity: 0.8;
}

.methodology-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    position: relative;
    padding: 20px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: 10px;
    z-index: 0;
}

.step h3 {
    position: relative;
    z-index: 1;
    color: #fff;
    margin-bottom: 10px;
}

.step p {
    position: relative;
    z-index: 1;
    color: #cbd5e1;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 20px;
    position: relative;
}

.quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent-color);
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 0.3;
}

.author strong {
    display: block;
    color: var(--primary-color);
}

.author span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Plans */
.plans {
    background-color: var(--bg-light);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.plan-card {
    text-align: center;
    position: relative;
}

.plan-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.plan-features {
    margin-bottom: 30px;
    text-align: left;
    padding-left: 20px;
}

.plan-features li {
    margin-bottom: 10px;
    position: relative;
}

.plan-features li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 10px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--bg-white);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: #f1f5f9;
}

.faq-question .icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-question.active .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.faq-answer p {
    padding: 20px 0;
    color: var(--text-muted);
}

/* Contact */
.contact {
    background-color: var(--bg-white);
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    background-color: #f1f5f9;
    padding: 50px;
    border-radius: 20px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-form {
    flex: 1;
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.error-message {
    display: none;
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error-color);
}

.form-group.error .error-message {
    display: block;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: var(--success-color);
}

.form-feedback {
    margin-top: 15px;
    padding: 10px;
    border-radius: var(--radius);
    text-align: center;
    display: none;
}

.form-feedback.success {
    background-color: #d1fae5;
    color: #065f46;
    display: block;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    color: #fff;
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #fff;
}

.footer span {
    font-weight: bold;
    transition: all 0.1s ease-out;
}

.footer span:hover {
    font-weight: bold;
    text-decoration: underline;
    transition: all 0.1s ease-in;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {

    /* Tablet Landscape / Pequenos Laptops */
    .hero-title {
        font-size: 2.8rem;
    }

    .container {
        padding: 0 2rem;
    }
}

@media (max-width: 900px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
        background: transparent;
        /* Garante fundo transparente */
    }

    /* Menu Mobile Aprimorado */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        /* Largura total em mobile para evitar cliques fora */
        max-width: 300px;
        /* Limite de largura do drawer */
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 25px;
        width: 100%;
        text-align: center;
    }

    .hero-container {
        flex-direction: column-reverse;
        padding-top: 2rem;
        text-align: center;
        gap: 2rem;
    }

    .hero {
        padding: 60px 0;
        /* Reduz padding vertical */
        min-height: auto;
        /* Remove altura mínima forçada */
    }

    .hero-subtitle {
        margin: 0 auto 15px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        /* Permite que botões quebrem linha se necessário */
    }

    .about-container {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-wrapper {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        /* Um card por linha em mobile */
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .image-placeholder {
        max-width: 100%;
        /* Ocupa largura total disponível */
        height: auto;
        aspect-ratio: 1/1;
        /* Quadrado em telas muito pequenas ou manter 4/5 */
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}