:root {
  --charcoal: #3a3a3a;
  --charcoal-deep: #2a2a2a;
  --charcoal-soft: #555555;
  --accent: #ab5232;
  --accent-hover: #934528;
  --accent-soft: rgba(171, 82, 50, 0.12);
  --white: #ffffff;
  --surface: #f7f5f3;
  --line: rgba(58, 58, 58, 0.12);
  --text: #3a3a3a;
  --text-muted: #6b6b6b;
  --shadow: 0 18px 50px rgba(42, 42, 42, 0.12);
  --radius: 4px;
  --header-h: 76px;
  --font-display: "Cairo", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Cairo", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(42, 42, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2.5rem));
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-logo {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--charcoal-deep);
}

.brand-text small {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  position: relative;
  transition: color 0.25s var(--ease);
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.main-nav a:not(.nav-cta):hover,
.main-nav a:not(.nav-cta).is-active {
  color: var(--accent);
}

.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta).is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--charcoal);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("../images/hero.jpg") center / cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 22s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  right: -18vmax;
  bottom: -22vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(171, 82, 50, 0.35), transparent 68%);
  animation: pulseGlow 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(42, 42, 42, 0.78) 0%, rgba(42, 42, 42, 0.55) 45%, rgba(171, 82, 50, 0.35) 100%),
    linear-gradient(to top, rgba(42, 42, 42, 0.65), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-logo {
  width: min(280px, 70vw);
  margin: 0 auto 1.75rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1.35;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  z-index: 2;
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  color: var(--charcoal-deep);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* About */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}

.about-media {
  overflow: hidden;
  min-height: 320px;
  background: var(--surface);
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}

.about-media:hover img {
  transform: scale(1.04);
}

.about-side {
  display: grid;
  gap: 1.5rem;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fact {
  background: var(--surface);
  border-block-start: 3px solid var(--accent);
  padding: 1.25rem 1.15rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.fact:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.fact-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.fact-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--charcoal-deep);
  font-weight: 700;
}

/* Values */
.values {
  background:
    linear-gradient(180deg, var(--surface) 0%, #efeae6 100%);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.value-card {
  background: var(--white);
  padding: 2rem 1.6rem;
  border-block-start: 3px solid var(--accent);
  box-shadow: 0 10px 30px rgba(42, 42, 42, 0.05);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.value-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.value-icon svg {
  width: 100%;
  height: 100%;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--charcoal-deep);
  margin-bottom: 0.7rem;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Services slider */
.services {
  background: var(--white);
}

.slider {
  position: relative;
  overflow: hidden;
  background: var(--charcoal-deep);
  color: var(--white);
  min-height: 420px;
}

.slider-track {
  position: relative;
  min-height: 420px;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-40px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0.55s;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.slide-visual {
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.slide-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(42, 42, 42, 0.55), transparent 55%);
}

.slide-v1 {
  background:
    linear-gradient(135deg, rgba(42, 42, 42, 0.25), rgba(171, 82, 50, 0.35)),
    url("../images/service-1.jpg") center / cover no-repeat;
}

.slide-v2 {
  background:
    linear-gradient(160deg, rgba(42, 42, 42, 0.3), rgba(171, 82, 50, 0.28)),
    url("../images/service-2.jpg") center / cover no-repeat;
}

.slide-v3 {
  background:
    linear-gradient(200deg, rgba(42, 42, 42, 0.35), rgba(171, 82, 50, 0.25)),
    url("../images/service-3.jpg") center / cover no-repeat;
}

.slide-v4 {
  background:
    linear-gradient(45deg, rgba(42, 42, 42, 0.32), rgba(171, 82, 50, 0.22)),
    url("../images/service-4.jpg") center / cover no-repeat;
}

.slide-v5 {
  background:
    linear-gradient(120deg, rgba(42, 42, 42, 0.35), rgba(171, 82, 50, 0.3)),
    url("../images/service-5.jpg") center / cover no-repeat;
}

.slide-body {
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.85rem;
  opacity: 0.9;
}

.slide-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.slide-body p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  max-width: 32rem;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.15rem 1rem 1.4rem;
  background: rgba(0, 0, 0, 0.25);
}

.slider-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.slider-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

/* Contact */
.contact {
  position: relative;
  background:
    linear-gradient(180deg, rgba(247, 245, 243, 0.94), rgba(255, 255, 255, 0.96)),
    url("../images/contact-bg.jpg") center / cover no-repeat;
  background-attachment: scroll;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem 1.4rem;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

a.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  color: var(--accent);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
  color: var(--charcoal-deep);
}

.contact-card p {
  color: var(--text-muted);
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--charcoal-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  text-align: center;
  justify-items: center;
}

.footer-brand img {
  margin: 0 auto 0.85rem;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  width: 140px;
}

.footer-brand p,
.footer-meta p {
  font-size: 0.95rem;
}

.footer-meta {
  display: grid;
  gap: 0.35rem;
}

.copyright {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Responsive */
@media (max-width: 1100px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .about-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .about-media img {
    min-height: 260px;
  }

  .slide {
    grid-template-columns: 1fr;
  }

  .slide-visual {
    min-height: 200px;
  }

  .slide-visual::after {
    background: linear-gradient(to top, rgba(42, 42, 42, 0.75), transparent 60%);
  }

  .slider-track,
  .slider {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    box-shadow: 0 16px 40px rgba(42, 42, 42, 0.08);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    width: min(220px, 72vw);
  }

  .brand-logo {
    width: 96px;
  }

  .brand-text strong {
    font-size: 0.92rem;
  }

  .brand-text small {
    font-size: 0.7rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.footer-meta a {
  color: inherit;
  transition: color 0.25s var(--ease);
}

.footer-meta a:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .slide,
  .hero-bg,
  .hero-bg::after,
  .scroll-hint span {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
