/* Al-Omary Gym theme.
   Layered on top of Bootstrap 5. We override a few tokens, add some custom
   components, and pick a refined palette tied to the red+white brand. */

:root {
    /* Brand palette. The red is pulled from the logo; the dark is a near-black
       with a touch of warmth so it doesn't feel like a pure CSS reset. */
    --brand-red: #d3262b;
    --brand-red-dark: #a81e23;
    --brand-ink: #14171c;
    --brand-ink-2: #1d2128;
    --brand-paper: #fafaf7;
    --brand-line: #e6e3dc;
    --brand-muted: #6b6f78;

    /* Session colors — kept consistent with the schedule legend. */
    --slot-men-bg: #cfe2ff;
    --slot-men-ink: #052c65;
    --slot-men-edge: #0d6efd;
    --slot-women-bg: #f8d7e3;
    --slot-women-ink: #6a1a3b;
    --slot-women-edge: #d63384;
    --slot-mixed-bg: #d1e7dd;
    --slot-mixed-ink: #0a3622;
    --slot-mixed-edge: #198754;
    --slot-closed-bg: #e9ecef;
    --slot-closed-ink: #495057;
    --slot-closed-edge: #6c757d;
}

html, body {
    background: var(--brand-paper);
    color: var(--brand-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-feature-settings: 'cv11', 'ss01';
}

h1, h2, h3, h4, h5 {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    font-weight: 700;
}

/* --- Navbar --- */
.navbar.brand-nav {
    background: var(--brand-ink) !important;
    border-bottom: 3px solid var(--brand-red);
    padding-top: .6rem;
    padding-bottom: .6rem;
}
.navbar.brand-nav .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    transition: color .15s ease;
    padding-left: 1rem;
    padding-right: 1rem;
}
.navbar.brand-nav .nav-link:hover {
    color: #fff;
}

/* --- Buttons --- */
.btn-primary, .btn-brand {
    background: var(--brand-red);
    border-color: var(--brand-red);
    font-weight: 600;
    letter-spacing: .01em;
}
.btn-primary:hover, .btn-brand:hover,
.btn-primary:focus, .btn-brand:focus {
    background: var(--brand-red-dark);
    border-color: var(--brand-red-dark);
}
.btn-outline-brand {
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}
.btn-outline-brand:hover {
    background: #fff;
    color: var(--brand-ink);
    border-color: #fff;
}

/* --- Hero section (home page) --- */
.hero {
    background: linear-gradient(135deg, var(--brand-ink) 0%, var(--brand-ink-2) 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--brand-red);
}
.hero::before {
    /* A subtle Arabesque grid for texture. CSS-only so no extra HTTP cost. */
    content: "";
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(211, 38, 43, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(211, 38, 43, 0.10) 0%, transparent 45%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}
.hero .lede {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 36rem;
    margin-bottom: 2rem;
}

/* --- Hadith block --- */
.hadith {
    background: #fff;
    border: 1px solid var(--brand-line);
    border-left: 4px solid var(--brand-red);
    border-radius: .5rem;
    padding: 1.75rem 2rem;
    margin: 0 auto;
    max-width: 42rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    position: relative;
}
.hadith-quote {
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--brand-ink);
    font-weight: 500;
    margin: 0 0 .75rem;
    font-style: italic;
}
.hadith-quote::before {
    content: "“";
    font-family: Georgia, serif;
    font-size: 3rem;
    color: var(--brand-red);
    line-height: 0;
    margin-right: .25rem;
    vertical-align: -0.4em;
    font-style: normal;
}
.hadith-attr {
    font-size: .85rem;
    color: var(--brand-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    margin: 0;
}
.hadith-attr::before {
    content: "— ";
}
/* Inverted variant for use against the dark hero. */
.hadith.on-dark {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    border-left-color: var(--brand-red);
    box-shadow: none;
    backdrop-filter: blur(6px);
}
.hadith.on-dark .hadith-quote { color: #fff; }
.hadith.on-dark .hadith-attr { color: rgba(255, 255, 255, 0.65); }

/* --- Cards --- */
.card {
    border: 1px solid var(--brand-line);
    border-radius: .6rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: box-shadow .15s ease, transform .15s ease;
}
.card-header {
    background: #fff;
    border-bottom: 1px solid var(--brand-line);
    font-weight: 600;
}
.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* --- Schedule grid --- */
.schedule-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 768px) {
    .schedule-grid { grid-template-columns: repeat(7, 1fr); }
}
.day-col {
    border: 1px solid var(--brand-line);
    border-radius: .5rem;
    padding: .65rem;
    min-height: 220px;
    background: #fff;
}
.day-col h5 {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand-muted);
    margin: 0 0 .55rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid var(--brand-line);
}
.slot {
    border-radius: .35rem;
    padding: .45rem .55rem;
    margin-bottom: .4rem;
    font-size: .85rem;
    line-height: 1.25;
}
.slot-time { display: block; font-weight: 600; }
.slot-label { display: block; font-size: .72rem; opacity: .85; }
.slot-note { display: block; font-size: .7rem; opacity: .75; font-style: italic; margin-top: .15rem; }
.slot-men    { background: var(--slot-men-bg);    color: var(--slot-men-ink);    border-left: 4px solid var(--slot-men-edge); }
.slot-women  { background: var(--slot-women-bg);  color: var(--slot-women-ink);  border-left: 4px solid var(--slot-women-edge); }
.slot-mixed  { background: var(--slot-mixed-bg);  color: var(--slot-mixed-ink);  border-left: 4px solid var(--slot-mixed-edge); }
.slot-closed { background: var(--slot-closed-bg); color: var(--slot-closed-ink); border-left: 4px solid var(--slot-closed-edge); }
.legend { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.legend-item { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--brand-muted); }
.legend-swatch { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

/* --- Footer --- */
.site-footer {
    background: var(--brand-ink);
    color: rgba(255,255,255,0.65);
    padding: 2rem 0;
    margin-top: 4rem;
    font-size: .9rem;
}
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* --- Forms — slightly tighter focus ring --- */
.form-control:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 .2rem rgba(211, 38, 43, 0.15);
}

/* --- Section wrappers --- */
.section { padding: 3rem 0; }
.section-tight { padding: 2rem 0; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .75rem;
    color: var(--brand-red);
    font-weight: 700;
    margin-bottom: .5rem;
}
