/* Explain: Styles for UI components like headers, buttons, cards, and forms. */
/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px -20px rgba(20, 69, 47, 0.5);
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--surface-alt);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.35rem;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 22px;
}

.mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.25rem;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: var(--primary-color);
}

/* ---------- Buttons ---------- */
.btn-cta,
.btn-primary,
.btn-outline,
.btn-ghost-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.7rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-cta {
    background: var(--accent-color);
    color: #1a1405;
    box-shadow: 0 16px 32px -16px rgba(201, 162, 39, 0.9);
}

.btn-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 16px 32px -18px rgba(20, 69, 47, 0.9);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid rgba(20, 69, 47, 0.3);
}

.btn-outline:hover {
    background: var(--surface-alt);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

/* ---------- Decorative ---------- */
.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 30, 19, 0.62) 0%, rgba(6, 30, 19, 0.18) 34%, rgba(6, 30, 19, 0.88) 100%),
        linear-gradient(90deg, rgba(6, 30, 19, 0.92) 0%, rgba(6, 30, 19, 0.6) 52%, rgba(6, 30, 19, 0.22) 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.eyebrow-dark {
    color: var(--secondary-color);
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
}

.rule-gold {
    display: block;
    width: 64px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-color), rgba(201, 162, 39, 0.2));
}

/* ---------- Programme cards ---------- */
.programme-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.programme-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 162, 39, 0.7);
    box-shadow: var(--shadow-md);
}

.programme-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.programme-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.programme-card:hover .programme-media img {
    transform: scale(1.07);
}

.programme-badge {
    position: absolute;
    left: 0.9rem;
    top: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.programme-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Info / value cards ---------- */
.info-card {
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 143, 91, 0.45);
}

.icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    background: var(--surface-alt);
    color: var(--secondary-color);
    font-size: 1.15rem;
}

.icon-chip-gold {
    background: rgba(201, 162, 39, 0.16);
    color: var(--accent-hover);
}

/* ---------- FAQ accordion ---------- */
.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open] {
    border-color: rgba(201, 162, 39, 0.7);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    flex: none;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-body {
    padding: 0 1.3rem 1.3rem;
    color: var(--text-muted);
}

/* ---------- Forms ---------- */
.field-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #ffffff;
    padding: 0.8rem 0.95rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input::placeholder,
.field-textarea::placeholder {
    color: #9aa4b1;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(31, 122, 140, 0.16);
}

.form-status {
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-status.is-success {
    background: #e7f6ee;
    color: #12603c;
    border: 1px solid #b7e2cd;
}

.form-status.is-error {
    background: #fdecec;
    color: #8f1d1d;
    border: 1px solid #f3c3c3;
}

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(9, 31, 50, 0.62);
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-panel {
    width: 100%;
    max-width: 46rem;
    max-height: 86vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* ---------- Cookie bar ---------- */
.cookie-bar {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.2rem;
}

@media (min-width: 640px) {
    .cookie-bar {
        left: auto;
        right: 1.5rem;
        bottom: 1.5rem;
        max-width: 26rem;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink-color);
    color: rgba(255, 255, 255, 0.78);
}

.footer-link {
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
    color: var(--accent-color);
    padding-left: 4px;
}