/*
 * Public site design tokens.
 * Layered on top of the Bootstrap 5 CDN build (see resources/views/site/partials/head.blade.php),
 * which is swapped between the RTL and LTR builds per active locale. Everything here must use
 * logical CSS properties (margin-inline-*, text-align: start/end, etc.) instead of left/right so
 * it never needs its own RTL variant.
 */

:root {
    --hb-primary: #c6603d;
    --hb-primary-dark: #a54c2e;
    --hb-secondary: #0e6e6e;
    --hb-secondary-dark: #0a5252;
    --hb-accent: #d9a441;
    --hb-bg: #fbf7f2;
    --hb-surface: #ffffff;
    --hb-ink: #2a2521;
    --hb-ink-muted: #6b5f56;
    --hb-border: #e7ddd2;

    --bs-primary: var(--hb-primary);
    --bs-primary-rgb: 198, 96, 61;
    --bs-secondary: var(--hb-secondary);
    --bs-secondary-rgb: 14, 110, 110;
    --bs-body-color: var(--hb-ink);
    --bs-body-bg: var(--hb-bg);
    --bs-border-color: var(--hb-border);

    --hb-font-ar: 'Tajawal', 'Cairo', sans-serif;
    --hb-font-en: 'Poppins', sans-serif;
}

body {
    background-color: var(--hb-bg);
    color: var(--hb-ink);
}

html[lang="ar"] body {
    font-family: var(--hb-font-ar);
}

html[lang="en"] body {
    font-family: var(--hb-font-en);
}

.btn-primary {
    --bs-btn-bg: var(--hb-primary);
    --bs-btn-border-color: var(--hb-primary);
    --bs-btn-hover-bg: var(--hb-primary-dark);
    --bs-btn-hover-border-color: var(--hb-primary-dark);
    --bs-btn-active-bg: var(--hb-primary-dark);
    --bs-btn-active-border-color: var(--hb-primary-dark);
}

.btn-donate {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--hb-accent);
    --bs-btn-border-color: var(--hb-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #c2902f;
    --bs-btn-hover-border-color: #c2902f;
    border-radius: 999px;
    font-weight: 600;
}

.rounded-4 {
    border-radius: 1rem !important;
}

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */

.site-header {
    background: var(--hb-surface);
    box-shadow: 0 1px 0 var(--hb-border);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--hb-primary), var(--hb-secondary));
    color: #fff;
}

.navbar-nav .nav-link {
    color: var(--hb-ink);
    font-weight: 500;
    padding-inline: .85rem;
}

.navbar-nav .nav-link:hover {
    color: var(--hb-primary);
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */

.hero-slide {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(198, 96, 61, .85), rgba(14, 110, 110, .75));
}

.hero-slide__content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 640px;
}

.hero-slide__content h1 {
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.25;
}

.hero-slide__content p {
    font-size: 1.15rem;
    opacity: .95;
}

.hero-fallback {
    background: linear-gradient(120deg, var(--hb-primary), var(--hb-secondary));
    min-height: 60vh;
    display: flex;
    align-items: center;
    color: #fff;
}

/* ---------------------------------------------------------------------- */
/* Sections                                                                 */
/* ---------------------------------------------------------------------- */

.section {
    padding-block: 4.5rem;
}

.section-eyebrow {
    color: var(--hb-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .85rem;
}

.section-title {
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

/* Pull quote (director's message) */

.pull-quote {
    background: var(--hb-surface);
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(42, 37, 33, .08);
    padding: 2.5rem;
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
}

.pull-quote__mark {
    font-size: 3rem;
    color: var(--hb-accent);
    line-height: 1;
}

.pull-quote__text {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--hb-ink);
}

/* Program cards */

.program-card {
    background: var(--hb-surface);
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(42, 37, 33, .06);
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(42, 37, 33, .12);
}

.program-card__image {
    height: 190px;
    object-fit: cover;
    width: 100%;
}

.program-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(198, 96, 61, .12);
    color: var(--hb-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Stat counters */

.stat-tile {
    text-align: center;
    padding: 1.5rem;
}

.stat-tile__value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--hb-primary);
}

.stat-tile__label {
    color: var(--hb-ink-muted);
    font-weight: 500;
}

/* Activity cards */

.activity-card {
    background: var(--hb-surface);
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(42, 37, 33, .06);
    height: 100%;
}

.activity-card__image {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.activity-card__date {
    color: var(--hb-secondary);
    font-weight: 600;
    font-size: .85rem;
}

/* Gallery */

.gallery-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: block;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card__caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent);
    color: #fff;
    padding: .9rem;
    font-weight: 600;
}

/* Board members */

.board-member-card {
    text-align: center;
}

.board-member-card__photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--hb-surface);
    box-shadow: 0 8px 20px rgba(42, 37, 33, .12);
}

/* Donate / bank accounts */

.donate-cta {
    background: linear-gradient(120deg, var(--hb-primary), var(--hb-accent));
    color: #fff;
    border-radius: 1.25rem;
    padding: 3rem;
}

.bank-account-card {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

.bank-account-card__iban {
    font-family: monospace;
    letter-spacing: .02em;
}

/* Footer */

.site-footer {
    background: var(--hb-ink);
    color: #fff;
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-list li {
    margin-bottom: .5rem;
    display: flex;
    gap: .5rem;
    align-items: flex-start;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color .15s ease;
}

.social-icon:hover {
    background: var(--hb-primary);
    color: #fff;
}

.social-icon--on-light {
    background: rgba(198, 96, 61, .1);
    color: var(--hb-primary);
}

.social-icon--on-light:hover {
    background: var(--hb-primary);
    color: #fff;
}

/* ---------------------------------------------------------------------- */
/* Administrative boards                                                   */
/* ---------------------------------------------------------------------- */

.boards-wrapper {
    margin: 2.5rem auto;
}

.lead-row {
    display: flex;
    gap: 0;
    align-items: stretch;
    margin-bottom: 1.75rem;
}

.lead-photo {
    width: 260px;
    flex-shrink: 0;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 4px solid var(--hb-secondary);
    background: var(--hb-border);
}

.lead-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--hb-ink-muted);
}

.lead-bar {
    flex: 1;
    background: var(--hb-secondary);
    display: flex;
    align-items: center;
    padding: 1.4rem 1.6rem;
    min-height: 140px;
}

.lead-bar .lead-title {
    color: #fff;
    line-height: 1.2;
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0;
}

.lead-bar .lead-sub {
    color: #eaffff;
    line-height: 1.2;
    font-weight: 600;
    font-size: 1.15rem;
    margin: .5rem 0 0;
}

@media (max-width: 576px) {
    .lead-row {
        flex-direction: column;
    }

    .lead-row .lead-photo {
        width: 100%;
    }

    .lead-bar {
        min-height: auto;
    }
}

.person-card {
    text-align: center;
}

.person-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 4px solid var(--hb-secondary);
    background: var(--hb-border);
}

.person-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--hb-ink-muted);
}

.person-name {
    margin-top: .6rem;
    font-weight: 700;
    color: var(--hb-secondary-dark);
    font-size: 1.05rem;
    line-height: 1.2;
}

.person-role {
    margin-top: .1rem;
    font-weight: 600;
    color: var(--hb-secondary-dark);
    font-size: .9rem;
    line-height: 1.2;
}

.board-block {
    border: 1px solid var(--hb-border);
    background: var(--hb-surface);
}

.board-block .board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--hb-secondary);
    padding: .6rem .75rem;
    color: #fff;
    font-weight: 700;
    gap: .5rem;
}

.board-block .board-head .label,
.board-block .board-head .title {
    font-size: 1rem;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}

.board-block .board-table {
    margin: 0;
    border-top: 0;
}

.board-block .board-table td {
    border-color: var(--hb-border) !important;
    padding: .5rem .6rem;
    font-size: .9rem;
}

.board-block .board-table .role-cell {
    width: 150px;
    color: var(--hb-secondary-dark);
    font-weight: 700;
    white-space: nowrap;
}

.board-block .board-table .name-cell {
    color: var(--hb-ink);
    font-weight: 600;
}

/* ---------------------------------------------------------------------- */
/* Page blocks (generic content blocks + center departments)               */
/* ---------------------------------------------------------------------- */

.page-block {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.page-block--reverse {
    flex-direction: row-reverse;
}

.page-block__media {
    flex: 0 0 40%;
}

.page-block__media img {
    width: 100%;
    border-radius: 1rem;
    object-fit: cover;
}

.page-block__body {
    flex: 1;
}

.page-block__body h3 {
    font-weight: 700;
    margin-bottom: .75rem;
}

@media (max-width: 767.98px) {
    .page-block,
    .page-block--reverse {
        flex-direction: column;
    }

    .page-block__media {
        flex-basis: auto;
        width: 100%;
    }
}

.department-card {
    background: var(--hb-surface);
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(42, 37, 33, .06);
}

.department-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Generic content page */

.content-body {
    line-height: 1.9;
    font-size: 1.05rem;
}

.content-body img {
    max-width: 100%;
    border-radius: .75rem;
}
