/* ==========================================================================
   VakhifyDigital — Phase 1 stylesheet
   Palette: navy blue + orange + subtle yellow | clean white space
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy-950: #05101f;
  --navy-900: #0a1f3c;
  --navy-800: #0e2a4f;
  --navy-700: #14385f;
  --navy-600: #1d4a7d;

  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --yellow-400: #ffc53d;

  --ink: #0b1b33;
  --body: #4b5c73;
  --muted: #74839a;
  --line: #e6ecf4;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;

  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-line: rgba(255, 255, 255, 0.16);

  /* Named design-system tokens (aliases applied site-wide) */
  --color-primary: #f97316;
  --color-primary-dark: #ea580c;
  --color-navy: #0a1f3c;
  --color-surface: #ffffff;
  --color-text: #0b1b33;
  --color-muted: #74839a;
  --color-accent: #ffc53d;
  --color-cyan: #38bdf8;
  --color-border: #e6ecf4;
  --shadow: 0 12px 30px rgba(10, 31, 60, 0.10);
  --radius: 18px;

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --pill: 999px;

  --shadow-sm: 0 2px 10px rgba(10, 31, 60, 0.06);
  --shadow-md: 0 12px 30px rgba(10, 31, 60, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 31, 60, 0.16);

  --container: 1160px;
  --header-h: 76px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

* { margin: 0; }

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul[role="list"], ul, footer ul { list-style: none; padding: 0; }

h1, h2, h3 { color: var(--ink); line-height: 1.18; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }

p { max-width: 62ch; }

address { font-style: normal; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 18px; background: var(--navy-900); color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

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

.section { padding-block: clamp(56px, 8vw, 96px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.32);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(234, 88, 12, 0.42); }

.btn-whatsapp {
  background: #fff;
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
}
.btn-whatsapp:hover { box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  border-color: rgba(10, 31, 60, 0.2);
  color: var(--navy-900);
}
.btn-outline:hover { border-color: var(--orange-500); color: var(--orange-600); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-line);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 31, 60, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(5, 16, 31, 0.94);
  box-shadow: 0 10px 30px rgba(5, 16, 31, 0.35);
}

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

/* Brand logo: sits on a light plate so the dark logo reads clearly on navy */
.brand {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
}
.brand-logo {
  padding: 7px 11px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(2, 8, 20, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.brand-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 8, 20, 0.45);
}
.brand-logo img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}
.brand:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
}

/* ---------- Main navigation ---------- */
.main-nav { display: flex; align-items: center; gap: 16px; }
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav ul a {
  position: relative;
  display: block;
  padding: 9px 12px;
  border-radius: var(--pill);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
              transform 0.2s var(--ease);
}
.main-nav ul a:hover { color: #fff; background: rgba(255, 255, 255, 0.10); transform: translateY(-1px); }
.main-nav ul a[aria-current="page"] {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.28), rgba(255, 197, 61, 0.16));
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.45);
}

/* Header WhatsApp icon button (label appears in the mobile drawer) */
.nav-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(37, 211, 102, 0.5);
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.14);
  color: #25d366;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.nav-wa:hover {
  background: rgba(37, 211, 102, 0.26);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}
.nav-wa-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Compact navigation for mid-size desktop screens (single row required) */
@media (min-width: 901px) and (max-width: 1279px) {
  .main-nav { gap: 12px; }
  .main-nav ul { gap: 1px; }
  .main-nav ul a { padding: 8px 10px; font-size: 0.87rem; }
  .main-nav .nav-cta { padding: 9px 16px; font-size: 0.84rem; }
  .brand-logo img { height: 40px; }
  .header-inner { gap: 12px; }
}
/* Ultra-compact: just above the hamburger breakpoint (single row required) */
@media (min-width: 901px) and (max-width: 1023px) {
  .main-nav { gap: 8px; }
  .main-nav ul a { padding: 6px 7px; font-size: 0.78rem; }
  .main-nav .nav-cta { padding: 8px 13px; font-size: 0.79rem; }
  .nav-wa { width: 38px; height: 38px; }
  .brand-logo { padding: 5px 9px; }
  .brand-logo img { height: 34px; }
  .header-inner { gap: 9px; }
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.site-header.nav-open .menu-toggle .icon-menu { display: none; }
.site-header.nav-open .menu-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(249, 115, 22, 0.22), transparent 60%),
    radial-gradient(700px 500px at 8% 90%, rgba(255, 197, 61, 0.14), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: rgba(255, 255, 255, 0.82);
  padding-block: clamp(64px, 9vw, 110px);
}
.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 197, 61, 0.5), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  margin-bottom: 22px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: var(--pill);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow-400);
  box-shadow: 0 0 0 4px rgba(255, 197, 61, 0.22);
}

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--orange-400), var(--yellow-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 18px;
}

.hero-owner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 0.96rem;
}
.hero-owner strong { color: #fff; font-weight: 700; }
.hero-owner span { color: rgba(255, 255, 255, 0.6); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange-500);
  flex: none;
}

/* Hero visual (CSS only, no images) */
.hero-visual { position: relative; min-height: 320px; }

.hero-orb {
  position: absolute;
  inset: 12% 8% auto;
  height: 76%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(249, 115, 22, 0.42), rgba(10, 31, 60, 0) 70%);
  filter: blur(6px);
}

.glass-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(2, 8, 20, 0.35);
  animation: float 7s var(--ease) infinite;
}
.gc-label { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow-400); }
.gc-value { font-size: 1rem; font-weight: 700; color: #fff; }

.glass-card-1 { top: 6%; left: 4%; }
.glass-card-2 { top: 40%; right: 2%; animation-delay: 1.6s; }
.glass-card-3 { bottom: 6%; left: 14%; animation-delay: 3.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Section helpers ---------- */
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-600);
}
.eyebrow-light { color: var(--yellow-400); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 1.03rem; }

/* ---------- About ---------- */
.about { background: var(--bg); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.split-copy h2 { margin-bottom: 18px; }
.split-copy p { margin-bottom: 16px; }
.split-copy .btn { margin-top: 8px; }

.feature-list { display: grid; gap: 16px; }

.feature {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background-color 0.3s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.feature h3 { margin-bottom: 4px; font-size: 1.02rem; }
.feature p { font-size: 0.93rem; color: var(--muted); }

.feature-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--yellow-400);
}

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(249, 115, 22, 0.35);
}
.card p { font-size: 0.95rem; color: var(--muted); }
.card .card-link { margin-top: auto; padding-top: 4px; }
.card .svc-benefits { margin-top: -2px; }

.card-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(255, 197, 61, 0.18));
  color: var(--orange-600);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-800);
}
.card-link::after { content: "\2192"; transition: transform 0.25s var(--ease); }
.card-link:hover { color: var(--orange-600); }
.card-link:hover::after { transform: translateX(4px); }

/* ---------- CTA / Contact ---------- */
.cta {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(249, 115, 22, 0.20), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
}

.cta-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.cta-copy h2 { color: #fff; margin-bottom: 14px; }
.cta-copy p { color: rgba(255, 255, 255, 0.76); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.contact-list { display: grid; gap: 14px; align-content: center; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}
.contact-list a:hover { color: var(--yellow-400); }
.contact-label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2px;
}
.contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
}

/* ---------- FAQ ---------- */
.faq-groups { display: grid; gap: clamp(30px, 4vw, 46px); }
.faq-group-title {
  font-size: 1.16rem;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--orange-500);
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(249, 115, 22, 0.35);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  cursor: pointer;
  list-style: none;
  -webkit-appearance: none;
  appearance: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: -3px;
  border-radius: var(--radius-lg);
}
.faq-item summary h3 {
  font-size: 1.02rem;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}
.faq-item summary:hover h3 { color: var(--orange-600); }
.faq-icon {
  position: relative;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--orange-600);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.faq-item[open] .faq-icon {
  background: rgba(249, 115, 22, 0.14);
  transform: rotate(180deg);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease);
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
.faq-a {
  padding: 2px 22px 21px;
  display: grid;
  gap: 11px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-a p { margin: 0; }
.faq-a ol {
  margin: 0;
  padding-left: 21px;
  display: grid;
  gap: 7px;
}
.faq-a a { color: var(--orange-600); font-weight: 600; }
.faq-a a:hover { text-decoration: underline; }
.section-note a { color: var(--orange-600); font-weight: 600; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; }
.legal-intro {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 30px;
  font-size: 0.95rem;
  color: var(--body);
}
.legal-updated {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 6px;
}
.legal h2 {
  font-size: 1.28rem;
  margin-top: 36px;
  margin-bottom: 12px;
  scroll-margin-top: 96px;
}
.legal h3 { font-size: 1.04rem; margin-top: 22px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--body); font-size: 0.98rem; line-height: 1.78; }
.legal ul, .legal ol {
  margin-block: 14px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.legal strong { color: var(--ink); }
.legal .contact-block {
  border-top: 1px dashed var(--line);
  margin-top: 34px;
  padding-top: 22px;
  font-size: 0.95rem;
}
.legal .contact-block a { color: var(--orange-600); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
  padding-top: clamp(48px, 6vw, 72px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 40px;
}
.footer-brand img {
  height: 52px;
  width: auto;
  border-radius: 10px;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 0.93rem; color: rgba(255, 255, 255, 0.6); }

.footer-col h2 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--orange-400); }
.footer-col address { font-size: 0.95rem; line-height: 1.7; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom p { max-width: none; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; max-width: 520px; }
  .split { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-panel { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px 24px 24px;
    background: rgba(5, 16, 31, 0.97);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(2, 8, 20, 0.45);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
                visibility 0.28s var(--ease);
  }
  .site-header.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav ul a {
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    transform: translateY(-6px);
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease),
                background-color 0.2s var(--ease);
  }
  .site-header.nav-open .main-nav ul a { transform: translateY(0); opacity: 1; }
  /* Staggered drawer link entrance */
  .site-header.nav-open .main-nav ul li:nth-child(1) a { transition-delay: 0.04s; }
  .site-header.nav-open .main-nav ul li:nth-child(2) a { transition-delay: 0.08s; }
  .site-header.nav-open .main-nav ul li:nth-child(3) a { transition-delay: 0.12s; }
  .site-header.nav-open .main-nav ul li:nth-child(4) a { transition-delay: 0.16s; }
  .site-header.nav-open .main-nav ul li:nth-child(5) a { transition-delay: 0.20s; }
  .site-header.nav-open .main-nav ul li:nth-child(6) a { transition-delay: 0.24s; }
  .site-header.nav-open .main-nav ul li:nth-child(7) a { transition-delay: 0.28s; }
  .site-header.nav-open .main-nav ul li:nth-child(8) a { transition-delay: 0.32s; }

  .nav-cta { margin-top: 8px; width: 100%; }
  .nav-wa {
    width: 100%;
    height: auto;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-top: 4px;
    order: 3;
  }
  .main-nav ul { order: 1; }
  .nav-cta { order: 2; }
  .nav-wa-label {
    position: static;
    width: auto; height: auto;
    clip: auto;
    font-weight: 600;
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .container { padding-inline: 18px; }
  .brand-logo { padding: 5px 9px; }
  .brand-logo img { height: 34px; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-actions .btn,
  .cta-actions .btn { width: 100%; }
  .glass-card { padding: 13px 17px; }
  .gc-value { font-size: 0.92rem; }
  .footer-bottom { justify-content: flex-start; }
}

/* ==========================================================================
   Phase 2 — subpage hero, services, completed work, pricing
   ========================================================================== */

/* ---------- Subpage hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 7vw, 88px);
  background:
    radial-gradient(760px 380px at 88% 0%, rgba(249, 115, 22, 0.20), transparent 60%),
    radial-gradient(600px 400px at 5% 100%, rgba(255, 197, 61, 0.10), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}
.page-hero .badge { margin-inline: auto; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero .lead { margin-inline: auto; }
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.section-note {
  margin-top: 26px;
  font-size: 0.87rem;
  color: var(--muted);
  max-width: 760px;
}

/* ---------- Services page ---------- */
.svc-group { margin-bottom: clamp(38px, 5vw, 58px); }
.svc-group > h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  padding-bottom: 12px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--line);
}
.svc-group > h2 .count {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 11px;
  border-radius: var(--pill);
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(249, 115, 22, 0.35);
}
.svc-card h3 { font-size: 1.06rem; }
.svc-card > p { font-size: 0.92rem; color: var(--muted); }

.svc-benefits {
  display: grid;
  gap: 7px;
  margin-top: 4px;
}
.svc-benefits li {
  position: relative;
  padding-left: 24px;
  font-size: 0.88rem;
  color: var(--body);
}
.svc-benefits li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--orange-500);
  border-bottom: 2px solid var(--orange-500);
  transform: rotate(-45deg);
}

.svc-card .card-link { margin-top: auto; padding-top: 12px; }

/* ---------- Completed services ---------- */
.completed { background: var(--bg-soft); }

.done-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.done-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  background: linear-gradient(165deg, #ffffff, #f7fafd);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.done-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.done-card h3 { font-size: 1.05rem; }
.done-card p { font-size: 0.92rem; color: var(--muted); flex: 1; }

.done-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 5px 13px;
  border-radius: var(--pill);
  background: rgba(10, 31, 60, 0.06);
  color: var(--navy-800);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.done-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-500);
}

.done-meta {
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 28px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.price-card.featured {
  background: linear-gradient(165deg, var(--navy-900), var(--navy-950));
  border-color: rgba(255, 197, 61, 0.45);
  box-shadow: var(--shadow-lg);
}
.price-card.featured:hover { transform: translateY(-8px); }

.price-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  border-radius: var(--pill);
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.4);
}

.price-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-600);
}
.price-card.featured .price-name { color: var(--yellow-400); }

.price-from {
  display: block;
  margin-top: 16px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-card.featured .price-from { color: rgba(255, 255, 255, 0.55); }

.price-amount {
  font-size: clamp(2.1rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.price-card.featured .price-amount { color: #fff; }

.price-suits {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}
.price-card.featured .price-suits { color: rgba(255, 255, 255, 0.7); }

.price-divider {
  height: 1px;
  margin: 22px 0;
  background: var(--line);
}
.price-card.featured .price-divider { background: rgba(255, 255, 255, 0.14); }

.price-includes {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.price-card.featured .price-includes { color: #fff; }

.price-list {
  display: grid;
  gap: 11px;
  flex: 1;
}
.price-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  color: var(--body);
}
.price-card.featured .price-list li { color: rgba(255, 255, 255, 0.85); }
.price-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.4em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--orange-500);
  border-bottom: 2px solid var(--orange-500);
  transform: rotate(-45deg);
}

.price-card .btn { width: 100%; margin-top: 26px; }

.price-note {
  max-width: 780px;
  margin: 34px auto 0;
  text-align: center;
  font-size: 0.87rem;
  color: var(--muted);
}

/* ---------- Accent text (used in page + hospital heroes) ---------- */
.page-hero h1 .accent,
.h-hero h1 .h-accent {
  background: linear-gradient(120deg, var(--orange-400), var(--yellow-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h-hero h1 .h-accent {
  background: linear-gradient(120deg, #2dd4bf, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------- Phase 2 responsive ---------- */
@media (max-width: 1024px) {
  .svc-grid, .done-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured, .price-card.featured:hover { transform: none; }
}
@media (max-width: 640px) {
  .svc-grid, .done-grid, .price-grid { grid-template-columns: 1fr; }
  .page-hero-actions .btn,
  .section-actions .btn { width: 100%; }
  .price-card.featured { order: -1; }
}

/* ==========================================================================
   Phase 6B — UI/UX, branding, navigation & visual refresh
   ========================================================================== */

/* ---------- Breadcrumbs (inside page-hero) ---------- */
.breadcrumbs {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  animation: fadeUp 0.5s var(--ease) both;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 7px 16px;
  list-style: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: var(--pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.82rem;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 4px;
  margin-left: 4px;
  opacity: 0.45;
}
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s var(--ease);
}
.breadcrumbs a:hover { color: var(--yellow-400); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: #fff; font-weight: 600; }

/* ---------- Hero entrance + decorative shapes ---------- */
.hero-copy > * { animation: fadeUp 0.7s var(--ease) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.23s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.30s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.37s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.44s; }
.hero-visual { animation: fadeUp 0.8s var(--ease) 0.3s both; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.5px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 0%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 0%, transparent 100%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: float 9s var(--ease) infinite;
}
.hero-shape.hs-1 {
  width: 90px; height: 90px;
  top: 12%; right: 6%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 197, 61, 0.5), transparent 70%);
  filter: blur(2px);
  animation-duration: 11s;
}
.hero-shape.hs-2 {
  width: 150px; height: 150px;
  bottom: 8%; left: 3%;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  animation-duration: 14s;
  animation-delay: 2s;
}
.hero-shape.hs-3 {
  width: 46px; height: 46px;
  top: 58%; right: 42%;
  background: rgba(249, 115, 22, 0.4);
  filter: blur(6px);
  animation-duration: 8s;
  animation-delay: 1s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* Page-hero content entrance */
.page-hero .badge,
.page-hero h1,
.page-hero .lead,
.page-hero .page-hero-actions { animation: fadeUp 0.65s var(--ease) both; }
.page-hero h1 { animation-delay: 0.08s; }
.page-hero .lead { animation-delay: 0.16s; }
.page-hero .page-hero-actions { animation-delay: 0.24s; }

/* ---------- Footer (redesigned, 5 columns) ---------- */
.footer-logo {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(2, 8, 20, 0.4);
  transition: transform 0.25s var(--ease);
}
.footer-logo:hover { transform: translateY(-2px); }
.footer-logo img {
  height: 54px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}
.foot-person {
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
}
.foot-person span {
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow-400);
  margin-top: 2px;
}
.foot-address address {
  font-size: 0.93rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}
.footer-legal { display: grid; gap: 4px; }
.footer-legal p { max-width: none; }

.footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.foot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.foot-btn:hover {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.4);
}
.foot-btn svg { display: block; }

/* ---------- Floating action buttons ---------- */
.fab-stack {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0.3s var(--ease);
}
.fab-stack.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
}
.fab {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(5, 16, 31, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab-wa { background: #25d366; color: #fff; }
.fab-wa:hover { box-shadow: 0 16px 34px rgba(37, 211, 102, 0.45); }
.fab-top {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}
.fab-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.fab-top:hover { box-shadow: 0 16px 34px rgba(10, 31, 60, 0.5); }

/* ---------- FAQ accordion open animation ---------- */
.faq-item[open] .faq-a { animation: faqOpen 0.35s var(--ease) both; }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.faq-item summary:hover { background: rgba(249, 115, 22, 0.04); }
.faq-item summary { transition: background-color 0.2s var(--ease); }

/* ---------- Micro-interactions ---------- */
.card-icon,
.feature-icon { transition: transform 0.3s var(--ease); }
.card:hover .card-icon,
.feature:hover .feature-icon { transform: translateY(-3px) rotate(-4deg); }

.footer-col a { display: inline-block; }
.footer-col li:has(a) { transition: transform 0.2s var(--ease); }
.footer-col li:has(a):hover { transform: translateX(4px); }

/* Section headings: subtle accent bar */
.section-head h2 { position: relative; }

/* ---------- Scroll margin for sticky header anchors ---------- */
section[id],
h2[id],
h3[id],
div[id]:not(.fab-stack) {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ---------- Responsive (6B) — footer column ladder ---------- */
@media (max-width: 1120px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .fab-stack { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .fab { width: 46px; height: 46px; }
  .fab svg { width: 22px; height: 22px; }
  .footer-logo img { height: 46px; }
  .breadcrumbs ol { font-size: 0.76rem; padding: 6px 12px; }
  .hero-shape.hs-3 { display: none; }
}

/* ==========================================================================
   Pre-Phase-7 — UI/UX corrections
   (rich blue theme, hero brand + dashboard image, back navigation,
    homepage section styles, service group illustrations)
   ========================================================================== */

/* ---------- Design tokens: rich blue ---------- */
:root {
  --blue-700: #17539e;
  --blue-600: #2472d8;
  --color-rich-blue: #2472d8;
}

/* ---------- Theme: subtle rich-blue depth in dark hero areas ---------- */
.hero {
  background:
    radial-gradient(880px 440px at 78% 4%, rgba(36, 114, 216, 0.26), transparent 62%),
    radial-gradient(900px 420px at 85% 10%, rgba(249, 115, 22, 0.22), transparent 60%),
    radial-gradient(700px 500px at 8% 90%, rgba(255, 197, 61, 0.14), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
}
.page-hero {
  background:
    radial-gradient(760px 380px at 88% 0%, rgba(249, 115, 22, 0.20), transparent 60%),
    radial-gradient(680px 420px at 6% 2%, rgba(36, 114, 216, 0.24), transparent 62%),
    radial-gradient(600px 400px at 5% 100%, rgba(255, 197, 61, 0.10), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
}

/* ---------- Header: visual active state for homepage-anchor links ---------- */
.main-nav ul a.is-active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.28), rgba(255, 197, 61, 0.16));
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.45);
}

/* ---------- Hero: brand logo plate ---------- */
.hero-logo {
  display: inline-flex;
  align-self: flex-start;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(2, 8, 20, 0.42);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.hero-logo:hover { transform: translateY(-3px); box-shadow: 0 20px 46px rgba(2, 8, 20, 0.5); }
.hero-logo img {
  display: block;
  height: 54px;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
}
.hero-copy > *:nth-child(7) { animation-delay: 0.51s; }

/* ---------- Hero: dashboard visual layering (image + glass cards + halo) ---------- */
.hero-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(2, 8, 20, 0.45);
}
.hero-orb {
  z-index: 0;
  inset: -8% -6% -8% -6%;
  height: auto;
}
.glass-card {
  z-index: 2;
  background: rgba(6, 17, 34, 0.62);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- Back navigation row (breadcrumb + visible Back button) ---------- */
.bc-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
  animation: fadeUp 0.55s var(--ease) both;
}
.bc-row .breadcrumbs { margin-bottom: 0; animation: none; }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-back:hover {
  transform: translateX(-3px);
  color: #fff;
  background: rgba(249, 115, 22, 0.22);
  border-color: rgba(249, 115, 22, 0.6);
}
.btn-back:active { transform: translateX(-4px) scale(0.98); }
.btn-back:focus-visible { outline: 2px solid var(--orange-400); outline-offset: 2px; }

/* ---------- Section background utility ---------- */
.section-soft { background: var(--bg-soft); }

/* ---------- Homepage: My Projects mini cards ---------- */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.mini-proj {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(10, 31, 60, 0.07);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.mini-proj:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(10, 31, 60, 0.14);
  border-color: rgba(249, 115, 22, 0.4);
}
.mp-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.mp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}
.mini-proj:hover .mp-thumb img { transform: scale(1.07); }
.mp-cat {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 4px 9px;
  border-radius: var(--pill);
  background: rgba(6, 17, 34, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.mp-demo {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 4px 9px;
  border-radius: var(--pill);
  background: var(--yellow-400);
  color: var(--navy-950);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.mp-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 15px 16px;
  flex: 1;
}
.mp-body h3 { font-size: 0.98rem; line-height: 1.3; }
.mp-body > p { font-size: 0.82rem; color: var(--muted); flex: 1; }
.mp-body .card-link { margin-top: 6px; font-size: 0.85rem; }

/* ---------- Homepage: review showcase card ---------- */
.review-showcase {
  display: grid;
  gap: 14px;
  padding: clamp(26px, 3.4vw, 38px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 44px rgba(10, 31, 60, 0.1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.review-showcase:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 54px rgba(10, 31, 60, 0.16);
}
.rs-stars { display: flex; gap: 7px; color: var(--yellow-400); }
.rs-stars svg { transition: transform 0.25s var(--ease); }
.rs-stars svg:hover { transform: translateY(-3px) rotate(-6deg); }
.review-showcase h3 { font-size: 1.2rem; }
.rs-points { display: grid; gap: 11px; }
.rs-points li {
  position: relative;
  padding-left: 30px;
  font-size: 0.94rem;
  color: var(--body);
}
.rs-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
}
.rs-points li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.4em;
  width: 9px;
  height: 5px;
  border-left: 2.2px solid #fff;
  border-bottom: 2.2px solid #fff;
  transform: rotate(-45deg);
}
.rs-note {
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}
.rs-note a { color: var(--orange-600); font-weight: 600; }
.rs-note a:hover { text-decoration: underline; }

/* ---------- Services page: illustration tile beside each group heading ---------- */
.svc-group > h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.svc-group-img {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(10, 31, 60, 0.1);
  transition: transform 0.3s var(--ease);
}
.svc-group > h2:hover .svc-group-img { transform: translateY(-3px) rotate(-3deg); }
.svc-group > h2 .count { margin-left: 0; }

/* ---------- Responsive: new components ---------- */
@media (max-width: 1279px) {
  .mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-row { flex-direction: column; gap: 9px; }
}
@media (max-width: 430px) {
  .mini-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-logo { padding: 8px 11px; border-radius: 13px; }
  .hero-logo img { height: 44px; }
  .svc-group-img { width: 44px; height: 44px; border-radius: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-copy > *,
  .hero-visual,
  .page-hero .badge,
  .page-hero h1,
  .page-hero .lead,
  .page-hero .page-hero-actions,
  .breadcrumbs { opacity: 1 !important; transform: none !important; }
}
