/* 
   DESIGN SYSTEM - UNHAS 360
   Theme: Light Premium (White, Beige, Copper)
*/

:root {
    /* Colors */
    --primary: #bd794c;
    --primary-light: #d4a383;
    --primary-dark: #8c522e;
    --primary-gradient: linear-gradient(135deg, #bd794c, #dba078);

    --bg-white: #ffffff;
    --bg-beige: #fdf5ec;
    --bg-cream: #f5e6d3;

    --text-main: #2a1a08;
    --text-muted: #7a4e2d;
    --text-white: #ffffff;

    /* Spacing & Borders */
    --section-padding: clamp(60px, 10vw, 120px) 5%;
    --border-radius: 4px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── BASE ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.serif {
    font-family: 'PT Serif', serif;
}

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

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

/* ── COMPONENTS ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(189, 121, 76, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(189, 121, 76, 0.3);
}

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

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

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(189, 121, 76, 0.1);
    transition: var(--transition);
}

.nav-logo img {
    height: clamp(24px, 4vw, 32px);
}

.nav-links {
    display: flex;
    gap: clamp(20px, 3vw, 40px);
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 26, 8, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #fdf5ec 0%, #ffffff 50%);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 24px;
    display: block;
}

.hero h1 {
    font-size: clamp(38px, 8vw, 72px);
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 24px;
}

.hero h1 em {
    color: var(--primary);
    font-style: italic;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80%;
    background: var(--bg-cream);
    border-radius: 50% 50% 0 0;
    z-index: 1;
}

.hero-photo {
    position: relative;
    z-index: 2;
    max-height: 80vh;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* ── SECTIONS ── */
section {
    padding: var(--section-padding);
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 13px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    margin-bottom: 24px;
}

/* ── CURSOS ── */
.cursos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.curso-card {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(189, 121, 76, 0.1);
    transition: var(--transition);
}

.curso-card:hover {
    transform: translateY(-5px);
    border-color: rgba(189, 121, 76, 0.35);
    box-shadow: 0 12px 32px rgba(189, 121, 76, 0.10);
}

/* ── HISTORIA ── */
.historia {
    background: var(--bg-beige);
}

.historia-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary);
    border-left: 4px solid var(--primary);
    padding-left: 30px;
    margin: 40px 0;
}

/* ── DEPOIMENTOS ── */
.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.depoimento-card {
    background: var(--bg-beige);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.depoimento-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

/* ── FAQ ── */
.faq {
    background: var(--bg-beige);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(189, 121, 76, 0.1);
}

.faq-question {
    padding: 20px 30px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: 'PT Serif', serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.faq-question::after {
    content: '+';
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding-bottom: 30px;
    max-height: 300px;
}

/* ── CTA ── */
.cta-section {
    background: var(--primary);
    color: var(--text-white);
    text-align: center;
}

.btn-white {
    background: var(--bg-white);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ── FOOTER ── */
footer {
    padding: 60px 5%;
    background: var(--bg-white);
    border-top: 1px solid rgba(189, 121, 76, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 30px;
}

.footer-left {
    text-align: left;
}

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

.footer-right {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-center img {
    height: 18px;
    margin: 0 auto 15px;
    display: block;
    transition: var(--transition);
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    border: 1px solid var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

/* ── FLOAT & MODAL ── */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 26, 8, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

/* ── SECTION TITLE EM ── */
.section-title em {
    color: var(--primary);
    font-style: italic;
}

/* ── BUTTON MODIFIER ── */
.btn-full {
    display: block;
    width: 100%;
    text-align: center;
}

/* ── CURSO CARD INTERNALS ── */
.curso-card h3 {
    font-size: 24px;
    margin: 12px 0 16px;
}

.price {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ── MODAL INTERNALS ── */
.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary);
}

.modal-title {
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ── FORM COMPONENTS ── */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(189, 121, 76, 0.25);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-main);
    background: var(--bg-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(189, 121, 76, 0.12);
}

.form-input::placeholder {
    color: #c0a898;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23bd794c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

/* ── DEPOIMENTOS INTERNALS ── */
.depoimento-text {
    font-size: 15px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
}

.depoimento-author {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
}

.depoimento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(189, 121, 76, 0.08);
}

/* ── HISTORIA IMAGE ── */
.historia-img {
    width: 100%;
    border-radius: 4px;
    filter: drop-shadow(0 16px 32px rgba(42, 26, 8, 0.12));
}

/* ── CTA SECTION INTERNALS ── */
.cta-section h2 {
    font-size: clamp(28px, 4vw, 44px);
    color: var(--text-white);
    margin-bottom: 16px;
}

.cta-section h2 em {
    font-style: italic;
    opacity: 0.85;
}

.cta-section p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* ── FOOTER INTERNALS ── */
.footer-credits {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-right a {
    color: var(--primary);
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

.social-link:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

.modal-container {
    background: var(--bg-white);
    width: 90%;
    max-width: 450px;
    padding: 40px;
    border-radius: var(--border-radius);
    position: relative;
}

/* ── RESPONSIVE CONSOLIDATED ── */
@media (max-width: 900px) {
    nav {
        padding: 15px 5%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1080;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .hero-inner,
    .cursos-grid,
    .historia-grid,
    .depoimentos-grid,
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero {
        text-align: center;
        padding-top: 100px;
    }

    .hero-sub {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }

    .hero-visual {
        order: -1;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        text-align: center;
    }

    .footer-center img {
        height: 16px !important;
        width: auto !important;
        margin: 0 auto 15px;
        display: block;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 28px;
    }

    .modal-container .btn,
    .curso-card .btn {
        width: 100%;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .modal-container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
    }

    .curso-card {
        padding: 32px 24px;
    }

    .depoimento-card {
        padding: 28px 24px;
    }

    .modal-container {
        padding: 24px 16px;
        width: 95%;
    }

    .faq-question {
        font-size: 16px;
        padding: 16px 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
}