/* =========================================================
   SGSA — PÁGINA DE HISTÓRIA
   ========================================================= */

:root {
    --gold: #d7a33d;
    --gold-light: #f3ce78;
    --gold-soft: rgba(215, 163, 61, .22);

    --wine: #721b20;
    --wine-dark: #3d0c12;

    --purple: #180a20;
    --purple-light: #2a1235;

    --black: #080607;
    --text: #f4eee5;
    --muted: #bdb2aa;

    --menu-height: 82px;
    --axis-width: 2px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}


a {
    color: inherit;
    text-decoration: none;
}

.sgsa-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1000;
    background: rgba(255,255,255,.04);
}

.sgsa-progress-line {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    box-shadow: 0 0 14px rgba(215,163,61,.8);
}


/* =========================================================
   NAVEGAÇÃO LATERAL
   ========================================================= */

.timeline-nav {
    position: fixed;
    top: 50%;
    right: 28px;
    transform: translateY(-50%);
    z-index: 50;

    display: flex;
    flex-direction: column;
    gap: 9px;
    align-items: flex-end;
}

.timeline-nav-title {
    margin-bottom: 7px;
    color: rgba(255,255,255,.42);
    font-family: "Montserrat", sans-serif;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .2em;
}

.timeline-nav a {
    position: relative;
    padding-right: 18px;
    color: rgba(255,255,255,.4);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .08em;
    transition: .25s ease;
}

.timeline-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border: 1px solid rgba(215,163,61,.55);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: .25s ease;
}

.timeline-nav a:hover,
.timeline-nav a.active {
    color: var(--gold-light);
}

.timeline-nav a.active::after {
    background: var(--gold);
    box-shadow: 0 0 10px rgba(215,163,61,.8);
}


/* =========================================================
   HERO
   ========================================================= */

.sgsa-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(215,163,61,.16);
}

.hero-content {
    position: relative;
    z-index: 5;
    width: min(900px, 90%);
    text-align: center;
}

.hero-symbol-wrap {
    width: 235px;
    height: 235px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(215,163,61,.3);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215,163,61,.08), rgba(20,8,24,.3) 65%, transparent 66%);
    box-shadow:
        0 0 0 12px rgba(215,163,61,.025),
        0 0 55px rgba(215,163,61,.1);
    animation: floatSymbol 6s ease-in-out infinite;
}

.hero-symbol {
    width: 195px;
    max-height: 195px;
    object-fit: contain;
    filter: drop-shadow(0 12px 25px rgba(0,0,0,.65));
}

.hero-kicker,
.section-label {
    color: var(--gold);
    font-family: "Montserrat", sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .28em;
}

.hero-kicker {
    margin-bottom: 18px;
}

.sgsa-hero h1 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 600;
    line-height: .95;
    letter-spacing: -.055em;
}

.sgsa-hero h1 span,
.story-intro h2 span,
.future-section h2 span,
.thanks-section h2 span {
    color: var(--gold-light);
}

.hero-intro {
    max-width: 600px;
    margin: 30px auto 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.hero-scroll {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 42px;
    color: rgba(255,255,255,.72);
    font-family: "Montserrat", sans-serif;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .18em;
    transition: .25s ease;
}

.hero-scroll:hover {
    color: var(--gold-light);
    transform: translateY(4px);
}

.scroll-arrow {
    color: var(--gold);
    font-size: 1.2rem;
}

.hero-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(215,163,61,.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rotateOrbit 30s linear infinite;
}

.hero-orbit-1 {
    width: 600px;
    height: 600px;
}

.hero-orbit-2 {
    width: 900px;
    height: 900px;
    border-style: dashed;
    animation-duration: 45s;
    animation-direction: reverse;
}

.hero-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(215,163,61,.11), transparent 68%);
    transform: translate(-50%, -50%);
    filter: blur(8px);
}


/* =========================================================
   INTRODUÇÃO
   ========================================================= */

.story-intro {
    width: min(900px, 86%);
    margin: 0 auto;
    padding: 170px 0 120px;
    text-align: center;
}

.story-intro h2 {
    margin: 20px 0;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.story-intro p {
    max-width: 620px;
    margin: 28px auto 0;
    color: var(--muted);
    line-height: 1.85;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.timeline {
    position: relative;
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 60px 0 150px;
}

.timeline-axis {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: var(--axis-width);
    transform: translateX(-50%);
    background: rgba(215,163,61,.13);
}

.timeline-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, var(--gold-light), var(--gold));
    box-shadow: 0 0 15px rgba(215,163,61,.45);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 65px 145px;
}

.timeline-item.left {
    margin-right: auto;
    text-align: right;
}

.timeline-item.right {
    margin-left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 15px;
    width: 18px;
    height: 18px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: var(--black);
    z-index: 5;
}

.timeline-dot span {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px rgba(215,163,61,.75);
}

.timeline-item.left .timeline-dot {
    right: -9px;
}

.timeline-item.right .timeline-dot {
    left: -9px;
}

.timeline-card {
    position: relative;
    padding: 38px 42px;
    border: 1px solid rgba(215,163,61,.2);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(42,18,53,.92), rgba(12,7,14,.94));
    box-shadow:
        0 25px 55px rgba(0,0,0,.35),
        inset 0 1px rgba(255,255,255,.04);
    transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}

.timeline-card::before {
    content: "";
    position: absolute;
    top: 20px;
    width: 3px;
    height: 55px;
    background: linear-gradient(var(--gold), transparent);
}

.timeline-item.left .timeline-card::before {
    right: 0;
}

.timeline-item.right .timeline-card::before {
    left: 0;
}

.timeline-card:hover {
    transform: translateY(-7px);
    border-color: rgba(215,163,61,.48);
    box-shadow:
        0 30px 65px rgba(0,0,0,.48),
        0 0 30px rgba(215,163,61,.06);
}

.timeline-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.timeline-item.left .timeline-card-top {
    flex-direction: row-reverse;
}

.year {
    color: var(--gold-light);
    font-family: "Montserrat", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.location {
    color: rgba(255,255,255,.4);
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .14em;
}

.timeline-number {
    margin-top: 24px;
    color: rgba(215,163,61,.18);
    font-family: "Montserrat", sans-serif;
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1;
}

.timeline-card h3 {
    margin: 7px 0 20px;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
}

.timeline-card p {
    margin: 0 0 17px;
    color: #c9c1bc;
    font-size: .93rem;
    line-height: 1.85;
}

.mission-box {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid rgba(215,163,61,.22);
    background: rgba(114,27,32,.22);
    text-align: left;
}

.mission-box > span {
    display: block;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .17em;
}

.mission-box ol {
    margin: 0 0 15px;
    padding-left: 20px;
    color: #c9c1bc;
    font-size: .82rem;
    line-height: 1.7;
}

.mission-box strong {
    color: var(--gold-light);
    font-size: .78rem;
}

.highlight-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    color: var(--gold-light);
    font-size: .78rem;
    line-height: 1.5;
}

.timeline-item.left .highlight-line {
    justify-content: flex-end;
}

.highlight-line span {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--gold);
}

.symbol-divider {
    margin-top: 28px;
    color: var(--gold);
    font-size: 1.4rem;
}

.milestone {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 28px;
    color: var(--gold-light);
    font-family: "Montserrat", sans-serif;
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.milestone-icon {
    color: var(--gold);
    font-size: 1.3rem;
}

.progress-points {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 30px;
}

.progress-points span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 9px rgba(215,163,61,.55);
}

.change-marker {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-top: 25px;
    padding: 10px 14px;
    border: 1px solid rgba(215,163,61,.25);
    background: rgba(215,163,61,.05);
}

.change-marker span {
    color: rgba(255,255,255,.4);
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.change-marker strong {
    color: var(--gold-light);
    font-family: "Montserrat", sans-serif;
    font-size: .75rem;
}

.final-card {
    border-color: rgba(215,163,61,.38);
    background:
        radial-gradient(circle at 90% 10%, rgba(215,163,61,.12), transparent 30%),
        linear-gradient(145deg, rgba(114,27,32,.42), rgba(24,10,32,.96));
}

.final-seal {
    width: fit-content;
    margin-top: 30px;
    padding: 12px 18px;
    border: 1px solid rgba(215,163,61,.4);
    color: var(--gold-light);
    font-family: "Montserrat", sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
}


/* =========================================================
   FUTURO
   ========================================================= */

.future-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-top: 1px solid rgba(215,163,61,.13);
    border-bottom: 1px solid rgba(215,163,61,.13);
    background:
        radial-gradient(circle at center, rgba(114,27,32,.2), transparent 45%),
        linear-gradient(180deg, rgba(8,6,7,.75), rgba(24,10,32,.85));
}

.future-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.future-symbol {
    margin: 35px 0 20px;
    color: var(--gold);
    font-size: 2rem;
    animation: pulseGold 3s ease-in-out infinite;
}

.future-section h2 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.5rem, 6vw, 5.8rem);
    line-height: 1;
    letter-spacing: -.05em;
}

.future-section p {
    margin-top: 30px;
    color: #fff;
    font-size: 1.15rem;
}

.future-line {
    width: 80px;
    height: 1px;
    margin: 35px auto 0;
    background: var(--gold);
}

.future-particles {
    position: absolute;
    inset: 0;
    opacity: .35;
    background-image:
        radial-gradient(circle, rgba(215,163,61,.7) 1px, transparent 1px);
    background-size: 90px 90px;
    animation: particleMove 18s linear infinite;
}


/* =========================================================
   AGRADECIMENTOS
   ========================================================= */

.thanks-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 20px 180px;
}

.thanks-card {
    width: min(900px, 100%);
    padding: clamp(40px, 7vw, 90px);
    text-align: center;
    border: 1px solid rgba(215,163,61,.22);
    background:
        linear-gradient(145deg, rgba(42,18,53,.84), rgba(9,7,8,.9));
    box-shadow: 0 35px 80px rgba(0,0,0,.42);
}

.thanks-section h2 {
    margin: 20px 0 45px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.thanks-text {
    max-width: 650px;
    margin: 0 auto;
    color: #c9c1bc;
    line-height: 1.9;
}

.light-message {
    margin-top: 60px;
    padding-top: 35px;
    border-top: 1px solid rgba(215,163,61,.17);
}

.light-symbol {
    color: var(--gold);
    font-size: 1.7rem;
}

.light-message h3 {
    margin: 15px 0 0;
    color: var(--gold-light);
    font-family: "Montserrat", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.6;
}


/* =========================================================
   ANIMAÇÕES
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(45px);
    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.2,.7,.2,1);
}

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

.timeline-item.left.reveal {
    transform: translateX(-55px);
}

.timeline-item.right.reveal {
    transform: translateX(55px);
}

.timeline-item.left.reveal.visible,
.timeline-item.right.reveal.visible {
    transform: translateX(0);
}

@keyframes floatSymbol {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes rotateOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulseGold {
    0%, 100% { opacity: .6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.12); }
}

@keyframes particleMove {
    from { transform: translateY(0); }
    to { transform: translateY(90px); }
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 950px) {
    .timeline-nav {
        display: none;
    }

    .timeline {
        width: min(780px, 88%);
    }

    .timeline-axis {
        left: 18px;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        width: 100%;
        margin: 0;
        padding: 0 0 85px 55px;
        text-align: left;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 9px;
        right: auto;
    }

    .timeline-item.left .timeline-card-top {
        flex-direction: row;
    }

    .timeline-item.left .highlight-line {
        justify-content: flex-start;
    }

    .progress-points {
        justify-content: flex-start;
    }

    .timeline-card {
        padding: 30px;
    }
}

@media (max-width: 700px) {
    :root {
        --menu-height: 72px;
    }

    .hero-symbol-wrap {
        width: 180px;
        height: 180px;
    }

    .hero-symbol {
        width: 150px;
        max-height: 150px;
    }

    .hero-kicker,
    .section-label {
        font-size: .55rem;
        letter-spacing: .18em;
    }

    .hero-intro {
        font-size: .88rem;
    }

    .story-intro {
        padding: 110px 0 80px;
    }

    .timeline {
        padding-bottom: 80px;
    }

    .timeline-card {
        padding: 25px 22px;
    }

    .timeline-card-top {
        align-items: flex-start;
        flex-direction: column !important;
        gap: 7px;
    }

    .timeline-number {
        font-size: 3rem;
    }

    .timeline-card h3 {
        font-size: 1.4rem;
    }

    .timeline-card p {
        font-size: .86rem;
    }

    .thanks-section {
        padding-bottom: 120px;
    }
}
