/* ==========================================================================
   iComputer Urban Tech DZ — Core Design System
   Dark-first · one accent · hairline structure
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #0b0f14;
  --bg-soft: #0e131a;
  --surface: #121821;
  --surface-2: #161e28;
  --surface-3: #1b2532;
  --surface-raised: #161e28;
  --surface-soft: #0e131a;

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass-border: var(--line);
  --border: var(--line);

  /* Type */
  --text: #eef3f9;
  --text-strong: #f6f9fc;
  --text-soft: #c6d0dc;
  --muted: #93a0b1;
  --faint: #6f7c8d;

  /* Accent */
  --accent: #4d9eff;
  --accent-strong: #2d8cff;
  --accent-soft: rgba(77, 158, 255, 0.12);
  --primary: #4d9eff;
  --primary-2: #2d8cff;
  --on-accent: #ffffff;

  /* Semantic */
  --success: #3ddc97;
  --success-strong: #1fa85f;
  --danger: #ff7a7a;
  --warning: #f0b45a;

  /* Shape */
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --section-y: 96px;

  /* Effects */
  --shadow-media: 0 30px 80px rgba(0, 0, 0, 0.36);
  --shadow-menu: 0 24px 60px rgba(0, 0, 0, 0.42);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Back-compat aliases used by legacy inner pages */
  --glass-bg: var(--surface);
  --shadow: var(--shadow-media);
  --bg-2: #131b24;

  /* Fonts */
  --font-ar: "Cairo", "Segoe UI", system-ui, sans-serif;
  --font-en: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fa;
  --bg-soft: #edf1f6;
  --surface: #ffffff;
  --surface-2: #f0f4f8;
  --surface-3: #e7edf4;
  --surface-raised: #ffffff;
  --surface-soft: #f0f4f8;

  --line: rgba(16, 23, 34, 0.1);
  --line-strong: rgba(16, 23, 34, 0.2);
  --glass-border: var(--line);

  --text: #101722;
  --text-strong: #0b111a;
  --text-soft: #2c3746;
  --muted: #5c6979;
  --faint: #788493;

  --accent: #1668c8;
  --accent-strong: #0f5db8;
  --accent-soft: rgba(22, 104, 200, 0.1);
  --primary: #1668c8;
  --primary-2: #0f5db8;

  --success: #0e8f5b;
  --success-strong: #0b7a4d;
  --danger: #c0392b;
  --warning: #9a6200;

  --shadow-media: 0 24px 60px rgba(21, 36, 55, 0.12);
  --shadow-menu: 0 24px 60px rgba(21, 36, 55, 0.16);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="en"] body,
html[lang="fr"] body {
  font-family: var(--font-en);
  line-height: 1.65;
}

/* Subtle technical canvas: one soft light source + a very faint grid. */
body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(77, 158, 255, 0.1), transparent 70%),
    radial-gradient(700px 420px at 6% 8%, rgba(77, 158, 255, 0.05), transparent 70%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 62%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 62%);
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(900px 520px at 80% -10%, rgba(22, 104, 200, 0.08), transparent 70%),
    radial-gradient(700px 420px at 4% 10%, rgba(22, 104, 200, 0.04), transparent 70%);
}

html[data-theme="light"] body::after {
  opacity: 0.5;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

/* Decorative legacy elements are retired. */
.bg-orb {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

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

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section--flush-top {
  padding-top: 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.section-head__copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

html[lang="ar"] .eyebrow {
  font-family: var(--font-ar);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}

.eyebrow::before {
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
}

.section-title {
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

html[lang="ar"] .section-title {
  letter-spacing: 0;
  line-height: 1.35;
}

.section-sub {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.section-head--split .section-sub {
  margin-top: 4px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
   Icon system
   -------------------------------------------------------------------------- */

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 18px;
  height: 18px;
}

.icon--lg {
  width: 28px;
  height: 28px;
}

/* Inline icon used inside running text (replaces legacy emoji glyphs) */
.icon--inline {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.14em;
  stroke-width: 1.8;
}

.icon-tile {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease),
    transform 160ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-whatsapp {
  background: var(--success-strong);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--success);
  color: #062417;
}

.btn-lg {
  min-height: 50px;
  padding-inline: 26px;
  font-size: 1rem;
}

.btn-icon {
  display: inline-flex;
}

.btn-icon .icon {
  width: 18px;
  height: 18px;
}

.btn--full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.text-link .icon {
  width: 16px;
  height: 16px;
  transition: transform 160ms var(--ease);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

html[dir="rtl"] .text-link .icon {
  transform: scaleX(-1);
}

html[dir="rtl"] .text-link:hover .icon {
  transform: scaleX(-1) translateX(3px);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.skip-link {
  position: fixed;
  z-index: 200;
  inset-block-start: 10px;
  inset-inline-start: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  background: var(--accent-strong);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 160ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.navbar {
  position: sticky;
  z-index: 100;
  inset-block-start: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(11, 15, 20, 0.82);
  color: var(--text);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}

html[data-theme="light"] .navbar {
  background: rgba(245, 247, 250, 0.86);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
  padding-block: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--text-strong);
  font-family: var(--font-en);
  font-weight: 700;
  line-height: 1.1;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand-text em {
  color: var(--faint);
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  border-radius: var(--radius-xs);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}

.nav-links a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-links a.is-active,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a.is-active::after,
.nav-links a.active::after {
  position: absolute;
  inset-inline: 11px;
  inset-block-end: 2px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.nav-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(61, 220, 151, 0.28);
  border-radius: var(--radius-xs);
  background: rgba(61, 220, 151, 0.08);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}

.nav-wa-btn:hover {
  border-color: var(--success);
  background: rgba(61, 220, 151, 0.14);
  transform: none;
  box-shadow: none;
}

.nav-wa-btn .icon {
  width: 16px;
  height: 16px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface);
}

.lang-switch button {
  min-width: 32px;
  min-height: 28px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--faint);
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}

.lang-switch button:hover {
  color: var(--text);
}

.lang-switch button.active {
  background: var(--surface-3);
  color: var(--text-strong);
}

.theme-toggle,
.menu-btn {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text-soft);
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}

.theme-toggle:hover,
.menu-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.theme-toggle .icon,
.menu-btn .icon {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

.menu-btn {
  display: none;
}

/* Mobile navigation sheet */
@media (max-width: 1024px) {
  .nav-inner {
    gap: 12px;
  }

  .nav-links {
    position: fixed;
    z-index: 110;
    inset-block-start: var(--header-h);
    inset-inline: 12px;
    display: grid;
    gap: 2px;
    max-height: calc(100vh - var(--header-h) - 24px);
    margin: 0;
    padding: 12px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-menu);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    min-height: 48px;
    padding-inline: 14px;
    border-radius: var(--radius-xs);
    font-size: 0.95rem;
  }

  .nav-links a.is-active::after,
  .nav-links a.active::after {
    display: none;
  }

  .nav-links a.is-active,
  .nav-links a.active {
    background: var(--accent-soft);
  }

  .menu-btn {
    display: inline-grid;
  }

  .menu-btn .icon-close {
    display: none;
  }

  .menu-btn[aria-expanded="true"] .icon-menu {
    display: none;
  }

  .menu-btn[aria-expanded="true"] .icon-close {
    display: block;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    background: rgba(4, 7, 11, 0.55);
  }
}

@media (max-width: 720px) {
  .nav-wa-btn span:not(.icon) {
    display: none;
  }

  .nav-wa-btn {
    width: 38px;
    justify-content: center;
    padding: 0;
  }

  .brand-text {
    font-size: 0.88rem;
  }

  .brand-text em {
    font-size: 0.56rem;
  }
}

@media (max-width: 430px) {
  .lang-switch button {
    min-width: 28px;
    padding: 0 5px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .brand-text em {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Chips & status
   -------------------------------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
}

.chip .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.chip--accent {
  border-color: rgba(77, 158, 255, 0.28);
  background: var(--accent-soft);
  color: var(--accent);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.12);
}

/* --------------------------------------------------------------------------
   Cards (shared)
   -------------------------------------------------------------------------- */

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), transform 180ms var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.125rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Legacy image-card support for inner pages */
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.service-card .service-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.service-card .card-img-wrapper {
  position: relative;
  height: 168px;
  overflow: hidden;
  background: var(--surface-3);
}

.service-card .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 420ms var(--ease), opacity 240ms var(--ease);
}

.service-card:hover .card-img {
  transform: scale(1.03);
  opacity: 1;
}

.service-card .card-icon {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-end: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(11, 15, 20, 0.82);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.service-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.service-card .card-body h3 {
  margin-bottom: 8px;
  color: var(--text-strong);
  font-size: 1.0625rem;
}

.service-card .card-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.service-card .card-body > div[style*="font-weight"] {
  margin-top: auto !important;
  color: var(--accent) !important;
}

/* Student legacy card */
.student-home-service-card {
  grid-column: 1 / -1;
}

.student-home-service-action {
  margin-top: auto;
  padding-top: 12px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field label,
.contact-form label {
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--bg-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.form-field textarea,
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--faint);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.form-field select option {
  background: var(--surface);
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-status {
  color: var(--accent);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer-extended,
.footer {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-soft);
  color: var(--muted);
  text-align: start;
}

.footer-extended {
  margin-top: 0;
}

.footer-extended-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-block: 56px 40px;
}

.footer-col h4 {
  margin-bottom: 16px;
  color: var(--text-strong);
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

html[lang="ar"] .footer-col h4 {
  font-family: var(--font-ar);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 160ms var(--ease);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-brand-bio {
  max-width: 340px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer .brand,
.footer-extended .brand {
  margin-bottom: 0;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-social-link {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--muted);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}

.footer-social-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: none;
}

.footer-social-link .icon {
  width: 17px;
  height: 17px;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.8rem;
}

.footer-bottom-bar p {
  margin: 0;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal-links a {
  color: var(--faint);
  transition: color 160ms var(--ease);
}

.footer-legal-links a:hover {
  color: var(--text);
}

/* Legacy centered footer */
.footer.glass {
  margin: 0;
  padding: 28px 16px;
  border-radius: 0;
  background: var(--bg-soft);
  text-align: center;
}

.footer.glass .footer-bottom-bar {
  justify-content: center;
  border-top: 0;
  padding-block: 0;
}

/* --------------------------------------------------------------------------
   Floating WhatsApp
   -------------------------------------------------------------------------- */

.floating-whatsapp {
  position: fixed;
  z-index: 90;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: 14px;
  background: var(--success-strong);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}

.floating-whatsapp:hover {
  background: var(--success);
  color: #062417;
  transform: translateY(-2px);
}

.floating-whatsapp .icon {
  width: 23px;
  height: 23px;
}

/* --------------------------------------------------------------------------
   Reveal & legacy motion hooks
   -------------------------------------------------------------------------- */

.scroll-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.tilt-card {
  transform: none !important;
}

.tilt-card > * {
  transform: none !important;
}

/* --------------------------------------------------------------------------
   Legacy inner-page components (kept functional, restyled)
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  padding: 22px;
  text-align: center;
}

.stat-num {
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.phone-num {
  display: inline-block;
  direction: ltr;
  font-family: var(--font-en);
  unicode-bidi: isolate;
}

.contact-maps-box {
  margin-top: 18px;
}

.btn-maps {
  justify-content: flex-start;
  width: 100%;
  border-color: var(--line);
  color: var(--text-soft);
}

.btn-maps:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.maps-link {
  color: var(--accent) !important;
  text-decoration: none;
}

.whatsapp-contact-link {
  color: var(--success) !important;
  font-weight: 600;
}

/* Backup / promo blocks kept for older pages */
.backup-section,
.lawyer-section,
.support-section,
.sub-section {
  padding-block: 64px;
}

.backup-banner,
.lawyer-banner,
.sub-banner {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.backup-header,
.sub-header,
.support-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  text-align: center;
}

.backup-title,
.sub-slogan,
.support-header h2 {
  color: var(--text-strong);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.backup-sub,
.sub-sub,
.support-header p {
  max-width: 680px;
  color: var(--muted);
}

.backup-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.feature-list strong {
  display: block;
  color: var(--text-strong);
}

.feature-list small {
  color: var(--muted);
  font-size: 0.85rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.pillar-card {
  padding: 22px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.pillar-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: none;
}

.pillar-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--accent-soft);
  color: var(--accent);
}

.pillar-card h3 {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.pillar-card p {
  color: var(--muted);
  font-size: 0.8rem;
}

.sub-footer,
.backup-footer {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.contact-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.backup-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

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

[hidden] {
  display: none !important;
}

@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;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}
