/* =============================================
   FESTIVAL LUSITANO DO CIRCO - Design System
   Dark Theme • Glassmorphism • Gold Accents
   ============================================= */

/* --- CSS Variables --- */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --bg-glass-hover: rgba(255, 255, 255, 0.1);
    --gold: #D4AF37;
    --gold-light: #f0d060;
    --gold-dark: #b8960c;
    --red: #c0392b;
    --red-dark: #8e2a1e;
    --text-primary: #f0f0f5;
    --text-secondary: rgba(240, 240, 245, 0.65);
    --text-muted: rgba(240, 240, 245, 0.4);
    --border: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(212, 175, 55, 0.3);

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, var(--gold), var(--gold-light));
    --gradient-hero: linear-gradient(135deg, var(--gold-dark), var(--red));
    --gradient-dark: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
    --gradient-card: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(192, 57, 43, 0.05));

    /* Spacing */
    --section-pad: clamp(60px, 8vw, 120px);
    --container-max: 1200px;

    /* Typography */
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s var(--ease);

    /* Radius */
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}


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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--gold-light);
}

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


/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 100px;
}

.section-title {
    margin-bottom: 20px;
}

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

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 650px;
    margin-bottom: 40px;
}

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

.text-center .section-desc {
    margin-left: auto;
    margin-right: auto;
}


/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-gold {
    background: var(--gradient-gold);
    color: #0a0a0f;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
    color: #0a0a0f;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}


/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo-img {
    height: 42px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .nav-logo-img {
    height: 36px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

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


/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.lang-current:hover {
    border-color: var(--gold);
    background: var(--bg-glass-hover);
}

.lang-arrow {
    transition: var(--transition);
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}

.lang-flag {
    font-size: 1.2em;
}

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

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

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

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

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


/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--section-pad) 24px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.6);
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.15) 0%, rgba(10, 10, 15, 0.5) 70%, var(--bg-primary) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    animation: fadeUp 1s var(--ease) 0.2s both;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 40%, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounceDown 2s infinite;
}

.hero-scroll svg {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
}


/* --- Section --- */
.section {
    padding: var(--section-pad) 0;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 3px;
    margin: 16px auto 0;
}


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

.glass-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-gold);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.glass-card .card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    color: var(--gold);
    font-size: 1.5rem;
}

.glass-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}


/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 48px;
}


/* --- About / Team --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.about-text h2 {
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

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

.team-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--border-gold);
    transition: var(--transition);
}

.team-card:hover .team-avatar {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.team-card h4 {
    font-family: var(--font-heading);
    margin-bottom: 4px;
    color: var(--text-primary);
}

.team-card .team-role {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.team-card .team-email {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.team-social {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.team-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
}

.team-social a:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.team-social svg {
    width: 16px;
    height: 16px;
}


/* --- Program --- */
.program-coming {
    text-align: center;
    padding: 80px 0;
}

.program-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 3s infinite;
}

.program-icon svg {
    width: 48px;
    height: 48px;
    color: var(--gold);
}

.program-coming p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}


/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.contact-card {
    text-align: center;
    padding: 40px 24px;
}

.contact-card .card-icon {
    margin: 0 auto 20px;
}

.contact-card h4 {
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.contact-card a.email-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-form-section {
    margin-top: 80px;
}

.contact-form {
    max-width: 640px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: var(--bg-glass-hover);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


/* --- Legal Pages --- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 120px;
}

.legal-content h1 {
    margin-bottom: 32px;
    font-size: 2.5rem;
}

.legal-content h2 {
    margin: 40px 0 16px;
    font-size: 1.5rem;
    color: var(--gold);
}

.legal-content h3 {
    margin: 24px 0 12px;
    font-size: 1.2rem;
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-content ul {
    color: var(--text-secondary);
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content li {
    margin-bottom: 8px;
}


/* --- Footer --- */
.footer {
    padding: 80px 0 32px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-links-col h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 5px 0;
    transition: var(--transition);
}

.footer-links-col a:hover {
    color: var(--gold);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}


/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.2);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Stagger children */
.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0.05s;
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0.15s;
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0.2s;
}

.stagger-children.visible>* {
    opacity: 1;
    transform: translateY(0);
}


/* --- Page Header (non-home) --- */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-header h1 {
    position: relative;
    z-index: 1;
}


/* --- Responsive --- */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.5rem;
        padding: 12px 24px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1000;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }
}