/* ==========================================================================
   Appz Consult — Design System
   Editorial × Technical × Confident
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@1,700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ====================================================
     Palette — Playful Tech (cream + deep purple + gradients)
     Inspired by meshPOS — warm bg, purple ink, vivid accents
     ==================================================== */

  /* Surfaces */
  --ink: #1a0b3d;              /* deep purple ink — main text */
  --ink-soft: #4c1d95;         /* softer purple text */
  --ink-deep: #0d0626;         /* near-black purple */
  --ink-line: #2e1065;
  --paper: #fff8f0;            /* warm cream — main bg */
  --parchment: #f8efe2;        /* peach-tinted alt bg */
  --parchment-warm: #f3e3c8;
  --muted: #6b5b8c;

  /* Vibrant accents */
  --pink: #ff4d8d;
  --coral: #ff7a4d;
  --yellow: #ffc93f;
  --mint: #34d399;
  --teal: #14b8a6;
  --sky: #22b4ff;
  --purple: #a855f7;
  --indigo: #6366f1;
  --magenta: #ec4899;

  /* Legacy variable aliases — point them at the new colors so old selectors keep working */
  --emerald: #6366f1;          /* primary brand → indigo */
  --emerald-deep: #4c1d95;     /* dark variant */
  --emerald-bright: #a855f7;   /* hover/accent → purple */
  --berry: #ec4899;            /* magenta */
  --berry-deep: #be185d;
  --cyan-bright: #22b4ff;
  --lime: #ffc93f;             /* mapped to yellow */
  --lime-soft: #ffe680;
  --gold: #ffc93f;
  --gold-soft: #ffe680;
  --rust: #ff4d8d;             /* hot pink */
  --terracotta: #ff7a4d;

  /* Lines */
  --line: rgba(76, 29, 149, 0.08);
  --line-strong: rgba(76, 29, 149, 0.16);

  /* Gradients (reusable) */
  --grad-primary: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #ff4d8d 100%);
  --grad-warm: linear-gradient(135deg, #ff4d8d 0%, #ff7a4d 50%, #ffc93f 100%);
  --grad-cool: linear-gradient(135deg, #14b8a6 0%, #22b4ff 50%, #6366f1 100%);
  --grad-hero: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #ff4d8d 100%);
  --grad-dark: linear-gradient(135deg, #0d0626 0%, #2e1065 100%);
  --grad-soft: linear-gradient(135deg, rgba(168,85,247,0.10) 0%, rgba(236,72,153,0.10) 100%);

  /* Typography — chunky display + playful italic + clean body */
  --font-display: 'Bricolage Grotesque', 'Inter', sans-serif;
  --font-italic: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Spacing */
  --gutter: clamp(1.5rem, 4vw, 3rem);
  --section: clamp(2.8rem, 6.5vw, 5.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ----- Type scale ------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.92;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(168, 85, 247, 0.10);
}
.serif-italic {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 700;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ----- Layout primitives ------------------------------------------------- */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-tight {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(76, 29, 149, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.brand,
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.brand-mark {
  width: 38px;
  height: 38px;
  background: var(--grad-primary);
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  text-indent: -0.02em;     /* fine optical centering adjustment for A */
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.4),
              inset 0 -3px 8px rgba(0, 0, 0, 0.10),
              inset 0 2px 6px rgba(255, 255, 255, 0.18);
}
.brand-mark::after {
  content: '';
  position: absolute;
  top: -3px; right: -3px;
  width: 10px;
  height: 10px;
  background: var(--grad-warm);
  border-radius: 50%;
  border: none;
  opacity: 1;
  box-shadow: 0 0 12px rgba(255, 201, 63, 0.8);
}
.nav-links {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a {
  position: relative;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.nav-links a::before { display: none; }
.nav-links a:hover {
  background: rgba(168, 85, 247, 0.10);
  color: var(--purple);
}
.nav-links a.active {
  background: var(--ink);
  color: #fff;
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.7rem 1.3rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.5);
  background: var(--grad-primary);
  border: none;
  color: #fff;
}

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(168, 85, 247, 0.5);
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}
.btn-arrow {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.btn:hover .btn-arrow { transform: rotate(45deg) translate(3px, -3px); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--grad-dark);
  color: #fff;
  padding: 5rem 0 2.5rem;
  margin-top: var(--section);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(236, 72, 153, 0.40), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.footer > .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1rem;
  color: #fff;
}
.footer-tag {
  color: rgba(255, 255, 255, 0.7);
  max-width: 32ch;
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 500;
}
.footer h4,
.footer h5 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--yellow);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.6rem; }
.footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer a:hover { color: var(--yellow); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  letter-spacing: 0;
}
.footer-bottom-right { display: flex; gap: 1.5rem; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ==========================================================================
   SHARED PAGE COMPONENTS
   ========================================================================== */

/* Section heading */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.8rem;
}
.section-num {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(168, 85, 247, 0.12);
  width: fit-content;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.section-head h2 .serif-italic,
.section-head h2 em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 700;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 52ch;
  font-weight: 500;
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Page hero (used on inner pages) */
.page-hero {
  padding: 6rem 0 5rem;
  position: relative;
  background: var(--paper);
  overflow: hidden;
}
.page-hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.page-hero::before {
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 77, 141, 0.35), transparent 70%);
}
.page-hero::after {
  bottom: -120px;
  left: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.30), transparent 70%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .crumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 1.8rem;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(168, 85, 247, 0.12);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  max-width: 18ch;
  color: var(--ink);
}
.page-hero h1 em,
.page-hero h1 .serif-italic {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 700;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.page-hero .lede {
  margin-top: 1.8rem;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  font-weight: 500;
}

/* Tags / chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald-bright);
}

/* Reveal animation */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
.reveal-2 { animation: rise 0.9s 0.1s cubic-bezier(.2,.7,.2,1) both; }
.reveal-3 { animation: rise 0.9s 0.2s cubic-bezier(.2,.7,.2,1) both; }
.reveal-4 { animation: rise 0.9s 0.3s cubic-bezier(.2,.7,.2,1) both; }

/* Grain overlay — very subtle paper texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ==========================================================================
   MEGA MENU (added in v3 — dropdown on hover, accordion on mobile)
   ========================================================================== */
.has-mega { position: relative; }

/* Animated dot indicator — small circle by default, stretches into a
   gradient pill on hover or when the dropdown is open */
.nav-link .caret {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(76, 29, 149, 0.32);
  margin-left: 0.55em;
  vertical-align: middle;
  position: relative;
  top: -1px;
  transition: width 0.3s cubic-bezier(.4, 0, .2, 1),
              background 0.3s ease,
              transform 0.3s ease;
}
.has-mega:hover > .nav-link .caret,
.has-mega.open > .nav-link .caret {
  width: 16px;
  background: linear-gradient(90deg, var(--coral), var(--pink), var(--purple));
  transform: scale(1.05);
}

.mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 720px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -16px rgba(76, 29, 149, 0.25), 0 12px 24px -12px rgba(76, 29, 149, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.12);
  padding: 1.8rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 200;
}
.mega-wide { min-width: 880px; }

.has-mega:hover > .mega,
.has-mega:focus-within > .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Add a hover bridge so the dropdown doesn't disappear when moving toward it */
.mega::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.mega-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.mega-wide .mega-inner {
  grid-template-columns: repeat(3, 1fr);
}
.mega-col { display: flex; flex-direction: column; gap: 0.4rem; }

.mega-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.18);
}
.mega-eyebrow.mt { margin-top: 1rem; }

.mega-item {
  display: block;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.mega-item:hover { background: rgba(168, 85, 247, 0.06); }
.mega-item-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 0.2rem;
}
.mega-item-desc {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.45;
  font-weight: 500;
}
.mega-item:hover .mega-item-name { color: var(--purple); }

.mega-link {
  display: block;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.mega-link:hover {
  background: rgba(168, 85, 247, 0.08);
  color: var(--purple);
  transform: translateX(2px);
}

.mega-feature {
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 1.4rem 1.4rem 1.2rem;
  position: relative;
  overflow: hidden;
}
.mega-feature-products { background: var(--grad-primary); }
.mega-feature-industries { background: var(--grad-cool); }
.mega-feature-company { background: var(--grad-warm); }
.mega-feature::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 70%);
}
.mega-feature-eyebrow {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.8rem;
}
.mega-feature-title {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.7rem;
}
.mega-feature-title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 700;
  color: var(--yellow);
}
.mega-feature-industries .mega-feature-title em { color: var(--yellow); }
.mega-feature-company .mega-feature-title em { color: #fff; }
.mega-feature-desc {
  position: relative;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
  font-weight: 500;
}
.mega-feature-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  padding: 0.45rem 0.85rem;
  background: rgba(255,255,255,0.18);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}
.mega-feature-cta:hover { background: rgba(255,255,255,0.30); transform: translateX(2px); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(76, 29, 149, 0.08);
    box-shadow: 0 12px 24px -12px rgba(76, 29, 149, 0.15);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-link {
    padding: 1rem 1.5rem !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--ink) !important;
    width: 100%;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }
  .nav-link.active { color: var(--purple) !important; }
  /* Mobile: dot caret already inherits the desktop animation. */

  .mega {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 1.5rem 1rem;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, visibility 0.3s, padding 0.3s;
  }
  .has-mega.open > .mega {
    visibility: visible;
    pointer-events: auto;
    max-height: 1500px;
  }
  .mega-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .mega-feature { padding: 1rem; }
  .nav-cta { display: none; }
}

/* ==========================================================================
   SITE-MAP FOOTER (v3 multi-column)
   ========================================================================== */
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2.6fr;
  gap: 4rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
}

.footer-brand-block { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
}
.footer-tag {
  color: rgba(255, 255, 255, 0.72);
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 500;
}
.footer-tag strong { color: #fff; font-weight: 700; }

.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.fc-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0.6rem;
  font-size: 0.88rem;
  align-items: baseline;
}
.fc-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
}
.fc-row a { color: rgba(255, 255, 255, 0.85); }
.fc-row a:hover { color: var(--yellow); }
.fc-row span { color: rgba(255, 255, 255, 0.85); }

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.7rem 1.3rem;
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-top: 0.6rem;
  box-shadow: 0 8px 22px rgba(168, 85, 247, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.footer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.5);
  color: #fff;
}

.footer-sitemap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}
@media (max-width: 1100px) {
  .footer-sitemap { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .footer-sitemap { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 480px) {
  .footer-sitemap { grid-template-columns: 1fr; }
}

.fcol h5 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--yellow);
  margin-bottom: 0.9rem;
}
.fcol h5.mt { margin-top: 1.4rem; }
.fcol ul { list-style: none; }
.fcol li { margin-bottom: 0.5rem; }
.fcol a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
  line-height: 1.4;
}
.fcol a:hover { color: var(--yellow); }
