/*
 * Percival Page WordPress Version 11
 * Restored desktop footer, mobile-only compaction, clean internal pages,
 * and Google Maps JavaScript API visual system.
 */

/* ---------------------------------------------------------
   Internal pages: no artificial whitespace or overlapping.
--------------------------------------------------------- */
.percival-inner-page .topbar {
  display: none !important;
}

.percival-inner-page .site-header,
.percival-inner-page .site-header.is-scrolled {
  position: sticky !important;
  top: 0 !important;
  height: 104px;
  color: #fff;
  background: rgba(3, 17, 29, .99);
  border-bottom: 1px solid rgba(201, 149, 56, .24);
  box-shadow: 0 12px 30px rgba(3, 17, 29, .13);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.admin-bar.percival-inner-page .site-header,
.admin-bar.percival-inner-page .site-header.is-scrolled {
  top: 32px !important;
}

.percival-inner-page main,
.percival-inner-page .wp-content-shell {
  padding-top: 0 !important;
}

.percival-inner-page .about-page-hero,
.percival-inner-page .detail-hero,
.percival-inner-page .article-hero,
.percival-inner-page .profile-hero,
.percival-inner-page .directory-hero {
  margin-top: 0 !important;
}

.percival-inner-page .about-page-hero__inner {
  min-height: min(720px, calc(100svh - 104px));
  padding-top: 72px;
  padding-bottom: 72px;
}

.percival-inner-page .detail-hero__inner {
  min-height: 410px;
  padding-top: 62px;
  padding-bottom: 62px;
}

.percival-inner-page .article-hero {
  padding-top: 54px;
  padding-bottom: 48px;
}

.percival-inner-page .profile-hero {
  padding-top: 72px;
  padding-bottom: 82px;
}

.percival-inner-page .directory-hero {
  padding-top: 76px;
  padding-bottom: 66px;
}

.percival-inner-page .detail-breadcrumb {
  position: relative;
  z-index: 3;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 9px 14px;
  border: 1px solid rgba(223, 169, 70, .42);
  border-radius: 999px;
  color: rgba(255,255,255,.92);
  background: rgba(3, 17, 29, .66);
  box-shadow: 0 10px 26px rgba(3,17,29,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
}

.percival-inner-page .detail-breadcrumb:hover {
  color: #fff;
  border-color: var(--gold-light);
  background: rgba(6,26,43,.92);
}

.percival-inner-page .article-hero__grid,
.percival-inner-page .profile-hero__grid {
  align-items: stretch;
}

.percival-inner-page .article-hero__copy h1,
.percival-inner-page .about-page-hero h1,
.percival-inner-page .detail-hero h1,
.percival-inner-page .profile-hero h1 {
  text-wrap: balance;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------
   Full desktop footer restored.
--------------------------------------------------------- */
.footer {
  padding: 54px 0 20px;
  background:
    radial-gradient(circle at 14% 10%, rgba(201,149,56,.065), transparent 28%),
    linear-gradient(120deg, #03111d, #041725 72%, #03111d);
}

.footer__grid--v5 {
  display: grid;
  grid-template-columns: minmax(300px, 1.45fr) .52fr .58fr minmax(320px, .95fr);
  gap: 54px;
  align-items: start;
}

.footer__brand p {
  max-width: 490px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.67);
  font-size: 13px;
  line-height: 1.7;
}

.footer__logo {
  display: inline-block;
  margin: 0;
}

.footer__logo img,
.footer img {
  width: min(390px, 100%);
  max-height: 84px;
  margin: 0;
  object-fit: contain;
  object-position: left center;
}

.footer__column h3 {
  margin: 3px 0 18px;
  color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 1;
}

.footer__column nav a {
  width: fit-content;
  margin-bottom: 9px;
  color: rgba(255,255,255,.76);
  font-size: 13px;
  transition: color .2s ease, transform .2s ease;
}

.footer__column nav a:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(223,169,70,.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.035);
  font-size: 14px;
  font-weight: 800;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.footer__social a:hover {
  color: var(--navy-deep);
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.footer__social-note {
  max-width: 190px;
  margin-top: 18px !important;
  color: rgba(255,255,255,.54);
  line-height: 1.55;
}

.footer__contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__contact-list li {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.55;
}

.footer__contact-list .lucide {
  width: 19px;
  height: 19px;
  margin-top: 1px;
  color: var(--gold-light);
  stroke-width: 1.8;
}

.footer__contact-list a {
  margin: 0;
  overflow-wrap: anywhere;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.57);
  font-size: 10px;
}

.footer__bottom a {
  display: inline;
  margin: 0;
}

/* ---------------------------------------------------------
   Google Maps API: luminous navy and gold interface.
--------------------------------------------------------- */
.contact__map--api {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  overflow: hidden;
  border-inline: 1px solid rgba(223,169,70,.34);
  background:
    radial-gradient(circle at 50% 50%, rgba(201,149,56,.14), transparent 31%),
    repeating-linear-gradient(90deg, rgba(201,149,56,.025) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(201,149,56,.025) 0 1px, transparent 1px 34px),
    #03111d;
}

.contact__map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #03111d;
}

.contact__map-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 40px;
  color: #fff;
  background:
    linear-gradient(rgba(3,17,29,.75), rgba(3,17,29,.82)),
    url("../assets/images/map.jpg") center / cover no-repeat;
  text-align: center;
}

.contact__map-fallback[hidden] {
  display: none;
}

.contact__map-fallback > div {
  max-width: 330px;
  display: grid;
  justify-items: center;
  gap: 11px;
  padding: 26px;
  border: 1px solid rgba(223,169,70,.4);
  background: rgba(3,17,29,.84);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

.contact__map-fallback .lucide {
  width: 35px;
  height: 35px;
  color: var(--gold-light);
}

.contact__map-fallback strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
}

.contact__map-fallback span {
  color: rgba(255,255,255,.66);
  font-size: 11px;
  line-height: 1.55;
}

.contact__map-console {
  position: absolute;
  inset: 16px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(223,169,70,.16);
  box-shadow: inset 0 0 34px rgba(201,149,56,.035);
}

.contact__map-corner {
  position: absolute;
  width: 44px;
  height: 44px;
  border-color: var(--gold-light);
  border-style: solid;
  opacity: .82;
}

.contact__map-corner--tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.contact__map-corner--tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.contact__map-corner--bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.contact__map-corner--br { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }

.contact__map-heading {
  position: absolute;
  top: 28px;
  left: 29px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 12px 15px;
  border: 1px solid rgba(223,169,70,.52);
  color: #fff;
  background: linear-gradient(135deg, rgba(3,17,29,.96), rgba(8,35,56,.91));
  box-shadow: 0 12px 30px rgba(3,17,29,.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact__map-heading .lucide {
  width: 24px;
  height: 24px;
  color: var(--gold-light);
  stroke-width: 1.8;
}

.contact__map-heading span {
  display: grid;
  gap: 2px;
}

.contact__map-heading small {
  color: rgba(255,255,255,.58);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.contact__map-heading strong {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.percival-map-node {
  position: absolute;
  z-index: 20;
  width: 1px;
  height: 1px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.percival-map-node__pulse,
.percival-map-node__core {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.percival-map-node__pulse {
  width: 78px;
  height: 78px;
  border: 1px solid rgba(223,169,70,.72);
  background: rgba(201,149,56,.08);
  box-shadow:
    0 0 0 20px rgba(201,149,56,.045),
    0 0 35px rgba(223,169,70,.44);
  animation: percival-map-pulse 2.4s ease-out infinite;
}

.percival-map-node__core {
  width: 24px;
  height: 24px;
  border: 3px solid #fff4d8;
  background: var(--gold-light);
  box-shadow:
    0 0 0 6px rgba(3,17,29,.78),
    0 0 22px rgba(223,169,70,.9);
}

.percival-map-node__label {
  position: absolute;
  top: 48px;
  left: 50%;
  min-width: max-content;
  padding: 7px 12px;
  border: 1px solid rgba(223,169,70,.62);
  color: #fff;
  background: rgba(3,17,29,.94);
  box-shadow: 0 8px 22px rgba(3,17,29,.32);
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}

@keyframes percival-map-pulse {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(.65); }
  72%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.28); }
}

/* ---------------------------------------------------------
   Responsive layout: desktop is untouched; compaction begins
   only on tablets and phones.
--------------------------------------------------------- */
@media (max-width: 1100px) {
  .footer__grid--v5 {
    grid-template-columns: 1.2fr .55fr .6fr .95fr;
    gap: 34px;
  }
}

@media (max-width: 820px) {
  .percival-inner-page .site-header,
  .percival-inner-page .site-header.is-scrolled {
    height: 82px;
  }

  .admin-bar.percival-inner-page .site-header,
  .admin-bar.percival-inner-page .site-header.is-scrolled {
    top: 46px !important;
  }

  .percival-inner-page .about-page-hero__inner,
  .percival-inner-page .detail-hero__inner {
    min-height: auto;
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .percival-inner-page .article-hero {
    padding-top: 34px;
    padding-bottom: 36px;
  }

  .percival-inner-page .profile-hero,
  .percival-inner-page .directory-hero {
    padding-top: 50px;
    padding-bottom: 58px;
  }

  .footer__grid--v5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
  }

  .footer__brand,
  .footer__contact-column {
    grid-column: 1 / -1;
  }

  .footer__contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
  }

  .contact__map--api {
    min-height: 390px;
  }
}

@media (max-width: 560px) {
  .percival-inner-page .detail-breadcrumb {
    min-height: 36px;
    margin-bottom: 24px;
    padding: 8px 11px;
    font-size: 10px;
  }

  .percival-inner-page .about-page-hero h1,
  .percival-inner-page .detail-hero h1,
  .percival-inner-page .article-hero__copy h1,
  .percival-inner-page .profile-hero h1 {
    font-size: clamp(34px, 11vw, 46px);
    line-height: .99;
  }

  .footer {
    padding-top: 38px;
  }

  .footer__grid--v5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 18px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__logo img {
    width: min(320px, 100%);
  }

  .footer__brand p {
    font-size: 11px;
    line-height: 1.65;
  }

  .footer__column h3 {
    font-size: 21px;
  }

  .footer__column nav a,
  .footer__social-note {
    font-size: 10px;
  }

  .footer__social {
    gap: 7px;
  }

  .footer__social a {
    width: 34px;
    height: 34px;
  }

  .footer__contact-column {
    grid-column: 1 / -1;
  }

  .footer__contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }

  .footer__contact-list li {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    font-size: 9px;
  }

  .footer__contact-list .lucide {
    width: 16px;
    height: 16px;
  }

  .footer__bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
    font-size: 8px;
    line-height: 1.5;
  }

  .footer__bottom span:last-child {
    text-align: right;
  }

  .contact__map--api {
    min-height: 350px;
  }

  .contact__map-console {
    inset: 10px;
  }

  .contact__map-heading {
    top: 18px;
    left: 18px;
    min-width: 158px;
    padding: 9px 11px;
  }

  .percival-map-node__pulse {
    width: 62px;
    height: 62px;
  }

  .percival-map-node__label {
    top: 41px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .percival-map-node__pulse {
    animation: none;
  }
}


/* ---------------------------------------------------------
   Version 6: cleaner map and restored article rows.
--------------------------------------------------------- */

/*
 * Google Maps requires its logo and legal attribution to remain visible.
 * A protected bottom rail separates those elements from the newsletter.
 */
.contact__map--api {
  min-height: 470px;
  padding-bottom: 30px;
  background: #03111d;
}

.contact__map-canvas {
  bottom: 30px;
  height: auto;
}

.contact__map--api::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 30px;
  pointer-events: none;
  border-top: 1px solid rgba(223, 169, 70, .22);
  background:
    linear-gradient(90deg, rgba(201,149,56,.08), transparent 35%),
    #03111d;
}

.contact__map-heading {
  min-width: 0;
  gap: 10px;
  padding: 11px 14px;
}

.contact__map-heading strong {
  color: #fff;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.percival-map-node__label {
  padding-inline: 10px;
  letter-spacing: .16em;
}

/* Exactly two article rows on wide screens: 4 + 4. */
.blog__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  row-gap: 24px;
}

.blog__grid article {
  height: 100%;
}

.blog__grid img {
  min-height: 132px;
}

/* Give the second row comfortable breathing room before FAQ. */
.blog {
  padding-bottom: 76px;
}

@media (max-width: 1100px) {
  .blog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .contact__map--api {
    min-height: 380px;
    padding-bottom: 26px;
  }

  .contact__map-canvas {
    bottom: 26px;
  }

  .contact__map--api::after {
    height: 26px;
  }

  .contact__map-heading {
    top: 18px;
    left: 18px;
    padding: 9px 11px;
  }

  .contact__map-heading strong {
    font-size: 10px;
  }

  .blog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .blog__grid img {
    min-height: 106px;
  }
}


/* ---------------------------------------------------------
   Version 7: standardized carousels, POIs and appointment CTA.
--------------------------------------------------------- */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.slider,
.team-carousel {
  --carousel-duration: .58s;
  contain: layout paint;
  max-width: 100%;
}

.slider__viewport,
.team-carousel__viewport {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  overscroll-behavior-inline: contain;
  touch-action: pan-y;
}

.slider__track,
.team__track {
  transition-duration: var(--carousel-duration);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* Team now uses the same per-view system as every other carousel. */
.team-carousel {
  --items-per-view: 4;
}

.team-card {
  flex-basis: calc((100% - 66px) / 4);
}

/* The mobile trust section is a real carousel again. */
.trusted__mobile-grid {
  display: none !important;
}

.trusted-slider {
  display: block !important;
}

/* Appointment CTA. */
.topbar__cta .lucide {
  width: 17px;
  height: 17px;
}

/* Nearby businesses and a recognizable traditional location pin. */
.contact__map-heading {
  text-decoration: none;
}

.contact__map-heading-arrow {
  width: 14px !important;
  height: 14px !important;
  margin-left: 4px;
  opacity: .72;
}

.percival-office-marker {
  position: absolute;
  z-index: 30;
  display: grid;
  justify-items: center;
  width: max-content;
  max-width: 230px;
  color: inherit;
  text-decoration: none;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  cursor: pointer;
}

.percival-office-marker__pin {
  position: relative;
  width: 58px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 3px solid #fff4d8;
  border-radius: 50% 50% 50% 0;
  color: #fff;
  background: linear-gradient(145deg, #dca43c, #a96e1e);
  box-shadow:
    0 0 0 7px rgba(3,17,29,.84),
    0 14px 28px rgba(3,17,29,.44),
    0 0 30px rgba(223,169,70,.5);
  transform: rotate(-45deg);
  transition: transform .2s ease, box-shadow .2s ease;
}

.percival-office-marker__pin::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
}

.percival-office-marker__monogram {
  position: relative;
  z-index: 1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  transform: rotate(45deg);
}

.percival-office-marker__label {
  min-width: 190px;
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(223,169,70,.62);
  border-radius: 3px;
  color: #fff;
  background: rgba(3,17,29,.96);
  box-shadow: 0 10px 26px rgba(3,17,29,.34);
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.percival-office-marker__label strong {
  color: #fff;
  font-size: 11px;
  letter-spacing: .025em;
}

.percival-office-marker__label small {
  color: var(--gold-light);
  font-size: 8px;
  letter-spacing: .04em;
}

.percival-office-marker:hover .percival-office-marker__pin,
.percival-office-marker:focus-visible .percival-office-marker__pin {
  transform: rotate(-45deg) scale(1.09);
  box-shadow:
    0 0 0 8px rgba(3,17,29,.9),
    0 17px 34px rgba(3,17,29,.48),
    0 0 38px rgba(223,169,70,.72);
}

.percival-office-marker:focus-visible {
  outline: none;
}

.percival-office-marker:focus-visible .percival-office-marker__label {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* Hide the previous experimental luminous node, if cached markup remains. */
.percival-map-node {
  display: none !important;
}

@media (max-width: 1080px) {
  .team-carousel {
    --items-per-view: 3;
  }

  .team-card {
    flex-basis: calc((100% - 36px) / 3);
  }
}

@media (max-width: 900px) {
  .team-carousel {
    --items-per-view: 2;
  }

  .team-card {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 560px) {
  .team-carousel {
    --items-per-view: 1;
  }

  .team-card {
    flex-basis: 100%;
  }

  .trusted-slider {
    --items-per-view: 2;
  }

  .percival-office-marker__pin {
    width: 50px;
    height: 62px;
  }

  .percival-office-marker__label {
    min-width: 164px;
    padding: 8px 10px;
  }

  .percival-office-marker__label strong {
    font-size: 10px;
  }
}


/* =========================================================
   Version 8 — map remediation and deterministic carousels
========================================================= */

/* Address links */
.topbar__address-link {
  color: inherit;
  text-decoration: none;
}

.topbar__address-link:hover,
.topbar__address-link:focus-visible {
  color: var(--gold-light);
}

.contact__detail--address {
  align-items: flex-start;
}

.contact__address-link {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.contact__address-link address {
  color: inherit;
}

.contact__address-link > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.contact__address-link > span .lucide {
  width: 14px;
  height: 14px;
}

.footer__address-link {
  margin: 0 !important;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer__address-link:hover,
.contact__address-link:hover address {
  color: var(--gold-light);
}

/* ---------------------------------------------------------
   The old generic direct-child link rule must never affect
   the API map interface again.
--------------------------------------------------------- */
.contact__map--api > .contact__map-heading {
  position: absolute !important;
  top: 26px !important;
  right: auto !important;
  bottom: auto !important;
  left: 28px !important;
  width: auto !important;
  max-width: calc(100% - 56px);
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 11px 14px !important;
  border: 1px solid rgba(223,169,70,.5) !important;
  border-radius: 3px !important;
  color: #fff !important;
  background: linear-gradient(135deg, rgba(3,17,29,.95), rgba(8,35,56,.9)) !important;
  box-shadow: 0 10px 26px rgba(3,17,29,.25) !important;
  transform: none !important;
  pointer-events: none;
  text-transform: uppercase;
  z-index: 5;
}

.contact__map--api > .contact__map-heading .lucide {
  width: 21px;
  height: 21px;
  color: var(--gold-light);
}

.contact__map--api > .contact__map-heading strong {
  color: #fff;
  font-size: 11px;
  letter-spacing: .075em;
}

/* Native Google info window adapted to the brand */
.contact__map--api .gm-style .gm-style-iw-c {
  max-width: 300px !important;
  padding: 0 !important;
  border: 1px solid rgba(223,169,70,.45);
  border-radius: 4px;
  color: #fff;
  background: #03111d;
  box-shadow: 0 12px 34px rgba(3,17,29,.38);
}

.contact__map--api .gm-style .gm-style-iw-d {
  overflow: auto !important;
}

.contact__map--api .gm-style .gm-style-iw-tc::after {
  background: #03111d;
}

.contact__map--api .gm-style .gm-ui-hover-effect {
  filter: invert(1);
  opacity: .75;
}

.percival-map-info {
  max-width: 260px;
  display: grid;
  gap: 6px;
  padding: 15px 17px;
  font-family: "Manrope", Arial, sans-serif;
}

.percival-map-info strong {
  color: #fff;
  font-size: 13px;
}

.percival-map-info span {
  color: rgba(255,255,255,.7);
  font-size: 10px;
  line-height: 1.5;
}

.percival-map-info a {
  width: fit-content;
  margin-top: 3px;
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

/* Remove previous experimental marker layers if cached */
.percival-office-marker,
.percival-map-node {
  display: none !important;
}

/* ---------------------------------------------------------
   Every carousel uses the same deterministic geometry.
--------------------------------------------------------- */
.slider,
.team-carousel {
  min-width: 0;
  max-width: 100%;
}

.slider__viewport,
.team-carousel__viewport {
  position: relative;
  min-width: 0;
  width: 100%;
  overflow: hidden !important;
}

.slider__track,
.team__track {
  min-width: 0;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  transform: translate3d(0,0,0);
  transition: transform .58s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.slider__track.is-positioning,
.team__track.is-positioning {
  transition: none !important;
}

[data-slider-item] {
  min-width: 0 !important;
  box-sizing: border-box;
}

.team-card[data-slider-item] {
  display: flex;
  flex-direction: column;
}

.team-card[data-slider-item] > div {
  flex: 1 1 auto;
}

/* No carousel may create horizontal document overflow */
.trusted,
.practice,
.team,
.success,
.testimonials {
  overflow: hidden;
}

.slider__control {
  touch-action: manipulation;
}

@media (max-width: 820px) {
  .contact__map--api > .contact__map-heading {
    top: 17px !important;
    left: 17px !important;
    max-width: calc(100% - 34px);
  }
}

@media (max-width: 560px) {
  .topbar__address-link {
    max-width: 100%;
  }

  .contact__map--api > .contact__map-heading {
    min-height: 38px;
    padding: 9px 11px !important;
  }

  .contact__map--api > .contact__map-heading strong {
    font-size: 9px;
  }

  .contact__address-link > span {
    font-size: 8px;
  }
}


/* =========================================================
   Version 9: mapa compacto, controles y boletín refinado
========================================================= */

@media (min-width: 1101px) {
  .contact__grid {
    height: 420px;
    min-height: 420px;
    grid-template-columns: 34% 32% 34%;
    align-items: stretch;
  }

  .contact__form,
  .contact__map--api,
  .contact__details {
    height: 420px;
    min-height: 420px;
    max-height: 420px;
    box-sizing: border-box;
  }

  .contact__form {
    overflow: hidden;
    padding-top: 22px;
    padding-bottom: 20px;
  }

  .contact__details {
    overflow: hidden;
    justify-content: center;
  }

  .contact__map--api {
    padding-bottom: 28px;
  }

  .contact__map-canvas {
    bottom: 28px;
  }

  .contact__map--api::after {
    height: 28px;
  }
}

.contact__map--api > .contact__map-heading {
  top: 16px !important;
  left: 16px !important;
  min-height: 38px;
  max-width: calc(100% - 88px);
  padding: 8px 11px !important;
}

.contact__map--api > .contact__map-heading strong {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
}

.contact__map-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 8;
  display: grid;
  gap: 5px;
}

.contact__map-controls button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(223,169,70,.62);
  border-radius: 3px;
  color: #fff;
  background: rgba(3,17,29,.95);
  box-shadow: 0 8px 20px rgba(3,17,29,.28);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.contact__map-controls button:hover,
.contact__map-controls button:focus-visible {
  color: var(--navy-deep);
  background: var(--gold-light);
  outline: none;
}

.contact__address-link > span {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(223,169,70,.42);
}

.newsletter {
  padding: 22px 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.06), transparent 38%),
    #dfb154;
}

.newsletter__inner {
  gap: 42px;
}

.newsletter__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.newsletter__copy p {
  color: var(--navy-deep);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.newsletter__copy h2 {
  color: var(--navy-deep);
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(19px, 1.85vw, 25px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: .018em;
  text-transform: uppercase;
}

.newsletter__copy > span {
  color: rgba(3,17,29,.7);
  font-size: 9px;
  line-height: 1.45;
}

.newsletter form {
  width: min(620px, 48vw);
}

.newsletter input,
.newsletter .btn {
  min-height: 52px;
}

.newsletter .btn {
  min-width: 185px;
  font-size: 10px;
  letter-spacing: .04em;
}

@media (max-width: 1100px) {
  .contact__grid,
  .contact__form,
  .contact__map--api,
  .contact__details {
    height: auto;
    max-height: none;
  }

  .contact__map--api {
    min-height: 380px;
  }

  .newsletter form {
    width: min(540px, 50vw);
  }
}

@media (max-width: 820px) {
  .newsletter__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .newsletter form {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .contact__map--api {
    min-height: 330px;
  }

  .contact__map--api > .contact__map-heading {
    top: 12px !important;
    left: 12px !important;
    max-width: calc(100% - 68px);
  }

  .contact__map-controls {
    top: 12px;
    right: 12px;
  }

  .contact__map-controls button {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .newsletter__copy h2 {
    font-size: 19px;
  }

  .newsletter form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .newsletter input,
  .newsletter .btn {
    width: 100%;
    border-radius: 2px;
  }
}


/* =========================================================
   Version 10: mapa proporcionado y atribución nativa compacta
========================================================= */

/*
 * El mapa gana anchura y pierde altura: esto evita el efecto de
 * columna estrecha y excesivamente vertical.
 */
@media (min-width: 1101px) {
  .contact__grid {
    height: 360px !important;
    min-height: 360px !important;
    grid-template-columns: 30% 40% 30% !important;
    align-items: stretch;
  }

  .contact__form,
  .contact__map--api,
  .contact__details {
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
  }

  .contact__form {
    padding: 18px 26px !important;
  }

  .contact__form h2 {
    font-size: 30px;
    line-height: 1;
  }

  .contact__form > p {
    margin-top: 4px;
    font-size: 10px;
  }

  .contact__form form {
    gap: 9px;
    margin-top: 12px;
  }

  .contact__form input,
  .contact__form select {
    min-height: 40px;
  }

  .contact__form textarea {
    min-height: 86px;
    height: 86px;
  }

  .contact__form .form-actions {
    gap: 10px;
  }

  .contact__form .btn {
    min-height: 46px;
    padding-inline: 16px;
    font-size: 10px;
  }

  .contact__details {
    padding-inline: 38px !important;
  }

  .contact__detail {
    gap: 15px;
    margin-bottom: 14px;
  }

  .contact__detail p,
  .contact__detail address {
    font-size: 11px;
    line-height: 1.55;
  }
}

.contact__map--api {
  position: relative;
  isolation: isolate;
  padding-bottom: 0 !important;
  overflow: hidden;
}

.contact__map-canvas {
  inset: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  pointer-events: none;
}

.contact__map--api::after {
  display: none !important;
}

/* The decorative frame no longer reduces the usable map area. */
.contact__map-console {
  inset: 7px !important;
  z-index: 4;
  border-color: rgba(223,169,70,.22);
  box-shadow: none;
}

.contact__map-corner {
  width: 28px;
  height: 28px;
}

/* Compact identification label. */
.contact__map--api > .contact__map-heading {
  top: 12px !important;
  left: 12px !important;
  min-height: 34px;
  max-width: calc(100% - 66px);
  padding: 7px 10px !important;
  z-index: 9;
}

.contact__map--api > .contact__map-heading .lucide {
  width: 17px;
  height: 17px;
}

.contact__map--api > .contact__map-heading strong {
  font-size: 8px;
  letter-spacing: .12em;
}

/* Compact custom controls. */
.contact__map-controls {
  top: 12px !important;
  right: 12px !important;
  z-index: 10;
  gap: 4px;
}

.contact__map-controls button {
  width: 31px !important;
  height: 31px !important;
  min-height: 31px !important;
  padding: 0 !important;
  font-size: 18px !important;
}

/* Stable, clickable pin independent from Google POI hover behavior. */
.contact__map-office-pin {
  position: absolute;
  left: 52%;
  top: 54%;
  z-index: 11;
  display: grid;
  justify-items: center;
  color: #fff;
  transform: translate(-50%, -50%);
  text-decoration: none;
}

.contact__map-office-pin-shape {
  position: relative;
  width: 52px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 3px solid #fff2d2;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(145deg, #dfad4a, #b77c25);
  box-shadow:
    0 0 0 5px rgba(3,17,29,.72),
    0 10px 24px rgba(3,17,29,.42);
  transform: rotate(-45deg);
  transition: transform .2s ease, box-shadow .2s ease;
}

.contact__map-office-pin-shape::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #03111d;
  border: 1px solid rgba(255,255,255,.75);
}

.contact__map-office-pin-shape > span {
  position: relative;
  z-index: 1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  transform: rotate(45deg);
}

.contact__map-office-pin-label {
  display: grid;
  gap: 1px;
  min-width: 136px;
  margin-top: 8px;
  padding: 6px 9px;
  border: 1px solid rgba(223,169,70,.48);
  border-radius: 2px;
  color: #fff;
  background: rgba(3,17,29,.92);
  box-shadow: 0 8px 18px rgba(3,17,29,.28);
  text-align: center;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.contact__map-office-pin-label strong {
  font-size: 8px;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.contact__map-office-pin-label small {
  color: var(--gold-light);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact__map-office-pin:hover .contact__map-office-pin-shape,
.contact__map-office-pin:focus-visible .contact__map-office-pin-shape {
  transform: rotate(-45deg) scale(1.07);
  box-shadow:
    0 0 0 6px rgba(3,17,29,.82),
    0 13px 28px rgba(3,17,29,.5);
}

.contact__map-office-pin:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 5px;
}

.contact__map-canvas .gm-style button,
.contact__map-canvas .gm-style a {
  text-transform: none;
  letter-spacing: normal;
}

.contact__map-canvas .gm-style-cc,
.contact__map-canvas .gmnoprint {
  max-width: 100%;
}

/* Old marker and InfoWindow layers are no longer used. */
.percival-map-info,
.percival-office-marker,
.percival-map-node {
  display: none !important;
}

@media (max-width: 1100px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact__map--api {
    min-height: 360px;
  }
}

@media (max-width: 820px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__map--api {
    min-height: 340px;
  }

  .contact__map-office-pin {
    left: 52%;
    top: 55%;
  }
}

@media (max-width: 560px) {
  .contact__map--api {
    min-height: 320px;
  }

  .contact__map-office-pin-shape {
    width: 46px;
    height: 56px;
  }

  .contact__map-office-pin-label {
    min-width: 122px;
  }
}


/* =========================================================
   Version 11 — map and carousel remediation
========================================================= */

/*
 * The office is now a native Google Maps marker. The direct-child
 * anchor that inherited .contact__map > a has been removed.
 */
.contact__map-office-pin,
.contact__map-office-pin-shape,
.contact__map-office-pin-label {
  display: none !important;
}

/*
 * Google Maps tile images must retain their internal dimensions and
 * positioning. Do not force display, width or height values.
 */
.contact__map-canvas .gm-style img {
  max-width: none !important;
}

/*
 * Keep required Google attribution legible and compact.
 */
.contact__map-canvas .gm-style-cc,
.contact__map-canvas .gmnoprint {
  font-size: 10px !important;
}

/* ---------------------------------------------------------
   Stable scroll-based carousel.
--------------------------------------------------------- */
.slider__viewport,
.team-carousel__viewport {
  overflow: hidden !important;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.slider__viewport::-webkit-scrollbar,
.team-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.slider__track,
.team__track {
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

[data-slider-item] {
  box-sizing: border-box;
}

.slider[data-carousel-ready="true"] .slider__control,
.team-carousel[data-carousel-ready="true"] .slider__control {
  pointer-events: auto;
  opacity: 1;
}

.slider.is-carousel-unavailable .slider__control,
.slider.is-carousel-unavailable .slider__dots {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .slider__viewport,
  .team-carousel__viewport {
    scroll-behavior: auto;
  }
}
