/*
 * MavericksMedia premium quality pass
 * Shared across the production site. Loaded after the approved reference and conversion styles.
 */

:root {
  --mm-focus-ring: rgba(205, 151, 255, .96);
  --mm-panel-border: rgba(153, 139, 255, .34);
  --mm-panel-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }
img, picture, video, canvas, svg { max-width: 100%; }

/* Wide, dedicated skyline panorama: match the actual hero's panoramic aspect ratio. */
.hero--main:before {
  background-image: url('/mm-assets/images/toronto-hero-panorama.webp') !important;
  background-repeat: no-repeat;
  background-position: 50% 54%;
  background-size: cover;
  opacity: 1;
  filter: saturate(1.04) contrast(1.025);
}
.hero--main:after {
  background:
    linear-gradient(90deg,
      rgba(3, 7, 24, .78) 0%,
      rgba(3, 7, 24, .63) 31%,
      rgba(4, 8, 28, .25) 55%,
      rgba(4, 8, 28, .06) 78%,
      rgba(4, 8, 28, .14) 100%),
    linear-gradient(0deg, rgba(4, 7, 22, .64) 0%, transparent 24%, rgba(4, 8, 26, .05) 100%);
}

/* Slightly more breathing room in the text/visual split. */
.hero--main .hero-grid {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  column-gap: clamp(12px, 1.3vw, 22px);
}
.hero--main .hero-content,
.hero--main .hero-grid > div:first-child,
.hero--main .hero-visual { min-width: 0; }
.hero--main .hero-content { padding-right: clamp(4px, .8vw, 14px); }
.hero--main .hero-visual {
  justify-content: flex-end;
  padding-right: clamp(0px, .45vw, 8px);
  overflow: visible;
}
.hero--main .hero-visual img {
  display: block;
  object-fit: contain;
  object-position: center;
  height: auto;
  max-width: 100%;
}

/* Reduce the foreground compositions by roughly 12% and reveal more of the skyline. */
.hero--home .hero-visual .homepage-device-visual {
  width: 86%; max-width: 650px; max-height: 365px;
  margin-left: auto; transform: translateX(15px);
}
.hero--web-design .hero-visual .device-visual {
  width: 85%; max-width: 660px; max-height: 365px;
  margin-left: auto; transform: translateX(15px);
}
.hero--ecommerce .hero-visual .ecommerce-hero-art {
  width: 87%; max-width: 660px; max-height: 375px;
  margin-left: auto; transform: translateX(15px);
}
.hero--mobile-app .hero-visual .mobile-app-hero-art {
  width: 86%; max-width: 570px; max-height: 380px;
  margin-left: auto; transform: translateX(13px);
}
.hero--city-service .hero-visual > img,
.hero--city-service .hero-visual .page-hero-art {
  width: 88%; max-width: 610px; max-height: 365px;
  margin-left: auto; transform: translateX(12px);
}
.hero--seo .hero-visual .seo-dashboard-visual {
  width: 86%; max-width: 650px; max-height: 350px;
  margin-left: auto; transform: translateX(14px);
}
.hero--custom-dev .hero-visual .service-hero-art {
  width: 86%; max-width: 650px; max-height: 365px;
  margin-left: auto; transform: translateX(14px);
}
.hero--website-maintenance .hero-visual .website-maintenance-hero-art {
  width: 86%; max-width: 650px; max-height: 360px;
  margin-left: auto; transform: translateX(14px);
}
.hero--main .hero-visual .visual-halo { pointer-events: none; }

/* Desktop dropdowns are centred on the navigation item, not offset from the nav container. */
@media (min-width: 1081px) {
  .site-header, .header-inner, .main-nav, .main-nav .nav-group { overflow: visible; }
  .main-nav .nav-group--cities { position: relative; isolation: isolate; }
  .main-nav .nav-group--cities > .dropdown--cities {
    position: absolute;
    top: calc(100% + 1px);
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    width: min(490px, calc(100vw - 32px));
    min-width: 0;
    max-width: calc(100vw - 32px);
    z-index: 1800;
    padding: 13px;
    border-color: rgba(174, 128, 255, .48);
    background: linear-gradient(145deg, rgba(13, 20, 57, .985), rgba(4, 10, 31, .99));
    box-shadow: 0 24px 58px rgba(0, 0, 0, .55), 0 0 24px rgba(125, 73, 220, .12);
  }
  .main-nav .nav-group--cities > .dropdown--cities .dropdown-label {
    grid-column: 1 / -1;
    padding: 3px 8px 10px;
    margin: 0 0 3px;
    color: #d7a8ff;
    font-size: 9px;
    letter-spacing: 1.65px;
  }
  .main-nav .nav-group--cities > .dropdown--cities a {
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid rgba(140, 133, 230, .12);
    background: rgba(22, 31, 78, .44);
    font-size: 10.8px;
  }
  .main-nav .nav-group--cities > .dropdown--cities a:hover,
  .main-nav .nav-group--cities > .dropdown--cities a:focus-visible {
    border-color: rgba(203, 133, 255, .54);
    background: linear-gradient(110deg, rgba(135, 70, 241, .26), rgba(56, 101, 225, .17));
  }
  /* The fourth city menu (Mobile Apps) sits farther right in the nav; anchor its panel to the right edge of its trigger.
     The old combination of right:-24px and translateX(-50%) pushed this panel off toward the left side of the page. */
  .main-nav .nav-group--cities:nth-of-type(4) > .dropdown--cities {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
  }
  .main-nav .nav-group--cities.dropdown-open > .dropdown--cities,
  .main-nav .nav-group.dropdown-open > .dropdown { display: grid; }
  .main-nav .nav-group:not(.nav-group--cities) > .dropdown { z-index: 1800; }
}

/* The mobile menu sits directly below the sticky header and stays within the viewport. */
@media (max-width: 1080px) {
  .mobile-nav {
    position: fixed !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 1390;
    padding: 16px max(18px, env(safe-area-inset-left)) calc(22px + env(safe-area-inset-bottom));
    background: linear-gradient(160deg, rgba(7, 12, 35, .995), rgba(4, 8, 25, .995));
    border-bottom: 1px solid rgba(165, 128, 255, .38);
    box-shadow: 0 24px 55px rgba(0, 0, 0, .58);
    touch-action: pan-y;
  }
  .mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 10px;
  }
  .mobile-nav > a,
  .mobile-nav-link-grid a {
    min-width: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(147, 132, 236, .21);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(26, 35, 85, .76), rgba(9, 17, 46, .82));
    color: #f0eaff;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .mobile-nav > a:hover,
  .mobile-nav-link-grid a:hover { border-color: rgba(207, 145, 255, .66); background: rgba(111, 65, 196, .22); }
  .mobile-nav-section { min-width: 0; grid-column: 1 / -1; padding: 11px 0 5px; border-top: 1px solid rgba(145, 139, 226, .16); }
  .mobile-nav-section > strong { display: block; margin: 0 0 8px; color: #d8a7ff; font-size: 10px; font-weight: 850; letter-spacing: 1.25px; text-transform: uppercase; }
  .mobile-nav-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .mobile-nav .mobile-cta,
  .mobile-nav .mobile-whatsapp { grid-column: 1 / -1; justify-content: center; }
  body.mobile-menu-open { overflow: hidden; }
}

/* Section rhythm and card finish: restrained light, consistent content widths and clean type. */
main > .section { position: relative; }
main > .section + .section { border-top: 1px solid rgba(145, 139, 226, .075); }
.section { padding-block: clamp(46px, 5vw, 68px); }
.section-tight { padding-block: clamp(32px, 3.8vw, 48px); }
.section-heading,
.section-intro { min-width: 0; }
.section-heading h2,
.section-intro h2 { max-width: 1000px; margin-inline: auto; text-wrap: balance; }
.section-heading p,
.section-intro p { max-width: 840px; text-wrap: pretty; }
.services-grid,
.service-grid,
.package-grid,
.stories-grid,
.pillar-grid,
.market-insight-grid { align-items: stretch; }
.service-card,
.package-card,
.story-card,
.case-study-card,
.pillar,
.market-insight-card,
.related-link-card,
.faq-item { min-width: 0; }
.service-card,
.package-card,
.story-card,
.case-study-card,
.related-link-card { -webkit-tap-highlight-color: transparent; }
.service-card:focus-visible,
.package-card:focus-visible,
.story-card:focus-visible,
.case-study-card:focus-visible,
.related-link-card:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--mm-focus-ring);
  outline-offset: 3px;
}
.btn { text-align: center; }
.btn:focus-visible { box-shadow: 0 0 0 4px rgba(179, 107, 255, .22); }

/* Keep long headings, prices, form fields and tables inside their responsive columns. */
h1, h2, h3, h4, p, li, label, .btn, .package-price, .price { min-width: 0; }
.hero h1, .section-heading h2, .section-intro h2 { overflow-wrap: normal; word-break: normal; }
p, li, .service-card, .package-card, .story-card, .faq-item { overflow-wrap: break-word; }
input, select, textarea { max-width: 100%; min-width: 0; }
table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 1080px) and (min-width: 861px) {
  .hero--main .hero-grid { width: calc(100% - 54px); grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); }
  .hero--home .hero-visual .homepage-device-visual,
  .hero--web-design .hero-visual .device-visual,
  .hero--ecommerce .hero-visual .ecommerce-hero-art,
  .hero--mobile-app .hero-visual .mobile-app-hero-art,
  .hero--city-service .hero-visual > img,
  .hero--city-service .hero-visual .page-hero-art,
  .hero--seo .hero-visual .seo-dashboard-visual,
  .hero--custom-dev .hero-visual .service-hero-art,
  .hero--website-maintenance .hero-visual .website-maintenance-hero-art {
    max-height: 325px;
    transform: translateX(7px);
  }
}

@media (max-width: 860px) {
  .hero--main:before { background-position: 52% 50%; background-size: cover; }
  .hero--main:after {
    background: linear-gradient(90deg, rgba(3, 7, 24, .78), rgba(3, 7, 24, .44)),
                linear-gradient(0deg, rgba(4, 7, 22, .65), transparent 48%);
  }
  .hero--main .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero--main .hero-visual { justify-content: center; padding: 0; }
  .hero--home .hero-visual .homepage-device-visual,
  .hero--web-design .hero-visual .device-visual,
  .hero--ecommerce .hero-visual .ecommerce-hero-art,
  .hero--mobile-app .hero-visual .mobile-app-hero-art,
  .hero--city-service .hero-visual > img,
  .hero--city-service .hero-visual .page-hero-art,
  .hero--seo .hero-visual .seo-dashboard-visual,
  .hero--custom-dev .hero-visual .service-hero-art,
  .hero--website-maintenance .hero-visual .website-maintenance-hero-art {
    width: min(88%, 560px);
    max-height: 315px;
    margin-inline: auto;
    transform: none;
  }
  .section { padding-block: 46px; }
}

@media (max-width: 620px) {
  .mobile-nav.open { grid-template-columns: minmax(0, 1fr); }
  .mobile-nav-link-grid { grid-template-columns: minmax(0, 1fr); }
  .hero--main:before { background-position: 51% 50%; background-size: auto 100%; }
  .hero--main:after {
    background: linear-gradient(90deg, rgba(3, 7, 24, .82), rgba(3, 7, 24, .62)),
                linear-gradient(0deg, rgba(4, 7, 22, .72), transparent 52%);
  }
  .hero--home .hero-visual .homepage-device-visual,
  .hero--web-design .hero-visual .device-visual,
  .hero--ecommerce .hero-visual .ecommerce-hero-art,
  .hero--mobile-app .hero-visual .mobile-app-hero-art,
  .hero--city-service .hero-visual > img,
  .hero--city-service .hero-visual .page-hero-art,
  .hero--seo .hero-visual .seo-dashboard-visual,
  .hero--custom-dev .hero-visual .service-hero-art,
  .hero--website-maintenance .hero-visual .website-maintenance-hero-art {
    width: min(92%, 470px);
    max-height: 275px;
  }
  .hero--main .hero-content { padding-right: 0; }
  .hero--main .hero-buttons { display: flex; flex-wrap: wrap; }
  .hero--main .hero-buttons .btn { flex: 0 1 auto; }
  .section-heading h2, .section-intro h2 { font-size: clamp(25px, 7vw, 32px); }
  .service-card { grid-template-columns: 48px minmax(0, 1fr) 22px; gap: 10px; padding: 14px 13px; }
  .service-icon { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Final component finish: consistent interaction feedback without changing page content or layout intent. */
.service-card,
.package-card,
.story-card,
.content-card,
.info-card,
.stat-card,
.blog-card,
.client-logo-word,
.process-step-button {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}
.service-card:hover,
.related-link-card:hover,
.content-card:hover,
.info-card:hover,
.stat-card:hover,
.blog-card:hover {
  border-color: rgba(181, 126, 255, .48);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .23), 0 0 22px rgba(133, 79, 235, .10);
}
.service-card:hover,
.related-link-card:hover { transform: translateY(-2px); }
.btn { min-height: 42px; font-weight: 750; line-height: 1.25; }
.btn-primary { box-shadow: 0 9px 26px rgba(128, 56, 220, .24), inset 0 1px rgba(255, 255, 255, .17); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(128, 56, 220, .34), inset 0 1px rgba(255, 255, 255, .2); }
.section-heading p,
.section-intro p { margin-inline: auto; }
.section-heading h2,
.section-intro h2,
.hero h1 { text-wrap: balance; }
.site-footer a:focus-visible,
.nav-group a:focus-visible,
.mobile-nav a:focus-visible { outline: 2px solid var(--mm-focus-ring); outline-offset: 3px; }
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible { border-color: #c58cff; box-shadow: 0 0 0 3px rgba(177, 107, 255, .18); }

@media (max-width: 860px) {
  .btn { min-height: 44px; }
  .section-heading { padding-inline: 4px; }
  .hero--main .hero-grid { width: min(100% - 36px, 720px); }
}
@media (max-width: 620px) {
  .hero--main .hero-grid { width: min(100% - 32px, 540px); padding-block: 36px 32px; gap: 18px; }
  .hero--main .eyebrow { max-width: 100%; white-space: normal; line-height: 1.35; }
  .hero--main .hero-buttons .btn { min-height: 44px; }
  .section { padding-block: 40px; }
  .section-heading { margin-bottom: 22px; }
  .mobile-nav-section { padding-top: 13px; }
}

/* ================================================================
   MAVERICKSMEDIA — PREMIUM HEADER / WORDMARK FINAL PASS
   Keeps the established midnight-violet brand while preventing any
   desktop action overlap and providing one responsive nav system.
   ================================================================ */
.site-header {
  position: sticky !important;
  top: 0;
  z-index: 2200;
  display: block !important;
  width: 100%;
  height: 84px !important;
  padding: 0 !important;
  overflow: visible !important;
  background:
    radial-gradient(ellipse at 24% -40%, rgba(111, 67, 202, .17), transparent 52%),
    linear-gradient(105deg, rgba(4, 7, 24, .985), rgba(5, 8, 29, .975) 55%, rgba(6, 9, 31, .99));
  border-bottom: 1px solid rgba(171, 133, 255, .23);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .035);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}
.site-header::after {
  content: "";
  position: absolute;
  left: max(28px, calc((100vw - 1480px) / 2));
  right: max(28px, calc((100vw - 1480px) / 2));
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(179, 91, 255, .48) 24%, rgba(87, 133, 255, .35) 76%, transparent);
}
.header-inner {
  display: grid !important;
  grid-template-columns: 228px minmax(0, 1fr) 356px !important;
  align-items: center !important;
  column-gap: 16px !important;
  width: min(calc(100% - 56px), 1480px) !important;
  height: 100% !important;
  margin: 0 auto !important;
  overflow: visible !important;
}
.brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 11px !important;
  min-width: 0 !important;
  width: max-content;
  max-width: 100%;
  color: #fff;
}
.brand-mark {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 48px !important;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  overflow: visible;
  border: 1px solid rgba(181, 139, 255, .27);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(115, 62, 191, .19), rgba(36, 66, 150, .11));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.075), 0 5px 18px rgba(97, 42, 185, .12);
}
.brand-mark img {
  display: block;
  width: 43px !important;
  height: 39px !important;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(184, 76, 255, .32));
}
.brand-name {
  display: block;
  min-width: 0;
  color: #fff !important;
  font: 750 20px/1.05 "Space Grotesk", Inter, sans-serif !important;
  letter-spacing: -.68px !important;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(147, 113, 255, .10);
}
.brand-name small {
  display: block;
  margin-top: 4px;
  color: #b9c4e4 !important;
  font: 700 7.2px/1.3 Inter, sans-serif !important;
  letter-spacing: 1.35px !important;
  white-space: nowrap;
}
.main-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(8px, .82vw, 13px) !important;
  min-width: 0 !important;
  width: 100%;
  height: 100%;
  overflow: visible !important;
  white-space: nowrap !important;
  color: #edf0ff;
  font: 700 11.6px/1 Inter, sans-serif !important;
  letter-spacing: -.08px;
}
.main-nav > a,
.main-nav > .nav-group > .nav-trigger {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 5px !important;
  flex: 0 0 auto;
  min-height: 42px !important;
  padding: 0 4px !important;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #e9edff !important;
  font: inherit !important;
  white-space: nowrap !important;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.main-nav > a:hover,
.main-nav > .nav-group > .nav-trigger:hover,
.main-nav > .nav-group.dropdown-open > .nav-trigger {
  color: #fff !important;
  background: linear-gradient(120deg, rgba(130, 74, 222, .14), rgba(66, 108, 227, .09));
  border-color: rgba(178, 133, 255, .16);
}
.main-nav > a[aria-current="page"],
.main-nav > a.is-current {
  color: #e3b6ff !important;
}
.main-nav > a[aria-current="page"]::after,
.main-nav > a.is-current::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 3px;
  height: 2px;
  border-radius: 3px;
  background: linear-gradient(90deg, #bd5cff, #5e93ff);
  box-shadow: 0 0 12px rgba(173, 83, 255, .55);
}
.main-nav .nav-group {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto;
  height: 100%;
  min-width: 0;
  overflow: visible !important;
}
.main-nav .nav-trigger::after { content: none !important; }
.main-nav .nav-caret {
  display: inline-block;
  margin-left: 1px;
  color: #b79cff;
  font-size: 10px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .18s ease, color .18s ease;
}
.main-nav .nav-group:hover .nav-caret,
.main-nav .nav-group.dropdown-open .nav-caret,
.main-nav .nav-group:focus-within .nav-caret {
  color: #e4b4ff;
  transform: translateY(1px) rotate(180deg);
}
.main-nav .nav-contact-link {
  min-height: 39px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(182, 136, 255, .34) !important;
  border-radius: 999px !important;
  background: rgba(91, 57, 162, .15);
}
.main-nav .nav-contact-link:hover {
  border-color: rgba(205, 151, 255, .7) !important;
  background: rgba(124, 70, 210, .24);
}
.main-nav .dropdown {
  display: none;
  position: absolute !important;
  top: calc(100% + 1px) !important;
  left: 0 !important;
  right: auto !important;
  z-index: 2500 !important;
  width: 268px;
  min-width: 0 !important;
  max-width: min(480px, calc(100vw - 32px));
  max-height: min(72vh, 570px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 13px !important;
  border: 1px solid rgba(173, 128, 255, .43) !important;
  border-radius: 17px !important;
  background: linear-gradient(145deg, rgba(15, 22, 61, .985), rgba(5, 10, 31, .99)) !important;
  box-shadow: 0 25px 66px rgba(0,0,0,.55), 0 0 26px rgba(118, 69, 210, .13), inset 0 1px 0 rgba(255,255,255,.07) !important;
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}
.main-nav .nav-group:hover > .dropdown,
.main-nav .nav-group:focus-within > .dropdown,
.main-nav .nav-group.dropdown-open > .dropdown { display: grid !important; }
.main-nav .dropdown--cities {
  width: 448px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 5px !important;
}
.main-nav .dropdown--cities .dropdown-label {
  grid-column: 1 / -1;
  margin: 0 0 5px;
  padding: 3px 8px 10px;
  border-bottom: 1px solid rgba(154, 137, 238, .16);
  color: #d4a4ff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.55px;
  text-transform: uppercase;
}
.main-nav .dropdown a {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 39px;
  padding: 9px 10px !important;
  border: 1px solid rgba(146, 145, 234, .12);
  border-radius: 10px;
  background: rgba(24, 32, 78, .42);
  color: #e5eaff !important;
  font: 600 10.6px/1.35 Inter, sans-serif !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.main-nav .dropdown a:hover,
.main-nav .dropdown a:focus-visible {
  border-color: rgba(198, 139, 255, .55);
  background: linear-gradient(110deg, rgba(132, 72, 220, .28), rgba(63, 104, 220, .16));
  color: #fff !important;
  transform: translateY(-1px);
}
.main-nav .nav-group--cities:nth-of-type(4) > .dropdown--cities {
  left: auto !important;
  right: 0 !important;
  transform: none !important;
}
.main-nav .nav-group:not(.nav-group--cities) > .dropdown {
  left: auto !important;
  right: 0 !important;
  width: 250px;
  grid-template-columns: 1fr;
}
.header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 9px !important;
  width: 100%;
  min-width: 0 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}
.header-actions .whatsapp-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  flex: 0 1 184px;
  width: 184px;
  min-width: 0 !important;
  max-width: 184px;
  height: 40px;
  min-height: 40px;
  gap: 7px;
  padding: 0 11px !important;
  overflow: hidden;
  border: 1px solid rgba(89, 220, 186, .34) !important;
  border-radius: 999px !important;
  background: linear-gradient(115deg, rgba(9, 73, 73, .42), rgba(10, 40, 56, .50)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 5px 16px rgba(0,0,0,.12);
  color: #dcfff5 !important;
  white-space: nowrap !important;
  text-overflow: clip;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.header-actions .whatsapp-link:hover {
  border-color: rgba(105, 246, 205, .66) !important;
  background: linear-gradient(115deg, rgba(10, 92, 81, .55), rgba(12, 50, 64, .62)) !important;
  transform: translateY(-1px);
}
.header-actions .whatsapp-link svg {
  display: block;
  flex: 0 0 15px;
  width: 15px !important;
  height: 15px !important;
  fill: none;
  stroke: #75edcc;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-actions .whatsapp-label {
  flex: 0 0 auto;
  color: #e8fff8;
  font-size: 10.2px;
  font-weight: 750;
  letter-spacing: .02px;
}
.header-actions .whatsapp-number {
  flex: 0 1 auto;
  min-width: 0;
  color: #a8e5d6;
  font-size: 9.3px;
  font-weight: 600;
  letter-spacing: -.12px;
}
.header-actions .header-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 162px;
  width: 162px;
  min-width: 162px !important;
  max-width: 162px;
  height: 42px;
  min-height: 42px !important;
  gap: 7px !important;
  padding: 0 12px !important;
  overflow: hidden;
  border: 1px solid rgba(229, 188, 255, .38) !important;
  border-radius: 999px !important;
  background: linear-gradient(108deg, #a936ed 0%, #8144e9 54%, #426df3 100%) !important;
  box-shadow: 0 8px 23px rgba(129, 58, 230, .27), inset 0 1px 0 rgba(255,255,255,.24);
  color: #fff !important;
  font: 800 10.8px/1 Inter, sans-serif !important;
  letter-spacing: 0 !important;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.header-actions .header-cta:hover {
  transform: translateY(-1px);
  filter: saturate(1.08) brightness(1.05);
  box-shadow: 0 11px 28px rgba(129, 58, 230, .39), inset 0 1px 0 rgba(255,255,255,.27);
}
.header-actions .header-cta span {
  flex: 0 0 auto;
  display: inline-block;
  font-size: 13px;
  line-height: 1;
}
.header-actions .menu-toggle {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(177, 137, 255, .42);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(46, 36, 111, .94), rgba(8, 16, 47, .98));
  color: #fff;
  font-size: 21px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 6px 18px rgba(0,0,0,.19);
  cursor: pointer;
}
.header-actions .menu-toggle:hover {
  border-color: rgba(210, 158, 255, .75);
  background: linear-gradient(145deg, rgba(69, 43, 143, .96), rgba(14, 27, 70, .98));
}

/* A compact, deliberate tablet header replaces squeezed desktop navigation. */
@media (max-width: 1240px) {
  .site-header { height: 76px !important; }
  .header-inner {
    width: min(calc(100% - 40px), 1180px) !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    column-gap: 18px !important;
  }
  .main-nav { display: none !important; }
  .header-actions { width: auto; gap: 10px !important; }
  .header-actions .whatsapp-link { display: none !important; }
  .header-actions .header-cta {
    display: inline-flex !important;
    flex: 0 0 154px;
    width: 154px;
    min-width: 154px !important;
    max-width: 154px;
    height: 40px;
    min-height: 40px !important;
    font-size: 10.6px !important;
  }
  .header-actions .menu-toggle { display: grid !important; }
}

/* Mobile menu is a scrollable, touch-friendly panel that never exceeds the viewport. */
@media (max-width: 1240px) {
  .mobile-nav {
    position: fixed !important;
    display: none;
    top: 76px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    padding: 16px max(20px, env(safe-area-inset-left)) calc(22px + env(safe-area-inset-bottom));
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid rgba(157, 131, 245, .12);
    border-bottom: 1px solid rgba(172, 131, 255, .4);
    background:
      radial-gradient(ellipse at 88% 0%, rgba(104, 58, 192, .19), transparent 43%),
      linear-gradient(155deg, rgba(7, 12, 36, .995), rgba(4, 8, 26, .995));
    box-shadow: 0 24px 55px rgba(0,0,0,.56);
    z-index: 2190;
  }
  .mobile-nav.open {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 8px 11px;
  }
  .mobile-nav > a:not(.btn) {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 43px;
    padding: 10px 13px !important;
    border: 1px solid rgba(142, 140, 232, .20);
    border-radius: 11px;
    background: linear-gradient(140deg, rgba(29, 39, 91, .76), rgba(8, 17, 47, .87));
    color: #f0edff !important;
    font-size: 12px !important;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .mobile-nav > a:not(.btn):hover,
  .mobile-nav-link-grid a:hover {
    border-color: rgba(194, 139, 255, .57);
    background: linear-gradient(110deg, rgba(131, 68, 220, .25), rgba(53, 99, 212, .16));
  }
  .mobile-nav-section {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 12px 0 3px;
    border-top: 1px solid rgba(144, 136, 227, .17);
  }
  .mobile-nav-section > strong {
    display: block;
    margin: 0 0 8px;
    color: #d5a4ff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.3px;
    text-transform: uppercase;
  }
  .mobile-nav-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .mobile-nav-link-grid a {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 39px;
    padding: 8px 10px !important;
    border: 1px solid rgba(136, 139, 225, .15);
    border-radius: 9px;
    background: rgba(18, 28, 67, .54);
    color: #cfd8f2 !important;
    font-size: 10.7px !important;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .mobile-nav .mobile-cta,
  .mobile-nav .mobile-whatsapp {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
    min-height: 45px;
    justify-content: center;
    align-items: center;
    white-space: normal;
    text-align: center;
  }
  body.mobile-menu-open { overflow: hidden; }
}

@media (max-width: 760px) {
  .site-header { height: 72px !important; }
  .header-inner { width: calc(100% - 30px) !important; column-gap: 10px !important; }
  .brand { gap: 8px !important; }
  .brand-mark { flex-basis: 42px !important; width: 42px !important; height: 42px !important; border-radius: 12px; }
  .brand-mark img { width: 38px !important; height: 34px !important; }
  .brand-name { font-size: 18px !important; letter-spacing: -.55px !important; }
  .brand-name small { margin-top: 3px; font-size: 6.2px !important; letter-spacing: 1.05px !important; }
  .header-actions .header-cta { display: none !important; }
  .header-actions .menu-toggle { display: grid !important; flex-basis: 42px; width: 42px; height: 42px; }
  .mobile-nav { top: 72px !important; max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); padding-inline: 16px; }
}
@media (max-width: 420px) {
  .header-inner { width: calc(100% - 24px) !important; }
  .brand-name { font-size: 17px !important; }
  .brand-name small { font-size: 5.7px !important; letter-spacing: .88px !important; }
  .mobile-nav.open { grid-template-columns: minmax(0, 1fr); }
  .mobile-nav-link-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .main-nav *, .header-actions *, .mobile-nav * { transition: none !important; }
}
