/* ==========================================================================
   زجاج سيكوريت المدينة — styles
   Self-hosted Tajawal (SIL OFL). No third-party CSS: the Google Fonts
   stylesheet was render-blocking on a separate host and cost ~1s of FCP
   on Saudi cellular.
   ========================================================================== */

@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/tajawal-arabic-400.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/tajawal-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/tajawal-arabic-700.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/tajawal-latin-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0f1720;
  --ink-soft: #46546a;
  --line: #dde4ec;
  /* Control boundaries need 3:1 (WCAG 1.4.11); --line is decorative only. */
  --line-strong: #6d7684;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --accent: #0d6c8a;
  --accent-dark: #084f66;
  --accent-soft: #e6f2f6;
  /* #15803d gives white text 5.02:1; the old #1faf54 was 2.87:1 and failed AA. */
  --wa: #15803d;
  --wa-dark: #126632;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 32, .06), 0 8px 24px rgba(15, 23, 32, .07);
  --wrap: 1140px;
  --font: 'Tajawal', 'Segoe UI', 'Noto Naskh Arabic', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: 96px;   /* sticky header must not cover anchors */
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  z-index: 100;
  transform: translateY(-130%);
  background: var(--accent-dark);
  color: #fff;
  padding: 12px 20px;
  border-end-end-radius: 10px;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); text-decoration: none; }
main:focus { outline: none; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.04rem;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 45px; object-fit: contain; }

.nav {
  display: flex;
  gap: 2px;
  margin-inline-start: auto;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink-soft);
  padding: 8px 11px;
  border-radius: 8px;
  font-size: .96rem;
}
.nav a:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent-dark); background: var(--accent-soft); font-weight: 700; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  padding: 10px 17px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
}
.header-cta:hover { background: var(--accent-dark); text-decoration: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 27px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  min-height: 48px;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-alt); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 32, .55), rgba(15, 23, 32, .8));
}

.hero .wrap {
  position: relative;
  z-index: 2;
  padding-block: 88px 78px;
}

.hero h1 {
  font-size: clamp(1.95rem, 4.6vw, 3.05rem);
  line-height: 1.24;
  margin: 0 0 16px;
  letter-spacing: -.01em;
  max-width: 20ch;
}

.hero p.lead {
  font-size: clamp(1.06rem, 2.2vw, 1.28rem);
  margin: 0 0 30px;
  max-width: 54ch;
  color: #dfe8f0;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Legal entity line under the hero CTAs. Muted, but on the first screen —
   the trade name is what customers search, the establishment is who they
   actually contract with. */
.hero-legal {
  margin: 22px 0 0;
  font-size: .93rem;
  color: #b9c7d4;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: 14px;
  max-width: 46ch;
}
.hero-plain .hero-legal { color: var(--ink-soft); border-top-color: var(--line); }

.legal-name {
  margin: 10px 0 0;
  font-size: .9rem;
  color: #9fb0c0;
  line-height: 1.6;
}

/* page hero without a photo */
.hero-plain {
  background: linear-gradient(180deg, var(--accent-soft), #fff);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero-plain::after { display: none; }
.hero-plain .wrap { padding-block: 56px 48px; }
.hero-plain p.lead { color: var(--ink-soft); }

/* ---------- trust bar ---------- */

.trust-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.trust-bar ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4px 28px;
  list-style: none;
  margin: 0;
  padding-block: 18px;
}
.trust-bar li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: .97rem;
}
.trust-bar svg { width: 21px; height: 21px; color: var(--accent); flex: none; }
.trust-bar b { color: var(--ink); font-weight: 700; }

/* ---------- sections ---------- */

.section { padding-block: 64px; }
.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  margin: 0 0 10px;
  line-height: 1.3;
}

.section > .wrap > p.sub {
  color: var(--ink-soft);
  margin: 0 0 34px;
  max-width: 64ch;
  font-size: 1.05rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--ink-soft); }

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-soft); }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.card-icon svg { width: 25px; height: 25px; }

/* service card with a photo */
.svc {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
}
a.svc:hover { text-decoration: none; border-color: var(--accent); }
a.svc:hover h3 { color: var(--accent-dark); }
.svc img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-alt);
}
.svc-body { padding: 22px 24px 26px; }
.svc h3 { margin: 0 0 8px; font-size: 1.18rem; }
.svc p { margin: 0 0 12px; color: var(--ink-soft); font-size: .99rem; }
.svc .more { font-weight: 700; color: var(--accent); font-size: .96rem; }

/* ---------- facts ---------- */

.facts {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.fact {
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.fact .k { font-size: 1.42rem; font-weight: 700; color: var(--accent-dark); line-height: 1.3; }
.fact .v { color: var(--ink-soft); margin-top: 4px; font-size: .98rem; }

/* ---------- steps ---------- */

.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
}
.step::before {
  counter-increment: step;
  content: counter(step, arabic-indic);
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .99rem; }

/* ---------- work gallery ---------- */

.work {
  columns: 3 280px;
  column-gap: 18px;
}
.work figure {
  break-inside: avoid;
  margin: 0 0 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.work img { width: 100%; height: auto; background: var(--bg-alt); }
.work figcaption {
  padding: 13px 16px 15px;
  font-size: .95rem;
  color: var(--ink-soft);
}
.work figcaption b { display: block; color: var(--ink); font-weight: 700; margin-bottom: 2px; }

/* fixed-ratio strip used on the homepage */
.strip { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.strip figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.strip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--bg-alt); }
.strip figcaption { padding: 12px 14px; font-size: .92rem; color: var(--ink-soft); }

/* ---------- faq ---------- */

.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 22px 20px; color: var(--ink-soft); }
.faq .answer p { margin: 0; }

/* ---------- contact ---------- */

.contact-layout {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .96rem; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  min-height: 48px;
}
.field textarea { min-height: 132px; resize: vertical; }

.form-note { color: var(--ink-soft); font-size: .92rem; margin: 14px 0 0; }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: 0; }
.info-list .k { font-weight: 700; min-width: 7rem; flex: none; }
.info-list .v { color: var(--ink-soft); }

/* ---------- cta band ---------- */

.cta-band {
  background: var(--accent-dark);
  color: #fff;
  padding-block: 54px;
  text-align: center;
}
.cta-band h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 1.95rem); }
.cta-band p { margin: 0 0 24px; color: #d6ebf3; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-ghost { background: #fff; color: var(--accent-dark); border-color: #fff; }
.cta-band .btn-ghost:hover { background: #eaf6fa; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #c9d4e0;
  padding-block: 46px 26px;
  font-size: .96rem;
}
.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 30px;
}
.site-footer h3 { color: #fff; margin: 0 0 12px; font-size: 1.02rem; }
.site-footer a { color: #93d3e8; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { width: 168px; height: auto; margin-bottom: 14px; }
.copyright {
  border-top: 1px solid #22303e;
  padding-top: 18px;
  color: #8fa0b1;
  font-size: .9rem;
  text-align: center;
}

/* ---------- mobile action bar ----------
   Replaces the old floating disc, which sat on top of the contact form and
   stole taps meant for the message field. */

.action-bar {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 60;
  display: none;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.action-bar .btn { flex: 1; padding-inline: 12px; font-size: .98rem; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .work { columns: 2 220px; }
}

@media (max-width: 820px) {
  .hero .wrap { padding-block: 60px 54px; }
  .section { padding-block: 48px; }
  .site-header .wrap { flex-wrap: wrap; min-height: 0; padding-block: 12px; gap: 10px; }
  .nav { margin-inline-start: 0; order: 3; width: 100%; gap: 0; }
  .nav a { padding: 8px 9px; font-size: .92rem; }
  .header-cta { margin-inline-start: auto; }

  .action-bar { display: flex; }
  /* keep the bar clear of page content */
  body { padding-block-end: 78px; }
  .site-footer { padding-block-end: 34px; }
}

@media (max-width: 560px) {
  .work { columns: 1; }
  .hero h1 { font-size: 1.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
  .site-header, .action-bar, .cta-band { display: none; }
}
