:root {
  --cig-green: #2C4C3B;
  --cig-green-deep: #173228;
  --white: #FFFFFF;
  --cool-neutral: #F3F5F4;
  --graphite: #171A18;
  --secondary-text: #68716D;
  --border: #DDE2DF;

  --header-height: 72px;
  --page-gutter: 36px;
  --content-inset: max(
    var(--page-gutter),
    calc(50vw - 720px + var(--page-gutter))
  );

  --radius-squircle: 28px;
  --radius-pill: 999px;

  --shadow-surface:
    0 20px 48px rgba(23, 40, 36, 0.16),
    0 6px 16px rgba(23, 40, 36, 0.08);
  --shadow-button:
    0 4px 12px rgba(23, 50, 40, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
  outline: 2px solid var(--cig-green);
  outline-offset: 2px;
}

/* Header
   -------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 36px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.brand-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.site-header.is-scrolled .brand-logo {
  filter: brightness(0);
}

.brand-wordmark {
  font-family: 'Lato', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.92;
}

.site-header.is-scrolled .brand {
  color: var(--graphite);
}

/* Desktop navigation */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 24px;
  min-width: 0;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
  transition: opacity 0.2s ease, color 0.3s ease;
}

.site-header.is-scrolled .main-nav a {
  color: var(--graphite);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  opacity: 0.8;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

.back-to-cig {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled .back-to-cig {
  color: var(--secondary-text);
}

.back-to-cig:hover,
.back-to-cig:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.site-header.is-scrolled .back-to-cig:hover,
.site-header.is-scrolled .back-to-cig:focus-visible {
  color: var(--cig-green);
  background: var(--cool-neutral);
}

.action-link {
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.action-link--subtle {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.site-header.is-scrolled .action-link--subtle {
  color: var(--graphite);
  border-color: var(--border);
  background: var(--cool-neutral);
}

.action-link--subtle:hover,
.action-link--subtle:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
}

.site-header.is-scrolled .action-link--subtle:hover,
.site-header.is-scrolled .action-link--subtle:focus-visible {
  background: var(--border);
  border-color: var(--secondary-text);
}

.action-link--primary {
  color: var(--white);
  background: var(--cig-green);
  border: 1px solid var(--cig-green);
  box-shadow: var(--shadow-button);
}

.action-link--primary:hover,
.action-link--primary:focus-visible {
  background: var(--cig-green-deep);
  border-color: var(--cig-green-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(44, 76, 59, 0.32);
}

.action-link--primary:active {
  transform: translateY(0);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: var(--white);
  transition: color 0.3s ease;
}

.site-header.is-scrolled .mobile-menu-toggle {
  color: var(--graphite);
}

.menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .menu-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile menu panel */
.mobile-menu {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px 24px 28px;
  box-shadow: 0 20px 40px rgba(23, 40, 36, 0.12);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  color: var(--graphite);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: var(--cig-green);
  padding-left: 8px;
}

.mobile-nav .mobile-primary {
  color: var(--white);
  background: var(--cig-green);
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  text-align: center;
  margin-top: 10px;
  border-bottom: none;
  font-weight: 600;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav .mobile-primary:hover,
.mobile-nav .mobile-primary:focus-visible {
  background: var(--cig-green-deep);
  padding-left: 20px;
}

.back-to-cig-mobile {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--secondary-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-to-cig-mobile:hover,
.back-to-cig-mobile:focus-visible {
  color: var(--cig-green);
}

/* Hero
   -------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--cig-green-deep);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Layered readability treatment:
   1. top scrim behind the fixed navigation
   2. elliptical scrim localized behind the central copy block
   3. gentle overall darkening, slightly stronger at the bottom edge */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(23, 40, 36, 0.55) 0%, rgba(23, 40, 36, 0.18) 20%, rgba(23, 40, 36, 0) 36%),
    radial-gradient(ellipse 86% 62% at 50% 44%, rgba(23, 40, 36, 0.42) 0%, rgba(23, 40, 36, 0.16) 56%, rgba(23, 40, 36, 0) 78%),
    linear-gradient(180deg, rgba(23, 40, 36, 0.16) 0%, rgba(23, 40, 36, 0.12) 55%, rgba(23, 40, 36, 0.44) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 20px) 28px 36px;
  text-align: center;
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.95;
  text-shadow: 0 1px 10px rgba(23, 40, 36, 0.5);
}

.headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.75rem, 4vw, 4.5rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 auto 14px;
  max-width: 16em;
  letter-spacing: -0.02em;
  text-shadow:
    0 2px 22px rgba(23, 40, 36, 0.45),
    0 1px 4px rgba(23, 40, 36, 0.3);
}

.supporting-text {
  font-size: clamp(0.9375rem, 1.3vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
  max-width: 540px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 10px rgba(23, 40, 36, 0.45);
}

/* Search surface — compact horizontal squircle
   -------------------------------------------------- */
.search-surface {
  width: 100%;
  max-width: 840px;
  margin: 0 auto 18px;
  padding: 15px 16px 15px 22px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-squircle);
  box-shadow: var(--shadow-surface);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-surface:focus-within {
  transform: translateY(-1px);
  box-shadow:
    0 24px 56px rgba(23, 40, 36, 0.2),
    0 8px 20px rgba(23, 40, 36, 0.1);
}

.search-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary-text);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--secondary-text);
}

.search-input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  max-height: 96px;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: var(--graphite);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  resize: none;
  outline: none;
  overflow: hidden;
}

.search-input::placeholder {
  color: var(--secondary-text);
  opacity: 0.7;
}

.search-button {
  flex-shrink: 0;
  padding: 13px 26px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--cig-green);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.search-button:hover,
.search-button:focus-visible {
  background: var(--cig-green-deep);
  box-shadow: 0 6px 18px rgba(44, 76, 59, 0.35);
}

.search-button:active {
  transform: scale(0.98);
}

.search-button.is-loading {
  pointer-events: none;
  color: transparent;
}

.button-loader {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
}

.search-button.is-loading .button-loader {
  display: flex;
}

.button-loader::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Suggestion pills — compact supporting row
   -------------------------------------------------- */
.suggestion-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill:hover,
.pill:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.68);
  transform: translateY(-1px);
}

.pill:active,
.pill.is-active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.28);
}

/* Secondary action
   -------------------------------------------------- */
.secondary-action {
  display: inline-block;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s ease;
  text-shadow: 0 1px 8px rgba(23, 40, 36, 0.45);
}

.secondary-action span {
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  color: var(--white);
}

.secondary-action:hover span,
.secondary-action:focus-visible span {
  border-color: rgba(255, 255, 255, 0.85);
}

/* Responsive
   -------------------------------------------------- */

/* Mid-width desktops: tighten the header so nothing wraps */
@media (max-width: 1399px) {
  .header-inner {
    padding: 0 24px;
    gap: 16px;
  }

  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: 0.8125rem;
  }

  .action-link {
    padding: 8px 14px;
    font-size: 0.8125rem;
  }
}

/* Below this width the desktop nav cannot stay on one line — collapse */
@media (max-width: 1199px) {
  :root {
    --page-gutter: 24px;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

/* Short desktop viewports: keep the hero inside the screen */
@media (min-width: 1200px) and (max-height: 700px) {
  .hero-content {
    padding: calc(var(--header-height) + 12px) 28px 24px;
  }

  .headline {
    font-size: clamp(2.25rem, 5.6vh, 3.25rem);
    margin-bottom: 10px;
  }

  .supporting-text {
    margin-bottom: 18px;
  }

  .search-surface {
    margin-bottom: 14px;
  }

  .suggestion-pills {
    margin-bottom: 14px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --page-gutter: 18px;
  }

  .hero-content {
    padding: calc(var(--header-height) + 12px) 18px 28px;
  }

  .eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    margin-bottom: 10px;
  }

  .headline {
    font-size: clamp(1.875rem, 7.5vw, 2.5rem);
    line-height: 1.14;
    margin-bottom: 12px;
  }

  .supporting-text {
    font-size: 0.9375rem;
    margin-bottom: 20px;
  }

  .search-surface {
    padding: 13px 14px 14px 16px;
    border-radius: 22px;
    margin-bottom: 16px;
  }

  .search-label {
    margin-bottom: 4px;
  }

  .search-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .search-icon {
    margin-top: 12px;
    align-self: flex-start;
  }

  .search-input {
    flex: 1 1 calc(100% - 42px);
    min-height: 44px;
    max-height: 110px;
    padding: 9px 0;
    font-size: 0.9375rem;
  }

  .search-button {
    width: 100%;
    padding: 14px 20px;
    margin-top: 2px;
  }

  .suggestion-pills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 8px;
    padding: 2px 18px 8px;
    margin: 0 -18px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .suggestion-pills::-webkit-scrollbar {
    display: none;
  }

  .pill {
    flex-shrink: 0;
    padding: 7px 13px;
    font-size: 0.75rem;
  }

  .secondary-action {
    font-size: 0.8125rem;
  }
}

@media (max-width: 390px) {
  .brand-logo {
    height: 24px;
  }

  .brand-wordmark {
    font-size: 0.8125rem;
  }

  .hero-content {
    padding: calc(var(--header-height) + 8px) 16px 24px;
  }

  .headline {
    font-size: 1.75rem;
  }

  .supporting-text {
    font-size: 0.875rem;
  }

  .search-input {
    font-size: 0.875rem;
  }

  .suggestion-pills {
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
  }
}

/* Homes Available Now carousel section
   -------------------------------------------------- */
.homes-section {
  background: var(--white);
  padding: 64px 0 72px;
  position: relative;
}

.section-header {
  max-width: 1440px;
  margin: 0 auto 32px;
  padding: 0 var(--page-gutter);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-header-text {
  max-width: 520px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cig-green);
  margin-bottom: 10px;
}

.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--graphite);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.section-supporting {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--secondary-text);
  margin: 0;
}

.section-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--graphite);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-control svg {
  width: 18px;
  height: 18px;
}

.carousel-control:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-control:hover:not(:disabled),
.carousel-control:focus-visible:not(:disabled) {
  background: var(--cool-neutral);
  border-color: var(--cig-green);
  color: var(--cig-green);
  transform: translateY(-1px);
}

.carousel-control:active:not(:disabled) {
  transform: translateY(0);
}

.view-all-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--graphite);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.view-all-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.view-all-link:hover,
.view-all-link:focus-visible {
  color: var(--cig-green);
}

.view-all-link:hover span,
.view-all-link:focus-visible span {
  transform: translateX(3px);
}

/* Carousel rail */
.carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-padding-inline-start: var(--content-inset);
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 18px;
  padding-left: var(--content-inset);
  padding-right: var(--page-gutter);
  width: max-content;
}

.carousel-empty {
  padding: 32px var(--page-gutter) 32px var(--content-inset);
  color: var(--secondary-text);
  font-size: 0.9375rem;
}

/* Property cards */
.property-card {
  flex: 0 0 auto;
  width: clamp(270px, 28vw, 300px);
  display: flex;
  flex-direction: column;
  position: relative;
  scroll-snap-align: start;
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cool-neutral);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .card-media img,
.property-card:focus-within .card-media img {
  transform: scale(1.03);
}

.card-status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(23, 40, 36, 0.82);
  color: var(--white);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.card-status[data-status="for-rent"] {
  background: var(--cig-green);
}

.card-view-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 40, 36, 0.28);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.property-card:hover .card-view-overlay,
.property-card:focus-within .card-view-overlay {
  opacity: 1;
}

.favourite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--graphite);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.favourite-btn svg {
  width: 17px;
  height: 17px;
}

.favourite-btn:hover,
.favourite-btn:focus-visible {
  background: var(--white);
  color: var(--cig-green);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}

.favourite-btn.is-favourite {
  background: var(--cig-green);
  border-color: var(--cig-green);
  color: var(--white);
}

.favourite-btn.is-favourite svg {
  fill: currentColor;
}

.card-body {
  padding-top: 14px;
}

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--graphite);
  margin: 0 0 4px;
  display: inline-block;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-title:hover,
.card-title:focus-visible {
  color: var(--cig-green);
}

.card-location {
  font-size: 0.8125rem;
  color: var(--secondary-text);
  margin: 0 0 8px;
}

.card-meta {
  font-size: 0.8125rem;
  color: var(--secondary-text);
  margin: 0 0 10px;
}

.card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--graphite);
  margin: 0;
}

/* Carousel responsive */
@media (max-width: 1199px) {
  .section-header {
    padding: 0 var(--page-gutter);
  }

  .carousel-track {
    padding-left: var(--content-inset);
    padding-right: var(--page-gutter);
  }
}

@media (max-width: 768px) {
  .homes-section {
    padding: 40px 0 48px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 0 var(--page-gutter);
  }

  .section-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .carousel-controls {
    display: none;
  }

  .carousel-track {
    padding-left: var(--content-inset);
    padding-right: var(--page-gutter);
    gap: 14px;
  }

  .property-card {
    width: clamp(270px, 84vw, 320px);
  }

  .card-media {
    border-radius: 18px;
  }
}

@media (max-width: 390px) {
  .section-heading {
    font-size: 1.5rem;
  }

  .section-supporting {
    font-size: 0.875rem;
  }

  .property-card {
    width: clamp(260px, 84vw, 300px);
  }
}

/* Home Services / More Than a Property
   -------------------------------------------------- */
.services-section {
  background: var(--cool-neutral);
  padding: 80px 0 96px;
}

.services-section .section-header {
  margin-bottom: 48px;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.service-card:hover,
.service-card:focus-within {
  border-color: rgba(44, 76, 59, 0.35);
  box-shadow: 0 10px 28px rgba(23, 40, 36, 0.07);
  transform: translateY(-2px);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(243, 245, 244, 0.85);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.service-card:hover .service-icon-wrap,
.service-card:focus-within .service-icon-wrap {
  background: rgba(44, 76, 59, 0.08);
  border-color: rgba(44, 76, 59, 0.22);
}

.service-icon {
  width: 26px;
  height: 26px;
  color: var(--cig-green);
  transition: color 0.25s ease;
}

.service-card:hover .service-icon,
.service-card:focus-within .service-icon {
  color: var(--cig-green-deep);
}

.service-name {
  font-family: 'Lato', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--graphite);
  margin: 0 0 10px;
}

.service-description {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--secondary-text);
  margin: 0 0 24px;
  flex-grow: 1;
}

.service-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--cig-green);
  font-family: 'Lato', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.service-cta:hover,
.service-cta:focus-visible {
  background: var(--cig-green);
  border-color: var(--cig-green);
  color: var(--white);
  transform: translateY(-1px);
}

.service-cta:active {
  transform: translateY(0);
}

.service-cta:disabled {
  opacity: 0.8;
  cursor: wait;
}

/* Services responsive */
@media (max-width: 1024px) {
  .services-section {
    padding: 64px 0 80px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 24px;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .services-section {
    padding: 56px 0 72px;
  }

  .services-section .section-header {
    margin-bottom: 32px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 18px;
    gap: 14px;
  }

  .service-card {
    padding: 22px;
    border-radius: 20px;
  }

  .service-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    margin-bottom: 18px;
  }

  .service-icon {
    width: 22px;
    height: 22px;
  }

  .service-name {
    font-size: 1rem;
  }

  .service-description {
    font-size: 0.875rem;
    margin-bottom: 18px;
  }

  .service-cta {
    padding: 9px 14px;
    font-size: 0.75rem;
  }
}

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

/* Home Packages — interactive package selector
   -------------------------------------------------- */
.packages-section {
  background: var(--white);
  padding: 80px 0 96px;
}

.packages-section .section-header {
  margin-bottom: 40px;
}

.packages-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 36px;
}

/* Segmented pill selector */
.package-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.package-pill {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--graphite);
  font-family: 'Lato', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.package-pill:hover:not(.is-active),
.package-pill:focus-visible:not(.is-active) {
  background: var(--cool-neutral);
  border-color: var(--cig-green);
  color: var(--cig-green);
}

.package-pill:active:not(.is-active) {
  transform: translateY(0);
}

.package-pill.is-active {
  background: var(--cig-green);
  color: var(--white);
  border-color: var(--cig-green);
  box-shadow: 0 4px 14px rgba(44, 76, 59, 0.25);
}

/* Large feature panel */
.package-panel {
  border-radius: var(--radius-squircle);
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(23, 40, 36, 0.06);
}

.package-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  min-height: 480px;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.package-panel-inner.is-updating {
  opacity: 0.55;
  transform: translateY(6px);
}

.package-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.package-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cig-green);
  margin-bottom: 14px;
}

.package-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--graphite);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.package-description {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--secondary-text);
  margin: 0 0 28px;
  max-width: 44ch;
}

.package-checklist {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.package-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--graphite);
}

.check-icon {
  width: 20px;
  height: 20px;
  color: var(--cig-green);
  flex-shrink: 0;
}

.package-cta {
  appearance: none;
  border: none;
  background: var(--cig-green-deep);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-button);
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.package-cta:hover,
.package-cta:focus-visible {
  background: var(--cig-green);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(44, 76, 59, 0.32);
}

.package-cta:active {
  transform: translateY(0);
}

.package-cta:disabled {
  opacity: 0.85;
  cursor: wait;
}

.package-media {
  position: relative;
  min-height: 320px;
  background: var(--cool-neutral);
  overflow: hidden;
}

.package-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition:
    opacity 0.4s ease,
    transform 0.6s ease;
}

/* Packages responsive */
@media (max-width: 1024px) {
  .packages-section {
    padding: 64px 0 80px;
  }

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

  .package-panel-inner {
    grid-template-columns: 1fr;
  }

  .package-content {
    padding: 36px;
    justify-content: flex-start;
  }

  .package-media {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .packages-section {
    padding: 56px 0 72px;
  }

  .packages-section .section-header {
    margin-bottom: 28px;
  }

  .packages-container {
    padding: 0 18px;
  }

  .package-selector {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 10px;
    margin: 0 -18px 32px;
    padding: 2px 18px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .package-selector::-webkit-scrollbar {
    display: none;
  }

  .package-pill {
    padding: 10px 18px;
    font-size: 0.875rem;
  }

  .package-content {
    padding: 28px 22px;
  }

  .package-title {
    font-size: 1.625rem;
  }

  .package-description {
    font-size: 0.9375rem;
    margin-bottom: 22px;
  }

  .package-checklist {
    margin-bottom: 28px;
    gap: 10px;
  }

  .package-checklist li {
    font-size: 0.875rem;
  }

  .package-media {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .package-panel-inner,
  .package-media img {
    transition: none;
  }
}

/* Explore Nairobi / Find Your Neighbourhood
   -------------------------------------------------- */
.neighbourhoods-section {
  background: var(--cool-neutral);
  padding: 80px 0 96px;
}

.neighbourhoods-section .section-header {
  margin-bottom: 40px;
}

.neighbourhoods-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 36px;
}

/* Asymmetric image-led mosaic */
.neighbourhoods-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 270px 270px 300px;
  gap: 24px;
}

.neighbourhood-tile {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
}

.neighbourhood-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: var(--white);
}

.neighbourhood-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.neighbourhood-tile:hover .neighbourhood-link img,
.neighbourhood-tile:focus-within .neighbourhood-link img {
  transform: scale(1.03);
}

.neighbourhood-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 40, 36, 0) 35%, rgba(23, 40, 36, 0.42) 70%, rgba(23, 40, 36, 0.72) 100%);
  transition: background 0.35s ease;
}

.neighbourhood-tile:hover .neighbourhood-overlay,
.neighbourhood-tile:focus-within .neighbourhood-overlay {
  background:
    linear-gradient(180deg, rgba(23, 40, 36, 0) 25%, rgba(23, 40, 36, 0.52) 65%, rgba(23, 40, 36, 0.82) 100%);
}

.neighbourhood-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-shadow: 0 1px 8px rgba(23, 40, 36, 0.45);
}

.neighbourhood-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.neighbourhood-descriptor {
  font-family: 'Lato', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.92;
  margin: 0 0 6px;
}

.neighbourhood-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Lato', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0.9;
  transform: translateY(2px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.neighbourhood-cta span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.neighbourhood-tile:hover .neighbourhood-cta,
.neighbourhood-tile:focus-within .neighbourhood-cta {
  opacity: 1;
  transform: translateY(0);
}

.neighbourhood-tile:hover .neighbourhood-cta span,
.neighbourhood-tile:focus-within .neighbourhood-cta span {
  transform: translateX(3px);
}

/* Desktop asymmetric placement */
.neighbourhood-tile--kilimani {
  grid-column: 1 / 6;
  grid-row: 1 / 3;
}

.neighbourhood-tile--kilimani .neighbourhood-name {
  font-size: 2.5rem;
}

.neighbourhood-tile--kilimani .neighbourhood-link img {
  object-position: center center;
}

.neighbourhood-tile--westlands {
  grid-column: 6 / 13;
  grid-row: 1 / 2;
}

.neighbourhood-tile--westlands .neighbourhood-name {
  font-size: 1.75rem;
}

.neighbourhood-tile--westlands .neighbourhood-link img {
  object-position: center 55%;
}

.neighbourhood-tile--kileleshwa {
  grid-column: 6 / 9;
  grid-row: 2 / 3;
}

.neighbourhood-tile--kileleshwa .neighbourhood-name {
  font-size: 1.25rem;
}

.neighbourhood-tile--kileleshwa .neighbourhood-descriptor {
  font-size: 0.75rem;
}

.neighbourhood-tile--kileleshwa .neighbourhood-cta {
  font-size: 0.75rem;
}

.neighbourhood-tile--kileleshwa .neighbourhood-text {
  padding: 18px 16px 18px;
}

.neighbourhood-tile--kileleshwa .neighbourhood-link img {
  object-position: center center;
}

.neighbourhood-tile--riverside {
  grid-column: 9 / 13;
  grid-row: 2 / 3;
}

.neighbourhood-tile--riverside .neighbourhood-name {
  font-size: 1.5rem;
}

.neighbourhood-tile--riverside .neighbourhood-link img {
  object-position: center 55%;
}

.neighbourhood-tile--lavington {
  grid-column: 1 / 8;
  grid-row: 3 / 4;
}

.neighbourhood-tile--lavington .neighbourhood-name {
  font-size: 1.75rem;
}

.neighbourhood-tile--lavington .neighbourhood-link img {
  object-position: center 55%;
}

.neighbourhood-tile--karen {
  grid-column: 8 / 13;
  grid-row: 3 / 4;
}

.neighbourhood-tile--karen .neighbourhood-name {
  font-size: 1.5rem;
}

.neighbourhood-tile--karen .neighbourhood-link img {
  object-position: center center;
}

/* Mobile carousel controls — hidden on desktop */
.neighbourhood-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.neighbourhood-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--graphite);
  cursor: pointer;
  transition: all 0.2s ease;
}

.neighbourhood-control svg {
  width: 18px;
  height: 18px;
}

.neighbourhood-control:hover:not(:disabled),
.neighbourhood-control:focus-visible:not(:disabled) {
  background: var(--cig-green);
  border-color: var(--cig-green);
  color: var(--white);
}

/* Neighbourhoods responsive */
@media (max-width: 1024px) {
  .neighbourhoods-section {
    padding: 64px 0 80px;
  }

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

  .neighbourhoods-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 340px 240px 240px 220px;
    gap: 16px;
  }

  .neighbourhood-tile,
  .neighbourhood-tile--kilimani,
  .neighbourhood-tile--kileleshwa,
  .neighbourhood-tile--lavington,
  .neighbourhood-tile--riverside,
  .neighbourhood-tile--westlands,
  .neighbourhood-tile--karen {
    grid-column: auto;
    grid-row: auto;
  }

  .neighbourhood-tile--kilimani {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  .neighbourhood-tile--kilimani .neighbourhood-name {
    font-size: 2rem;
  }

  .neighbourhood-tile--westlands {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .neighbourhood-tile--lavington {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .neighbourhood-tile--riverside {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }

  .neighbourhood-tile--karen {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }

  .neighbourhood-tile--kileleshwa {
    grid-column: 1 / 3;
    grid-row: 4 / 5;
  }

  .neighbourhood-tile--kileleshwa .neighbourhood-text {
    padding: 22px 24px 24px;
  }

  .neighbourhood-tile--kileleshwa .neighbourhood-name {
    font-size: 1.375rem;
  }

  .neighbourhood-name {
    font-size: 1.375rem;
  }
}

@media (max-width: 640px) {
  .neighbourhoods-section {
    padding: 56px 0 72px;
  }

  .neighbourhoods-section .section-header {
    margin-bottom: 28px;
  }

  .neighbourhoods-container {
    padding: 0 var(--page-gutter);
  }

  .neighbourhoods-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    scroll-padding-inline-start: var(--content-inset);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 var(--page-gutter) 0 var(--content-inset);
    margin: 0 calc(-1 * var(--page-gutter));
  }

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

  .neighbourhood-tile,
  .neighbourhood-tile--kilimani,
  .neighbourhood-tile--kileleshwa,
  .neighbourhood-tile--lavington,
  .neighbourhood-tile--riverside,
  .neighbourhood-tile--westlands,
  .neighbourhood-tile--karen {
    flex: 0 0 auto;
    width: 82vw;
    height: 360px;
    scroll-snap-align: start;
    border-radius: 20px;
  }

  .neighbourhood-text {
    padding: 20px 22px 22px;
  }

  .neighbourhood-name {
    font-size: 1.5rem;
  }

  .neighbourhood-controls {
    display: flex;
  }
}

/* Home Ecosystem — endless logo marquee
   -------------------------------------------------- */
.ecosystem-section {
  background: var(--white);
  padding: 80px 0 96px;
}

.ecosystem-section .section-header {
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  text-align: center;
}

.ecosystem-section .section-header-text {
  max-width: 720px;
  margin: 0 auto;
}

.ecosystem-section .section-supporting {
  max-width: 660px;
  margin: 0 auto;
}

.marquee-row {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  will-change: transform;
}

.marquee-row--ltr .marquee-track {
  animation: marquee-ltr 40s linear infinite;
}

.marquee-row:hover .marquee-track,
.marquee-row:focus-within .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-ltr {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-list {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0 24px 0 0;
  list-style: none;
  flex-shrink: 0;
}

.marquee-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  width: 176px;
  padding: 0 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.marquee-item img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.72);
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}

.marquee-item--safaricom {
  width: 214px;
  padding-inline: 18px;
}

.ecosystem-logo--safaricom {
  max-width: 178px;
  max-height: 52px;
}

.marquee-item--hotpoint {
  width: 190px;
}

.ecosystem-logo--hotpoint {
  max-width: 150px;
  max-height: 34px;
}

.marquee-item--nellions,
.marquee-item--furniture {
  width: 146px;
}

.ecosystem-logo--nellions,
.ecosystem-logo--furniture {
  max-width: 48px;
  max-height: 48px;
}

.marquee-item--jubilee {
  width: 184px;
}

.ecosystem-logo--jubilee {
  max-width: 142px;
  max-height: 42px;
}

.marquee-item--zuku {
  width: 176px;
}

.ecosystem-logo--zuku {
  max-width: 138px;
  max-height: 38px;
}

.marquee-item--cic {
  width: 158px;
}

.ecosystem-logo--cic {
  max-width: 110px;
  max-height: 46px;
}

.marquee-item--g4s {
  width: 150px;
}

.ecosystem-logo--g4s {
  max-width: 100px;
  max-height: 34px;
}

.marquee-item:hover img,
.marquee-item:focus-within img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.02);
}

.marquee-item:hover,
.marquee-item:focus-within {
  border-color: rgba(44, 76, 59, 0.35);
  box-shadow: 0 6px 18px rgba(23, 40, 36, 0.06);
}

/* Ecosystem responsive */
@media (max-width: 768px) {
  .ecosystem-section {
    padding: 64px 0 80px;
  }

  .marquee-item {
    height: 72px;
    width: 156px;
    padding: 0 20px;
    border-radius: 16px;
  }

  .marquee-item--safaricom {
    width: 190px;
  }

  .marquee-item--hotpoint,
  .marquee-item--jubilee {
    width: 170px;
  }

  .marquee-item--nellions,
  .marquee-item--furniture,
  .marquee-item--cic,
  .marquee-item--g4s {
    width: 138px;
  }

  .marquee-list {
    gap: 18px;
    padding-right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-row--ltr .marquee-track {
    animation: none;
    transform: none;
  }

  .marquee-row {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .marquee-list[aria-hidden="true"] {
    display: none;
  }

  .marquee-row::-webkit-scrollbar {
    display: none;
  }
}

/* How CIG HOME Works — connected journey
   -------------------------------------------------- */
.journey-section {
  background: var(--cig-green-deep);
  color: var(--white);
  padding: 88px 0 104px;
}

.journey-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 36px;
}

.journey-header {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.journey-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.journey-heading {
  margin: 0 0 10px;
  color: var(--white);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.journey-supporting {
  max-width: 540px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-step {
  position: relative;
  min-width: 0;
  padding: 0 14px;
  text-align: center;
}

.journey-step:not(:last-child)::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: 50px;
  left: calc(50% + 24px);
  right: calc(-50% + 24px);
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
  transform-origin: left center;
  transition: background-color 0.3s ease, transform 1s ease;
}

.journey-section.is-reveal-ready .journey-step:not(:last-child)::after {
  transform: scaleX(0);
}

.journey-section.is-revealed .journey-step:not(:last-child)::after {
  transform: scaleX(1);
}

.journey-section.is-revealed .journey-step:nth-child(2)::after {
  transition-delay: 0.08s;
}

.journey-section.is-revealed .journey-step:nth-child(3)::after {
  transition-delay: 0.16s;
}

.journey-section.is-revealed .journey-step:nth-child(4)::after {
  transition-delay: 0.24s;
}

.journey-section.is-revealed .journey-step:nth-child(5)::after {
  transition-delay: 0.32s;
}

.journey-number {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  transition: color 0.25s ease;
}

.journey-marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.journey-icon {
  display: block;
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.82;
  transition: opacity 0.25s ease;
}

.journey-copy {
  margin-top: 18px;
}

.journey-title {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Lato', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  transition: color 0.25s ease;
}

.journey-description {
  max-width: 180px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8125rem;
  line-height: 1.55;
  transition: color 0.25s ease;
}

.journey-step:hover::after {
  background: rgba(255, 255, 255, 0.4);
}

.journey-step:hover .journey-number,
.journey-step:hover .journey-title {
  color: var(--white);
}

.journey-step:hover .journey-marker {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.18);
}

.journey-step:hover .journey-icon {
  opacity: 1;
}

.journey-step:hover .journey-description {
  color: rgba(255, 255, 255, 0.86);
}

/* Switch to an intentional vertical journey before six columns become cramped. */
@media (max-width: 900px) {
  .journey-section {
    padding: 72px 0 80px;
  }

  .journey-shell {
    padding: 0 24px;
  }

  .journey-header {
    margin-bottom: 50px;
  }

  .journey-steps {
    display: flex;
    flex-direction: column;
    max-width: 680px;
    margin: 0 auto;
  }

  .journey-step {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      'marker number'
      'marker copy';
    column-gap: 20px;
    padding: 0 0 40px;
    text-align: left;
  }

  .journey-step:last-child {
    padding-bottom: 0;
  }

  .journey-step:not(:last-child)::after {
    top: 48px;
    right: auto;
    bottom: -24px;
    left: 23.5px;
    width: 1px;
    height: auto;
    transform-origin: center top;
  }

  .journey-section.is-reveal-ready .journey-step:not(:last-child)::after {
    transform: scaleY(0);
  }

  .journey-section.is-revealed .journey-step:not(:last-child)::after {
    transform: scaleY(1);
  }

  .journey-number {
    grid-area: number;
    margin: 2px 0 8px;
  }

  .journey-marker {
    grid-area: marker;
  }

  .journey-copy {
    grid-area: copy;
    margin-top: 0;
  }

  .journey-title {
    font-size: 1.125rem;
  }

  .journey-description {
    max-width: 540px;
    margin: 0;
    font-size: 0.875rem;
  }
}

@media (max-width: 560px) {
  .journey-section {
    padding: 60px 0 68px;
  }

  .journey-shell {
    padding: 0 18px;
  }

  .journey-header {
    margin-bottom: 42px;
  }

  .journey-heading {
    font-size: 1.875rem;
  }

  .journey-step {
    column-gap: 16px;
    padding-bottom: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-step:not(:last-child)::after,
  .journey-section.is-reveal-ready .journey-step:not(:last-child)::after,
  .journey-section.is-revealed .journey-step:not(:last-child)::after {
    transform: none;
    transition: background-color 0.3s ease;
  }
}

/* Assisted Search / Advisor Intake
   -------------------------------------------------- */
.advisor-section {
  background: var(--white);
  padding: 88px 0 104px;
}

.advisor-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 36px;
}

.advisor-header {
  max-width: 720px;
  margin: 0 auto 38px;
  text-align: center;
}

.advisor-header .section-heading {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.advisor-header .section-supporting {
  max-width: 620px;
  margin: 0 auto;
}

.advisor-form {
  max-width: 1020px;
  margin: 0 auto;
  padding: 44px 48px 46px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--cool-neutral);
  box-shadow: 0 14px 40px rgba(23, 40, 36, 0.06);
}

.advisor-intent {
  min-width: 0;
  margin: 0 0 34px;
  padding: 0;
  border: 0;
}

.advisor-intent legend {
  margin-bottom: 16px;
  color: var(--graphite);
  font-family: 'Lato', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.advisor-intent-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.advisor-intent-pill {
  appearance: none;
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--graphite);
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.advisor-intent-pill:hover:not(.is-active) {
  border-color: rgba(44, 76, 59, 0.38);
  color: var(--cig-green);
}

.advisor-intent-pill.is-active {
  border-color: var(--cig-green);
  background: var(--cig-green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(44, 76, 59, 0.2);
}

.advisor-intent-pill:active {
  transform: scale(0.98);
}

.advisor-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 22px;
}

.advisor-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.advisor-field label {
  color: var(--graphite);
  font-family: 'Lato', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
}

.advisor-field label span {
  color: var(--cig-green);
}

.advisor-field input,
.advisor-field select,
.advisor-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  outline: none;
  background: var(--white);
  color: var(--graphite);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(23, 40, 36, 0.02);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.advisor-field input::placeholder,
.advisor-field textarea::placeholder {
  color: var(--secondary-text);
  opacity: 0.72;
}

.advisor-field input:hover,
.advisor-field select:hover,
.advisor-field textarea:hover {
  border-color: rgba(44, 76, 59, 0.32);
}

.advisor-field input:focus,
.advisor-field select:focus,
.advisor-field textarea:focus {
  border-color: var(--cig-green);
  box-shadow: 0 0 0 3px rgba(44, 76, 59, 0.11);
}

.advisor-field input[aria-invalid="true"],
.advisor-field select[aria-invalid="true"],
.advisor-field textarea[aria-invalid="true"] {
  border-color: #9A4545;
  box-shadow: 0 0 0 3px rgba(154, 69, 69, 0.09);
}

.advisor-field--textarea {
  margin-top: 26px;
}

.advisor-field--textarea textarea {
  min-height: 150px;
  resize: vertical;
}

.advisor-field-hint {
  margin-top: -2px;
  color: var(--secondary-text);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.advisor-form-error {
  margin: 18px 0 0;
  color: #873D3D;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.45;
}

.advisor-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 30px;
}

.advisor-submit {
  appearance: none;
  min-height: 48px;
  padding: 13px 26px;
  border: 1px solid var(--cig-green);
  border-radius: var(--radius-pill);
  background: var(--cig-green);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.advisor-submit:hover:not(:disabled),
.advisor-submit:focus-visible:not(:disabled) {
  border-color: var(--cig-green-deep);
  background: var(--cig-green-deep);
  box-shadow: 0 6px 18px rgba(44, 76, 59, 0.3);
  transform: translateY(-1px);
}

.advisor-submit:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.advisor-submit.is-success,
.advisor-submit.is-success:disabled {
  border-color: var(--cig-green-deep);
  background: var(--cig-green-deep);
  color: var(--white);
  cursor: default;
  opacity: 1;
}

.advisor-confirmation {
  margin: 14px 0 0;
  color: var(--cig-green-deep);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
}

.advisor-human-route {
  margin: 18px 0 0;
  color: var(--secondary-text);
  font-size: 0.875rem;
  line-height: 1.45;
}

.advisor-human-link {
  appearance: none;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(44, 76, 59, 0.3);
  background: transparent;
  color: var(--cig-green);
  font-family: 'Lato', sans-serif;
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.advisor-human-link:hover,
.advisor-human-link:focus-visible {
  border-color: var(--cig-green-deep);
  color: var(--cig-green-deep);
}

[hidden] {
  display: none !important;
}

/* Advisor form responsive */
@media (max-width: 768px) {
  .advisor-section {
    padding: 72px 0 80px;
  }

  .advisor-shell {
    padding: 0 24px;
  }

  .advisor-form {
    padding: 36px 30px 38px;
    border-radius: 26px;
  }

  .advisor-form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .advisor-section {
    padding: 60px 0 68px;
  }

  .advisor-shell {
    padding: 0 18px;
  }

  .advisor-header {
    margin-bottom: 30px;
  }

  .advisor-form {
    padding: 26px 20px 30px;
    border-radius: 24px;
  }

  .advisor-intent {
    margin-bottom: 28px;
  }

  .advisor-intent-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .advisor-intent-pill {
    width: 100%;
    padding-inline: 12px;
    font-size: 0.8125rem;
  }

  .advisor-field input,
  .advisor-field select,
  .advisor-field textarea {
    font-size: 1rem;
  }

  .advisor-field--textarea textarea {
    min-height: 170px;
  }

  .advisor-submit {
    width: 100%;
  }

  .advisor-actions {
    align-items: stretch;
  }

  .advisor-confirmation,
  .advisor-human-route {
    text-align: center;
  }
}

/* Property Owner / Landlord CTA
   -------------------------------------------------- */
.owner-section {
  background: var(--white);
  padding: 0 0 88px;
}

.owner-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 36px;
}

.owner-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 30px 34px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--cool-neutral);
  box-shadow: 0 8px 24px rgba(23, 40, 36, 0.04);
  transition: border-color 0.25s ease;
}

.owner-banner:hover,
.owner-banner:focus-within {
  border-color: rgba(44, 76, 59, 0.28);
}

.owner-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(44, 76, 59, 0.16);
  border-radius: 17px;
  background: rgba(44, 76, 59, 0.07);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.owner-banner:hover .owner-icon-wrap,
.owner-banner:focus-within .owner-icon-wrap {
  border-color: rgba(44, 76, 59, 0.24);
  background: rgba(44, 76, 59, 0.11);
}

.owner-icon-wrap img {
  display: block;
  width: 26px;
  height: 26px;
}

.owner-copy {
  min-width: 0;
}

.owner-eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--cig-green);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.owner-heading {
  margin: 0 0 7px;
  color: var(--graphite);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.owner-supporting {
  max-width: 650px;
  margin: 0;
  color: var(--secondary-text);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.owner-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 11px;
  text-align: right;
}

.owner-primary {
  appearance: none;
  min-height: 46px;
  padding: 12px 21px;
  border: 1px solid var(--cig-green);
  border-radius: var(--radius-pill);
  background: var(--cig-green);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(44, 76, 59, 0.2);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.owner-primary:hover,
.owner-primary:focus-visible {
  border-color: var(--cig-green-deep);
  background: var(--cig-green-deep);
  box-shadow: 0 5px 14px rgba(44, 76, 59, 0.26);
  transform: translateY(-1px);
}

.owner-primary:active {
  transform: translateY(0) scale(0.99);
}

.owner-secondary {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--secondary-text);
  font-family: 'Lato', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  transition: color 0.2s ease;
}

.owner-secondary span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.owner-secondary:hover,
.owner-secondary:focus-visible {
  color: var(--cig-green);
}

.owner-secondary:hover span,
.owner-secondary:focus-visible span {
  transform: translateX(3px);
}

.owner-feedback {
  max-width: 250px;
  margin: 0;
  color: var(--cig-green);
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Owner CTA responsive */
@media (max-width: 900px) {
  .owner-shell {
    padding: 0 24px;
  }

  .owner-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .owner-actions {
    grid-column: 2;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .owner-section {
    padding-bottom: 68px;
  }

  .owner-shell {
    padding: 0 18px;
  }

  .owner-banner {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 26px 22px;
    border-radius: 22px;
  }

  .owner-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .owner-actions {
    align-items: stretch;
    width: 100%;
    text-align: left;
  }

  .owner-primary {
    width: 100%;
  }

  .owner-secondary {
    align-self: flex-start;
    text-align: left;
  }

  .owner-feedback {
    max-width: none;
  }
}

/* CIG HOME Footer
   -------------------------------------------------- */
.site-footer {
  background: var(--cig-green-deep);
  color: var(--white);
}

.site-footer a:focus-visible {
  outline-color: rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

.footer-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 70px 36px 28px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) repeat(3, minmax(150px, 1fr));
  gap: 48px;
  padding-bottom: 58px;
}

.footer-brand-column {
  max-width: 330px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
}

.footer-brand-logo {
  width: auto;
  height: 30px;
  filter: brightness(0) invert(1);
}

.footer-brand-wordmark {
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-tagline {
  max-width: 260px;
  margin: 22px 0 26px;
  color: rgba(255, 255, 255, 0.72);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.5;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.footer-social-link img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.82;
  transition: opacity 0.2s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.footer-social-link:hover img,
.footer-social-link:focus-visible img {
  opacity: 1;
}

.footer-column-heading {
  margin: 5px 0 20px;
  color: rgba(255, 255, 255, 0.58);
  font-family: 'Lato', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-legal a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--white);
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: nowrap;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.75rem;
}

.footer-parent-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.footer-parent-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.footer-parent-link:hover,
.footer-parent-link:focus-visible {
  color: var(--white);
}

.footer-parent-link:hover span,
.footer-parent-link:focus-visible span {
  transform: translateX(3px);
}

/* Footer responsive */
@media (max-width: 1024px) {
  .footer-shell {
    padding-inline: 24px;
  }

  .footer-main {
    grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(130px, 1fr));
    gap: 30px;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
  }

  .footer-legal {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .footer-shell {
    padding: 58px 24px 26px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 28px;
    padding-bottom: 46px;
  }

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

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

  .footer-legal {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .footer-parent-link {
    order: -1;
  }
}

@media (max-width: 520px) {
  .footer-shell {
    padding: 52px 18px 24px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 42px;
  }

  .footer-brand-column {
    grid-column: auto;
  }

  .footer-column-heading {
    margin-bottom: 16px;
  }

  .footer-links {
    gap: 11px;
  }

  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }

  .footer-copyright {
    white-space: normal;
  }
}
