/* ═══════════════════════════════════════════════════════════════
   Grand Estate – app.css
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
    --gold:           #B99555;
    --gold-light:     rgba(185,149,85,.14);
    --gold-border:    rgba(185,149,85,.35);
    --gold-dark:      #9a7a3f;
    --navy:           #1a1a2e;

    --text-primary:   #1a1a2e;
    --text-secondary: #55556a;
    --text-muted:     #8888a0;
    --bg-body:        #f7f6f1;
    --bg-section:     #efece5;
    --bg-card:        #ffffff;
    --bg-header:      #ffffff;
    --border-col:     rgba(0,0,0,.09);
    --shadow-sm:      0 2px 12px rgba(0,0,0,.07);
    --shadow-md:      0 6px 28px rgba(0,0,0,.10);
    --shadow-lg:      0 12px 48px rgba(0,0,0,.14);
    --shadow-hover:   0 10px 40px rgba(0,0,0,.18);
    --radius-sm:      6px;
    --radius:         12px;
    --radius-lg:      20px;
    --header-h:       72px;
    --tr:             .3s ease;

    /* Logo mark — chrome/blue letterform + red sphere */
    --logo-metal-1:   #2a75bb; /* top highlight */
    --logo-metal-2:   #1e5896;
    --logo-metal-3:   #104a8e;
    --logo-metal-4:   #0b3061;
    --logo-metal-5:   #16437d;
    --logo-metal-6:   #051937; /* deepest — near-black, fine on a light header */
    --logo-bevel-1:   #0b3061;
    --logo-bevel-2:   #020b18;
    --logo-stroke:    #0b3061;
}

[data-theme="dark"] {
    --text-primary:   #e6e6f0;
    --text-secondary: #aaaabf;
    --text-muted:     #6e6e90;
    --bg-body:        #0e0e18;
    --bg-section:     #141420;
    --bg-card:        #1c1c2c;
    --bg-header:      #131322;
    --border-col:     rgba(255,255,255,.08);
    --shadow-sm:      0 2px 12px rgba(0,0,0,.25);
    --shadow-md:      0 6px 28px rgba(0,0,0,.35);
    --shadow-lg:      0 12px 48px rgba(0,0,0,.45);
    --shadow-hover:   0 10px 40px rgba(0,0,0,.55);

    --logo-metal-1:   #eaf2fc;
    --logo-metal-2:   #bcd8f4;
    --logo-metal-3:   #8fbceb;
    --logo-metal-4:   #6aa3de;
    --logo-metal-5:   #a3c8ef;
    --logo-metal-6:   #4a7fbf;
    --logo-bevel-1:   #3d6ca3;
    --logo-bevel-2:   #172a44;
    --logo-stroke:    #3d6ca3;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button, input, textarea, select { font: inherit; }

/* ─── Typography ─────────────────────────────────────────────── */
[lang="ar"] { font-family: 'Cairo', sans-serif; }
[lang="en"] { font-family: 'Poppins', sans-serif; }

body {
    background: var(--bg-body);
    color:      var(--text-primary);
    line-height: 1.75;
    transition: background-color var(--tr), color var(--tr);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; color: var(--text-primary); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-secondary); }

/* ─── Container ──────────────────────────────────────────────── */
.container {
    max-width: 1260px;
    margin:    0 auto;
    padding:   0 24px;
}

/* ─── Section helpers ────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-section); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-label {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.section-title  { margin-bottom: 14px; }
.section-subtitle { max-width: 600px; margin: 0 auto; color: var(--text-secondary); }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--tr);
}
.btn-gold {
    background: var(--gold);
    color: #fff;
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(185,149,85,.4); }
.btn-outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: .875rem; }

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; inset-inline-start: 0;
    width: 100%;
    height: var(--header-h);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-col);
    z-index: 1000;
    transition: background var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 16px;
}

/* RTL: logo on right, controls on left — matches original */
[dir="rtl"] .header-inner { flex-direction: row; }
[dir="ltr"] .header-inner { flex-direction: row-reverse; }

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-text   { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main   { font-size: .95rem; font-weight: 800; color: var(--text-primary); }
.logo-sub    { font-size: .65rem; font-weight: 500; color: var(--gold); letter-spacing: .06em; }

/* Nav */
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--tr), background var(--tr);
    white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--gold);
}
.main-nav a.active {
    position: relative;
}
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    inset-inline-start: 12px;
    inset-inline-end: 12px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

/* Header controls */
.header-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.dark-toggle {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--border-col);
    background: var(--bg-body);
    color: var(--text-primary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: all var(--tr);
}
.dark-toggle:hover { border-color: var(--gold); color: var(--gold); }

.lang-switcher {
    display: flex; align-items: center; gap: 0;
    border: 1.5px solid var(--border-col);
    border-radius: 99px;
    overflow: hidden;
    height: 36px;
}
.lang-badge {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold);
    color: #fff;
    font-size: .85rem; font-weight: 700;
    flex-shrink: 0;
    border-radius: 50%;
}
.lang-label {
    padding: 0 12px;
    font-size: .8rem; font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: color var(--tr);
    white-space: nowrap;
}
.lang-label:hover { color: var(--gold); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px; height: 36px;
    align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--tr);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
    display: none;
    position: absolute;
    top: var(--header-h); inset-inline-start: 0;
    width: 100%;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-col);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity var(--tr), transform var(--tr);
    pointer-events: none;
}
.mobile-nav.open {
    opacity: 1; transform: translateY(0); pointer-events: all;
}
.mobile-nav ul { padding: 0 24px; }
.mobile-nav li { border-bottom: 1px solid var(--border-col); }
.mobile-nav li:last-child { border-bottom: none; }
.mobile-nav a {
    display: block;
    padding: 13px 0;
    font-size: .95rem; font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--tr);
}
.mobile-nav a.active, .mobile-nav a:hover { color: var(--gold); }

.nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 999;
    transition: opacity var(--tr);
}
.nav-overlay.show { display: block; }

/* ─── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
    background: var(--bg-section);
    padding: 100px 0 56px;
    margin-top: var(--header-h);
    text-align: center;
    border-bottom: 1px solid var(--border-col);
}
.page-hero .section-label { margin-bottom: 10px; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p  { max-width: 600px; margin: 0 auto; }

/* ─── Home Hero ──────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: var(--header-h);
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        linear-gradient(to bottom, rgba(10,10,24,.72) 0%, rgba(10,10,28,.55) 60%, rgba(10,10,28,.72) 100%),
        url("/storage/imgs/layout/bg.jpeg") center center / cover no-repeat;
}
.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}
.hero-inner {
    display: flex;
    align-items: center;
    min-height: calc(100svh - var(--header-h));
    padding: 48px 0;
}
[dir="rtl"] .hero-inner { justify-content: flex-end; }
[dir="ltr"] .hero-inner { justify-content: flex-start; }

.hero-text {
    max-width: 600px;
}
[dir="rtl"] .hero-text { text-align: right; }
[dir="ltr"] .hero-text { text-align: left; }

.hero-label {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 22px;
}
.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,.80);
    margin-bottom: 36px;
    max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
[dir="rtl"] .hero-actions { justify-content: flex-end; }

/* ─── Stats ──────────────────────────────────────────────────── */
.stats-section { background: var(--navy); padding: 56px 0; }
[data-theme="dark"] .stats-section { background: #0b0b16; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,.08);
    border-radius: var(--radius);
    overflow: hidden;
}
.stat-item {
    background: var(--navy);
    padding: 36px 24px;
    text-align: center;
    transition: background var(--tr);
}
[data-theme="dark"] .stat-item { background: #0b0b16; }
.stat-item:hover { background: rgba(185,149,85,.08); }
.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: .9rem;
    color: rgba(255,255,255,.65);
}

/* ─── Why Us (home) ──────────────────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 28px;
}
.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow var(--tr), transform var(--tr);
}
.why-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.why-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--gold-light);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.6rem;
    color: var(--gold);
}
.why-card h4 { margin-bottom: 10px; }

/* ─── Service Cards (home overview) ─────────────────────────── */
.services-grid-home {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 28px;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: box-shadow var(--tr), transform var(--tr);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-icon {
    width: 68px; height: 68px;
    border-radius: var(--radius-sm);
    background: var(--gold);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
    font-size: 1.7rem;
    color: #fff;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p  { margin-bottom: 18px; }
.service-features { padding: 0; }
.service-features li {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 0;
    font-size: .9rem;
    color: var(--text-secondary);
}
.service-features li::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

/* ─── Services (full page) ───────────────────────────────────── */
.services-full-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 28px;
}

.feature-check-list { padding: 0; }
.feature-check-list li {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 0;
    font-size: .9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-col);
}
.feature-check-list li:last-child { border-bottom: none; }
.feature-check-list li .check {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem;
    flex-shrink: 0;
}

.why-grid-services {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 24px;
}
.why-card-sm {
    background: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
}
.why-card-sm .why-icon { margin-bottom: 14px; }
.why-card-sm h4 { margin-bottom: 8px; font-size: .95rem; }

/* ─── Projects Grid ──────────────────────────────────────────── */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}
.filter-btn {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-col);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: .9rem; font-weight: 600;
    cursor: pointer;
    transition: all var(--tr);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.project-card-wrap {
    transition: opacity .25s ease, transform .25s ease;
}
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--tr), transform var(--tr);
    height: 100%;
}
.project-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.project-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.project-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}
.project-card:hover .project-img img { transform: scale(1.06); }
.project-type-badge {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: .75rem; font-weight: 600;
    padding: 4px 12px;
    border-radius: 99px;
}
.project-body { padding: 22px; }
.project-category { font-size: .78rem; color: var(--gold); font-weight: 700; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; }
.project-body h3 { margin-bottom: 10px; font-size: 1.1rem; }
.project-body p  { font-size: .875rem; margin-bottom: 14px; color: var(--text-secondary); }
.project-meta {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 18px;
    border-top: 1px solid var(--border-col);
    padding-top: 14px;
}
.project-meta-item {
    display: flex; align-items: center; gap: 5px;
    font-size: .8rem; color: var(--text-muted);
}
.project-meta-item i { color: var(--gold); font-size: .85rem; }
.project-footer {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
}
.project-price { font-size: .85rem; font-weight: 600; color: var(--gold); }
.project-status-badge {
    display: inline-block;
    background: rgba(185,149,85,.15);
    color: var(--gold);
    font-size: .78rem; font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
}

/* ─── Project Show ───────────────────────────────────────────── */
.project-show-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}
[dir="rtl"] .project-show-layout { }
.project-show-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
}
.project-show-img img { width: 100%; height: 100%; object-fit: cover; }
.project-show-info {
    background: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.project-show-info h3 { margin-bottom: 20px; }
.project-info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-col);
    font-size: .9rem;
}
.project-info-row:last-child { border-bottom: none; }
.project-info-row .label { color: var(--text-muted); }
.project-info-row .value { font-weight: 600; color: var(--text-primary); }

/* ─── News Grid ──────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--tr), transform var(--tr);
    display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.news-img { height: 200px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.news-category { font-size: .75rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .07em; }
.news-date { font-size: .78rem; color: var(--text-muted); }
.news-body h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.news-body p  { font-size: .875rem; color: var(--text-secondary); flex: 1; margin-bottom: 16px; }
.news-link { font-size: .875rem; font-weight: 600; color: var(--gold); border: 1.5px solid var(--gold-border); padding: 8px 16px; border-radius: var(--radius-sm); display: inline-block; transition: all var(--tr); align-self: flex-start; }
.news-link:hover { background: var(--gold); color: #fff; }

/* News show */
.news-show-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.news-article img { width: 100%; border-radius: var(--radius); margin-bottom: 28px; max-height: 480px; object-fit: cover; }
.news-article .lead { font-size: 1.1rem; color: var(--text-primary); font-weight: 500; margin-bottom: 20px; line-height: 1.65; }
.news-article p { margin-bottom: 16px; }
.news-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.news-sidebar-card h4 { margin-bottom: 16px; font-size: 1rem; }
.sidebar-news-item { padding: 10px 0; border-bottom: 1px solid var(--border-col); }
.sidebar-news-item:last-child { border-bottom: none; }
.sidebar-news-item a { font-size: .875rem; color: var(--text-secondary); transition: color var(--tr); }
.sidebar-news-item a:hover { color: var(--gold); }
.sidebar-news-item .date { font-size: .75rem; color: var(--text-muted); margin-top: 3px; }

/* ─── Careers ────────────────────────────────────────────────── */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 24px;
}
.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: var(--radius);
    padding: 32px 22px;
    text-align: center;
}
.benefit-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 1.5px solid var(--border-col);
    background: var(--bg-body);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--gold);
}
.benefit-card h4 { margin-bottom: 6px; font-size: .95rem; }
.benefit-card p  { font-size: .85rem; }

.jobs-list { display: flex; flex-direction: column; gap: 14px; }
.job-item {
    background: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--tr);
}
.job-item.open, .job-item:hover { box-shadow: var(--shadow-md); }
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    gap: 12px;
}
.job-header-left { flex: 1; }
.job-header-left h3 { font-size: 1.05rem; margin-bottom: 6px; }
.job-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.job-tag {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .78rem; color: var(--text-muted);
}
.job-tag i { color: var(--gold); }
.job-chevron {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border-col);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform var(--tr), border-color var(--tr);
    color: var(--text-muted);
}
.job-item.open .job-chevron { transform: rotate(180deg); border-color: var(--gold); color: var(--gold); }
.job-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}
.job-body-inner { padding: 0 24px 24px; border-top: 1px solid var(--border-col); }
.job-body-inner p { margin: 16px 0 12px; }
.job-body-inner h4 { font-size: .9rem; color: var(--gold); margin-bottom: 10px; margin-top: 16px; }
.job-reqs { padding: 0; }
.job-reqs li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 6px 0;
    font-size: .875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-col);
}
.job-reqs li:last-child { border-bottom: none; }
.job-reqs li i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.job-apply-row { margin-top: 20px; display: flex; justify-content: flex-end; }

/* ─── Contact ────────────────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.contact-info-card {
    display: flex; align-items: flex-start; gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.contact-info-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    background: var(--gold-light);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-info-text h4 { font-size: .85rem; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-text p  { font-size: .9rem; color: var(--text-primary); }
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    height: 260px;
    border: 1px solid var(--border-col);
    margin-top: 20px;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: .875rem; font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 7px;
}
.form-label .req { color: var(--gold); margin-inline-start: 2px; }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-col);
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: .9rem;
    transition: border-color var(--tr), box-shadow var(--tr);
}
.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-light);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { appearance: none; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Error styles */
.form-control.is-invalid { border-color: #e74c3c; }
.invalid-feedback { font-size: .8rem; color: #e74c3c; margin-top: 5px; display: block; }

/* Flash */
.flash-success {
    background: rgba(46, 160, 67, .12);
    border: 1.5px solid rgba(46, 160, 67, .3);
    color: #1a7a35;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
    font-size: .9rem;
    transition: opacity .4s ease;
}
[data-theme="dark"] .flash-success { color: #5dbe82; }

/* ─── About Page ─────────────────────────────────────────────── */
.about-story-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-story-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.about-story-img img { width: 100%; height: 100%; object-fit: cover; }
.about-story-text h2 { margin-bottom: 20px; }
.about-story-text p  { margin-bottom: 14px; }

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.mv-card {
    background: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: var(--radius);
    padding: 36px 30px;
    border-inline-start: 4px solid var(--gold);
    box-shadow: var(--shadow-sm);
}
[dir="ltr"] .mv-card { border-left: 4px solid var(--gold); border-inline-start: none; }
.mv-card .section-label { margin-bottom: 8px; }
.mv-card h3 { margin-bottom: 14px; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 24px;
}
.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: var(--radius);
    padding: 30px 22px;
    text-align: center;
    transition: box-shadow var(--tr), transform var(--tr);
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.value-icon {
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 16px;
}
.value-card h4 { margin-bottom: 8px; }

.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    transition: box-shadow var(--tr), transform var(--tr);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.team-img { height: 220px; overflow: hidden; }
.team-img img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 18px; }
.team-body h4 { margin-bottom: 4px; font-size: .95rem; }
.team-body p  { font-size: .8rem; color: var(--gold); font-weight: 600; }

/* ─── CTA Banner ─────────────────────────────────────────────── */
.cta-section {
    background:
        linear-gradient(135deg, rgba(10,10,28,.88) 0%, rgba(10,10,28,.72) 100%),
        url('/storage/imgs/layout/sub_bg.jpeg');
    padding: 88px 0;
    text-align: center;
}
.cta-section .section-label { color: var(--gold); }
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── Related section ────────────────────────────────────────── */
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

/* ─── Back link ──────────────────────────────────────────────── */
.back-link {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--text-muted);
    font-size: .875rem; font-weight: 600;
    margin-bottom: 28px;
    transition: color var(--tr);
}
.back-link:hover { color: var(--gold); }

/* ─── Scroll animation ───────────────────────────────────────── */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}
[data-animate].animated { opacity: 1; transform: none; }

[data-animate][data-delay="100"] { transition-delay: .1s; }
[data-animate][data-delay="200"] { transition-delay: .2s; }
[data-animate][data-delay="300"] { transition-delay: .3s; }
[data-animate][data-delay="400"] { transition-delay: .4s; }
[data-animate][data-delay="500"] { transition-delay: .5s; }

/* ─── WhatsApp Float ─────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    inset-inline-end: 28px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center;
    z-index: 900;
    box-shadow: 0 6px 20px rgba(37,211,102,.45);
    transition: transform var(--tr), box-shadow var(--tr);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.55); }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--navy);
    padding: 72px 0 0;
    color: rgba(255,255,255,.75);
}
[data-theme="dark"] .site-footer { background: #0a0a16; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 40px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}
.footer-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1rem; font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.footer-brand p { font-size: .875rem; margin-bottom: 22px; color: rgba(255,255,255,.6); line-height: 1.7; }

.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.6);
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem;
    transition: all var(--tr);
}
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

.footer-col h4 {
    font-size: .9rem; font-weight: 700;
    color: #fff; margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color var(--tr); }
.footer-col ul a:hover { color: var(--gold); }

.footer-info-item {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 14px;
}
.footer-info-item i { color: var(--gold); margin-top: 2px; font-size: 1rem; flex-shrink: 0; }
.footer-info-item p { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.55; }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0;
    font-size: .82rem;
    color: rgba(255,255,255,.4);
    flex-wrap: wrap; gap: 10px;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: rgba(255,255,255,.4); transition: color var(--tr); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .why-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-full-grid, .services-grid-home { grid-template-columns: 1fr 1fr; }
    .why-grid-services { grid-template-columns: repeat(2, 1fr); }
    .project-show-layout { grid-template-columns: 1fr; }
    .news-show-layout { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .hamburger { display: flex; }
    .mobile-nav { display: block; }

    [dir="rtl"] .header-inner,
    [dir="ltr"] .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .logo-text { display: none; }

    .section { padding: 60px 0; }
    .page-hero { padding: 80px 0 40px; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero-title { font-size: 2.2rem; }
    .hero-actions { justify-content: center; }
    [dir="rtl"] .hero-text, [dir="ltr"] .hero-text { text-align: center; }

    .about-story-layout { grid-template-columns: 1fr; }
    .mission-vision-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .services-grid-home, .services-full-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .team-grid, .values-grid, .why-grid, .benefits-grid { grid-template-columns: 1fr 1fr; }
    .why-grid-services { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .team-grid, .values-grid, .why-grid, .benefits-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-number { font-size: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── Intro Splash ───────────────────────────────────────────── */
body.intro-active {
    overflow: hidden;
}

.intro-splash {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    animation: introFadeOut .55s ease forwards;
    animation-delay: 2.45s;
}
[data-theme="dark"] .intro-splash { background: #0b0b16; }

/* The splash background is always dark (navy, or near-black in dark mode) —
   unlike the header/footer it never sits on a light background — so its
   logo should always use the bright chrome variant, regardless of which
   site theme is active. */
.intro-splash {
    --logo-metal-1:   #eaf2fc;
    --logo-metal-2:   #bcd8f4;
    --logo-metal-3:   #8fbceb;
    --logo-metal-4:   #6aa3de;
    --logo-metal-5:   #a3c8ef;
    --logo-metal-6:   #4a7fbf;
    --logo-bevel-1:   #3d6ca3;
    --logo-bevel-2:   #172a44;
    --logo-stroke:    #3d6ca3;
}

@keyframes introFadeOut {
    to { opacity: 0; visibility: hidden; }
}

/* Homepage content stays hidden until the intro finishes + a short pause,
   then fades in. Only takes effect the first time in a session — see the
   inline script in app.blade.php. */
#mainContent.content-veil {
    opacity: 0;
}
#mainContent.content-reveal {
    opacity: 1;
    transition: opacity .6s ease;
}

.intro-logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

/* Rotating gradient portal ring behind the logo */
.intro-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    margin-top: -34px; /* nudge to roughly center over the svg, adjust to taste */
    transform: translate(-50%, -50%) rotate(0deg);
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--gold), transparent 30%, transparent 70%, var(--gold));
    opacity: 0;
    animation: ringSpin 2.6s linear infinite, ringFade .4s ease forwards;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}

@keyframes ringSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes ringFade {
    to { opacity: .85; }
}

/* One-shot outward pulse/ping */
.intro-ping {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 125px;
    height: 125px;
    margin-top: -34px;
    transform: translate(-50%, -50%) scale(.6);
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    opacity: 0;
    animation: pingOut 1.1s cubic-bezier(.2,.7,.3,1) .15s forwards;
}

@keyframes pingOut {
    0%   { transform: translate(-50%, -50%) scale(.6); opacity: .7; }
    100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}

/* Logo revealed through an expanding circular window */
.intro-reveal {
    clip-path: circle(0% at 50% 50%);
    animation: irisOpen .9s cubic-bezier(.25,1,.4,1) .25s forwards;
}

@keyframes irisOpen {
    to { clip-path: circle(75% at 50% 50%); }
}

.intro-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: .03em;
    opacity: 0;
    animation: introTextIn .6s ease forwards;
    animation-delay: .95s;
}

.intro-logo-text small {
    font-size: .68rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: .1em;
}

@keyframes introTextIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}