/* ===================================
   Font faces
   =================================== */
@font-face {
  font-family: "Landsec Brown";
  src: url("fonts/LandsecBrown-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Landsec Brown";
  src: url("fonts/LandsecBrown-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "fm light";
  src: url("fonts/FM-LightWEB.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===================================
   Base reset
   =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  overflow-x: hidden;
  font-family: "Landsec Brown", Arial, sans-serif;
  background-color: var(--color-warm-grey-light);
}

/* ===================================
   CSS Variables - Color Palette
   =================================== */
:root {
  /* Primary Palette */
  --color-black: #000000;
  --color-olive: #63613e;
  --color-warm-grey: #cac6bb;
  --color-warm-grey-light: #faf3ed;

  /* Highlight Palette #1 */
  --color-dark-yellow: #c5ab02;
  --color-bright-yellow: #ffee00;
  --color-lavender: #d6cafc;

  /* Highlight Palette #2 */
  --color-dark-teal: #094231;
  --color-bright-green: #04eb6c;
  --color-tan: #d1be94;

  /* Highlight Palette #3 */
  --color-navy: #586283;
  --color-periwinkle: #708bf0;
  --color-orange: #ff6800;

  /* Semantic Colors */
  --color-text-primary: #1a1a1a;
  --color-text-light: #ffffff;
  --color-background: #ffffff;

  /* ===================================
     Navbar tokens
     =================================== */
  --navbar-max-width: 1216px;
  --navbar-height: 64px;
  --navbar-radius: 999px;

  --navbar-bg: var(--color-background);
  --navbar-text: var(--color-text-primary);

  --dropdown-active-bg: #0b0b0b;
  --dropdown-panel-bg: #050505;
  --dropdown-panel-text: var(--color-text-light);
  --dropdown-panel-muted: rgba(255, 255, 255, 0.78);
  --dropdown-divider: rgba(255, 255, 255, 0.22);

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.18);
}

main.main-content {
  margin-top: 85px;
}

.pill-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding-top: 22px;
  padding-left: 16px;
  padding-right: 16px;
  z-index: 1000;

  will-change: transform, opacity;
  transition:
    transform 260ms ease,
    opacity 260ms ease,
    box-shadow 260ms ease;

  transform: translateY(0);
  opacity: 1;
}

.pill-nav.is-hidden {
  transform: translateY(-110px);
  opacity: 0;
  pointer-events: none;
}

.pill-nav__inner {
  width: min(var(--navbar-max-width), 100%);
  min-height: var(--navbar-height);
  margin: 0 auto;
  background: var(--navbar-bg);
  border-radius: var(--navbar-radius);
  box-shadow: none;
  display: grid;
  grid-template-columns: 170px 1fr 170px;
  align-items: center;
  gap: 18px;
  padding: 0 30px;
  position: relative;
  overflow: visible;
}

.pill-nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  user-select: none;
  white-space: nowrap;
  color: var(--navbar-text);
}

.pill-nav__brand .pill-nav__brand-top {
  letter-spacing: 1px;
  font-size: 14px;
}

.pill-nav__brand .pill-nav__brand-sub {
  font-size: 10px;
  margin-top: 2px;
}

.pill-nav__brand-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) saturate(100%);
}

.pill-nav__brand-link--text {
  display: flex;
  flex-direction: column;
}

.pill-nav__brand-link--logo {
  display: none;
}

.pill-nav__center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ===================================
   Dropdowns
   =================================== */
.pill-nav__dd {
  position: static;
}

.pill-nav__dd > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--navbar-radius);
  font-size: 14px;
  font-weight: 400;
  color: var(--navbar-text);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease,
    transform 0.15s ease;
  outline: none;
}

.pill-nav__dd > summary:hover {
  background: var(--dropdown-active-bg);
  color: var(--dropdown-panel-text);
}

.pill-nav__dd > summary::-webkit-details-marker {
  display: none;
}

.pill-nav__caret {
  width: 12px;
  height: 8px;
  display: inline-block;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0.9;
}

.pill-nav__dd[open] > summary,
.pill-nav__dd:focus-within > summary {
  background: var(--dropdown-active-bg);
  color: var(--dropdown-panel-text);
}

.pill-nav__link {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--navbar-radius);
  font-size: 14px;
  font-weight: 400;
  color: var(--navbar-text);
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  outline: none;
}

button.pill-nav__link {
  border: none;
  background: none;
  font-family: inherit;
}

.pill-nav__link:hover {
  background: var(--dropdown-active-bg);
  color: var(--dropdown-panel-text);
}

/* ===================================
   Big dropdown panel
   =================================== */
.pill-nav__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  background: var(--dropdown-panel-bg);
  border-radius: 22px;
  padding: 32px 40px;
  color: var(--dropdown-panel-text);
  box-shadow: none;
  height: auto;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: auto;
  visibility: hidden;
  will-change: opacity, transform;
}

/* Opening animation */
.pill-nav__dd[open] .pill-nav__panel {
  animation: slideDown 0.3s ease forwards;
  pointer-events: auto;
  visibility: visible;
}

/* Closing animation */
.pill-nav__dd.closing .pill-nav__panel {
  animation: slideUp 0.3s ease forwards;
}

/* Keyframe animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

.pill-nav__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.pill-nav__panel-link {
  color: var(--dropdown-panel-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.95;
  position: relative;
  padding-bottom: 2px;
}

.pill-nav__panel-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--dropdown-panel-text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.pill-nav__panel-link:hover {
  opacity: 1;
}

.pill-nav__panel-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.pill-nav__arrow {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: 0;
  margin-left: 2px;
}

.pill-nav__panel-divider {
  height: 1px;
  background: #ffffff;
  margin: 10px 0 24px;
}

.pill-nav__panel-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
  max-width: 520px;
}

.pill-nav__panel-list a {
  color: var(--dropdown-panel-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1px;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.pill-nav__panel-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--dropdown-panel-text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.pill-nav__panel-list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.pill-nav__close {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
  padding: 0;
  appearance: none;
  outline: none;
}
.pill-nav__close::before,
.pill-nav__close::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 16px;
  height: 2px;
  background: #fff;
  transform-origin: center;
  opacity: 0.9;
}
.pill-nav__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.pill-nav__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ===================================
   Hamburger Menu
   =================================== */
.pill-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.pill-nav__hamburger span {
  width: 100%;
  height: 2px;
  background: var(--navbar-text);
  border-radius: 2px;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  transform: translateX(0);
}

.pill-nav__hamburger.active {
  position: relative;
  transform: none;
}

.pill-nav__hamburger.active span {
  background: var(--navbar-text);
}

.pill-nav__hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.pill-nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.pill-nav__hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.pill-nav__mobile-top-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-background);
  z-index: 1101;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pill-nav__mobile-top-bar,
.pill-nav__mobile-main,
.pill-nav__submenu {
  display: none;
}

@media (max-width: 1216px) {
  .pill-nav__desktop-only {
    display: none !important;
  }

  .pill-nav__mobile-top-bar {
    display: flex;
  }

  .pill-nav__mobile-main {
    display: flex;
  }

  .pill-nav__submenu {
    display: block;
  }
}

.pill-nav__logo-mobile-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.pill-nav__logo-mobile {
  position: relative;
  top: 0;
  left: 0;
  z-index: 1;
  max-width: 200px;
  height: auto;
  filter: brightness(0) saturate(100%);
  background: transparent;
  padding: 8px 16px 8px 8px;
  border-radius: 0 0 16px 0;
  box-shadow: none;
  height: 70px;
  margin: 0;
  transform: none;
  opacity: 1;
  transition: all 0.3s ease;
}

.pill-nav__mobile-branding {
  display: none !important;
}

@media (max-width: 1216px) {
  .pill-nav {
    padding: 0;
  }

  .pill-nav__inner {
    grid-template-columns: 1fr auto 1fr;
    padding: 0 22px;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
  }

  .pill-nav__hamburger {
    display: flex;
  }

  .pill-nav__brand {
    position: relative;
  }

  .pill-nav__brand-link--text {
    display: none;
  }

  .pill-nav__brand-link--logo {
    display: block;
  }

  .pill-nav__brand-logo {
    height: 60px;
  }

  @media (max-width: 1216px) {
    .pill-nav__center {
      position: fixed;
      top: 0;
      right: 0;
      width: 100%;
      max-width: 100%;
      height: 100vh;
      background: var(--color-background);
      flex-direction: column;
      justify-content: flex-start;
      align-items: stretch;
      gap: 0;
      padding: 0;
      transform: translateX(100%);
      transition: transform 0.3s ease;
      overflow-y: auto;
      overflow-x: hidden;
      z-index: 1000;
      flex-wrap: nowrap;
    }

    .pill-nav__center.mobile-open {
      transform: translateX(0);
      box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    }
  }

  @media (max-width: 1216px) {
    .pill-nav__mobile-branding {
      display: flex !important;
      flex-direction: column;
      padding: 30px;
      margin-top: auto;
      font-family: var(--font-marlide);
    }

    .pill-nav__mobile-branding-top {
      font-size: 32px;
      font-weight: 500;
      letter-spacing: 0.5px;
      color: var(--color-text-primary);
    }

    .pill-nav__mobile-branding-sub {
      font-size: 22px;
      color: var(--color-text-secondary);
      letter-spacing: 0.3px;
    }
  }

  .pill-nav__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
    z-index: 999;
  }

  .pill-nav__overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .pill-nav__mobile-main {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    margin-top: 50px;
    position: relative;
  }

  .pill-nav__mobile-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
  }

  .pill-nav__mobile-main.hidden {
    transform: translateX(100%);
    position: absolute;
    pointer-events: none;
  }

  /* Mobile submenu pages */
  .pill-nav__submenu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-background);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding-top: 80px;
  }

  .pill-nav__submenu.active {
    transform: translateX(0);
  }

  .pill-nav__back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 30px;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
  }

  .pill-nav__back svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
  }

  .pill-nav__back:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  .pill-nav__see-all {
    display: block;
    padding: 20px 30px;
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.05);
  }

  .pill-nav__see-all:hover {
    background: rgba(0, 0, 0, 0.1);
  }

  .pill-nav__submenu-list {
    display: flex;
    flex-direction: column;
  }

  .pill-nav__submenu-list a {
    display: block;
    padding: 20px 30px;
    color: var(--color-text-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 16px;
  }

  .pill-nav__submenu-list a:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  .pill-nav__dd {
    border-bottom: none;
    position: relative;
  }

  .pill-nav__dd::after {
    content: "";
    display: block;
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
  }

  @media (max-width: 700px) {
    .pill-nav__dd::after {
      left: 30px;
      right: 30px;
    }
  }

  .pill-nav__menu-item {
    width: 100%;
    padding: 20px 40px;
    font-size: 20px;
    border: none;
    border-radius: 0;
    color: var(--color-text-primary);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    text-align: left;
    gap: 32px;
  }

  .pill-nav__menu-item span {
    text-align: left;
  }

  .pill-nav__menu-item:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  .pill-nav__caret {
    transform: rotate(-90deg);
    width: 12px;
    height: 12px;
    stroke: currentColor;
    flex-shrink: 0;
  }

  .pill-nav__link {
    display: block;
    padding: 20px 40px;
    border-radius: 0;
    border-bottom: none;
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 20px;
    text-align: left;
    position: relative;
  }

  button.pill-nav__link {
    border: none;
    background: none;
    font-family: inherit;
    width: 100%;
  }

  .pill-nav__link::after {
    content: "";
    display: block;
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
  }

  @media (max-width: 700px) {
    .pill-nav__link::after {
      left: 30px;
      right: 30px;
    }
  }

  .pill-nav__link:hover {
    background: rgba(0, 0, 0, 0.05);
  }
}

@media (max-width: 700px) {
  .pill-nav__inner {
    padding: 0 16px;
  }

  .pill-nav__center {
    width: 100%;
  }
}

/* ===================================
   HERO
   =================================== */

.hero {
  position: relative;
  height: 560px;
  width: 100%;
  overflow: visible;
  margin-top: -86px;
  padding-top: 86px;
  background: var(--color-warm-grey-light);
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -650px;
  background-image: url("images/home/hero.jpg");
  background-size: cover;
  background-position: 300px top;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero__shape {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -650px;
  background: var(--color-navy);
  clip-path: polygon(0 0, 70% 0, 0% 100%, 0 100%, 0 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1216px;
  margin: 0 auto;
  margin-top: 40px !important;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  color: var(--color-text-light);
}

.hero__brand {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.hero__logo {
  width: auto;
  height: 120px;
  object-fit: contain;
}

.home-page .hero__logo {
  height: 160px;
}

.hero__brand-text {
  line-height: 1;
}

.hero__brand-text .top {
  font-size: 28px;
  font-weight: 700;
}

.hero__brand-text .bottom {
  font-size: 24px;
  font-weight: 400;
}

.hero__title__page {
  text-transform: uppercase;
  font-size: 46px;
  font-weight: 400;
  margin: 0 0 40px 0;
}

.hero__title {
  max-width: 520px;
  font-size: 30px;
  line-height: 46px;
  font-weight: 200;
  margin: 0;
  font-family: "fm light", serif;
}

/* ===================================
   Services Section
   =================================== */
.services-section {
  position: relative;
  background: white;
  max-width: 1216px;
  margin: 0 auto 40px auto;
  padding: 40px 30px;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  overflow: hidden;
  position: relative;
  --service-media-h: 260px;
  --service-tri-overlap: 120px;
  --service-tri-margin: 10px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.service-card:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.7);
  outline-offset: 3px;
}

.service-card__media {
  height: var(--service-media-h);
  background: #ddd;
  position: relative;
  z-index: 0;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: auto;
  transform: translateZ(0);
}

.service-card__bottom {
  position: relative;
  min-height: 230px;
  background: var(--service-base, var(--color-navy));
}

.service-card::after {
  content: "";
  position: absolute;
  left: var(--service-tri-margin);
  right: var(--service-tri-margin);
  top: calc(var(--service-media-h) - var(--service-tri-overlap));
  bottom: var(--service-tri-margin);
  background: var(--service-accent, var(--color-orange));
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  z-index: 2;
  pointer-events: none;
}

.service-card__content {
  position: absolute;
  left: 26px;
  bottom: 20px;
  right: 26px;
  z-index: 4;
  color: var(--service-text, #fff);
  width: 52%;
}

.service-card__icon {
  width: 90px;
  height: 90px;
  color: var(--service-text, #fff);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__icon--arrow {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  margin: 0 0 5px 0;
  font-weight: 400;
  letter-spacing: 0.04em;
  font-size: 28px;
  line-height: 1.05;
}

.service-card__desc {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  font-family: "fm light", serif;
  max-width: 260px;
}

.service-card--darkText .service-card__arrow {
  color: rgba(0, 0, 0, 0.65);
}

.service-card__content--compact .service-card__desc {
  max-width: 280px;
}

.service-card__kicker {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.service-card__title--xl {
  font-size: 26px;
  letter-spacing: 0.02em;
}

.service-card__icon--arrow .arrow-right {
  transition: transform 0.3s cubic-bezier(0.4, 1.5, 0.5, 1);
}
.service-card:hover .service-card__icon--arrow .arrow-right {
  transform: translateX(20px);
}

.services-cta__link .services-cta__icon img {
  transition: transform 0.3s cubic-bezier(0.4, 1.5, 0.5, 1);
}
.services-cta__link:hover .services-cta__icon img {
  transform: translateX(10px);
}

@media (max-width: 1024px) {
  .service-card {
    --service-media-h: 210px;
  }
  .service-card__bottom {
    min-height: 200px;
  }
  .service-card__icon {
    width: 70px;
    height: 70px;
  }
  .service-card__icon--arrow {
    width: 40px !important;
    height: 40px !important;
  }
}

@media (max-width: 700px) {
  .service-card {
    --service-media-h: 220px;
  }
  .hero__logo {
    height: 90px;
  }
  .hero__brand {
    margin-bottom: 20px;
  }
  .hero__title__page {
    margin-bottom: 20px;
  }
}

/* Services CTA */
.services-cta {
  text-align: center;
}

.services-cta__title {
  font-size: 32px;
  font-weight: 500;
  color: var(--color-black);
  margin: 0 0 24px 0;
  letter-spacing: 0.02em;
}

.services-cta__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  color: var(--color-black);
  text-decoration: none;
  font-weight: 400;
}

.services-cta__text {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.services-cta__text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-black);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.services-cta__link:hover .services-cta__text::after {
  transform: scaleX(1);
  transform-origin: left;
}

.services-cta__icon {
  margin-top: 10px;
  transition: transform 0.3s ease;
  width: 30px;
  height: 30px;
}

.services-cta__icon img {
  transition: transform 0.3s ease;
  width: 30px;
  height: 30px;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .services-section {
    padding: 25px 15px;
  }

  .services-grid {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-bottom: 20px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
  }

  .services-grid::-webkit-scrollbar {
    display: none;
  }

  .service-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    margin: 0 !important;
  }

  .service-card__content {
    min-height: 200px;
  }

  .service-card__desc br {
    display: none;
  }

  .hero__title br {
    display: none;
  }

  .service-card__title {
    font-size: 20px;
  }

  .service-card__description {
    font-size: 14px;
  }

  .services-cta__title {
    font-size: 22px;
  }

  .services-cta__link {
    font-size: 16px;
  }

  /* Slider pagination dots */
  .slider-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0;
    list-style: none;
  }

  .slider-pagination__dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--color-periwinkle);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .slider-pagination__dot.active {
    background: var(--color-periwinkle);
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-periwinkle);
  }

  .slider-pagination__dot:hover {
    background: rgba(112, 139, 240, 0.3);
  }
}

/* Desktop - hide pagination */
@media (min-width: 701px) {
  .slider-pagination {
    display: none;
  }
}

/* ===================================
   NEXT SECTION OVERLAP
   =================================== */

.section-overlap {
  position: relative;
  background: var(--color-warm-grey-light);
  padding: 140px 40px 80px;
}

.section-overlap__inner {
  max-width: 1216px;
  margin: 0 auto;
}

.section-overlap__panel {
  margin-top: -90px;
  background: var(--color-background);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 900px) {
  .hero {
    height: 520px;
  }

  .hero__shape {
    clip-path: polygon(0 0, 110% 0, 0% 100%, 0 100%);
  }

  .hero__bg {
    display: none;
  }

  .hero__content {
    padding: 60px 24px;
  }

  .hero__title {
    font-size: 36px;
    max-width: 75%;
  }
}

@media (max-width: 520px) {
  .hero {
    height: 520px;
  }

  .hero__content {
    padding: 20px 24px 60px;
    margin-top: 10px !important;
  }

  .hero__title {
    font-size: 26px;
    line-height: 38px;
  }

  .services-section {
    margin: 0 10px 40px 10px;
  }
}

/* ===================================
   Footer
   =================================== */
.site-footer {
  background: var(--color-black);
  color: var(--color-text-light);
  padding: 60px 0 40px;
  margin-top: auto;
}

.footer-container {
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 2px solid rgba(255, 255, 255, 1);
  margin-bottom: 30px;
}

.footer-left {
  flex: 0 0 auto;
}

.footer-logo .footer-brand {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0;
  color: var(--color-text-light);
}

.footer-logo .footer-tagline {
  font-size: 26px;
  margin: 0;
}

.footer-right {
  flex: 1;
  display: flex;
  justify-content: center;
  padding-left: 60px;
}

.footer-contact {
  text-align: left;
}

.footer-contact p {
  margin: 0 0 16px 0;
  font-size: 15px;
  line-height: 1.6;
}

.footer-contact .company-name {
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 16px;
  padding-left: 28px;
}

.footer-contact a {
  color: var(--color-text-light);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  opacity: 1;
  font-weight: 400;
  position: relative;
  padding-bottom: 2px;
  margin-bottom: 16px;
}

.footer-contact a:last-child {
  margin-bottom: 0;
}

.footer-contact a svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.4;
  position: relative;
  top: 2px;
}

.footer-contact a span {
  position: relative;
  padding-bottom: 2px;
  display: inline-block;
}

.footer-contact a span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-text-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer-contact a:hover span::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-contact .address::before,
.footer-contact .phone::before,
.footer-contact .email::before {
  display: none;
}

.footer-bottom {
  padding-top: 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-right-group {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.footer-logo-small {
  width: auto;
  height: 42px;
  object-fit: contain;
  margin-right: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 14px;
  opacity: 1;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-text-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-social a {
  color: var(--color-text-light);
  opacity: 1;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
}

.footer-social a svg {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  min-height: 36px;
}

.footer-social a:hover {
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-contact a {
    text-align: left;
    justify-content: flex-start;
  }

  .footer-contact a::after {
    transform: scaleX(0);
    transform-origin: right;
  }

  .footer-contact a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .footer-bottom-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-right-group {
    gap: 20px;
    align-items: flex-start;
  }
}

/* ===========================
   Visitor Management Modal
   =========================== */

.visitor-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.visitor-modal.active {
  opacity: 1;
  visibility: visible;
}

.visitor-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.visitor-modal__container {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  background: #000;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.visitor-modal.active .visitor-modal__container {
  transform: scale(1);
}

.visitor-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.visitor-modal__title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.5px;
}

.visitor-modal__close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.visitor-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.visitor-modal__close:active {
  transform: rotate(90deg) scale(0.95);
}

.visitor-modal__content {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

.visitor-modal__content::-webkit-scrollbar {
  width: 8px;
}

.visitor-modal__content::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 4px;
}

.visitor-modal__content::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.visitor-modal__content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.visitor-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 24px;
}

.visitor-modal__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 64px;
  position: relative;
}

.visitor-modal__item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.visitor-modal__item:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.visitor-modal__item:hover {
  background: #000;
}

.visitor-modal__item span {
  flex: 1;
  margin-right: 12px;
}

.visitor-modal__item svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.visitor-modal__item:hover svg {
  opacity: 1;
  transform: translateX(4px);
}

/* Button styling for the service card */
button.service-card {
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  background: none;
  width: 100%;
}

button.service-card:focus-visible {
  outline: 2px solid var(--color-periwinkle);
  outline-offset: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .visitor-modal__container {
    width: 95%;
    max-height: 90vh;
    border-radius: 12px;
  }

  .visitor-modal__header {
    padding: 20px 20px;
  }

  .visitor-modal__title {
    font-size: 20px;
  }

  .visitor-modal__content {
    padding: 20px;
  }

  .visitor-modal__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .visitor-modal__item {
    padding: 16px 20px;
    font-size: 15px;
  }

  .service-card__icon__logo {
    margin-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .visitor-modal__container {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .visitor-modal__header {
    padding: 16px;
  }

  .visitor-modal__title {
    font-size: 18px;
  }

  .visitor-modal__content {
    padding: 16px;
  }

  .visitor-modal__item {
    padding: 14px 16px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    padding: 0 20px;
  }

  .site-footer {
    padding: 40px 0 30px;
  }

  .footer-logo .footer-brand {
    font-size: 24px;
  }

  .footer-links {
    margin: 0;
    gap: 12px;
  }

  .footer-social {
    gap: 16px;
    margin: 0;
  }
}

.service-card[href="myo.html"] .service-card__icon .arrow-right {
  filter: brightness(0) invert(1);
}

.service-card__icon .arrow-right {
  width: 30px;
  height: 30px;
  display: inline-block;
}

/* Documents page override */
body.documents-page .services-section .service-card__content {
  width: 80% !important;
}

body.documents-page .services-section .service-card__title {
  font-size: 26px !important;
  font-weight: 500 !important;
}

body.documents-page .hero__bg {
  background-image: url("images/documents/hero.jpg");
  background-size: cover;
  background-position: 0 -400px;
  background-repeat: no-repeat;
}

@media (max-width: 1400px) {
  body.documents-page .hero__bg {
    background-position: -300px -400px;
  }
}

body.documents-page .services-section .service-card__content {
  width: 70% !important;
}
body.documents-page .services-section .service-card__title {
  font-size: 26px !important;
}
body.documents-page .services-section .service-card__kicker {
  font-weight: 500 !important;
}

/* Portals page override */
body.portals-page .hero__bg {
  background-image: url("images/portals/hero.jpg");
  background-size: cover;
  background-position: 500px -400px;
  background-repeat: no-repeat;
}

@media (max-width: 1400px) {
  body.portals-page .hero__bg {
    background-position: 100px -400px;
  }
}

body.portals-page .hero__shape {
  background: var(--color-orange) !important;
}

body.portals-page .service-card__media {
  background: var(--service-base) !important;
}

body.portals-page .service-card::after {
  display: none !important;
}

body.portals-page .service-card__content {
  bottom: -10px !important;
  width: 85% !important;
}

body.portals-page .service-card__icon {
  width: 120px !important;
  height: 120px !important;
  margin-bottom: 20px !important;
}

body.portals-page .service-card__title {
  font-size: 30px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

body.portals-page .service-card__desc {
  font-family: "Landsec Brown", Arial, sans-serif !important;
  font-size: 24px !important;
  margin-top: 20px !important;
}

body.portals-page .service-card__icon--arrow {
  width: 40px !important;
  height: 40px !important;
  margin-left: auto;
}

.service-card__icon__logo {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  height: 60px;
  filter: brightness(0) invert(1) !important;
}

/* Assistance page override */
body.assistance-page .hero__bg {
  background-image: url("images/assistance/hero.jpg");
  background-size: 1306px auto;
  background-position: right -100px top 0;
  background-repeat: no-repeat;
}

body.assistance-page .hero__title__page {
  color: var(--color-black) !important;
}

body.assistance-page .hero__title {
  color: var(--color-black) !important;
}

body.assistance-page .hero__shape {
  background: var(--color-dark-yellow) !important;
}

body.assistance-page .hero__brand img,
body.assistance-page .hero__content img {
  filter: brightness(0) saturate(100%) !important;
}

body.assistance-page .services-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

body.assistance-page .service-card {
  --service-media-h: 360px !important;
  --service-tri-overlap: 180px !important;
  --service-tri-margin: 20px !important;
}

body.assistance-page .service-card__content {
  left: 40px !important;
  bottom: 40px !important;
}

body.assistance-page .service-card__bottom {
  min-height: 330px !important;
}

.service-card__assist {
  width: 300px;
}

body.assistance-page .service-card__title {
  margin: 0 0 50px 0 !important;
  letter-spacing: 0.02em !important;
  font-size: 36px !important;
  line-height: 1.2;
}

body.assistance-page .service-card__icon--arrow {
  width: 50px !important;
  height: 50px !important;
  margin-bottom: 20px !important;
}

body.assistance-page .service-card__icon--arrow img {
  width: 50px !important;
  height: 50px !important;
}

@media (max-width: 900px) {
  body.assistance-page .services-grid {
    flex-direction: column;
    display: flex;
  }

  body.assistance-page .hero__title {
    font-size: 26px;
  }

  body.assistance-page .service-card {
    --service-media-h: 250px !important;
    --service-tri-margin: 15px !important;
    --service-tri-overlap: 150px !important;
  }

  body.assistance-page .service-card__bottom {
    min-height: 220px !important;
  }

  body.assistance-page .service-card__title {
    font-size: 28px !important;
    margin-bottom: 20px !important;
  }

  body.assistance-page .service-card__icon--arrow {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 20px !important;
  }

  body.assistance-page .service-card__icon--arrow img {
    width: 40px !important;
    height: 40px !important;
  }

  body.assistance-page .service-card__content {
    left: 30px !important;
    bottom: 20px !important;
  }

  .service-card__assist {
    width: 200px;
  }
}

@media (max-width: 700px) {
  body.assistance-page .services-grid {
    display: flex !important;
    flex-direction: column !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    gap: 20px !important;
  }

  body.assistance-page .service-card {
    flex: 1 1 auto !important;
    scroll-snap-align: none !important;
  }

  body.assistance-page .slider-pagination {
    display: none !important;
  }
}
