/* ═══════════════════════════════════════════════════════
   ميعاد المستقبل للمقاولات والإنشاءات — الأنماط الرئيسية
   ═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    --primary:       #1e3a8a;
    --primary-dark:  #162d6e;
    --primary-light: #2d4fa3;
    --accent:        #fbbf24;
    --accent-dark:   #f59e0b;

    --gray-50:   #f4f6f9;
    --gray-100:  #eaedf2;
    --gray-200:  #d4d9e3;
    --gray-300:  #b0b9cb;
    --gray-500:  #5a6478;
    --gray-600: #fbbf24;
    --gray-700:  #2c3547;
    --gray-800:  #1a2236;

    --secondary: #2c3547;

    --white:     #ffffff;
    --text:      #2c3547;

    --radius:    0.75rem;
    --radius-lg: 1.25rem;
    --shadow:    0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -1px rgba(0,0,0,.05);
    --shadow-md: 0 10px 24px -4px rgba(30,58,138,.12), 0 4px 8px -2px rgba(0,0,0,.06);
    --shadow-lg: 0 20px 40px -8px rgba(30,58,138,.18), 0 8px 16px -4px rgba(0,0,0,.08);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,.22);
    --transition: 0.25s ease;

    --nav-h:     68px;
    --island-top: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--gray-800); }
p  { color: var(--gray-600); }
a  { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul,ol { list-style: none; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Sections ── */
.section { padding: 5rem 0; }
.section-gray { background: var(--gray-50); }

/* ── Section Header ── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--primary); margin-bottom: .75rem; }
.section-header .subtitle { font-size: 1.1rem; color: var(--gray-600); max-width: 600px; margin: 0 auto; }
.divider {
    width: 60px; height: 4px; border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: .75rem auto 1rem;
}

/* ════════════════════════════════════════════
   TOP BAR — removed (merged into navbar)
════════════════════════════════════════════ */

/* ════════════════════════════════════════════
   ISLAND NAVBAR
   - عائم مع مسافة بسيطة من الأطراف
   - شفاف في الأعلى → يمتلئ أبيض عند النزول
   - لا يختفي أبداً
════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: var(--island-top);
    left: 20px;
    right: 20px;
    z-index: 1000;
    transition: top .4s cubic-bezier(.4,0,.2,1);
}

/* ── The pill / island container ── */
.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    padding: 0 1.5rem;
    border-radius: 18px;
    /* شفاف في الأعلى */
    background: rgba(22, 45, 110, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    transition: background .4s cubic-bezier(.4,0,.2,1),
    border-color .4s ease,
    box-shadow .4s ease,
    height .35s ease,
    border-radius .35s ease,
    padding .35s ease;
}

/* عند النزول: يمتلئ أبيض */
.navbar.scrolled .nav-inner {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(30, 58, 138, 0.08);
    box-shadow: 0 4px 24px rgba(30,58,138,.1), 0 1px 4px rgba(0,0,0,.06);
}

/* يتقلص قليلاً عند النزول */
.navbar.shrunk .nav-inner {
    height: 60px;
    border-radius: 16px;
    padding: 0 1.25rem;
}

/* ── Phone link inside navbar (merged from top bar) ── */
.nav-phone {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: rgba(255,255,255,.8);
    font-size: .78rem;
    font-weight: 500;
    padding: .3rem .7rem;
    border-radius: 8px;
    transition: color .3s, background .3s;
    white-space: nowrap;
}
.nav-phone svg { flex-shrink: 0; }
.nav-phone:hover {
    color: var(--white);
    background: rgba(255,255,255,.1);
}
.navbar.scrolled .nav-phone {
    color: var(--gray-600);
}
.navbar.scrolled .nav-phone:hover {
    color: var(--primary);
    background: rgba(30,58,138,.06);
}

/* ── Logo ── */
.logo { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }

.logo-img-wrap {
    width: 44px; height: 44px; flex-shrink: 0; position: relative;
}
.logo-img {
    width: 44px; height: 44px;
    border-radius: 10px;
    object-fit: contain;
    display: block;
    transition: transform .3s ease;
}
.logo:hover .logo-img { transform: scale(1.06); }

.logo-icon {
    width: 44px; height: 44px;
    background: var(--accent); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 900; color: var(--primary); flex-shrink: 0;
}
.logo-icon-fallback { display: none; }

.logo-text-wrap { line-height: 1.2; }
.logo-name-main {
    font-size: 1.05rem; font-weight: 800;
    color: var(--white);
    display: block;
    transition: color .4s;
}
.navbar.scrolled .logo-name-main { color: var(--primary); }

.logo-sub {
    font-size: .67rem;
    color: rgba(255,255,255,.6);
    display: block;
    transition: color .4s;
}
.navbar.scrolled .logo-sub { color: var(--gray-500); }

/* ── Desktop nav links ── */
.nav-links {
    display: flex; align-items: center; gap: .1rem;
    list-style: none;
}
.nav-links a {
    color: rgba(255,255,255,.82);
    font-size: .85rem;
    font-weight: 600;
    padding: .42rem .85rem;
    border-radius: 10px;
    white-space: nowrap;
    transition: color .25s, background .25s;
}
.nav-links a:hover {
    color: var(--white);
    background: rgba(255,255,255,.12);
}
.nav-links a.active {
    color: var(--white);
    background: var(--primary);
}

/* عند النزول — الروابط تصبح داكنة */
.navbar.scrolled .nav-links a {
    color: var(--gray-700);
}
.navbar.scrolled .nav-links a:hover {
    color: var(--primary);
    background: rgba(30,58,138,.07);
}
.navbar.scrolled .nav-links a.active {
    color: var(--white);
    background: var(--primary);
}

/* ── Right side group (phone + CTA) ── */
.nav-end {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

/* ── CTA Button ── */
.nav-cta {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--accent);
    color: var(--primary) !important;
    font-weight: 700;
    padding: .48rem 1.15rem;
    border-radius: 12px;
    font-size: .84rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .3s, transform .3s, box-shadow .3s;
    box-shadow: 0 2px 10px rgba(251,191,36,.35);
}
.nav-cta:hover {
    background: var(--accent-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(251,191,36,.5);
}

/* ── Hamburger (mobile) ── */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 38px; height: 38px;
    border-radius: 10px;
    align-items: center; justify-content: center;
    position: relative;
    transition: background .3s;
}
.menu-toggle:hover { background: rgba(255,255,255,.12); }
.navbar.scrolled .menu-toggle:hover { background: rgba(30,58,138,.07); }

.hb {
    display: block; height: 2px; background: var(--white);
    border-radius: 2px; transition: all .3s; position: absolute; right: 9px;
}
.hb1 { top: 13px; width: 20px; }
.hb2 { top: 18px; width: 14px; }
.hb3 { top: 23px; width: 17px; }
.navbar.scrolled .hb { background: var(--primary); }

/* ════════════════════════════════════════════
   SIDEBAR (mobile)
════════════════════════════════════════════ */
.sb-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0; visibility: hidden;
    transition: opacity .35s, visibility .35s;
}
.sb-overlay.open { opacity: 1; visibility: visible; }

.sidebar {
    position: fixed; top: 0; right: -310px;
    width: 290px; max-width: 82vw; height: 100vh;
    background: var(--white); z-index: 2000;
    transition: right .4s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column; overflow-y: auto;
    border-radius: 0 20px 20px 0;
    box-shadow: var(--shadow-xl);
}
.sidebar.open { right: 0; }

.sb-close {
    position: absolute; top: .9rem; left: .9rem;
    background: var(--gray-100); border: none;
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--gray-700);
    transition: all .3s;
}
.sb-close:hover { background: var(--primary); color: var(--white); }

.sb-head {
    text-align: center;
    padding: 2.2rem 1.3rem 1.1rem;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}
.sb-logo-wrap {
    width: 70px; height: 70px; margin: 0 auto .6rem;
    background: var(--gray-100); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    padding: 5px; border: 1px solid var(--gray-200);
}
.sb-logo-img { width: 60px; height: 60px; object-fit: contain; border-radius: 12px; display: block; }

.sb-tagline { font-size: .95rem; font-weight: 800; color: var(--primary); margin-bottom: .15rem; }
.sb-sub     { font-size: .72rem; color: var(--gray-500); }

.sb-nav { flex: 1; padding: .6rem 0; }
.sb-link {
    display: flex; align-items: center; gap: .7rem;
    padding: .7rem 1.1rem; color: var(--gray-700);
    font-weight: 600; font-size: .9rem;
    margin: .15rem .5rem; border-radius: 10px;
    transition: all .25s;
}
.sb-link svg { flex-shrink: 0; width: 19px; height: 19px; color: var(--gray-500); transition: color .25s; }
.sb-link:hover { background: var(--gray-50); color: var(--primary); }
.sb-link:hover svg, .sb-link.active svg { color: var(--primary); }
.sb-link.active { background: rgba(30,58,138,.07); color: var(--primary); }

.sb-foot {
    padding: .9rem 1.1rem 1.8rem;
    border-top: 1px solid var(--gray-100);
}
.sb-cta {
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .78rem; background: var(--accent); color: var(--primary);
    border-radius: 12px; font-weight: 700; font-size: .9rem;
    margin-bottom: .6rem; transition: background .3s;
}
.sb-cta:hover { background: var(--accent-dark); }
.sb-phone {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .6rem; background: var(--gray-50); color: var(--gray-700);
    border-radius: 12px; font-weight: 600; font-size: .82rem;
    transition: all .3s;
}
.sb-phone:hover { background: var(--gray-100); color: var(--primary); }

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    padding-top: 80px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(22,45,110,.85) 0%, rgba(30,58,138,.68) 60%, rgba(251,191,36,.12) 100%);
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    color: var(--white); padding: 2rem 1.5rem;
    max-width: 900px; margin: 0 auto;
}
.hero-content h1 {
    font-size: clamp(2rem, 6vw, 4rem); font-weight: 900;
    margin-bottom: 1.25rem; text-shadow: 0 2px 20px rgb(255, 255, 255); line-height: 1.2;
}
.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.3rem); opacity: .9;
    margin-bottom: 2rem; max-width: 700px; margin-left: auto; margin-right: auto;
}
.hero-features { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2.5rem; }
.hero-feature {
    display: flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
    padding: .5rem 1rem; border-radius: 50px;
    border: 1px solid rgba(255,255,255,.2); font-size: .9rem;
}
.hero-feature svg { color: var(--accent); flex-shrink: 0; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-indicator-inner { width: 28px; height: 44px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; display: flex; justify-content: center; padding-top: 6px; }
.scroll-indicator-dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; animation: scrollDot 2s infinite; }
@keyframes scrollDot { 0%,100%{transform:translateY(0);opacity:1} 50%{transform:translateY(12px);opacity:.3} }

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn-primary {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--accent); color: var(--primary);
    font-weight: 700; padding: .8rem 2rem; border-radius: 10px;
    font-size: .95rem; transition: all var(--transition); border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(251,191,36,.4); }
.btn-secondary {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.12); color: var(--white);
    font-weight: 600; padding: .8rem 2rem; border-radius: 10px; font-size: .95rem;
    border: 2px solid rgba(255,255,255,.4); backdrop-filter: blur(8px); transition: all var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.7); }
.btn-outline {
    display: inline-flex; align-items: center; gap: .5rem;
    background: transparent; color: var(--primary); font-weight: 700;
    padding: .75rem 2rem; border-radius: 10px; font-size: .95rem;
    border: 2px solid var(--primary); transition: all var(--transition);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--white); color: var(--primary); font-weight: 700;
    padding: .8rem 2rem; border-radius: 10px; font-size: .95rem; transition: all var(--transition);
}
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px); }

/* ════════════════════════════════════════════
   PAGE HEADER
════════════════════════════════════════════ */
.page-header {
    position: relative;
    padding: calc(var(--nav-h) + var(--island-top) + 3.5rem) 0 3.5rem;
    text-align: center; background: var(--primary); overflow: hidden;
}
.page-header-bg { position: absolute; inset: 0; }
.page-header-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-header-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(22,45,110,.9), rgba(30,58,138,.72)); }
.page-header h1 { position: relative; z-index: 2; font-size: clamp(1.75rem,5vw,3rem); color: var(--white); margin-bottom: .5rem; }
.page-header p   { position: relative; z-index: 2; color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 1rem; }
.breadcrumb { position: relative; z-index: 2; display: flex; align-items: center; gap: .5rem; justify-content: center; font-size: .85rem; color: rgba(255,255,255,.7); flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span:last-child { color: var(--accent); }

/* ════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.service-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 2rem; border: 1px solid var(--gray-200);
    transition: all var(--transition); border-top: 4px solid var(--accent);
    box-shadow: var(--shadow);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.service-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.service-icon svg { width: 32px; height: 32px; color: var(--white); stroke: var(--white); }
.service-card h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: .6rem; }
.service-card p { font-size: .95rem; line-height: 1.7; }
.service-card .read-more { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent); font-weight: 600; margin-top: 1rem; font-size: .9rem; transition: gap var(--transition); }
.service-card .read-more:hover { gap: .6rem; }

/* ════════════════════════════════════════════
   WHY US
════════════════════════════════════════════ */
.why-us-section { background: var(--primary); color: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; }
.why-item { text-align: center; }
.why-icon { width: 72px; height: 72px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.why-icon svg { width: 36px; height: 36px; color: var(--primary); }
.why-item h3 { font-size: 1.2rem; color: var(--white); margin-bottom: .5rem; }
.why-item p  { opacity: .85; font-size: .95rem; }

/* ════════════════════════════════════════════
   STATS
════════════════════════════════════════════ */
.stats-section { background: var(--accent); padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 2rem; text-align: center; }
.stat-number { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; color: var(--primary); line-height: 1; }
.stat-label  { color: var(--primary); opacity: .75; font-weight: 500; margin-top: .4rem; }

/* ════════════════════════════════════════════
   PROJECTS
════════════════════════════════════════════ */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.project-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: transform var(--transition), box-shadow var(--transition); }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.project-img { position: relative; height: 240px; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-img img { transform: scale(1.08); }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,45,110,.88) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; }
.project-category { color: var(--accent); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem; }
.project-title { color: var(--white); font-size: 1.1rem; font-weight: 700; }

/* ════════════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════════════ */
.testimonials-section { background: var(--gray-50); padding: 5rem 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.testimonial-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--gray-200); transition: box-shadow var(--transition); }
.testimonial-card:hover { box-shadow: var(--shadow-xl); }
.stars { display: flex; gap: .2rem; margin-bottom: 1rem; }
.stars .star { color: var(--accent); font-size: 1.1rem; }
.testimonial-text { color: var(--gray-700); font-style: italic; margin-bottom: 1.25rem; line-height: 1.8; }
.testimonial-author { border-top: 1px solid var(--gray-200); padding-top: 1rem; }
.testimonial-author .name { font-weight: 700; color: var(--primary); }
.testimonial-author .role { font-size: .85rem; color: var(--gray-600); }

/* ════════════════════════════════════════════
   FAQ
════════════════════════════════════════════ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--transition); }
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; background: var(--white); border: none; cursor: pointer; font-family: 'Tajawal', sans-serif; font-size: 1rem; font-weight: 600; color: var(--gray-800); text-align: right; gap: 1rem; transition: background var(--transition); }
.faq-question:hover, .faq-question.open { background: var(--gray-50); color: var(--primary); }
.faq-icon { width: 26px; height: 26px; background: var(--gray-200); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; font-weight: 700; transition: all var(--transition); }
.faq-question.open .faq-icon { background: var(--primary); color: var(--white); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s ease; }
.faq-answer.open { max-height: 500px; padding: 0 1.5rem 1.25rem; }
.faq-answer p, .faq-answer div { color: var(--gray-600); line-height: 1.8; }

/* ════════════════════════════════════════════
   FEATURES
════════════════════════════════════════════ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card { background: var(--white); padding: 1.75rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--gray-200); transition: all var(--transition); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.feature-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.feature-icon svg { width: 26px; height: 26px; color: var(--white); }
.feature-card h3 { color: var(--primary); margin-bottom: .5rem; font-size: 1.05rem; }
.feature-card p  { font-size: .9rem; }

/* ════════════════════════════════════════════
   CTA
════════════════════════════════════════════ */
.cta-section { background: var(--accent); padding: 4.5rem 0; text-align: center; }
.cta-section h2 { color: var(--primary); font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: .75rem; }
.cta-section p  { color: rgba(30,58,138,.78); max-width: 600px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta-buttons .btn-primary-dark { background: var(--primary); color: var(--white); }
.cta-buttons .btn-primary-dark:hover { background: var(--primary-dark); }

/* ════════════════════════════════════════════
   GALLERY
════════════════════════════════════════════ */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gallery-grid .gallery-item { border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery-grid .gallery-item:first-child { grid-column: span 2; }
.gallery-item img { width: 100%; height: 280px; object-fit: cover; transition: transform .5s ease; }
.gallery-item:first-child img { height: 360px; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(22,45,110,.6); opacity: 0; display: flex; align-items: center; justify-content: center; transition: opacity var(--transition); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-weight: 700; }

/* ════════════════════════════════════════════
   BLOG
════════════════════════════════════════════ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--gray-200); transition: all var(--transition); }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.blog-img { height: 210px; overflow: hidden; position: relative; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-img img { transform: scale(1.06); }
.blog-category { position: absolute; top: 1rem; right: 1rem; background: var(--accent); color: var(--primary); font-size: .75rem; font-weight: 700; padding: .3rem .7rem; border-radius: 50px; }
.blog-content { padding: 1.5rem; }
.blog-meta { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.blog-meta span { font-size: .8rem; color: var(--gray-500); display: flex; align-items: center; gap: .25rem; }
.blog-content h3 { font-size: 1.05rem; color: var(--gray-800); margin-bottom: .6rem; line-height: 1.5; }
.blog-content p  { font-size: .9rem; color: var(--gray-600); margin-bottom: .9rem; }
.blog-link { color: var(--primary); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; transition: gap var(--transition); }
.blog-link:hover { gap: .6rem; color: var(--accent); }

/* ════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.contact-info { background: var(--primary); color: var(--white); padding: 2.5rem; border-radius: var(--radius-lg); }
.contact-info h3 { color: var(--accent); font-size: 1.4rem; margin-bottom: 1.5rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.75rem; align-items: flex-start; }
.contact-item-icon { width: 44px; height: 44px; background: rgba(255,255,255,.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-icon svg { width: 22px; height: 22px; color: var(--accent); }
.contact-item h4 { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: .2rem; }
.contact-item p, .contact-item a { color: var(--white); font-size: .95rem; }
.contact-item a:hover { color: var(--accent); }

.form-section { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-xl); border-top: 4px solid var(--accent); }
.form-title { font-size: 1.4rem; color: var(--primary); margin-bottom: .25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; color: var(--gray-700); margin-bottom: .4rem; }
.form-group label .req { color: #ef4444; margin-right: .2rem; }
.form-control { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--gray-200); border-radius: 8px; font-family: 'Tajawal', sans-serif; font-size: .95rem; color: var(--gray-800); background: var(--gray-50); transition: border-color var(--transition), box-shadow var(--transition); outline: none; }
.form-control:focus { border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px rgba(30,58,138,.1); }
.form-control::placeholder { color: var(--gray-300); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { width: 100%; padding: 1rem; background: var(--accent); color: var(--primary); font-family: 'Tajawal', sans-serif; font-size: 1.05rem; font-weight: 700; border: none; border-radius: 10px; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; justify-content: center; gap: .5rem; }
.form-submit:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(251,191,36,.4); }
.form-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.quote-info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.quote-info-card { background: var(--primary); color: var(--white); padding: 1.5rem; border-radius: var(--radius); text-align: center; }
.quote-info-card svg { color: var(--accent); margin-bottom: .75rem; }
.quote-info-card h4 { font-size: 1rem; margin-bottom: .3rem; }
.quote-info-card p  { opacity: .8; font-size: .85rem; }

/* ════════════════════════════════════════════
   EQUIPMENT
════════════════════════════════════════════ */
.equipment-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.equipment-split .equipment-images { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.equipment-images img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.equipment-images img:nth-child(2) { margin-top: 2rem; }
.equipment-images img:nth-child(4) { margin-top: -2rem; }
.equipment-list { list-style: none; margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: .75rem; }
.equipment-list li { display: flex; align-items: center; gap: .75rem; color: var(--gray-700); }
.equipment-list li svg { color: var(--accent); flex-shrink: 0; width: 22px; height: 22px; }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer { background: #181f2e; color: var(--white); }
.footer-content { padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }

.footer h4 {
    color: var(--accent);
    margin-bottom: 1.25rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 1rem;
}

.footer-about p { color: rgba(255,255,255,.65); font-size: .9rem; line-height: 1.85; margin-top: .85rem; }

.footer-logo { display: flex; align-items: center; gap: .85rem; }
.footer-logo-img-wrap {
    width: 54px; height: 54px;
    background: rgba(255,255,255,.07);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    padding: 4px; flex-shrink: 0;
}
.footer-logo-img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; display: block; }
.footer-logo .logo-text-wrap { line-height: 1.25; }
.footer-logo .logo-name { font-size: 1rem; font-weight: 800; color: var(--white); display: block; }
.footer-logo .logo-sub  { font-size: .68rem; color: rgba(255,255,255,.48); }

.social-links { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social-link { width: 36px; height: 36px; background: rgba(255,255,255,.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: all var(--transition); color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.1); }
.social-link:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); transform: translateY(-2px); }

.footer-links li { margin-bottom: .55rem; }
.footer-links a {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    display: flex; align-items: center; gap: .4rem;
    transition: color .25s, padding-right .25s;
}
.footer-links a svg { color: var(--accent); flex-shrink: 0; transition: transform .25s; }
.footer-links a:hover { color: rgba(255,255,255,.95); padding-right: .3rem; }
.footer-links a:hover svg { transform: translateX(-2px); }

.footer-contact-item { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; }
.footer-contact-item svg { color: var(--accent); flex-shrink: 0; width: 18px; height: 18px; margin-top: .15rem; }
.footer-contact-item span, .footer-contact-item a { color: rgba(255,255,255,.65); font-size: .9rem; }
.footer-contact-item a:hover { color: var(--accent); }

.newsletter {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 2rem; margin-top: 2rem;
}
.newsletter-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
}
.newsletter-text h4 { color: var(--white) !important; border: none !important; padding: 0 !important; margin-bottom: .3rem !important; font-size: 1.05rem !important; }
.newsletter-text p  { color: rgba(255,255,255,.55); font-size: .88rem; margin: 0; }
.newsletter-form { display: flex; gap: .5rem; min-width: 360px; flex: 1; }
.newsletter-input {
    flex: 1; padding: .75rem 1rem; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12); font-family: 'Tajawal', sans-serif;
    font-size: .93rem; background: rgba(255,255,255,.07); color: var(--white); outline: none;
    transition: background .25s, border-color .25s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.32); }
.newsletter-input:focus { background: rgba(255,255,255,.11); border-color: var(--accent); }
.newsletter-btn {
    display: flex; align-items: center; gap: .4rem;
    background: var(--accent); color: var(--primary); font-weight: 700;
    padding: .75rem 1.4rem; border-radius: 8px; border: none;
    cursor: pointer; font-family: 'Tajawal', sans-serif; font-size: .9rem;
    transition: background .25s, transform .25s; white-space: nowrap;
}
.newsletter-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

.footer-bottom { background: rgba(0,0,0,.3); padding: 1.25rem 0; }
.footer-bottom-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: rgba(255,255,255,.45); font-size: .82rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,.42); font-size: .8rem; transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--accent); }

/* ════════════════════════════════════════════
   FLOATING BUTTONS
════════════════════════════════════════════ */
.floating-btns { position: fixed; bottom: 2rem; left: 1.5rem; z-index: 900; display: flex; flex-direction: column; gap: .75rem; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,.2); transition: all var(--transition); border: none; cursor: pointer; }
.float-btn.whatsapp  { background: #25d366; color: var(--white); }
.float-btn.whatsapp:hover  { background: #1fb855; transform: scale(1.1); }
.float-btn.phone-call { background: var(--primary); color: var(--white); }
.float-btn.phone-call:hover { background: var(--primary-dark); transform: scale(1.1); }
.float-btn.scroll-top { background: var(--accent); color: var(--primary); }
.float-btn.scroll-top:hover { background: var(--accent-dark); transform: scale(1.1); }

/* ════════════════════════════════════════════
   TOAST
════════════════════════════════════════════ */
.toast-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; align-items: center; justify-content: center; }
.toast-overlay.show { display: flex; animation: fadeIn .3s ease; }
.toast-box { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; max-width: 400px; width: 90%; text-align: center; box-shadow: var(--shadow-xl); animation: slideUp .3s ease; }
.toast-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.toast-icon.success { background: #dcfce7; color: #16a34a; }
.toast-icon.error   { background: #fee2e2; color: #dc2626; }
.toast-box h3 { font-size: 1.2rem; color: var(--gray-800); margin-bottom: .5rem; }
.toast-box p  { color: var(--gray-600); font-size: .95rem; margin-bottom: 1.5rem; }
.toast-close { background: var(--accent); color: var(--primary); font-weight: 700; padding: .6rem 2rem; border-radius: 8px; border: none; cursor: pointer; font-family: 'Tajawal', sans-serif; font-size: .95rem; }
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }
@keyframes slideUp { from{transform:translateY(30px);opacity:0} to{transform:translateY(0);opacity:1} }

/* ════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════ */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.rv.in { opacity: 1; transform: translateY(0); }
.rv.d1 { transition-delay: .1s; }
.rv.d2 { transition-delay: .2s; }
.rv.d3 { transition-delay: .3s; }

/* ════════════════════════════════════════════
   BLOG DETAIL
════════════════════════════════════════════ */
.post-detail h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); color: var(--primary); margin-bottom: 1rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.post-meta span { font-size: .87rem; color: var(--gray-500); display: flex; align-items: center; gap: .3rem; }
.post-featured-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; max-height: 480px; }
.post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.post-body { line-height: 1.9; color: var(--gray-700); }
.post-body h2,h3,h4 { color: var(--primary); margin: 1.5rem 0 .75rem; }
.post-body p { margin-bottom: 1rem; }
.post-body ul,ol { padding-right: 1.5rem; margin-bottom: 1rem; }
.post-body li { margin-bottom: .5rem; }
.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.post-tag { background: var(--gray-100); color: var(--gray-600); padding: .3rem .75rem; border-radius: 50px; font-size: .82rem; transition: all var(--transition); }
.post-tag:hover { background: var(--primary); color: var(--white); }
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.blog-sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: calc(var(--nav-h) + var(--island-top) + 1rem); }
.sidebar-widget { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.sidebar-widget h3 { color: var(--primary); font-size: 1rem; border-bottom: 2px solid var(--accent); padding-bottom: .5rem; margin-bottom: 1rem; }
.sidebar-post { display: flex; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--gray-100); }
.sidebar-post:last-child { border: none; }
.sidebar-post:hover { color: var(--primary); }
.sidebar-post img { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.sidebar-post-info h4 { font-size: .85rem; font-weight: 600; color: var(--gray-800); line-height: 1.4; }
.sidebar-post-info span { font-size: .75rem; color: var(--gray-500); }
.share-buttons { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 2rem; border-top: 1px solid var(--gray-200); padding-top: 1.25rem; }
.share-buttons span { font-size: .9rem; color: var(--gray-600); font-weight: 600; }
.share-btn { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: all var(--transition); border: none; cursor: pointer; }
.share-btn.twitter  { background: #1da1f2; color: var(--white); }
.share-btn.facebook { background: #1877f2; color: var(--white); }
.share-btn.whatsapp { background: #25d366; color: var(--white); }
.share-btn.linkedin { background: #0a66c2; color: var(--white); }
.share-btn.copy     { background: var(--gray-200); color: var(--gray-700); }
.share-btn:hover { transform: translateY(-2px); }

/* ════════════════════════════════════════════
   EMPTY STATE / PAGINATION
════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 5rem 2rem; }
.empty-state svg { color: var(--gray-300); width: 80px; height: 80px; margin: 0 auto 1.5rem; }
.empty-state h3 { color: var(--gray-600); font-size: 1.3rem; }
.empty-state p  { color: var(--gray-500); margin-top: .5rem; }

.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; font-size: .9rem; transition: all var(--transition); border: 1px solid var(--gray-200); }
.pagination a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination .active, .pagination span.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .equipment-split { grid-template-columns: 1fr; gap: 2rem; }
    .newsletter-inner { flex-direction: column; text-align: center; }
    .newsletter-form { min-width: unset; width: 100%; }
}
@media (max-width: 1024px) {
    .nav-links, .nav-cta, .nav-phone { display: none; }
    .menu-toggle { display: flex; }
}
@media (max-width: 768px) {
    :root { --nav-h: 58px; --island-top: 8px; }
    .navbar { left: 8px; right: 8px; }
    .nav-inner { border-radius: 14px; }
    .hero-content h1 { font-size: 1.8rem; }
    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .quote-info-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-grid .gallery-item:first-child { grid-column: span 1; }
    .newsletter-form { flex-direction: column; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .section { padding: 3rem 0; }
}
@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .cta-buttons  { flex-direction: column; align-items: center; }
    .why-grid     { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
}
