/* Content pages: Stalna zbirka starih igrač (igrace.html) and Oddih in doživetja (oddih.html).
   Builds on styles.css (nav, footer, .cta-button, .cta-secondary). */

:root {
    --gold: #F9A826;
    --gold-soft: #FDB94E;
    --navy: #0E1325;
    --navy-2: #1A2038;
    --paper: #FBF7EF;
    --paper-2: #F3EBDA;
    --text: #2A2F3F;
    --muted: #5B6070;
}

body {
    background: var(--paper);
}

/* ---------- Hero ---------- */
.page-hero {
    position: relative;
    background: var(--navy);
    color: white;
    text-align: center;
    padding: 180px 40px 120px;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(249, 168, 38, 0.18) 0%, transparent 60%);
    z-index: 0;
}

.page-hero.has-image::before {
    background:
        linear-gradient(180deg, rgba(14, 19, 37, 0.78) 0%, rgba(14, 19, 37, 0.9) 100%),
        url('../img/ozadje.webp') center / cover no-repeat;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-eyebrow {
    display: inline-block;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
    text-wrap: balance;
}

.page-hero h1 .highlight,
.section-title .highlight {
    color: var(--gold);
}

.page-hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

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

.page-hero .cta-secondary {
    text-decoration: none;
    display: inline-block;
}

/* Toy-train track along the bottom of the hero */
.hero-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    height: 16px;
    z-index: 1;
    background:
        linear-gradient(var(--gold), var(--gold)) top / 100% 2px no-repeat,
        linear-gradient(var(--gold), var(--gold)) bottom / 100% 2px no-repeat,
        repeating-linear-gradient(90deg, rgba(249, 168, 38, 0.45) 0 6px, transparent 6px 26px);
    opacity: 0.5;
}

/* ---------- Sections ---------- */
.content-section {
    padding: 100px 40px;
}

.content-section.alt {
    background: var(--paper-2);
}

.content-section.dark {
    background: var(--navy);
    color: white;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.container.narrow {
    max-width: 780px;
}

.section-kicker {
    display: block;
    color: #B87404;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

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

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 14px;
    text-wrap: balance;
}

.dark .section-title {
    color: white;
}

.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    margin-top: 18px;
}

.section-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--muted);
    margin: 22px 0 28px;
}

.prose p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 1.2em;
}

.dark .prose p {
    color: rgba(255, 255, 255, 0.85);
}

.prose h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin: 2em 0 0.8em;
}

.lead-text {
    font-size: 1.25rem !important;
    font-weight: 500;
    color: var(--navy) !important;
}

/* Text + aside layout */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 60px;
    align-items: start;
}

.split-aside {
    position: sticky;
    top: 120px;
}

/* Key dates card */
.dates-card {
    background: var(--navy);
    color: white;
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: 0 12px 30px rgba(14, 19, 37, 0.18);
}

.dates-card h3 {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.dates-card ol {
    list-style: none;
    border-left: 2px solid rgba(249, 168, 38, 0.35);
    padding-left: 20px;
}

.dates-card li {
    position: relative;
    padding-bottom: 16px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.dates-card li:last-child {
    padding-bottom: 0;
}

.dates-card li::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px var(--navy);
}

.dates-card strong {
    display: block;
    color: var(--gold);
    font-size: 1.05rem;
}

.dates-card li.is-new strong::after {
    content: ' ★';
}

/* Highlight cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid rgba(14, 19, 37, 0.08);
    box-shadow: 0 6px 20px rgba(14, 19, 37, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(14, 19, 37, 0.12);
}

.info-card .card-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 14px;
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
}

/* Quote band */
.quote-band {
    background: var(--navy);
    color: white;
    text-align: center;
    padding: 90px 40px;
    position: relative;
    overflow: hidden;
}

.quote-band blockquote {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    font-size: clamp(1.5rem, 3.2vw, 2.3rem);
    font-weight: 700;
    line-height: 1.35;
}

.quote-band blockquote .highlight {
    color: var(--gold);
}

.quote-band .hero-track {
    bottom: 24px;
}

/* ---------- Ticket box (toy page) ---------- */
.ticket-box {
    background: white;
    border-radius: 20px;
    border: 2px solid rgba(249, 168, 38, 0.35);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(14, 19, 37, 0.08);
}

.ticket-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 18px;
}

.ticket-table th,
.ticket-table td {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(14, 19, 37, 0.08);
    text-align: center;
}

.ticket-table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    font-weight: 600;
    vertical-align: bottom;
}

.ticket-table tbody th {
    text-align: left;
    font-weight: 600;
    color: var(--navy);
}

.ticket-table td {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}

.ticket-table .combo {
    background: rgba(249, 168, 38, 0.12);
}

.ticket-table tbody tr:last-child th,
.ticket-table tbody tr:last-child td {
    border-bottom: none;
}

.ticket-note {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ---------- Trip ideas (stay page) ---------- */
.trip-note {
    font-size: 0.9rem;
    color: var(--muted);
    font-style: italic;
    margin: 0 0 36px;
    max-width: 760px;
}

.trip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.trip-card {
    background: white;
    border-radius: 16px;
    padding: 26px 24px 24px;
    border: 1px solid rgba(14, 19, 37, 0.08);
    box-shadow: 0 6px 18px rgba(14, 19, 37, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.trip-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 168, 38, 0.5);
    box-shadow: 0 12px 28px rgba(14, 19, 37, 0.1);
}

.trip-distance {
    align-self: flex-start;
    background: var(--navy);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 50px;
}

.trip-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
}

.trip-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
}

/* ---------- Booking CTA band ---------- */
.booking-band {
    background: var(--gold);
    color: var(--navy);
    text-align: center;
    padding: 90px 40px;
}

.booking-band h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.booking-band p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 34px;
}

.booking-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--navy);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 18px 40px;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.booking-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(14, 19, 37, 0.3);
}

.booking-address {
    margin-top: 28px !important;
    margin-bottom: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 600;
}

.page-hero .booking-btn {
    background: var(--gold);
    color: var(--navy);
}

/* ---------- Reveal on scroll (only once JS has run) ---------- */
.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
    .split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split-aside {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 140px 20px 90px;
    }

    .content-section,
    .quote-band,
    .booking-band {
        padding: 70px 20px;
    }

    .ticket-box {
        padding: 26px 16px;
    }

    .ticket-table th,
    .ticket-table td {
        padding: 12px 4px;
    }

    .ticket-table td {
        font-size: 1.05rem;
    }

    .ticket-table thead th {
        font-size: 0.66rem;
        letter-spacing: 0;
    }

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

    .booking-btn {
        padding: 16px 28px;
        font-size: 0.9rem;
    }

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

/* Inline links in cards and text */
.info-card a,
.prose a {
    color: #B87404;
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.info-card a:hover,
.prose a:hover {
    color: var(--navy);
}
