/* =========================================================
   Al Rukn Al Thaki Auto Maint — main stylesheet
   Mobile-first, RTL-aware (logical properties), no images
   ========================================================= */

:root {
  --bg: #0d1117;
  --bg-2: #121925;
  --surface: #172030;
  --surface-2: #1d2839;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf2;
  --muted: #9aa6b8;
  --accent: #ff7a1a;
  --accent-2: #ffb347;
  --accent-ink: #1a1007;           /* dark text on orange: 7.6:1 contrast */
  --whatsapp: #25d366;
  --whatsapp-ink: #062b14;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --header-h: 72px;
  --mobile-bar-h: 64px;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Cairo", "Segoe UI", Tahoma, "Geeza Pro", Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.8; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

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

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

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .75em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 56px; padding: .9em 1.7em; font-size: 1.05rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 6px 20px rgba(255, 122, 26, 0.3);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(255, 122, 26, 0.45); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--whatsapp-ink);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(13, 17, 23, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(13, 17, 23, 0.95);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 40px; height: 40px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong {
  font-size: 1.02rem; font-weight: 800; letter-spacing: .2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .4px; white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.lang-toggle {
  min-height: 40px;
  min-width: 48px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  transition: border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.lang-toggle[lang="ar"] { font-family: var(--font-ar); }
.lang-toggle[lang="en"] { font-family: var(--font); }

.btn-call-header { min-height: 42px; padding: .6em 1.1em; font-size: .92rem; }

/* Mobile nav toggle */
.nav-toggle {
  width: 44px; height: 44px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.nav-toggle span {
  width: 20px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.main-nav {
  position: fixed;
  top: var(--header-h);
  inset-inline: 0;
  background: rgba(13, 17, 23, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 8px var(--gutter) 20px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.main-nav.open { opacity: 1; transform: none; visibility: visible; }
.main-nav a {
  display: block;
  padding: 14px 4px;
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.main-nav li:last-child a { border-bottom: 0; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 9vw, 110px) clamp(56px, 9vw, 120px);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(255, 122, 26, 0.18), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(59, 130, 246, 0.12), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #0d1117 0%, #111827 100%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset-inline: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 28px, #0d1117 28px 56px);
  opacity: .55;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.35);
  color: var(--accent-2);
  font-size: .85rem; font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 6.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 18px;
}
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.35; }
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
}
.hero-stats li {
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  text-align: center;
}
.hero-stats strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.hero-stats span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.35; margin-top: 4px; }

.hero-visual {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
}

.hero-badge {
  position: absolute;
  bottom: 8%;
  inset-inline-end: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 600; font-size: .9rem;
}
.hero-badge .icon { color: var(--whatsapp); }

/* ---------- Hero animation: car scene ----------
   Default (no .is-playing) = final resting state, so it still looks
   right without JS and with reduced motion. JS adds .is-playing to run
   the intro. Timeline (s): drive 0–2.4 · settle/lights 2.2–3.3 ·
   sweep 2.6 · bonnet 3.3–4.6 · beam 4.3 · scan ring 4.6–6.8 · checks 5.2–6.6 */
.hero-visual.car-stage {
  width: min(100%, 560px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.car-scene {
  width: 100%;
  height: auto;
  direction: ltr;               /* keep SVG text anchoring stable in Arabic/RTL */
  filter: drop-shadow(0 24px 48px rgba(255, 122, 26, 0.12));
}
.car-scene * { transform-origin: 0 0; }

/* Resting states */
.cs-speed { opacity: 0; }
.cs-sweep { transform: translateX(0); }
.cs-hood { transform: rotate(-52deg); }
.cs-ring-progress { stroke: var(--whatsapp); stroke-dashoffset: 0; }
.cs-hud-label {
  fill: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: 2px;
}
.cs-hud-value { fill: var(--text); font-size: 17px; font-weight: 700; }
.cs-hud-value.is-done { fill: var(--whatsapp); }
.cs-hud-text { fill: #dfe5ee; font-size: 12.5px; font-weight: 600; letter-spacing: 1.6px; }
html[lang="ar"] .car-scene text { font-family: var(--font-ar); letter-spacing: 0; }
html[lang="ar"] .cs-hud-text { font-size: 13.5px; }
.cs-link { fill: none; stroke: rgba(255, 179, 71, 0.45); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.cs-dot { fill: rgba(13, 17, 23, 0.7); stroke: var(--whatsapp); stroke-width: 1.4; }
.cs-check { fill: none; stroke: var(--whatsapp); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }

/* Ambient loops (always on; invisible until their parent fades in) */
.cs-bay-glow { animation: csPulse 2.4s ease-in-out infinite; }
.cs-beam-cone { animation: csPulse 2.6s ease-in-out infinite; }
.cs-scan { animation: csScan 2.2s cubic-bezier(.45, 0, .55, 1) infinite; }
.cs-p { opacity: 0; animation: csRise 2.6s ease-out infinite; }
.cs-p2 { animation-delay: .65s; }
.cs-p3 { animation-delay: 1.3s; }
.cs-p4 { animation-delay: 1.95s; }
.cs-ring-outer { animation: csSpin 14s linear infinite; }

/* Intro sequence */
.is-playing .cs-drive   { animation: csDrive 2.4s cubic-bezier(.16, 1, .3, 1) both; }
.is-playing .cs-wheel   { animation: csWheel 2.4s cubic-bezier(.16, 1, .3, 1) both; }
.is-playing .cs-speed   { animation: csSpeed 2s ease-out both; }
.is-playing .cs-body    { animation: csSettle .9s cubic-bezier(.33, 1, .68, 1) 2.15s both; }
.is-playing .cs-headlight { animation: csFlash .9s ease-in-out 2.4s both; }
.is-playing .cs-sweep   { animation: csSweep 1.1s cubic-bezier(.65, 0, .35, 1) 2.6s both; }
.is-playing .cs-hood    { animation: csHood 1.3s cubic-bezier(.7, 0, .2, 1) 3.3s both; }
.is-playing .cs-hood-glow,
.is-playing .cs-bay     { animation: csFadeIn .8s ease-out 3.8s both; }
.is-playing .cs-beam    { animation: csFadeIn .9s ease-out 4.3s both; }
.is-playing .cs-ring    { animation: csPop .7s cubic-bezier(.34, 1.56, .64, 1) 4.6s both; }
.is-playing .cs-ring-progress {
  animation: csProgress 2s cubic-bezier(.65, 0, .35, 1) 4.8s both,
             csRingColor 2.05s linear 4.8s both;
}
.is-playing .cs-item    { animation: csSlideIn .6s cubic-bezier(.22, 1, .36, 1) both; }
.is-playing .cs-link    { animation: csDraw .6s ease-out both; }
.is-playing .cs-dot     { animation: csDotOn .4s ease-out both; }
.is-playing .cs-check   { animation: csDraw .4s ease-out both; }
.is-playing .cs-item-1, .is-playing .cs-item-1 .cs-link { animation-delay: 5.2s; }
.is-playing .cs-item-2, .is-playing .cs-item-2 .cs-link { animation-delay: 5.7s; }
.is-playing .cs-item-3, .is-playing .cs-item-3 .cs-link { animation-delay: 6.2s; }
.is-playing .cs-item-1 .cs-dot, .is-playing .cs-item-1 .cs-check { animation-delay: 5.65s; }
.is-playing .cs-item-2 .cs-dot, .is-playing .cs-item-2 .cs-check { animation-delay: 6.15s; }
.is-playing .cs-item-3 .cs-dot, .is-playing .cs-item-3 .cs-check { animation-delay: 6.65s; }

@keyframes csDrive   { from { transform: translateX(-640px); } to { transform: translateX(0); } }
@keyframes csWheel   { from { transform: rotate(0); } to { transform: rotate(1080deg); } }
@keyframes csSpeed   { 0% { opacity: .9; } 100% { opacity: 0; } }
@keyframes csSettle  { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(2.6px); } 70% { transform: translateY(-.8px); } }
@keyframes csFlash   { 0% { opacity: .35; } 20% { opacity: 1; } 40% { opacity: .35; } 60% { opacity: 1; } 100% { opacity: 1; } }
@keyframes csSweep   { from { transform: translateX(0); } to { transform: translateX(680px); } }
@keyframes csHood    { 0% { transform: rotate(0); } 78% { transform: rotate(-55deg); } 100% { transform: rotate(-52deg); } }
@keyframes csFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes csPop     { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes csProgress { from { stroke-dashoffset: 207.35; } to { stroke-dashoffset: 0; } }
@keyframes csRingColor { 0%, 96% { stroke: #ff7a1a; } 100% { stroke: #25d366; } }
@keyframes csSlideIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes csDraw    { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes csDotOn   { from { stroke: #ff7a1a; } to { stroke: #25d366; } }
@keyframes csPulse   { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes csScan    { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { transform: translateY(-72px); opacity: 0; } }
@keyframes csRise    { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(48px, -70px); opacity: 0; } }
@keyframes csSpin    { to { transform: rotate(360deg); } }

/* Badge sits centred under the scene so it never covers the car or HUD */
.car-stage { display: flex; flex-direction: column; align-items: center; }
.car-stage .hero-badge { position: static; margin-top: 4px; }

@media (max-width: 479px) {
  .cs-item { display: none; }                    /* keep small screens clean */
  .car-stage .hero-badge { font-size: .8rem; padding: 8px 12px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 10vw, 110px); }
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 6vw, 56px); text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); font-weight: 800; }
.section-head p:not(.kicker) { color: var(--muted); margin: 0; }
.kicker {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
html[lang="ar"] .kicker { letter-spacing: 0; font-size: .95rem; }

/* ---------- Services ---------- */
.services { background: var(--bg-2); }
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card::before {
  content: "";
  position: absolute; inset-inline-start: 0; top: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
[dir="rtl"] .card::before { transform-origin: right; }
.card:hover { transform: translateY(-6px); border-color: rgba(255, 122, 26, 0.4); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--accent);
  margin-bottom: 18px;
  transition: background-color .3s, color .3s;
}
.card-icon svg { width: 28px; height: 28px; }
.card:hover .card-icon { background: var(--accent); color: var(--accent-ink); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.why-item {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--accent);
  transition: transform .3s, box-shadow .3s;
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-num {
  display: block;
  font-size: 2.4rem; font-weight: 800; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 122, 26, 0.7);
  margin-bottom: 12px;
}
.why-item h3 { font-size: 1.15rem; }
.why-item p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- About ---------- */
.about { background: var(--bg-2); }
.about-inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.about-copy h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); font-weight: 800; }
.about-copy p { color: var(--muted); }
.about-list { display: grid; gap: 10px; margin-top: 20px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.about-list .icon { color: var(--accent); }
.about-panel {
  position: relative;
  min-height: 260px;
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 122, 26, 0.35), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, #1b2537, #0f1520);
}
.about-stat { text-align: center; padding: 24px; }
.about-stat strong {
  display: block;
  font-size: clamp(4rem, 14vw, 6.5rem); font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-stat span { display: block; margin-top: 8px; font-weight: 600; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.contact-card {
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.contact-list { display: grid; gap: 22px; margin-bottom: 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
html[lang="ar"] .contact-list h3 { letter-spacing: 0; font-size: .95rem; }
.contact-list p, .contact-list address { margin: 0; }
.c-icon {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--accent);
}
.c-link { font-size: 1.2rem; font-weight: 700; color: var(--accent-2); }
.c-link:hover { text-decoration: underline; }
.open-status { margin-top: 6px !important; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 8px; }
.open-status:empty { display: none; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-status.is-open { color: var(--whatsapp); }
.open-status.is-closed { color: #ff8a8a; }

.contact-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.contact-actions .btn { width: 100%; }

.map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 320px;
  background: var(--surface);
}
.map-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(.2) contrast(1.05);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #090c11;
  border-top: 1px solid var(--border);
  padding-top: 44px;
  color: var(--muted);
  font-size: .95rem;
}
.footer-inner { display: grid; gap: 24px; padding-bottom: 28px; }
.footer-brand { color: var(--text); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.footer-inner p { margin: 0 0 4px; }
.footer-inner a:hover { color: var(--accent); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom { border-top: 1px solid var(--border); padding-block: 18px; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  inset-inline-end: 16px;
  bottom: calc(var(--mobile-bar-h) + 16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: pulse 2.4s ease-out infinite;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6); }
@keyframes pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Mobile sticky bar ---------- */
.mobile-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 95;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(13, 17, 23, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
}
.mb-call { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); }
.mb-wa { background: var(--whatsapp); color: var(--whatsapp-ink); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Responsive breakpoints
   ========================================================= */

/* Very small phones (≤ 360px) */
@media (max-width: 360px) {
  .brand-text small { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .hero-ctas .btn { width: 100%; }
  .hero-stats { gap: 8px; }
  .hero-stats strong { font-size: 1.25rem; }
  .hero-stats span { font-size: .7rem; }
}

/* Small phones: hide header call text, icon-only button */
@media (max-width: 479px) {
  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .brand { gap: 8px; }
  .brand-text strong { font-size: .9rem; letter-spacing: 0; white-space: normal; overflow: visible; }
  .brand-text small { font-size: .66rem; }
  .btn-call-header span { display: none; }
  .btn-call-header { width: 42px; padding: 0; }
  .lang-toggle { min-width: 44px; padding: 0 10px; }
}

/* Large phones / small tablets */
@media (min-width: 560px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-actions .btn-outline { grid-column: 1 / -1; }
}

/* Tablets */
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .about-panel { min-height: 340px; }
  .map-wrap { min-height: 380px; }
}

/* Desktop: show full nav, remove mobile bar */
@media (min-width: 992px) {
  :root { --header-h: 80px; }
  body { padding-bottom: 0; }

  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    background: none;
    border: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: none;
    overflow: visible;
  }
  .main-nav ul { display: flex; gap: clamp(18px, 2.5vw, 34px); }
  .main-nav a {
    position: relative;
    padding: 8px 0;
    border: 0;
    font-size: .98rem;
    font-weight: 500;
  }
  .main-nav a::after {
    content: "";
    position: absolute; inset-inline: 0; bottom: 0;
    height: 2px; border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .25s;
  }
  .main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

  .mobile-bar { display: none; }
  .wa-float { bottom: 28px; inset-inline-end: 28px; width: 62px; height: 62px; }

  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero-visual { width: 100%; max-width: 540px; }

  .cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .about-inner { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 28px; }
  .map-wrap { min-height: 100%; }
}

/* Medium laptops: tighten header so nothing overflows (992–1150px) */
@media (min-width: 992px) and (max-width: 1150px) {
  .brand-text small { display: none; }
  .btn-call-header { padding: .6em .95em; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Large screens */
@media (min-width: 1440px) {
  :root { --container: 1280px; }
  body { font-size: 17px; }
}

/* Short landscape phones: keep hero compact */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 991px) {
  .hero { padding-block: 32px 40px; }
  .hero-visual { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
  .site-header, .wa-float, .mobile-bar, .map-wrap, .hero-visual { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .reveal { opacity: 1; transform: none; }
}
