/* ===================================================
   OSMAIR DOJO / DOJANG TAEKWONDO - LOVABLE THEME DESIGN
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --korea-red: #dc2626;
    --korea-red-dark: #b91c1c;
    --korea-red-light: #ef4444;
    --korea-blue: #2563eb;
    --korea-blue-dark: #1d4ed8;
    --ink: #111827;
    --ink-muted: #6b7280;
    --surface: #f9fafb;
    --surface-secondary: #f3f4f6;
    --border: #e5e7eb;
    --card: #ffffff;
    --radius: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-pill: 9999px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-lift: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background-color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

/* ================= Topbar ================= */
.topbar {
    background: #0b0f19;
    color: #9ca3af;
    font-size: 0.825rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}
.topbar a:hover {
    color: var(--korea-red-light);
}

/* ================= Navbar ================= */
.main-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.main-navbar .navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--ink) !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-emblem {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--korea-red) 0%, var(--korea-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.main-navbar .nav-link {
    color: #4b5563 !important;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--korea-red) !important;
    background-color: rgba(220, 38, 38, 0.05);
}

/* ================= Buttons ================= */
.btn-korea-red {
    background-color: var(--korea-red);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    border: none;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
    transition: all 0.25s ease;
}

.btn-korea-red:hover {
    background-color: var(--korea-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

.btn-korea-outline {
    background-color: transparent;
    color: var(--ink) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--border);
    transition: all 0.25s ease;
}

.btn-korea-outline:hover {
    border-color: var(--ink);
    background-color: var(--surface);
    transform: translateY(-2px);
}

/* ================= Section Badges & Korean Rule ================= */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(220, 38, 38, 0.08);
    color: var(--korea-red);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(220, 38, 38, 0.15);
    margin-bottom: 1rem;
}

.korea-rule {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--korea-red) 0%, var(--korea-blue) 100%);
    border-radius: 999px;
}

.korea-rule-sm {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--korea-red) 0%, var(--korea-blue) 100%);
    border-radius: 999px;
    margin: 1rem 0;
}

/* ================= Hero Section ================= */
.hero-lovable {
    background: radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.05) 0%, rgba(255, 255, 255, 1) 60%),
                radial-gradient(circle at 10% 80%, rgba(37, 99, 235, 0.04) 0%, rgba(255, 255, 255, 1) 50%),
                #ffffff;
    padding: 90px 0 70px 0;
    position: relative;
    overflow: hidden;
}

.hero-lovable .hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.hero-lovable .hero-subtitle {
    font-size: 1.15rem;
    color: var(--ink-muted);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lift);
    border: 1px solid var(--border);
}

.hero-image-wrapper img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.03);
}

.hero-floating-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 14px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ================= Feature Cards (O que você desenvolve) ================= */
.feature-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.8rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--korea-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: #cbd5e1;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--korea-red);
    font-size: 1.4rem;
    margin-bottom: 1.4rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-box {
    background: var(--korea-red);
    color: #ffffff;
    border-color: var(--korea-red);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

/* ================= Modality & Class Cards ================= */
.modality-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modality-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: #cbd5e1;
}

.modality-card-img {
    height: 230px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modality-card:hover .modality-card-img {
    transform: scale(1.05);
}

/* ================= Pricing & Plans ================= */
.plan-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-card.featured {
    border: 2px solid var(--korea-red);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.12);
    transform: scale(1.02);
}

.plan-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lift);
}

.plan-featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--korea-red);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.725rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 16px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
}

/* ================= Schedule Timetable ================= */
.schedule-table-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.schedule-row {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-row:hover {
    background-color: var(--surface);
}

/* ================= Testimonials ================= */
.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

/* ================= CTA Experimental Banner ================= */
.cta-banner-lovable {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    border-radius: var(--radius-lg);
    color: #ffffff;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lift);
}

.cta-banner-lovable::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.25) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

/* ================= Footer ================= */
.footer-lovable {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-lovable a {
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-lovable a:hover {
    color: var(--korea-red);
}

.footer-bottom-dots span {
    display: inline-block;
    border-radius: 50%;
}

/* ================= Floating WhatsApp Button ================= */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--korea-red);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.55);
}

/* ================= Taekwondo Dojang Theme ================= */
body.theme-lovable {
    --korea-red: #c91f2c;
    --korea-red-dark: #a31420;
    --korea-red-light: #ef4444;
    --ink: #171717;
    --ink-muted: #626262;
    --surface: #f5f5f4;
    --surface-secondary: #e7e5e4;
    --border: #e4e4e7;
    background: #fff;
}

body.theme-lovable .topbar {
    background: #171717;
    color: #d4d4d4;
}

body.theme-lovable .main-navbar {
    padding: 12px 0;
    border-bottom-color: #e7e5e4;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
}

body.theme-lovable .main-navbar .nav-link {
    text-transform: none;
    letter-spacing: 0;
}

body.theme-lovable .brand-emblem {
    background: linear-gradient(145deg, #171717 0 48%, var(--korea-red) 49% 100%);
}

body.theme-lovable .hero-lovable {
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 76px 0;
    color: #fff;
    background:
        radial-gradient(ellipse at 5% 100%, rgba(201, 31, 44, .26), transparent 42%),
        linear-gradient(115deg, #111 0%, #1c1c1c 58%, #292524 100%);
}

body.theme-lovable .hero-lovable::before {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, transparent 0 42px, rgba(255, 255, 255, .018) 43px 44px);
    content: '';
    pointer-events: none;
}

body.theme-lovable .hero-lovable > .container {
    position: relative;
    z-index: 1;
}

body.theme-lovable .hero-lovable .section-badge {
    color: #fecaca;
    border-color: rgba(252, 165, 165, .35);
    background: rgba(201, 31, 44, .17);
}

body.theme-lovable .hero-lovable .hero-title {
    color: #fff;
    max-width: 620px;
    font-size: clamp(2.6rem, 5.7vw, 4.6rem);
}

body.theme-lovable .hero-lovable .hero-title span {
    color: #f87171;
}

body.theme-lovable .hero-lovable .hero-subtitle {
    color: #d4d4d4;
}

body.theme-lovable .lovable-hero-points {
    color: #d4d4d4;
}

body.theme-lovable .lovable-hero-points i {
    color: #f87171;
    margin-right: 6px;
}

body.theme-lovable .hero-image-wrapper {
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .42);
}

body.theme-lovable .hero-image-wrapper::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .28));
    content: '';
    pointer-events: none;
}

body.theme-lovable .hero-image-wrapper img {
    height: clamp(360px, 42vw, 510px);
}

body.theme-lovable .hero-floating-card {
    z-index: 1;
    left: 20px;
    bottom: 20px;
    max-width: calc(100% - 40px);
}

body.theme-lovable .lovable-about,
body.theme-lovable .lovable-values,
body.theme-lovable .lovable-modalities,
body.theme-lovable #horarios,
body.theme-lovable #planos,
body.theme-lovable #noticias {
    padding-top: 88px !important;
    padding-bottom: 88px !important;
}

body.theme-lovable .lovable-about {
    background: #f5f5f4 !important;
}

body.theme-lovable .lovable-about .section-badge,
body.theme-lovable .lovable-values .section-badge,
body.theme-lovable .lovable-modalities .section-badge,
body.theme-lovable #horarios .section-badge,
body.theme-lovable #planos .section-badge,
body.theme-lovable #noticias .section-badge {
    color: var(--korea-red);
    background: rgba(201, 31, 44, .07);
    border-color: rgba(201, 31, 44, .16);
}

body.theme-lovable .lovable-about h2,
body.theme-lovable .lovable-values h2,
body.theme-lovable .lovable-modalities h2,
body.theme-lovable #horarios h2,
body.theme-lovable #planos h2,
body.theme-lovable #noticias h2 {
    letter-spacing: -.035em;
}

body.theme-lovable .lovable-about img {
    border-radius: 18px !important;
}

body.theme-lovable .feature-card,
body.theme-lovable .modality-card,
body.theme-lovable .schedule-table-card,
body.theme-lovable .plan-card,
body.theme-lovable .testimonial-card {
    border-radius: 16px;
}

body.theme-lovable .lovable-values .feature-card {
    padding: 30px 26px;
    border-top: 3px solid transparent;
}

body.theme-lovable .lovable-values .feature-card:hover {
    border-top-color: var(--korea-red);
}

body.theme-lovable .lovable-values .feature-icon-box {
    background: #f5f5f4;
    border-color: #e7e5e4;
}

body.theme-lovable .lovable-modalities {
    background: #fff !important;
}

body.theme-lovable .lovable-modalities .modality-card {
    overflow: hidden;
}

body.theme-lovable .lovable-modalities .modality-card-img {
    height: 245px;
}

body.theme-lovable .lovable-modalities .modality-card .p-4 {
    padding: 24px !important;
}

body.theme-lovable #horarios .schedule-row {
    gap: 18px;
}

body.theme-lovable #planos {
    background: #f5f5f4 !important;
}

@media (max-width: 767.98px) {
    body.theme-lovable .hero-lovable {
        min-height: auto;
        padding: 58px 0;
    }

    body.theme-lovable .hero-lovable .hero-title {
        font-size: clamp(2.35rem, 11vw, 3.6rem);
    }

    body.theme-lovable .hero-image-wrapper img {
        height: 340px;
    }

    body.theme-lovable .lovable-about,
    body.theme-lovable .lovable-values,
    body.theme-lovable .lovable-modalities,
    body.theme-lovable #horarios,
    body.theme-lovable #planos,
    body.theme-lovable #noticias {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    body.theme-lovable #horarios .schedule-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
