/* ================================================================
   landing.css — Public landing page styles
   Loaded by: app/Views/landing/index.php
   NOTE: @font-face declarations live in an inline <style> block in
   index.php because they require PHP's base_url() for font paths.
   The hero background image is set via a style attribute on .hero-bg
   in app/Views/landing/partials/hero.php for the same reason.
   ================================================================ */

/* ── Root variables ── */
:root {
    --brand-dark: #0f172a;
    --brand-navy: #1e293b;
    --brand-blue: #1d4ed8;
    --brand-accent: #f59e0b;
    --brand-light: #f8fafc;
    --brand-muted: #64748b;
    --section-gap: 5rem;
}

/* ── Global ── */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'CAPostal', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    overflow-x: hidden;
}

/* ── Navbar ── */
#mainNav {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    transition: background .3s, box-shadow .3s;
    z-index: 1030;
}

#mainNav.scrolled {
    background: var(--brand-navy);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}

/* Mobile: give the expanded menu a solid backdrop so links are readable */
@media (max-width: 991.98px) {
    #navMenu.show {
        background: var(--brand-navy);
        padding: .5rem 1rem 1rem;
        border-radius: 0 0 .5rem .5rem;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, .75) !important;
    font-size: .9rem;
    font-weight: 500;
    padding: .5rem .9rem !important;
    transition: color .2s;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: #fff !important;
}

#mainNav .nav-link.active {
    border-bottom: 2px solid var(--brand-accent);
}

/* ── Hero ── */
#hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    width: 100%;
}

.hero-text-col {
    flex: 0 0 55%;
    max-width: 55%;
    padding: 5rem 2.5rem 4rem;
    color: #fff;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    color: #fff;
    line-height: 1.35;
    margin-bottom: 1.75rem;
}

.hero-can-col {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    align-self: stretch;
}

.hero-can-img {
    height: 90vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.hero-scroll {
    position: absolute;
    bottom: 1.75rem;
    right: 2rem;
    color: rgba(255, 255, 255, .8);
    font-size: .75rem;
    letter-spacing: .12em;
    font-family: 'FakeReceipt', sans-serif;
    text-decoration: none;
    z-index: 2;
}

/* Rich-text content block inside the hero */
.hero-content-text {
    color: rgba(255, 255, 255, .85);
    font-size: 1rem;
    line-height: 1.7;
}

/* Hero CTA buttons */
.hero-btn {
    border-radius: 8px;
}

.hero-btn-outline {
    border-radius: 8px;
    border-color: rgba(255, 255, 255, .3) !important;
}

@media (max-width: 767.98px) {
    .hero-inner {
        flex-direction: column-reverse;
        align-items: center;
        min-height: 100vh;
    }

    .hero-text-col {
        flex: none;
        max-width: 100%;
        width: 100%;
        padding: 1.5rem 1.5rem 4rem;
        text-align: center;
    }

    .hero-can-col {
        flex: none;
        max-width: 100%;
        width: 100%;
        justify-content: center;
        align-items: flex-end;
        height: 55vw;
    }

    .hero-can-img {
        height: 55vw;
        width: auto;
    }
}


.hero-can-col {
    margin-top: 50px;
}

/* ── Generic sections ── */
.section-block {
    padding: var(--section-gap) 0;
}

.section-light {
    background: var(--brand-light);
}

.section-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-blue);
    margin-bottom: .5rem;
}

/* Use on .section-label when the section background is dark */
.section-label--accent {
    color: var(--brand-accent);
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--brand-dark);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--brand-muted);
    max-width: 600px;
}

.section-divider {
    width: 48px;
    height: 4px;
    border-radius: 2px;
    background: var(--brand-accent);
    margin: 1rem 0 1.5rem;
}

/* ── About ── */
.about-poster {
    border-radius: 1rem;
    max-height: 500px;
    object-fit: contain;
}

/* ── Shared CMS content blocks ── */
/* Applied to rich-text content rendered from the database */
.section-content-text {
    font-size: .97rem;
}

/* Card with larger corner radius used in Regulations section */
.section-card {
    border-radius: 1rem;
}

/* Amber info alert used in Regulations section */
.alert-amber {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: .75rem;
}

/* Italic footnote below the timeline list */
.tl-note {
    font-style: italic;
}

/* ── Timeline ── */
.timeline-list {
    padding-left: 0;
    list-style: none;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #bfdbfe, #e2e8f0);
}

.tl-item {
    position: relative;
    padding: 0 0 2.5rem 3.5rem;
}

.tl-item:last-child {
    padding-bottom: 0;
}

.tl-dot {
    position: absolute;
    left: 11px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-blue);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #bfdbfe;
}

.tl-date {
    display: inline-block;
    background: #dbeafe;
    color: var(--brand-blue);
    border-radius: 999px;
    padding: .15rem .75rem;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: .35rem;
}

.tl-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: .25rem;
}

.tl-desc {
    color: var(--brand-muted);
    font-size: .9rem;
    line-height: 1.6;
}

/* ── Kurator / Mentor ── */
.person-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .12);
}

.person-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: var(--brand-muted);
    font-size: 2.5rem;
}

.person-name {
    font-weight: 700;
    font-size: .95rem;
}

.person-role {
    color: var(--brand-muted);
    font-size: .82rem;
}

.person-bio {
    color: var(--brand-muted);
    font-size: .82rem;
    line-height: 1.5;
}

/* ── Finalis ── */
.finalist-card {
    overflow: hidden;
    border-radius: 1rem;
}

.finalist-photo {
    height: 200px;
    object-fit: cover;
}

.finalist-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #e2e8f0;
    color: var(--brand-muted);
    font-size: 2.5rem;
}

.finalist-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: .5rem;
}

.finalist-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    color: var(--brand-muted);
    font-size: .82rem;
}

.finalist-credits {
    font-size: .85rem;
    color: var(--brand-muted);
}

.finalist-credit-role {
    font-weight: 600;
    color: #1e293b;
}

/* ── Contact ── */
#contact {
    background: var(--brand-navy);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--brand-accent);
}

.contact-form-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
}

/* Text helpers for the dark-background contact column */
.contact-subtitle {
    color: rgba(255, 255, 255, .7);
}

.contact-content {
    color: rgba(255, 255, 255, .6);
    font-size: .95rem;
}

/* ── Footer ── */
#footer {
    background: var(--brand-dark);
}

.footer-brand-name {
    font-size: 1.1rem;
}

#footer .btn-outline-secondary {
    color: rgba(255, 255, 255, .6);
}

/* ── Scroll-to-top button ── */
#scrollTop {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(29, 78, 216, .4);
    z-index: 999;
    transition: opacity .2s;
}

#scrollTop.show {
    display: flex;
}

/* ── FakeReceipt font: nav + section titles + footer links ── */
#mainNav .navbar-brand,
#mainNav .nav-link,
#mainNav .btn,
.section-title,
#footer .list-unstyled a,
#footer .fw-semibold {
    font-family: 'FakeReceipt', sans-serif;
    letter-spacing: .02em;
}