
@font-face {
    font-family: '29LT Bukra';
    font-style: normal;
    font-display: swap;
    src: url('{{ asset('fonts/29lt-bukra.ttf') }}') format('truetype');
}

/* Captcha input on Arabic pages: the field itself stays LTR/left-aligned
   (the typed code is always Latin letters/digits), but the Arabic hint text
   ("الرمز") should still read naturally right-aligned while empty. The
   ::placeholder pseudo-element can carry its own text-align independently
   of the input's own (which governs the typed value). */
.placeholder-rtl::placeholder {
    text-align: right;
}

body {
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #1e293b;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", ui-serif, Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
}
.mono, .font-mono, code, pre { font-family: "JetBrains Mono", ui-monospace, monospace; }
.font-playfair { font-family: "Playfair Display", ui-serif, Georgia, serif; }
.font-inter { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; }
.font-bukra { font-family: '29LT Bukra', ui-sans-serif, system-ui, sans-serif; }

/* Arabic pages use 29LT Bukra throughout (matches the admin editor's
   Arabic mode) — Playfair Display/Inter don't cover Arabic glyphs. */
html[lang="ar"] body {
    font-family: '29LT Bukra', ui-sans-serif, system-ui, sans-serif;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6 {
    font-family: '29LT Bukra', ui-sans-serif, system-ui, sans-serif;

}
html[lang="ar"] .font-playfair, html[lang="ar"] .font-inter,
html[lang="ar"] .mono, html[lang="ar"] .font-mono {
    font-family: '29LT Bukra', ui-sans-serif, system-ui, sans-serif;
}

/* Hero content (admin-editable via the "Menus/Pages" module) is a raw
   h1+p blob. The Arabic font's tighter leading makes the heading and the
   paragraph right under it look glued together — give it breathing room,
   more so in Arabic than in the Latin/Playfair version. */
h1 + p {
    margin-top: 0.75rem;
}
html[lang="ar"] h1 + p {
    margin-top: 1.5rem;
}

/* Tailwind's Preflight reset strips list-style/margin/padding from every
   <ul>/<ol> (so nav/menu lists stay unstyled by default) — which also
   silently flattens any bullet/numbered list an admin creates via the
   TinyMCE editor (product specs, About text...) into plain unmarked
   lines. Scope the restore to this class instead of all <ul>/<ol>, so
   navigation lists elsewhere are unaffected. */
.rich-text ul {
    list-style: disc;
    padding-inline-start: 1.25rem;
    margin: 0.5rem 0;
}
.rich-text ol {
    list-style: decimal;
    padding-inline-start: 1.25rem;
    margin: 0.5rem 0;
}
.rich-text li {
    margin-bottom: 0.25rem;
}
.rich-text p {
    margin-bottom: 0.5rem;
}
.rich-text p:last-child {
    margin-bottom: 0;
}
.rich-text h2 { font-size: 1.375rem; margin: 1rem 0 0.5rem; }
.rich-text h3 { font-size: 1.15rem; margin: 0.875rem 0 0.5rem; }
.rich-text h4 { font-size: 1rem; margin: 0.75rem 0 0.5rem; }
.rich-text a { color: #0095BF; text-decoration: underline; }
.rich-text blockquote { border-inline-start: 3px solid #0095BF; padding-inline-start: 1rem; margin: 0.75rem 0; }
.rich-text img { max-width: 100%; height: auto; }
.rich-text hr { margin: 1rem 0; border-color: #DFE1E4; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; display: table; table-layout: auto; }
@media (max-width: 767px) {
    /* On phones a wide table keeps a readable minimum width and the content
       area scrolls sideways, instead of crushing the columns to fit. */
    .rich-text { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    /* Tables with 3+ columns: cells keep a natural, readable width (the editor's
       fixed column percentages would squeeze text to a few words per line) and
       the sideways scroll reveals the remaining columns. 2-column tables fit. */
    .rich-text table:has(tr > :nth-child(3)) col { width: auto !important; }
    .rich-text table:has(tr > :nth-child(3)) td,
    .rich-text table:has(tr > :nth-child(3)) th { min-width: 240px; }
    .rich-text table:has(tr > :nth-child(3)) img { max-width: 380px; }
}
/* The editor writes fixed row heights and image sizes; let content decide. */
.rich-text tr { height: auto !important; }
.rich-text td, .rich-text th { vertical-align: top; }
.rich-text td img, .rich-text th img { max-width: 100%; height: auto; }
.rich-text tbody tr:nth-child(even) > td { background: #FAFBFC; }
.rich-text th, .rich-text td { border: 1px solid #DFE1E4; padding: 0.4rem 0.6rem; text-align: start; }
.rich-text th { background: #F6F7F9; font-weight: 700; }
.rich-text details { border: 1px solid #DFE1E4; border-radius: 0.5rem; margin: 0.75rem 0; background: #fff; }
.rich-text summary { cursor: pointer; padding: 0.6rem 0.9rem; font-weight: 700; color: #0a0a0a; background: #F6F7F9; border-radius: 0.5rem; list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.rich-text summary::-webkit-details-marker { display: none; }
.rich-text summary::before { content: '+'; color: #0095BF; font-weight: 700; width: 1rem; text-align: center; }
.rich-text details[open] > summary { border-bottom: 1px solid #DFE1E4; border-radius: 0.5rem 0.5rem 0 0; }
.rich-text details[open] > summary::before { content: '\2212'; }
.rich-text details > :not(summary) { padding: 0 0.9rem; }
.rich-text details > :not(summary):first-of-type { padding-top: 0.6rem; }
.rich-text details > :last-child:not(summary) { padding-bottom: 0.6rem; }

* { transition: all 0.2s ease; }

/* Every clickable control should show a pointer cursor. Tailwind's
   Preflight reset resets <button> to cursor:default, and the owl-carousel
   nav/dots are plain <div>s with no default pointer of their own. */
a, button, [role="button"], .owl-nav .owl-prev, .owl-nav .owl-next, .owl-dots .owl-dot,
input[type="submit"], input[type="button"] {
    cursor: pointer;
}
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-gradient {
    background: radial-gradient(ellipse 112% 112% at 50% 0%, rgba(0, 149, 191, 0.2) 0%, rgba(2, 6, 23, 0.8) 50%, rgba(2, 6, 23, 1) 100%);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}
.nav-link-active { position: relative; color: #0095BF; }
.nav-link-active::after {
    content: ''; position: absolute; bottom: -8px; left: 0; width: 100%; height: 2px; background-color: #0095BF;
}

/* Directional icons (arrows/chevrons pointing toward "next"/"forward")
   need to mirror on RTL pages, since "forward" is visually to the left
   in Arabic. Catches every current and future usage automatically. */
html[dir="rtl"] iconify-icon[icon="lucide:arrow-right"],
html[dir="rtl"] iconify-icon[icon="lucide:arrow-left"],
html[dir="rtl"] iconify-icon[icon="lucide:chevron-right"],
html[dir="rtl"] iconify-icon[icon="lucide:chevron-left"] {
    display: inline-block;
    transform: scaleX(-1);
}

/* Owl Carousel already reverses prev/next direction itself via its own
   `rtl` option (the physically-left button becomes "next" in Arabic) — the
   global chevron-flip rule above would double-flip these icons and point
   them the wrong way, so cancel it back out for the slider's own nav. */
html[dir="rtl"] .slider_active .owl-nav iconify-icon {
    transform: none;
}

/* Hero slider (owl carousel) — brand-matching nav/dots */
.slider_active .owl-nav .owl-prev,
.slider_active .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    z-index: 20;
    cursor: pointer;
}
.slider_active .owl-nav .owl-prev:hover,
.slider_active .owl-nav .owl-next:hover {
    background: rgba(0, 149, 191, 0.6) !important;
    border-color: rgba(0, 149, 191, 0.8);
}
.slider_active .owl-nav.disabled { display: none; }
.slider_active .owl-nav .owl-prev { left: 16px; }
.slider_active .owl-nav .owl-next { right: 16px; }
@media (min-width: 1024px) {
    .slider_active .owl-nav .owl-prev { left: 32px; }
    .slider_active .owl-nav .owl-next { right: 32px; }
}
.slider_active .owl-dots.disabled { display: none; }
.slider_active .owl-dots {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 20;
}
.slider_active .owl-dots .owl-dot span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0;
}
.slider_active .owl-dots .owl-dot.active span,
.slider_active .owl-dots .owl-dot:hover span {
    background: #0095BF;
    width: 24px;
}

/* Contact page map — the admin pastes a raw Google Maps embed snippet, which
   normally carries its own fixed width/height attributes. Force it to fill
   this container instead, so the map is always full-width at a controlled
   height regardless of what markup was pasted. */
.map-embed iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

/* Showcase banner parallax — motion is handled entirely by simpleParallax.js
   (see script.js), which wraps the <img> in its own <div class="simpleParallax">.
   That wrapper has no intrinsic height of its own, so it must be stretched to
   fill this fixed-height frame or it collapses to 0 and hides the image. */
.showcase-parallax {
    position: relative;
}
.showcase-parallax .simpleParallax {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.showcase-parallax img {
    will-change: transform;
}
