:root {
  --radius: 1rem;
  --font-body: "Tajawal", "Cairo", system-ui, sans-serif;
  --font-heading: "Cairo", "Tajawal", system-ui, sans-serif;
  --whatsapp: #3db44a;
  --whatsapp-foreground: #f8f8f8;
}

[data-theme="dark"] {
  --background: #080503;
  --foreground: #f9f4ee;
  --card: #110c08;
  --input: #1a1511;
  --border: #2a221b;
  --primary: #f2a618;
  --primary-foreground: #080503;
  --primary-glow: #ffd066;
  --primary-deep: #a75b00;
  --secondary: #201914;
  --muted: #1a1511;
  --muted-foreground: #a59d91;
  --shadow-card: 0 12px 40px -16px rgba(0, 0, 0, 0.6);
  --hero-shade: rgba(8, 5, 3, 0.82);
  --hero-fade: rgba(8, 5, 3, 0.42);
}

[data-theme="light"] {
  --background: #fbf7ef;
  --foreground: #21170e;
  --card: #fffdf8;
  --input: #f4ece0;
  --border: #e5d6c2;
  --primary: #c77a00;
  --primary-foreground: #120b05;
  --primary-glow: #ffd77d;
  --primary-deep: #8b4c00;
  --secondary: #f0e3d1;
  --muted: #f6eddf;
  --muted-foreground: #6f6254;
  --shadow-card: 0 16px 42px -24px rgba(72, 42, 10, 0.34);
  --hero-shade: rgba(20, 13, 8, 0.76);
  --hero-fade: rgba(20, 13, 8, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
}

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

img,
iframe {
  display: block;
}

.container {
  max-width: 1140px;
}

.gold-text,
.text-gradient-gold {
  background: linear-gradient(135deg, var(--primary-glow), var(--primary), var(--primary-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 84%, transparent);
  backdrop-filter: blur(12px);
}

.navbar {
  min-height: 64px;
  padding: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--primary-foreground);
  background: linear-gradient(135deg, var(--primary-glow), var(--primary), var(--primary-deep));
  box-shadow: 0 14px 34px -18px var(--primary);
}

.brand-icon i {
  font-size: 1.15rem;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
  line-height: 1.1;
}

.brand-title {
  font-size: 0.95rem;
}

.brand-subtitle {
  color: var(--muted-foreground);
  font-size: 0.7rem;
}

.navbar-nav .nav-link {
  color: var(--foreground);
  font-size: 0.95rem;
  padding-inline: 0;
  transition: color 0.18s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--primary);
}

.nav-link-btn {
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--foreground);
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.icon-btn:hover,
.icon-btn:focus {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.navbar-toggler {
  padding: 0;
  box-shadow: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.btn-whatsapp {
  color: var(--whatsapp-foreground);
  background: var(--whatsapp);
  padding: 0.55rem 1rem;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  color: var(--whatsapp-foreground);
  background: color-mix(in srgb, var(--whatsapp) 88%, black);
}

.btn-gold {
  color: var(--primary-foreground);
  background: linear-gradient(135deg, var(--primary-glow), var(--primary), var(--primary-deep));
  box-shadow: 0 18px 42px -24px var(--primary);
}

.btn-gold:hover,
.btn-gold:focus {
  color: var(--primary-foreground);
  opacity: 0.92;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.hero-section {
  position: relative;
  min-height: 570px;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 7, 4, 0.42), rgba(3, 2, 1, 0.82) 58%, #120c06), linear-gradient(180deg, transparent 70%, #050302)
}

.hero-content {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 570px;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-copy {
  max-width: 48rem;
  animation: float-in 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid color-mix(in srgb, var(--primary) 44%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  font-size: 0.8rem;
}

.hero-copy h1 {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 4.5rem);
  line-height: 1.1;
  font-weight: 900;
}

.hero-copy p {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: var(--muted-foreground);
  font-size: 1.18rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.stats-band {
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 42%, transparent);
  padding: 2.5rem 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.stat-item > i {
  color: var(--primary);
  font-size: 2rem;
}

.stat-item strong,
.stat-item span {
  display: block;
}

.stat-item strong {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  line-height: 1;
}

.stat-item span {
  color: var(--muted-foreground);
  font-size: 0.8rem;
}

.section-block {
  padding: 5rem 0;
}

.section-muted {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary) 8%, transparent), transparent 34%),
    var(--muted);
}

.section-heading {
  max-width: 42rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-heading span {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-weight: 800;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
}

.section-heading p {
  margin: 1rem 0 0;
  color: var(--muted-foreground);
}

.service-card,
.feature-card,
.branch-card,
.quote-form {
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.service-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-0.25rem);
  border-color: color-mix(in srgb, var(--primary) 60%, var(--border));
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  color: var(--primary-foreground);
  background: linear-gradient(135deg, var(--primary-glow), var(--primary), var(--primary-deep));
}

.service-icon i {
  font-size: 1.35rem;
}

.service-card h3,
.feature-card h3,
.branch-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.service-card p,
.feature-card p,
.branch-body p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.work-label {
  margin: 0 0 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.work-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--secondary);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.work-thumb:hover img {
  transform: scale(1.1);
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--whatsapp);
  font-weight: 800;
  transition: gap 0.18s ease;
}

button.whatsapp-link {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.whatsapp-link:hover {
  gap: 0.65rem;
  color: var(--whatsapp);
}

.gold-cta {
  background: linear-gradient(135deg, var(--primary-glow), var(--primary), var(--primary-deep));
  color: var(--primary-foreground);
  padding: 3rem 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-inner h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-inner p {
  margin: 0.35rem 0 0;
  opacity: 0.82;
}

.btn-dark-pill {
  color: var(--foreground);
  background: var(--background);
  padding: 0.75rem 1.5rem;
}

.btn-dark-pill i {
  color: var(--whatsapp);
}

.feature-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 72%, transparent);
}

.feature-card > i {
  display: block;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 2.1rem;
}

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--primary);
}

.branch-card {
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.map-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--secondary);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(30%) contrast(110%);
}

.branch-body {
  padding: 1.5rem;
}

.branch-body p i {
  color: var(--primary);
  margin-inline-end: 0.25rem;
}

.branch-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.branch-phones a {
  direction: ltr;
  color: var(--foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--secondary);
}

.quote-container {
  max-width: 760px;
}

.quote-form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: calc(var(--radius) + 0.5rem);
}

.form-control,
.form-select {
  min-height: 3.1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background-color: var(--input);
  color: var(--foreground);
  font-size: 0.95rem;
}

.form-control::placeholder {
  color: color-mix(in srgb, var(--muted-foreground) 82%, transparent);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  background-color: var(--input);
  color: var(--foreground);
  box-shadow: none;
}

.btn-submit {
  width: 100%;
  min-height: 3.5rem;
  margin-top: 1.25rem;
  font-size: 1.1rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 64%, var(--background));
  padding: 3rem 0 1.5rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.site-footer h3 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted-foreground);
}

.copyright {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  text-align: center;
  font-size: 0.9rem;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767.98px) {
  .site-header .container {
    gap: 0.75rem;
  }

  .navbar-collapse {
    order: 3;
    width: 100%;
    padding: 0.75rem 0 1rem;
  }

  .navbar-nav {
    gap: 0.4rem;
  }

  .hero-section,
  .hero-content {
    min-height: 620px;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .stat-item {
    justify-content: center;
  }

  .section-block {
    padding: 4rem 0;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .brand-icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .brand-title {
    font-size: 0.85rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .icon-btn {
    width: 2.35rem;
    height: 2.35rem;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }
}
