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

:root {
  --primary: #0F3D35;
  --primary-dark: #092a24;
  --primary-light: #1a5c48;
  --gold: #C8A45D;
  --gold-light: #dabf7a;
  --white: #ffffff;
  --gray-50: #f8faf8;
  --gray-100: #F5F7F4;
  --gray-200: #e8ece9;
  --gray-500: #6F7D78;
  --gray-700: #2d3d37;
  --shadow-sm: 0 2px 8px rgba(15,61,53,0.06);
  --shadow-md: 0 4px 20px rgba(15,61,53,0.08);
  --shadow-lg: 0 8px 40px rgba(15,61,53,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

body {
  font-family: 'Tajawal', 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--gray-50);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
.header {
  background: rgba(15,61,53,0.95);
  border-bottom: 2px solid var(--gold);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 3px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  color: var(--white);
  font-size: 1.15em;
  font-weight: 800;
  line-height: 1.2;
}

.logo-sub {
  color: var(--gold-light);
  font-size: 0.75em;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: rgba(255,255,255,0.85);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav a:hover {
  color: var(--gold);
  background: rgba(255,255,255,0.06);
}

.nav-btn {
  background: linear-gradient(135deg, var(--gold), #a8853d);
  color: var(--white) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(200,164,93,0.3);
}

.nav-btn:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,164,93,0.4);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

.slider-images {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.5s ease, transform 8s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(9,42,36,0.92) 0%, rgba(15,61,53,0.88) 50%, rgba(26,92,72,0.82) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 40px 24px;
  animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,164,93,0.15);
  border: 1px solid rgba(200,164,93,0.35);
  color: var(--gold-light);
  padding: 10px 28px;
  border-radius: var(--radius-full);
  font-size: 0.9em;
  font-weight: 700;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  font-size: 4em;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  text-shadow: 0 6px 30px rgba(0,0,0,0.4);
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.35em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  font-weight: 400;
}

.search-form {
  display: flex;
  max-width: 620px;
  margin: 0 auto 30px;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  height: 64px;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.search-form:focus-within {
  border-color: var(--gold);
}

.search-form input {
  flex: 1;
  border: none;
  padding: 0 32px;
  font-size: 16px;
  outline: none;
  color: var(--gray-700);
  background: transparent;
  font-family: inherit;
}

.search-form button {
  background: linear-gradient(135deg, var(--gold), #a8853d);
  color: var(--white);
  border: none;
  padding: 0 40px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.search-form button:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: 0 48px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1em;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #a8853d);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(200,164,93,0.35);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(200,164,93,0.5);
}

.btn-outline {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.2);
  border-color: var(--white);
  transform: translateY(-4px);
}

.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.dot.active {
  background: var(--gold);
  transform: scale(1.3);
  border-color: rgba(255,255,255,0.5);
}

/* ===== STATS ===== */
.stats {
  display: flex;
  justify-content: center;
  background: var(--white);
  padding: 50px 24px;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-top: -40px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1000px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.stat-card {
  text-align: center;
  padding: 30px 40px;
  min-width: 180px;
  border-radius: var(--radius-md);
  background: var(--white);
  transition: all 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  font-size: 2.5em;
  margin-bottom: 12px;
  display: block;
}

.stat-num {
  font-size: 2.4em;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--gray-500);
  font-size: 0.95em;
  font-weight: 600;
  margin-top: 8px;
}

/* ===== SERVICES ===== */
.services {
  padding: 100px 24px;
  background: var(--gray-100);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85em;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header h2 {
  color: var(--primary);
  font-size: 2.4em;
  font-weight: 900;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.1em;
  max-width: 500px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 2em;
  transition: transform 0.4s;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-icon.green { background: linear-gradient(135deg, rgba(15,61,53,0.1), rgba(26,92,72,0.15)); }
.service-icon.gold { background: linear-gradient(135deg, rgba(200,164,93,0.15), rgba(200,164,93,0.25)); }
.service-icon.teal { background: linear-gradient(135deg, rgba(46,107,91,0.1), rgba(46,107,91,0.2)); }
.service-icon.purple { background: linear-gradient(135deg, rgba(120,80,160,0.1), rgba(120,80,160,0.2)); }
.service-icon.orange { background: linear-gradient(135deg, rgba(230,140,60,0.1), rgba(230,140,60,0.2)); }
.service-icon.blue { background: linear-gradient(135deg, rgba(60,120,200,0.1), rgba(60,120,200,0.2)); }

.service-card h3 {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.15em;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--gray-500);
  font-size: 0.9em;
  margin-bottom: 16px;
  line-height: 1.6;
}

.service-link {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}

.service-card:hover .service-link {
  gap: 12px;
}

/* ===== QUICK LINKS ===== */
.quick-links {
  padding: 60px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  text-align: center;
}

.quick-links-inner {
  max-width: 900px;
  margin: 0 auto;
}

.quick-links h2 {
  color: var(--white);
  font-size: 2em;
  font-weight: 900;
  margin-bottom: 30px;
}

.links-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.link-pill {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  padding: 16px 32px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95em;
  transition: all 0.4s;
  backdrop-filter: blur(10px);
}

.link-pill:hover {
  background: rgba(255,255,255,0.2);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 24px 0;
  border-top: 4px solid var(--gold);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 50px;
  padding-bottom: 40px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  border: 3px solid var(--gold);
}

.footer-brand h3 {
  color: var(--gold);
  font-size: 1.3em;
  font-weight: 800;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9em;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-info h4 {
  color: var(--gold);
  font-size: 0.95em;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-info p {
  color: rgba(255,255,255,0.65);
  font-size: 0.88em;
  margin: 6px 0;
}

.footer-bottom {
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85em;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5em; }
  .hero-subtitle { font-size: 1.1em; }
  .main-nav a:not(.nav-btn) { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .stats { gap: 15px; }
  .stat-card { min-width: 140px; padding: 20px 15px; }
  .links-row { flex-direction: column; align-items: center; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-info { grid-template-columns: 1fr; }
}

/* ===== BRANCHES SECTION ===== */
.branches {
  padding: 80px 24px;
  background: #ffffff;
}

.branches .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.branch-card {
  background: #F5F7F4;
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
}

.branch-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  border-color: #C8A45D;
  background: #ffffff;
}

.branch-card.main {
  background: linear-gradient(135deg, rgba(15,61,53,0.08), rgba(15,61,53,0.04));
  border: 2px solid rgba(15,61,53,0.15);
}

.branch-card.main:hover {
  background: #ffffff;
  border-color: #C8A45D;
}

.branch-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8em;
  background: rgba(200,164,93,0.1);
  color: #0F3D35;
  transition: all 0.3s;
}

.branch-card:hover .branch-icon {
  background: linear-gradient(135deg, #C8A45D, #a8853d);
  color: #ffffff;
  transform: scale(1.1);
}

.branch-card h3 {
  font-weight: 800;
  color: #0F3D35;
  font-size: 0.95em;
  margin-bottom: 6px;
}

.branch-card p {
  color: #6F7D78;
  font-size: 0.85em;
}

@media (max-width: 768px) {
  .branches-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .branch-card {
    padding: 24px 16px;
  }
  .branch-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5em;
  }
}
