/* ==========================================================================
   Care Spotless / لمسات العناية — Design System
   Direction: "Cold Chrome Bay" — dark showroom, chrome/silver accents, deep
   crimson brand accent (matches supplied logo), glass-panel service cards,
   subtle CSS-3D paint-reflection hero. See docs/design-direction.md.
   ========================================================================== */

:root {
  /* Color tokens — Cold Luxury palette (no beige/brass — see design-system.md) */
  --bg-0: #0b0d10;          /* page base, off-black */
  --bg-1: #14171b;          /* section alt */
  --bg-2: #1b1f24;          /* card surface */
  --bg-glass: rgba(255,255,255,0.04);
  --border-hair: rgba(255,255,255,0.10);
  --border-hair-strong: rgba(255,255,255,0.18);

  --text-0: #f4f5f6;        /* primary text, off-white */
  --text-1: #b8bdc4;        /* secondary text */
  --text-2: #7c828b;        /* tertiary / meta */

  --accent: #c81e3a;        /* crimson, from logo */
  --accent-strong: #e42a49;
  --chrome: #9aa3ad;        /* cold silver */
  --chrome-light: #d6dbe1;

  --success: #2fae66;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 30px rgba(0,0,0,0.45);
  --shadow-2: 0 20px 60px rgba(0,0,0,0.55);

  --container: 1240px;
  --gutter: 20px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: 'Outfit', 'Segoe UI', Arial, sans-serif; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; }

/* Focus visibility (a11y) */
:focus-visible {
  outline: 2px solid var(--chrome-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Typography scale ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chrome);
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.18; }
h3 { font-size: 1.25rem; }
.lede { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--text-1); max-width: 60ch; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,13,16,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-hair);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { height: 34px; width: auto; border-radius: 8px; }
.brand-text { font-weight: 800; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap; }
.brand-text small { display: block; font-weight: 500; font-size: 10.5px; color: var(--text-2); letter-spacing: 0.06em; }

.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: 28px; }
.primary-nav a {
  font-size: 14.5px;
  color: var(--text-1);
  transition: color 0.2s var(--ease);
}
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--text-0); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  border: 1px solid var(--border-hair-strong);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text-1);
}
.lang-switch:hover { border-color: var(--chrome-light); color: var(--text-0); }

.menu-toggle {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border-hair-strong);
  border-radius: var(--radius-sm);
}
.menu-toggle svg { width: 18px; height: 18px; }

@media (min-width: 900px) {
  .primary-nav { display: block; }
  .menu-toggle { display: none; }
}

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border-hair);
  background: var(--bg-1);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { padding: 14px var(--gutter) 20px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 12px 4px; font-size: 15.5px; border-bottom: 1px solid var(--border-hair); }
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(200,30,58,0.35);
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent-strong); }
.btn-ghost {
  border: 1px solid var(--border-hair-strong);
  color: var(--text-0);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--chrome-light); background: var(--bg-glass); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 40px 64px;
  border-bottom: 1px solid var(--border-hair);
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}
.hero-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.hero-copy .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(47,174,102,0.18); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow-2);
  perspective: 1200px;
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
}
.hero-visual .sheen {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 60%, rgba(200,30,58,0.10) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-visual .frame {
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  pointer-events: none;
}
.hero-visual .caption {
  position: absolute; inset-inline-start: 16px; bottom: 16px;
  font-size: 12px; color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.14);
}

/* Reduced-motion / no-JS 3D fallback element (a poster tint, always present) */
.hero-3d-fallback {
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 20% 0%, rgba(200,30,58,0.16), transparent 55%);
  pointer-events: none;
}

/* ---------- Section shell ---------- */
section { padding-block: 72px; }
.section-alt { background: var(--bg-1); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; max-width: 62ch; }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-block: 28px;
}
@media (min-width: 720px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px;
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-sm);
  text-align: center;
}
.trust-item strong { font-size: 13.5px; }
.trust-item span { font-size: 12px; color: var(--text-2); }

/* ---------- Services (swipeable carousel) ---------- */
.services-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  margin-bottom: -14px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-hair-strong) transparent;
}
.services-grid::-webkit-scrollbar { height: 6px; }
.services-grid::-webkit-scrollbar-thumb { background: var(--border-hair-strong); border-radius: var(--radius-pill); }

.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border-hair);
  box-shadow: var(--shadow-1);
  transform-style: preserve-3d;
  will-change: transform;
  flex: 0 0 82%;
  scroll-snap-align: start;
}
@media (min-width: 640px) { .service-card { flex-basis: 46%; } }
@media (min-width: 1000px) { .service-card { flex-basis: 31.5%; } }
.service-card .media { aspect-ratio: 4/3; overflow: hidden; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.service-card:hover img { transform: scale(1.06); }
.service-card .body { padding: 18px 18px 20px; }
.service-card .badge {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chrome-light);
  border: 1px solid var(--border-hair-strong);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  margin-bottom: 10px;
}
.service-card h3 { margin-bottom: 6px; }
.service-card p { color: var(--text-1); font-size: 14.5px; }
.service-card .badge.unconfirmed { color: #e8b34a; border-color: rgba(232,179,74,0.4); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-item {
  display: flex; gap: 14px;
  padding: 20px;
  border: 1px solid var(--border-hair);
  border-radius: var(--radius);
  background: var(--bg-glass);
}
.why-item .icon {
  flex-shrink: 0; width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,30,58,0.14);
  color: var(--accent-strong);
}
.why-item .icon svg { width: 22px; height: 22px; }
.why-item h3 { font-size: 16px; margin-bottom: 4px; }
.why-item p { font-size: 14px; color: var(--text-1); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-hair);
}
.gallery-item:nth-child(3n+1) { aspect-ratio: 4/5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-more { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.gallery-note { margin-top: 14px; font-size: 12.5px; color: var(--text-2); }

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border-hair);
}
@media (min-width: 800px) { .process-list { grid-template-columns: repeat(4, 1fr); border-top: 0; } }
.process-step {
  padding: 22px 4px;
  border-bottom: 1px solid var(--border-hair);
  display: flex; flex-direction: column; gap: 8px;
}
@media (min-width: 800px) {
  .process-step { border-bottom: 0; border-inline-start: 1px solid var(--border-hair); padding-inline-start: 20px; }
  .process-step:first-child { border-inline-start: 0; padding-inline-start: 0; }
}
.process-step .num { font-size: 13px; color: var(--chrome); font-weight: 800; }
.process-step h3 { font-size: 16px; }
.process-step p { font-size: 13.5px; color: var(--text-1); }

/* ---------- Location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) { .location-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.location-card {
  border: 1px solid var(--border-hair);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-2);
  display: flex; flex-direction: column; gap: 14px;
}
.location-row { display: flex; gap: 12px; align-items: flex-start; }
.location-row .icon { width: 20px; height: 20px; color: var(--accent-strong); flex-shrink: 0; margin-top: 2px; }
.map-embed-wrap {
  border: 1px solid var(--border-hair);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  background: var(--bg-2);
  position: relative;
}
.map-embed-wrap iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }
.map-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  text-align: center; padding: 20px;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq-item { border: 1px solid var(--border-hair); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  text-align: start;
  font-size: 15px; font-weight: 600;
}
.faq-q .chevron { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.25s var(--ease); color: var(--chrome); }
.faq-item[data-open="true"] .chevron { transform: rotate(180deg); }
.faq-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease), padding 0.3s var(--ease); font-size: 14.5px; color: var(--text-1); }
.faq-item[data-open="true"] .faq-a { padding: 0 18px 18px; max-height: 300px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 24px;
  padding: 48px 28px;
  background: linear-gradient(135deg, rgba(200,30,58,0.18), rgba(255,255,255,0.03));
  border: 1px solid var(--border-hair-strong);
  text-align: center;
  display: flex; flex-direction: column; gap: 18px; align-items: center;
}
.cta-band h2 { max-width: 26ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-hair); padding-block: 48px 28px; background: var(--bg-1); }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--chrome); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a, .footer-col p { font-size: 14px; color: var(--text-1); }
.footer-col a:hover { color: var(--text-0); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-hair);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--text-2);
}
.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: var(--text-0); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  inset-inline: 0; bottom: 0;
  z-index: 90;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11,13,16,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-hair);
  display: flex; gap: 10px;
}
.sticky-cta .btn { flex: 1; justify-content: center; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
body { padding-bottom: 78px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* ---------- WebGL/3D disabled state note ---------- */
.no-js .js-only { display: none !important; }

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