/* ==========================================================================
   The Knightsbridge Oasis Limited — Design System & Stylesheet
   RC: 8131192 | Abuja, Nigeria
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand Crimson & Accent Primitives */
  --crimson-50: #FDEDEE;
  --crimson-100: #FBD5D7;
  --crimson-200: #F7A8AC;
  --crimson-300: #F3767C;
  --crimson-400: #EE444D;
  --crimson-500: #D32F2F; /* Primary Brand Crimson */
  --crimson-600: #B71C1C; /* Hover Crimson */
  --crimson-700: #8E1515;
  --crimson-800: #680E0E;
  --crimson-900: #420808;

  /* Neutral & Obsidian Primitives */
  --neutral-0: #FFFFFF;
  --neutral-50: #F9F9FB;
  --neutral-100: #F2F2F7;
  --neutral-200: #E6E6EE;
  --neutral-300: #D4D4E0;
  --neutral-400: #A2A2B4;
  --neutral-500: #747488;
  --neutral-600: #4E4E60;
  --neutral-700: #323240;
  --neutral-800: #1D1D26;
  --neutral-900: #111117;
  --neutral-1000: #08080C;

  /* Semantic Light Theme (Executive Corporate Default) */
  --bg-page: #FFFFFF;
  --bg-subtle: #F9F9FB;
  --bg-muted: #F2F2F7;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-inverse: #0D0D12;

  --text-primary: #111117;
  --text-secondary: #484856;
  --text-muted: #747488;
  --text-inverse: #FFFFFF;
  --text-brand: #D32F2F;
  --text-accent: #D32F2F;
  --text-link: #111117;
  --text-link-hover: #D32F2F;

  --border-subtle: #EBEBF2;
  --border-default: #D8D8E4;
  --border-strong: #A2A2B4;
  --border-brand: #D32F2F;
  --border-focus: #D32F2F;

  /* Actions */
  --action-primary-bg: #D32F2F;
  --action-primary-bg-hover: #B71C1C;
  --action-primary-bg-active: #8E1515;
  --action-primary-text: #FFFFFF;

  --action-dark-bg: #111117;
  --action-dark-bg-hover: #1D1D26;
  --action-dark-text: #FFFFFF;

  --action-outline-bg-hover: #FDEDEE;
  --action-outline-bg-active: #FBD5D7;
  --action-outline-border: #111117;
  --action-outline-text: #111117;

  --action-ghost-bg-hover: #F2F2F7;
  --action-ghost-text: #111117;

  --focus-ring-color: rgba(211, 47, 47, 0.45);
  --focus-ring-width: 3px;
  --focus-ring-offset: 2px;

  /* Typography */
  --font-display: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Spacing scale */
  --space-0: 0px;   --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px;  --space-6: 24px;  --space-8: 32px;  --space-10: 40px; --space-12: 48px;
  --space-16: 64px; --space-20: 80px; --space-24: 96px; --space-32: 128px; --space-40: 160px;

  --space-section: 64px;
  --space-section-desktop: 104px;
  --container-max: 1280px;
  --container-gutter: 20px;
  --container-gutter-tablet: 32px;
  --container-gutter-desktop: 80px;

  /* Radius */
  --radius-xs: 4px; --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;
  --radius-xl: 24px; --radius-2xl: 36px; --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(17, 17, 23, 0.05);
  --shadow-sm: 0 2px 8px rgba(17, 17, 23, 0.07);
  --shadow-md: 0 8px 24px rgba(17, 17, 23, 0.09);
  --shadow-lg: 0 16px 40px rgba(17, 17, 23, 0.12);
  --shadow-xl: 0 24px 60px rgba(17, 17, 23, 0.16);

  /* Motion */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --easing-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Component specs */
  --button-height-md: 48px;
  --button-padding-x-md: 26px;
  --button-height-sm: 38px;
  --button-padding-x-sm: 20px;

  --card-padding: 32px;
  --card-radius: 16px;
  --card-border: 1px solid var(--border-subtle);
  --card-shadow: var(--shadow-sm);
  --card-shadow-hover: var(--shadow-lg);
  --card-media-radius: 12px;

  --header-height: 80px;
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-border: 1px solid var(--border-subtle);

  --footer-bg: #0D0D12;
  --footer-text: #B4B4C4;
}

/* ---------- Dark Modern Luxury Theme ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-page: #0C0C10;
    --bg-subtle: #121218;
    --bg-muted: #171720;
    --bg-surface: #15151D;
    --bg-surface-elevated: #1B1B26;
    --bg-card: #15151E;
    --bg-inverse: #FFFFFF;

    --text-primary: #F5F5F8;
    --text-secondary: #B4B4C6;
    --text-muted: #828296;
    --text-inverse: #0D0D12;
    --text-brand: #E53935;
    --text-accent: #EF5350;
    --text-link: #F5F5F8;
    --text-link-hover: #E53935;

    --border-subtle: #242432;
    --border-default: #343446;
    --border-strong: #505068;

    --action-outline-border: #F5F5F8;
    --action-outline-text: #F5F5F8;
    --action-outline-bg-hover: rgba(255, 255, 255, 0.08);

    --action-ghost-bg-hover: #1E1E2A;
    --action-ghost-text: #F5F5F8;

    --header-bg: rgba(12, 12, 16, 0.92);
    --header-border: 1px solid #242432;

    --card-border: 1px solid #242432;
    --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.55);

    --footer-bg: #070709;
    --footer-text: #9696A8;
  }
}

[data-theme="dark"] {
  --bg-page: #0C0C10;
  --bg-subtle: #121218;
  --bg-muted: #171720;
  --bg-surface: #15151D;
  --bg-surface-elevated: #1B1B26;
  --bg-card: #15151E;
  --bg-inverse: #FFFFFF;

  --text-primary: #F5F5F8;
  --text-secondary: #B4B4C6;
  --text-muted: #828296;
  --text-inverse: #0D0D12;
  --text-brand: #E53935;
  --text-accent: #EF5350;
  --text-link: #F5F5F8;
  --text-link-hover: #E53935;

  --border-subtle: #242432;
  --border-default: #343446;
  --border-strong: #505068;

  --action-outline-border: #F5F5F8;
  --action-outline-text: #F5F5F8;
  --action-outline-bg-hover: rgba(255, 255, 255, 0.08);

  --action-ghost-bg-hover: #1E1E2A;
  --action-ghost-text: #F5F5F8;

  --header-bg: rgba(12, 12, 16, 0.92);
  --header-border: 1px solid #242432;

  --card-border: 1px solid #242432;
  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.55);

  --footer-bg: #070709;
  --footer-text: #9696A8;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; max-width: 100vw; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
  overflow-x: hidden;
}
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--text-link); text-decoration: none; transition: color var(--duration-fast) var(--easing-standard); }
a:hover { color: var(--text-link-hover); }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: var(--weight-bold); letter-spacing: -0.02em; }

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

:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--radius-xs);
}

::selection { background: rgba(211, 47, 47, 0.18); color: var(--text-primary); }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--container-gutter-tablet); }
}
@media (min-width: 1024px) {
  .container { padding-inline: var(--container-gutter-desktop); }
}

.section {
  padding-block: var(--space-section);
}
@media (min-width: 1024px) {
  .section { padding-block: var(--space-section-desktop); }
}
.section--tight { padding-block: var(--space-12); }
@media (min-width: 1024px) {
  .section--tight { padding-block: var(--space-16); }
}

.bg-page   { background: var(--bg-page); }
.bg-subtle { background: var(--bg-subtle); }
.bg-muted  { background: var(--bg-muted); }
.bg-dark   { background: var(--footer-bg); color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--action-primary-bg);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  z-index: 3000;
  font-weight: var(--weight-bold);
  transition: top var(--duration-fast) var(--easing-standard);
}
.skip-link:focus { top: 12px; }

/* ---------- Animated Brand Loader ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  transition: opacity 400ms var(--easing-standard), visibility 400ms;
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-brand-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.loader-svg {
  width: 90px;
  height: 90px;
  filter: drop-shadow(0 4px 14px rgba(211, 47, 47, 0.25));
}

.loader-k-shape {
  fill: var(--text-primary);
  transition: fill var(--duration-normal);
}

.loader-orbit-arc {
  fill: none;
  stroke: var(--crimson-500);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 120 40;
  animation: loaderSpin 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: 50px 50px;
}

.loader-brand-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.85;
}

@keyframes loaderSpin {
  0% { transform: rotate(0deg); stroke-dashoffset: 0; }
  50% { stroke-dashoffset: -80; }
  100% { transform: rotate(360deg); stroke-dashoffset: -160; }
}

/* ---------- Typography & Headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-accent);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background: currentColor;
}
.eyebrow--muted { color: var(--text-muted); }
.eyebrow--muted::before { display: none; }

.h-display, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.025em;
}
.h1 { font-size: clamp(26px, 8vw, 42px); line-height: 1.12; font-weight: var(--weight-extrabold); }
.h2 { font-size: clamp(22px, 7vw, 32px); line-height: 1.18; font-weight: var(--weight-bold); }
.h3 { font-size: clamp(18px, 6vw, 26px); line-height: 1.25; font-weight: var(--weight-bold); }
@media (min-width: 1024px) {
  .h1 { font-size: 58px; line-height: 1.08; }
  .h2 { font-size: 42px; line-height: 1.15; }
  .h3 { font-size: 30px; line-height: 1.22; }
}

.h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--weight-bold);
  line-height: 1.3;
  color: var(--text-primary);
}
@media (min-width: 1024px) { .h4 { font-size: 24px; } }

.body-lg { font-size: 17px; line-height: 1.72; color: var(--text-secondary); }
@media (min-width: 1024px) { .body-lg { font-size: 19px; } }
.body { font-size: 15px; line-height: 1.68; color: var(--text-secondary); }

/* ---------- Buttons & Interactive Elements ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--button-height-md);
  padding-inline: var(--button-padding-x-md);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--easing-standard);
  border: 1.5px solid transparent;
}
.btn--sm { height: var(--button-height-sm); padding-inline: var(--button-padding-x-sm); font-size: 13px; }

.btn--primary {
  background: var(--action-primary-bg);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(211, 47, 47, 0.28);
}
.btn--primary:hover {
  background: var(--action-primary-bg-hover);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
  transform: translateY(-1px);
}
.btn--primary:active { background: var(--action-primary-bg-active); transform: translateY(0); }

.btn--dark {
  background: var(--action-dark-bg);
  color: #FFFFFF !important;
}
.btn--dark:hover {
  background: var(--action-dark-bg-hover);
  transform: translateY(-1px);
}

.btn--outline-dark {
  background: transparent;
  border-color: var(--action-outline-border);
  color: var(--action-outline-text);
}
.btn--outline-dark:hover {
  background: var(--action-outline-bg-hover);
  color: var(--text-brand);
  border-color: var(--text-brand);
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #FFFFFF !important;
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #FFFFFF;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}
.link-arrow svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--easing-standard);
}
.link-arrow:hover { color: var(--text-brand); }
.link-arrow:hover svg { transform: translateX(4px); }

.link-arrow--light { color: #FFFFFF; }
.link-arrow--light:hover { color: var(--crimson-300); }

.actions-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 300;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--header-border);
  transition: box-shadow var(--duration-normal) var(--easing-standard), opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header.is-idle {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
}

.site-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.logo-link {
  display: inline-flex;
  align-items: center;
}
.logo-link img {
  height: 38px;
  width: auto;
}
@media (min-width: 1024px) {
  .logo-link img { height: 44px; }
}

/* Dynamic theme logo toggle */
.logo-dark-mode { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light-mode { display: none; }
  :root:not([data-theme="light"]) .logo-dark-mode { display: block; }
}
[data-theme="dark"] .logo-light-mode { display: none; }
[data-theme="dark"] .logo-dark-mode { display: block; }

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}
.nav-links a {
  font-size: 15px;
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  position: relative;
}
.nav-links a:hover { color: var(--text-brand); }
.nav-links a[aria-current="page"] {
  color: var(--text-brand);
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-brand);
  border-radius: 2px;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.header-actions { display: flex; align-items: center; gap: var(--space-4); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
}
.nav-toggle:hover { background: var(--bg-muted); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--bg-page);
  z-index: 290;
  overflow-y: auto;
  padding: var(--space-6) var(--container-gutter) var(--space-10);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--duration-normal) var(--easing-standard);
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.mobile-menu__links a {
  display: block;
  padding: var(--space-4) var(--space-2);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu__links a[aria-current="page"] {
  color: var(--text-brand);
}

@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}

/* ---------- Hero Section ---------- */



/* ==========================================================================
   HERO GSAP FLIP
   ========================================================================== */

.hero-gsap {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #000;
  padding-top: 120px;
}

/* Background Container holds the full-screen images */
.hero-bg-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}

.hero-bg-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 40%, rgba(0,0,0,0.7) 100%);
  z-index: 10;
  pointer-events: none;
}

.hero-gsap__container {
  position: relative;
  z-index: 20;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  padding-bottom: 40px;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .hero-gsap__container {
    grid-template-columns: 0.8fr 1.2fr;
    padding-bottom: 60px;
  }
}

/* --- Left Column: Text --- */
.hero-gsap__content {
  min-width: 0;
  width: 100%;
  padding-right: 1rem;
}

/* Masks for text animation */
.hero-text-mask {
  overflow: hidden;
}

.hero-gsap__content .eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 1rem; color: #fff;
}
.hero-gsap__content .eyebrow::before { content: ''; width: 30px; height: 2px; background-color: #fff; }

.hero-gsap__content .h-display {
  font-size: clamp(32px, 4.5vw, 48px); line-height: 1.05; font-weight: 700;
  margin-bottom: 1.5rem; text-shadow: 0 4px 12px rgba(0,0,0,0.3); text-transform: uppercase;
  color: #fff;
}

.hero-gsap__content .body-lg {
  font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem; max-width: 380px;
}

.btn-pill {
  border-radius: 9999px !important;
  font-size: 12px !important;
  text-transform: uppercase;
  padding: 14px 32px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-pill svg { width: 16px; height: 16px; }

/* --- Right Column: Cards & Controls --- */
.hero-gsap__right {
  position: relative;
  min-width: 0;
  width: calc(100% + var(--container-gutter));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-gsap__right {
    width: calc(100% + var(--container-gutter-tablet));
  }
}

@media (min-width: 1024px) {
  .hero-gsap__right {
    /* Push the width all the way to the right edge of the screen */
    width: calc(100% + var(--container-gutter-desktop) + max(0px, (100vw - var(--container-max)) / 2));
  }
}

.hero-carousel {
  position: relative;
  display: flex;
  gap: 16px;
  width: max-content; 
  min-height: calc(144px * 1.5);
}

@media (min-width: 768px) {
  .hero-carousel { min-height: calc(152px * 1.5); }
}

@media (min-width: 1024px) {
  .hero-carousel { min-height: calc(170px * 1.5); }
}

@media (min-width: 1280px) {
  .hero-carousel { min-height: calc(216px * 1.5); }
}

/* The actual items that transition between card and background */
.flip-item {
  position: relative;
  overflow: hidden;
}

/* When it is a card in the carousel */
.flip-item.is-card {
  width: 144px;
  aspect-ratio: 2 / 3;
  height: auto;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  cursor: pointer;
}

@media (min-width: 768px) {
  .flip-item.is-card {
    width: 152px;
    border-radius: 16px;
  }
}

@media (min-width: 1024px) {
  .flip-item.is-card {
    width: 170px;
  }
}

@media (min-width: 1280px) {
  .flip-item.is-card {
    width: 216px;
  }
}  /* Add an inner wrapper for the image so it scales nicely */

/* When it is the main background */
.flip-item.is-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0px;
  z-index: 1; /* behind overlay */
}
/* Important: ensure older backgrounds sit behind the active one so they can fade out */
.flip-item.is-bg.is-old {
  z-index: 0;
}

.flip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card Content Overlay */
.card-content {
  position: absolute;
  bottom: 0; left: 0; width: 100%; padding: 16px; z-index: 2; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  opacity: 1;
  transition: opacity 0.3s;
}
.flip-item.is-bg .card-content {
  opacity: 0; /* hide card text when it becomes background */
  pointer-events: none;
}

.card-tag { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.8); margin-bottom: 6px; }
.card-tag::before { content: ''; display: block; width: 10px; height: 2px; background: #fff; }
.card-title { font-family: var(--font-display); font-size: 16px; line-height: 1.1; font-weight: 700; text-transform: uppercase; margin: 0; }

/* Controls */
.hero-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  width: 100%;
  margin-top: 16px; 
}
.hero-nav { display: flex; gap: 12px; }
.nav-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05); backdrop-filter: blur(4px); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease;
}
.nav-btn:hover { background: rgba(255,255,255,0.2); border-color: #fff; }
.nav-btn svg { width: 20px; height: 20px; }

.hero-progress { flex: 1; max-width: 150px; height: 2px; background: rgba(255,255,255,0.2); position: relative; }
.progress-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: var(--crimson-500); }
.hero-counter { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; text-align: right; }

/* Remove old styles */



.feature-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-surface);
  border: var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--duration-normal) var(--easing-standard), transform var(--duration-normal) var(--easing-standard);
}
@media (min-width: 1024px) {
  .feature-card {
    grid-template-columns: 1fr 1fr;
  }
}
.feature-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}
.feature-card__content {
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}
@media (min-width: 1024px) {
  .feature-card__content { padding: var(--space-12); }
}
.feature-card__media {
  position: relative;
  overflow: hidden;
}
.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

/* ---------- Grid Systems & Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
.card-grid--tight { gap: var(--space-6); }

.vertical-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--card-shadow);
  transition: all var(--duration-normal) var(--easing-standard);
}
.vertical-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}
.vertical-card__media {
  border-radius: var(--card-media-radius);
  overflow: hidden;
  aspect-ratio: 3/2;
}
.vertical-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--easing-standard);
}
.vertical-card:hover .vertical-card__media img {
  transform: scale(1.04);
}

.proof-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--card-shadow);
  transition: all var(--duration-normal) var(--easing-standard);
}
.proof-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}
.proof-card__media {
  margin-top: var(--space-5);
  border-radius: var(--card-media-radius);
  overflow: hidden;
  aspect-ratio: 3/2;
}
.proof-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Stats Row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding-block: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
@media (min-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
@media (min-width: 768px) {
  .stat:not(:first-child) {
    padding-left: var(--space-6);
    border-left: 1px solid var(--border-subtle);
  }
}
.stat__number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: var(--weight-extrabold);
  line-height: 1;
  color: var(--text-brand);
}
@media (min-width: 1024px) {
  .stat__number { font-size: 52px; }
}
.stat__label {
  font-size: 13px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ---------- Intros & Section Titles ---------- */
.intro {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}
.intro .eyebrow::before {
  display: none;
}

.intro--left {
  margin-inline: 0;
  text-align: left;
  align-items: flex-start;
}

.section-title-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: flex-end;
  margin-bottom: var(--space-10);
}
@media (min-width: 1024px) {
  .section-title-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

/* ---------- CTA Split Section ---------- */
.cta-split {
  background: var(--bg-surface);
  border: var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 1024px) {
  .cta-split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.cta-split__content {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
}
@media (min-width: 1024px) {
  .cta-split__content { padding: var(--space-16); }
}
.cta-split__media {
  position: relative;
  overflow: hidden;
}
.cta-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

/* ---------- Forms & Inputs ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-16);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.form-label {
  font-size: 14px;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}
.form-control {
  width: 100%;
  height: 48px;
  padding-inline: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.form-control:focus {
  border-color: var(--text-brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring-color);
}
textarea.form-control {
  height: auto;
  padding-block: var(--space-3);
  resize: vertical;
  min-height: 120px;
}

.info-card {
  background: var(--bg-surface);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  border-top: 1px solid #1C1C26;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
  }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.footer-brand img { height: 42px; width: auto; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  margin-bottom: var(--space-4);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col a {
  color: var(--footer-text);
  font-size: 14px;
}
.footer-col a:hover { color: #FFFFFF; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer-rc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--crimson-400);
  font-weight: var(--weight-semibold);
}
