/* =============================================================
   PAGES — Subpage styles (sobre, expansao, posto)
   Inherits base from ../css/style.css
   ============================================================= */

/* ================================================================
   CURSOR override (pages use .cursor instead of .cur)
   ================================================================ */
.cursor {
    position: fixed; top: 0; left: 0; z-index: 9999;
    pointer-events: none; mix-blend-mode: difference;
}
.cursor-dot {
    position: absolute; width: 5px; height: 5px;
    background: #fff; border-radius: 50%;
}
.cursor-ring {
    position: absolute; width: 44px; height: 44px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    transition: width .4s var(--ease), height .4s var(--ease), border-color .3s;
}

/* ================================================================
   NAV override (pages uses .nav-links / .nav-menu)
   ================================================================ */
.nav-links { display: flex; gap: 28px; }
.nav-menu {
    display: none;
    flex-direction: column; gap: 5px;
    padding: 8px;
}
.nav-menu span {
    display: block; width: 24px; height: 1px;
    background: #fff; transition: transform .3s, opacity .3s;
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-menu { display: flex; }
}

/* ================================================================
   MOBILE OVERLAY
   ================================================================ */
.mobile-overlay {
    position: fixed; inset: 0; z-index: 850;
    pointer-events: none; opacity: 0;
    transition: opacity .4s;
}
.mobile-overlay.active { pointer-events: all; opacity: 1; }
.mobile-overlay-bg {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.95);
}
.mobile-overlay-content {
    position: relative; z-index: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    height: 100%; gap: 24px;
}
.mobile-link {
    font-size: 24px; font-weight: 200;
    letter-spacing: .08em; color: var(--white);
    transition: opacity .3s;
}
.mobile-link:hover { opacity: .5; }

/* ================================================================
   CONTAINER
   ================================================================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 48px);
}

/* ================================================================
   SECTION SYSTEM
   ================================================================ */
.section {
    padding: clamp(80px, 12vh, 160px) 0;
}
.section--white { background: var(--white); color: var(--black); }
.section--black { background: var(--black); color: var(--white); }
.section--cta {
    background: var(--black); color: var(--white);
    padding: clamp(100px, 16vh, 200px) 0;
}

.text-center { text-align: center; }

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
.heading-display {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 200; line-height: 1.08;
    letter-spacing: -.02em;
}
.heading-lg {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 200; line-height: 1.1;
    letter-spacing: -.02em;
}
.heading--light { color: var(--white); }
.heading-display em, .heading-lg em {
    font-family: var(--serif);
    font-style: italic; font-weight: 400;
}
.label {
    display: inline-block;
    font-size: 10px; font-weight: 500;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 16px;
}
.label--light { color: rgba(255,255,255,.4); }
.body-lg {
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.85; font-weight: 300;
    color: rgba(0,0,0,.55);
}
.body-lg strong { font-weight: 500; color: rgba(0,0,0,.8); }
.section--black .body-lg,
.body--muted-light {
    color: rgba(255,255,255,.45);
}
.section--black .body-lg strong { color: rgba(255,255,255,.7); }

/* ================================================================
   PAGE HERO
   ================================================================ */
.page-hero {
    position: relative;
    display: flex; align-items: flex-end;
    min-height: 50vh;
    padding: 80px 0 clamp(60px, 8vh, 100px);
}
.page-hero--dark { background: var(--black); }
.page-hero--tall { min-height: 70vh; }
.page-hero-bg {
    position: absolute; inset: 0;
    z-index: 0;
}

/* ================================================================
   PROSE BLOCK
   ================================================================ */
.prose-block { max-width: 680px; }
.prose-block .body-lg + .body-lg { margin-top: 20px; }

/* ================================================================
   PULLQUOTE
   ================================================================ */
.pullquote {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 48px);
    font-style: italic;
    line-height: 1.25;
    color: rgba(255,255,255,.7);
}
.pullquote em {
    color: var(--accent);
}

/* ================================================================
   INTRO GRID
   ================================================================ */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}
.intro-right .body-lg + .body-lg { margin-top: 16px; }
@media (max-width: 768px) {
    .intro-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   HORIZONTAL TIMELINE (sobre)
   ================================================================ */
.h-timeline-wrap {
    overflow: hidden;
    padding: 48px 0 0;
}
.h-timeline { position: relative; }
.h-timeline-track {
    display: flex; gap: 24px;
    padding: 0 clamp(24px, 5vw, 48px);
    cursor: grab;
}
.h-timeline-track:active { cursor: grabbing; }
.tl-card {
    flex-shrink: 0;
    width: clamp(260px, 22vw, 320px);
    padding: 32px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
}
.tl-card--accent { border-color: rgba(74,108,247,.3); }
.tl-year {
    display: block;
    font-family: var(--serif); font-style: italic;
    font-size: 14px; color: var(--accent);
    margin-bottom: 12px;
}
.tl-card h3 {
    font-size: 18px; font-weight: 400;
    margin-bottom: 10px; color: var(--white);
}
.tl-card p {
    font-size: 14px; line-height: 1.7;
    color: rgba(255,255,255,.4); font-weight: 300;
}
.h-timeline-line {
    margin-top: 24px; height: 1px;
    background: rgba(255,255,255,.06);
}
.h-timeline-line-fill {
    height: 100%; width: 0%;
    background: var(--accent);
    transition: width .1s linear;
}

/* ================================================================
   VALUES LIST (sobre)
   ================================================================ */
.values-list { margin-top: 48px; }
.val-item {
    display: flex; gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.val-num {
    font-family: var(--serif); font-style: italic;
    font-size: 14px; color: rgba(0,0,0,.15);
    flex-shrink: 0; width: 32px;
}
.val-content h3 {
    font-size: 18px; font-weight: 400;
    margin-bottom: 6px;
}
.val-content p {
    font-size: 15px; line-height: 1.7;
    color: rgba(0,0,0,.45); font-weight: 300;
}

/* ================================================================
   EXPANSION STATS
   ================================================================ */
.exp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.exp-stat { text-align: center; }
.exp-stat-num {
    display: block;
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 200; line-height: 1;
    color: var(--white);
}
.exp-stat-pct {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 200; color: var(--accent);
}
.exp-stat-label {
    display: block; margin-top: 8px;
    font-size: 13px; line-height: 1.5;
    color: rgba(255,255,255,.35);
}
@media (max-width: 768px) {
    .exp-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   PROBLEM / SOLUTION
   ================================================================ */
.ps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.ps-item {
    padding: 40px;
    border-radius: 12px;
}
.ps-item--problem { background: rgba(0,0,0,.03); }
.ps-item--solution { background: rgba(74,108,247,.04); }
.ps-item .label { margin-bottom: 16px; }
@media (max-width: 768px) {
    .ps-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   MODEL GRID
   ================================================================ */
.model-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 48px;
    text-align: left;
}
.model-item {
    padding: 28px 20px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
}
.model-num {
    display: block;
    font-family: var(--serif); font-style: italic;
    font-size: 14px; color: var(--accent);
    margin-bottom: 16px;
}
.model-item p {
    font-size: 14px; line-height: 1.7;
    color: rgba(255,255,255,.45); font-weight: 300;
}
@media (max-width: 768px) {
    .model-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .model-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   CTA EMAIL
   ================================================================ */
.cta-email {
    display: inline-block;
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 300; color: var(--gray);
    margin-top: 32px;
    position: relative; padding-bottom: 2px;
    transition: color .4s;
}
.cta-email::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; width: 100%; height: 1px;
    background: var(--accent);
    transform: scaleX(0); transform-origin: right;
    transition: transform .5s var(--ease);
}
.cta-email:hover { color: var(--white); }
.cta-email:hover::after { transform: scaleX(1); transform-origin: left; }

/* ================================================================
   LINK ARROW
   ================================================================ */
.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 400;
    transition: opacity .3s;
}
.link-arrow:hover { opacity: .5; }

/* ================================================================
   POSTO INFO GRID
   ================================================================ */
.posto-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 32px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.posto-info-label {
    display: block;
    font-size: 10px; letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gray); margin-bottom: 4px;
}
.posto-info-val {
    font-size: 16px; font-weight: 400;
}
.posto-gallery-item {
    width: 100%;
}
.posto-nav-links {
    display: flex; justify-content: space-between;
    align-items: center;
}
@media (max-width: 768px) {
    .posto-info-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,.06);
    background: var(--black);
}
.footer-grid {
    display: flex;
    align-items: center; justify-content: space-between;
}
.footer-brand {
    font-size: 10px; font-weight: 600;
    letter-spacing: .3em; color: rgba(255,255,255,.2);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
    font-size: 10px; letter-spacing: .08em;
    color: var(--gray); transition: color .3s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 10px; color: rgba(255,255,255,.2); }
@media (max-width: 768px) {
    .footer-grid { flex-direction: column; gap: 8px; text-align: center; }
}

/* ================================================================
   REVEAL ANIMATION BASE STATES
   ================================================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
}
.reveal-clip {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
}
