:root {
  --teal: #0d9488;
  --teal-dark: #0b7a70;
  --teal-soft: #e6f4f2;
  --ink: #0f172a;
  --muted: #5b6b7b;
  --bg: #f6f8fa;
  --white: #ffffff;
  --line: #e8edf1;
  --red: #dc2626;
  --red-soft: #fdeaea;
  --shadow: 0 10px 30px rgba(15, 40, 50, 0.08);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1100px, 92%); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
body.scrolled .site-header { box-shadow: var(--shadow); }
.header-inner {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; flex: 1 1 auto; }
.brand-badge {
  width: 46px; height: 46px; flex: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #14b8a6, #0b7a70);
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}
.brand-badge svg { width: 27px; height: 27px; color: #fff; }
.brand-name { font-weight: 800; font-size: 1rem; line-height: 1.3; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 400; }

.nav { display: none; }
.nav a {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
}
.nav a:hover, .nav a.active { color: var(--teal-dark); background: var(--teal-soft); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  color: var(--white);
}
.btn:active { transform: scale(0.98); }
.btn-teal { background: var(--teal); }
.btn-teal:hover { background: var(--teal-dark); box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35); }
.btn-red { background: var(--red); }
.btn-red:hover { background: #b91c1c; box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35); }
.btn-outline { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }

.icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; stroke: var(--ink); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background:
    radial-gradient(600px 300px at 90% -10%, rgba(13, 148, 136, 0.10), transparent 60%),
    var(--white);
  padding: 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(105%);
  transition: transform 0.28s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .mm-head .brand { flex: 1 1 auto; }
.mm-close { flex: none; }
.mm-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  justify-content: center;
}
.mm-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.mm-nav a svg { width: 20px; height: 20px; stroke: var(--teal); flex: none; }
.mm-nav a:hover { border-color: var(--teal); background: var(--teal-soft); }
.mm-nav a:active { transform: scale(0.98); }
.mm-footer { display: grid; gap: 0.6rem; }
.mm-footer .btn { width: 100%; border-radius: 14px; font-size: 1rem; padding: 0.85rem 1rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 2.2rem 0 3.5rem;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(13, 148, 136, 0.12), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(13, 148, 136, 0.10), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.hero h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  margin: 1rem 0 0.6rem;
  font-weight: 800;
}
.hero h1 .acc { color: var(--teal-dark); }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.9rem 1.5rem; margin-top: 1.8rem; font-size: 0.9rem; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-meta svg { width: 18px; height: 18px; stroke: var(--teal-dark); flex: none; }

.hero-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--teal-soft);
}
.hero-photo::before {
  content: "";
  position: absolute;
  top: 14px; right: -14px; bottom: -14px; left: 14px;
  background: rgba(13, 148, 136, 0.12);
  border-radius: var(--radius);
  z-index: -1;
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Placeholder media ---------- */
.media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, #eef3f2 0 10px, #e9f0ee 10px 20px);
  display: grid;
  place-items: center;
  min-height: 150px;
  color: #7a8b96;
  font-weight: 600;
  font-size: 0.82rem;
  text-align: center;
  padding: 1rem;
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media.cover { aspect-ratio: 4 / 3; }

/* ---------- Sections ---------- */
section { padding: 3.5rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.eyebrow {
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
.section-head h2 { font-size: 1.7rem; font-weight: 800; line-height: 1.3; }
.section-head p { color: var(--muted); margin-top: 0.5rem; }

/* ---------- Emergency ---------- */
#emergency { padding: 1.4rem 0 0.8rem; }
.emergency {
  background:
    radial-gradient(500px 220px at 90% -40%, rgba(255,255,255,0.22), transparent 60%),
    linear-gradient(130deg, #ef4444 0%, #b91c1c 100%);
  border: none;
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  box-shadow: 0 12px 30px rgba(185,28,28,0.28);
  display: grid;
  gap: 0.9rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.emergency::after {
  content: "";
  position: absolute;
  left: -60px; bottom: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.emergency .e-main { position: relative; z-index: 1; }
.emergency .e-title {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem;
  font-size: 1.15rem; font-weight: 800; color: #fff;
}
.emergency p { color: #fff0f0; font-weight: 700; font-size: 0.95rem; margin-top: 0.3rem; max-width: 38rem; }
.emergency .btn { justify-self: stretch; z-index: 1; }
.btn-urgent { background: #fff; color: #b91c1c; }
.btn-urgent:hover { background: #ffe4e4; box-shadow: 0 12px 28px rgba(0,0,0,0.25); }

/* ---------- Emergency strip (inner pages) ---------- */
.e-strip { padding: 6rem 0 1rem; }
.e-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.2rem;
  background:
    radial-gradient(400px 160px at 100% -60%, rgba(255,255,255,0.22), transparent 60%),
    linear-gradient(130deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 14px 34px rgba(185,28,28,0.26);
}
.e-strip-title { display: flex; align-items: center; gap: 0.75rem; min-width: 0; flex: 1 1 auto; text-align: right; }
.e-strip-ico {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: grid; place-items: center;
}
.e-strip-ico svg { width: 23px; height: 23px; stroke: #fff; }
.e-strip-text { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.e-strip-text b { font-size: 1.1rem; font-weight: 800; color: #fff; }
.e-strip-text span { font-size: 0.92rem; color: #ffdcdc; font-weight: 600; }
.e-strip .btn { flex: none; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2rem; align-items: center; }
#about { padding-top: 4.5rem; }
#about .section-head h2 { font-size: 2.3rem; line-height: 1.3; }
#about .about-grid > div:first-child > p { font-size: 1.15rem; line-height: 2; }
#about .about-list { margin-top: 1.5rem; gap: 1.1rem; }
#about .about-list li { font-size: 1.1rem; }
#about .about-list svg { width: 24px; height: 24px; margin-top: 2px; }
#about .hero-photo { aspect-ratio: 4 / 3; }
.about-list { margin-top: 1.2rem; display: grid; gap: 0.9rem; }
.about-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 600; }
.about-list svg { width: 20px; height: 20px; stroke: var(--teal); flex: none; margin-top: 3px; }
.about-list small { display: block; color: var(--muted); font-weight: 400; }

/* ---------- Services ---------- */
.services-grid { display: grid; gap: 1.2rem; }
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card .media { border-radius: 0 0 12px 12px; min-height: 170px; }
.service-body { padding: 1.1rem 1.2rem 1.3rem; }
.service-body h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.3rem; }
.service-body p { color: var(--muted); font-size: 0.9rem; }

.notice {
  background: var(--teal-soft);
  border: 1px dashed var(--teal);
  color: var(--teal-dark);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  font-weight: 700;
  text-align: center;
}

/* ---------- Info block (about page) ---------- */
.info-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.5rem;
}
.info-block h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.6rem; }
.info-block p { color: var(--muted); margin-bottom: 0.6rem; }
.info-block p:last-child { margin-bottom: 0; }

.cards-grid { display: grid; gap: 1.5rem; }
.ib-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--teal-soft);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.ib-icon svg { width: 26px; height: 26px; stroke: var(--teal-dark); }

/* ---------- Work gallery ---------- */
.work-grid { display: grid; gap: 1.2rem; }
.work-grid .media { border-radius: var(--radius); min-height: 190px; }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-card.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.split-grid { display: grid; gap: 1.5rem; align-items: stretch; }
.contact-grid { display: grid; gap: 1.5rem; }
.c-item { display: flex; gap: 1rem; align-items: flex-start; }
.c-icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  background: var(--teal-soft);
  display: grid; place-items: center;
}
.c-icon svg { width: 22px; height: 22px; stroke: var(--teal-dark); }
.c-item b { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.15rem; }
.c-item a, .c-item span { font-size: 1.05rem; font-weight: 700; direction: ltr; text-align: right; }
.c-item a:hover { color: var(--teal-dark); }

.map-box {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--teal-soft);
}
.map-box iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 42vw, 380px);
  border: 0;
}
.map-box .map-footer {
  display: flex;
  justify-content: center;
  padding: 1.2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0c1a24;
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  margin-top: 1rem;
}
.footer-grid { display: grid; gap: 2rem; }
.footer-brand b { color: #fff; font-size: 1.1rem; }
.footer-brand p { font-size: 0.9rem; margin-top: 0.4rem; color: #94a3b8; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.8rem; }
.footer-col ul { display: grid; gap: 0.5rem; font-size: 0.9rem; }
.footer-col a:hover { color: #5eead4; }
.footer-col svg { width: 16px; height: 16px; stroke: #5eead4; vertical-align: -3px; margin-left: 0.35rem; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid #1e3a4a;
  font-size: 0.82rem;
  color: #7d95a6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}
.footer-bottom .emergency-note { color: #fca5a5; font-weight: 700; }

/* ---------- Sticky mobile bottom bar ---------- */
.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(15, 40, 50, 0.1);
}
.bottom-bar .btn {
  border-radius: 12px;
  font-size: 0.88rem;
  padding: 0.75rem 0.5rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.has-bottombar { padding-bottom: 78px; }

.page-hero {
  padding: 1.8rem 0 2.5rem;
  background: radial-gradient(800px 380px at 90% -20%, rgba(13, 148, 136, 0.12), transparent 60%), var(--bg);
}
.page-hero h1 { font-size: 2rem; font-weight: 800; }
.page-hero p { color: var(--muted); margin-top: 0.4rem; }
.about-card {
  max-width: 46rem;
  margin-inline: auto;
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}
.about-card > p {
  font-size: 1.15rem;
  line-height: 2;
  color: var(--muted);
}
.about-ticks {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--line);
}
.about-ticks .row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--teal-soft);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  text-align: right;
}
.about-ticks .row svg { width: 20px; height: 20px; stroke: var(--teal); flex: none; margin-top: 0.15rem; }
.about-ticks .row > div { flex: 1 1 auto; }
.hours-card {
  max-width: 32rem;
  margin-inline: auto;
  text-align: center;
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.hours-card h2 { font-size: 1.35rem; font-weight: 800; margin-top: 0.9rem; }
.hours-card .hours-note { margin-top: 1rem; font-size: 1rem; color: var(--teal-dark); font-weight: 800; }
.hours-rows { display: grid; gap: 0.55rem; margin-top: 1.2rem; text-align: right; }
.h-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--teal-soft); border-radius: 10px; padding: 0.6rem 0.9rem; }
.h-row span { color: var(--muted); font-weight: 700; font-size: 0.95rem; }
.h-row b { color: var(--teal-dark); font-weight: 800; font-size: 1.05rem; }
.about-ticks .row .row-desc { color: var(--muted); font-size: 0.88rem; font-weight: 400; line-height: 1.7; margin-top: 0.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 699px) {
  .header-actions .btn { display: none; }
}

@media (min-width: 700px) {
  .nav { display: flex; align-items: center; justify-content: flex-start; gap: 0.25rem; min-width: 0; }
  .nav a { white-space: nowrap; }
  .menu-toggle { display: none; }
  .hide-desktop { display: none; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero h1 { font-size: 2.9rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .split-grid { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .emergency { grid-template-columns: 1fr auto; align-items: center; }
  .emergency .btn { justify-self: end; }
  .hide-mobile { display: inline-flex; }
}

@media (min-width: 1000px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .work-grid { grid-template-columns: repeat(4, 1fr); }
}