/* AgencyLaunch V9: Uniform, compact PURPLE public action controls.
   This file MUST be the final site stylesheet after premium-v7.css.
   Colors and 3D finish match the V8 admin sidebar, while reducing bulk.
   This intentionally does not recolor decorative cards or badges. */
:root{
  --button-v9-top: #8446db;
  --button-v9-bottom: #682dbb;
  --button-v9-border: #b48bea;
  --button-v9-depth: #36116d;
  --button-v9-text: #ffffff;
}
/* All actionable buttons, including the nth-child service/footer/nav variants. */
body .btn,
body a.btn,
body .btn.btn-accent,
body .btn.btn-dark,
body .btn.btn-white,
body .btn.btn-ghost,
body .header-cta,
body .main-nav-v7 .nav-3d,
body .main-nav-v7 .nav-3d:nth-of-type(3n+1),
body .main-nav-v7 .nav-3d:nth-of-type(3n+2),
body .main-nav-v7 .nav-3d:nth-of-type(3n),
body .service-learn,
body .service-card-v3:nth-child(3n+1) .service-learn,
body .service-card-v3:nth-child(3n+2) .service-learn,
body .service-card-v3:nth-child(3n) .service-learn,
body .footer-grid .footer-action,
body .footer-grid .footer-action:nth-of-type(3n+1),
body .footer-grid .footer-action:nth-of-type(3n+2),
body .footer-grid .footer-action:nth-of-type(3n),
body .footer .social-links a,
body .footer-grid a[href^="mailto:"],
body .footer-grid a[href^="tel:"],
body .footer-grid a[href*="whatsapp"],
body .agency-chat > button,
body .agency-chat-panel form button,
body .mobile-toggle,
body .wa-float,
body .window-faux-button,
body .text-link span,
body .circle-arrow {
  background: linear-gradient(160deg, var(--button-v9-top) 0%, var(--button-v9-bottom) 100%) !important;
  background-color: var(--button-v9-bottom) !important;
  color: var(--button-v9-text) !important;
  border: 1px solid var(--button-v9-border) !important;
  box-shadow: 0 4px 0 var(--button-v9-depth), 0 9px 17px rgba(28, 7, 54, .22) !important;
  text-decoration: none;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 750 !important;
  letter-spacing: .01em;
  transition: transform .17s ease, box-shadow .17s ease, filter .17s ease !important;
}
/* A slim control, not a large chunky button. */
body .btn, body a.btn, body .btn-3d, body .header-cta {
  min-height: 38px !important;
  padding: 8px 15px !important;
  border-radius: 9px !important;
  gap: 8px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  white-space: normal;
  text-align: center;
}
body .main-nav-v7 .nav-3d,
body .main-nav-v7 .nav-3d:nth-of-type(n) {
  min-height: 35px !important;
  padding: 8px 10px !important;
  border-radius: 9px !important;
  font-size: 11.5px !important;
  line-height: 1.25 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
body .main-nav-v7 { gap: 7px; }
body .service-learn,
body .service-card-v3:nth-child(n) .service-learn {
  padding: 8px 12px !important;
  min-height: 35px !important;
  border-radius: 9px !important;
  font-size: 11.5px !important;
  line-height: 1.2 !important;
  gap: 6px;
  text-align: center;
  white-space: normal;
  justify-content: center;
}
body .footer-grid .footer-action,
body .footer-grid .footer-action:nth-of-type(n) {
  padding: 8px 11px !important;
  margin: 7px 0 !important;
  border-radius: 9px !important;
  font-size: 11.5px !important;
  min-height: 34px;
  gap: 7px !important;
}
body .footer .social-links a,
body .footer-grid a[href^="mailto:"],
body .footer-grid a[href^="tel:"],
body .footer-grid a[href*="whatsapp"] {
  border-radius: 9px !important;
  padding: 7px 11px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
}
body .agency-chat > button,
body .agency-chat-panel form button {
  padding: 9px 14px !important;
  border-radius: 10px !important;
  min-height: 37px !important;
  font-size: 12px !important;
}
body .mobile-toggle {
  width: 39px;
  height: 39px;
  border-radius: 9px !important;
  font-size: 21px;
}
body .window-faux-button { padding: 7px 11px !important; border-radius: 8px !important; }
body .text-link span,
body .circle-arrow {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50% !important;
  font-size: 13px;
}
body .wa-float { border-radius: 50% !important; }
/* Keep high-contrast states, consistent on all pages. */
body .btn:hover,
body a.btn:hover,
body .main-nav-v7 .nav-3d:hover,
body .service-card-v3:nth-child(n) .service-learn:hover,
body .footer-grid .footer-action:hover,
body .footer .social-links a:hover,
body .footer-grid a[href^="mailto:"]:hover,
body .footer-grid a[href^="tel:"]:hover,
body .footer-grid a[href*="whatsapp"]:hover,
body .agency-chat > button:hover,
body .agency-chat-panel form button:hover,
body .mobile-toggle:hover {
  filter: brightness(1.08) !important;
  transform: translateY(2px) !important;
  box-shadow: 0 2px 0 var(--button-v9-depth), 0 6px 13px rgba(28, 7, 54, .22) !important;
  color: #fff !important;
}
body .btn:active,
body .main-nav-v7 .nav-3d:active,
body .service-card-v3:nth-child(n) .service-learn:active,
body .footer-grid .footer-action:active,
body .agency-chat > button:active,
body .agency-chat-panel form button:active {
  transform: translateY(4px) !important;
  box-shadow: 0 0 0 var(--button-v9-depth), 0 4px 9px rgba(28, 7, 54, .16) !important;
}
body .main-nav-v7 .nav-3d[aria-current="page"] {
  outline: 2px solid #ceafff !important;
  outline-offset: 2px;
}
body .btn:focus-visible,
body .main-nav-v7 .nav-3d:focus-visible,
body .service-learn:focus-visible,
body .footer-action:focus-visible,
body .agency-chat button:focus-visible {
  outline: 3px solid #e8d8ff !important;
  outline-offset: 3px;
}
/* The chat CLOSE icon is not a colored CTA. */
body #agency-chat-close { background: none !important; color: #391764 !important; box-shadow: none !important; border: 0 !important; }
/* Use the same compact controls on smaller screens. */
@media (max-width: 1010px) {
  body .main-nav-v7 .nav-3d:nth-of-type(n) {
    display: flex;
    justify-content: flex-start;
    min-height: 36px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    margin: 2px 0 5px;
  }
}
@media (max-width: 640px) {
  body .btn, body a.btn { min-height: 36px !important; padding: 8px 12px !important; }
  body .service-card-v3:nth-child(n) .service-learn { font-size: 11px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body .btn, body .main-nav-v7 .nav-3d, body .service-learn,
  body .footer-action, body .agency-chat button, body .mobile-toggle { transition: none !important; }
}
