:root {
  --paper: #f8f7f3;
  --tint: #e9dfd8;
  --ink: #171715;
  --muted: #746e68;
  --line: #cfc8c1;
  --dark: #11110f;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Tajawal", Tahoma, sans-serif;
  font-weight: 400;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; }

.section-shell { width: min(calc(100% - 80px), var(--max)); margin-inline: auto; }
.section-tint { background: var(--tint); }
.section-dark { color: #f2eee8; background: var(--dark); }
.eyebrow {
  display: flex; align-items: center; gap: 11px; margin: 0 0 18px;
  color: var(--muted); font-size: 14px; font-weight: 500;
}
.section-dark .eyebrow { color: #948c85; }
.eyebrow span { width: 32px; height: 1px; display: inline-block; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 300; letter-spacing: -.045em; line-height: 1.18; }
h2 { font-size: clamp(36px, 4.1vw, 62px); margin-bottom: 0; }

.site-header {
  position: absolute; z-index: 5; top: 0; inset-inline: 0;
  width: min(calc(100% - 80px), var(--max)); margin-inline: auto;
  height: 92px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; line-height: 1.1; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; }
.brand-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; font-weight: 500; }
.brand small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.main-nav { display: flex; gap: 34px; margin-inline-start: auto; margin-inline-end: 50px; font-size: 14px; }
.main-nav a, .header-cta { transition: opacity .2s; }
.main-nav a:hover, .header-cta:hover { opacity: .55; }
.header-cta { border-bottom: 1px solid var(--ink); font-size: 14px; padding-bottom: 4px; }
.header-cta span { margin-inline-start: 10px; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 5px; }
.menu-toggle span { display: block; width: 23px; height: 1px; background: var(--ink); margin: 5px; }

.floating-clock {
  position: fixed;
  z-index: 20;
  top: 108px;
  inset-inline-start: auto;
  inset-inline-end: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 156px;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(248, 247, 243, .8);
  border: 1px solid rgba(23, 23, 21, .15);
  box-shadow: 0 10px 26px rgba(23, 23, 21, .06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  line-height: 1.25;
  opacity: 0.8;
}
.clock-symbol { align-self: flex-start; font-size: 19px; line-height: 1; }
.floating-clock time { display: block; direction: ltr; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.floating-clock small { display: block; color: var(--muted); font-size: 9px; white-space: nowrap; }

.hero { min-height: 760px; padding-top: 126px; display: grid; grid-template-columns: 1fr 1fr; }
.hero-copy { background: var(--tint); padding: clamp(55px, 8vw, 110px) clamp(34px, 7vw, 100px); }
.hero h1 { font-size: clamp(54px, 6.9vw, 100px); margin: 12px 0 27px; }
.hero h1 em { font-style: normal; }
.hero-lead { max-width: 450px; margin-bottom: 35px; color: #67615c; font-size: 18px; line-height: 2; }
.hero-actions { display: flex; gap: 14px; }
.button { min-width: 150px; border: 1px solid var(--ink); padding: 12px 20px; display: inline-flex; gap: 20px; justify-content: center; align-items: center; transition: background .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: var(--paper); background: var(--dark); }
.button-dark:hover { color: var(--dark); background: transparent; }
.button-outline { background: transparent; }
.button-outline:hover { color: var(--paper); background: var(--dark); }
.hero-image { position: relative; min-height: 590px; overflow: hidden; }
.hero-image img { height: 100%; object-fit: cover; }
.glitch-frame::before,
.glitch-frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: url("assets/hero-fence.jpeg") center / cover no-repeat;
  opacity: 0;
  mix-blend-mode: screen;
}
.glitch-frame::before {
  filter: hue-rotate(145deg) saturate(1.8);
  animation: hero-glitch-cyan 8s steps(1, end) infinite;
}
.glitch-frame::after {
  filter: hue-rotate(-55deg) saturate(1.8);
  animation: hero-glitch-red 8s steps(1, end) infinite;
}
@keyframes hero-glitch-cyan {
  0%, 89%, 100% { opacity: 0; transform: translate(0); clip-path: inset(0); }
  90% { opacity: .2; transform: translate(4px, -1px); clip-path: inset(18% 0 62% 0); }
  91% { opacity: 0; }
  92% { opacity: .14; transform: translate(-3px, 1px); clip-path: inset(67% 0 19% 0); }
  93% { opacity: 0; }
}
@keyframes hero-glitch-red {
  0%, 89%, 100% { opacity: 0; transform: translate(0); clip-path: inset(0); }
  90% { opacity: .15; transform: translate(-4px, 1px); clip-path: inset(48% 0 35% 0); }
  91% { opacity: 0; }
  92% { opacity: .18; transform: translate(3px, -1px); clip-path: inset(8% 0 78% 0); }
  93% { opacity: 0; }
}
.image-caption { position: absolute; bottom: 38px; inset-inline-start: 38px; border-inline-start: 1px solid white; padding-inline-start: 16px; color: white; font-size: 15px; line-height: 1.4; }
.image-caption b { font-size: 12px; position: absolute; bottom: 1px; inset-inline-start: -29px; font-weight: 400; }

.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; padding-block: 140px 130px; }
.intro-title h2 { max-width: 450px; }
.intro-copy { padding-top: 36px; max-width: 480px; color: var(--muted); font-size: 18px; }
.intro-copy p { line-height: 2; }
.text-link { display: inline-flex; gap: 20px; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 5px; margin-top: 18px; font-size: 14px; }

.services { padding-block: 105px 98px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; align-items: end; margin-bottom: 65px; }
.section-heading > p { max-width: 460px; color: var(--muted); font-size: 17px; line-height: 2; margin-bottom: 2px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-card { min-height: 375px; background: var(--paper); border: 1px solid var(--line); padding: 24px 24px 28px; display: flex; flex-direction: column; }
.card-top { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.service-icon { width: 26px; height: 26px; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 16px; line-height: 1; }
.service-card h3 { margin: 44px 0 9px; font-size: 23px; font-weight: 500; line-height: 1.35; }
.service-card p { color: var(--muted); font-size: 15px; line-height: 1.9; margin-bottom: 17px; }
.service-card a { margin-top: auto; border-bottom: 1px solid var(--ink); width: fit-content; font-size: 14px; padding-bottom: 3px; }
.service-card a span { margin-inline-start: 13px; }

.process { padding-block: 130px 105px; }
.process-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; }
.process-title > p:last-child { color: var(--muted); max-width: 420px; margin-top: 28px; font-size: 17px; line-height: 2; }
.process-list { padding-top: 0; }
.process-item { border-top: 1px solid #bdb4ad; padding: 19px 0 28px; display: flex; gap: 25px; }
.process-item:last-child { border-bottom: 1px solid #bdb4ad; }
.number { font-size: 15px; font-weight: 700; }
.process-item h3 { font-size: 20px; font-weight: 500; margin: 0 0 7px; }
.process-item p { color: var(--muted); margin: 0; font-size: 15px; }

.work { padding-block: 130px 130px; }
.work-heading { margin-bottom: 28px; }
.filters { display: flex; justify-content: flex-start; gap: 10px; margin-bottom: 25px; }
.filter { background: transparent; border: 1px solid var(--ink); padding: 10px 25px; font-size: 14px; transition: .2s; }
.filter:hover, .filter.active { color: var(--paper); background: var(--dark); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery figure { position: relative; height: 275px; margin: 0; overflow: hidden; background: var(--tint); transition: opacity .25s, transform .25s; }
.gallery figure.hidden { display: none; }
.gallery img { height: 100%; object-fit: cover; transition: transform .5s; }
.gallery img { cursor: zoom-in; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.76)); }
.gallery figcaption { position: absolute; z-index: 1; inset-inline: 19px; bottom: 18px; color: white; font-size: 18px; font-weight: 500; line-height: 1.35; }
.gallery figcaption small { display: block; font-size: 12px; font-weight: 400; margin-bottom: 2px; }

.coverage { padding-block: 105px; }
.coverage-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; align-items: center; }
.coverage h2 { font-size: clamp(42px, 4.5vw, 67px); }
.coverage-copy { color: #c4bcb4; font-size: 18px; }
.locations { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.locations span { border: 1px solid #716b65; padding: 6px 19px; font-size: 14px; color: #eee8e2; }
.coverage-map {
  position: relative;
  min-height: 245px;
  margin: 32px 0 24px;
  overflow: hidden;
  border: 1px solid #5f5953;
  background: linear-gradient(145deg, #1b1b18, #11110f);
}
.coverage-map::before,
.coverage-map::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: linear-gradient(90deg, transparent 49.5%, #d8cec5 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, #d8cec5 50%, transparent 50.5%);
  background-size: 72px 72px;
}
.map-outline {
  position: absolute;
  width: 67%;
  height: 76%;
  top: 12%;
  right: 16%;
  background: #2d302b;
  border: 1px solid #a69b91;
  clip-path: polygon(8% 16%, 28% 7%, 47% 14%, 72% 7%, 91% 24%, 85% 46%, 94% 65%, 76% 82%, 55% 77%, 42% 93%, 20% 79%, 7% 57%, 15% 39%);
  opacity: .86;
}
.map-pin {
  position: absolute;
  z-index: 2;
  padding: 4px 8px;
  color: #f2eee8;
  background: #11110f;
  border: 1px solid #cfc2b7;
  font-size: 12px;
}
.map-pin::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 5px;
  border-radius: 50%;
  background: #d6a58e;
  vertical-align: 1px;
}
.pin-riyadh { top: 42%; right: 49%; }
.pin-jeddah { top: 52%; right: 24%; }
.pin-dammam { top: 30%; right: 74%; }
.pin-abha { top: 70%; right: 46%; }
.coverage-map p {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 10px;
  margin: 0;
  color: #c4bcb4;
  font-size: 12px;
}

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; padding-block: 130px 150px; }
.faq-list { padding-top: 6px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 19px 0; display: flex; justify-content: space-between; font-size: 16px; }
summary::-webkit-details-marker { display: none; }
summary span { font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary span { transform: rotate(180deg); }
details p { padding: 0 0 20px; margin: 0; color: var(--muted); font-size: 14px; }

.contact { padding-block: 100px 96px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; align-items: start; }
.contact-form { border: 1px solid #cfc5bc; padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 14px; margin-bottom: 17px; }
input, textarea, select { display: block; width: 100%; border: 1px solid #aaa099; background: var(--paper); color: var(--ink); padding: 12px 14px; margin-top: 7px; outline: none; border-radius: 0; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
textarea { min-height: 86px; resize: vertical; }
.submit-button { width: 100%; margin-top: 2px; justify-content: center; }
.form-status { min-height: 22px; color: #4e6548; font-size: 13px; margin: 10px 0 0; }
.contact-copy { padding-top: 12px; }
.contact-copy h2 { font-size: clamp(40px, 4.8vw, 68px); margin-bottom: 26px; }
.contact-copy > p:not(.eyebrow):not(.contact-note) { color: var(--muted); font-size: 18px; }
.contact-note { color: #999089; font-size: 14px; }
.contact-links { display: flex; gap: 28px; margin-top: 35px; }
.contact-links a { font-size: 16px; }
.contact-links span { font-size: 23px; margin-inline-end: 7px; vertical-align: -2px; }

.keyword-links { padding-block: 110px 120px; }
.keyword-links h2 { max-width: 620px; margin-bottom: 38px; }
.keyword-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.keyword-cloud a {
  border: 1px solid var(--line);
  padding: 9px 16px;
  color: var(--muted);
  font-size: 14px;
  transition: color .2s, background .2s, border-color .2s;
}
.keyword-cloud a:hover {
  color: var(--paper);
  background: var(--dark);
  border-color: var(--dark);
}
.map-section { padding-block: 110px 120px; }
.map-frame {
  position: relative;
  height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--tint);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-fallback {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 9px 13px;
  color: var(--ink);
  background: rgba(248, 247, 243, .94);
  border: 1px solid var(--line);
  font-size: 12px;
}
.map-fallback a { border-bottom: 1px solid var(--ink); }
.map-actions { display: flex; gap: 12px; margin-top: 18px; }
.map-actions .button { min-width: 190px; }

.site-footer { background: var(--dark); color: #eee9e3; padding-block: 32px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 30px; }
.footer-brand .brand-mark { color: #eee9e3; }
.footer-brand small { color: #88817b; }
.footer-inner > p { color: #b3aaa2; font-size: 14px; text-align: center; margin: 0; }
.footer-inner > div { text-align: left; }
.footer-inner > div a { display: block; font-size: 14px; }
.footer-inner > div small { display: block; color: #88817b; font-size: 12px; margin-top: 5px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 14px;
  color: #b3aaa2;
  font-size: 12px;
}
.footer-links a:hover { color: #fff; }
.floating-actions {
  position: fixed;
  z-index: 40;
  inset-inline-start: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  direction: ltr;
}
.floating-actions a {
  position: relative;
  height: 72px;
  min-width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(7, 70, 60, .38), 0 0 0 1px rgba(7, 70, 60, .18);
  transition: transform .2s, box-shadow .2s, filter .2s, padding .3s;
}
.floating-actions a:hover { transform: translateY(-3px) scale(1.04); filter: brightness(1.06); }
.floating-actions a:focus-visible { outline: 3px solid #11110f; outline-offset: 4px; }
.floating-actions svg { width: 40px; height: 40px; fill: currentColor; flex: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.floating-whatsapp {
  background: linear-gradient(145deg, #34e89a 0%, #0fb36d 48%, #0a6f63 100%);
  animation: wa-soft-pulse 2.8s ease-out infinite;
}
.floating-whatsapp::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid rgba(15,179,109,.5);
  border-radius: inherit;
  pointer-events: none;
  animation: wa-pulse-ring 2.8s ease-out infinite;
}
.floating-whatsapp .wa-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  opacity: 0;
  transition: max-width .3s, opacity .25s, margin .3s;
}
.floating-whatsapp:hover .wa-label, .floating-whatsapp:focus-visible .wa-label { max-width: 150px; opacity: 1; margin-inline: 4px 14px; }
@keyframes wa-soft-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(7,70,60,.38), 0 0 0 0 rgba(15,179,109,.28); }
  50% { box-shadow: 0 14px 34px rgba(7,70,60,.44), 0 0 0 7px rgba(15,179,109,.10); }
}
@keyframes wa-pulse-ring {
  0% { transform: scale(.94); opacity: .8; }
  75%, 100% { transform: scale(1.28); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-whatsapp, .floating-whatsapp::before { animation: none; }
  .floating-actions a, .floating-whatsapp .wa-label { transition: none; }
}
.lightbox-open { overflow: hidden; }
.image-lightbox {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(10, 10, 9, .9);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.image-lightbox.is-open { opacity: 1; visibility: visible; }
.image-lightbox figure { position: relative; max-width: min(1000px, 92vw); max-height: 90vh; margin: 0; }
.image-lightbox img { width: auto; max-width: 100%; max-height: 82vh; object-fit: contain; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.image-lightbox figcaption { margin-top: 12px; color: #fff; text-align: center; font-size: 14px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-close { top: 18px; inset-inline-end: 22px; font-size: 26px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 25px; }
.lightbox-prev { inset-inline-start: 22px; }
.lightbox-next { inset-inline-end: 22px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); }
.article-hero { padding-block: 175px 90px; }
.article-hero h1 { font-size: clamp(50px, 7vw, 96px); margin: 12px 0 28px; }
.article-hero h1 em { font-style: normal; }
.article-lead { max-width: 820px; color: var(--muted); font-size: 19px; line-height: 2; }
.article-list { display: grid; gap: 20px; padding-block: 20px 110px; }
.article-card { padding: clamp(24px, 4vw, 54px); border: 1px solid var(--line); background: #fffdfa; }
.article-card h2 { max-width: 740px; margin: 8px 0 25px; font-size: clamp(30px, 4vw, 52px); }
.article-card p { max-width: 1000px; color: var(--muted); font-size: 17px; line-height: 2.05; }
.article-card p:last-child { margin-bottom: 0; }
.article-card a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.keyword-section { padding-block: 100px 115px; }
.keyword-section h2 { margin-bottom: 18px; }
.keyword-intro { max-width: 650px; color: var(--muted); font-size: 17px; }
.keyword-cloud-large { margin-top: 35px; }
.keyword-cloud-large a { font-size: 14px; }
.site-map-page { padding-block: 175px 130px; background: var(--paper); }
.site-map-page h1 { font-size: clamp(55px, 7vw, 100px); margin: 12px 0 24px; }
.site-map-page h1 em { font-style: normal; }
.site-map-intro { max-width: 760px; color: var(--muted); font-size: 18px; line-height: 2; }
.site-map-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 55px;
}
.site-map-links a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fffdfa;
  transition: color .2s, background .2s, transform .2s;
}
.site-map-links a:hover { color: var(--paper); background: var(--dark); transform: translateY(-2px); }
.site-map-links strong { font-size: 20px; font-weight: 500; }
.site-map-links span { color: var(--muted); font-size: 14px; }
.site-map-links a:hover span { color: #c4bcb4; }

/* Homepage full-bleed layout: backgrounds and hero touch both viewport edges. */
.homepage .section-shell {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
.homepage .site-header {
  width: 100%;
  max-width: none;
  padding-inline: max(34px, calc((100vw - var(--max)) / 2));
}
.homepage .intro,
.homepage .process,
.homepage .work,
.homepage .faq,
.homepage .contact,
.homepage .keyword-links,
.homepage .map-section,
.homepage .site-map-page > .section-shell {
  padding-inline: max(34px, calc((100vw - var(--max)) / 2));
}
.homepage .services > .section-shell,
.homepage .coverage > .section-shell,
.homepage .footer-inner {
  padding-inline: max(34px, calc((100vw - var(--max)) / 2));
}

@media (max-width: 900px) {
  .section-shell, .site-header { width: min(calc(100% - 40px), var(--max)); }
  .main-nav { gap: 20px; margin-inline-end: 25px; }
  .hero { min-height: 0; }
  .hero-copy { padding: 55px 35px; }
  .hero-image { min-height: 520px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery figure { height: 245px; }
}

@media (max-width: 640px) {
  .section-shell, .site-header { width: calc(100% - 34px); }
  .site-header { height: 75px; }
  .homepage .site-header { padding-inline: 17px; }
  .homepage .intro,
  .homepage .process,
  .homepage .work,
  .homepage .faq,
  .homepage .contact,
  .homepage .keyword-links,
  .homepage .map-section,
  .homepage .site-map-page > .section-shell,
  .homepage .services > .section-shell,
  .homepage .coverage > .section-shell,
  .homepage .footer-inner { padding-inline: 17px; }
  .floating-clock { top: 86px; inset-inline-start: auto; inset-inline-end: 10px; min-width: 143px; padding: 7px 8px; }
  .floating-clock small { font-size: 8px; }
  .main-nav { display: none; }
  .header-cta {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    margin-inline-end: 10px;
    white-space: nowrap;
  }
  .menu-toggle { display: block; }
  .site-header.nav-open .main-nav { position: absolute; top: 68px; inset-inline: 0; display: flex; flex-direction: column; gap: 0; background: var(--paper); border: 1px solid var(--line); padding: 8px 18px; margin: 0; }
  .site-header.nav-open .main-nav a { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .site-header.nav-open .main-nav a:last-child { border: 0; }
  .hero { display: flex; flex-direction: column-reverse; padding-top: 75px; }
  .hero-image { min-height: 390px; }
  .hero-copy { padding: 47px 27px 56px; }
  .hero h1 { font-size: 57px; }
  .hero-lead { font-size: 16px; line-height: 1.9; }
  .coverage-map { min-height: 210px; }
  .coverage-map p { font-size: 10px; }
  .button { min-width: 0; flex: 1; padding-inline: 12px; }
  .intro, .process-layout, .coverage-layout, .faq, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .intro { padding-block: 80px; }
  .intro-copy { padding-top: 0; font-size: 16px; }
  .services, .work { padding-block: 76px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 35px; }
  .section-heading > p { font-size: 16px; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .service-card { min-height: 350px; padding: 17px 15px 19px; }
  .service-card h3 { margin-top: 28px; font-size: 19px; }
  .service-card p { font-size: 13px; line-height: 1.75; }
  .process { padding-block: 76px; }
  .process-title > p:last-child { font-size: 16px; }
  .work-heading { margin-bottom: 28px; }
  .filters { overflow-x: auto; justify-content: flex-start; padding-bottom: 5px; }
  .filter { white-space: nowrap; padding-inline: 16px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery figure { height: 220px; }
  .gallery figcaption { inset-inline: 12px; bottom: 12px; font-size: 15px; }
  .coverage { padding-block: 75px; }
  .coverage-copy { font-size: 16px; }
  .faq { padding-block: 76px 85px; }
  .contact { padding-block: 70px; }
  .keyword-links, .map-section { padding-block: 76px; }
  .map-frame { height: 290px; }
  .map-fallback { align-items: flex-start; flex-direction: column; gap: 4px; }
  .site-map-page { padding-block: 120px 80px; }
  .site-map-links { grid-template-columns: 1fr; margin-top: 35px; }
  .map-actions { flex-direction: column; }
  .map-actions .button { width: 100%; }
  .contact-form { padding: 19px; }
  .form-row { gap: 9px; }
  .contact-copy { order: -1; }
  .contact-links { margin-top: 25px; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .footer-inner > p, .footer-inner > div { text-align: right; }
  .floating-actions { inset-inline-start: 14px; bottom: 14px; }
  .floating-actions a { height: 64px; min-width: 64px; }
  .floating-actions svg { width: 36px; height: 36px; }
  .floating-whatsapp .wa-label { display: none; }
  .image-lightbox { padding: 18px; }
  .lightbox-prev, .lightbox-next { width: 36px; height: 36px; }
  .lightbox-prev { inset-inline-start: 9px; }
  .lightbox-next { inset-inline-end: 9px; }
  .lightbox-close { inset-inline-end: 10px; }
  .article-hero { padding-block: 125px 55px; }
  .article-hero h1 { font-size: 55px; }
  .article-lead { font-size: 16px; }
  .article-card p { font-size: 16px; line-height: 1.95; }
  .keyword-section { padding-block: 75px 85px; }
}
/* SEO content expansion: wider reading area while preserving the existing palette and typography. */
.seo-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:34px 0 48px}
.seo-facts>div{border:1px solid var(--line);background:#fffdfa;padding:20px 22px}
.seo-facts strong{display:block;font-size:17px;margin-bottom:5px}
.seo-facts span{display:block;color:var(--muted);font-size:14px;line-height:1.9}
.customer-questions{margin-top:55px;padding:34px;border:1px solid var(--line);background:#fffdfa}
.customer-questions h2{margin-bottom:18px}
.customer-questions details{border-top:1px solid var(--line);padding:4px 0}
.customer-questions details:first-of-type{border-top:0}
.customer-questions summary{font-weight:500}
@media (max-width:900px){.seo-facts{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.seo-facts{grid-template-columns:1fr}.customer-questions{padding:22px}}


/* صور حديثة من أعمال قمم الحماية */
.recent-works{margin:26px auto 34px;max-width:1280px;padding:0 4%;}
.recent-works-head{margin-bottom:14px;}
.recent-works-head .eyebrow{margin-bottom:6px;}
.recent-works-head h2{margin:0;font-size:clamp(22px,3vw,32px);}
.recent-works-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.recent-works figure{margin:0;border:1px solid rgba(30,35,40,.12);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.06);}
.recent-works img{display:block;width:100%;height:260px;object-fit:cover;}
.recent-works figcaption{padding:12px 14px 15px;font-size:13px;line-height:1.8;color:#30343a;}
@media(max-width:800px){.recent-works-grid{grid-template-columns:1fr 1fr}.recent-works img{height:220px;}}
@media(max-width:520px){.recent-works-grid{grid-template-columns:1fr}.recent-works img{height:260px;}}


/* Competitive SEO layer: project evidence, service depth and conversion blocks */
.competitive-proof{margin:34px auto 0;max-width:1280px}
.competitive-proof .proof-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.proof-card,.process-card,.decision-card{padding:22px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(255,255,255,.035)}
.proof-card h3,.process-card h3,.decision-card h3{margin:0 0 9px;font-size:1.05rem}
.proof-card p,.process-card p,.decision-card p{margin:0;line-height:1.85}
.project-evidence{margin:45px auto;max-width:1280px}
.project-evidence .project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.project-evidence figure{margin:0;overflow:hidden;border-radius:18px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.1)}
.project-evidence img{display:block;width:100%;height:260px;object-fit:cover}
.project-evidence figcaption{padding:14px 16px;line-height:1.7}
.process-grid,.decision-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.internal-cta{margin:42px auto;padding:28px;border-radius:22px;max-width:1100px;border:1px solid rgba(255,255,255,.14);background:linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.025));text-align:center}
.internal-cta p{max-width:800px;margin:10px auto 20px;line-height:1.9}
.internal-cta .cta-links{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.internal-cta a{display:inline-block;padding:11px 18px;border-radius:999px;border:1px solid rgba(255,255,255,.18);text-decoration:none}
@media(max-width:800px){.competitive-proof .proof-grid,.project-evidence .project-grid,.process-grid,.decision-grid{grid-template-columns:1fr}.project-evidence img{height:230px}}


/* QIMAM COMPETITIVE SEO V4 - content layer */
.qimam-content-block{margin:64px auto;max-width:1280px}
.qimam-content-block .section-heading{margin-bottom:24px}
.qimam-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.qimam-card{padding:22px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(255,255,255,.035);line-height:1.9}
.qimam-card h3{margin:0 0 10px;font-size:1.15rem}
.qimam-card p{margin:0}
.qimam-list-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.qimam-list-card{padding:20px;border-radius:16px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.025);line-height:1.9}
.qimam-list-card strong{display:block;margin-bottom:6px}
.qimam-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}
.qimam-checklist span{display:block;padding:11px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.1);line-height:1.7}
.qimam-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.qimam-links a{padding:10px 15px;border:1px solid rgba(255,255,255,.14);border-radius:999px;text-decoration:none}
@media(max-width:800px){.qimam-card-grid,.qimam-list-grid,.qimam-checklist{grid-template-columns:1fr}.qimam-content-block{margin:44px auto}}

/* تحسين وضوح الخط العربي مع الحفاظ على الهوية والتخطيط الحاليين */
html { text-rendering: optimizeLegibility; }
body {
  font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  font-weight: 400;
}
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: 0;
}
.hero h1 { line-height: 1.25; }
.brand strong, .button, .header-cta, .main-nav { font-weight: 600; }

.keyword-intent { padding-block: 105px; }
.keyword-intent > h2 { max-width: 820px; margin-bottom: 20px; }
.keyword-intent-lead { max-width: 880px; color: var(--muted); font-size: 18px; line-height: 2; }
.keyword-intent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.keyword-intent-grid article { border-top: 1px solid var(--ink); padding: 22px 0 0; }
.keyword-intent-grid h3 { margin-bottom: 10px; font-size: 21px; }
.keyword-intent-grid p { color: var(--muted); font-size: 15px; line-height: 1.9; }
@media (max-width: 900px) { .keyword-intent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .keyword-intent { padding-block: 72px; }
  .keyword-intent-grid { grid-template-columns: 1fr; }
  .keyword-intent-lead { font-size: 16px; }
}


/* Language switch (Arabic / English) */
.lang-switch {
  display: inline-flex; align-items: center; gap: 7px;
  margin-inline-start: 18px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px; font-weight: 700; line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  background: transparent;
  transition: background .2s, color .2s;
}
.lang-switch:hover { background: var(--ink); color: #fff; opacity: 1; }
.lang-switch span { font-size: 15px; }
.site-header .header-cta { margin-inline-start: 18px; }
@media (max-width: 640px) {
  .lang-switch { margin-inline-start: auto; margin-inline-end: 8px; padding: 7px 11px; font-size: 12px; }
  .lang-switch span { display: none; }
  .site-header .header-cta { margin-inline-start: 0; }
}

/* English pages (LTR) */
html[lang="en"] body { font-family: "Inter", "Tajawal", Tahoma, sans-serif; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -.025em; }
html[lang="en"] .main-nav { margin-inline-start: auto; margin-inline-end: 24px; gap: 26px; }
html[lang="en"] .floating-clock { direction: ltr; }
html[lang="en"] .hero h1, html[lang="en"] .hero-copy h1 { font-size: clamp(34px, 4.2vw, 62px); line-height: 1.12; }
html[lang="en"] .intro-title h2, html[lang="en"] .section-heading h2, html[lang="en"] .process-title h2, html[lang="en"] .faq-title h2, html[lang="en"] .contact-copy h2, html[lang="en"] .coverage h2 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1.15; }
.en-page .hero-copy { padding-inline: clamp(34px, 6vw, 90px); }

/* Call-us floating icon: amber, pulsing, distinct from WhatsApp */
.floating-call {
  background: linear-gradient(145deg, #ffcf4a 0%, #ff9a1f 52%, #e8590c 100%);
  animation: call-pulse 2.2s ease-out infinite;
  box-shadow: 0 12px 30px rgba(232, 89, 12, .38), 0 0 0 1px rgba(232, 89, 12, .18);
}
.floating-call::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid rgba(255,154,31,.55);
  border-radius: inherit;
  pointer-events: none;
  animation: wa-pulse-ring 2.2s ease-out infinite;
}
.floating-call svg { animation: call-ring 2.2s ease-in-out infinite; transform-origin: 50% 60%; }
.floating-call .wa-label { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 15px; font-weight: 700; opacity: 0; transition: max-width .3s, opacity .25s, margin .3s; }
.floating-call:hover .wa-label, .floating-call:focus-visible .wa-label { max-width: 150px; opacity: 1; margin-inline: 4px 14px; }
@keyframes call-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(232,89,12,.38), 0 0 0 0 rgba(255,154,31,.35); }
  50% { box-shadow: 0 14px 34px rgba(232,89,12,.46), 0 0 0 8px rgba(255,154,31,.10); }
}
@keyframes call-ring {
  0%, 60%, 100% { transform: rotate(0); }
  66% { transform: rotate(-14deg); } 72% { transform: rotate(12deg); } 78% { transform: rotate(-10deg); } 84% { transform: rotate(8deg); } 90% { transform: rotate(0); }
}
@media (max-width: 640px) { .floating-call .wa-label { display: none; } .floating-actions { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .floating-call, .floating-call::before, .floating-call svg { animation: none; } }

/* Keyword hub on homepage */
.kw-hub { margin: 70px auto; }
.kw-hub h2 { margin-bottom: 14px; }
.kw-hub-lead { color: var(--muted); margin-bottom: 30px; }
.kw-hub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.kw-hub-grid h3 { font-size: 18px; font-weight: 500; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.kw-hub-grid ul { list-style: none; margin: 0; padding: 0; }
.kw-hub-grid li { border-bottom: 1px solid var(--line); }
.kw-hub-grid li a { display: block; padding: 9px 0; font-size: 15px; transition: padding .2s, opacity .2s; }
.kw-hub-grid li a:hover { padding-inline-start: 8px; opacity: .65; }
@media (max-width: 960px) { .kw-hub-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kw-hub-grid { grid-template-columns: 1fr; } }
