/* ═══ BASE ═══ */
:root {
    --blue: #4a4f5c;
    --blue-dark: #3a3e4a;
    --green: #ef404a;
    --green-dark: #d62e38;
    --gray: #6b6b6b;
    --gray-light: #d4d4d4;
    --gray-bg: #f5f5f5;
    --white: #ffffff;
    --black: #000000;
    --radius: 0.5rem;
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    font-size: clamp(14px, 2vw, 18px);
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: var(--blue);
    text-decoration: underline;
    transition: opacity 0.2s;
}
a:hover {
    opacity: 0.7;
}
h1,
h2,
h3,
h4 {
    color: var(--blue);
    font-weight: 700;
    line-height: 1.2;
}
strong {
    color: var(--blue);
    font-weight: 700;
}
.grn {
    color: var(--green);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes countPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
.anim {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}
.anim-d1 {
    animation-delay: 0.1s;
}
.anim-d2 {
    animation-delay: 0.2s;
}
.anim-d3 {
    animation-delay: 0.3s;
}
.anim-d4 {
    animation-delay: 0.4s;
}

.container {
    width: min(100% - 2rem, 1200px);
    margin-inline: auto;
    padding: 0 1rem;
}
section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

/* ── Lightbox ── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 2rem;
    cursor: pointer;
}
.lightbox-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.lightbox-overlay img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 0.375rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    cursor: default;
}
.lightbox-overlay .lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    background: none;
    border: none;
    line-height: 1;
}
.lightbox-overlay .lightbox-close:hover {
    opacity: 1;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    font-style: italic;
    color: var(--blue);
    margin-bottom: 0.5rem;
    text-align: center;
}
.section-title span {
    color: var(--green);
}
.section-subtitle {
    color: var(--gray);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    text-align: center;
}

/* ── Top Bar ── */
.top-bar {
    background: var(--blue);
    color: var(--white);
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 0.75rem;
    text-align: center;
    padding: 0.5rem 1rem;
    letter-spacing: 0.5px;
}
.top-bar span {
    color: var(--green);
    font-weight: 700;
}
.top-bar-live {
    padding: 0.95rem 1rem;
    min-height: 3.2rem;
    font-size: 0.93rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
}
.top-bar-live span {
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--green);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Nav ── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    background: var(--green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 800;
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--white);
}
.navbar .logo span {
    color: var(--white);
    opacity: 0.9;
}
.logo-img {
    height: clamp(1.8rem, 3.5vw, 2.5rem);
    width: auto;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}
.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--white);
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--white);
    opacity: 0.8;
}
.btn-nav {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white) !important;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-weight: 700 !important;
    transition: background 0.2s !important;
}
.btn-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white) !important;
    opacity: 1 !important;
}
.menu-toggle {
    display: none;
    background: var(--green);
    border: none;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--white);
    margin: 5px auto;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--green);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }
    .nav-links.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .navbar {
        padding: 0.5rem 1rem;
    }
}

/* ── Hero ── */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--blue) 0%, #2f343f 100%);
    color: var(--white);
    padding: clamp(3rem, 8vw, 8rem) 1rem;
    text-align: center;
    overflow: hidden;
    background-image: url("https://tourofslovenia.si/storage/app/uploads/public/67d/1db/88e/67d1db88ee187461050198.webp");
    background-size: cover;
    background-position: center 30%;
}
.hero.hero-compact {
    padding: clamp(2.8rem, 7vw, 5.4rem) 1rem;
    background-position: center 24%;
}
.hero.hero-compact::before {
    background: linear-gradient(
        135deg,
        rgba(74, 79, 92, 0.72) 0%,
        rgba(47, 52, 63, 0.82) 100%
    );
    backdrop-filter: none;
}
.hero.hero-compact .container {
    text-align: center;
}
.hero.hero-compact .subtitle {
    max-width: 44ch;
    margin-inline: auto;
}
.hero.hero-compact .hero-stats {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.35rem 1.8rem;
    margin-top: 1.4rem;
    margin-bottom: 0;
}
.hero.hero-compact .hero-stat {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    text-align: center;
    box-shadow: none;
}
.hero.hero-compact .hero-stat .num {
    font-size: clamp(3.45rem, 4vw, 2.25rem);
    line-height: 1;
}
.hero.hero-compact .hero-stat .lbl {
    font-size: 1rem;
    letter-spacing: 0.08em;
    opacity: 0.8;
    margin-top: 0.2rem;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(74, 79, 92, 0.88) 0%,
        rgba(47, 52, 63, 0.92) 100%
    );
    backdrop-filter: blur(2px);
}
.hero .container {
    position: relative;
}
.stage-badge {
    display: inline-block;
    color: var(--green);
    font-weight: 800;
    font-style: italic;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.hero h1 {
    color: var(--white);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    font-style: italic;
    margin-bottom: 0.5rem;
}
.hero h1 span {
    color: var(--green);
}
.hero-title-announcement {
    margin-inline: auto;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-size: clamp(2.35rem, 7.6vw, 5rem);
    font-style: italic;
    font-weight: 800;
    line-height: 1.4;
    text-wrap: balance;
}
.hero-title-announcement .hero-title-stage,
.hero-title-announcement .hero-title-place {
    color: var(--green);
}
.hero-title-announcement .hero-title-place {
    display: inline-block;
}
.hero .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    opacity: 0.9;
    margin-bottom: 2rem;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 5vw, 4rem);
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.hero-stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(0);
    padding: 2.5rem 4rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    min-width: 220px;
    flex: 1 1 0;
}
.hero-stat .num {
    font-size: clamp(3.45rem, 4vw, 2.25rem);
    line-height: 1;
    font-weight: 800;
    font-style: italic;
    color: var(--green);
    display: block;
}
.hero-stat .lbl {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.quick-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.quick-nav-btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.quick-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}
.route-path {
    margin-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.route-path .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}
.route-path .start,
.route-path .finish {
    font-weight: 700;
    color: var(--white);
    font-size: 1rem;
}
.route-path .start {
    color: var(--green);
}
.route-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.75rem;
}
.route-flow .route-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.route-flow .route-pill.is-start,
.route-flow .route-pill.is-finish {
    background: var(--green);
    color: var(--blue);
}
.route-flow .route-dot {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: var(--green);
    flex: 0 0 auto;
}
.route-flow .route-sep {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
}

/* ── Mayor ── */
.mayor-section {
    background: var(--gray-bg);
}
.mayor-grid {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 2rem;
    align-items: start;
}
.mayor-quote {
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
}
.mayor-quote p {
    margin-bottom: 1rem;
}
.mayor-quote strong {
    color: var(--blue);
    font-style: normal;
}
.mayor-photo-card {
    text-align: center;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.mayor-photo-card img {
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}
.mayor-photo-card .name {
    font-weight: 700;
    color: var(--blue);
    font-size: 0.85rem;
}
.mayor-photo-card .title {
    font-size: 0.75rem;
    color: var(--gray);
}
.mayor-photo-band {
    position: relative;
    max-width: 210px;
    padding-bottom: 3.4rem;
}
.mayor-photo-band img {
    width: 100%;
    aspect-ratio: 4 / 5.15;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}
.mayor-photo-band .caption {
    position: absolute;
    right: -0.7rem;
    bottom: 0.4rem;
    left: 0.7rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius);
    background: var(--blue);
    color: var(--white);
    text-align: left;
    box-shadow: 0 0.75rem 1.7rem rgba(74, 79, 92, 0.18);
}
.mayor-photo-band .name {
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.15;
}
.mayor-photo-band .title {
    margin-top: 0.22rem;
    color: var(--green);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 700px) {
    .mayor-grid {
        grid-template-columns: 1fr;
    }
    .mayor-photo-card {
        max-width: 180px;
        margin: 0 auto;
    }
    .mayor-photo-band {
        margin: 0 auto;
    }
}

/* ── Teams section ── */
.teams-section {
    background: var(--white);
}
.teams-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.7;
}
.teams-content p {
    margin-bottom: 1rem;
}
.teams-content strong {
    color: var(--blue);
    font-weight: 700;
}

/* Counter stats on white background — override hero dark defaults */
.teams-section .hero-stats .hero-stat {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    color: var(--black);
}
.teams-section .hero-stats .hero-stat .num {
    color: var(--green);
}
.teams-section .hero-stats .hero-stat .lbl {
    color: var(--gray);
    opacity: 1;
}

/* ── Gallery ── */
.gallery {
    background: var(--white);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}
.gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
}
.gallery-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.4s;
}
.gallery-grid a:hover img {
    transform: scale(1.08);
}

/* ── Timeline ── */
.timeline {
    background: var(--gray-bg);
}

/* ── Stats ── */
.stats-section {
    background: var(--white);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}
.stat-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.stat-card-body {
    padding: 1.2rem 1.5rem 1.5rem;
}
.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    font-style: italic;
    color: var(--green);
    line-height: 1;
}
.stat-number .unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    font-style: normal;
}
.stat-card-body h3 {
    font-size: 1rem;
    margin: 0.25rem 0 0.5rem;
    color: var(--blue);
}
.stat-card-body p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.stat-cta {
    display: inline-block;
    background: var(--blue);
    color: var(--white) !important;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.stat-cta:hover {
    background: var(--green);
    color: var(--blue) !important;
    opacity: 1;
}
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.timeline-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
    overflow: hidden;
}
.timeline-card:hover {
    transform: translateY(-3px);
}
.timeline-card .time {
    font-weight: 800;
    font-style: italic;
    color: var(--green);
    font-size: 1.2rem;
}
.timeline-card h3 {
    font-size: 1rem;
    margin: 0.5rem 0 0.25rem;
}
.timeline-card p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.4;
}

/* ── Route ── */
.route-description {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--gray-light);
    margin-bottom: 1.5rem;
}
.route-description p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.profile-chart {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.route-map {
    height: 600px;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    z-index: 1;
    background: #ddd;
}
.route-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.route-links .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--blue);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.route-links .btn-link:hover {
    background: var(--green);
    color: var(--white);
    opacity: 1;
}
.route-links .btn-link svg {
    width: 1rem;
    height: 1rem;
}
.route-links-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}
.route-card-link {
    display: grid;
    grid-template-columns: 2.7rem 1fr;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--blue);
    text-decoration: none;
    transition:
        border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.route-card-link:hover {
    border-color: var(--green);
    box-shadow: 0 0.85rem 1.8rem rgba(74, 79, 92, 0.12);
    opacity: 1;
    transform: translateY(-0.16rem);
}
.route-card-icon {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border-radius: 999px;
    background: var(--green);
    color: var(--white);
}
.route-card-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}
.route-card-link strong {
    display: block;
    color: var(--blue);
    font-size: 0.95rem;
    line-height: 1.2;
}
.route-card-link span:last-child {
    display: block;
    margin-top: 0.2rem;
    color: var(--gray);
    font-size: 0.76rem;
    font-weight: 600;
}

/* ── Quote ── */
.quote-block {
    background: var(--blue);
    color: var(--white);
    text-align: center;
    padding: clamp(2rem, 5vw, 4rem) 1rem;
}
.quote-block blockquote {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-style: italic;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto 1rem;
}
.quote-block cite {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: normal;
}

/* ── Maribor Partnerji ── */
.mb-partners {
    background: var(--white);
}
.mb-partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    align-items: center;
    padding: 1rem 0;
}
.mb-partners-grid > * {
    flex: 0 0 auto;
}
.mb-partner-logo img {
    max-height: 80px;
    width: auto;
    transition: opacity 0.2s;
}
.mb-partner-logo:hover img {
    opacity: 0.7;
}

/* ── Sponzorji ── */
.sponsors-section {
    background: var(--white);
}

/* Sponsor logos — same grid, no visible border */
.sponsors-section .mb-partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    min-height: 80px;
    min-width: 140px;
}
.sponsors-section .mb-partner-logo img {
    max-height: 64px;
    width: auto;
}

/* ── CTA ── */
.cta-section {
    background: linear-gradient(135deg, var(--blue), #3a3e4a);
    color: var(--white);
    text-align: center;
}
.cta-section .section-title {
    color: var(--white);
}
.btn-cta {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    border-radius: 3rem;
    text-decoration: none;
    font-size: 1rem;
    margin-top: 1.5rem;
    transition:
        transform 0.2s,
        background 0.2s;
}
.btn-cta:hover {
    transform: scale(1.05);
    opacity: 1;
    background: var(--green-dark);
}

/* ── Footer ── */
footer {
    background: var(--blue);
    color: var(--white);
    padding: 3rem 0 2rem;
    font-size: 0.85rem;
}
footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
footer .footer-grid ul {
    padding-left: 0;
}
footer .footer-grid > div:first-child {
    text-align: inherit;
}
.footer-logo {
    max-width: 200px;
    height: auto;
}
footer .footer-grid h4 {
    color: var(--green);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-style: italic;
}
footer a {
    color: var(--white);
    text-decoration: none;
}
footer a:hover {
    color: var(--green);
    opacity: 1;
}
footer .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}
footer .social-links a {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    transition: background 0.2s;
}
footer .social-links a:hover {
    background: var(--green);
    color: var(--blue);
}
footer .social-items {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
}
footer .social-item {
    width: 2.4rem;
    height: 2.4rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.2s;
    opacity: 0.7;
}
footer .social-item:hover {
    opacity: 1;
}
footer .social-item a {
    display: block;
    width: 100%;
    height: 100%;
}
footer .social-item.facebook {
    background-image: url("SVG/social_facebook_w.svg");
}
footer .social-item.instagram {
    background-image: url("SVG/social_instagram_w.svg");
}
footer .social-item.x {
    background-image: url("SVG/social_x_w.svg");
}
footer .social-item.youtube {
    background-image: url("SVG/social_youtube_w.svg");
}
.d-flex {
    display: flex;
}
.justify-content-center {
    justify-content: center;
}
@media (min-width: 992px) {
    .justify-content-lg-end {
        justify-content: flex-end;
    }
}
footer hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}
footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.75rem;
    opacity: 0.7;
    text-align: center;
}

@media (max-width: 600px) {
    .timeline-grid {
        grid-template-columns: 1fr;
    }
    .hero.hero-compact .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }
    .hero-stat {
        min-width: 0;
        padding: 1rem;
        flex: none;
    }
    .hero-stat .num {
        font-size: clamp(2.2rem, 10vw, 3.45rem);
    }
    .hero-stat .lbl {
        font-size: 1rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .route-links-cards {
        grid-template-columns: 1fr;
    }
    .route-map {
        width: 100vw;
        position: relative;
        left: calc(-50vw + 50%);
        border-radius: 0;
        height: 400px;
        margin-bottom: 1.5rem;
    }
    body {
        overflow-x: hidden;
    }
    .route-description {
        border: none;
        padding: 1.5rem 0;
    }
    footer .footer-grid {
        text-align: center;
    }
}

/* ── Impeccable enhancements ── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--green);
    color: var(--blue);
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s ease;
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.section-transition {
    position: relative;
}
.section-transition::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3px;
    background: var(--gray-light);
    border-radius: 2px;
}
.section-transition:last-child::after {
    display: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.quote-block blockquote strong {
    animation: shimmer 3s ease-in-out infinite;
    background: linear-gradient(
        90deg,
        var(--green) 0%,
        #ff8a90 50%,
        var(--green) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}
