/* ============================================
   MARIO LELLIS — Silence-Inspired Brutalist
   Reference: Silence Skate Community (Dribbble)
   ============================================ */

/* --- Variables --- */
:root {
    --black: #111111;
    --dark: #1a1a1a;
    --light: #f5f5f0;
    --white: #ffffff;
    --gray: #888;
    --gray-dark: #444;
    --accent: #FF4500;
    --accent-dim: rgba(255, 69, 0, 0.08);
    --text-dark: #111111;
    --text-light: #f5f5f0;
    --sans: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
    --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
    font-family: var(--body);
    background: var(--light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--white); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.accent { color: var(--accent); }

/* ═══════════ HERO ═══════════ */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 500px;
    overflow: hidden;
    background: var(--black);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.1) 40%,
        rgba(0,0,0,0.6) 80%,
        rgba(0,0,0,0.85) 100%
    );
}

/* Nav */
.nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
}

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

.logo-img {
    height: 28px;
    width: auto;
}

.nav-info {
    font-family: var(--body);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.08em;
}

.nav-cta {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.06em;
    transition: color 0.2s;
}

.nav-cta:hover {
    color: var(--accent);
}

/* Hero bottom */
.hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 40px 40px;
    z-index: 5;
    display: flex;
    align-items: flex-end;
}

.hero-label {
    position: absolute;
    left: 40px;
    bottom: calc(100% - 40px);
    font-family: var(--body);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    transform: translateY(-20px);
}

.hero-title {
    font-family: var(--sans);
    font-size: clamp(5rem, 14vw, 12rem);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.04em;
    color: var(--accent);
    text-transform: lowercase;
}

.hero-side {
    position: absolute;
    right: 40px;
    bottom: 40px;
    font-family: var(--body);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* ═══════════ SECTIONS ═══════════ */
.section { padding: 100px 0; }
.section-light { background: var(--light); color: var(--text-dark); }
.section-dark { background: var(--black); color: var(--text-light); }

/* ═══════════ PROGRAMS (Light) ═══════════ */
.programs-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
}

.tag-icon {
    color: var(--accent);
    font-size: 1rem;
}

.tag-text {
    font-family: var(--body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
}

.tag-text-dark {
    font-family: var(--body);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    margin-right: 16px;
}

.programs-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.program-item {
    padding: 20px 0;
    cursor: pointer;
}

.program-item h3 {
    font-family: var(--sans);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--gray);
    transition: color 0.2s;
}

.program-item:hover h3 {
    color: var(--text-dark);
}

.program-item.active h3 {
    font-weight: 700;
    color: var(--text-dark);
    font-style: italic;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.program-item p {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--gray-dark);
    line-height: 1.7;
    max-width: 400px;
}

.program-item p a {
    color: var(--accent);
    font-weight: 600;
}

.program-item p a:hover {
    text-decoration: underline;
}

.program-line {
    height: 1px;
    background: #ddd;
    margin-top: 20px;
}

.programs-desc {
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.7;
    max-width: 380px;
}

.programs-image {
    position: relative;
    display: flex;
}

.image-accent-bar {
    width: 6px;
    background: var(--accent);
    flex-shrink: 0;
}

.programs-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 0 12px 12px 0;
}

/* ═══════════ MARQUEE ═══════════ */
.marquee-wrap {
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 14px 0;
}

.marquee {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee span {
    font-family: var(--body);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══════════ TRAJETÓRIA (Dark) ═══════════ */
.traj-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    padding-top: 40px;
}

.traj-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 80px;
}

.stats-card {
    background: var(--light);
    color: var(--text-dark);
    border-radius: 16px;
    padding: 28px 32px;
    width: 280px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.stats-card-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.sc-num {
    font-family: var(--sans);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 60px;
}

.sc-label {
    font-size: 0.8rem;
    color: var(--gray);
}

.traj-bigtext {
    text-align: right;
}

.traj-bigtext span {
    display: block;
    font-family: var(--sans);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--white);
}

/* Timeline entries */
.traj-entries {
    display: flex;
    flex-direction: column;
}

.traj-entry {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 24px;
    align-items: start;
    padding: 28px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s;
}

.traj-entry:hover {
    background: rgba(255,255,255,0.02);
    padding-left: 12px;
    padding-right: 12px;
    margin-left: -12px;
    margin-right: -12px;
}

.traj-entry-accent {
    background: rgba(255, 69, 0, 0.06);
    padding-left: 12px;
    padding-right: 12px;
    margin-left: -12px;
    margin-right: -12px;
    border-left: 3px solid var(--accent);
}

.te-year {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    padding-top: 2px;
}

.te-content h4 {
    font-family: var(--sans);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.te-logo {
    width: 180px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 4px;
}

.te-role {
    font-family: var(--body);
    font-size: 0.8rem;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.te-content p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    max-width: 480px;
}

.te-link {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
    align-self: center;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.te-link:hover { opacity: 0.7; }

.te-tag {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    align-self: center;
}

/* ═══════════ GALERIA (Light) ═══════════ */
.gal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
}

.gal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 20px;
    align-items: start;
}

.gal-img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.gal-col:first-child .gal-img {
    height: 350px;
    margin-top: 60px;
}

.gal-col-center {
    position: relative;
}

.gal-col-center .gal-img {
    height: 420px;
}

.gal-card {
    position: absolute;
    bottom: -30px;
    left: -20px;
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    width: 300px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.gc-date {
    font-family: var(--body);
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.gal-card h4 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.gal-card p {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 12px;
}

.gc-link {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gal-bigtext {
    margin-top: 24px;
}

.gal-bigtext span {
    display: block;
    font-family: var(--sans);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.gal-bigtext span:first-child {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--gray);
    margin-bottom: 4px;
    font-style: italic;
}

.gal-bigtext span:last-child {
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--text-dark);
}

/* ═══════════ FOOTER (Dark) ═══════════ */
.footer {
    background: var(--black);
    color: var(--text-light);
    padding: 32px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

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

.footer-logo {
    height: 24px;
    width: auto;
    opacity: 0.4;
}

.fg-label {
    font-family: var(--body);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.back-top {
    font-family: var(--body);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
}

.back-top:hover {
    color: var(--accent);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
    .container { padding: 0 24px; }
    .nav { padding: 20px 24px; }
    .hero-bottom { padding: 0 24px 32px; }
    .hero-label { left: 24px; }
    .hero-side { right: 24px; bottom: 32px; }

    .programs-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .programs-image img {
        height: 350px;
        border-radius: 0 12px 12px 0;
    }

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

    .traj-bigtext {
        text-align: left;
    }

    .traj-bigtext span {
        font-size: clamp(3rem, 8vw, 5rem);
    }

    .stats-card {
        width: 100%;
    }

    .traj-entry {
        grid-template-columns: 80px 1fr;
        gap: 16px;
    }

    .te-link, .te-tag {
        grid-column: 2;
    }

    .gal-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gal-col:first-child .gal-img {
        height: 250px;
        margin-top: 0;
    }

    .gal-col-center .gal-img {
        height: 300px;
    }

    .gal-card {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        margin-top: -40px;
        margin-left: 20px;
        margin-right: 20px;
        width: calc(100% - 40px);
    }

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

@media (max-width: 600px) {
    .hero-title {
        font-size: 4rem;
    }

    .nav-info {
        display: none;
    }

    .program-item h3 {
        font-size: 1.3rem;
    }

    .traj-entry {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .te-year {
        font-size: 0.75rem;
    }

    .footer-bigtext {
        font-size: 3.5rem;
    }

    .gal-bigtext span:last-child {
        font-size: 2.5rem;
    }
}
