/* ============================================================
   AL MAJDALAWI CONTRACTING — Global Stylesheet
   Color Palette: White & Sky/Glass Blue
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&family=Bebas+Neue&display=swap');

:root {
  --blue-deep:    #0a3d6b;
  --blue-mid:     #1565c0;
  --blue-sky:     #2196f3;
  --blue-glass:   rgba(33,150,243,0.12);
  --blue-light:   #e3f2fd;
  --white:        #ffffff;
  --off-white:    #f7fafd;
  --gray-light:   #ecf1f7;
  --gray-mid:     #8fa3b8;
  --gray-dark:    #2c3e50;
  --text-main:    #1a2a3a;
  --text-soft:    #5a7080;
  --accent:       #00b4d8;
  --accent-gold:  #f0a500;
  --shadow-sm:    0 2px 12px rgba(21,101,192,0.10);
  --shadow-md:    0 8px 32px rgba(21,101,192,0.15);
  --shadow-lg:    0 20px 60px rgba(10,61,107,0.18);
  --radius:       12px;
  --radius-lg:    24px;
  --transition:   all 0.35s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-main);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
.display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.04em; }
.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue-sky);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.section-label::before {
  content: ''; width: 32px; height: 2px; background: var(--accent);
  display: inline-block;
}
.section-title { font-size: clamp(2rem,4vw,3rem); color: var(--blue-deep); margin-bottom: 1rem; }
.section-sub   { font-size: 1.05rem; color: var(--text-soft); max-width: 600px; }

/* ── LAYOUT ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 96px 0; }
.section-alt { background: var(--off-white); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 6px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: none;
  transition: var(--transition); font-family: 'DM Sans', sans-serif;
}
.btn-primary {
  background: var(--blue-sky); color: var(--white);
  box-shadow: 0 4px 18px rgba(33,150,243,0.35);
}
.btn-primary:hover { background: var(--blue-mid); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(33,150,243,0.45); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-dark {
  background: var(--blue-deep); color: var(--white);
}
.btn-dark:hover { background: var(--blue-mid); transform: translateY(-2px); }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 40px; display: flex; align-items: center; justify-content: space-between;
  height: 80px; transition: var(--transition);
}
.navbar.transparent { background: transparent; }
.navbar.scrolled {
  background: rgba(10,61,107,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo svg { width: 48px; height: 48px; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text .name { font-family:'Playfair Display',serif; font-size:1.05rem; color:var(--white); font-weight:700; line-height:1.1; }
.nav-logo-text .sub  { font-size:0.65rem; letter-spacing:0.14em; color: var(--accent); text-transform:uppercase; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: rgba(255,255,255,0.88); font-size: 0.9rem; font-weight: 500;
  padding: 8px 16px; border-radius: 6px; transition: var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white); background: rgba(255,255,255,0.1);
}
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-cta { margin-left: 20px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ── MOBILE NAV ── */
.mobile-menu {
  display: none; position: fixed; top: 80px; left: 0; right: 0;
  background: var(--blue-deep); z-index: 999; padding: 24px;
  flex-direction: column; gap: 4px; border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.88); font-size: 1rem; font-weight: 500;
  padding: 14px 16px; border-radius: 8px; transition: var(--transition);
}
.mobile-menu a:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* ── FOOTER ── */
.footer { background: var(--blue-deep); color: var(--white); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 { font-family:'DM Sans',sans-serif; font-size:0.8rem; letter-spacing:0.15em; text-transform:uppercase; color:var(--accent); margin-bottom: 20px; }
.footer-col a { display: block; color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: var(--white); padding-left: 4px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.footer-contact-item .icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-contact-item p { color: rgba(255,255,255,0.65); font-size: 0.88rem; line-height: 1.5; }
.footer-contact-item a { color: rgba(255,255,255,0.65); font-size: 0.88rem; margin: 0; }
.footer-bottom { padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-bottom p { color: rgba(255,255,255,0.45); font-size: 0.82rem; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  transition: var(--transition); color: rgba(255,255,255,0.65);
}
.footer-socials a:hover { background: var(--blue-sky); color: var(--white); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  height: 380px; position: relative; display: flex; align-items: flex-end;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
}
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,61,107,0.95) 0%, transparent 60%);
}
.page-hero-geo {
  position: absolute; right: 0; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(135deg, transparent, rgba(33,150,243,0.08));
}
.page-hero-content { position: relative; z-index: 2; padding: 0 40px 56px; width: 100%; max-width: 1240px; margin: 0 auto; }
.page-hero-content .breadcrumb { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.55); font-size: 0.85rem; margin-bottom: 12px; }
.page-hero-content .breadcrumb a:hover { color: var(--accent); }
.page-hero-content h1 { font-size: clamp(2.2rem,5vw,3.5rem); color: var(--white); }

/* ── CARD ── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--transition);
  border: 1px solid var(--gray-light);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ── GLASS CARD ── */
.glass-card {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-lg);
}

/* ── STAT BOX ── */
.stat-box { text-align: center; }
.stat-box .number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem,6vw,5rem); color: var(--white); line-height: 1;
}
.stat-box .unit { color: var(--accent); }
.stat-box .label { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-top: 6px; }

/* ── SERVICE ICON BOX ── */
.svc-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--blue-glass); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: var(--transition);
}
.card:hover .svc-icon { background: var(--blue-sky); }
.card:hover .svc-icon svg { stroke: var(--white); }

/* ── COUNTER ANIMATION ── */
.count-up { display: inline-block; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideRight {
  from { opacity:0; transform:translateX(-30px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}

.animate-fade-up  { opacity:0; animation: fadeUp 0.7s forwards; }
.animate-fade-in  { opacity:0; animation: fadeIn 0.7s forwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── DIVIDERS ── */
.wave-divider { line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { height: 300px; }
  .page-hero-content { padding: 0 20px 40px; }
}
