/* ============================================
   THE BRAJ — FRONTEND DESIGN SYSTEM
   TheBraj.org | The Braj Dham Seva Trust
   OFFICIAL BRAND + DAY/NIGHT MODE
   ============================================ */

/* Design tokens (single source of truth) — MUST stay first */
@import './tokens.css';

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background 0.35s ease, color 0.35s ease;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-card); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-bright); }

/* --- Typography --- */
.font-cormorant { font-family: 'Cormorant Garamond', serif; }
.font-inter { font-family: 'Inter', sans-serif; }
.font-cinzel { font-family: 'Cinzel', serif; }

/* --- Layout --- */
.container { max-width: 1440px; margin: 0 auto; padding-inline: 32px; }
.container-narrow { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }

/* --- Section Spacing --- */
.section-spacing { padding: 80px 0; }
.section-spacing-lg { padding: 96px 0; }
.section-spacing-sm { padding: 48px 0; }

/* --- Buttons --- */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gold); color: var(--bg-body);
    padding: 12px 24px; border-radius: 8px;
    font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif;
    border: none; cursor: pointer; transition: all 0.2s;
    text-decoration: none; white-space: nowrap;
}
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(242,182,34,.35); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--gold);
    padding: 12px 24px; border-radius: 8px;
    font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif;
    border: 1.5px solid var(--gold); cursor: pointer; transition: all 0.2s;
    text-decoration: none; white-space: nowrap;
}
.btn-secondary:hover { background: var(--gold-bg); }

.btn-gold {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright)); color: var(--bg-body);
    padding: 12px 24px; border-radius: 8px;
    font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif;
    border: none; cursor: pointer; transition: all 0.2s;
    text-decoration: none; white-space: nowrap;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,201,77,.4); }

.btn-emergency {
    display: inline-flex; align-items: center; gap: 8px;
    background: #B52A2A; color: #fff;
    padding: 12px 24px; border-radius: 8px;
    font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif;
    border: none; cursor: pointer; transition: all 0.2s;
    text-decoration: none; white-space: nowrap;
}
.btn-emergency:hover { background: #8f1f1f; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--border-strong); }
.card-body { padding: 18px 20px; }

/* --- Hero Section --- */
.hero {
    position: relative; width: 100%; height: 320px;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(5,5,5,.1), rgba(5,5,5,.5));
    pointer-events: none;
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    max-width: 760px; padding: 0 20px; width: 100%;
}
.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 64px; font-weight: 600; color: #F5F2EA;
    letter-spacing: 0.02em; line-height: 1;
    margin-bottom: 12px; text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-tagline {
    font-size: 15px; font-weight: 500; color: rgba(245,242,234,.8);
    margin-bottom: 28px; letter-spacing: 0.02em;
}

/* --- Search Bar --- */
.hero-search {
    width: 720px; max-width: 100%; height: 60px;
    background: var(--search-bg); border-radius: 999px;
    border: 1px solid var(--search-border);
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    display: flex; align-items: center; padding: 0 8px 0 20px;
    margin: 0 auto;
}
.hero-search input {
    flex: 1; border: none; background: transparent;
    font-size: 15px; font-family: 'Inter', sans-serif;
    color: var(--text-primary); outline: none; min-width: 0;
}
.hero-search input::placeholder { color: var(--text-secondary); }
.hero-search-btn {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gold); border: none; color: var(--bg-body);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: all 0.2s;
}
.hero-search-btn:hover { background: var(--gold-bright); box-shadow: 0 4px 16px rgba(255,201,77,.4); }

/* --- Quick Chips --- */
.quick-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.quick-chip {
    height: 30px; padding: 0 13px;
    border-radius: 999px; border: 1px solid var(--border-strong);
    background: var(--gold-bg); backdrop-filter: blur(4px);
    color: var(--gold); font-size: 12px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 5px;
    cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.quick-chip:hover { background: rgba(242,182,34,.18); border-color: var(--gold); }

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 2; text-align: center; color: rgba(242,182,34,.8);
    font-size: 11px; animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Sticky Header --- */
.sticky-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg-card); border-bottom: 1px solid var(--border-color);
    height: 70px; display: flex; align-items: center;
    transition: background 0.35s ease, box-shadow 0.3s;
}
.sticky-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.3); }
.sticky-header-inner {
    max-width: 1440px; margin: 0 auto; padding-inline: 32px;
    width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.sticky-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px; font-weight: 700; color: var(--gold);
    letter-spacing: 0.02em; white-space: nowrap; flex-shrink: 0;
}
.sticky-nav { display: flex; align-items: center; gap: 4px; }
.sticky-nav a {
    padding: 8px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 500; color: var(--text-secondary);
    transition: all 0.2s; white-space: nowrap; text-decoration: none;
}
.sticky-nav a:hover { background: var(--gold-bg); color: var(--gold); }
.sticky-nav a.active { color: var(--gold); font-weight: 600; }
.sticky-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sticky-search-btn {
    width: 38px; height: 38px; border-radius: 50%;
    background: transparent; border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--gold); transition: all 0.2s;
}
.sticky-search-btn:hover { background: var(--gold-bg); }

/* --- Section Header --- */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px; font-weight: 600; color: var(--text-heading); line-height: 1.2;
}
.section-title small {
    font-size: 14px; font-weight: 400; color: var(--text-secondary);
    font-family: 'Inter', sans-serif; margin-left: 8px;
}
.section-link {
    font-size: 13px; font-weight: 600; color: var(--gold);
    display: flex; align-items: center; gap: 4px; transition: color 0.2s;
}
.section-link:hover { color: var(--gold-bright); }

/* --- 6-Column Cards --- */
.six-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.six-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 14px; padding: 18px;
    display: flex; flex-direction: column;
    min-height: 160px; transition: all 0.25s ease;
}
.six-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--border-strong); }
.six-card-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--gold-bg); display: flex; align-items: center;
    justify-content: center; margin-bottom: 12px; color: var(--gold); font-size: 16px;
}
.six-card-title { font-size: 15px; font-weight: 600; color: var(--gold); margin-bottom: 6px; }
.six-card-text { font-size: 12px; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.six-card-link { font-size: 12px; font-weight: 600; color: var(--gold); margin-top: 12px; display: flex; align-items: center; gap: 4px; }

/* --- 4 Horizontal Cards --- */
.four-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.four-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 14px; padding: 20px; text-align: center; transition: all 0.25s ease;
}
.four-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--border-strong); }
.four-card-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gold-bg); display: flex; align-items: center;
    justify-content: center; margin: 0 auto 12px; color: var(--gold); font-size: 20px;
}
.four-card-title { font-size: 15px; font-weight: 600; color: var(--gold); margin-bottom: 6px; }
.four-card-text { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; }

/* --- Destination Cards --- */
.destinations-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.destinations-scroll::-webkit-scrollbar { height: 4px; }
.destinations-scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
.dest-card {
    flex: 0 0 auto; width: 145px; scroll-snap-align: start;
    border-radius: 12px; overflow: hidden; cursor: pointer;
    background: var(--bg-card); border: 1px solid var(--border-color); transition: all 0.25s ease;
}
.dest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--border-strong); }
.dest-card img { width: 100%; height: 100px; object-fit: cover; }
.dest-card-name { font-size: 13px; font-weight: 600; color: var(--gold); text-align: center; margin-top: 6px; }
.dest-more {
    flex: 0 0 auto; width: 145px; height: 140px;
    border-radius: 12px; border: 2px dashed var(--border-color);
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 6px; cursor: pointer;
    transition: all 0.2s; color: var(--text-secondary); background: var(--bg-card);
}
.dest-more:hover { border-color: var(--gold); color: var(--gold); }

/* --- Utility Grid --- */
.utility-grid { display: grid; grid-template-columns: 25% 25% 30% 20%; gap: 16px; }
.utility-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 14px; padding: 20px; display: flex; flex-direction: column;
}
.utility-card-title { font-size: 15px; font-weight: 600; color: var(--gold); margin-bottom: 4px; }
.utility-card-link { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; }
.utility-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; }
.utility-icon-item {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 4px; padding: 8px 4px;
    border-radius: 8px; cursor: pointer; transition: background 0.2s;
}
.utility-icon-item:hover { background: var(--gold-bg); }
.utility-icon-item i { font-size: 20px; color: var(--gold); }
.utility-icon-item span { font-size: 10px; color: var(--text-secondary); font-weight: 500; }

/* --- Ad Banner --- */
.ad-banner {
    border-radius: 14px; overflow: hidden; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
    border: 1px solid var(--border-color);
}
.ad-label {
    position: absolute; top: 8px; left: 12px;
    font-size: 9px; font-weight: 700; letter-spacing: 1px;
    color: var(--gold); background: var(--bg-card);
    padding: 2px 8px; border-radius: 4px; text-transform: uppercase;
}

/* --- Seva Section --- */
.seva-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.seva-feature { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 24px; }
.seva-list { list-style: none; }
.seva-list li {
    padding: 10px 0; border-bottom: 1px solid var(--border-color);
    font-size: 14px; color: var(--text-primary); display: flex; align-items: center; gap: 10px;
}
.seva-list li:last-child { border-bottom: none; }
.seva-project-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 14px; overflow: hidden; transition: all 0.25s ease;
}
.seva-project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--border-strong); }
.seva-project-img { width: 100%; height: 120px; object-fit: cover; }
.seva-project-body { padding: 16px; }
.seva-project-status {
    display: inline-block; font-size: 11px; font-weight: 600;
    padding: 2px 8px; border-radius: 4px;
    background: var(--gold-bg); color: var(--gold); margin-bottom: 6px;
}

/* --- Business Section --- */
.biz-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; }
.biz-left { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 24px; }
.biz-right { display: flex; flex-direction: column; gap: 12px; }
.biz-listing {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 14px; padding: 14px; display: flex; align-items: center; gap: 14px; transition: all 0.25s ease;
}
.biz-listing:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--border-strong); }
.biz-listing-img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.biz-listing-info { flex: 1; }
.biz-listing-name { font-size: 14px; font-weight: 600; color: var(--gold); }
.biz-listing-loc { font-size: 12px; color: var(--text-secondary); }
.biz-listing-badge { font-size: 9px; font-weight: 700; letter-spacing: 0.5px; padding: 2px 6px; border-radius: 4px; background: var(--gold-bg); color: var(--gold); }

/* --- Verified Section --- */
.verified-section {
    background: var(--gold-bg); border: 1px solid var(--border-color); border-radius: 14px; padding: 32px;
    display: flex; align-items: center; gap: 48px;
}
.verified-left { flex: 0.5; }
.verified-right { flex: 0.5; display: flex; flex-direction: column; gap: 12px; }
.verified-badge {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--bg-body); color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; text-align: center;
    border: 3px solid var(--gold);
}
.verified-list { list-style: none; }
.verified-list li { padding: 6px 0; font-size: 13px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.verified-list li i { color: var(--gold); font-size: 14px; }

/* --- Reviews --- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 20px; }
.review-stars { color: var(--gold); font-size: 14px; margin-bottom: 8px; }
.review-text { font-size: 13px; color: var(--text-primary); line-height: 1.6; margin-bottom: 12px; }
.review-author { font-size: 12px; font-weight: 600; color: var(--gold); }

/* --- Timeline --- */
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 2px; background: var(--border-color); transform: translateX(-50%);
}
.timeline-item { display: flex; align-items: center; margin-bottom: 24px; position: relative; }
.timeline-item:nth-child(odd) { flex-direction: row-reverse; }
.timeline-dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--gold); border: 3px solid var(--bg-body);
    position: absolute; left: 50%; transform: translateX(-50%);
    z-index: 2; box-shadow: 0 0 0 4px var(--gold-bg);
}
.timeline-content {
    width: 42%; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 16px 20px;
}
.timeline-year { font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.timeline-text { font-size: 13px; color: var(--text-primary); }

/* --- Guru Section --- */
.guru-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 32px; text-align: center; }

/* --- Support & Accuracy --- */
.support-section { text-align: center; }
.support-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.support-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 24px; text-align: center; }
.accuracy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.accuracy-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 20px; text-align: center; }

/* --- Map Card --- */
.map-placeholder {
    width: 100%; height: 100px; border-radius: 10px;
    background: var(--gold-bg); display: flex; align-items: center;
    justify-content: center; margin-bottom: 10px;
    color: var(--gold); font-size: 13px; border: 1px solid var(--border-color);
}
.map-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.map-legend-item { font-size: 10px; color: var(--text-secondary); display: flex; align-items: center; gap: 3px; }
.map-legend-dot { width: 6px; height: 6px; border-radius: 50%; }

/* --- Gold Ornamental Divider --- */
.gold-divider { width: 80px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 16px auto; }

/* --- Responsive --- */
@media (max-width: 1199px) {
    .utility-grid { grid-template-columns: 1fr 1fr; }
    .six-grid { grid-template-columns: repeat(3, 1fr); }
    .four-grid { grid-template-columns: repeat(2, 1fr); }
    .sticky-nav { display: none; }
}
@media (max-width: 767px) {
    .container { padding-inline: 16px; }
    .hero { height: 260px; }
    .hero-title { font-size: 42px; }
    .hero-search { height: 52px; }
    .trust-values { grid-template-columns: repeat(2, 1fr); }
    .utility-grid { grid-template-columns: 1fr; }
    .six-grid { grid-template-columns: repeat(2, 1fr); }
    .seva-grid { grid-template-columns: 1fr; }
    .four-grid { grid-template-columns: 1fr; }
    .biz-grid { grid-template-columns: 1fr; }
    .verified-section { flex-direction: column; text-align: center; }
    .reviews-grid { grid-template-columns: 1fr; }
    .support-cards { grid-template-columns: 1fr; }
    .accuracy-grid { grid-template-columns: 1fr; }
    .section-spacing { padding: 48px 0; }
    .timeline::before { left: 20px; }
    .timeline-dot { left: 20px; }
    .timeline-content { width: calc(100% - 50px); margin-left: 50px !important; }
    .timeline-item, .timeline-item:nth-child(odd) { flex-direction: row; }
}

/* ============================================================
   SHARED PRIMITIVES — typography / forms / badges / buttons
   New shared building blocks for public pages (Phase 1).
   Everything below is token-driven: it follows the dark/light
   theme automatically and never hardcodes a brand colour.
   ============================================================ */

/* --- Typography ------------------------------------------- */
.font-devanagari,
[lang="hi"] { font-family: var(--font-hindi); }

.t-display {
    font-family: var(--font-display);
    font-size: var(--text-6xl); font-weight: 600;
    line-height: var(--leading-tight); letter-spacing: var(--tracking-wide);
}
.t-h1, .t-h2, .t-h3, .t-h4 {
    font-family: var(--font-display);
    font-weight: 600; line-height: var(--leading-snug);
    color: var(--text-primary); margin: 0;
}
.t-h1 { font-size: var(--text-5xl); }
.t-h2 { font-size: var(--text-4xl); }
.t-h3 { font-size: var(--text-3xl); }
.t-h4 { font-size: var(--text-2xl); }
.t-lead { font-size: var(--text-xl); line-height: var(--leading-normal); color: var(--text-secondary); }
.t-body { font-size: var(--text-lg); line-height: var(--leading-normal); color: var(--text-primary); }
.t-body-sm { font-size: var(--text-md); line-height: var(--leading-normal); color: var(--text-secondary); }
.t-caption { font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--text-secondary); }
.t-eyebrow {
    font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-caps);
    text-transform: uppercase; color: var(--gold);
}
.t-gold { color: var(--gold); }
.t-heading { color: var(--text-heading); }
.t-muted { color: var(--text-secondary); }
.t-center { text-align: center; }

/* --- Buttons (additions to the existing .btn-* family) ----- */
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: transparent; color: var(--text-primary);
    padding: 12px 24px; border-radius: var(--radius-md);
    font-size: var(--text-md); font-weight: 600; font-family: var(--font-body);
    border: 1.5px solid var(--border-strong); cursor: pointer;
    transition: all var(--dur-fast) var(--ease-default);
    text-decoration: none; white-space: nowrap;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-bg); }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: transparent; color: var(--text-secondary);
    padding: 12px 24px; border-radius: var(--radius-md);
    font-size: var(--text-md); font-weight: 600; font-family: var(--font-body);
    border: none; cursor: pointer;
    transition: all var(--dur-fast) var(--ease-default);
    text-decoration: none; white-space: nowrap;
}
.btn-ghost:hover { color: var(--gold); background: var(--gold-bg); }

.btn-lg { padding: 15px 32px; font-size: var(--text-lg); border-radius: var(--radius-lg); }
.btn-block { display: flex; width: 100%; }

/* --- Forms ------------------------------------------------- */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.form-label {
    font-size: var(--text-md); font-weight: 600; color: var(--text-primary);
    font-family: var(--font-body);
}
.form-label .req { color: var(--braj-danger-text); margin-left: 3px; }

.form-input,
.form-textarea,
.form-select {
    width: 100%; background: var(--bg-input); color: var(--text-primary);
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    padding: 12px 14px; font-size: var(--text-lg); font-family: var(--font-body);
    line-height: var(--leading-snug);
    transition: border-color var(--dur-fast) var(--ease-default),
                box-shadow var(--dur-fast) var(--ease-default);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-secondary); opacity: 1; }
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-bg);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                      linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 13px) calc(50% + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
}
.form-help { font-size: var(--text-sm); color: var(--text-secondary); }
.form-error { font-size: var(--text-sm); color: var(--braj-danger-text); }
.form-input.is-invalid,
.form-textarea.is-invalid,
.form-select.is-invalid { border-color: var(--braj-danger-text); }

/* --- Badges ------------------------------------------------ */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: var(--radius-pill);
    font-size: var(--text-sm); font-weight: 600; line-height: 1.5;
    font-family: var(--font-body); white-space: nowrap;
}
.badge--gold { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--border-color); }
.badge--solid { background: var(--gold); color: var(--bg-body); border: 1px solid transparent; }
.badge--outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-strong); }
.badge--muted { background: var(--bg-card-hover); color: var(--text-secondary); border: 1px solid var(--border-color); }
.badge--success { background: rgba(37, 211, 102, .12); color: var(--braj-success); border: 1px solid rgba(37, 211, 102, .35); }
.badge--danger { background: rgba(181, 42, 42, .15); color: var(--braj-danger-text); border: 1px solid rgba(181, 42, 42, .35); }

/* --- Panels (generic page surface) ------------------------ */
.panel {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-xl); overflow: hidden;
}
.panel__header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-color);
}
.panel__body { padding: var(--space-5) var(--space-6); }
.panel__footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border-color); background: var(--bg-card-hover);
}

/* --- Layout utilities ------------------------------------- */
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-6); }
.grid-auto--sm { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.full-bleed { width: 100%; }
.divider {
    height: 1px; width: 100%;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    border: 0; margin: var(--space-6) 0;
}

/* --- Accessibility ---------------------------------------- */
.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;
}
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: var(--z-preloader);
    background: var(--gold); color: var(--bg-body);
    padding: 10px 18px; border-radius: 0 0 var(--radius-md) 0;
    font-size: var(--text-md); font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

::selection { background: var(--gold); color: var(--bg-body); }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Responsive (new primitives) -------------------------- */
@media (max-width: 1199px) {
    .t-display { font-size: var(--text-5xl); }
}
@media (max-width: 767px) {
    .t-display { font-size: var(--text-4xl); }
    .t-h1 { font-size: var(--text-4xl); }
    .t-h2 { font-size: var(--text-3xl); }
    .t-h3 { font-size: var(--text-2xl); }
    .grid-auto { grid-template-columns: 1fr; }
    .btn-block-mobile { display: flex; width: 100%; }
}
