/* ==========================================================================
   IKHA RESCUE & POWER SERVICES — Design System
   Palette: near-black base, brand gold accent, sparing red (SOS) / blue (tech)
   Type: Big Shoulders Display (headlines) + Inter (body/UI)
   ========================================================================== */

:root {
  --bg: #0a0a0c;
  --bg-raised: #131418;
  --panel: #17181d;
  --panel-2: #1e2025;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --gold: #f2a61d;
  --gold-light: #ffcf5c;
  --gold-deep: #b97e10;
  --gold-ink: #241a04;

  --ink: #f3f2ee;
  --ink-dim: #c8c8cc;
  --muted: #9a9ba3;
  --muted-2: #6d6e76;

  --red: #e1382d;
  --green: #33c17d;
  --blue: #3e8ef7;
  --purple: #9b6bf2;

  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 18px;

  --container: 1200px;
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-lift: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
svg.icon { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; text-decoration: none; }
a:visited { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: 0.001em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Type scale ---------- */
.h1 { font-size: clamp(2.6rem, 6vw, 5rem); text-transform: uppercase; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); text-transform: uppercase; }
.h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); text-transform: uppercase; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-dim); font-weight: 400; max-width: 62ch; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
.tel-num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #17130a; }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-whatsapp { background: #21c063; color: #06210f; }
.btn-whatsapp:hover { background: #2fdb76; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Top bar (utility strip) ---------- */
.topbar {
  background: var(--gold-ink);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--gold-light);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.topbar-links { display: flex; gap: 22px; align-items: center; }
.topbar-links a { display: flex; align-items: center; gap: 6px; color: var(--gold-light); }
.topbar-links a:hover { color: #fff; }
.topbar-links svg { width: 14px; height: 14px; }
.topbar-sos { color: #ff8c82; font-weight: 700; letter-spacing: 0.04em; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.97);
  border-bottom: 1px solid var(--line);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: linear-gradient(155deg, var(--gold-light), var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.01em; line-height: 1; text-transform: uppercase; }
.brand-word span { display: block; font-family: var(--font-body); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.22em; color: var(--muted); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 0.93rem; font-weight: 600; color: var(--ink-dim); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }

@media (max-width: 640px) { .topbar-links a.hide-sm { display: none; } }

@media (max-width: 980px) {
  .nav-links { position: fixed; top: var(--header-h, 114px); left: 0; right: 0; bottom: 0; z-index: 120; background: var(--bg); flex-direction: column; justify-content: flex-start; gap: 0; padding: 10px 28px 28px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; overflow-y: auto; }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .topbar .container { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; gap: 6px 0; }
  .topbar-links { flex-wrap: wrap; row-gap: 4px; }
  .topbar-links a { white-space: nowrap; }
  .topbar-sos { font-size: 0.74rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 78px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(1100px 560px at 82% -10%, rgba(242, 166, 29, 0.16), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .h1 { margin-bottom: 22px; }
.hero-copy .h1 em { font-style: normal; color: var(--gold); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--font-display); font-size: 2.1rem; color: var(--gold); line-height: 1; }
.hero-stat span { font-size: 0.82rem; color: var(--muted); }

.hero-visual { position: relative; }
.hero-visual .frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.hero-visual .frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(185deg, transparent 55%, rgba(0,0,0,0.55) 100%);
}
.floating-chip {
  position: absolute;
  bottom: -22px; left: -22px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lift);
  z-index: 2;
}
.floating-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(51,193,125,0.18); flex-shrink: 0; }
.floating-chip b { display: block; font-size: 0.92rem; }
.floating-chip span { font-size: 0.78rem; color: var(--muted); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .floating-chip { left: 14px; bottom: -18px; }
}

/* ---------- Section scaffolding ---------- */
.section { padding: 100px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head .h2 { margin-bottom: 16px; }
.section-alt { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-foot-link { margin-top: 40px; }

/* diagonal seam used once between hero and first section */
.seam { height: 64px; position: relative; background: var(--bg); }
.seam svg { position: absolute; bottom: -1px; left: 0; width: 100%; height: 100%; display: block; }

/* ---------- Trust strip ---------- */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 26px 28px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: none; }
.trust-item svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; }
.trust-item b { display: block; font-size: 0.92rem; }
.trust-item span { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-left: none; border-top: 1px solid var(--line); }
  .trust-item:nth-child(2) { border-left: 1px solid var(--line); }
  .trust-item:nth-child(4) { border-left: 1px solid var(--line); }
}

/* ---------- Service grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc-card { background: var(--panel); padding: 30px 28px; transition: background 0.15s ease; }
.svc-card:hover { background: var(--panel-2); }
.svc-card svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 18px; }
.svc-card h3 { font-size: 1.05rem; text-transform: none; font-family: var(--font-body); font-weight: 700; margin-bottom: 8px; }
.svc-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Split feature (image + copy) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lift); }
.feature-list { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list .ico { width: 42px; height: 42px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-list .ico svg { width: 20px; height: 20px; color: var(--gold); }
.feature-list b { display: block; font-size: 0.98rem; margin-bottom: 3px; }
.feature-list p { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: -1; }
}

/* ---------- Steps (legit sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 2.6rem; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); display: block; margin-bottom: 10px; }
.step h3 { font-family: var(--font-body); font-size: 1.02rem; text-transform: none; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--muted); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: calc(100% + 14px); width: calc(28px - 14px); border-top: 2px dashed var(--line-strong); display: none; }
@media (min-width: 901px) { .step:not(:last-child)::after { display: block; } }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Device / spec section ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.spec-table tr { border-top: 1px solid var(--line); }
.spec-table tr:first-child { border-top: none; }
.spec-table td { padding: 13px 0; font-size: 0.9rem; }
.spec-table td:first-child { color: var(--muted); width: 46%; }
.spec-table td:last-child { font-weight: 600; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.82rem; color: var(--ink-dim); }
.chip svg { width: 15px; height: 15px; color: var(--gold); }

/* ---------- Stat band ---------- */
.stat-band { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-band .stat b { display: block; font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.stat-band .stat span { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 800px) { .stat-band { grid-template-columns: 1fr 1fr; } }

/* ---------- Quote / testimonial ---------- */
.quote { max-width: 760px; }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); text-transform: none; font-weight: 600; line-height: 1.3; margin: 0 0 20px; color: var(--ink); }
.quote cite { font-style: normal; font-size: 0.88rem; color: var(--muted); }

/* ---------- Partner / coverage strip ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.partner-card { background: var(--panel); padding: 26px; text-align: center; }
.partner-card svg { width: 26px; height: 26px; color: var(--gold); margin: 0 auto 12px; }
.partner-card b { font-size: 0.9rem; }
@media (max-width: 700px) { .partner-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold) 60%, var(--gold-light));
  color: #201404;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #201404; margin-bottom: 8px; }
.cta-band p { color: #3a2a08; }
.cta-band .btn-outline { border-color: rgba(0,0,0,0.35); color: #201404; }
.cta-band .btn-outline:hover { border-color: #201404; }
.cta-band .btn-dark { background: #17130a; color: var(--gold-light); }
.cta-band .btn-dark:hover { background: #241d10; }

/* ---------- Form ---------- */
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field textarea { resize: vertical; min-height: 110px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Contact tiles ---------- */
.contact-tiles { display: grid; gap: 16px; }
.contact-tile { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contact-tile .ico { width: 48px; height: 48px; border-radius: 10px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-tile .ico svg { width: 22px; height: 22px; color: var(--gold); }
.contact-tile b { display: block; font-size: 1rem; }
.contact-tile span { font-size: 0.84rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-raised); border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 14px; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.9rem; color: var(--ink-dim); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 12px; }
.footer-bottom span { font-size: 0.8rem; color: var(--muted-2); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { border-color: var(--gold); }
.footer-social svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating SOS (mobile) ---------- */
.sos-float {
  display: none;
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 200;
  align-items: center; gap: 10px;
  background: var(--red);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 12px 30px -8px rgba(225, 56, 45, 0.6);
}
.sos-float .pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); } 50% { box-shadow: 0 0 0 6px rgba(255,255,255,0); } }
@media (max-width: 700px) { .sos-float { display: flex; } }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero { padding: 56px 0 60px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-raised), var(--bg)); }
.page-hero .eyebrow { margin-bottom: 14px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }
.badge-accent { color: var(--gold); }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { font-size: 0.78rem; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); }
.map-embed iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(0.2) invert(0.92) contrast(0.86); }
