/* ================================================================
   نجم الرمال الاصيل — Luxury Orange Design System
   ================================================================ */

:root {
    --brand-gold: #ee5a21;
    --brand-gold-2: #ff7b4a;
    --brand-dark: #b64014;
    --brand-deep: #8f3010;
    --brand-shimmer: #ffc4a0;
    --brand-light: #ffddcc;
    --ink: #160a03;
    --ink-soft: #5c2e16;
    --muted: #8b6555;
    --line: #f0d8cc;
    --surface: #ffffff;
    --surface-soft: #fff9f6;
    --surface-warm: #fef5ef;
    --dark-luxury: #1a0a03;
    --dark-mid: #2a1107;
    --shadow-xs: 0 4px 12px rgba(180, 64, 20, 0.08);
    --shadow-sm: 0 10px 28px rgba(180, 64, 20, 0.13);
    --shadow-md: 0 20px 50px rgba(180, 64, 20, 0.22);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
}

/* ── Base ───────────────────────────────────────────── */
* { box-sizing: border-box; }

html, body { overflow-x: hidden; }

body {
    font-family: "Cairo", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1100px 500px at 95% -5%, rgba(238, 90, 33, 0.15) 0%, transparent 65%),
        radial-gradient(800px 400px at -5% 30%, rgba(182, 64, 20, 0.1) 0%, transparent 70%),
        #fffcfa;
    line-height: 1.75;
}

body::before, body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(60px);
    opacity: 0.18;
    animation: floatGlow 14s ease-in-out infinite;
}

body::before {
    width: 440px;
    height: 440px;
    top: -160px;
    right: -100px;
    background: radial-gradient(circle, rgba(238, 120, 84, 0.6), rgba(238, 90, 33, 0.3));
}

body::after {
    width: 360px;
    height: 360px;
    bottom: -130px;
    left: -100px;
    background: radial-gradient(circle, rgba(255, 150, 100, 0.5), rgba(238, 120, 84, 0.2));
    animation-delay: -5s;
}

a { text-decoration: none; }

.text-orange { color: var(--brand-gold) !important; }

/* ── Preloader ──────────────────────────────────────── */
.site-preloader {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 38%, #fff4ee, #fde4d6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.site-preloader.hide { opacity: 0; visibility: hidden; }

.preloader-core {
    width: 100px;
    height: 100px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(238, 90, 33, 0.3), 0 0 0 6px rgba(238, 90, 33, 0.08);
    object-fit: contain;
}

.preloader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(238, 90, 33, 0.15);
    border-top-color: var(--brand-gold);
    border-right-color: var(--brand-dark);
    animation: spinRing 0.9s linear infinite;
}

/* ── Scroll Progress ─────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 0%;
    height: 3px;
    z-index: 1200;
    background: linear-gradient(90deg, var(--brand-deep), var(--brand-gold), var(--brand-gold-2));
    box-shadow: 0 2px 12px rgba(238, 90, 33, 0.45);
    transition: width 0.1s linear;
}

/* ── Quick Contact Strip ─────────────────────────────── */
.quick-contact-strip {
    background: linear-gradient(120deg, #ee7854, #d96540, #c85830);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.875rem;
    color: rgba(255, 245, 235, 0.9);
    padding: 0.4rem 0;
    position: relative;
    overflow: hidden;
}

.quick-contact-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: stripShimmer 4s ease-in-out infinite;
}

.quick-contact-strip strong { color: #fff; }

.quick-contact-strip a {
    color: #fff;
    font-weight: 800;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.15);
    transition: 0.22s ease;
}

.quick-contact-strip a:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

/* ── Main Navigation ─────────────────────────────────── */
.main-nav {
    background: rgba(255, 252, 250, 0.88) !important;
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgba(238, 90, 33, 0.18);
    transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.main-nav.nav-scrolled {
    background: rgba(255, 252, 249, 0.97) !important;
    border-bottom-color: rgba(238, 90, 33, 0.32);
    box-shadow: 0 8px 32px rgba(22, 10, 3, 0.1), 0 2px 8px rgba(238, 90, 33, 0.12);
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--ink);
    letter-spacing: -0.2px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(22, 10, 3, 0.16), 0 0 0 2px rgba(238, 90, 33, 0.22);
    background: #fff;
}

.navbar .nav-link {
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 10px;
    padding: 0.5rem 0.9rem !important;
    transition: 0.22s ease;
    position: relative;
    letter-spacing: 0.1px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--brand-dark);
    background: rgba(238, 90, 33, 0.1);
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    right: 0.8rem;
    left: 0.8rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    background: linear-gradient(90deg, var(--brand-dark), var(--brand-gold), var(--brand-gold-2));
    transition: transform 0.26s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn-orange {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-gold) 50%, var(--brand-gold-2) 100%);
    font-weight: 800;
    border-radius: var(--radius-sm);
    padding: 0.68rem 1.4rem;
    box-shadow: 0 8px 24px rgba(238, 90, 33, 0.4), 0 2px 6px rgba(238, 90, 33, 0.2);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
}

.btn-orange:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(238, 90, 33, 0.45), 0 4px 12px rgba(238, 90, 33, 0.22);
}

.btn-orange::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.14), transparent);
    border-radius: inherit;
}

.btn-orange::after {
    content: "";
    position: absolute;
    top: 0;
    right: -130%;
    width: 65%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-18deg);
    transition: right 0.6s ease;
}

.btn-orange:hover::after { right: 150%; }

.btn-outline-orange {
    border: 2px solid var(--brand-gold);
    color: var(--brand-dark);
    background: transparent;
    font-weight: 800;
    border-radius: var(--radius-sm);
    padding: 0.58rem 1.3rem;
    transition: 0.24s ease;
}

.btn-outline-orange:hover {
    background: var(--brand-gold);
    color: #fff;
    box-shadow: 0 8px 24px rgba(238, 90, 33, 0.35);
}

.btn-outline-dark {
    border: 2px solid rgba(22, 10, 3, 0.22);
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    transition: 0.22s ease;
}

.btn-outline-dark:hover {
    background: var(--dark-mid);
    border-color: var(--dark-mid);
    color: #fff;
}

/* ── Hero Slider ─────────────────────────────────────── */
.hero-slider-wrap {
    position: relative;
    overflow: hidden;
    background: #c85830;
}

.hero-slider-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(200, 88, 48, 0.25) 0%, transparent 40%, rgba(180, 64, 20, 0.55) 100%),
        linear-gradient(105deg, rgba(160, 50, 15, 0.65) 0%, rgba(200, 88, 48, 0.4) 45%, rgba(200, 88, 48, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-slider-wrap .carousel-item {
    height: 78vh;
    min-height: 540px;
}

.hero-slider-wrap .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05) brightness(0.5);
    animation: kenBurns 13s ease-in-out infinite alternate;
}

.hero-slider-wrap .carousel-caption {
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 18%;
    direction: rtl;
    text-align: right;
    padding-inline: 1rem;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 18px;
    right: 50%;
    transform: translateX(50%);
    z-index: 4;
}

.hero-scroll-hint span {
    display: block;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    position: relative;
}

.hero-scroll-hint span::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 50%;
    transform: translateX(50%);
    width: 4px;
    height: 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    animation: scrollHint 1.6s ease-in-out infinite;
}

.hero-slider-wrap h1,
.hero-slider-wrap h2 {
    max-width: 820px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.25;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.hero-slider-wrap p {
    max-width: 700px;
    color: rgba(255, 235, 220, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 800;
    background: rgba(238, 90, 33, 0.22);
    color: var(--brand-shimmer);
    border: 1px solid rgba(238, 90, 33, 0.5);
    border-radius: 100px;
    padding: 0.32rem 0.9rem;
    margin-bottom: 1.1rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
}

.hero-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-gold-2);
    display: inline-block;
}

/* ── Section Typography ──────────────────────────────── */
.section-title {
    font-size: 2.1rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    color: var(--ink);
    position: relative;
    padding-bottom: 0.6rem;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.section-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-deep), var(--brand-gold), var(--brand-gold-2));
}

.section-title.centered::after {
    right: 50%;
    transform: translateX(50%);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--brand-dark);
    margin-bottom: 0.6rem;
}

.section-label::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-dark), var(--brand-gold));
    display: inline-block;
}

.section-note {
    color: var(--muted);
    max-width: 800px;
    line-height: 1.85;
    font-size: 1.02rem;
}

/* ── Panel / Surface Cards ───────────────────────────── */
.panel-soft {
    background: linear-gradient(160deg, #ffffff, #fff8f4);
    border: 1px solid rgba(238, 90, 33, 0.18);
    border-radius: var(--radius-md);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.panel-soft::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand-dark), var(--brand-gold));
    border-radius: 0 var(--radius-md) 0 0;
}

/* ── Counter Section ─────────────────────────────────── */
.counter-section {
    background: linear-gradient(135deg, #ee7854, #d96540, #c85830);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.counter-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%),
        radial-gradient(400px at 10% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
}

.counter-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.counter-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.counter-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    opacity: 0;
    transition: 0.3s ease;
}

.counter-card:hover { border-color: rgba(255, 255, 255, 0.55); transform: translateY(-4px); }
.counter-card:hover::before { opacity: 1; }

.counter-icon {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    display: block;
    line-height: 1;
}

.counter-value {
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.3rem;
    font-variant-numeric: tabular-nums;
}

.counter-card p {
    color: rgba(255, 245, 235, 0.85);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

/* ── Metric Cards (Why choose us) ────────────────────── */
.metric-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
    transition: 0.28s ease;
}

.metric-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-deep), var(--brand-gold), var(--brand-gold-2));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.metric-card:hover {
    border-color: rgba(238, 90, 33, 0.3);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.metric-card:hover::before { transform: scaleX(1); }

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(238, 90, 33, 0.14), rgba(182, 64, 20, 0.1));
    border: 1px solid rgba(238, 90, 33, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.85rem;
    flex-shrink: 0;
}

.metric-card h6 {
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.metric-card p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}

/* ── Service / Offer / Branch Cards ──────────────────── */
.service-card,
.branch-card,
.offer-card,
.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-xs);
    position: relative;
}

.service-card,
.offer-card {
    display: flex;
    flex-direction: column;
}

.service-card:hover,
.branch-card:hover,
.offer-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
    border-color: rgba(238, 90, 33, 0.32);
}

.interactive-tilt { transform-style: preserve-3d; will-change: transform; }

.service-card img,
.offer-card img {
    transition: transform 0.5s ease;
}

.service-card:hover img,
.offer-card:hover img {
    transform: scale(1.06);
}

.service-card img {
    height: 236px;
    width: 100%;
    object-fit: cover;
}

.offer-card img {
    height: 218px;
    width: 100%;
    object-fit: cover;
}

.service-card .p-3,
.offer-card .p-4 { flex: 1; }

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, rgba(238, 90, 33, 0.14), rgba(182, 64, 20, 0.1));
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.24rem 0.7rem;
    border-radius: 32px;
    border: 1px solid rgba(238, 90, 33, 0.22);
    letter-spacing: 0.2px;
}

/* ── Page Hero ───────────────────────────────────────── */
.page-hero {
    background:
        radial-gradient(ellipse at 70% -10%, rgba(255, 140, 80, 0.35) 0%, transparent 55%),
        linear-gradient(135deg, var(--brand-deep), var(--brand-gold), var(--brand-dark));
    color: #fff;
    padding: 4.5rem 0 3.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

/* ── Form Card ───────────────────────────────────────── */
.form-card { padding: 2rem; }

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid #e8ddd8;
    padding: 0.72rem 0.95rem;
    background: #fff;
    font-family: "Cairo", sans-serif;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(238, 90, 33, 0.18);
    outline: none;
}

/* ── Testimonial Cards ───────────────────────────────── */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.6rem;
    height: 100%;
    box-shadow: var(--shadow-xs);
    position: relative;
    transition: 0.28s ease;
    overflow: hidden;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -0.2rem;
    right: 1.2rem;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(238, 90, 33, 0.12);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(238, 90, 33, 0.3);
    transform: translateY(-3px);
}

.testimonial-stars {
    color: var(--brand-gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.testimonial-text {
    color: var(--ink-soft);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.96rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.testimonial-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(238, 90, 33, 0.18), rgba(182, 64, 20, 0.12));
    border: 2px solid rgba(238, 90, 33, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--ink);
    margin: 0;
}

.testimonial-role {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0;
}

/* ── CTA Strip ───────────────────────────────────────── */
.cta-strip {
    background: linear-gradient(135deg, #ee7854, #d96540, #c85830);
    border-radius: var(--radius-lg);
    padding: 2.8rem 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.cta-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(500px at 90% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%),
        radial-gradient(300px at 10% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
}

.cta-strip::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.cta-strip h3 {
    color: #fff;
    font-weight: 900;
    font-size: 1.55rem;
    letter-spacing: -0.3px;
    margin-bottom: 0.5rem;
}

.cta-strip p { color: rgba(255, 245, 235, 0.85); margin: 0; }

.cta-strip .btn-outline-orange {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.cta-strip .btn-outline-orange:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ── Footer ──────────────────────────────────────────── */
.footer-dark {
    background: linear-gradient(160deg, #ee7854, #d96540, #c85830);
    color: rgba(255, 245, 240, 0.92);
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.footer-dark::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.footer-dark::after {
    content: "";
    position: absolute;
    top: -200px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.footer-link {
    color: rgba(255, 245, 240, 0.85);
    font-size: 0.92rem;
    transition: 0.22s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-link::before {
    content: "›";
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 900;
}

.footer-link:hover {
    color: #fff;
    padding-right: 4px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.3rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 245, 235, 0.82);
    font-size: 0.91rem;
}

.footer-contact-icon {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 1.5rem 0;
}

/* ── Map ─────────────────────────────────────────────── */
.map-embed {
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}

/* ── WhatsApp Float ──────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    left: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1eb558, #25d366);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
    z-index: 1050;
    animation: whatsappPulse 2.2s ease-in-out infinite;
    transition: transform 0.22s ease;
}

.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { color: #fff; transform: scale(1.1); }

/* ── Back to Top ─────────────────────────────────────── */
.back-to-top {
    position: fixed;
    left: 22px;
    bottom: 90px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff, #fff9f5);
    color: var(--brand-dark);
    font-size: 1.2rem;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(22, 10, 3, 0.16), 0 2px 6px rgba(238, 90, 33, 0.15);
    border: 1px solid rgba(238, 90, 33, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.28s ease;
    z-index: 1048;
}

.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22, 10, 3, 0.2); }

/* ── Reveal Animations ───────────────────────────────── */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    will-change: opacity, transform;
}

.reveal-up.in-view { opacity: 1; transform: translateY(0); }

/* ── Animations ──────────────────────────────────────── */
@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(22px, -28px); }
}

@keyframes kenBurns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-1%, 1%); }
}

@keyframes spinRing {
    to { transform: rotate(360deg); }
}

@keyframes scrollHint {
    0%   { opacity: 1; transform: translateX(50%) translateY(0); }
    100% { opacity: 0; transform: translateX(50%) translateY(16px); }
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 0 0   rgba(37, 211, 102, 0.3); }
    50%       { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
}

@keyframes stripShimmer {
    0%, 100% { opacity: 0; }
    50%       { opacity: 1; }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 991px) {
    .hero-slider-wrap .carousel-item { min-height: 450px; height: 68vh; }
    .hero-slider-wrap .carousel-caption { bottom: 14%; }
    .hero-slider-wrap h1, .hero-slider-wrap h2 { font-size: 1.5rem; }
    .section-title { font-size: 1.75rem; }
    .counter-section { padding: 2rem 1.5rem; border-radius: var(--radius-md); }
    .cta-strip { padding: 2rem 1.5rem; }
}

@media (max-width: 767px) {
    .quick-contact-strip { font-size: 0.82rem; }

    .hero-slider-wrap .carousel-item { min-height: 380px; height: 68vh; }
    .hero-slider-wrap .carousel-caption { bottom: 8%; padding-inline: 0.75rem; }
    .hero-slider-wrap .carousel-caption .container {
        padding: 1rem;
        background: rgba(180, 64, 20, 0.52);
        border-radius: var(--radius-md);
        backdrop-filter: blur(4px);
        border: 1px solid rgba(238, 90, 33, 0.2);
    }
    .hero-slider-wrap h1, .hero-slider-wrap h2 {
        font-size: 1.15rem;
        line-height: 1.5;
        margin-bottom: 0.45rem !important;
    }
    .hero-slider-wrap p { font-size: 0.88rem; line-height: 1.65; margin-bottom: 0.6rem; max-width: 100%; }
    .hero-slider-wrap .btn { font-size: 0.86rem; padding: 0.44rem 0.85rem; }
    .hero-slider-wrap .carousel-control-prev,
    .hero-slider-wrap .carousel-control-next { width: 11%; }
    .hero-slider-wrap .carousel-indicators { margin-bottom: 0.5rem; }

    .back-to-top  { left: 14px; width: 42px; height: 42px; bottom: 80px; }
    .whatsapp-float { left: 12px; bottom: 14px; width: 54px; height: 54px; }

    .counter-section { padding: 1.75rem 1.25rem; }
    .cta-strip { padding: 1.75rem 1.25rem; border-radius: var(--radius-md); }
    .cta-strip h3 { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal-up { opacity: 1 !important; transform: none !important; }
}

/* ================================================================
   Admin Panel Styles
   ================================================================ */

.admin-nav {
    background: #fff !important;
    border-bottom: 3px solid var(--brand-gold);
    box-shadow: 0 2px 16px rgba(238, 90, 33, 0.12);
}

.admin-nav .navbar-brand {
    color: var(--brand-dark) !important;
    font-weight: 900;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-nav .navbar-brand::before {
    content: "⚙";
    font-size: 1.1rem;
    color: var(--brand-gold);
}

.admin-nav .nav-link {
    color: var(--ink-soft) !important;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    padding: 0.42rem 0.8rem !important;
    transition: 0.2s ease;
}

.admin-nav .nav-link:hover,
.admin-nav .nav-link.active {
    color: var(--brand-dark) !important;
    background: rgba(238, 90, 33, 0.1);
}

.admin-nav .nav-link-logout {
    color: #dc3545 !important;
}

.admin-nav .nav-link-logout:hover {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

/* ── Admin Page Layout ───────────────────────────────── */
.admin-page {
    min-height: 80vh;
    background: #f8f5f2;
    padding: 2rem 0 3rem;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.admin-page-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-page-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 1.4em;
    background: linear-gradient(180deg, var(--brand-gold), var(--brand-dark));
    border-radius: 4px;
}

/* ── Stat Cards ──────────────────────────────────────── */
.admin-stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: 0.25s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.admin-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-deep), var(--brand-gold), var(--brand-gold-2));
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(238, 90, 33, 0.25);
}

.admin-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(238, 90, 33, 0.15), rgba(182, 64, 20, 0.1));
    border: 1px solid rgba(238, 90, 33, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--brand-dark);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.admin-stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
    margin: 0;
}

/* ── Admin Cards ─────────────────────────────────────── */
.admin-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.admin-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, #fffaf7, #fff5f0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-card-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-card-body { padding: 1.5rem; }
.admin-card-body-sm { padding: 1rem; }

/* ── Admin Tables ────────────────────────────────────── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table thead th {
    background: linear-gradient(135deg, #fff5f0, #ffede4);
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid rgba(238, 90, 33, 0.2);
    white-space: nowrap;
}

.admin-table tbody tr {
    border-bottom: 1px solid #f5ede8;
    transition: background 0.18s ease;
}

.admin-table tbody tr:last-child { border-bottom: none; }

.admin-table tbody tr:hover { background: #fffaf7; }

.admin-table td {
    padding: 0.85rem 1rem;
    color: var(--ink-soft);
    vertical-align: middle;
}

.admin-table td:first-child {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

/* ── Badges ──────────────────────────────────────────── */
.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.admin-badge-orange {
    background: rgba(238, 90, 33, 0.12);
    color: var(--brand-dark);
    border: 1px solid rgba(238, 90, 33, 0.22);
}

.admin-badge-green {
    background: rgba(25, 195, 90, 0.1);
    color: #157347;
    border: 1px solid rgba(25, 195, 90, 0.2);
}

/* ── Admin Form ──────────────────────────────────────── */
.admin-form .form-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-bottom: 0.35rem;
}

.admin-form .form-control,
.admin-form .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid #e5ddd8;
    font-size: 0.92rem;
    padding: 0.65rem 0.9rem;
    background: #fff;
    font-family: "Cairo", sans-serif;
    transition: 0.22s ease;
}

.admin-form .form-control:focus,
.admin-form .form-select:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(238, 90, 33, 0.15);
}

/* ── Action Buttons ──────────────────────────────────── */
.btn-admin-edit {
    border: 1.5px solid rgba(238, 90, 33, 0.4);
    color: var(--brand-dark);
    background: rgba(238, 90, 33, 0.06);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.3rem 0.75rem;
    transition: 0.2s ease;
    white-space: nowrap;
}

.btn-admin-edit:hover {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #fff;
}

.btn-admin-delete {
    border: 1.5px solid rgba(220, 53, 69, 0.35);
    color: #dc3545;
    background: rgba(220, 53, 69, 0.06);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.3rem 0.75rem;
    transition: 0.2s ease;
    white-space: nowrap;
}

.btn-admin-delete:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* ── Message Cards ───────────────────────────────────── */
.message-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.5rem;
    border-right: 4px solid var(--brand-gold);
    transition: 0.22s ease;
}

.message-card:hover {
    box-shadow: var(--shadow-xs);
    border-right-color: var(--brand-dark);
}

.message-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.message-meta strong { color: var(--ink-soft); }

.message-text {
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

/* ── Thumb Image in Table ────────────────────────────── */
.admin-thumb {
    width: 64px;
    height: 46px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.admin-no-img {
    width: 64px;
    height: 46px;
    background: #f5ede8;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--muted);
    border: 1px solid var(--line);
}

/* ── Empty State ─────────────────────────────────────── */
.admin-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}

.admin-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.5;
}

/* ── Alert Override for Admin ────────────────────────── */
.alert-success {
    background: rgba(25, 195, 90, 0.1);
    border: 1px solid rgba(25, 195, 90, 0.25);
    color: #0f5132;
    border-radius: var(--radius-sm);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.25);
    color: #842029;
    border-radius: var(--radius-sm);
}
