/* =========================
VIDYA — STYLE.CSS
Palette, type and components are derived from the existing
book.shhalaj.com design system so VIDYA reads as part of the
same family rather than a separate brand.

TABLE OF CONTENTS
1. Variables
2. Reset & base
3. Layout helpers
4. Buttons
5. Header & navigation
6. Hero
7. Section header
8. Four pillars
9. Cards (programmes / anthology / general)
10. Timeline
11. FAQ accordion
12. Forms
13. Interior page header
14. Footer
15. Utilities
========================= */

/* =========================
   1. VARIABLES
========================= */

:root {
    /* Colour — matches book.shhalaj.com */
    --primary: #1f1f1f;
    --primary-hover: #3a3a3a;
    --secondary: #7a1f1f;
    --accent-gold: #b7791f;

    --text: #2b2620;
    --text-muted: #5c5348;
    --text-on-dark: #f3ede3;

    --background: #f6f0e5;
    --background-alt: #f8f3ea;
    --surface: #ffffff;

    --border: #e5e5e5;
    --border-warm: #d8d0c5;

    --footer-bg: #2b2620;
    --footer-text: #f3ede3;
    --footer-muted: #d8d0c5;
    --footer-muted-2: #c8bfb2;

    /* Type */
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 96px;

    /* Shape */
    --radius: 8px;
    --radius-lg: 14px;
    --container-width: 1200px;
    --shadow-sm: 0 8px 24px rgba(31, 31, 31, 0.08);
    --shadow-md: 0 12px 32px rgba(31, 31, 31, 0.12);
}

/* =========================
   2. RESET & BASE
========================= */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
    margin: 0 0 var(--space-sm);
}

h1 { font-size: 48px; }
h2 { font-size: 34px; }
h3 { font-size: 22px; }

p {
    margin: 0 0 var(--space-sm);
}

a {
    color: var(--secondary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

svg {
    max-width: 100%;
    height: auto;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
label:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    z-index: 2000;
    border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
    left: 0;
}

/* =========================
   3. LAYOUT HELPERS
========================= */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--space-2xl) 0;
}

.section-alt {
    background: var(--surface);
}

/* =========================
   4. BUTTONS
========================= */

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    border-color: var(--footer-text);
    color: var(--footer-text);
}

.btn-outline-light:hover {
    background: var(--footer-text);
    color: var(--primary);
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.88rem;
}

/* =========================
   5. HEADER & NAVIGATION
========================= */

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 14px 20px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    height: 44px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    border-left: 1px solid var(--border-warm);
    padding-left: 14px;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* Mobile nav toggle (checkbox-driven, no JS required) */

.nav-toggle-input {
    display: none;
}

.nav-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.nav-toggle-btn span {
    display: block;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.site-nav ul a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

.site-nav ul a:hover,
.site-nav ul a.active {
    color: var(--secondary);
    text-decoration: none;
}

.nav-cta {
    white-space: nowrap;
}

/* =========================
   6. HERO
========================= */

.hero {
    background: var(--background-alt);
    padding: var(--space-2xl) 0;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.hero-content {
    flex: 1 1 480px;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.hero h1 {
    font-size: 52px;
    margin-bottom: var(--space-sm);
}

.hero-tagline {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 620px;
    margin-bottom: var(--space-lg);
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1 1 380px;
    display: flex;
    justify-content: center;
}

.hero-visual img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* =========================
   7. SECTION HEADER
========================= */

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto var(--space-xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.section-header-left {
    text-align: left;
    margin-left: 0;
    max-width: 820px;
}

/* =========================
   8. FOUR PILLARS
========================= */

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.pillar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.pillar-card:nth-child(1) { border-top-color: var(--primary); }
.pillar-card:nth-child(2) { border-top-color: var(--secondary); }
.pillar-card:nth-child(3) { border-top-color: var(--accent-gold); }
.pillar-card:nth-child(4) { border-top-color: var(--text-muted); }

.pillar-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-xs);
}

.pillar-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* =========================
   9. CARDS
========================= */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.programme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.programme-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.status-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 100px;
}

.status-badge.now-open {
    background: rgba(122, 31, 31, 0.1);
    color: var(--secondary);
}

.status-badge.coming-soon {
    background: rgba(43, 38, 32, 0.08);
    color: var(--text-muted);
}

.featured-programme {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.featured-programme-content {
    flex: 1 1 480px;
}

.featured-programme-visual {
    flex: 1 1 320px;
}

.anthology-banner {
    background: var(--primary);
    color: var(--text-on-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.anthology-banner h2,
.anthology-banner h3 {
    color: #fff;
}

.anthology-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.anthology-fact-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--footer-muted);
    margin-bottom: 4px;
}

.anthology-fact-value {
    font-weight: 600;
    font-size: 1.05rem;
}

.placeholder-note {
    display: inline-block;
    font-size: 0.78rem;
    font-style: italic;
    color: var(--text-muted);
    background: rgba(43, 38, 32, 0.06);
    border-radius: var(--radius);
    padding: 2px 10px;
}

/* =========================
   10. TIMELINE
========================= */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
}

.timeline-step {
    display: flex;
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
    position: relative;
}

.timeline-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 34px;
    bottom: 0;
    width: 2px;
    background: var(--border-warm);
}

.timeline-marker {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.timeline-label {
    font-weight: 600;
    margin-bottom: 2px;
}

/* =========================
   11. FAQ ACCORDION
========================= */

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: var(--space-md) 0;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.faq-question .faq-icon {
    flex: none;
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

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

.faq-answer {
    padding: 0 0 var(--space-md);
    color: var(--text-muted);
    line-height: 1.8;
}

/* =========================
   12. FORMS
========================= */

label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-warm);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--surface);
    color: var(--text);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--secondary);
    outline: none;
}

.form-field {
    margin-bottom: var(--space-md);
}

.form-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-message {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
    font-size: 0.92rem;
}

.form-message.success {
    background: #e7f3e6;
    color: #2e5c2b;
}

.form-message.error {
    background: #fbe4e4;
    color: var(--secondary);
}

/* Spam-trap field: hidden from sighted users and excluded from tab order,
   but still present for bots that fill in every field indiscriminately. */
.form-honeypot {
    position: absolute;
    left: -9999px;
}

/* =========================
   13. INTERIOR PAGE HEADER
========================= */

.page-header {
    background: var(--background-alt);
    padding: var(--space-xl) 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: var(--space-xs);
}

.page-header-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

/* =========================
   14. FOOTER
========================= */

.site-footer {
    margin-top: var(--space-2xl);
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: var(--space-lg);
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.footer-tagline {
    color: var(--footer-muted);
    font-weight: 600;
    margin: var(--space-xs) 0;
}

.footer-col h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.footer-col p {
    color: var(--footer-muted);
    font-size: 0.9rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--footer-text);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--accent-gold);
    text-decoration: none;
}

.footer-bottom {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--footer-muted-2);
}

.footer-bottom nav a {
    color: var(--footer-muted-2);
    margin-left: var(--space-md);
}

.footer-bottom nav a:first-child {
    margin-left: 0;
}

.footer-bottom nav a:hover {
    color: var(--accent-gold);
}

/* =========================
   15. UTILITIES
========================= */

.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-0 { margin-bottom: 0; }
.justify-center { justify-content: center; }
.container-narrow { max-width: 820px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
