/* ================================================
   SAPATINHO DE CRISTAL — Tema Cristal / Azul Noturno
   ================================================ */

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

:root {
    /* Cores */
    --bg-dark: #0a1628;
    --bg-dark-2: #0d1f3c;
    --bg-card: rgba(10, 22, 40, 0.6);
    --crystal-light: #C0D6E8;
    --crystal-white: #E8F0FE;
    --ice-blue: #4A90D9;
    --ice-blue-light: #7BB3F0;
    --text-main: #F0F4F8;
    --text-muted: #8BA4BE;
    --border-glass: rgba(192, 214, 232, 0.2);
    --border-glass-hover: rgba(192, 214, 232, 0.4);
    --white: #FFFFFF;
    --success: #34D399;
    --error: #F87171;
    --whatsapp: #25D366;

    /* Fontes */
    --font-cursive: 'Great Vibes', cursive;
    --font-serif: 'Cinzel', serif;
    --font-body: 'Poppins', sans-serif;

    /* Espaçamento */
    --container-max: 1200px;
    --section-padding: 100px 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Particles Canvas --- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Glass Card --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--ice-blue), var(--ice-blue-light));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(74, 144, 217, 0.3);
}

.btn--primary:hover {
    box-shadow: 0 6px 30px rgba(74, 144, 217, 0.5);
    transform: translateY(-2px);
}

.btn--secondary {
    background: transparent;
    color: var(--crystal-light);
    border: 1px solid var(--border-glass);
}

.btn--secondary:hover {
    background: rgba(74, 144, 217, 0.15);
    border-color: var(--ice-blue);
    color: var(--white);
}

.btn--full {
    width: 100%;
}

.btn--shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: none;
    animation: shimmer 3s infinite;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn__icon {
    flex-shrink: 0;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* --- Section --- */
.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--crystal-light), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.section__subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Fade In Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 10px 0;
}

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

.navbar__logo {
    text-decoration: none;
}

.navbar__logo-text {
    font-family: var(--font-cursive);
    font-size: 1.6rem;
    color: var(--crystal-white);
    transition: color 0.3s;
}

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

.navbar__menu {
    display: flex;
    gap: 32px;
}

.navbar__link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ice-blue);
    transition: width 0.3s;
}

.navbar__link:hover {
    color: var(--white);
}

.navbar__link:hover::after {
    width: 100%;
}

/* Mobile toggle */
.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ================================================
   HERO
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    z-index: 1;
}

.hero__content {
    max-width: 800px;
    width: 100%;
}

.hero__overtitle {
    font-family: var(--font-serif);
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    color: var(--ice-blue-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero__title {
    font-family: var(--font-cursive);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--crystal-white);
    margin-bottom: 12px;
    text-shadow: 0 0 40px rgba(192, 214, 232, 0.3);
}

.hero__subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.hero__video {
    margin-bottom: 40px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: 0 0 40px rgba(74, 144, 217, 0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero__cta {
    font-size: 1.1rem;
    padding: 16px 48px;
}

/* ================================================
   INSCRIÇÃO
   ================================================ */
.inscricao__card {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px;
}

/* --- Form --- */
.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--crystal-light);
}

.form__input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form__input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form__input:focus {
    border-color: var(--ice-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.form__input.invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.form__input.valid {
    border-color: var(--success);
}

.form__error {
    display: block;
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 4px;
    min-height: 1.2em;
}

/* Date input styling */
.form__input[type="date"] {
    color-scheme: dark;
}

/* Preço */
.inscricao__preco {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(74, 144, 217, 0.1);
    border: 1px solid rgba(74, 144, 217, 0.2);
    border-radius: 12px;
    margin-bottom: 24px;
}

.inscricao__preco-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.inscricao__preco-valor {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--crystal-light), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.inscricao__seguro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.inscricao__seguro svg {
    color: var(--success);
    stroke: var(--success);
}

/* ================================================
   PRODUTOS
   ================================================ */
.produtos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.produto-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.produto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(74, 144, 217, 0.2);
    border-color: var(--border-glass-hover);
}

.produto-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.produto-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.produto-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.produto-card__nome {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--crystal-white);
}

.produto-card__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.produto-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.produto-card__preco {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--crystal-light);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
}

.footer__inner {
    text-align: center;
}

.footer__logo {
    font-family: var(--font-cursive);
    font-size: 1.8rem;
    color: var(--crystal-white);
}

.footer__tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 30px 0;
}

.footer__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer__link:hover {
    color: var(--white);
}

.footer__link svg {
    stroke: var(--text-muted);
    transition: stroke 0.3s;
}

.footer__link:hover svg {
    stroke: var(--white);
}

.footer__bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer__credits {
    margin-top: 8px;
}

.footer__credits a {
    color: var(--ice-blue-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer__credits a:hover {
    color: var(--white);
}

/* ================================================
   WHATSAPP FLOAT
   ================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .produtos__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    /* Mobile Nav */
    .navbar__toggle {
        display: flex;
    }

    .navbar__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: rgba(10, 22, 40, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 80px 40px;
        gap: 24px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-glass);
    }

    .navbar__menu.open {
        right: 0;
    }

    .navbar__link {
        font-size: 1.1rem;
    }

    /* Hero */
    .hero {
        padding: 100px 20px 60px;
    }

    /* Inscrição */
    .inscricao__card {
        padding: 28px 20px;
    }

    /* Produtos */
    .produtos__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ================================================
   REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }

    #particles-canvas {
        display: none;
    }
}
