/* ==========================================================================
   MNV Associates: homepage concept
   1. Tokens  2. Base  3. Utilities  4. Buttons  5. Header  6. Hero
   7. Services  8. Why MNV  9. Insights  10. Contact  11. Footer
   12. Floating WhatsApp  13. Motion  14. WordPress
   ========================================================================== */

/* Brand font: Gilroy when licensed web fonts are added; Manrope is self-hosted as the fallback. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}

/* 1. Tokens: brand primary #533278, secondary #A191B2, white
   ========================================================================== */
:root {
  --purple: #533278;
  --purple-600: #462a66;
  --purple-800: #2f1b47;
  --purple-900: #1f1131;
  --lilac: #a191b2;
  --lilac-200: #d9d1e2;
  --lilac-100: #efebf4;
  --lilac-50: #f8f6fb;
  --white: #ffffff;

  --ink: #1d1428;
  --body: #4a4058;
  --muted: #6b6178;
  --line: #e7e1ee;

  /* Gilroy first (when licensed web fonts are added), Manrope as fallback. */
  --font-sans: "Gilroy", "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 12px 32px -12px rgb(31 17 49 / 0.18);
  --shadow-lg: 0 30px 60px -20px rgb(31 17 49 / 0.45);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 72px;
}

/* 2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; }

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
svg { display: block; max-width: 100%; }
button { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote, dl, dd { margin: 0; }

:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--white); }
::selection { background: var(--purple); color: var(--white); }

/* Line-icon defaults for the <use> sprite */
.ic {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 3. Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--purple);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
}
.eyebrow--light { color: var(--lilac); }

/* The tagline is always lowercase: enforced in CSS as well as in the copy. */
.tagline { text-transform: lowercase !important; }
.eyebrow.tagline { letter-spacing: 0.04em; font-size: 0.95rem; }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
}

.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 24px 64px;
}
.section-head h2 { margin-top: 16px; max-width: 640px; }

/* 4. Buttons
   ========================================================================== */
.btn {
  --btn-bg: var(--purple);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.975rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn .ic { width: 18px; height: 18px; stroke-width: 2; transition: transform 0.2s; }
.btn:hover { --btn-bg: var(--purple-600); }
.btn:hover .ic { transform: translateX(3px); }

.btn-light { --btn-bg: var(--white); --btn-fg: var(--purple); }
.btn-light:hover { --btn-bg: var(--lilac-100); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgb(255 255 255 / 0.35);
}
.btn-ghost:hover { background: rgb(255 255 255 / 0.08); border-color: var(--white); }
.btn-ghost:hover .ic { transform: none; }

.btn-outline {
  background: transparent;
  color: var(--purple);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--purple); background: var(--lilac-50); }

.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.9rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--purple);
}
.text-link .ic { width: 18px; height: 18px; stroke-width: 2; transition: transform 0.2s; }

/* 5. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile panel. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { flex: none; border-radius: 12px; }

.brand img { width: auto; height: 28px; }

.nav-desktop ul { display: flex; gap: 4px; }
.nav-desktop a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 0.2s, color 0.2s;
}
.nav-desktop a:hover { background: var(--lilac-100); color: var(--purple); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang { padding: 8px 10px; font-weight: 600; color: var(--muted); border-radius: 8px; }
.lang:hover { color: var(--purple); }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s, top 0.25s;
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-panel {
  position: fixed;
  inset: var(--header-h) 0 0;
  background: var(--white);
  overflow-y: auto;
  padding-block: 12px 32px;
  animation: slide-in 0.25s ease-out;
}
.mobile-panel[hidden] { display: none; }

@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } }

.mobile-list li { border-bottom: 1px solid var(--line); }
.mobile-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}
.mobile-list .ic { width: 20px; height: 20px; color: var(--lilac); }

.mobile-footer { display: grid; gap: 16px; margin-top: 28px; }
.mobile-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  color: var(--purple);
}
.mobile-phone .ic { width: 18px; height: 18px; }
.mobile-tagline { margin-top: 8px; text-align: center; font-weight: 700; color: var(--purple); }

@media (max-width: 1080px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
}
@media (min-width: 1081px) {
  .mobile-panel { display: none !important; }
}
@media (max-width: 560px) {
  .header-cta, .lang { display: none; }
  .brand img { height: 22px; }
}

/* 6. Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(56px, 8vw, 104px);
  color: rgb(255 255 255 / 0.8);
  background: var(--purple-900);
}

/* Dubai skyline photo, tinted into the brand palette by the overlay */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%;
  filter: saturate(0.8);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(0deg, rgb(31 17 49 / 0.95) 0%, rgb(31 17 49 / 0) 38%),
    linear-gradient(90deg, rgb(31 17 49 / 0.97) 0%, rgb(31 17 49 / 0.9) 38%, rgb(47 27 71 / 0.62) 68%, rgb(83 50 120 / 0.5) 100%);
}

/* Subtle architectural grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000 30%, transparent 100%);
  mask-image: radial-gradient(80% 70% at 70% 30%, #000 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -120px;
  top: 10%;
  border-radius: 50%;
  background: var(--lilac);
  opacity: 0.18;
  filter: blur(120px);
}

.hero-motif {
  position: absolute;
  z-index: -1;
  left: -140px;
  bottom: -180px;
  width: 560px;
  height: 560px;
  color: rgb(255 255 255 / 0.04);
  stroke-width: 0.9;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  font-weight: 700;
  color: var(--white);
}
.hero-kicker .ic {
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: 50%;
  background: var(--lilac);
  color: var(--purple-900);
  stroke-width: 2.2;
}

.hero-copy h1 { margin-top: 24px; color: var(--white); }
.hero-copy h1 em { font-style: normal; color: var(--lilac); }

.hero-lead {
  max-width: 560px;
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  font-size: 0.9rem;
  font-weight: 500;
}
.hero-assurances li { display: inline-flex; align-items: center; gap: 8px; }
.hero-assurances .ic { width: 18px; height: 18px; color: var(--lilac); stroke-width: 2.4; }

/* Dashboard composition */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  padding-block: 56px;
}

.dash-card {
  padding: 24px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  color: var(--muted);
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lilac-100);
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 700;
}

.dash-metric {
  margin-top: 10px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.dash-metric span {
  margin-left: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #1f8a5b;
}

.dash-chart { width: 100%; height: 150px; margin-top: 16px; overflow: visible; }
.grid-line { stroke: var(--line); stroke-dasharray: 3 5; }
.chart-line {
  fill: none;
  stroke: var(--purple);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-months {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.float {
  position: absolute;
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  font-size: 0.78rem;
  color: var(--muted);
}
.float strong { display: block; font-size: 0.9rem; color: var(--ink); }

.float--top { top: 0; right: -28px; align-items: center; }

.float-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
}
.float-icon .ic { width: 18px; height: 18px; stroke-width: 2.4; }

.float--bottom { bottom: 0; left: -36px; flex-direction: column; gap: 8px; width: 250px; }

.float-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; }
.float-row strong { white-space: nowrap; }
.due { font-weight: 700; color: var(--purple); white-space: nowrap; }

.progress { height: 6px; border-radius: 6px; background: var(--lilac-100); overflow: hidden; }
.progress span {
  display: block;
  width: 86%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lilac), var(--purple));
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid rgb(255 255 255 / 0.12);
}
.stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: 32px 24px;
  border-left: 1px solid rgb(255 255 255 / 0.12);
}
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats dd {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
}
.stats dt { font-size: 0.9rem; }

@media (max-width: 960px) {
  .hero-overlay {
    background: linear-gradient(180deg, rgb(31 17 49 / 0.94) 0%, rgb(31 17 49 / 0.86) 45%, rgb(47 27 71 / 0.5) 72%, rgb(31 17 49 / 0.95) 100%);
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .float--top { right: 0; }
  .float--bottom { left: 0; }
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { padding: 24px 16px; }
  .stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid rgb(255 255 255 / 0.12); }
}

@media (max-width: 480px) {
  .hero-ctas .btn { width: 100%; }
  .hero-visual { padding-block: 64px 76px; }
  .dash-card { padding: 18px; }
  .dash-chart { height: 110px; }
  .float { padding: 12px 14px; }
  .float--bottom { width: 220px; }
}

/* 7. Services
   ========================================================================== */
.filters {
  display: flex;
  gap: 8px;
  margin-top: 48px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.filters button:hover { border-color: var(--purple); }
.filters button[aria-pressed="true"] { border-color: var(--purple); background: var(--purple); color: var(--white); }

.count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--lilac-100);
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 700;
}
.filters button[aria-pressed="true"] .count { background: rgb(255 255 255 / 0.18); color: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.service-item { transition: opacity 0.3s, filter 0.3s; }
.service-item.is-dimmed { opacity: 0.3; filter: grayscale(1); pointer-events: none; }

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.service-card:hover { border-color: var(--lilac); box-shadow: var(--shadow); transform: translateY(-3px); }

.service-top { display: flex; align-items: center; justify-content: space-between; }

.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--lilac-100);
  color: var(--purple);
  transition: background-color 0.25s, color 0.25s;
}
.service-icon .ic { width: 26px; height: 26px; }
.service-card:hover .service-icon { background: var(--purple); color: var(--white); }

.service-pillar {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.service-card h3 { margin-top: 24px; }
.service-card p { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }

.service-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--purple);
}
.service-more .ic { width: 16px; height: 16px; stroke-width: 2; transition: transform 0.2s; }
.service-card:hover .service-more .ic { transform: translate(2px, -2px); }

@media (max-width: 960px) {
  .section-head { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .service-card { padding: 16px; border-radius: 14px; }
  .service-icon { width: 40px; height: 40px; border-radius: 11px; }
  .service-icon .ic { width: 21px; height: 21px; }
  .service-pillar { display: none; }
  .service-card h3 { margin-top: 14px; font-size: 1rem; }
  .service-card p {
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .service-more { padding-top: 12px; font-size: 0.82rem; }
  /* On mobile, filtering hides cards instead of dimming them, to keep the list short. */
  .service-item.is-dimmed { display: none; }
}

/* 8. Why MNV
   ========================================================================== */
.why { background: var(--lilac-50); }

.why-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.why-intro h2 { margin-top: 16px; }
.why-intro .lead { margin-top: 20px; }

.why-media { margin-top: 40px; }

.why-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.testimonial {
  position: relative;
  margin: -88px 24px 0;
  box-shadow: var(--shadow-lg);
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--purple);
  color: rgb(255 255 255 / 0.85);
}
.quote-mark { width: 32px; height: 24px; fill: var(--lilac); }
.testimonial blockquote {
  margin-top: 18px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--white);
}
.testimonial figcaption { margin-top: 20px; font-size: 0.9rem; }
.testimonial figcaption strong { display: block; color: var(--white); }

.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.reason {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.reason:nth-child(even) { transform: translateY(32px); }

.reason-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--purple);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lilac-100);
}
.reason h3 { margin-top: 20px; }
.reason p { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }

.process { margin-top: clamp(72px, 9vw, 112px); }
.process-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 28px;
  counter-reset: step;
}

.process-steps li { --bar: 1; position: relative; padding-top: 28px; border-top: 2px solid var(--lilac-200); }
.process-steps li::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--purple);
  transform: scaleX(var(--bar));
  transform-origin: left;
}
.process-steps span { font-size: 0.85rem; font-weight: 800; color: var(--purple); }
.process-steps h4 { margin-top: 8px; font-size: 1.3rem; }
.process-steps p { margin-top: 8px; font-size: 0.95rem; color: var(--muted); }

@media (max-width: 960px) {
  .why-grid { grid-template-columns: 1fr; }
  .reason:nth-child(even) { transform: none; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .reasons, .process-steps { grid-template-columns: 1fr; }
  .reason, .testimonial { padding: 24px; }
  .testimonial { margin: -56px 12px 0; }
  .process-steps { gap: 24px; }
}

/* 9. Insights
   ========================================================================== */
.insights-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.insights-head h2 { margin-top: 16px; }

.insights-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
  margin-top: 48px;
}

.insight--featured { grid-row: span 2; }

.insight-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.insight-link:hover { border-color: var(--lilac); box-shadow: var(--shadow); }
.insight-link:hover .text-link .ic { transform: translateX(4px); }

.insight-thumb {
  position: relative;
  overflow: hidden;
  background: var(--lilac-100);
  aspect-ratio: 16 / 10;
}
.insight-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.insight-link:hover .insight-thumb img { transform: scale(1.04); }

.insight-body { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.insight--featured .insight-body { padding: 32px; }

.insight-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lilac-100);
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 700;
}

.insight h3 { margin-top: 14px; font-size: 1.15rem; line-height: 1.3; }
.insight--featured h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.22; }
.insight-excerpt { margin-top: 12px; color: var(--muted); }
.insight .text-link { margin-top: auto; padding-top: 20px; }

/* Secondary cards: image beside text on wide screens */
@media (min-width: 961px) {
  .insight:not(.insight--featured) .insight-link { flex-direction: row; }
  .insight:not(.insight--featured) .insight-thumb { flex: 0 0 42%; aspect-ratio: auto; }
}

@media (max-width: 960px) {
  .insights-grid { grid-template-columns: 1fr 1fr; }
  .insight--featured { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 640px) {
  .insights-grid { grid-template-columns: 1fr; gap: 16px; }
  .insights-head .btn { width: 100%; }
  .insight-body, .insight--featured .insight-body { padding: 22px; }
}

/* 10. Contact CTA
   ========================================================================== */
.contact { padding-bottom: clamp(56px, 7vw, 96px); }

.contact-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 120% at 100% 100%, var(--purple) 0%, transparent 60%),
    linear-gradient(140deg, var(--purple-800), var(--purple-900));
  color: rgb(255 255 255 / 0.8);
}

.contact-motif {
  position: absolute;
  z-index: -1;
  right: -60px;
  top: -80px;
  width: 360px;
  height: 360px;
  color: rgb(255 255 255 / 0.05);
  stroke-width: 1;
}

.contact-copy h2 { margin-top: 16px; color: var(--white); }
.contact-copy > p:not(.eyebrow) { margin-top: 18px; max-width: 520px; font-size: 1.05rem; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.contact-list { display: grid; gap: 12px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.05);
  color: var(--white);
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s;
}
a.contact-item:hover { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.3); }
.contact-item small { display: block; font-size: 0.78rem; font-weight: 500; color: var(--lilac); }

.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--white);
  color: var(--purple);
}
.contact-icon .ic { width: 20px; height: 20px; stroke-width: 1.8; }

@media (max-width: 960px) {
  .contact-panel { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .contact-ctas .btn { width: 100%; }
  .contact-item { padding: 14px; font-size: 0.92rem; word-break: break-word; }
}

/* 11. Footer
   ========================================================================== */
.site-footer {
  padding-top: clamp(56px, 8vw, 88px);
  background: var(--purple-900);
  color: rgb(255 255 255 / 0.7);
  font-size: 0.95rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-logo { width: auto; height: 26px; }
.footer-tagline { margin-top: 20px; font-size: 1.15rem; font-weight: 700; color: var(--lilac); }
.footer-about { margin-top: 8px; max-width: 300px; }

.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.2s, color 0.2s;
}
.socials a:hover { background: var(--white); color: var(--purple); }
.socials .ic { width: 18px; height: 18px; }

.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-col h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-col ul { display: grid; gap: 4px; margin-top: 16px; }
.footer-col a { display: inline-block; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.85rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
}

/* 12. Floating WhatsApp
   ========================================================================== */
.wa-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  height: 60px;
  padding: 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 12px 28px -8px rgb(37 211 102 / 0.55), 0 4px 10px rgb(31 17 49 / 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float .ic { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgb(37 211 102 / 0.65), 0 4px 10px rgb(31 17 49 / 0.15); }
.wa-float:focus-visible { outline-color: var(--purple); }

/* Label slides out on hover / focus (desktop); icon-only by default */
.wa-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.3s ease, opacity 0.2s, margin 0.3s;
}
.wa-float:hover .wa-label,
.wa-float:focus-visible .wa-label { max-width: 140px; margin-left: 10px; opacity: 1; }

/* Soft attention pulse */
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #25d366;
}
@media (prefers-reduced-motion: no-preference) {
  .wa-float::before { animation: wa-pulse 2.4s ease-out infinite; }
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}

body.menu-open .wa-float { display: none; }

@media (max-width: 600px) {
  .wa-float { height: 56px; padding: 0 15px; }
}

/* 13. Motion: GSAP drives entrances; elements start hidden only when JS is on
   ========================================================================== */
.js [data-hero-item],
.js [data-hero-pop],
.js .reveal { visibility: hidden; }
/* Chart wipes in left to right (line + area together) */
.js .dash-chart { clip-path: inset(0 100% 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* 14. WordPress: admin bar, inner pages, articles, core classes
   ========================================================================== */
.admin-bar .site-header { top: 32px; }
.admin-bar .mobile-panel { top: calc(var(--header-h) + 32px); }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .mobile-panel { top: calc(var(--header-h) + 46px); }
}
@media (max-width: 600px) {
  /* Admin bar scrolls away on phones, so the header and panel sit at the very top */
  .admin-bar .site-header { top: 0; }
  .admin-bar .mobile-panel { top: var(--header-h); }
}

.brand img { width: auto; max-width: 100%; }
.brand-text { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--purple); }
.brand-text--light { color: var(--white); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container--narrow { max-width: calc(760px + var(--gutter) * 2); }
.container--wide { max-width: calc(1000px + var(--gutter) * 2); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }

/* Compact page header */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px);
  color: rgb(255 255 255 / 0.8);
  background:
    radial-gradient(90% 120% at 100% 0%, var(--purple) 0%, transparent 60%),
    linear-gradient(160deg, var(--purple-800), var(--purple-900));
}
.page-hero .hero-motif { left: auto; right: -120px; bottom: -220px; }
.page-hero h1 { margin-top: 16px; max-width: 900px; color: var(--white); font-size: clamp(2rem, 4.4vw, 3.4rem); }
.page-hero-lead { max-width: 680px; margin-top: 18px; font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
.page-hero .insight-meta { color: rgb(255 255 255 / 0.75); margin-top: 20px; }
.page-hero .tag { background: rgb(255 255 255 / 0.12); color: var(--white); }
.page-hero--article { padding-bottom: clamp(96px, 12vw, 160px); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--lilac);
}
.back-link::before { content: "\2190"; }
.back-link:hover { color: var(--white); }

/* Article */
.article-media { margin-top: clamp(-120px, -9vw, -64px); position: relative; }
.article-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.prose {
  padding-block: clamp(40px, 6vw, 72px);
  font-size: 1.075rem;
  line-height: 1.75;
  color: var(--body);
}
.prose > * + * { margin-top: 1.2em; }
.prose h2 { margin-top: 2em; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.prose h3 { margin-top: 1.8em; font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--purple); }
.prose a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 20px 24px;
  border-left: 4px solid var(--purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--lilac-50);
  color: var(--ink);
  font-weight: 600;
}
.prose img { height: auto; border-radius: var(--radius); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--ink); background: var(--lilac-50); }
.alignwide { max-width: 1000px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { margin-inline: auto; }

/* Blog grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-grid--two { grid-template-columns: repeat(2, 1fr); }
.post-grid .insight-link { flex-direction: column; }
.post-grid .insight-thumb { flex: none; aspect-ratio: 16 / 10; }

.related { background: var(--lilac-50); }
.related-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 32px; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink);
}
.pagination .page-numbers.current,
.pagination a.page-numbers:hover { border-color: var(--purple); background: var(--purple); color: var(--white); }

.empty-state { text-align: center; display: grid; justify-items: center; gap: 16px; }

@media (max-width: 960px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .post-grid, .post-grid--two { grid-template-columns: 1fr; }
}

/* 15. Consultation popup (native <dialog> + WPForms)
   ========================================================================== */
body.modal-open { overflow: hidden; }

.consult-modal {
  width: min(980px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--body);
  box-shadow: 0 40px 100px -20px rgb(31 17 49 / 0.6);
  overflow: hidden;
}
.consult-modal::backdrop {
  background: rgb(31 17 49 / 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.consult-shell {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  max-height: calc(100dvh - 32px);
}

.consult-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.consult-close:hover { background: var(--purple); border-color: var(--purple); color: var(--white); transform: rotate(90deg); }
.consult-close .ic { width: 20px; height: 20px; stroke-width: 2; }

/* Left: brand panel */
.consult-aside {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 44px 40px;
  color: rgb(255 255 255 / 0.8);
  background:
    radial-gradient(90% 70% at 100% 0%, var(--purple) 0%, transparent 65%),
    linear-gradient(160deg, var(--purple-800), var(--purple-900));
}
.consult-motif {
  position: absolute;
  z-index: -1;
  right: -80px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  color: rgb(255 255 255 / 0.05);
  stroke-width: 1;
}
.consult-aside h2 { margin-top: 14px; color: var(--white); font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.consult-lead { margin-top: 14px; }
.consult-points { display: grid; gap: 12px; margin-top: 28px; font-weight: 600; color: var(--white); }
.consult-points li { display: flex; gap: 10px; align-items: flex-start; }
.consult-points .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--lilac); stroke-width: 2.4; }

.consult-direct {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 32px;
  font-size: 0.9rem;
}
.consult-direct span { color: var(--lilac); font-weight: 600; }
.consult-direct a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--white); }
.consult-direct a:hover { color: var(--lilac); }
.consult-direct .ic { width: 18px; height: 18px; }

/* Right: form */
.consult-body {
  padding: 44px 40px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.consult-privacy { margin-top: 12px; font-size: 0.8rem; color: var(--muted); }

/* WPForms, re-skinned with the brand tokens (modern markup uses CSS variables) */
.consult-body .wpforms-container {
  --wpforms-field-border-radius: 12px;
  --wpforms-field-border-color: var(--line);
  --wpforms-field-border-size: 1.5px;
  --wpforms-field-background-color: var(--lilac-50);
  --wpforms-field-text-color: var(--ink);
  --wpforms-field-size-input-height: 50px;
  --wpforms-field-size-font-size: 15px;
  --wpforms-label-color: var(--ink);
  --wpforms-label-size-font-size: 14px;
  --wpforms-label-error-color: #c0392b;
  --wpforms-button-background-color: var(--purple);
  --wpforms-button-text-color: #fff;
  --wpforms-button-border-radius: 999px;
  --wpforms-button-size-height: 54px;
  --wpforms-button-size-font-size: 16px;
  --wpforms-page-break-color: var(--purple);
  margin: 0 !important;
  font-family: var(--font-sans);
}
.consult-body .wpforms-container .wpforms-field { padding-block: 9px; }
.consult-body .wpforms-container .wpforms-field-label { font-weight: 700; }
.consult-body .wpforms-container input,
.consult-body .wpforms-container select,
.consult-body .wpforms-container textarea { font-family: inherit !important; }
.consult-body .wpforms-container input:focus,
.consult-body .wpforms-container select:focus,
.consult-body .wpforms-container textarea:focus {
  border-color: var(--purple) !important;
  box-shadow: 0 0 0 3px rgb(83 50 120 / 0.15) !important;
  background: var(--white) !important;
}
.consult-body .wpforms-container textarea.wpforms-field-small { height: 96px; }
.consult-body .wpforms-submit-container { margin-top: 10px !important; }
.consult-body .wpforms-container button[type="submit"] {
  width: 100%;
  font-family: inherit !important;
  font-weight: 700 !important;
  transition: background-color 0.2s !important;
}
.consult-body .wpforms-container button[type="submit"]:hover { background: var(--purple-600) !important; }

/* Confirmation message after submit */
.consult-body .wpforms-confirmation-container-full {
  padding: 28px !important;
  border: 0 !important;
  border-radius: var(--radius) !important;
  background: var(--lilac-50) !important;
  color: var(--body) !important;
}
.consult-body .wpforms-confirmation-container-full h3 { color: var(--purple); font-size: 1.35rem; margin-bottom: 8px; }

@media (max-width: 860px) {
  .consult-modal {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
  /* Stack normally and scroll the whole sheet (a grid row would squash the header) */
  .consult-shell { display: block; max-height: 100dvh; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
  .consult-aside { padding: 28px var(--gutter) 24px; }
  .consult-aside h2 { padding-right: 52px; }
  .consult-points, .consult-direct { display: none; }
  .consult-body { padding: 24px var(--gutter) 32px; overflow: visible; }
  .consult-close { top: 20px; right: var(--gutter); border-color: rgb(255 255 255 / 0.3); background: rgb(255 255 255 / 0.1); color: var(--white); }
}

@media (max-width: 600px) {
  /* Paired fields stack on phones so placeholders are never cut off */
  .consult-body .wpforms-container .wpforms-field.wpforms-one-half {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
  }
}
