@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;600;700&display=swap');

:root {
    --main: #0B2F4A;         /* Deep industrial blue */
    --main-light: #0f4266;   /* Lighter blue highlight */
    --main-dark: #081f31;    /* Very dark steel blue */
    --soft-bg: #f4f7fb;      /* Light blueish background */

    --soft2: #d7dde5;
    --text: #0f172a;
    --muted: #6b7280;
    --white: #ffffff;

    --card-bg: #ffffff;
    --card-border: #cfd6df;
}


*{box-sizing:border-box}
body{
  margin:0;
  font-family:"Tajawal",sans-serif;
  background:var(--bg);
  color:#111827;
}

.container{width:min(1150px,94%);margin:auto}

header{
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  position:sticky;top:0;z-index:50;
}
.navbar{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;
}
.logo{
  font-weight:800;font-size:1.4rem;color:var(--dark);
}
.logo span{color:var(--main)}

nav a{
  text-decoration:none;color:var(--dark);
  margin-inline:8px;font-weight:600;
}
nav a:hover{color:var(--main)}
.lang a{font-size:.95rem;color:var(--muted)}

.hero{
  background:linear-gradient(120deg,#081b3a, #0b5ed7);
  color:#fff;padding:70px 0;
}
.hero-grid{
  display:grid;grid-template-columns:1.1fr .9fr;gap:30px;align-items:center;
}
.hero h1{font-size:2.1rem;margin:0 0 10px}
.hero p{opacity:.9;font-size:1.05rem;line-height:1.8}
.hero .btn{
  display:inline-block;background:#fff;color:#0b5ed7;
  padding:10px 16px;border-radius:10px;font-weight:700;text-decoration:none;
  margin-top:12px;
}

.hero-card{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15);
  padding:14px;border-radius:16px;
}
.hero-card img{width:100%;border-radius:12px;display:block}

.section{padding:50px 0}
.section h2{font-size:1.6rem;margin-bottom:10px;color:var(--dark)}
.section p.lead{color:var(--muted);line-height:1.9}

.cards{
  display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px;
}
.card{
  background:var(--card);border-radius:16px;padding:14px;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
  border:1px solid #eef2f7;
}
.card img{width:100%;border-radius:12px;height:180px;object-fit:cover}
.card h3{margin:10px 0 6px;font-size:1.1rem}
.card p{color:var(--muted);line-height:1.7;font-size:.98rem}

.grid-2{
  display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center;
}
ul.features{padding:0;list-style:none}
ul.features li{
  background:#fff;border:1px dashed #e5e7eb;
  padding:10px 12px;border-radius:10px;margin-bottom:8px;
}

footer{
  background:#0b1220;color:#cbd5e1;padding:18px 0;
}
footer a{color:#fff;text-decoration:none}

@media (max-width:900px){
  .hero-grid,.grid-2{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr 1fr}
}
@media (max-width:520px){
  .cards{grid-template-columns:1fr}
}

.hero-section {
    min-height: 520px;
}

.hero-img img {
    transition: transform .4s;
}

.hero-img img:hover {
    transform: scale(1.03);
}

/* زر رئيسي */
.btn-main:hover {
    background: var(--main-light) !important;
    color: white !important;
}

/* في الموبايل */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 50px 0;
    }

    .hero-text h1 {
        font-size: 1.9rem !important;
    }

    .hero-text p {
        font-size: 1rem !important;
    }
}
/* Cards Fix */
.service-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    padding: 15px;
    text-align: center;
    transition: .25s;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Image Box */
.service-card .img-box {
    width: 100%;
    height: 200px;      /* 🔥 أقصى ارتفاع للصورة */
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* Image inside service box */
.service-card .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* 🔥 يملىء الإطار بدون ما يطيح */
    display: block;
}

/* Text */
.service-card h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-card p {
    font-size: .95rem;
    opacity: .85;
}
/* About Page */
.about-img-box {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.about-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 يمنع الصورة من التمدد أو الإفساد */
    display: block;
}

@media (max-width: 768px) {
    .about-img-box {
        height: 260px;
    }
}
/* ==== HERO Button ==== */
.btn-main-light {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 1.15rem;
    transition: .25s;
}
.btn-main-light:hover {
    background: #e2e8f0;
}

/* ===== Card Hover Animation ===== */
.shadow-hover {
    transition: .3s ease;
}
.shadow-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18) !important;
}

/* ===== Service Card ===== */
.service-card {
    background: #fff;
    border-radius: 14px;
    padding: 15px;
    text-align: center;
    transition: .25s;
}
.service-card:hover h5 {
    color: #0055aa;
}

/* ===== Service Images ===== */
.service-card .img-box {
    width: 100%;
    height: 210px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
}
.service-card .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Headings ===== */
.section h2 {
    font-size: 2rem;
    font-weight: 800;
}
/* ====== FIXED FOOTER SMART LAYOUT ====== */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}



