/*==================================================
  K7 Prime Estates — base.css
  Global design system foundation. Bootstrap 5.3.8.

  Contains ONLY reusable, project-wide styles:
  fonts, design tokens, reset, typography, Bootstrap
  theming, shared components, header, footer, utilities.

  Section-specific CSS belongs in styles.css.
==================================================*/

/*--------------------------------------------------
  1. Fonts
--------------------------------------------------*/
@font-face {
  font-family: "Roboto";
  src:
    url("../fonts/Roboto-Regular.woff2") format("woff2"),
    url("../fonts/Roboto-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src:
    url("../fonts/Roboto-Medium.woff2") format("woff2"),
    url("../fonts/Roboto-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src:
    url("../fonts/Roboto-SemiBold.woff2") format("woff2"),
    url("../fonts/Roboto-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src:
    url("../fonts/Roboto-Bold.woff2") format("woff2"),
    url("../fonts/Roboto-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src:
    url("../fonts/Roboto-ExtraBold.woff2") format("woff2"),
    url("../fonts/Roboto-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src:
    url("../fonts/Roboto-Black.woff2") format("woff2"),
    url("../fonts/Roboto-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/*--------------------------------------------------
  2. Design tokens
--------------------------------------------------*/
:root {
  /* Brand palette */
  --bs-primary: #ff6525;
  --bs-primary-rgb: 255, 101, 37;
  --bs-secondary: #181818;
  --bs-secondary-rgb: 24, 24, 24;
  --bs-dark: #181818;
  --bs-dark-rgb: 24, 24, 24;
  --bs-light: #f0f0f0;
  --bs-light-rgb: 240, 240, 240;

  /* Surfaces and text */
  --bs-body-bg: #ffffff;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-body-color: #404040;
  --bs-body-color-rgb: 64, 64, 64;
  --bs-emphasis-color: #181818;
  --bs-heading-color: #181818;
  --bs-secondary-color: #667085;
  --bs-border-color: #e5e5e5;
  --bs-border-color-translucent: rgba(24, 24, 24, 0.1);

  /* Links */
  --bs-link-color: #ff6525;
  --bs-link-color-rgb: 255, 101, 37;
  --bs-link-hover-color: #f04e0c;
  --bs-link-hover-color-rgb: 240, 78, 12;

  /* Focus */
  --bs-focus-ring-color: rgba(255, 101, 37, 0.25);

  /* Typography */
  --bs-body-font-family:
    "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.5;

  /* Radius ladder — drives .rounded-1 … .rounded-5 */
  --bs-border-radius-sm: 0.5rem; /*  8px — .rounded-1 */
  --bs-border-radius: 0.625rem; /* 10px — .rounded-2, buttons, inputs */
  --bs-border-radius-lg: 1rem; /* 16px — .rounded-3 */
  --bs-border-radius-xl: 1.5rem; /* 24px — .rounded-4, cards */
  --bs-border-radius-xxl: 2.5rem; /* 40px — .rounded-5, panels */

  /* Shadows — drive .shadow-sm / .shadow / .shadow-lg */
  --bs-box-shadow-sm: 0 1px 2px rgba(24, 24, 24, 0.06);
  --bs-box-shadow: 0 8px 24px rgba(24, 24, 24, 0.08);
  --bs-box-shadow-lg: 0 20px 48px rgba(24, 24, 24, 0.12);

  /* Tokens Bootstrap does not provide */
  --k7-radius-card: 1.875rem;
  --k7-primary-hover: #f04e0c;
  --k7-primary-active: #d6450a;
  --k7-tint: #ffeee7;
  --k7-tint-rgb: 255, 238, 231;
  --k7-tint-hover: #ffe0d2;
  --k7-tint-border: #ffe7dc;
  --k7-surface: #f0f0f0;
  --k7-placeholder: #77808b;
  /* Form field spec — shared by inputs, native selects and the custom
     dropdown trigger so every control keeps one stature and one edge. */
  --k7-field-height: 3.75rem; /* 60px */
  --k7-field-padding-x: 1.125rem; /* 18px */
  --k7-field-border: #d6d6d6;
  --k7-field-chevron: url("../images/home/icon-chevron.svg");
  --k7-overlay: rgba(24, 24, 24, 0.28);
  --k7-shadow-primary: 0 10px 24px rgba(255, 101, 37, 0.28);
  /* Floating-menu elevation — dropdowns, popovers */
  --k7-shadow-menu:
    0 12px 32px rgba(24, 24, 24, 0.12), 0 2px 8px rgba(24, 24, 24, 0.06);
  --k7-section-space: clamp(3rem, 4vw, 4rem);
}

/* Dark context */
[data-bs-theme="dark"] {
  --bs-body-bg: #181818;
  --bs-body-bg-rgb: 24, 24, 24;
  --bs-body-color: #e5e5e5;
  --bs-body-color-rgb: 229, 229, 229;
  --bs-emphasis-color: #ffffff;
  --bs-heading-color: #f8f8f8;
  --bs-secondary-color: #cfd3d7;
  --bs-border-color: rgba(255, 255, 255, 0.12);
  --bs-border-color-translucent: rgba(255, 255, 255, 0.15);
  --bs-primary: #ff6525;
  --bs-primary-rgb: 255, 101, 37;
  --bs-link-color: #ff6525;
  --bs-link-color-rgb: 255, 101, 37;
  --bs-link-hover-color: #ff8552;
  --bs-link-hover-color-rgb: 255, 133, 82;
  --k7-placeholder: #77808b;
  --k7-field-border: rgba(255, 255, 255, 0.18);
  --k7-field-chevron: url("../images/home/icon-chevron-light.svg");
}

/* Bootstrap's [data-bs-theme] blocks only re-map variables; the resolved
   colour is applied to <body> alone. Re-apply it so a themed band
   (footer, dark CTA, dark blog strip) recolours its own text. */
[data-bs-theme] {
  color: var(--bs-body-color);
}

/*--------------------------------------------------
  3. Minimal reset and global elements
--------------------------------------------------*/
html {
  scroll-behavior: smooth;
}

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

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
}

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

::selection {
  background-color: var(--bs-primary);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

/* The design content column is wider than Bootstrap's 1320px cap. */
@media (min-width: 1400px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1500px;
  }
}

/*--------------------------------------------------
  4. Bootstrap component theming
--------------------------------------------------*/

/* Buttons */
.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}

.btn-lg {
  --bs-btn-padding-y: 0.75rem;
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-border-radius: var(--bs-border-radius);
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--k7-primary-hover);
  --bs-btn-hover-border-color: var(--k7-primary-hover);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--k7-primary-active);
  --bs-btn-active-border-color: var(--k7-primary-active);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--k7-primary-active);
  --bs-btn-active-border-color: var(--k7-primary-active);
  --bs-btn-disabled-color: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-dark {
  --bs-btn-bg: var(--bs-dark);
  --bs-btn-border-color: var(--bs-dark);
  --bs-btn-hover-bg: #000;
  --bs-btn-hover-border-color: #000;
  --bs-btn-active-bg: #000;
  --bs-btn-active-border-color: #000;
  --bs-btn-disabled-bg: var(--bs-dark);
  --bs-btn-disabled-border-color: var(--bs-dark);
}

/* Soft brand button — the tinted pill used across the theme */
.btn-soft {
  --bs-btn-color: var(--bs-secondary);
  --bs-btn-bg: var(--k7-tint);
  --bs-btn-border-color: var(--k7-tint-border);
  --bs-btn-hover-color: var(--bs-secondary);
  --bs-btn-hover-bg: var(--k7-tint-hover);
  --bs-btn-hover-border-color: var(--k7-tint-hover);
  --bs-btn-active-color: var(--bs-secondary);
  --bs-btn-active-bg: var(--k7-tint-hover);
  --bs-btn-active-border-color: var(--k7-tint-border);
  --bs-btn-disabled-color: var(--bs-secondary);
  --bs-btn-disabled-bg: var(--k7-tint);
  --bs-btn-disabled-border-color: var(--k7-tint-border);
}

/* White button for dark bands — reads as the quiet half of a CTA pair */
.btn-white {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--k7-primary-hover);
  --bs-btn-hover-border-color: var(--k7-primary-hover);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--k7-primary-active);
  --bs-btn-active-border-color: var(--k7-primary-active);
  --bs-btn-disabled-color: var(--bs-primary);
  --bs-btn-disabled-bg: #fff;
  --bs-btn-disabled-border-color: #fff;
}

/* Forms */

/* One field spec across the theme, taken from the home-page search bar:
   the same stature, edge, radius and type for text inputs, native selects
   and the custom dropdown trigger, in either colour scheme. */
.form-control,
.form-select,
.input-group-text {
  --bs-border-width: 2px;
  --bs-border-color: var(--k7-field-border);
}

.form-control,
.form-select {
  min-height: var(--k7-field-height);
  padding-inline: var(--k7-field-padding-x);
  font-weight: 500;
  color: var(--bs-emphasis-color);
}

/* Native selects carry the theme's own chevron rather than Bootstrap's, and
   are padded to the shared stature so their text sits centred rather than
   riding the top of a min-height box. */
.form-select {
  --bs-form-select-bg-img: var(--k7-field-chevron);
  padding-block: 1rem;
  padding-inline-end: 2.75rem;
  background-position: right var(--k7-field-padding-x) center;
  background-size: 0.75rem 0.4375rem; /* 12 x 7 */
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.12);
}

.form-control::placeholder {
  color: var(--k7-placeholder);
  opacity: 1;
}

.form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

/* Leading icon and control read as one field: the seam between them is
   dropped and the group, not the control alone, answers to focus. */
.input-group-seamless > .input-group-text {
  border-inline-end: 0;
}

.input-group-seamless > .form-control,
.input-group-seamless > .form-select {
  border-inline-start: 0;
}

.input-group-seamless:focus-within > * {
  border-color: var(--bs-primary);
}

.input-group-seamless > .form-control:focus,
.input-group-seamless > .form-select:focus {
  box-shadow: none;
}

.input-group-seamless:focus-within {
  border-radius: var(--bs-border-radius);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.12);
}

/* Roomier check/radio for prominent choice rows — Bootstrap sizes the
   control to 1em, which reads too quiet next to a 1rem label. */
.form-check-lg {
  padding-left: 2.125rem;
}

.form-check-lg .form-check-input {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0;
  margin-left: -2.125rem;
}

/* Cards */
.card {
  --bs-card-border-radius: var(--bs-border-radius-xl);
  --bs-card-inner-border-radius: calc(
    var(--bs-border-radius-xl) - var(--bs-border-width)
  );
  --bs-card-border-color: var(--bs-border-color);
  --bs-card-spacer-x: 1.25rem;
  --bs-card-spacer-y: 1.25rem;
}

/* Navigation, overlays and content components */
.nav {
  --bs-nav-link-color: var(--bs-body-color);
  --bs-nav-link-hover-color: var(--bs-primary);
}

.nav-pills {
  --bs-nav-pills-border-radius: var(--bs-border-radius-pill);
  --bs-nav-pills-link-active-bg: var(--bs-primary);
}

.dropdown-menu {
  --bs-dropdown-padding-x: 0.375rem;
  --bs-dropdown-padding-y: 0.375rem;
  --bs-dropdown-spacer: 0.5rem;
  --bs-dropdown-font-size: 0.9375rem; /* 15px */
  --bs-dropdown-bg: #fff;
  --bs-dropdown-color: var(--bs-secondary);
  --bs-dropdown-border-radius: var(--bs-border-radius); /* 10px */
  --bs-dropdown-border-color: var(--bs-border-color);
  --bs-dropdown-box-shadow: var(--k7-shadow-menu);
  --bs-dropdown-item-padding-x: 0.875rem;
  --bs-dropdown-item-padding-y: 0.625rem;
  --bs-dropdown-link-color: var(--bs-secondary);
  --bs-dropdown-link-hover-color: var(--bs-secondary);
  --bs-dropdown-link-hover-bg: var(--k7-tint);
  --bs-dropdown-link-active-bg: var(--bs-primary);
}

.dropdown-item {
  border-radius: var(--bs-border-radius-sm);
  font-weight: 500;
  transition:
    background-color 0.18s ease-in-out,
    color 0.18s ease-in-out;
}

.dropdown-item + .dropdown-item {
  margin-top: 0.125rem;
}

.dropdown-menu.show {
  animation: dropdown-fade 0.18s ease-out both;
}

.dropdown-menu[data-bs-popper="static"].show {
  animation: dropdown-lift 0.2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes dropdown-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes dropdown-lift {
  from {
    opacity: 0;
    transform: translateY(-0.375rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.offcanvas {
  --bs-offcanvas-width: 22rem;
}

.accordion {
  --bs-accordion-border-color: var(--bs-border-color);
  --bs-accordion-border-radius: var(--bs-border-radius-lg);
  --bs-accordion-active-color: var(--bs-primary);
  --bs-accordion-active-bg: var(--k7-tint);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem
    rgba(var(--bs-primary-rgb), 0.15);
}

/* Borderless cells on the page background; the current page is a quiet
   grey tile with a brand-orange numeral rather than a filled chip. */
.pagination {
  --bs-pagination-padding-x: 0.75rem;
  --bs-pagination-padding-y: 0.5rem;
  --bs-pagination-color: var(--bs-heading-color);
  --bs-pagination-bg: transparent;
  --bs-pagination-border-width: 0;
  --bs-pagination-border-radius: var(--bs-border-radius-sm); /* 8px */
  --bs-pagination-hover-color: var(--bs-primary);
  --bs-pagination-hover-bg: var(--k7-tint);
  --bs-pagination-focus-color: var(--bs-primary);
  --bs-pagination-focus-bg: var(--k7-tint);
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem
    rgba(var(--bs-primary-rgb), 0.15);
  --bs-pagination-active-color: var(--bs-primary);
  --bs-pagination-active-bg: var(--k7-surface);
  --bs-pagination-disabled-color: var(--bs-secondary-color);
  --bs-pagination-disabled-bg: transparent;
  gap: 0.125rem;
}

/* Bootstrap pulls each cell 1px onto its neighbour to collapse the shared
   border, and rounds only the two ends. These cells are separate borderless
   squares, so the pull is cancelled and every cell keeps the radius. */
.page-item:not(:first-child) .page-link {
  margin-left: 0;
}

.page-link {
  min-width: 2.5rem; /* 40px — square number cells */
  border-radius: var(--bs-pagination-border-radius);
  font-weight: 500;
  text-align: center;
}

.progress {
  --bs-progress-bar-bg: var(--bs-primary);
  --bs-progress-border-radius: var(--bs-border-radius-pill);
}

.list-group {
  --bs-list-group-active-bg: var(--bs-primary);
  --bs-list-group-active-border-color: var(--bs-primary);
}

.breadcrumb {
  --bs-breadcrumb-divider: url("../images/layout/chevron-right.svg");
  --bs-breadcrumb-item-active-color: var(--bs-primary);
}

/* Bootstrap floats the divider, which tops-aligns an image against a
   larger label; flexing the item centres it instead. */
.breadcrumb-item {
  display: flex;
  align-items: center;
}

/*--------------------------------------------------
  5. Reusable components
--------------------------------------------------*/

/* Icon sizing — Bootstrap has no icon-size utility */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
}

.icon-sm {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

/* Circular icon holder — feature icons, header pills, contact rows */
.icon-circle {
  --icon-size: 2.25rem;
  --icon-glyph: 1.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 50%;
}

.icon-circle-sm {
  --icon-size: 1.75rem;
  --icon-glyph: 1rem;
}

.icon-circle-md {
  --icon-size: 2.875rem;
  --icon-glyph: 1.75rem;
}

.icon-circle-lg {
  --icon-size: 4rem;
  --icon-glyph: 2rem;
}

.icon-circle > svg,
.icon-circle > img {
  width: var(--icon-glyph);
  height: var(--icon-glyph);
}

.eyebrow {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4286;
}

.progress-ring {
  --progress: 0;
  --progress-size: 4rem;
  --progress-track: var(--k7-tint);
  --progress-bar: var(--bs-primary);
  position: relative;
  flex: 0 0 auto;
  width: var(--progress-size);
  height: var(--progress-size);
}

.progress-ring-svg {
  width: 100%;
  height: 100%;
  /* Start the arc at twelve o'clock rather than three. */
  transform: rotate(-90deg);
}

.progress-ring-svg > circle {
  fill: none;
  stroke-width: 6.4;
}

.progress-ring-track {
  stroke: var(--progress-track);
}

.progress-ring-bar {
  stroke: var(--progress-bar);
  stroke-linecap: round;
  /* 2 * pi * 28.8 */
  stroke-dasharray: 180.96;
  stroke-dashoffset: calc(180.96 - 180.96 * var(--progress) / 100);
  transition: stroke-dashoffset 1s ease-out;
}

.progress-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.progress-ring-label {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.progress-ring-value {
  font-size: 0.75rem;
  letter-spacing: -0.033em;
}

/* Inherited-colour link that turns brand orange on interaction */
.link-hover-primary {
  color: inherit;
  transition: color 0.2s ease-in-out;
}

.link-hover-primary:hover,
.link-hover-primary:focus-visible {
  color: var(--bs-primary);
}

/* Dropdown menu that matches the width of its trigger — form
   fields, filters and sorters. Long lists scroll in place. */
.dropdown-menu-fill {
  width: 100%;
  min-width: 0;
  max-height: 18rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Chevron supplied as an <img>, so no Bootstrap caret is needed. The mark
   is a single-colour stroke, so the dark scheme simply inverts it rather
   than shipping a second file for the same shape. */
.dropdown-chevron {
  flex: 0 0 auto;
  transition: transform 0.2s ease-in-out;
}

[data-bs-theme="dark"] .dropdown-chevron {
  filter: brightness(0) invert(1);
}

[aria-expanded="true"] > .dropdown-chevron {
  transform: rotate(180deg);
}

/* Select field — the one shell every dropdown "select" in the theme uses.
   It seats a leading icon, the trigger and the menu, and wears the same
   spec as the native .form-select so the two read as one control. */
.select-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: var(--k7-field-height);
  padding-inline: var(--k7-field-padding-x);
  border: 2px solid var(--k7-field-border);
  border-radius: var(--bs-border-radius);
  background-color: var(--bs-body-bg);
  transition:
    border-color 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
}

/* Trigger — carries the current label and the chevron */
.select-toggle {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 500;
  text-align: left;
  color: var(--bs-emphasis-color);
}

/* The shell owns the focus ring, so the trigger drops its own outline */
.select-toggle:focus {
  outline: 0;
}

.select-toggle > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* A text input sharing the shell gives up its own frame and stature */
.select-field > .form-control {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
}

.select-field > .form-control:focus {
  box-shadow: none;
}

/* Same focus treatment as the native controls, held open while the menu is */
.select-field:focus-within,
.select-field:has(.select-toggle[aria-expanded="true"]) {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.12);
}

/* View switcher — a pair of pills riding one white track. The resting pill
   is transparent so the track shows through; the selected one takes the
   soft-brand treatment. Bootstrap's own `.active` rule reads the button's
   --bs-btn-active-* tokens, so this drives tabs and plain links alike. */
.view-switch .btn {
  --bs-btn-color: var(--bs-heading-color);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--k7-tint);
  --bs-btn-hover-border-color: var(--k7-tint-border);
  --bs-btn-active-color: var(--bs-primary);
  --bs-btn-active-bg: var(--k7-tint);
  --bs-btn-active-border-color: var(--k7-tint-border);
}

.view-switch .btn > .icon-circle {
  background-color: var(--bs-dark);
  transition: background-color 0.2s ease-in-out;
}

.view-switch .btn.active > .icon-circle {
  background-color: var(--bs-primary);
}

/* Slider pagination dot — hand it to Swiper through bulletClass /
   bulletActiveClass; the row itself is laid out with flex utilities. */
.slider-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: rgba(var(--bs-primary-rgb), 0.4);
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.slider-dot-active {
  background-color: var(--bs-primary);
}

.glass {
  --glass-blur: 2px;
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}

/* Deeper frost — panels and tiles that sit over photography */
.glass-lg {
  --glass-blur: 10px;
}

/* Figure tile — a value over its label. Tiles share the line, never fall
   below a readable width, and split whatever width is left over, so a row
   reflows on its own without breakpoint rules. */
.fact-tile {
  flex: 1 1 auto;
  min-width: 11.875rem; /* 190px */
}

.notch-card {
  --notch-width: 4.375rem; /* 70px */
  --notch-height: 4.5rem; /* 72px */
  --notch-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 72'%3e%3cpath d='M70 0.262C70 9.065 58.803 15 50 15C31.775 15 17 29.775 17 48C17 57.666 10.142 72 0.476 72H70Z' fill='%23000'/%3e%3c/svg%3e");
  position: relative;
  border-radius: 1.75rem; /* 28px */
}

.notch-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--notch-width);
  height: var(--notch-height);
  /* The surface the bay is cut down to — the page by default, but a card
     sitting on a tinted panel overrides it. */
  background-color: var(--notch-fill, var(--bs-body-bg));
  -webkit-mask: var(--notch-mask) 0 0 / 100% 100% no-repeat;
  mask: var(--notch-mask) 0 0 / 100% 100% no-repeat;
}

/* Circular icon-only button. Pair it with any Bootstrap button variant and
   resize it through --btn-icon-size. */
.btn-icon {
  --btn-icon-size: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--btn-icon-size);
  height: var(--btn-icon-size);
  padding: 0;
  border-radius: 50%;
}

/* Seats an action in a card's corner; the tile only owns where it sits. */
.card-action {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
}

/* Seated in the cut-out corner instead of inset from the top */
.notch-card > .card-action {
  top: auto;
  right: 0;
  bottom: 0.375rem;
}

.notch-card:hover .card-action {
  background-color: var(--card-action-hover, var(--k7-primary-hover));
  border-color: var(--card-action-hover, var(--k7-primary-hover));
}

.notch-card-top {
  --notch-width: 4.28625rem; /* 68.58px */
  --notch-height: 4.21875rem; /* 67.5px */
  --notch-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68.58 67.5'%3e%3cpath d='M0 0C8.701 0 14.586 11.299 14.586 20C14.586 37.673 28.913 52 46.586 52C55.749 52 68.58 58.335 68.58 67.5V0Z' fill='%23000'/%3e%3c/svg%3e");
}

.notch-card-top::after {
  top: 0;
  bottom: auto;
}

.notch-card-top > .card-action {
  top: 0.25rem;
  right: 0.25rem;
  bottom: auto;
}

/* Bay cut into the bottom-right of a media tile, sized to seat a large
   numeral or label. Percentage dimensions so it scales with the tile. */
.notch-card-year {
  --notch-width: 38.755%; /* 274 / 707 */
  --notch-height: 59.155%; /* 126 / 213 */
  --notch-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 274 126'%3e%3cpath d='M274 0C274 15.464 261.464 28 246 28H56C40.536 28 28 40.536 28 56V98C28 113.464 15.464 126 0 126H274Z' fill='%23000'/%3e%3c/svg%3e");
}

/* Wide bay cut out of the bottom-right corner, filleted into both edges.
   Seats a block — an author, a price row — that should read as sitting
   outside the card. The bay collapses to the card width on narrow tiles. */
.notch-card-wide {
  --notch-width: min(20.3125rem, 100%); /* 325px */
  --notch-height: 7.0625rem; /* 113px */
  --notch-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 325 113'%3e%3cpath d='M325 0C325 16.569 311.569 30 295 30H60C43.431 30 30 43.431 30 60V83C30 99.569 16.569 113 0 113H325Z' fill='%23000'/%3e%3c/svg%3e");
}

/* Pairing the wide bay with the top variant flips the same silhouette into
   the head of the tile, so no second mask is needed for a bay up there. */
.notch-card-wide.notch-card-top::after {
  transform: scaleY(-1);
}

.band-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--band-media-opacity, 1);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Card / tile lift used throughout the theme */
.hover-lift {
  transition:
    transform 0.25s ease-in-out,
    box-shadow 0.25s ease-in-out;
}

.hover-lift:hover,
.hover-lift:focus-within {
  transform: translateY(-0.375rem);
  box-shadow: var(--bs-box-shadow-lg);
}

.hover-media {
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hover-lift:hover .hover-media,
.hover-lift:focus-within .hover-media {
  transform: scale(1.06);
}

/*--------------------------------------------------
  6. Header
--------------------------------------------------*/
.site-header {
  --site-header-padding-y: 0.5rem;
  --site-logo-width: clamp(4rem, 7vw, 8.2rem);
  --site-logo-box: calc(var(--site-logo-width) * 130 / 118);
  --site-header-height-stuck: 4.5rem;
  --site-logo-width-stuck: calc(3rem * 118 / 130); /* 48px tall in a 72px bar */
  --site-header-lift: calc(
    var(--site-header-padding-y) +
      (var(--site-logo-box) - var(--site-header-height-stuck)) / 2
  );
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: var(--site-header-height-stuck);
  opacity: 0;
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: opacity 0.3s ease-in-out;
}

.site-header.is-stuck::before {
  opacity: 1;
  box-shadow: var(--bs-box-shadow-sm);
}

.site-header.is-stuck {
  pointer-events: none;
}

.site-header.is-stuck .navbar-brand,
.site-header.is-stuck .btn,
.site-header.is-stuck .offcanvas {
  pointer-events: auto;
}

.site-header .navbar {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-stuck .navbar {
  transform: translateY(calc(var(--site-header-lift) * -1));
}

.site-header .navbar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--site-logo-width);
  aspect-ratio: 118 / 130;
}

.site-logo {
  flex: 0 0 auto;
  width: var(--site-logo-width);
  height: auto;
  transform: translate(-50px, 58px);
  transition:
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-stuck .site-logo {
  width: var(--site-logo-width-stuck);
  transform: translate(-50px, 0);
}

/* Full-viewport menu overlay (Bootstrap offcanvas-top) */
.menu-overlay {
  --bs-offcanvas-height: 100dvh;
  --bs-offcanvas-bg: #000;
  --bs-offcanvas-padding-x: 0;
  --bs-offcanvas-padding-y: 0;
  --bs-offcanvas-border-width: 0;
  overflow: hidden;
}

.menu-overlay-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.05;
  pointer-events: none;
}

.menu-link {
  display: block;
  color: #fff;
  transition: color 0.2s ease-in-out;
}

.menu-link:hover,
.menu-link:focus-visible {
  color: var(--bs-primary);
}

/* Gradient rule between menu items */
.menu-nav > li + li::before {
  content: "";
  display: block;
  width: min(358px, 100%);
  height: 1.5px;
  margin: 0 auto 1.5rem;
  background-image: linear-gradient(
    90deg,
    rgba(var(--bs-primary-rgb), 0.1),
    rgba(var(--bs-primary-rgb), 1) 51%,
    rgba(var(--bs-primary-rgb), 0.1)
  );
}

/*--------------------------------------------------
  7. Footer
--------------------------------------------------*/
.site-footer {
  position: relative;
  overflow: hidden;
}

.site-footer-media,
.site-footer-wordmark {
  position: absolute;
  inset-inline: 0;
  width: 100%;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.site-footer-media {
  top: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.site-footer-wordmark {
  bottom: 0;
  height: auto;
  opacity: 0.55;
}

.site-footer-panel {
  background-color: var(--k7-overlay);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/*--------------------------------------------------
  8. Utilities
--------------------------------------------------*/
.section {
  padding-block: var(--k7-section-space);
}

.section-sm {
  padding-block: calc(var(--k7-section-space) * 0.6);
}

.fs-lead {
  font-size: 1.125rem;
  line-height: 1.5556;
}

/* Quiet step below the body size — badges, meta lines, captions */
.fs-sm {
  font-size: 0.875rem;
  line-height: 1.4286;
}

.bg-tint {
  background-color: var(--k7-tint) !important;
}

.bg-surface {
  background-color: var(--k7-surface) !important;
}

.shadow-primary {
  box-shadow: var(--k7-shadow-primary) !important;
}

/*--------------------------------------------------
  9. Accessibility helpers
--------------------------------------------------*/
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1080;
  transition: top 0.2s ease-in-out;
}

.skip-link:focus {
  top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hover-lift,
  .hover-media,
  .site-header::before,
  .site-header .navbar,
  .progress-ring-bar,
  .slider-dot,
  .link-hover-primary,
  .dropdown-item,
  .dropdown-chevron,
  .view-switch .btn > .icon-circle {
    transition: none;
  }

  .dropdown-menu.show,
  .dropdown-menu[data-bs-popper="static"].show {
    animation: none;
  }

  .hover-lift:hover,
  .hover-lift:focus-within,
  .hover-lift:hover .hover-media,
  .hover-lift:focus-within .hover-media {
    transform: none;
  }
}

/*--------------------------------------------------
  10. Custom Common
--------------------------------------------------*/
.custom-services {
  margin-top: 130px !important;
}
