/* Tech Guard - single stylesheet. Logical properties throughout so RTL (Arabic) and LTR (English) share one file. */

/* ---------- Fonts (self-hosted, subsetted by script) ---------- */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --bg-alt: #eaf0f7;
  --surface: #ffffff;
  --text: #0b1726;
  --text-muted: #435468;
  --border: #d5dee9;
  --border-strong: #7a8ca3;
  --primary: #0a58ca;
  --primary-hover: #084298;
  --on-primary: #ffffff;
  --primary-soft: #e3eeff;
  --accent: #0891b2;
  --focus: #0a58ca;
  --danger: #b42318;
  --wa: #25d366;
  --wa-hover: #1fbd5b;
  --on-wa: #04210f;
  --glow: rgba(10, 88, 202, 0.14);
  --grid: rgba(11, 23, 38, 0.06);
  --shadow: 0 1px 2px rgba(11, 23, 38, 0.06), 0 8px 24px rgba(11, 23, 38, 0.07);
  --header-bg: rgba(246, 248, 251, 0.85);

  --radius: 1rem;
  --radius-sm: 0.75rem;
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #060d1a;
    --bg-alt: #0a1424;
    --surface: #0e1b30;
    --text: #e8eef7;
    --text-muted: #9fb2ca;
    --border: #1f3352;
    --border-strong: #6f88a8;
    --primary: #22d3ee;
    --primary-hover: #67e8f9;
    --on-primary: #03121c;
    --primary-soft: rgba(34, 211, 238, 0.12);
    --accent: #22d3ee;
    --focus: #67e8f9;
    --danger: #ff8f85;
    --glow: rgba(34, 211, 238, 0.16);
    --grid: rgba(159, 178, 202, 0.07);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(6, 13, 26, 0.85);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060d1a;
  --bg-alt: #0a1424;
  --surface: #0e1b30;
  --text: #e8eef7;
  --text-muted: #9fb2ca;
  --border: #1f3352;
  --border-strong: #6f88a8;
  --primary: #22d3ee;
  --primary-hover: #67e8f9;
  --on-primary: #03121c;
  --primary-soft: rgba(34, 211, 238, 0.12);
  --accent: #22d3ee;
  --focus: #67e8f9;
  --danger: #ff8f85;
  --glow: rgba(34, 211, 238, 0.16);
  --grid: rgba(159, 178, 202, 0.07);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(6, 13, 26, 0.85);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* Must beat every `display` rule below: the form, the success card and the
   error messages are shown and hidden with the `hidden` attribute alone. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--primary); text-underline-offset: 0.2em; }
a:hover { color: var(--primary-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

.container { width: min(100% - 2rem, 72rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { inset-block-start: 0.75rem; }

section[id] { scroll-margin-top: 5rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn-lg { min-height: 3.25rem; padding-inline: 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-wa { background: var(--wa); color: var(--on-wa); }
.btn-wa:hover { background: var(--wa-hover); color: var(--on-wa); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--text); border-color: var(--primary); }
.btn[disabled] { opacity: 0.65; cursor: progress; }

@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: translateY(1px); }
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--primary); }
.icon-btn .icon { width: 1.35rem; height: 1.35rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 0.75rem; min-height: 4rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.brand:hover { color: var(--text); }
.logo { width: 2.5rem; height: 2.5rem; flex: none; }

.site-nav ul { display: flex; gap: 0.25rem; }
.site-nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { background: var(--primary-soft); color: var(--text); }
.site-nav li:last-child a { background: var(--primary); color: var(--on-primary); }
.site-nav li:last-child a:hover { background: var(--primary-hover); color: var(--on-primary); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-inline-start: auto; }
.btn-call { display: none; }
.lang-switch {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.lang-switch:hover { border-color: var(--primary); color: var(--text); }

/* Theme toggle: show the icon of the mode you would switch TO. */
.theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* Mobile menu (only collapses when JS is available) */
.menu-toggle .i-close { display: none; }
.site-header.nav-open .menu-toggle .i-menu { display: none; }
.site-header.nav-open .menu-toggle .i-close { display: block; }

@media (max-width: 59.99rem) {
  .header-inner { position: relative; }
  .js .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    padding: 0.75rem 1rem 1rem;
    background: var(--surface);
    border-block-end: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .js .site-header.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 0.8rem 0.9rem; }
  .no-js .menu-toggle { display: none; }
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .site-nav { order: 3; width: 100%; padding-block-end: 0.5rem; }
  .no-js .site-nav ul { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 60rem) {
  .menu-toggle { display: none; }
  .site-nav { margin-inline: auto; }
  .btn-call { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(55rem 28rem at 85% -10%, var(--glow), transparent 65%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 35%, #000 0, transparent 72%);
  mask-image: radial-gradient(ellipse at 70% 35%, #000 0, transparent 72%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.eyebrow {
  display: inline-block;
  margin-block-end: 1rem;
  padding: 0.25rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--surface);
}
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.2; margin-block-end: 1.1rem; }
.lead { color: var(--text-muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 40rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 1.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-start: 1.75rem; }
.chips li {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}
.hero-art { max-width: 32rem; width: 100%; margin-inline: auto; }
.hero-svg { width: 100%; height: auto; filter: drop-shadow(0 18px 40px var(--glow)); }

/* Camera-feed hero. The monitor screen stays dark in both themes, like a real one. */
.feed-frame { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.feed-screen { fill: #06101e; }
.feed-line { fill: none; stroke: #2a4c75; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feed-person { fill: #8fb3d9; opacity: 0.75; }
.feed-detect { fill: none; stroke: #22d3ee; stroke-width: 2.5; stroke-linecap: round; }
.feed-tag text, .feed-label { font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; letter-spacing: 0.04em; }
.feed-tag rect { fill: #22d3ee; }
.feed-tag text { fill: #04121c; font-size: 8px; font-weight: 700; }
.feed-label { fill: #d6ecff; font-size: 11px; font-weight: 600; }
.feed-small { font-size: 9px; opacity: 0.85; }
.feed-rec { fill: #ef4444; }

@media (prefers-reduced-motion: no-preference) {
  .feed-scan { animation: sweep 5s linear infinite; }
  .feed-rec { animation: blink 1.6s ease-in-out infinite; }
  .feed-detect, .feed-tag { animation: blink 2.4s ease-in-out infinite; }
  @keyframes sweep { from { transform: translateY(-44px); } to { transform: translateY(196px); } }
  @keyframes blink { 50% { opacity: 0.3; } }
}

@media (min-width: 60rem) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.25rem, 8vw, 5.5rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 42rem; margin-block-end: 2.25rem; }
.section-head h2, .contact-info h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); margin-block-end: 0.6rem; }
.section-head p { color: var(--text-muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.grid { display: grid; gap: 1.1rem; }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

.service-card { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.service-card h3 { font-size: 1.15rem; }
.service-card p { color: var(--text-muted); font-size: 1rem; }

/* The one service the business leads with. The ring is drawn with an inset
   shadow rather than a thicker border so the card does not change size. */
.service-featured { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary), var(--shadow); }
.service-featured .service-icon { background: var(--primary); color: var(--on-primary); }
.service-badge {
  align-self: start;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.service-icon, .why-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: var(--primary-soft);
  color: var(--primary);
}
.service-icon .icon, .why-icon .icon { width: 1.6rem; height: 1.6rem; }
.service-cta { justify-content: center; align-items: flex-start; background: var(--primary-soft); border-color: transparent; box-shadow: none; }
.service-cta .btn { margin-block-start: 0.4rem; }

@media (prefers-reduced-motion: no-preference) {
  .service-card { transition: transform 0.2s, border-color 0.2s; }
  .service-card:hover { transform: translateY(-3px); border-color: var(--primary); }
}

/* Why us */
.why-layout { display: grid; gap: 2rem; }
.why-list { display: grid; gap: 1.5rem; }
.why-list li { display: flex; gap: 1rem; align-items: flex-start; }
.why-list h3 { font-size: 1.12rem; margin-block-end: 0.15rem; }
.why-list p { color: var(--text-muted); }
.stats { display: grid; gap: 0.9rem; align-content: start; }
.stat { display: flex; flex-direction: column; padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-value { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; color: var(--primary); }
.stat-label { color: var(--text-muted); }
@media (min-width: 60rem) {
  .why-layout { grid-template-columns: 1.3fr 0.7fr; gap: 3.5rem; }
}

/* Brands */
.brands { padding-block: 2.5rem; border-block: 1px solid var(--border); }
.brands-title { font-size: 1rem; font-weight: 600; color: var(--text-muted); text-align: center; margin-block-end: 1.1rem; }
.brand-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.brand-list li {
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-list .brand-more { background: transparent; border-style: dashed; color: var(--text-muted); font-weight: 600; }

/* Logo chips stay white in both themes: these are full-colour marks drawn for
   a light background, and several are near-black, so a dark chip would swallow
   them. The white margin is baked into each image, not added here, so no logo
   can touch its edge however wide the wordmark is. */
.brand-logo {
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  display: grid;
  place-items: center;
}
.brand-logo img {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: 9.5rem;
  object-fit: contain;
}

/* Gallery */
.gallery-grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.shot { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  border: 2px dashed var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  text-align: center;
}
.shot-placeholder .icon { width: 2.5rem; height: 2.5rem; }
.shot-placeholder figcaption { display: grid; gap: 0.1rem; }
.shot-placeholder strong { color: var(--text); }

/* Contact + form */
.contact-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60rem) {
  .contact-layout { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; }
  .contact-info { position: sticky; inset-block-start: 6rem; }
}
.contact-cards { display: grid; gap: 0.75rem; margin-block-start: 1.75rem; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
a.contact-card:hover { border-color: var(--primary); color: var(--text); }
.contact-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.8rem; background: var(--primary-soft); color: var(--primary); flex: none; }
.contact-icon-wa { background: var(--wa); color: var(--on-wa); }
.contact-label { display: block; font-size: 0.9rem; color: var(--text-muted); line-height: 1.4; }
.contact-value { display: block; font-weight: 700; font-size: 1.1rem; line-height: 1.4; }

.form { padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; padding: 0; }
.legend-hint { font-weight: 400; color: var(--text-muted); font-size: 0.95rem; margin-inline-start: 0.4rem; }

input[type="text"], input[type="tel"], textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
}
input[type="tel"] { text-align: start; }
textarea { resize: vertical; min-height: 6.5rem; }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 1; }
input:focus-visible, textarea:focus-visible { outline-offset: 1px; border-color: var(--focus); }
[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.95rem; font-weight: 600; }
.field-error::before { content: "! "; font-weight: 700; }

.choice-grid { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.choice-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 30rem) { .choice-grid-3 { grid-template-columns: 1fr 1.3fr 0.7fr; } }
/* a chip whose text wraps was shorter than its neighbour, leaving ragged rows */
.choice { position: relative; display: grid; }
.choice label { height: 100%; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.choice label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.55rem 0.9rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-weight: 600;
  line-height: 1.35;
}
.choice label::before {
  content: "";
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--border-strong);
  border-radius: 0.3rem;
  background: var(--surface);
}
.choice input[type="radio"] + label::before { border-radius: 50%; }
.choice input:checked + label { border-color: var(--primary); background: var(--primary-soft); }
.choice input:checked + label::before { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px var(--surface); }
.choice input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Honeypot: hidden from people without moving it off-canvas, which in RTL would
   widen the page. Bots still see and fill it. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-status { padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--primary-soft); font-weight: 600; }
.form-note { color: var(--text-muted); font-size: 0.95rem; text-align: center; margin-block-start: -0.25rem; }
.notice { padding: 1rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); margin-block-end: 1rem; }

.success { padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center; display: grid; gap: 0.75rem; justify-items: center; }
.success .cta-row { justify-content: center; }
.success-icon { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--wa); color: var(--on-wa); }
.success-icon .icon { width: 2rem; height: 2rem; }
.success h3 { font-size: 1.5rem; }
.success p { color: var(--text-muted); max-width: 30rem; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 2.5rem 7rem; border-block-start: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner { display: grid; gap: 1.25rem; }
.footer-tagline { color: var(--text-muted); margin-block-start: 0.4rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-weight: 600; }
.footer-links a { color: var(--text); }
.copyright { color: var(--text-muted); font-size: 0.95rem; }
@media (min-width: 48rem) {
  .site-footer { padding-block-end: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .copyright { grid-column: 1 / -1; }
}

/* ---------- Floating contact buttons (mobile only) ---------- */
.fab-group { position: fixed; inset-block-end: 1rem; inset-inline-end: 1rem; z-index: 40; display: flex; flex-direction: column; gap: 0.75rem; }
.fab {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  text-decoration: none;
}
.fab .icon { width: 1.7rem; height: 1.7rem; }
.fab-wa { background: var(--wa); color: var(--on-wa); }
.fab-wa:hover { background: var(--wa-hover); color: var(--on-wa); }
.fab-call { background: var(--primary); color: var(--on-primary); }
.fab-call:hover { background: var(--primary-hover); color: var(--on-primary); }
@media (min-width: 48rem) { .fab-group { display: none; } }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding-block: 3rem; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); margin-block-end: 0.5rem; }
.notfound .lead { margin-inline: auto; }
.notfound-cta { justify-content: center; }

/* ---------- Forced colors / print ---------- */
@media (forced-colors: active) {
  .choice input:checked + label::before { forced-color-adjust: none; }
}
@media print {
  .site-header, .fab-group, .contact-form { display: none; }
}

/* ---------- Phone layout ----------
   On a phone the page ran to roughly nine screens of continuous scrolling,
   with no way to skip ahead: the header nav is behind a hamburger, and two
   floating circles sat on top of the hero artwork. These rules shorten it and
   give the visitor somewhere to tap. Everything here is phone-only; the
   tablet and desktop layouts are untouched. */
@media (max-width: 47.99rem) {

  /* The artwork is the whole first screen on a phone, pushing the buttons
     below the fold. It earns its place on a wider screen, not here. */
  .hero-art { display: none; }

  /* Every chip repeats something the page says elsewhere: the lead already
     names Benghazi, the stats give the years, and the brands have a section. */
  .chips { display: none; }

  /* WhatsApp is permanently on screen in the bar below, so the hero does not
     need a second green button for it. One primary action here, not two. */
  .cta-row .btn-wa { display: none; }

  /* Services become a tile grid, like an app menu. Titles carry the meaning;
     the descriptions are what made this section 2.3 screens tall. The
     featured service keeps its full card across both columns. */
  .services-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .service-card { padding: 1rem 0.85rem; gap: 0.5rem; }
  .service-card h3 { font-size: 1rem; }
  .service-card p { display: none; }
  .service-icon { width: 2.5rem; height: 2.5rem; }
  .service-icon .icon { width: 1.35rem; height: 1.35rem; }
  .service-featured, .service-cta { grid-column: 1 / -1; }
  .service-featured p, .service-cta p { display: block; }

  /* Swipe sideways instead of stacking. Four photos stacked was 1.6 screens. */
  .gallery-grid, .brand-list {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-block-end: 0.5rem;
  }
  .gallery-grid::-webkit-scrollbar, .brand-list::-webkit-scrollbar { display: none; }
  .gallery-grid { grid-auto-columns: 80%; gap: 0.6rem; }
  .brand-list { grid-auto-columns: max-content; gap: 0.5rem; justify-content: start; }
  .gallery-grid > li, .brand-list > li { scroll-snap-align: center; }

  /* One bar along the bottom instead of circles floating over the content. */
  .fab-group {
    inset-inline: 0;
    inset-block-end: 0;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.5rem;
    border-block-start: 1px solid var(--border);
    background: var(--surface);
  }
  .fab {
    flex: 1;
    width: auto;
    height: 3rem;
    grid-auto-flow: column;
    gap: 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
  }
  .fab .icon { width: 1.35rem; height: 1.35rem; }
  /* Room for the bar, so it never covers the last line of the footer. */
  body { padding-block-end: 4rem; }
}

/* Section links under the hero. Only on a phone -- wider screens have the
   real navigation in the header. */
.jump { margin-block-start: 1.5rem; }
.jump ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.jump a { font-size: 0.95rem; }
.jump a {
  display: block;
  padding: 0.7rem 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.jump a:hover { border-color: var(--primary); color: var(--primary); }
@media (min-width: 48rem) { .jump { display: none; } }

/* ---------- The quote form ----------
   Optional fields fold away so the form reads as three short questions
   instead of six. Closed by default; anyone with more to say opens it. */
.more { margin-block-start: 0.25rem; }
.more > summary {
  cursor: pointer;
  padding: 0.6rem 0.2rem;
  color: var(--primary);
  font-weight: 700;
  list-style: none;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  margin-inline-end: 0.5rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  vertical-align: -0.3rem;
}
.more[open] > summary::before { content: "\2212"; }
.more > summary:hover { color: var(--primary-hover); }
.more > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--radius-sm); }

@media (max-width: 47.99rem) {
  /* Two per row. Eight services stacked one per line was 480px, over a third
     of the whole form. */
  .choice-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .choice-grid-3 { grid-template-columns: 1fr 1.35fr 0.8fr; }
  .choice label { min-height: 2.75rem; padding: 0.5rem 0.6rem; font-size: 0.95rem; gap: 0.5rem; }

  /* WhatsApp and Call repeat the number that is already in the bottom bar. */
  .contact-cards .only-wide { display: none; }
}
