/* ============================================================
   Design polish — premium UI improvements
   Keeps existing YPS color scheme. Loaded after theme-yps.css
   ============================================================ */

:root {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 80px;
  --space-9: 96px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 12px rgba(21, 75, 62, 0.06);
  --shadow-md: 0 10px 30px rgba(21, 75, 62, 0.08);
  --shadow-lg: 0 20px 50px rgba(21, 75, 62, 0.12);
  --shadow-glow: 0 12px 40px rgba(23, 198, 79, 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--accent, #17c64f);
  outline-offset: 3px;
}

::selection {
  background: rgba(23, 198, 79, 0.25);
  color: var(--primary-deep, #064733);
}

/* ---------- Typography hierarchy ---------- */
.heading-h1,
.display-heading {
  letter-spacing: -0.035em;
  line-height: 1.15;
  font-weight: 700;
}

.display-heading.hero,
.hero-slider-left .display-heading.hero {
  letter-spacing: -0.03em;
  line-height: 1.22 !important;
  font-weight: 700;
}

.heading-h2 {
  letter-spacing: -0.025em;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.heading-h3 {
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-weight: 600;
}

.heading-h4 {
  letter-spacing: -0.015em;
  line-height: 1.3;
  font-weight: 600;
}

.paragraph,
.hero-paragraph,
.card-review,
.ml-cta-desc {
  line-height: 1.65;
}

.top-title-wrapper {
  margin-bottom: var(--space-6);
}

.line {
  width: 56px;
  height: 3px;
  border-radius: var(--radius-pill);
  margin-top: var(--space-2);
}

.line-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.line-wrapper.small,
.heading-h2.centered + .line,
.line-wrapper:has(.centered) {
  align-items: center;
}

/* ---------- Navigation — fixed premium header ---------- */
.navbar.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  width: 100%;
  border-bottom: none;
  background: transparent;
}

.nav-spacer {
  width: 100%;
  height: 96px; /* fallback; JS sets exact */
  flex: none;
}

.nav-topbar {
  background: var(--primary-deep, #064733);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1;
}

.nav-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.nav-topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s var(--ease-soft);
}

.nav-topbar-phone .button-phone-icon {
  width: 14px;
  height: 14px;
  color: currentColor;
}

.nav-topbar-phone:hover {
  color: var(--accent-soft, #e0ffc3) !important;
}

.nav-topbar-sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.25);
}

.nav-topbar-note {
  opacity: 0.75;
}

.nav-topbar-link {
  margin-left: 8px;
  color: var(--accent-soft, #e0ffc3) !important;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}

.nav-topbar-link:hover {
  color: #fff !important;
}

.nav-component-copy {
  background: rgba(251, 247, 235, 0.92) !important;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(21, 75, 62, 0.08);
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  position: relative !important;
  top: auto !important;
  transition: background-color 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft),
    padding 0.35s var(--ease-soft);
}

.nav-component-copy.is-sticky {
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 10px 32px rgba(6, 71, 51, 0.1);
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.nav-component-copy .nav-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.nav-component-copy .brand {
  flex: none;
}

.nav-component-copy .main-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-component-copy .link-button-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.nav-link-copy,
.nav-link.mobo,
.nav-link.mobo-copy {
  position: relative;
  padding: 10px 14px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease-soft);
}

.nav-link::after,
.nav-link-copy::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--primary, #154b3e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover::after,
.nav-link-copy:hover::after,
.nav-link.w--current::after {
  transform: scaleX(1);
}

.nav-component-copy .nav-link.w--current {
  color: var(--primary, #154b3e) !important;
}

.nav-component-copy .button-asle.nav {
  padding: 12px 22px !important;
  font-size: 14px !important;
  box-shadow: 0 6px 16px rgba(21, 75, 62, 0.16);
}

.nav-component-copy .nav-link-items {
  border-radius: 12px;
  border: 1px solid rgba(21, 75, 62, 0.08);
  box-shadow: 0 16px 40px rgba(6, 71, 51, 0.12);
  overflow: hidden;
  margin-top: 8px;
}

.nav-component-copy .dropdown-link {
  padding: 12px 16px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-component-copy .dropdown-link:hover {
  background: rgba(21, 75, 62, 0.06);
  color: var(--primary-deep, #064733);
}

.nav-manu.w-nav-button {
  border-radius: 10px;
  transition: background-color 0.25s ease;
}

.nav-manu.w-nav-button:hover {
  background: rgba(21, 75, 62, 0.06);
}

@media (max-width: 991px) {
  .nav-topbar-note {
    display: none;
  }

  .nav-topbar-inner {
    justify-content: space-between;
    padding: 8px 16px;
  }

  .nav-spacer {
    height: 88px;
  }

  .nav-component-copy .link-button-wrapper.w-nav-menu {
    background: #fff;
    border-bottom: 1px solid rgba(21, 75, 62, 0.08);
    box-shadow: 0 16px 40px rgba(6, 71, 51, 0.12);
    padding: 16px;
  }

  .nav-component-copy .link-button-wrapper.w-nav-menu.w--open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-component-copy .nav-button-wrapper-copy {
    margin-top: 12px;
    width: 100%;
  }

  .nav-component-copy .nav-button-wrapper-copy .button-border,
  .nav-component-copy .nav-button-wrapper-copy .button-asle.nav {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 479px) {
  .nav-topbar-sep,
  .nav-topbar-link {
    display: none;
  }
}

.button-asle.nav,
.button-asle,
.button-main,
.hero-cta-submit,
.ml-cta-btn,
.button-asle.hero {
  border-radius: var(--radius-pill) !important;
  transition: transform 0.25s var(--ease-out),
    box-shadow 0.3s var(--ease-soft),
    background-color 0.3s var(--ease-soft),
    filter 0.25s var(--ease-soft) !important;
  will-change: transform;
}

.button-asle:hover,
.button-main:hover,
.button-asle.nav:hover,
.button-asle.hero:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

.hero-slider-left .hero-block .button-asle.hero:hover {
  box-shadow: 0 0 24px rgba(255, 255, 255, 1) !important;
}

.button-asle:active,
.button-main:active,
.hero-cta-submit:active,
.ml-cta-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Magnetic button helper */
.magnetic {
  display: inline-flex;
  will-change: transform;
}

/* ---------- Hero light section ---------- */
.hero-section {
  padding-top: var(--space-9);
  padding-bottom: var(--space-8);
}

.hero-section .heading-h1 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.hero-section .paragraph {
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ---------- Dark slider hero ---------- */
.slider-section {
  overflow: hidden;
}

.slide-content-wrap {
  padding-top: var(--space-8) !important;
  padding-bottom: var(--space-7) !important;
}

.hero-slider-row {
  gap: var(--space-6) !important;
}

.hero-slider-left .display-heading.hero {
  margin-bottom: var(--space-3);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  line-height: 1.22 !important;
}

.hero-slider-left .hero-paragraph {
  margin-bottom: 0;
  opacity: 1;
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 18px !important;
  line-height: 1.55 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-slider-left .hero-block {
  padding-top: var(--space-5) !important;
}

.button-border.hero,
.button-border.hero:hover {
  background-image: none !important;
  background-color: #fff !important;
  background: #fff !important;
}

.hero-slider-left .hero-block .button-border.hero {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background-image: none !important;
  background-color: #fff !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s var(--ease-out), box-shadow 0.3s var(--ease-soft);
}

.hero-slider-left .hero-block .button-border.hero:hover {
  background-image: none !important;
  background-color: #fff !important;
  background: #fff !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 28px rgba(255, 255, 255, 1), 0 10px 28px rgba(0, 0, 0, 0.25) !important;
}

.hero-slider-left .hero-block .button-asle.hero {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  padding: 16px 36px !important;
  line-height: 1;
  text-align: center;
  background: #fff !important;
  background-color: #fff !important;
  border: 2px solid #fff !important;
  color: var(--primary-deep, #064733) !important;
  box-shadow: none !important;
  transform: none !important;
}

.hero-slider-left .hero-block .button-asle.hero .button-phone-icon {
  color: var(--primary-deep, #064733) !important;
  stroke: currentColor;
}

.hero-slider-left .hero-block .button-asle.hero:hover,
.hero-slider-left .hero-block .button-border.hero:hover .button-asle.hero {
  background: #fff !important;
  background-color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

.hero-slider-left .hero-block .button-text {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  color: var(--primary-deep, #064733) !important;
  font-weight: 700 !important;
}

.slider-section .cta_form-wrap.hero-cta-form {
  border-radius: var(--radius-lg) !important;
  padding: var(--space-4) !important;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(224, 255, 195, 0.28) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-soft);
}

.slider-section .cta_form-wrap.hero-cta-form:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-cta-title {
  margin-bottom: var(--space-3) !important;
}

.hero-cta-fields {
  gap: var(--space-2) !important;
}

.hero-cta-input {
  min-height: 52px !important;
  border-radius: var(--radius-sm) !important;
  padding: 14px 16px !important;
  transition: border-color 0.25s var(--ease-soft),
    background-color 0.25s var(--ease-soft),
    box-shadow 0.25s var(--ease-soft) !important;
}

.hero-cta-input:focus {
  box-shadow: 0 0 0 3px rgba(23, 198, 79, 0.25) !important;
}

.hero-cta-message {
  min-height: 112px !important;
}

.hero-cta-submit {
  min-height: 52px;
  margin-top: var(--space-1) !important;
  box-shadow: 0 8px 24px rgba(23, 198, 79, 0.3);
}

.hero-cta-submit:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 32px rgba(23, 198, 79, 0.4);
}

/* ---------- Practice areas — 3D cards ---------- */
.practices-section {
  padding-top: var(--space-9) !important;
  padding-bottom: var(--space-9) !important;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(224, 255, 195, 0.45), transparent 60%),
    var(--cream, #fbf7eb) !important;
}

.practices-section .top-title-wrapper {
  text-align: center;
}

.practices-section .line-wrapper {
  align-items: center;
  width: 100%;
}

.pa {
  margin-top: var(--space-6) !important;
  gap: 24px !important;
  perspective: 1200px;
  align-items: stretch !important;
}

.areas-card-wrapper {
  --pa-rx: 0deg;
  --pa-ry: 0deg;
  height: auto !important;
  min-height: 280px;
  padding: 40px 28px 36px !important;
  border-radius: 20px !important;
  justify-content: flex-start !important;
  gap: 20px;
  background:
    linear-gradient(165deg, #ffffff 0%, #f8fbf7 48%, #f1f7f0 100%) !important;
  border: 1px solid rgba(21, 75, 62, 0.1) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 rgba(21, 75, 62, 0.04) inset,
    0 2px 4px rgba(21, 75, 62, 0.04),
    0 12px 28px rgba(21, 75, 62, 0.08),
    0 28px 56px rgba(6, 71, 51, 0.06) !important;
  transform-style: preserve-3d;
  transform: translateY(0) rotateX(var(--pa-rx)) rotateY(var(--pa-ry));
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.4s var(--ease-soft),
    border-color 0.35s var(--ease-soft),
    background 0.45s var(--ease-soft) !important;
  will-change: transform;
}

/* Soft depth plate under each card */
.areas-card-wrapper::before {
  content: "";
  position: absolute;
  inset: 10px 8px -8px;
  border-radius: 18px;
  background: rgba(21, 75, 62, 0.07);
  filter: blur(14px);
  z-index: -1;
  opacity: 0.7;
  transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-out);
  pointer-events: none;
}

.areas-card-wrapper:hover,
.areas-card-wrapper.is-hovered {
  border-color: rgba(23, 198, 79, 0.35) !important;
  background:
    linear-gradient(160deg, #154b3e 0%, #0d5c48 55%, #064733 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 8px 20px rgba(6, 71, 51, 0.2),
    0 24px 48px rgba(6, 71, 51, 0.28),
    0 0 0 1px rgba(23, 198, 79, 0.2) !important;
  transform: translateY(-10px) scale(1.02) rotateX(var(--pa-rx)) rotateY(var(--pa-ry));
}

.areas-card-wrapper:hover::before,
.areas-card-wrapper.is-hovered::before {
  opacity: 1;
  transform: translateY(6px) scale(0.96);
  background: rgba(23, 198, 79, 0.25);
}

/* Hide muddy corner blob at rest — glow only on hover */
.practices-section .hover-animation {
  z-index: 0 !important;
  overflow: hidden;
  border-radius: inherit;
}

.practices-section .gradiant {
  opacity: 0 !important;
  background: radial-gradient(
    circle,
    rgba(23, 198, 79, 0.55) 0%,
    rgba(21, 75, 62, 0.35) 45%,
    transparent 70%
  ) !important;
  background-color: transparent !important;
  filter: blur(40px) !important;
  transition:
    opacity 0.4s var(--ease-soft),
    width 0.5s ease,
    height 0.5s ease,
    left 0.12s ease,
    top 0.12s ease !important;
}

.areas-card-wrapper.is-hovered .gradiant,
.areas-card-wrapper:hover .gradiant {
  opacity: 0.55 !important;
}

.areas-card-wrapper > .area-wrapper,
.areas-card-wrapper > .area-details {
  transform: translateZ(28px);
}

.area-wrapper {
  width: 72px !important;
  height: 72px !important;
  padding: 14px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(21, 75, 62, 0.1) !important;
  background:
    linear-gradient(145deg, #ffffff 0%, #e8f5ec 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 6px 14px rgba(21, 75, 62, 0.12),
    0 2px 4px rgba(21, 75, 62, 0.06) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.4s var(--ease-out),
    background 0.4s var(--ease-soft),
    box-shadow 0.4s var(--ease-soft),
    border-color 0.35s var(--ease-soft) !important;
}

.area-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(21, 75, 62, 0.15));
  transition: filter 0.35s var(--ease-soft);
}

.areas-card-wrapper:hover .area-wrapper,
.areas-card-wrapper.is-hovered .area-wrapper {
  transform: translateZ(40px) scale(1.08) rotate(-3deg);
  background: linear-gradient(145deg, #ffffff 0%, #e0ffc3 100%) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 28px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(23, 198, 79, 0.35) !important;
}

.area-details {
  gap: 8px !important;
  text-align: center;
  margin-top: 0;
  width: 100%;
  flex: 1 1 auto;
}

.area-details .heading-h4 {
  margin: 0;
  min-height: 2.6em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 20px !important;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--primary-deep, #064733) !important;
  transition: color 0.35s var(--ease-soft) !important;
}

.area-details .paragraph {
  margin: 0;
  min-height: 3.1em;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(6, 71, 51, 0.65) !important;
  max-width: 220px;
  transition: color 0.35s var(--ease-soft) !important;
}

.areas-card-wrapper:hover .heading-h4,
.areas-card-wrapper.is-hovered .heading-h4 {
  color: #ffffff !important;
}

.areas-card-wrapper:hover .paragraph,
.areas-card-wrapper.is-hovered .paragraph {
  color: rgba(255, 255, 255, 0.78) !important;
}

@media (max-width: 991px) {
  .pa {
    perspective: none;
  }

  .areas-card-wrapper {
    min-height: 240px;
    transform: none !important;
  }

  .areas-card-wrapper:hover,
  .areas-card-wrapper.is-hovered {
    transform: translateY(-6px) scale(1.01) !important;
  }

  .areas-card-wrapper > .area-wrapper,
  .areas-card-wrapper > .area-details {
    transform: none;
  }
}

/* ---------- Process steps ---------- */
.step-section {
  padding-top: var(--space-9) !important;
  padding-bottom: var(--space-9) !important;
}

.step-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: var(--space-6) !important;
  position: relative;
}

.step-card-wrapper {
  /* Restore sticky stack scroll animation */
  position: sticky !important;
  top: 120px !important;
  background: #ffffff !important;
  border: 1px solid rgba(21, 75, 62, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 32px rgba(21, 75, 62, 0.1);
  transition: box-shadow 0.35s var(--ease-soft);
  /* Opaque + rising z-index so cards cover each other cleanly (no ghost text) */
  isolation: isolate;
}

.step-card-wrapper:nth-child(1) { z-index: 1; }
.step-card-wrapper:nth-child(2) { z-index: 2; }
.step-card-wrapper:nth-child(3) { z-index: 3; }
.step-card-wrapper:nth-child(4) { z-index: 4; }
.step-card-wrapper:nth-child(5) { z-index: 5; }

.step-card-wrapper:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 40px rgba(21, 75, 62, 0.14);
}

.step-card-wrapper .images-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.step-card-wrapper .number {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(23, 198, 79, 0.12);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.step-card-wrapper .button-asle {
  padding: 14px 28px !important;
  font-size: 15px;
}

@media (max-width: 991px) {
  .step-card-wrapper {
    position: static !important;
    top: auto !important;
  }
}

/* ---------- Features ---------- */
.featured-section {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.home6-feature_text-wrapper {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--cream, #fbf7eb);
  border: 1px solid rgba(21, 75, 62, 0.06);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-soft);
}

.home6-feature_text-wrapper:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-md);
}

.icon-1x1-medium {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.button-2.secoundary {
  position: relative;
  font-weight: 600;
  transition: color 0.25s var(--ease-soft), letter-spacing 0.25s var(--ease-soft);
}

.button-2.secoundary:hover {
  letter-spacing: 0.02em;
}

/* ---------- Team ---------- */
.team-section {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
  overflow: hidden;
}

.team-section .heading-h2.centered {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.team-section .paragraph.middle {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.team-card-wrapper {
  gap: var(--space-3);
  align-items: stretch !important;
  margin-top: 40px !important;
}

.team-card-wrapper .person,
.team-card-wrapper .person.top {
  margin-top: 0 !important;
  width: 300px;
  height: 360px;
  align-self: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-soft);
}

.team-card-wrapper .person:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.team-card-wrapper .person .image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s var(--ease-out);
}

.team-card-wrapper .person:hover .image {
  transform: scale(1.04);
}

.team-section .gradient {
  opacity: 0.45;
}

@media (max-width: 991px) {
  .team-card-wrapper {
    margin-top: 32px !important;
  }

  .team-card-wrapper .person,
  .team-card-wrapper .person.top {
    height: 320px;
  }
}

@media (max-width: 479px) {
  .team-card-wrapper .person,
  .team-card-wrapper .person.top {
    width: 100%;
    height: 360px;
  }
}

/* ---------- Testimonials ---------- */
.testimonials-section {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}

.client-review-card {
  border-radius: var(--radius-lg) !important;
  padding: var(--space-4) !important;
  background: #fff !important;
  border: 1px solid rgba(21, 75, 62, 0.08) !important;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-soft);
  color: var(--primary-deep, #064733);
}

/* Quote cards — dark text on white (fix white-on-white) */
.client-review-card:not(._1) .paragraph-2 {
  color: rgba(6, 71, 51, 0.78) !important;
  opacity: 1 !important;
  font-size: 15.5px;
  line-height: 1.6;
}

.client-review-card:not(._1) .h5 {
  color: var(--primary-deep, #064733) !important;
}

.client-review-card:not(._1) .csilver {
  color: rgba(6, 71, 51, 0.55) !important;
}

.client-review-card:not(._1) .quotes {
  width: 28px;
  opacity: 0.9;
  filter: brightness(0) saturate(100%) invert(22%) sepia(28%) saturate(900%) hue-rotate(118deg) brightness(0.85);
}

.client-review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.client-review-card._1,
.client-review-card.testimonials._1 {
  background: linear-gradient(145deg, var(--primary-deep, #064733), var(--primary, #154b3e)) !important;
  color: #fff !important;
  border: none !important;
}

.client-review-card._1 .h5-copy,
.client-review-card._1 .csilver,
.client-review-card._1 .paragraph-2,
.client-review-card.testimonials._1 .h5-copy,
.client-review-card.testimonials._1 .paragraph-2 {
  color: #fff !important;
}

.testimonial-author {
  margin-top: 8px;
  gap: 12px;
}

.testimonial-author-img {
  border: 2px solid rgba(21, 75, 62, 0.12);
  box-shadow: 0 4px 12px rgba(21, 75, 62, 0.1);
}

.test-card {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-soft);
}

.test-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-md);
}

/* ---------- CTA band — quiet professional strip ---------- */
.cta-sections {
  padding-top: var(--space-6) !important;
  padding-bottom: var(--space-6) !important;
  position: relative;
  overflow: hidden;
  background: #fff !important;
  border-top: 1px solid rgba(21, 75, 62, 0.08);
  border-bottom: 1px solid rgba(21, 75, 62, 0.08);
}

.cta-sections::before,
.cta-sections::after {
  display: none;
}

.cta-sections .container {
  position: relative;
  z-index: 1;
}

.cta-wrappers {
  background: var(--cream, #fbf7eb) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(21, 75, 62, 0.08) !important;
  border-radius: 20px !important;
  padding: 40px 48px !important;
  box-shadow: none !important;
  display: flex !important;
  flex-flow: row wrap !important;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.cta-sections .home6-cta_content {
  flex: 1 1 280px;
  max-width: 640px;
}

.cta-sections .heading-max-width {
  width: 100%;
}

.cta-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary, #154b3e);
  opacity: 0.7;
}

.cta-sections .heading-h2,
.cta-sections .heading-h2.centered {
  color: var(--primary-deep, #064733) !important;
  max-width: 18ch;
  margin: 0 0 10px !important;
  text-align: left !important;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.cta-support {
  margin: 0;
  max-width: 42ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(6, 71, 51, 0.68);
}

.cta-sections .home6-cta_button-row {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.cta-sections .cta-button-wrapper {
  margin: 0;
}

.cta-sections .button-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 32px !important;
  border-radius: 999px !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 8px 20px rgba(6, 71, 51, 0.16);
  transition: transform 0.25s var(--ease-out), box-shadow 0.3s var(--ease-soft), background-color 0.25s ease, border-color 0.25s ease !important;
}

.cta-sections .button-main.is-phone {
  background: var(--primary, #154b3e) !important;
  border: 1px solid var(--primary, #154b3e) !important;
  color: #fff !important;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(21, 75, 62, 0.14);
}

.cta-sections .button-phone-icon,
.hero-slider-left .button-phone-icon,
.footer-cta-btn .button-phone-icon,
.nav-topbar-phone .button-phone-icon {
  width: 16px;
  height: 16px;
  flex: none;
  display: block;
}

.nav-topbar-phone .button-phone-icon {
  width: 14px;
  height: 14px;
}

.cta-sections .button-main:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.85), 0 12px 28px rgba(6, 71, 51, 0.18);
}

.cta-sections .button-main.is-phone:hover {
  background: #1c5c4c !important;
  border-color: #1c5c4c !important;
}

.cta-sections .button-main:active {
  transform: translateY(0) scale(0.98);
}

@media (max-width: 991px) {
  .cta-wrappers {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 32px 24px !important;
  }

  .cta-sections .heading-h2,
  .cta-sections .heading-h2.centered {
    max-width: none;
  }

  .cta-sections .home6-cta_button-row {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 479px) {
  .cta-wrappers {
    padding: 24px 18px !important;
  }

  .cta-sections .home6-cta_button-row {
    width: 100%;
  }

  .cta-sections .cta-button-wrapper,
  .cta-sections .button-main {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Booking CTA — light, calm, professional ---------- */
.section_cta {
  background: #fff !important;
  color: var(--primary-deep, #064733) !important;
  border-top: 1px solid rgba(21, 75, 62, 0.06);
}

.section_cta .ml-cta-pad {
  padding-top: var(--space-9) !important;
  padding-bottom: var(--space-9) !important;
}

.section_cta .ml-cta-header {
  margin-bottom: var(--space-5) !important;
  padding-bottom: var(--space-5) !important;
  border-bottom: 1px solid rgba(21, 75, 62, 0.1);
  gap: 32px !important;
  align-items: flex-start !important;
}

.section_cta .ml-cta-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px !important;
  padding: 0 !important;
  border-radius: 0;
  background: transparent !important;
  border: none !important;
  color: var(--primary, #154b3e) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

.section_cta .ml-cta-subtitle-line {
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary, #154b3e);
  box-shadow: none;
  color: transparent !important;
  font-size: 0;
}

.section_cta .ml-cta-title {
  font-size: clamp(1.85rem, 1.5rem + 1.2vw, 2.4rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.03em !important;
  max-width: 16ch;
  color: var(--primary-deep, #064733) !important;
}

.section_cta .ml-cta-title strong,
.section_cta .ml-cta-gold {
  color: var(--primary-deep, #064733) !important;
  font-weight: 700;
}

.section_cta .ml-cta-desc {
  font-size: 16px !important;
  line-height: 1.65 !important;
  color: rgba(6, 71, 51, 0.72) !important;
  max-width: 42ch;
}

.section_cta .ml-cta-trust {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section_cta .ml-cta-trust li {
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--cream, #fbf7eb);
  border: 1px solid rgba(21, 75, 62, 0.1);
  color: var(--primary-deep, #064733);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section_cta .ml-cta-grid {
  gap: 28px !important;
  align-items: stretch;
}

.section_cta .ml-cta-form-card {
  height: 100%;
  border-radius: 18px !important;
  padding: 32px 28px !important;
  background: var(--cream, #fbf7eb) !important;
  border: 1px solid rgba(21, 75, 62, 0.1) !important;
  box-shadow: 0 10px 28px rgba(21, 75, 62, 0.06);
  transition: box-shadow 0.35s var(--ease-soft);
}

.section_cta .ml-cta-form-card:hover {
  transform: none;
  box-shadow: 0 14px 34px rgba(21, 75, 62, 0.09);
}

.section_cta .ml-cta-form-intro {
  margin-bottom: 24px;
}

.section_cta .ml-cta-form-heading {
  margin: 0 0 6px;
  font-family: var(--font-heading, "Funnel Display", sans-serif);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--primary-deep, #064733);
}

.section_cta .ml-cta-form-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(6, 71, 51, 0.62);
}

.section_cta .ml-cta-form {
  gap: 14px !important;
}

.section_cta .ml-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.section_cta .ml-cta-input {
  height: auto !important;
  min-height: 50px;
  padding: 13px 15px !important;
  border: 1px solid rgba(21, 75, 62, 0.14) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--primary-deep, #064733) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color-scheme: light !important;
  transition: border-color 0.25s var(--ease-soft),
    background-color 0.25s var(--ease-soft),
    box-shadow 0.25s var(--ease-soft);
}

.section_cta .ml-cta-input::placeholder {
  color: rgba(6, 71, 51, 0.42) !important;
}

.section_cta .ml-cta-input:hover {
  border-color: rgba(21, 75, 62, 0.28) !important;
}

.section_cta .ml-cta-input:focus {
  border-color: var(--primary, #154b3e) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(21, 75, 62, 0.12) !important;
  outline: none;
}

.section_cta select.ml-cta-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23064733' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-color: #fff !important;
  padding-right: 42px !important;
}

.section_cta select.ml-cta-input option {
  color: #111;
  background: #fff;
}

.section_cta textarea.ml-cta-input {
  min-height: 100px !important;
  resize: vertical;
}

.section_cta .ml-cta-input.is-date {
  background-color: #fff !important;
  background-position: right 14px center !important;
  padding-right: 44px !important;
}

.section_cta .ml-cta-btn {
  margin-top: 6px;
  min-height: 52px;
  height: 52px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 22px rgba(6, 71, 51, 0.18);
  transition: transform 0.25s var(--ease-out),
    box-shadow 0.3s var(--ease-soft),
    background-color 0.3s ease !important;
}

.section_cta .ml-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 71, 51, 0.24);
}

.section_cta .ml-cta-btn:hover .ml-cta-btn-text {
  transform: none !important;
}

.section_cta .ml-cta-btn:active {
  transform: translateY(0) scale(0.98);
}

.section_cta .ml-cta-success,
.section_cta .ml-cta-error {
  color: var(--primary-deep, #064733);
}

.section_cta .ml-cta-image-wrap {
  padding: 0 !important;
  border-radius: 18px !important;
  overflow: hidden;
  border: 1px solid rgba(21, 75, 62, 0.1);
  box-shadow: 0 10px 28px rgba(21, 75, 62, 0.06);
  background: transparent !important;
  min-height: 0 !important;
  height: 100%;
  display: flex;
  align-self: stretch;
}

.section_cta .ml-cta-image-inner {
  border-radius: 18px !important;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  position: relative;
  overflow: hidden;
}

.section_cta .ml-cta-image {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.section_cta .ml-cta-image-wrap:hover .ml-cta-image {
  transform: scale(1.02);
}

.section_cta .ml-cta-image-badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(21, 75, 62, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(6, 71, 51, 0.1);
}

.section_cta .ml-cta-image-badge-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary, #154b3e);
}

.section_cta .ml-cta-image-badge-text {
  font-size: 14.5px;
  line-height: 1.4;
  color: rgba(6, 71, 51, 0.8);
  font-weight: 500;
}

@media (max-width: 991px) {
  .section_cta .ml-cta-header {
    grid-template-columns: 1fr !important;
  }

  .section_cta .ml-cta-head-right {
    justify-self: start !important;
  }

  .section_cta .ml-cta-title {
    max-width: none;
  }

  .section_cta .ml-cta-grid {
    grid-template-columns: 1fr;
  }

  .section_cta .ml-cta-image-wrap {
    order: -1;
  }

  .section_cta .ml-cta-image-wrap,
  .section_cta .ml-cta-image-inner {
    min-height: 340px !important;
    height: 340px;
  }
}

@media (max-width: 640px) {
  .section_cta .ml-cta-row {
    grid-template-columns: 1fr;
  }

  .section_cta .ml-cta-form-card {
    padding: 24px 18px !important;
  }

  .section_cta .ml-cta-image-wrap,
  .section_cta .ml-cta-image-inner {
    min-height: 260px !important;
    height: 260px;
  }

  .section_cta .ml-cta-image-badge {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
  }
}

/* ---------- Footer — compact professional ---------- */
.page-wrappper > .main-wrappper,
.page-wrappper > .section_cta {
  position: relative;
}

.footer-section {
  position: relative !important;
  bottom: auto !important;
  margin-top: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: linear-gradient(180deg, #07503a 0%, #064733 42%, #043628 100%) !important;
  border-top: none;
  overflow: hidden;
}

.footer-accent-line {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(23, 198, 79, 0.7) 30%, rgba(224, 255, 195, 0.9) 50%, rgba(23, 198, 79, 0.7) 70%, transparent 100%);
}

.footer-section > .container,
.footer-bottom-bar > .container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
  box-sizing: border-box;
}

.footer-section .footer-content {
  width: 100%;
  align-items: stretch;
  padding-top: 40px;
  padding-bottom: 8px;
}

.footer-cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  padding: 24px 28px;
  margin-bottom: 50px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.footer-cta-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(224, 255, 195, 0.85);
}

.footer-cta-title {
  margin: 0 0 6px;
  font-family: var(--font-heading, "Funnel Display", sans-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.25;
}

.footer-cta-text {
  margin: 0;
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out),
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.footer-cta-btn.is-primary {
  background: #fff !important;
  border: 1px solid #fff;
  color: var(--primary-deep, #064733) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.footer-cta-btn.is-primary:hover {
    transform: translateY(-2px);
    background: var(--accent-soft, #e0ffc3) !important;
    border-color: var(--accent-soft, #e0ffc3);
    color: #064834 !important;
}

.footer-cta-btn.is-ghost {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  gap: 8px;
}

.footer-cta-btn.is-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr 1fr ;
  gap: 28px 36px;
  padding-bottom: 36px;
  width: 100%;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

.footer-brand {
  display: inline-flex !important;
  float: none !important;
  width: auto !important;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 0;
  text-decoration: none;
  clear: both;
}

.footer-brand-col .footer-logo,
.footer-section .footer-logo {
  display: block;
  filter: brightness(0) invert(1);
  height: 68px;
  width: auto;
  max-width: 360px;
  margin: 0;
  object-fit: contain;
}

.footer-tagline {
  display: block;
  clear: both;
  float: none;
  margin: 0 0 18px;
  max-width: 32ch;
  width: 100%;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14.5px;
  line-height: 1.6;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(224, 255, 195, 0.75);
}

.footer-address {
  display: inline;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s ease;
}

.footer-address:hover {
  color: var(--accent-soft, #e0ffc3) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-phone {
  display: inline-block;
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.footer-phone:hover {
  color: var(--accent-soft, #e0ffc3) !important;
}

.footer-col .walsh-heading-small {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff !important;
}

.footer-col .walsh-footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col .walsh-footer-list a {
  color: rgba(255, 255, 255, 0.72) !important;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
  transition: color 0.25s ease, transform 0.25s var(--ease-out);
  display: inline-block;
}

.footer-col .walsh-footer-list a:hover {
  color: #fff !important;
  transform: translateX(4px);
}

.footer-social-note {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

.social-icon-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

.walsh-footer-link-social {
  width: 40px;
  height: 40px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  transition: transform 0.25s var(--ease-out),
    background-color 0.25s var(--ease-soft),
    border-color 0.25s ease;
}

.walsh-footer-link-social .social-icon {
  color: #fff !important;
  font-size: 15px;
  line-height: 1;
}

.walsh-footer-link-social:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.footer-bottom-bar {
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

.footer-copy {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 13px !important;
}

.footer-credit {
  margin: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.footer-credit:hover {
  opacity: 0.85;
  text-decoration: none;
}

.footer-credit-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 200px;
  filter: brightness(0) invert(1);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 13px !important;
  text-decoration: none;
  cursor: pointer;
}

.footer-legal-links a:hover {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 991px) {
  .footer-section > .container,
  .footer-bottom-bar > .container {
    padding-left: 28px;
    padding-right: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 22px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .footer-brand-col .footer-logo,
  .footer-section .footer-logo {
    height: 56px;
    max-width: 300px;
  }

  .footer-cta-band {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .footer-section > .container,
  .footer-bottom-bar > .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-cta-actions {
    width: 100%;
  }

  .footer-cta-btn {
    flex: 1 1 auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Scroll reveal ---------- */
[data-animate] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  will-change: opacity, transform;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-animate="fade"] {
  transform: none;
}

[data-animate="fade"].is-visible {
  opacity: 1;
}

[data-animate="scale"] {
  transform: translate3d(0, 16px, 0) scale(0.98);
}

[data-animate="scale"].is-visible {
  transform: none;
}

/* Stagger helpers */
.pa > [data-animate],
.home6-feature_item-list > [data-animate],
.team-card-wrapper > [data-animate] {
  transition-duration: 0.5s;
}

/* Practice cards: opacity reveal only — keep 3D transform free */
.areas-card-wrapper[data-animate] {
  transform: translateY(0) rotateX(var(--pa-rx, 0deg)) rotateY(var(--pa-ry, 0deg));
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.35s var(--ease-out),
    box-shadow 0.4s var(--ease-soft),
    border-color 0.35s var(--ease-soft),
    background 0.45s var(--ease-soft) !important;
}

.areas-card-wrapper[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) rotateX(var(--pa-rx, 0deg)) rotateY(var(--pa-ry, 0deg));
}

.areas-card-wrapper[data-animate].is-visible:hover,
.areas-card-wrapper[data-animate].is-visible.is-hovered {
  transform: translateY(-10px) scale(1.02) rotateX(var(--pa-rx, 0deg)) rotateY(var(--pa-ry, 0deg));
}

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

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive polish ---------- */
@media screen and (max-width: 991px) {
  .practices-section,
  .step-section,
  .team-section,
  .testimonials-section {
    padding-top: var(--space-8) !important;
    padding-bottom: var(--space-8) !important;
  }

  .areas-card-wrapper {
    min-height: 240px;
  }
}

@media screen and (max-width: 767px) {
  .heading-h2 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .practices-section,
  .step-section,
  .team-section,
  .testimonials-section,
  .section_cta .ml-cta-pad {
    padding-top: var(--space-7) !important;
    padding-bottom: var(--space-7) !important;
  }

  .step-card-wrapper,
  .home6-feature_text-wrapper,
  .areas-card-wrapper {
    padding: var(--space-3) !important;
  }

  .slider-section .cta_form-wrap.hero-cta-form {
    padding: var(--space-3) !important;
  }
}

@media screen and (max-width: 479px) {
  .hero-cta-input,
  .hero-cta-submit {
    min-height: 48px !important;
  }
}

/* ---------- Privacy Policy page ---------- */
.page-privacy,
.page-legal {
  background: var(--cream, #fbf7eb);
}

.policy {
  background: var(--cream, #fbf7eb);
  color: var(--primary, #154b3e);
  padding: 48px 0 96px;
}

.policy-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.policy-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.back_to_home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #154b3e99;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back_to_home:hover {
  color: var(--primary-deep, #064733);
}

.back_to_home-icon {
  display: flex;
  width: 13px;
  height: 13px;
  flex: none;
}

.back_to_home-icon svg {
  width: 100%;
  height: 100%;
}

.policy-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
  width: 100%;
}

.acticles-nav-copy {
  position: sticky;
  top: 120px;
  flex: 0 0 280px;
  width: 280px;
}

.acticles-nav-cont {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.acticles-nav-cont-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  color: #154b3e99;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 500;
}

.acticles-nav-cont-link_icon {
  display: flex;
  width: 26px;
  height: 2px;
  margin-top: 8px;
  flex: none;
  color: currentColor;
}

.acticles-nav-cont-link_icon svg {
  width: 100%;
  height: 100%;
}

.acticles-nav-cont-link_text {
  transition: color 0.3s ease;
}

.acticles-nav-cont-link.active,
.acticles-nav-cont-link:hover {
  color: var(--primary-deep, #064733);
}

.policy_rich {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 760px;
}

.policy_rich h1 {
  margin: 0 0 28px;
  color: var(--primary-deep, #064733);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.policy_rich h3 {
  margin: 56px 0 20px;
  color: var(--primary-deep, #064733);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.policy_rich h3:first-of-type {
  margin-top: 0;
}

.policy_rich p {
  margin: 0 0 8px;
  color: #154b3e80;
  font-size: 16px;
  line-height: 1.7;
}

.policy_rich a {
  color: var(--primary-deep, #064733);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy_rich_list {
  margin: 8px 0 16px;
  padding-left: 22px;
  color: #154b3e80;
  opacity: 1;
  list-style-type: disc;
}

.policy_rich_list li {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.65;
}

@media (max-width: 991px) {
  .policy {
    padding: 32px 0 64px;
  }

  .policy-container {
    padding: 0 24px;
  }

  .acticles-nav-copy {
    display: none;
  }

  .policy-block {
    gap: 0;
  }

  .policy_rich {
    max-width: none;
  }

  .policy_rich h3 {
    margin-top: 40px;
  }
}

@media (max-width: 479px) {
  .policy-container {
    padding: 0 16px;
  }

  .policy_rich h1 {
    font-size: 34px;
  }
}

/* Disable hover lift on touch devices */
@media (hover: none) {
  .areas-card-wrapper:hover,
  .step-card-wrapper:hover,
  .home6-feature_text-wrapper:hover,
  .team-card-wrapper .person:hover,
  .client-review-card:hover,
  .test-card:hover,
  .button-asle:hover,
  .button-main:hover {
    transform: none;
  }
}
