/* =======================================================
   Alpha Engineering KSA - Main Stylesheet
   ======================================================= */

/* -------- Root & Base -------- */
:root{
  --saudi-green:#006C35;
  --deep-green:#024e27;
  --ink:#0e1320;
  --muted:#6b7280;
  --radius:18px;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,sans-serif;color:var(--ink);background:#f9fafb;}
img{max-width:100%;display:block;border-radius:var(--radius);}
a{text-decoration:none;color:var(--saudi-green);transition:.2s;}
a:hover{color:var(--deep-green);}
ul{padding-left:18px;}
p{line-height:1.6;}
.container{max-width:1200px;margin:0 auto;padding:0 20px;}
.section{padding:60px 0;}
.center{text-align:center;}
.muted{color:var(--muted);}

/* -------- Buttons -------- */
.btn,.btn-outline{
  display:inline-block;
  padding:10px 20px;
  border-radius:10px;
  font-weight:600;
  transition:.3s;
}
.btn{
  background:linear-gradient(135deg,var(--saudi-green),var(--deep-green));
  color:#fff;
}
.btn:hover{opacity:.9;}
.btn-outline{
  border:2px solid var(--saudi-green);
  color:var(--saudi-green);
}
.btn-outline:hover{
  background:var(--saudi-green);
  color:#fff;
}

/* -------- Header & Navigation -------- */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background:#ffffffcc;
  backdrop-filter:blur(8px);
  border-bottom:1px solid #e9eef5;
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:18px;
  color:var(--ink);
}
.brand img{width:48px;height:auto;}
.menu{display:flex;gap:18px;align-items:center;}
.menu a{color:var(--ink);font-weight:500;}
.menu a:hover{color:var(--saudi-green);}
.burger{display:none;border:0;background:transparent;font-size:28px;}

/* Mobile menu - hidden by default */
.header .mobile{
  display:none !important;
  position:absolute;
  left:0; right:0; top:60px;
  background:#fff;
  border-bottom:1px solid #e9eef5;
  z-index:45;
}
.header .mobile a{
  display:block;
  padding:14px 24px;
  border-top:1px solid #f0f3f9;
  color:#0e1320;
}

/* Responsive Navigation */
@media (max-width:900px){
  .menu{display:none;}
  .burger{display:block;}
  .header.open .mobile{display:block !important;}
}

/* -------- Hero Section -------- */
.hero{
  background:url("../img/hero.jpg") center/cover no-repeat;
  color:#fff;
  padding:100px 0;
  position:relative;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.55);
}
.hero .inner{position:relative;z-index:1;}
.badge{
  display:inline-block;
  background:var(--saudi-green);
  padding:5px 12px;
  border-radius:999px;
  font-size:14px;
  color:#fff;
  margin-bottom:10px;
}
.hero h1{font-size:clamp(28px,5vw,44px);margin:0 0 12px;}
.hero p{max-width:700px;}
.hero .cta{margin-top:20px;display:flex;gap:12px;flex-wrap:wrap;}

/* -------- Gradient Cards -------- */
.card{
  position:relative;
  border-radius:var(--radius);
  padding:28px 24px;
  color:#fff;
  overflow:hidden;
  transition:transform .3s ease,box-shadow .3s ease;
  box-shadow:0 8px 20px rgba(0,0,0,.15);
}
.card.workshop{background:linear-gradient(135deg,#1e3c72,#2a5298);} /* blue */
.card.crane{background:linear-gradient(135deg,#006c35,#00a86b);}   /* green */
.card.maintenance{background:linear-gradient(135deg,#ff8c00,#fcb045);} /* orange */
.card.why{background:linear-gradient(135deg,#1f1c2c,#928dab);}     /* grey-blue */

.card:hover{transform:translateY(-8px);box-shadow:0 14px 28px rgba(0,0,0,.25);}
.card h3{color:#fff;margin-bottom:10px;}
.card p,.card ul li{color:#f5f7fa;}
.pills{margin-top:10px;display:flex;flex-wrap:wrap;gap:8px;}
.card .pill{
  background:rgba(255,255,255,.15);
  color:#fff;
  border:1px solid rgba(255,255,255,.2);
  padding:6px 12px;
  border-radius:999px;
  font-size:13px;
}
.card::before{
  content:"";
  position:absolute;top:-40px;right:-40px;
  width:120px;height:120px;
  background:rgba(255,255,255,.08);
  border-radius:50%;
}
.card.why ul li strong{color:#fff;}
.card a{color:#fff;}
.card a:hover{opacity:.9;text-decoration:underline;}

/* -------- Grid Layouts -------- */
.grid{display:grid;gap:24px;}
.cols-2{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));}
.features{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));}

/* -------- Forms -------- */
.input{
  width:100%;
  padding:10px 14px;
  border-radius:8px;
  border:1px solid #d1d5db;
  margin-bottom:12px;
  font-size:15px;
}
.input:focus{outline:2px solid var(--saudi-green);}
.form-row{display:flex;gap:12px;flex-wrap:wrap;}

/* -------- Footer -------- */
.footer{
  background:#0e1320;
  color:#ccc;
  padding:40px 0;
}
.footer .brand{color:#fff;font-weight:700;font-size:18px;}
.footer .brand img{width:42px;}
.footer a{color:#ccc;}
.footer a:hover{color:#fff;}
.footer .copy{text-align:center;border-top:1px solid #2a2f3a;padding-top:12px;margin-top:20px;font-size:14px;}

/* ---------- Footer Grid Fix ---------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  max-width: 400px;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 10px;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    flex-direction: column;
    gap: 20px;
  }
}

/* Solid secondary button for dark/hero backgrounds */
.btn-light{
  background:#ffffff;
  color:var(--ink);
  border:2px solid rgba(255,255,255,.2);
}
.btn-light:hover{
  background:linear-gradient(135deg,var(--saudi-green),var(--deep-green));
  color:#fff;
  border-color:transparent;
}

/* =======================================================
   SECTORS WE SERVE – image flush to card edges
   ======================================================= */

/* 1) Remove inner padding on sector image cards so the image can touch edges */
.card.sector,
.section.sectors .card,
.sector-card{
  padding:0 !important;
  background:#e5e7eb;
  border-radius:var(--radius);
  overflow:hidden;
}

/* 2) Make the image fill the box and keep rounded corners */
.card.sector > img,
.section.sectors .card > img,
.sector-card > img{
  width:100%;
  height:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  border-radius:inherit;
  display:block;
  transition:transform .4s ease;
}

/* 3) Auto-detect .card with direct <img> child */
.card:has(> img){
  padding:0;
  overflow:hidden;
}
.card:has(> img) > img{
  width:100%;
  height:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  border-radius:inherit;
  display:block;
  transition:transform .4s ease;
}

/* 4) Subtle hover zoom */
.card.sector:hover > img,
.section.sectors .card:hover > img,
.sector-card:hover > img,
.card:has(> img):hover > img{
  transform:scale(1.05);
}
/* =======================================================
   WhatsApp Floating Button – mobile & desktop sizes
   ======================================================= */

/* Default: Mobile size (what you like right now) */
.whatsapp-float{
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 99999;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.whatsapp-float img{
  width: 28px;
  height: 28px;
  max-width: none;
  max-height: none;
  border-radius: 0;
  object-fit: contain;
  display: block;
}

/* Desktop / larger screens: make it slightly smaller */
@media (min-width: 768px){
  .whatsapp-float{
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float img{
    width: 22px;
    height: 22px;
  }
}

.whatsapp-float:hover{
  transform: scale(1.12);
}

