/* Fonts are self-hosted (CSP allows fonts from 'self' only). SIL Open Font License, see fonts/README.md. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/montserrat-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/dmsans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/dmsans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/tajawal-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/tajawal-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/tajawal-arabic-800.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }

/* Brand colours come from the logo: black shield, turquoise paint splat. */
:root {
    --brand: #00afab;          /* splat turquoise: fills, accents on dark */
    --brand-ink: #00706c;      /* turquoise for text and links on light backgrounds */
    --brand-ink-hover: #004b48;
    --brand-dark: #0b0b0b;
    --brand-muted: #f4f4f1;
    --brand-line: #e4e4e0;
    --brand-text-muted: #4a4f4e;
    --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
    --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;

    --bs-body-font-family: var(--font-body);
    --bs-body-color: #0b0b0b;
    --bs-link-color: var(--brand-ink);
    --bs-link-color-rgb: 0, 112, 108;
    --bs-link-hover-color: var(--brand-ink-hover);
    --bs-link-hover-color-rgb: 0, 75, 72;
    --bs-focus-ring-color: rgba(0, 175, 171, .35);
    --bs-code-color: var(--brand-ink);
}

html { font-size: 15px; }
@media (min-width: 768px) { html { font-size: 16px; } }

body { background: var(--brand-muted); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .display-4 { font-family: var(--font-display); font-weight: 700; }
h1, .h1 { font-weight: 800; letter-spacing: .01em; }
[dir="rtl"] { --font-display: "Tajawal", "Segoe UI", Tahoma, sans-serif; --font-body: "Tajawal", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif; }
[dir="rtl"] body { font-family: var(--font-body); }

.bg-brand-dark { background: var(--brand-dark) !important; }
.text-brand { color: var(--brand-ink) !important; }
.text-muted-brand { color: var(--brand-text-muted) !important; }

.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.form-check-input:checked { background-color: var(--brand-ink); border-color: var(--brand-ink); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--brand-dark); }

/* Buttons: black text on turquoise (7.9:1), never white on turquoise. */
.btn-brand, .btn-ink, .btn-outline-ink {
    font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem;
    border-radius: .25rem; padding: .75rem 1.15rem;
}
.btn-lg.btn-brand, .btn-lg.btn-outline-light, .btn-lg.btn-ink { font-size: .875rem; padding: 1rem 1.6rem; }
.btn-sm.btn-brand { font-size: .72rem; padding: .55rem .9rem; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: var(--brand-dark); }
.btn-brand:hover, .btn-brand:focus-visible, .btn-brand:active { background: #00c7c2; border-color: #00c7c2; color: var(--brand-dark); }
.btn-brand:disabled, .btn-brand.disabled { background: var(--brand); border-color: var(--brand); color: var(--brand-dark); opacity: .55; }
.btn-ink { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ink:hover, .btn-ink:focus-visible { background: #2a2a2a; border-color: #2a2a2a; color: #fff; }
.btn-outline-ink { border: 2px solid var(--brand-dark); color: var(--brand-dark); }
.btn-outline-ink:hover { background: var(--brand-dark); color: #fff; }
.btn-outline-brand { border-color: var(--brand-ink); color: var(--brand-ink); }
.btn-outline-brand:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-dark); }
.btn-lg.btn-outline-light { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; border-width: 2px; border-radius: .25rem; }
[dir="rtl"] .btn-brand, [dir="rtl"] .btn-ink, [dir="rtl"] .btn-outline-ink, [dir="rtl"] .btn-lg.btn-outline-light { text-transform: none; letter-spacing: 0; font-size: .95rem; }

/* Header */
.site-nav { border-bottom: 3px solid var(--brand); }
.site-nav .navbar-brand { display: flex; align-items: center; gap: .75rem; }
.site-nav .navbar-brand img { height: 44px; width: auto; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1.05; font-family: "Montserrat", sans-serif; letter-spacing: .22em; color: #fff; }
.brand-wordmark b { font-weight: 700; font-size: 1.05rem; }
.brand-wordmark span { font-weight: 300; font-size: .95rem; }
.site-nav .navbar-nav .nav-link { font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.site-nav .navbar-nav .nav-link:hover, .site-nav .navbar-nav .nav-link:focus-visible, .site-nav .navbar-nav .nav-link.active { color: var(--brand); }
.site-nav .navbar-nav .dropdown-toggle { text-transform: none; letter-spacing: 0; font-size: .9rem; font-family: var(--font-body); font-weight: 500; }
[dir="rtl"] .site-nav .navbar-nav .nav-link { text-transform: none; letter-spacing: 0; font-size: .95rem; }

/* Section headings */
.eyebrow { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brand-ink); }
.eyebrow-light { color: var(--brand); }
.eyebrow-light::before { content: ""; width: 2rem; height: 2px; background: var(--brand); }
.section-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.75rem); letter-spacing: .02em; text-transform: uppercase; margin: .5rem 0 0; }
.link-caps { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
[dir="rtl"] .eyebrow, [dir="rtl"] .section-title, [dir="rtl"] .link-caps, [dir="rtl"] .hero h1 { text-transform: none; letter-spacing: 0; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--brand-dark); color: #fff; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-compact .hero-media { object-position: 50% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,11,.8) 0%, rgba(11,11,11,.55) 55%, rgba(11,11,11,.2) 100%); }
[dir="rtl"] .hero::after { background: linear-gradient(270deg, rgba(11,11,11,.8) 0%, rgba(11,11,11,.55) 55%, rgba(11,11,11,.2) 100%); }
.hero-inner { position: relative; z-index: 1; padding-block: 7rem 4.5rem; }
.hero h1 { font-weight: 800; font-size: clamp(2.5rem, 6vw, 4.75rem); line-height: 1.02; text-transform: uppercase; max-width: 52rem; margin: 1.5rem 0; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { color: #e6e6e6; max-width: 38rem; font-size: 1.2rem; }
.hero-compact .hero-inner { padding-block: 5.5rem 4rem; }
.hero-compact h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin: 1rem 0; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); max-width: 56rem; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.25); }
.hero-stats div { padding: 1.4rem 1.5rem 0 0; }
.hero-stats strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; }
.hero-stats span { font-size: .9rem; color: #cfcfcf; }

/* Feature row with shield-shaped icons, echoing the logo */
.feature-shield { flex: 0 0 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--brand-dark); color: var(--brand); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); }
.feature h2 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .35rem; }
[dir="rtl"] .feature h2 { text-transform: none; letter-spacing: 0; font-size: 1.1rem; }

/* Activity cards */
.card-activity { border: 0; border-radius: .4rem; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.06); transition: transform .15s ease, box-shadow .15s ease; }
.card-activity:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 18px 40px rgba(0,0,0,.12); }
.card-activity .card-media { position: relative; }
.card-activity .card-img-top { height: 240px; object-fit: cover; border-radius: 0; background: var(--brand-dark); }
.card-activity .card-title { font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; }
.card-activity .card-footer-row { border-top: 1px solid var(--brand-line); padding-top: 1rem; }
.duration-badge { position: absolute; top: 1rem; inset-inline-start: 1rem; background: var(--brand-dark); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: .45rem .65rem; border-radius: .2rem; }
[dir="rtl"] .card-activity .card-title, [dir="rtl"] .duration-badge { text-transform: none; letter-spacing: 0; }
.activity-wide { border-radius: .4rem; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.06); }
.activity-wide .activity-media { position: relative; min-height: 280px; }
.activity-wide .activity-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.activity-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .75rem; margin: 0; }
.activity-facts div { background: var(--brand-muted); padding: .75rem .9rem; border-radius: .25rem; }
.activity-facts dt { font-size: .8rem; font-weight: 500; color: var(--brand-text-muted); text-transform: uppercase; letter-spacing: .1em; }
.activity-facts dd { margin: .1rem 0 0; font-weight: 700; }
.price-tag { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--brand-dark); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr; grid-auto-rows: 16rem; gap: .75rem; }
@media (min-width: 576px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: .25rem; }
@media (min-width: 576px) { .gallery .gallery-tall { grid-row: span 2; } }
.section-dark { background: var(--brand-dark); color: #fff; }
.section-dark a:not(.btn) { color: #fff; }

/* Booking steps */
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.steps li { display: flex; gap: 1.1rem; align-items: flex-start; }
.step-num { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--brand-dark); font-family: var(--font-display); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; font-size: 1.05rem; }
.steps-photo { position: relative; }
.steps-photo > img { width: 100%; height: 440px; object-fit: cover; border-radius: .4rem; }
.steps-badge { position: absolute; inset-inline-start: -1rem; bottom: -1.5rem; background: #fff; padding: 1.1rem 1.4rem; border-radius: .4rem; box-shadow: 0 12px 32px rgba(0,0,0,.12); display: flex; align-items: center; gap: .9rem; font-size: .9rem; line-height: 1.35; }
.steps-badge img { height: 40px; width: auto; }
@media (max-width: 575.98px) { .steps-photo > img { height: 300px; } .steps-badge { inset-inline-start: .75rem; } }

/* Call-to-action band */
.cta-band { background: var(--brand); color: var(--brand-dark); }
.cta-band a:not(.btn) { color: var(--brand-dark); font-weight: 700; }
.cta-band h2 { font-weight: 800; font-size: clamp(1.75rem, 3.6vw, 2.5rem); text-transform: uppercase; letter-spacing: .02em; }
[dir="rtl"] .cta-band h2 { text-transform: none; letter-spacing: 0; }

/* Footer */
.site-footer { background: var(--brand-dark); color: #cfcfcf; }
.site-footer .footer-logo { width: 150px; height: auto; }
.site-footer h2 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: .75rem; }
.site-footer a { color: #cfcfcf; text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer .footer-bottom { border-top: 1px solid #262626; color: #9a9a9a; }
.social-link { width: 44px; height: 44px; border: 1px solid #3a3a3a; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff !important; }
.social-link:hover { border-color: var(--brand); color: var(--brand) !important; }

/* Booking calendar */
#calendar { background: #fff; border-radius: .4rem; padding: .75rem; }
.fc .slot-free { background: #e8f6ea; border-color: #3fa34d; color: #1e5a27; cursor: pointer; }
.fc .slot-free .fc-event-title, .fc .slot-free .fc-event-time { color: #1e5a27; }
.fc .slot-taken { background: #eceff1; border-color: #b0bec5; color: #78909c; cursor: not-allowed; text-decoration: line-through; }
.fc .slot-taken .fc-event-title, .fc .slot-taken .fc-event-time { color: #78909c; }
.fc .slot-selected { background: var(--brand) !important; border-color: var(--brand-ink) !important; }
.fc .slot-selected .fc-event-title, .fc .slot-selected .fc-event-time { color: var(--brand-dark) !important; }
.fc .fc-button-primary { background: var(--brand-dark); border-color: var(--brand-dark); }
.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active { background: var(--brand); border-color: var(--brand); color: var(--brand-dark); }

.status-badge { font-size: .8rem; }
.qr-code svg { width: 220px; height: 220px; }
.recovery-codes code { font-size: 1.05rem; }

/* Admin */
.admin-sidebar { min-width: 230px; }
.admin-sidebar .nav-link { color: #cfd8dc; border-radius: .5rem; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-sidebar .nav-link.active { box-shadow: inset 3px 0 0 var(--brand); }
[dir="rtl"] .admin-sidebar .nav-link.active { box-shadow: inset -3px 0 0 var(--brand); }
.kpi { border: 0; border-radius: 1rem; }
.kpi .kpi-value { font-size: 1.6rem; font-weight: 700; }
.kpi .kpi-label { color: #6c757d; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.chart-box { position: relative; height: 300px; }
.table-money { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media print {
    header, footer, .admin-sidebar, .no-print { display: none !important; }
}

/* Admin calendar */
.fc .booking-pendingpayment, .booking-legend-pending { background: #f2b705 !important; border-color: #d9a404 !important; }
.fc .booking-confirmed, .booking-legend-confirmed { background: #3fa34d !important; border-color: #2e7d3a !important; }
.fc .booking-completed, .fc .booking-noshow, .booking-legend-done { background: #78909c !important; border-color: #607d8b !important; }
.fc .booking-pendingpayment .fc-event-title, .fc .booking-pendingpayment .fc-event-time { color: #212529; }
#admin-calendar { --fc-non-business-color: rgba(96, 125, 139, .16); }
.calendar-legend-off { background: rgba(96, 125, 139, .25); }
.calendar-closure, .fc .calendar-closure { background: repeating-linear-gradient(135deg, #c62828 0 8px, #a31f1f 8px 16px) !important; border-color: #8e1b1b !important; }
.fc .calendar-closure { cursor: pointer; }
.fc .calendar-closure .fc-event-title, .fc .calendar-closure .fc-event-time { color: #fff; font-weight: 600; }
.fc .calendar-closure .fc-list-event-dot { border-color: #c62828; }
.fc .fc-list-event.calendar-closure { background: #fdecea !important; }
.fc .fc-list-event.calendar-closure .fc-list-event-title { color: #8e1b1b; }
.text-pre { white-space: pre-line; }
.activity-detail-photo { max-height: 420px; }

/* Phones and tablets */
.form-check-input { width: 1.2em; height: 1.2em; margin-top: .15em; }
.booking-panel { scroll-margin-top: 5.5rem; }
.fc .slot-free .fc-list-event-dot { border-color: #3fa34d; }
.fc .slot-taken .fc-list-event-dot { border-color: #b0bec5; }
/* FullCalendar hides the list header at left:-10000px, which makes right-to-left pages 10000px wide on phones. */
.fc .fc-list-table thead { left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { padding-block: .5rem 1rem; }
    .site-nav .navbar-nav .nav-link { padding-block: .8rem; border-bottom: 1px solid #222; }
    .site-nav .navbar-nav .btn-brand { display: block; margin-top: .75rem; padding-block: .85rem; font-size: .8rem; }
    .site-nav .navbar-nav .dropdown-toggle { width: 100%; text-align: start; }
    .site-nav .dropdown-menu { margin-bottom: .5rem; }
}

@media (max-width: 767.98px) {
    .fc .fc-header-toolbar { flex-wrap: wrap; gap: .5rem; }
    .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(2) { order: -1; flex: 1 1 100%; }
    .fc .fc-toolbar-title { font-size: 1.2rem; }
    .fc .fc-button { padding: .5rem .8rem; }
}

@media (max-width: 575.98px) {
    .hero::after, [dir="rtl"] .hero::after { background: rgba(11,11,11,.72); }
    .hero-inner { padding-block: 3.5rem 3rem; }
    .hero-compact .hero-inner { padding-block: 3rem 2.5rem; }
    .hero .lead { font-size: 1.05rem; }
    .hero .btn-lg { flex: 1 1 100%; }
    .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; }
    .hero-stats div { padding: 1rem .75rem 0 0; }
    [dir="rtl"] .hero-stats div { padding: 1rem 0 0 .75rem; }
    .hero-stats strong { font-size: 1.35rem; line-height: 1.15; }
    .hero-stats span { display: block; font-size: .8rem; line-height: 1.3; margin-top: .25rem; }
    .card-activity .card-img-top { height: 200px; }
    .section-title { font-size: 1.75rem; }
    .cta-band .btn { flex: 1 1 100%; }
}

/* Admin on phones and tablets */
.admin-menu-toggle { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: #fff; border: 1px solid #333; padding: .7rem 1rem; text-align: start; }
.admin-menu-toggle::after { content: ""; flex: 0 0 auto; width: .55rem; height: .55rem; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform .15s ease; }
.admin-menu-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
.admin-menu-toggle:hover, .admin-menu-toggle:focus-visible { color: #fff; border-color: var(--brand); }
@media (max-width: 991.98px) {
    .admin-sidebar { min-width: 0; padding: .75rem !important; }
    .admin-sidebar .nav-link { padding-block: .65rem; }
}
.schedule-table input[type="time"] { min-width: 6.5rem; }
.schedule-table input[type="number"] { min-width: 4.5rem; }
/* Small Bootstrap controls are hard to hit with a finger. */
@media (pointer: coarse) {
    .btn-sm, .form-control-sm, .form-select-sm { min-height: 2.5rem; }
    .btn-sm { display: inline-flex; align-items: center; justify-content: center; }
}

/* Activities without a photo yet: the shield logo on black */
.activity-placeholder { display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: var(--brand-dark); }
.activity-placeholder img { width: 64px; height: auto; }
.activity-detail-photo.activity-placeholder { min-height: 300px; }
