/* ============================================================
 * header site chrome
 * Rendered from resources/views/components/site/header.blade.php
 * ============================================================ */

/* ------------------------------------------------------------------
         "More" nav dropdown — warm editorial styling.
         Sits on a cream background, brass caret, refined hover states.
         ------------------------------------------------------------------ */
      .more-nav__trigger {
        appearance: none;
        background: transparent;
        border: 0;
        padding: 0.35rem 0.55rem;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-family: var(--font-body-stack, 'Inter', system-ui, sans-serif);
        font-size: 0.95rem;
        font-weight: 500;
        letter-spacing: 0.005em;
        color: #171311;
        cursor: pointer;
        border-radius: 8px;
        transition: color 180ms ease, background-color 180ms ease;
      }
      .more-nav__trigger:hover,
      .more-nav__trigger:focus-visible {
        color: #4A2E1F;
        background: rgba(182, 138, 69, 0.09);

      }
      .more-nav__caret {
        width: 0.75rem;
        height: 0.75rem;
        color: #B68A45;
        transition: transform 200ms ease, color 200ms ease;
      }
      .more-nav__caret.is-open { transform: rotate(180deg); }
      .more-nav__trigger:hover .more-nav__caret { color: #4A2E1F; }

      .more-nav__panel {
        position: absolute;
        top: calc(100% + 0.85rem);
        right: 0;
        z-index: 40;
        min-width: 17rem;
        background: #FFFDFC;
        border: 1px solid #DED4C8;
        border-radius: 16px;
        padding: 0.65rem 0;
        box-shadow:
          0 24px 48px -20px rgba(23, 19, 17, 0.22),
          0 4px 12px -4px rgba(23, 19, 17, 0.08);
      }
      /* Small arrow that points from the trigger up into the panel. */
      .more-nav__panel::before {
        content: '';
        position: absolute;
        top: -7px; right: 1.15rem;
        width: 12px; height: 12px;
        background: #FFFDFC;
        border-left: 1px solid #DED4C8;
        border-top: 1px solid #DED4C8;
        transform: rotate(45deg);
      }
      .more-nav__label {
        font-family: var(--font-body-stack, 'Inter', system-ui, sans-serif);
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: #B68A45;
        margin: 0 1.25rem 0.35rem;
        padding-bottom: 0.6rem;
        border-bottom: 1px solid #DED4C8;
      }
      .more-nav__list {
        list-style: none;
        margin: 0;
        padding: 0.35rem 0;
      }
      .more-nav__item {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.62rem 1.25rem;
        font-family: var(--font-body-stack, 'Inter', system-ui, sans-serif);
        font-size: 0.92rem;
        font-weight: 500;
        color: #171311;
        text-decoration: none;
        border-left: 2px solid transparent;
        transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
      }
      .more-nav__item:hover,
      .more-nav__item:focus-visible {
        background: #F7F1E8;
        color: #4A2E1F;
        border-left-color: #B68A45;

      }
      .more-nav__item.is-active {
        color: #4A2E1F;
        border-left-color: #B68A45;
        background: rgba(247, 241, 232, 0.6);
      }
      .more-nav__arrow {
        color: #B68A45;
        opacity: 0;
        transform: translateX(-4px);
        transition: opacity 200ms ease, transform 200ms ease;
        font-size: 0.95rem;
      }
      .more-nav__item:hover .more-nav__arrow,
      .more-nav__item:focus-visible .more-nav__arrow,
      .more-nav__item.is-active .more-nav__arrow {
        opacity: 1;
        transform: translateX(0);
      }

      /* Alpine transition shells */
      .more-nav__enter { transition: opacity 180ms ease, transform 180ms ease; }
      .more-nav__leave { transition: opacity 130ms ease, transform 130ms ease; }

      @media (prefers-reduced-motion: reduce) {
        .more-nav__trigger, .more-nav__caret, .more-nav__item, .more-nav__arrow { transition: none !important; }
      }
/* =============================================================
   Taqasim School — site-wide footer
   Palette is scoped to <footer class="site-footer">.
   No brass, gold, mustard, tan or metallic tokens anywhere.
   ============================================================= */

footer.site-footer,
.site-footer {
    --footer-bg:        #171638;
    --footer-bg-deep:   #101129;
    --footer-violet:    #8178ad;
    --footer-lavender:  #b7addf;
    --footer-cream:     #f3f0e8;
    --footer-muted:     #c4bfd0;
    --footer-border:    rgba(183, 173, 223, 0.22);

    position: relative;
    isolation: isolate;
    overflow: hidden;

    color: var(--footer-cream);
    background-color: var(--footer-bg-deep);
    background-image: url('/assets/images/footer-background.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    border-top: 1px solid var(--footer-border);
}

/* On narrow screens, shift the background so the oud on the right doesn't
   crowd the text and the wave stays visible under the columns. */
@media (max-width: 767.98px) {
    footer.site-footer,
    .site-footer {
        background-position: 78% center;
    }
}

.site-footer__inner {
    position: relative;
    z-index: 1;
    padding-top:    clamp(3rem, 6vw, 5.5rem);
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Decorative oud + sound-wave are baked into the background image
   — no separate SVG/CSS needed. */

/* ---------- Columns ----------------------------------------- */
.site-footer__cols {
    position: relative;
    z-index: 1;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.site-footer__logo-link {
    display: inline-flex;
    width: fit-content;
    border-radius: 8px;
}

.site-footer__logo {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.site-footer__mark {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--footer-cream);
}

.site-footer__blurb {
    margin: 0;
    max-width: 34ch;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--footer-muted);
}

/* ---------- Contact list ------------------------------------ */
.site-footer__contact {
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.94rem;
}

.site-footer__contact li {
    display: flex;
    align-items: flex-start;
}

.site-footer__contact .bi {
    flex: 0 0 auto;
    margin-right: 0.6rem;
    margin-top: 0.15rem;
    color: var(--footer-lavender);
    font-size: 1rem;
}

.site-footer__address {
    color: var(--footer-muted);
    line-height: 1.55;
}

/* ---------- Socials ----------------------------------------- */
.site-footer__socials {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.75rem 0 0;
}

.site-footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background-color: rgba(183, 173, 223, 0.10);
    border: 1px solid var(--footer-border);
    color: var(--footer-cream);
    text-decoration: none;
}

.site-footer__social svg {
    width: 18px;
    height: 18px;
}

@media (prefers-reduced-motion: no-preference) {
    .site-footer__social {
        transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease,
            color 0.2s ease;
    }
    .site-footer__social:hover {
        transform: translateY(-2px);
    }
}

.site-footer__social:hover,
.site-footer__social:focus-visible {
    background-color: rgba(183, 173, 223, 0.22);
    border-color: var(--footer-lavender);
    color: #ffffff;
}

/* ---------- Column heading ---------------------------------- */
.site-footer__col-h {
    margin: 0 0 1.1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--footer-lavender);
}

/* ---------- Nav lists --------------------------------------- */
.site-footer__list {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.95rem;
}

/* ---------- Links (shared across contact + nav + legal) ----- */
.site-footer__link {
    display: inline-flex;
    align-items: center;
    color: var(--footer-cream);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
}

@media (prefers-reduced-motion: no-preference) {
    .site-footer__link {
        transition:
            color 0.18s ease,
            background-size 0.25s ease;
    }
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
    color: var(--footer-lavender);
    background-size: 100% 1px;
}

.site-footer__inline-link {
    color: var(--footer-lavender);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.site-footer__inline-link:hover,
.site-footer__inline-link:focus-visible {
    color: #ffffff;
}

/* Contact list icon-link alignment override — no underline slide on icon rows */
.site-footer__contact .site-footer__link {
    background-image: none;
    align-items: center;
}
.site-footer__contact .site-footer__link:hover span,
.site-footer__contact .site-footer__link:focus-visible span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Newsletter -------------------------------------- */
.site-footer__news-note {
    margin: 0 0 1rem;
    color: var(--footer-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 34ch;
}

.site-footer__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-footer__form-row {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.site-footer__input {
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 0.9rem;
    font: inherit;
    color: var(--footer-cream);
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--footer-border);
    border-radius: 10px;
    -webkit-appearance: none;
            appearance: none;
}

.site-footer__input::placeholder {
    color: rgba(196, 191, 208, 0.75);
}

.site-footer__input:focus {
    outline: 2px solid var(--footer-lavender);
    outline-offset: 2px;
    border-color: var(--footer-lavender);
    background-color: rgba(255, 255, 255, 0.10);
}

.site-footer__submit {
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 1.1rem;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--footer-bg-deep);
    background-color: var(--footer-lavender);
    border: 1px solid var(--footer-lavender);
    border-radius: 10px;
    cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
    .site-footer__submit {
        transition:
            background-color 0.2s ease,
            color 0.2s ease,
            transform 0.15s ease,
            box-shadow 0.2s ease;
    }
    .site-footer__submit:hover {
        transform: translateY(-1px);
    }
}

.site-footer__submit:hover,
.site-footer__submit:focus-visible {
    background-color: #cfc5f0;
    border-color: #cfc5f0;
    color: var(--footer-bg-deep);
    box-shadow: 0 8px 20px -10px rgba(183, 173, 223, 0.6);
}

/* ---------- Consent checkbox -------------------------------- */
.site-footer__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--footer-muted);
    cursor: pointer;
}

.site-footer__consent-box {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    accent-color: var(--footer-lavender);
    cursor: pointer;
}

.site-footer__consent-box:focus-visible {
    outline: 2px solid var(--footer-lavender);
    outline-offset: 2px;
}

/* ---------- Bottom bar -------------------------------------- */
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--footer-border);
}

.site-footer__copy {
    margin: 0;
    font-size: 0.85rem;
    color: var(--footer-muted);
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 0;
    font-size: 0.85rem;
}

@media (max-width: 575.98px) {
    .site-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    .site-footer__legal {
        justify-content: center;
    }
}

/* ---------- Wider newsletter column at ≥lg ------------------ */
@media (min-width: 992px) {
    .site-footer__form-row {
        flex-direction: row;
        align-items: stretch;
    }
    .site-footer__input  { flex: 1 1 auto; }
    .site-footer__submit { flex: 0 0 auto; width: auto; padding-inline: 1.5rem; }
}

/* ---------- Focus ring (footer scope) ----------------------- */
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.site-footer input:focus-visible {
    outline: 2px solid var(--footer-lavender);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- Mobile tap targets (≤576px) --------------------- */
@media (max-width: 576px) {
    .site-footer__list,
    .site-footer__contact,
    .site-footer__legal {
        gap: 0.25rem;
    }
    .site-footer__list li,
    .site-footer__contact li,
    .site-footer__legal li {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .site-footer__link {
        min-height: 44px;
        padding-block: 8px;
        align-items: center;
    }
    .site-footer__socials {
        gap: 0.75rem;
    }
}
/* ============================================================
 * theme-picker site chrome
 * Rendered from resources/views/components/site/theme-picker.blade.php
 * ============================================================ */

.tp-root {
      position: fixed;
      bottom: calc(4.5rem + env(safe-area-inset-bottom));
      right: 1rem;
      z-index: 9990;
    }
    @media (min-width: 48rem) {
      .tp-root { bottom: 1.5rem; right: 1.5rem; }
    }

    /* Toggle button */
    .tp-toggle {
      width: 2.75rem;
      height: 2.75rem;
      border-radius: 50%;
      background: var(--color-brass-400, #b89968);
      color: var(--color-ink-900, #161616);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 12px rgba(0,0,0,.5);
      transition: background 200ms ease, transform 200ms ease;
    }
    .tp-toggle:hover { background: var(--color-brass-300, #c9b086); transform: scale(1.08); }
    .tp-toggle:focus-visible { outline: 2px solid var(--color-brass-400, #b89968); outline-offset: 3px; }

    /* Panel */
    .tp-panel {
      position: absolute;
      bottom: calc(100% + 0.75rem);
      right: 0;
      width: clamp(17rem, 85vw, 21rem);
      background: var(--color-ink-900, #161616);
      border: 1px solid color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 14%, transparent);
      box-shadow: 0 8px 40px rgba(0,0,0,.7);
      overflow: hidden;
    }

    /* Transitions */
    .tp-enter    { transition: opacity 150ms ease, transform 150ms ease; }
    .tp-enter-start { opacity: 0; transform: translateY(6px); }
    .tp-enter-end   { opacity: 1; transform: translateY(0); }
    .tp-leave    { transition: opacity 120ms ease, transform 120ms ease; }
    .tp-leave-start { opacity: 1; transform: translateY(0); }
    .tp-leave-end   { opacity: 0; transform: translateY(6px); }

    .tp-panel__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.9rem 1rem 0.75rem;
      border-bottom: 1px solid color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 10%, transparent);
    }
    .tp-panel__title {
      font-family: var(--font-body-stack);
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 55%, transparent);
      margin: 0;
    }
    .tp-panel__close {
      background: none;
      border: none;
      cursor: pointer;
      color: color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 50%, transparent);
      width: 1.75rem;
      height: 1.75rem;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: color 150ms ease;
    }
    .tp-panel__close:hover { color: var(--color-parchment-200, #ebe0c8); }
    .tp-panel__close:focus-visible { outline: 2px solid var(--color-brass-400, #b89968); outline-offset: 2px; }

    /* Section */
    .tp-section {
      padding: 0.9rem 1rem;
      border-bottom: 1px solid color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 8%, transparent);
    }
    .tp-section__label {
      font-family: var(--font-body-stack);
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      color: color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 45%, transparent);
      margin: 0 0 0.7rem;
    }

    /* Colour swatches */
    .tp-swatches {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    .tp-swatch {
      background: none;
      border: none;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.3rem;
      padding: 0.25rem;
    }
    .tp-swatch:focus-visible { outline: 2px solid var(--color-brass-400, #b89968); outline-offset: 2px; border-radius: 50%; }
    .tp-swatch__dot {
      display: block;
      width: 1.75rem;
      height: 1.75rem;
      border-radius: 50%;
      transition: transform 150ms ease;
      border: 2px solid transparent;
    }
    .tp-swatch--active .tp-swatch__dot {
      transform: scale(1.15);
      border-color: var(--color-parchment-200, #ebe0c8);
    }
    .tp-swatch__label {
      font-family: var(--font-body-stack);
      font-size: 0.6rem;
      color: color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 55%, transparent);
      text-align: center;
      white-space: nowrap;
    }

    /* Font buttons */
    .tp-fonts {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      max-height: 14rem;
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 15%, transparent) transparent;
    }
    .tp-font-btn {
      width: 100%;
      background: none;
      border: 1px solid transparent;
      cursor: pointer;
      text-align: left;
      padding: 0.4rem 0.6rem;
      display: flex;
      flex-direction: column;
      gap: 0.1rem;
      transition: border-color 150ms ease, background 150ms ease;
    }
    .tp-font-btn:hover {
      background: color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 5%, transparent);
    }
    .tp-font-btn--active {
      border-color: color-mix(in oklch, var(--color-brass-400, #b89968) 50%, transparent);
      background: color-mix(in oklch, var(--color-brass-400, #b89968) 8%, transparent);
    }
    .tp-font-btn:focus-visible { outline: 2px solid var(--color-brass-400, #b89968); outline-offset: 1px; }
    .tp-font-btn__display {
      font-size: 0.95rem;
      font-weight: 400;
      color: var(--color-parchment-200, #ebe0c8);
      line-height: 1.2;
    }
    .tp-font-btn__body {
      font-size: 0.7rem;
      color: color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 48%, transparent);
      line-height: 1.3;
    }

    /* Footer */
    .tp-panel__footer {
      padding: 0.65rem 1rem;
      text-align: right;
    }
    .tp-reset {
      font-family: var(--font-body-stack);
      font-size: 0.75rem;
      color: color-mix(in oklch, var(--color-parchment-200, #ebe0c8) 45%, transparent);
      background: none;
      border: none;
      cursor: pointer;
      transition: color 150ms ease;
      text-decoration: underline;
      text-underline-offset: 0.3em;
    }
    .tp-reset:hover { color: var(--color-parchment-200, #ebe0c8); }
    .tp-reset:focus-visible { outline: 2px solid var(--color-brass-400, #b89968); outline-offset: 2px; }

    @media (prefers-reduced-motion: reduce) {
      .tp-toggle, .tp-swatch__dot { transition: none; }
      .tp-toggle:hover { transform: none; }
      .tp-swatch--active .tp-swatch__dot { transform: none; }
    }
/* ============================================================
 * news-bar section
 * Rendered from resources/views/components/site/news-bar.blade.php
 * ============================================================ */
@media (max-width: 767px) {
    .news-bar-scroll {
        animation: news-bar-scroll-anim 28s linear infinite;
    }
    @keyframes news-bar-scroll-anim {
        0%   { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
}
@media (prefers-reduced-motion: reduce) {
    .news-bar-scroll { animation: none; }
}
/* ─────────────────────────────────────────────────────────────
 * Brand utility layer — Bootstrap-style text-/bg-/border- for
 * the custom `$theme-colors` entries (brass, ink, parchment,
 * charcoal, oxblood).
 *
 * Bootstrap 5.3 auto-generates only `.text-bg-{color}` for
 * custom `$theme-colors`; the standalone `.text-*`, `.bg-*`,
 * and `.border-*` variants are NOT emitted unless `$utilities`
 * is explicitly extended in `app.scss`. The SCSS side has now
 * been updated to do exactly that, but until a fresh `npm run
 * build` ships those to the compiled bundle, this file provides
 * the same class names and values so every existing Blade file
 * keeps rendering the intended colour.
 *
 * Values reference the brand CSS variables in app.scss so they
 * stay in sync with theme-picker overrides at runtime.
 * ───────────────────────────────────────────────────────────── */

.text-brass       { color: var(--color-brass-500)  !important; }
.text-brass-alt   { color: var(--color-brass-300)  !important; }
.text-ink         { color: var(--color-ink-900)    !important; }
.text-ink-alt     { color: var(--color-ink-700)    !important; }
.text-parchment   { color: var(--color-parchment-200) !important; }
.text-charcoal    { color: var(--color-parchment-500) !important; }
.text-oxblood     { color: var(--color-oxblood-500) !important; }

.bg-brass         { background-color: var(--color-brass-400)  !important; }
.bg-brass-alt     { background-color: var(--color-brass-300)  !important; }
.bg-ink           { background-color: var(--color-ink-900)    !important; }
.bg-ink-alt       { background-color: var(--color-ink-700)    !important; }
.bg-parchment     { background-color: var(--color-parchment-200) !important; }
.bg-charcoal      { background-color: var(--color-parchment-500) !important; }

.border-brass     { border-color: var(--color-brass-400)  !important; }
.border-brass-alt { border-color: var(--color-brass-300)  !important; }
.border-ink       { border-color: var(--color-ink-900)    !important; }
.border-ink-alt   { border-color: var(--color-ink-700)    !important; }
.border-parchment { border-color: var(--color-parchment-200) !important; }
.border-charcoal  { border-color: var(--color-parchment-500) !important; }
