/*
 * Main stylesheet — Uganda Museums Light Theme
 * Global utility classes and common components.
 * Component-specific styles live in their own CSS files.
 */

/* ── CONTAINERS ── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-wide {
    width: 100%;
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ── SECTIONS ── */
.section { padding: var(--space-section) 0; }

.section-white  { background-color: var(--bg-white); }
.section-warm   { background-color: var(--bg-section); }
.section-light  { background-color: var(--bg-light); }

/* ── EYEBROW LABELS ── */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.eyebrow-line {
    width: 32px;
    height: 2px;
    background-color: var(--terracotta);
    flex-shrink: 0;
}

.eyebrow-text {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--terracotta);
}

/* ── SECTION TITLES ── */
.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-title em {
    font-style: italic;
    color: var(--terracotta);
}

.section-desc {
    font-size: var(--text-lg);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: var(--space-md);
}

/* ── BUTTONS ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background-color: var(--terracotta);
    color: #fff;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition-fast);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
}

.btn-forest {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background-color: var(--forest);
    color: var(--text-on-dark);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition-fast);
}

.btn-forest:hover {
    background-color: var(--forest-dark);
    color: var(--text-on-dark);
}

/* ── STATUS BADGES ── */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
}

.status-submitted    { background: rgba(184,134,11,0.12); color: var(--status-pending); }
.status-under-review { background: rgba(184,134,11,0.12); color: var(--status-pending); }
.status-info-requested { background: rgba(30,77,140,0.12); color: var(--status-info); }
.status-approved     { background: rgba(45,106,63,0.12);  color: var(--status-approved); }
.status-denied       { background: rgba(184,50,50,0.12);  color: var(--status-denied); }
.status-active       { background: rgba(26,107,94,0.12);  color: var(--status-active); }
.status-completed    { background: rgba(100,100,98,0.12); color: var(--text-muted); }
.status-expired      { background: rgba(100,100,98,0.08); color: var(--text-light); }

/* ── UTILITY ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only--focusable:focus {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: auto;
    height: auto;
    padding: 1rem 2rem;
    background: var(--terracotta);
    color: #fff;
    font-weight: 700;
    clip: auto;
    overflow: visible;
}

.text-center { text-align: center; }
.text-right  { text-align: right; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── ENHANCED BUTTON STATES ── */
.btn-primary,
.btn-secondary,
.btn-forest {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    will-change: transform;
}
.btn-forest:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44,74,62,0.3);
}

/* ── DEFAULT PAGE TEMPLATE ── */
.pg-hero {
    position: relative;
    padding: clamp(30px, 3vw, 50px) 6vw clamp(20px, 2vw, 30px);
    background: radial-gradient(ellipse at 80% -20%, rgba(160,82,45,0.06), transparent 55%), linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-white) 100%);
    display: grid; grid-template-columns: 1fr 60px; gap: 40px; overflow: hidden;
}
.pg-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(26,26,24,0.04) 1px, transparent 0);
    background-size: 18px 18px; opacity: 0.5; pointer-events: none;
}
.pg-hero__inner { position: relative; max-width: 1180px; margin: 0 auto; width: 100%; }
.pg-hero__title { font-family: var(--font-heading); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; color: var(--text-primary); }
.pg-hero__sidebar { display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 10px 0; }
.pg-hero__folio { font-family: var(--font-heading); font-style: italic; font-size: 13px; color: var(--text-muted); letter-spacing: 0.06em; }
.pg-hero__vertical { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--text-muted); }
.pg-body { padding: 4rem 0; }
.pg-content { max-width: 760px; font-size: 1.05rem; line-height: 1.85; color: var(--text-secondary); }
.pg-content h2 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--text-primary); margin: 2.5rem 0 1rem; }
.pg-content h3 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin: 2rem 0 0.75rem; }
.pg-content p { margin-bottom: 1.25rem; }
@media (max-width: 1024px) { .pg-hero { grid-template-columns: 1fr; } .pg-hero__sidebar { display: none; } }
