﻿/* ==========================================================================
   Noor homepage themes
   --------------------------------------------------------------------------
   Driven by two hooks the layout writes on <body>:
     data-theme        â†’ "noor" | "minimal" | "navy-gold" | "graphite"
                         | "industrial" | "calm"
     data-theme-style  â†’ editorial | premium | mono | industrial | calm | light
   Colour tokens (--brand-*) are emitted once from App\Models\Theme on :root.
   This file only adds character: rhythm, typography, shapes and per-theme
   layout treatment. Selectors are prefixed with body[data-theme] so they always
   win against the Tailwind runtime utilities.
   ========================================================================== */

/* ---------- fallback tokens (overridden by the inline :root block) -------- */
:root{
    --brand-dark:#0f172a; --brand-primary:#1d4ed8; --brand-primary-dark:#1e40af;
    --brand-accent:#f59e0b; --brand-accent-dark:#d97706; --brand-accent-contrast:#0f172a;
    --brand-light:#f8fafc; --brand-page:#f8fafc; --brand-soft:#f1f5f9;
    --brand-ink:#1f2937; --brand-muted:#6b7280; --brand-line:#e5e7eb; --brand-on-dark:#e5e7eb;
    --brand-radius:.75rem; --brand-radius-lg:1.5rem; --brand-radius-sm:.375rem;
}

/* ---------- per-theme character tokens ------------------------------------ */
body[data-theme="noor"]{
    --hero-1:rgba(15,23,42,.90); --hero-2:rgba(15,23,42,.50); --hero-3:rgba(15,23,42,.04);
    --hero-h:clamp(420px,58vw,620px); --sec-pad:clamp(3.5rem,7vw,6.5rem);
    --card-shadow:0 18px 40px -22px rgba(15,23,42,.45);
}
body[data-theme="minimal"]{
    --hero-1:rgba(20,20,20,.80); --hero-2:rgba(20,20,20,.42); --hero-3:rgba(20,20,20,.02);
    --hero-h:clamp(420px,60vw,660px); --sec-pad:clamp(4rem,8vw,7.5rem);
    --card-shadow:none;
}
body[data-theme="navy-gold"]{
    --hero-1:rgba(10,20,38,.94); --hero-2:rgba(20,33,61,.55); --hero-3:rgba(20,33,61,.05);
    --hero-h:clamp(440px,60vw,660px); --sec-pad:clamp(4rem,7vw,6.75rem);
    --card-shadow:0 22px 46px -26px rgba(20,33,61,.55);
}
body[data-theme="graphite"]{
    --hero-1:rgba(10,10,10,.90); --hero-2:rgba(23,23,23,.48); --hero-3:rgba(23,23,23,.03);
    --hero-h:clamp(400px,56vw,600px); --sec-pad:clamp(3.5rem,7vw,6rem);
    --card-shadow:0 14px 30px -20px rgba(0,0,0,.4);
}
body[data-theme="industrial"]{
    --hero-1:rgba(6,8,11,.96); --hero-2:rgba(14,17,22,.6); --hero-3:rgba(14,17,22,.06);
    --hero-h:clamp(400px,54vw,580px); --sec-pad:clamp(3rem,5.5vw,5rem);
    --card-shadow:0 16px 32px -18px rgba(6,8,11,.55);
}
body[data-theme="calm"]{
    --hero-1:rgba(9,42,39,.88); --hero-2:rgba(15,46,43,.46); --hero-3:rgba(15,46,43,.03);
    --hero-h:clamp(420px,58vw,640px); --sec-pad:clamp(3.5rem,7vw,6rem);
    --card-shadow:0 24px 50px -28px rgba(13,148,136,.45);
}

/* ==========================================================================
   Shared building blocks
   ========================================================================== */
body[data-theme] .container{max-width:1200px}

body[data-theme] .n-section{
    padding-top:var(--sec-pad); padding-bottom:var(--sec-pad);
    background:var(--brand-page);
}
body[data-theme] .n-features{background:var(--brand-soft)}

body[data-theme] .n-title{color:var(--brand-dark);line-height:1.25}
body[data-theme] .n-body,
body[data-theme] .n-sub,
body[data-theme] .n-card-text{color:var(--brand-muted)}
body[data-theme] .n-point{color:var(--brand-ink)}

/* ---------- eyebrow / small label ---------- */
body[data-theme] .n-eyebrow{
    display:inline-flex;align-items:center;gap:.6rem;
    font-weight:700;font-size:.82rem;letter-spacing:.02em;line-height:1;
    color:var(--brand-accent);
}
body[data-layout="editorial"] .n-eyebrow::before,
body[data-layout="premium"] .n-eyebrow::before,
body[data-layout="mono"] .n-eyebrow::before,
body[data-layout="luxury"] .n-eyebrow::before,
body[data-layout="classic"] .n-eyebrow::before{
    content:"";width:28px;height:2px;background:currentColor;display:inline-block;
}
body[data-layout="editorial"] .n-eyebrow,
body[data-layout="mono"] .n-eyebrow{color:var(--brand-muted);text-transform:uppercase;letter-spacing:.14em;font-size:.74rem}
body[data-layout="premium"] .n-eyebrow{color:var(--brand-accent-dark)}
body[data-layout="industrial"] .n-eyebrow{
    background:var(--brand-accent);color:var(--brand-accent-contrast);
    padding:.4em .7em;border-radius:calc(var(--brand-radius) / 2);
    text-transform:uppercase;letter-spacing:.08em;font-weight:800;
}
body[data-layout="calm"] .n-eyebrow{
    background:color-mix(in srgb,var(--brand-accent) 16%,transparent);
    color:var(--brand-primary);padding:.45em .85em;border-radius:9999px;
}

/* ---------- buttons ---------- */
body[data-theme] .n-btn{
    display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
    font-weight:700;line-height:1;white-space:nowrap;text-decoration:none;cursor:pointer;
    padding:.9rem 1.75rem;border-radius:var(--brand-radius);border:1px solid transparent;
    transition:background .2s ease,color .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}
body[data-theme] .n-btn-accent{background:var(--brand-accent);color:var(--brand-accent-contrast);box-shadow:var(--card-shadow)}
body[data-theme] .n-btn-accent:hover{background:var(--brand-accent-dark);transform:translateY(-2px)}
body[data-theme] .n-btn-primary{background:var(--brand-primary);color:#fff;box-shadow:var(--card-shadow)}
body[data-theme] .n-btn-primary:hover{background:var(--brand-primary-dark);transform:translateY(-2px)}
body[data-theme] .n-btn-outline-light{background:transparent;color:#fff;border-color:rgba(255,255,255,.5)}
body[data-theme] .n-btn-outline-light:hover{background:#fff;color:var(--brand-dark);border-color:#fff}

/* ==========================================================================
   Header / footer
   ========================================================================== */
body[data-theme] .n-header{
    background:#fff;border-bottom:1px solid var(--brand-line);
}
body[data-theme] .n-header a[aria-label="search"],
body[data-theme] .n-header summary{color:var(--brand-muted)}
body[data-theme] .n-footer{
    background:var(--brand-dark);color:var(--brand-on-dark);
}
body[data-theme] .n-footer h4{color:#fff}
body[data-theme] .n-footer li,
body[data-theme] .n-footer p{color:color-mix(in srgb,var(--brand-on-dark) 72%,transparent)}
body[data-theme] .n-footer a{color:color-mix(in srgb,var(--brand-on-dark) 82%,transparent);transition:color .2s}
body[data-theme] .n-footer a:hover{color:var(--brand-accent)}

/* ==========================================================================
   Hero
   ========================================================================== */
body[data-theme] .n-hero{
    position:relative;overflow:hidden;background:var(--brand-dark);height:var(--hero-h);
}
body[data-theme] .n-hero-overlay{position:absolute;inset:0;z-index:10;pointer-events:none}
body[data-theme][data-direction="rtl"] .n-hero-overlay{
    background:linear-gradient(to left,var(--hero-1) 0%,var(--hero-2) 46%,var(--hero-3) 100%);
}
body[data-theme][data-direction="ltr"] .n-hero-overlay{
    background:linear-gradient(to right,var(--hero-1) 0%,var(--hero-2) 46%,var(--hero-3) 100%);
}
body[data-theme] .n-hero-title{color:#fff;text-shadow:0 3px 22px rgba(0,0,0,.35)}
body[data-theme] .n-hero-sub{color:rgba(255,255,255,.86)}
body[data-theme] .n-hero-tag{
    color:#fff;background:rgba(255,255,255,.14);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
}
body[data-theme] .n-hero-arrow{
    background:rgba(255,255,255,.16);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
}
body[data-theme] .n-hero-arrow:hover{background:rgba(255,255,255,.34)}
body[data-theme] .slider-dots button.on{background:#fff}

/* ==========================================================================
   Cards (features)
   ========================================================================== */
body[data-theme] .n-card{
    background:#fff;border:1px solid var(--brand-line);border-radius:var(--brand-radius-lg);
    height:100%;
    transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background .22s ease;
}
body[data-theme] .n-card:hover{transform:translateY(-4px);box-shadow:var(--card-shadow);border-color:var(--brand-primary)}
body[data-theme] .n-card-icon{
    border-radius:var(--brand-radius-lg);
    background:color-mix(in srgb,var(--brand-primary) 12%,transparent);
    color:var(--brand-primary);
    transition:background .22s ease,color .22s ease,transform .22s ease;
}
body[data-theme] .n-card:hover .n-card-icon{background:var(--brand-primary);color:#fff}
body[data-theme] .n-card-title{color:var(--brand-dark)}

/* ==========================================================================
   About / export map
   ========================================================================== */
body[data-theme] .n-media{border-radius:var(--brand-radius-lg);box-shadow:var(--card-shadow)}
body[data-theme] .n-check{
    border-radius:9999px;
    background:color-mix(in srgb,var(--brand-primary) 12%,transparent);
    color:var(--brand-primary);
}
body[data-theme] .n-badge{
    background:var(--brand-primary);color:#fff;border-radius:var(--brand-radius-lg);
    box-shadow:0 24px 46px -22px color-mix(in srgb,var(--brand-dark) 70%,transparent);
}
body[data-theme] .n-badge-label{color:color-mix(in srgb,#fff 78%,transparent)}
body[data-theme] .n-legend-item{
    color:var(--brand-dark);background:var(--brand-soft);border:1px solid var(--brand-line);
}
body[data-theme] .n-map-panel{
    background:var(--brand-soft);border:1px solid var(--brand-line);border-radius:var(--brand-radius-lg);
}

/* ==========================================================================
   Trust bar
   ========================================================================== */
body[data-theme] .n-trust{
    background:var(--brand-page);
    border-top:1px solid var(--brand-line);border-bottom:1px solid var(--brand-line);
}
body[data-theme] .n-trust .container{gap:1px;background:var(--brand-line)}
body[data-theme] .n-trust-item{background:var(--brand-page)}
body[data-theme] .n-trust-icon{
    border-radius:var(--brand-radius);
    background:color-mix(in srgb,var(--brand-primary) 10%,transparent);
    color:var(--brand-primary);
}
body[data-theme] .n-trust-title{color:var(--brand-dark)}
body[data-theme] .n-trust-sub{color:var(--brand-muted)}

/* ==========================================================================
   Content blocks placed via the page builder (rich text / banner / cards)
   ========================================================================== */
body[data-theme] .n-rich-inner{max-width:860px}
body[data-theme] .n-rich-align-center{margin-inline:auto;text-align:center}
body[data-theme] .n-rich-align-left{margin-inline-end:auto;text-align:start}
body[data-theme] .n-rich-align-right{margin-inline-start:auto;text-align:end}
body[data-theme] .n-rich-body{color:var(--brand-muted);line-height:2;font-size:1.02rem}
body[data-theme] .n-rich-body img{max-width:100%;height:auto;border-radius:var(--brand-radius)}
body[data-theme] .n-rich-light{background:var(--brand-soft)}
body[data-theme] .n-rich-dark{background:var(--brand-dark)}
body[data-theme] .n-rich-dark .n-title,
body[data-theme] .n-rich-dark .n-sub,
body[data-theme] .n-rich-dark .n-rich-body{color:#fff}
body[data-theme] .n-rich-accent{background:var(--brand-accent)}
body[data-theme] .n-rich-accent .n-title,
body[data-theme] .n-rich-accent .n-sub,
body[data-theme] .n-rich-accent .n-rich-body{color:var(--brand-accent-contrast)}

body[data-theme] .n-cards-light{background:var(--brand-soft)}
body[data-theme] .n-cards-dark{background:var(--brand-dark)}
body[data-theme] .n-cards-dark .n-title,
body[data-theme] .n-cards-dark .n-sub{color:#fff}
body[data-theme] .n-cards-accent{background:var(--brand-accent)}
body[data-theme] .n-cards-accent .n-title,
body[data-theme] .n-cards-accent .n-sub{color:var(--brand-accent-contrast)}
body[data-theme] .n-card-link{font-weight:700;color:var(--brand-primary);text-decoration:none;display:inline-flex;align-items:center;gap:6px}
body[data-theme] .n-card-link:hover{color:var(--brand-primary-dark)}

body[data-theme] .n-banner-inner{position:relative;border-radius:var(--brand-radius-lg);overflow:hidden;background:var(--brand-dark)}
body[data-theme] .n-banner-sm{min-height:180px}
body[data-theme] .n-banner-md{min-height:300px}
body[data-theme] .n-banner-lg{min-height:440px}
body[data-theme] .n-banner-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
body[data-theme] .n-banner-overlay{position:absolute;inset:0}
body[data-theme] .n-banner-overlay[data-dir="rtl"]{background:linear-gradient(to left,var(--hero-1),var(--hero-2) 55%,var(--hero-3))}
body[data-theme] .n-banner-overlay[data-dir="ltr"]{background:linear-gradient(to right,var(--hero-1),var(--hero-2) 55%,var(--hero-3))}
body[data-theme] .n-banner-content{position:relative;z-index:2;padding:clamp(24px,5vw,56px);max-width:640px;color:#fff}
body[data-theme] .n-banner-title{color:#fff;font-size:clamp(1.4rem,3vw,2.2rem);font-weight:800;margin:0 0 8px}
body[data-theme] .n-banner-sub{color:rgba(255,255,255,.85);margin:0 0 18px;line-height:1.9}
body[data-theme] .n-banner-empty{padding:40px;text-align:center;color:var(--brand-muted)}

/* ==========================================================================
   Style: editorial (ظ…غŒظ†غŒظ…ط§ظ„ ط±ظˆط´ظ†)
   ========================================================================== */
body[data-layout="editorial"] .n-title{font-weight:700;letter-spacing:-.015em}
body[data-layout="editorial"] .n-card{
    background:var(--brand-page);box-shadow:none;
}
body[data-layout="editorial"] .n-card:hover{
    transform:none;background:var(--brand-soft);border-color:var(--brand-dark);box-shadow:none;
}
body[data-layout="editorial"] .n-card-icon{
    background:transparent;color:var(--brand-ink);border-radius:0;
    width:auto;height:auto;font-size:1.9rem;margin-bottom:1rem;
}
body[data-layout="editorial"] .n-card:hover .n-card-icon{background:transparent;color:var(--brand-ink)}
body[data-layout="editorial"] .n-hero-tag{
    background:transparent;text-transform:uppercase;letter-spacing:.16em;font-size:.74rem;
    padding-left:0;padding-right:0;
}
body[data-layout="editorial"] .n-btn{padding:.9rem 1.6rem}
body[data-layout="editorial"] .n-btn-primary{box-shadow:none;border-radius:0}
body[data-layout="editorial"] .n-btn-accent{box-shadow:none;border-radius:0}
body[data-layout="editorial"] .n-mono-fade{background:linear-gradient(180deg,transparent,var(--brand-page))}
body[data-layout="editorial"] .n-badge{box-shadow:none;border-radius:0}
body[data-layout="editorial"] .n-media{border-radius:0;box-shadow:none}

/* ==========================================================================
   Style: premium (ظ†ظپغŒط³ ط³ط±ظ…ظ‡â€Œط§غŒâ€“ط·ظ„ط§غŒغŒ)
   ========================================================================== */
body[data-layout="premium"] .n-card{border-top:3px solid var(--brand-accent)}
body[data-layout="premium"] .n-card-icon{
    background:color-mix(in srgb,var(--brand-accent) 20%,transparent);color:var(--brand-accent-dark);
}
body[data-layout="premium"] .n-card:hover .n-card-icon{background:var(--brand-accent);color:var(--brand-accent-contrast)}
body[data-layout="premium"] .n-hero-tag{
    background:color-mix(in srgb,var(--brand-accent) 22%,transparent);
    color:var(--brand-accent);border:1px solid color-mix(in srgb,var(--brand-accent) 45%,transparent);
}
body[data-layout="premium"] .n-trust{border-top:3px solid var(--brand-accent)}
body[data-layout="premium"] .n-title{letter-spacing:-.01em}

/* ==========================================================================
   Style: mono (ع¯ط±ط§ظپغŒطھغŒ طھع©â€Œط±ظ†ع¯)
   ========================================================================== */
body[data-layout="mono"] .n-hero img.zoom{filter:grayscale(1) contrast(1.06)}
body[data-layout="mono"] .n-title{font-weight:800;letter-spacing:-.02em}
body[data-layout="mono"] .n-card{border-radius:2px}
body[data-layout="mono"] .n-card-icon{
    background:var(--brand-dark);color:#fff;border-radius:2px;
}
body[data-layout="mono"] .n-card:hover .n-card-icon{background:var(--brand-accent);color:#fff}
body[data-layout="mono"] .n-trust-icon{background:transparent;border:1px solid var(--brand-line);color:var(--brand-dark)}
body[data-layout="mono"] .n-btn{border-radius:2px}

/* ==========================================================================
   Style: industrial (طµظ†ط¹طھغŒ ط¬ط³ظˆط±)
   ========================================================================== */
body[data-layout="industrial"] .n-title,
body[data-layout="industrial"] .n-card-title,
body[data-layout="industrial"] .n-sub{text-transform:uppercase;letter-spacing:.01em}
body[data-layout="industrial"] .n-title{font-weight:900}
body[data-layout="industrial"] .n-hero-title{text-transform:uppercase;letter-spacing:.005em;text-shadow:none}
body[data-layout="industrial"] .n-hero-tag{border-radius:2px;background:var(--brand-accent);color:var(--brand-accent-contrast);font-weight:800;text-transform:uppercase;letter-spacing:.06em}
body[data-layout="industrial"] .n-card{border-top:4px solid var(--brand-accent);border-radius:2px}
body[data-layout="industrial"] .n-card-icon{background:var(--brand-accent);color:var(--brand-accent-contrast);border-radius:2px}
body[data-layout="industrial"] .n-card:hover .n-card-icon{background:var(--brand-accent-dark);color:var(--brand-accent-contrast)}
body[data-layout="industrial"] .n-btn{border-radius:2px;text-transform:uppercase;letter-spacing:.05em;font-weight:800}
body[data-layout="industrial"] .n-trust{background:var(--brand-dark);border-color:transparent}
body[data-layout="industrial"] .n-trust .container{background:rgba(255,255,255,.08)}
body[data-layout="industrial"] .n-trust-item{background:var(--brand-dark)}
body[data-layout="industrial"] .n-trust-icon{background:rgba(255,255,255,.06);color:var(--brand-accent);border-radius:2px}
body[data-layout="industrial"] .n-trust-title{color:#fff}
body[data-layout="industrial"] .n-trust-sub{color:rgba(255,255,255,.55)}

/* ==========================================================================
   Style: calm (ط¢ط±ط§ظ… ط¢ط¨غŒâ€“ظپغŒط±ظˆط²ظ‡â€Œط§غŒ)
   ========================================================================== */
body[data-layout="calm"] .n-title{font-weight:800;letter-spacing:-.01em}
body[data-layout="calm"] .n-card{border-color:transparent;box-shadow:var(--card-shadow)}
body[data-layout="calm"] .n-card:hover{transform:translateY(-6px)}
body[data-layout="calm"] .n-card-icon{
    background:linear-gradient(135deg,var(--brand-accent),var(--brand-primary));color:#fff;border-radius:9999px;
}
body[data-layout="calm"] .n-card:hover .n-card-icon{background:linear-gradient(135deg,var(--brand-primary),var(--brand-primary-dark))}
body[data-layout="calm"] .n-hero-tag{background:rgba(255,255,255,.18)}
body[data-layout="calm"] .n-trust{background:var(--brand-soft);border-color:transparent;border-radius:0}
body[data-layout="calm"] .n-trust .container{background:transparent}
body[data-layout="calm"] .n-trust-item{background:transparent}
body[data-layout="calm"] .n-check{background:color-mix(in srgb,var(--brand-accent) 18%,transparent);color:var(--brand-primary-dark)}
/* luxury theme added above; emerald uses calm style with emerald palette */


/* ==========================================================================
   Layout variants â€” alternate the media side for an asymmetric rhythm
   (grid items only, so desktop-only to keep the mobile stack predictable)
   ========================================================================== */
@media (min-width:1024px){
    body[data-layout="editorial"] .n-about .container > :first-child{order:2}
    body[data-layout="premium"] .n-export .container > :first-child{order:2}
    body[data-layout="calm"] .n-about .container > :first-child{order:2}
}

/* Quick production fix: hide Tailwind CDN warning banner when it appears */
body .tailwindcss-play-warning,
body .tailwindcss-warning-banner,
.tailwindcss-play-warning,
.tailwindcss-warning-banner{display:none !important}

/* ==========================================================================
    Responsive
   ========================================================================== */
@media (max-width:640px){
    body[data-theme] .n-hero{height:auto;min-height:min(78vh,540px)}
    body[data-theme] .n-hero .container{padding-top:5.5rem;padding-bottom:5.5rem}
    body[data-theme] .n-btn{padding:.8rem 1.3rem}
}

@media (prefers-reduced-motion:reduce){
    body[data-theme] .n-btn,body[data-theme] .n-card,body[data-theme] .n-card-icon{transition:none}
}

