/* ============================================
   AL MAKKAH MOTORS — MAIN STYLESHEET
   ============================================ */

/* ============================
   ROOT VARIABLES (Design Tokens)
   ============================ */
:root{
  --bg-dark: #111111;
  --primary-green: #17632F;
  --highlight-green: #8BC34A;
  --text-heading: #FFFFFF;
  --text-paragraph: #CFCFCF;
  --card-bg: #1E1E1E;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --space-desktop: 80px;
  --space-mobile: 50px;

  --shadow-soft: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-hover: 0 12px 32px rgba(139, 195, 74, 0.18);

  --transition-smooth: all 0.35s ease;
}

/* ============================
   GLOBAL RESET & BASE
   ============================ */
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  background-color: var(--bg-dark);
  font-family: 'Poppins', sans-serif;
  color: var(--text-paragraph);
  overflow-x:hidden;
}
h1,h2,h3,h4{ color: var(--text-heading); font-weight:600; line-height:1.25; }
p{ color: var(--text-paragraph); font-weight:400; line-height:1.7; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }
img{ max-width:100%; display:block; }

.section-heading{ text-align:center; margin-bottom:44px; }
.section-heading h2{ font-size: clamp(24px, 3.5vw, 34px); margin-bottom:10px; }
.section-heading p{ max-width:520px; margin:0 auto; }

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}

/* ============================
   NAVBAR
   ============================ */
.navbar{
  position:fixed;
  top:0; left:0;
  width:100%;
  z-index:1000;
  background: var(--primary-green);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition-smooth);
}
.navbar.scrolled{
  background: #10461f;
  box-shadow: var(--shadow-soft);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding: 20px 24px;
}

.nav-logo{ display:flex; align-items:center; flex:1; }
.nav-logo img{ height:56px; width:auto; max-width:100%; object-fit:contain; }

.nav-brand{
  flex:1;
  text-align:center;
  white-space:nowrap;
}

.nav-brand .brand-name{
  display:block;
  font-size:32px;
  font-weight:700;
  letter-spacing:0.5px;
  color: var(--text-heading);
}

.nav-brand .brand-tagline{
  display:block;
  font-size:15px;
  font-weight:400;
  letter-spacing:1px;
  color: #FFFFFF;
  margin-top:2px;
}

.nav-links{ flex:1; display:flex; justify-content:flex-end; align-items:center; gap:28px; }
.nav-links a{
  font-size:15px; font-weight:500; color: #FFFFFF;
  position:relative; padding:6px 2px; transition: var(--transition-smooth);
}
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; width:0%; height:2px;
  background: var(--highlight-green); transition: var(--transition-smooth);
}
.nav-links a:hover{ color: var(--highlight-green); }
.nav-links a:hover::after{ width:100%; }
.nav-links a:focus-visible{ outline: 2px solid var(--highlight-green); outline-offset: 3px; }

@media (max-width: 900px){
  .nav-links{ gap:18px; }
  .nav-brand{ font-size:18px; }
}

@media (max-width: 640px){
  .nav-inner{ flex-direction:column; gap:6px; padding: 12px 16px; }
  .nav-logo img{ height:40px; }
  .nav-brand{ flex:none; width:100%; }
  .nav-brand .brand-name{ font-size: clamp(15px, 4.5vw, 19px); }
  .nav-brand .brand-tagline{ font-size: clamp(9px, 2.5vw, 11px); }
  .nav-brand{ flex:none; width:100%; font-size: clamp(14px, 4.5vw, 17px); }
  .nav-links{
    flex:none; width:100%; justify-content:center; align-items:center;
    flex-wrap:wrap; gap: clamp(10px, 3vw, 18px); padding-top:2px;
  }
  .nav-links a{ font-size: clamp(11px, 3.2vw, 13px); white-space:nowrap; }
}

@media (max-width: 360px){
  .nav-logo img{ height:28px; }
  .nav-brand{ font-size:13px; }
  .nav-links{ gap:8px; }
  .nav-links a{ font-size:11px; }
}

/* ============================
   HERO SECTION (with video background)
   ============================ */
.hero{
  position:relative;
  width:100%;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
  background-color:#1a1a1a;
  padding: 0 24px;
}

.hero-video{
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  object-fit:cover;
  z-index:0;
}

.hero-overlay{
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: linear-gradient(180deg, rgba(17,17,17,0.55) 0%, rgba(17,17,17,0.75) 55%, rgba(17,17,17,0.95) 100%);
  z-index:1;
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:720px;
  animation: heroFadeUp 0.9s ease both;
}

.hero-eyebrow{
  display:inline-block; color: var(--highlight-green); font-size:14px; font-weight:600;
  letter-spacing:2px; text-transform:uppercase; margin-bottom:18px;
  padding: 6px 16px; border: 1px solid rgba(139,195,74,0.35);
  border-radius: 999px; background: rgba(139,195,74,0.06);
}

.hero h1{ font-size: clamp(32px, 5.5vw, 56px); font-weight:700; margin-bottom:20px; letter-spacing:-0.5px; }
.hero h1 span{ color: var(--highlight-green); }
.hero p{ font-size: clamp(15px, 2vw, 18px); color: var(--text-paragraph); max-width:560px; margin: 0 auto 36px auto; }

.cta-btn{
  display:inline-block; background: var(--highlight-green); color:#111111;
  font-weight:600; font-size:16px; padding: 16px 40px; border-radius: var(--radius-md);
  border:none; cursor:pointer; box-shadow: var(--shadow-hover); transition: var(--transition-smooth);
}
.cta-btn:hover{
  background: var(--primary-green); color:#ffffff; transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(23, 99, 47, 0.35);
}

@keyframes heroFadeUp{
  from{ opacity:0; transform: translateY(24px); }
  to{ opacity:1; transform: translateY(0); }
}

@media (max-width: 768px){
  .hero{ min-height: 100svh; }
  .hero-content{ padding-top: 90px; }
}

/* ============================
   GALLERY SECTION
   ============================ */
.gallery-section{ padding: var(--space-desktop) 24px; }

.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr); /* desktop: 4 columns */
  gap:20px;
  max-width:1280px;
  margin:0 auto;
}

.gallery-card{
  aspect-ratio: 4 / 3;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow-soft);
  overflow:hidden;
  transition: var(--transition-smooth);
  cursor:pointer;
}

.gallery-card img{
  width:100%; height:100%;
  object-fit:cover;
  transition: var(--transition-smooth);
}

.gallery-card:hover{ transform: scale(1.04); box-shadow: var(--shadow-hover); }
.gallery-card:hover img{ transform: scale(1.08); }

@media (max-width: 1024px){
  .gallery-grid{ grid-template-columns: repeat(3, 1fr); } /* tablet: 3 columns */
}

@media (max-width: 640px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); gap:14px; } /* mobile: 2 columns */
  .gallery-section{ padding: var(--space-mobile) 20px; }
}

/* ============================
   CONTACT SECTION
   ============================ */
.contact-section{ padding: var(--space-desktop) 24px; }

.contact-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:24px;
  max-width:1100px;
  margin:0 auto;
}

.contact-card{
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align:center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.contact-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(139,195,74,0.25);
}

.contact-card .icon{
  width:52px; height:52px; margin:0 auto 18px auto;
  border-radius:50%;
  background: rgba(139,195,74,0.1);
  display:flex; align-items:center; justify-content:center;
  color: var(--highlight-green);
}
.contact-card .icon svg{ width:24px; height:24px; }
.contact-card h3{ font-size:18px; margin-bottom:8px; }
.contact-card p{ font-size:14px; }

@media (max-width: 768px){
  .contact-section{ padding: var(--space-mobile) 20px; }
  .contact-grid{ grid-template-columns: 1fr; gap:18px; }
}

/* ============================
   MAP SECTION
   ============================ */
.map-section{ padding: 0 24px var(--space-desktop) 24px; }

.map-wrapper{
  max-width:1280px;
  margin:0 auto;
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.06);
}

.map-wrapper iframe{
  width:100%;
  height:420px;
  border:0;
  display:block;
  filter: grayscale(0.3) invert(0.92) contrast(0.9);
}

@media (max-width: 768px){
  .map-section{ padding: 0 20px var(--space-mobile) 20px; }
  .map-wrapper iframe{ height:280px; }
}

/* ============================
   FOOTER
   ============================ */
.footer{
  background:#0c0c0c;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 24px 24px 24px;
  text-align:center;
}
.footer-logo{ height:36px; margin:0 auto 14px auto; }
.footer p{ font-size:13px; color:#8a8a8a; }
.footer-links{ display:flex; justify-content:center; gap:24px; margin: 14px 0 20px 0; flex-wrap:wrap; }
.footer-links a{ font-size:13px; color: var(--text-paragraph); transition: var(--transition-smooth); }
.footer-links a:hover{ color: var(--highlight-green); }

/* ============================
   WHATSAPP FLOATING BUTTON
   ============================ */
.whatsapp-float{
  position:fixed;
  bottom:24px; right:24px;
  width:58px; height:58px;
  border-radius:50%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  z-index:1000;
  transition: var(--transition-smooth);
  overflow:hidden;
}
.whatsapp-float img{ width:100%; height:100%; object-fit:cover; }
.whatsapp-float:hover{
  transform: scale(1.08);
  box-shadow: 0 10px 26px rgba(37,211,102,0.4);
}

@media (max-width: 640px){
  .whatsapp-float{ width:50px; height:50px; bottom:16px; right:16px; }
}
