/*
Theme Name: The Kings City Club
Author: Kings City
Description: Premium Co-Working Theme
Version: 1.3.4
*/

/* style.css — kings city design system */

/* Global Layout Fix: Prevent stray elements from causing whole-page horizontal scroll */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* @font-face — self-hosted typography */

/* hero-light — custom typography */
@font-face {
  font-family: 'Hero-Light-Bold';
  src: url('assets/fonts/Hero-Light-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hero-Light-Regular';
  src: url('assets/fonts/Hero-Light-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* css custom properties — design tokens */

:root {
  /* ── Brand Color Hierarchy (Finalized 2026-05-21) ── */
  --color-primary: #BD451F;
  /* Earthy Terracotta — branding & headings */
  --color-secondary: #FFBFBF;
  /* Soft Blush — even content panels background */
  --color-accent-red: #AC201A;
  /* Deep Red — official primary button background */
  --color-accent-gold: #FBCB77;
  /* Muted Gold — prestige accents & status indicators only */
  --color-bg-ivory: #FFF9EF;
  /* Warm Ivory — hero & odd content panels background */
  --color-btn-hover: #8E1510;
  /* Crimson Maroon — premium deep button hover state */
  --color-text: #2B2B2B;
  /* Charcoal — primary text */
  --color-border: rgba(189, 69, 31, 0.2);
  /* Subtly tinted luxury separator lines */
  --color-border-light: rgba(189, 69, 31, 0.15);
  /* Lighter separator used in timeline lines and borders */
  --color-header-scroll: #db582e;
  /* Brighter Terracotta for scrolled state */

  /* ── legacy aliases kept for layout.css compatibility ── */
  /* These map old names to new canonical values so no layout.css rules break */
  --color-accent: var(--color-accent-red);
  /* Deep Red (button alias) */
  --color-hover: var(--color-btn-hover);
  /* Crimson Maroon (hover alias) */

  /* ── typography ── */
  --font-heading: 'Hero-Light-Bold';
  --font-body: 'Hero-Light-Regular';

  /* ── shape ── */
  --radius-pill: 0;
  --radius-card: 0;
  --radius-card-sm: 0;

  /* ── glass ui tokens ── */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-bg-dark: rgba(189, 69, 31, 0.65);
  --glass-blur: blur(18px);
  --glass-blur-strong: blur(28px);
  --glass-border: 1px solid rgba(189, 69, 31, 0.2);
  --glass-border-light: 1px solid rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --glass-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);

  /* ── spacing scale (the commons rhythm) ── */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 1rem;
  /* 16px */
  --space-md: 1.5rem;
  /* 24px */
  --space-lg: 2.5rem;
  /* 40px */
  --space-xl: 4rem;
  /* 64px */
  --space-2xl: 6rem;
  /* 96px */
  --space-3xl: 8rem;
  /* 128px */

  /* ── section vertical rhythm ── */
  --section-padding-y: clamp(2.5rem, 4vw, 3.5rem);

  /* ── transitions ── */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-base: 0.35s var(--ease-smooth);
  --transition-slow: 0.5s var(--ease-smooth);

  /* ── z-index scale ── */
  --z-header: 1000;
  --z-mega-menu: 999;
  --z-overlay: 998;
  --z-drawer: 1001;
}


/* global reset & base styles */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  /* 16px base */
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg-ivory);
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent-red);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-btn-hover);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: var(--font-body);
  font-size: 1rem;
}


/* typography system */

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

h1 {
  font-size: 48px !important;
  font-weight: 800;
}

h2 {
  font-size: 40px !important;
}

h3 {
  font-size: 18px !important;
}

h4 {
  font-size: clamp(1.1rem, 1.5vw + 0.25rem, 1.35rem);
}

p {
  margin-bottom: 1em;
  max-width: 68ch;
}

.text-display {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.text-lead {
  font-size: clamp(1.125rem, 1.5vw, 1.35rem);
  line-height: 1.65;
  color: var(--color-text-muted);
}

.text-caption {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.text-overline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-red);
}


/* component primitives — buttons */

/* Primary Button (btn, btn-primary, submit, cta-button) */
.btn,
.btn-primary,
button[type="submit"],
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.875rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-secondary) !important;
  /* Soft Blush (Option B) */
  color: var(--color-primary) !important;
  /* Terracotta Text */
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid var(--color-secondary);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  white-space: nowrap;
}

.btn:hover,
.btn-primary:hover,
button[type="submit"]:hover,
.cta-button:hover {
  background-color: var(--color-accent-gold) !important;
  /* Muted Gold universal hover */
  color: var(--color-primary) !important;
  /* Terracotta text on hover */
  border-color: var(--color-accent-gold) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(251, 203, 119, 0.4);
}

/* Explicit Red Button Utility (e.g. for Book Now in Header) */
.btn--red {
  background-color: var(--color-accent-red) !important;
  color: var(--color-bg-ivory) !important;
  border-color: var(--color-accent-red) !important;
}

.btn--red:hover {
  background-color: var(--color-accent-gold) !important;
  color: var(--color-primary) !important;
  border-color: var(--color-accent-gold) !important;
}

/* Even Panels (Soft Blush backgrounds) - Deep Red Button */
.content-panel:nth-of-type(even) .btn,
.content-panel:nth-of-type(even) .btn-primary,
.content-panel:nth-of-type(even) button[type="submit"],
.content-panel:nth-of-type(even) .cta-button {
  background-color: var(--color-accent-red) !important;
  color: var(--color-bg-ivory) !important;
  border-color: var(--color-accent-red) !important;
}

.content-panel:nth-of-type(even) .btn:hover,
.content-panel:nth-of-type(even) .btn-primary:hover,
.content-panel:nth-of-type(even) button[type="submit"]:hover,
.content-panel:nth-of-type(even) .cta-button:hover {
  background-color: var(--color-accent-gold) !important;
  color: var(--color-primary) !important;
  border-color: var(--color-accent-gold) !important;
}

.btn:active,
.btn-primary:active,
button[type="submit"]:active,
.cta-button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Secondary / Ghost / Outline Buttons */
.btn-secondary,
.btn-outline {
  background-color: transparent !important;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary) !important;
  transition: all 0.3s ease-in-out;
}

.btn-secondary:hover,
.btn-outline:hover {
  background-color: rgba(189, 69, 31, 0.08) !important;
  color: var(--color-primary) !important;
  transform: translateY(-2px);
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
}

.btn--small {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

/* button with arrow svg icon */
.btn svg,
.btn-primary svg,
.cta-button svg {
  width: 1em;
  height: 1em;
  transition: transform var(--transition-fast);
}

.btn:hover svg,
.btn-primary:hover svg,
.cta-button:hover svg {
  transform: translateX(3px);
}


/* component primitives — glass card */

.card-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
}

.card-glass:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow-lg);
}

.card-glass--strong {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
}

.card-glass__img {
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-glass__body {
  padding: var(--space-md);
}

.card-glass__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.card-glass__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}


/* utility classes */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}


/* skip link (accessibility) */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: calc(var(--z-header) + 10);
  padding: 0.75rem 1.5rem;
  background: var(--color-accent-red);
  color: var(--color-bg-ivory);
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}


/* section-level decoration */

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

/* ── DEFAULT HERO (All Pages): Ivory ── */
#hero-section,
.premium-hero {
  background-color: var(--color-bg-ivory) !important;
  background-image: none !important;
  margin: 0 !important;
}

#hero-section h1,
#hero-section h2,
#hero-section h3 {
  color: var(--color-primary);
}

#hero-section .hero__subtitle,
#hero-section .hero__overline,
#hero-section p {
  color: var(--color-text-muted);
}

/* ── FRONT PAGE HERO: Terracotta ── */
.home #hero-section {
  background-color: var(--color-primary) !important;
  margin-bottom: 0 !important;
}

.home #hero-section h1,
.home #hero-section h2,
.home #hero-section h3,
.home #hero-section h1.hero__title--inner,
.home #hero-section .hero__subtitle,
.home #hero-section .hero__overline,
.home #hero-section p {
  color: var(--color-bg-ivory) !important;
}

.home #hero-section h1.hero__title--inner {
  color: #FFBFBF !important;
}

.home #hero-section h1.hero__welcome {
  color: var(--color-bg-ivory) !important;
}

/* ── DEFAULT ALTERNATING LAYOUT RHYTHM (All Pages) ──
   LAYER A (odd panels)  → Warm Ivory  var(--color-bg-ivory)
   LAYER B (even panels) → Soft Blush  var(--color-secondary)
*/
.content-panel:nth-of-type(odd) {
  background-color: var(--color-bg-ivory);
  color: var(--color-text);
}

.content-panel:nth-of-type(even) {
  background-color: var(--color-secondary);
  color: var(--color-text);
}

/* ── FRONT PAGE SPECIFIC RHYTHM (Terracotta / Blush) ──
   Used ONLY on front-page.php (via .front-page-main)
   LAYER A (odd panels)  → Terracotta  var(--color-primary) with Ivory Text
   LAYER B (even panels) → Soft Blush  var(--color-secondary) with Terracotta Headings
*/
.front-page-main .content-panel:nth-of-type(odd) {
  background-color: var(--color-primary);
  color: var(--color-bg-ivory);
}

.front-page-main .content-panel:nth-of-type(odd) h1,
.front-page-main .content-panel:nth-of-type(odd) h2,
.front-page-main .content-panel:nth-of-type(odd) h3,
.front-page-main .content-panel:nth-of-type(odd) h4 {
  color: var(--color-bg-ivory);
}

.front-page-main .content-panel:nth-of-type(odd) .text-lead,
.front-page-main .content-panel:nth-of-type(odd) .text-caption,
.front-page-main .content-panel:nth-of-type(odd) p {
  color: rgba(255, 249, 239, 0.9);
  /* Slightly softened ivory for long text */
}

.front-page-main .content-panel:nth-of-type(odd) .text-overline {
  color: var(--color-bg-ivory);
  /* Ivory on Terracotta */
}

.front-page-main .content-panel:nth-of-type(even) {
  background-color: var(--color-secondary);
  color: var(--color-text);
}

.front-page-main .content-panel:nth-of-type(even) h1,
.front-page-main .content-panel:nth-of-type(even) h2,
.front-page-main .content-panel:nth-of-type(even) h3,
.front-page-main .content-panel:nth-of-type(even) h4 {
  color: var(--color-primary);
}

.front-page-main .content-panel:nth-of-type(even) .text-overline {
  color: var(--color-accent-red);
  /* Red on Blush */
}

/* ── Legacy section modifier overrides ── */
/* .section--alt now maps to Soft Blush (was Gold) */
.section--alt {
  background-color: var(--color-secondary);
}

/* Dark terracotta sections (kept for impact/social proof panels) */
.section--teal {
  background-color: var(--color-accent-red);
  color: var(--color-bg-ivory);
}

.section--teal h2,
.section--teal h3,
.section--teal h4 {
  color: var(--color-bg-ivory);
}

.section--teal .text-lead {
  color: rgba(255, 255, 255, 0.8);
}

.section--brown {
  background-color: var(--color-primary);
  color: var(--color-bg-ivory);
}

.section--brown h2,
.section--brown h3 {
  color: var(--color-bg-ivory);
}

.section__header {
  margin-bottom: var(--space-lg);
}

.section__header .text-overline {
  margin-bottom: var(--space-xs);
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent-red);
  border: none;
  border-radius: var(--radius-pill);
  margin: var(--space-md) 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}


/* layout.css — kings city adaptive layout blueprint */

/* container system */

.container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container--narrow {
  max-width: 960px;
}

.container--wide {
  max-width: 1600px;
}

.container--full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}


/* grid system — 12-column css grid */

.grid {
  display: grid;
  gap: var(--space-md);
}

/* column span utilities — mobile: full width by default */
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12 {
  grid-column: span 1;
}

/* grid presets */
.grid-2 {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

.grid-3 {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

.grid-4 {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

.grid-12 {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}


/* flexbox utility layouts */

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-xs {
  gap: var(--space-xs);
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}


/* header — sticky glass header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: 1rem 0;
  transition: background var(--transition-base),
    backdrop-filter var(--transition-base),
    padding var(--transition-base),
    box-shadow var(--transition-base),
    top var(--transition-base);
}

/* initial state: ivory glass header */
.site-header:not(.is-scrolled) {
  background: rgba(255, 249, 239, 0.85);
  /* Ivory with glass effect */
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border-bottom: var(--glass-border-light);
}

/* scrolled state: brown glass header */
.site-header.is-scrolled {
  background: rgba(219, 88, 46, 0.88);
  /* Brighter Terracotta glass (#db582e) */
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  box-shadow: var(--glass-shadow);
  padding: 0.625rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-primary);
  transition: color var(--transition-base);
  animation: logoReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.site-header.is-scrolled .site-header__logo {
  color: var(--color-text-light);
}

/* logo icon: toggle between black and white images */
.site-header__logo .logo-white {
  display: none;
}

.site-header.is-scrolled .site-header__logo .logo-black {
  display: none;
}

.site-header.is-scrolled .site-header__logo .logo-white {
  display: block;
}

.site-header__logo svg {
  width: 40px;
  height: 40px;
}

.site-header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}


/* desktop navigation (hidden on mobile, visible at 1024px+) */

.nav-desktop {
  display: none;
}

.nav-desktop__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  /* slightly reduced for better fit with 2 buttons */
}

.nav-desktop__link {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-base);
}

.site-header.is-scrolled .nav-desktop__link {
  color: rgba(255, 255, 255, 0.85);
}

.nav-desktop__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-pill);
  transition: width var(--transition-base);
}

.nav-desktop__link:hover {
  color: #FBCB77 !important;
}

.site-header.is-scrolled .nav-desktop__link:hover {
  color: #FBCB77 !important;
}

.nav-desktop__link:hover::after {
  width: 100%;
  background: #FBCB77 !important;
}

.nav-desktop__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}


/* mobile navigation — hamburger + drawer */

.nav-mobile-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: calc(var(--z-drawer) + 1);
  padding: 0;
  position: relative;
}

.nav-mobile-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  transition: transform var(--transition-base),
    opacity var(--transition-fast);
}

/* hide burger bars and show svg x when drawer is open */
.nav-mobile-toggle__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast), transform var(--transition-base);
}

.nav-mobile-toggle__close {
  display: none;
  color: var(--color-primary);
  position: absolute;
}

.nav-mobile-toggle.is-active .nav-mobile-toggle__burger {
  opacity: 0;
  transform: rotate(90deg);
}

.nav-mobile-toggle.is-active .nav-mobile-toggle__close {
  display: block;
}

/* mobile drawer */
.nav-drawer__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #FBCB77;
  z-index: var(--z-drawer);
  padding: 6rem 2rem 2rem;
  transition: right var(--transition-base);
  overflow-y: auto;
}

.nav-drawer.is-open {
  right: 0;
}

.nav-drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 43, 43, 0.4);
  z-index: calc(var(--z-drawer) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base),
    visibility var(--transition-base);
}

.nav-drawer__overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.nav-drawer__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-drawer__link {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-light);
  transition: color var(--transition-fast),
    padding-left var(--transition-fast);
}

.nav-drawer__link:hover {
  color: #FBCB77;
  padding-left: 0.5rem;
}


/* hero section — split layout adaptive (unified across all pages) */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  /* changed from center to anchor top position */
  padding-top: calc(var(--space-3xl) + 120px);
  /* increased for consistent breathing room */
  padding-bottom: var(--space-2xl);
  overflow: hidden;
}

/* page-specific background logic (mandate: white vs cream rhythm) */
.hero--white {
  background-color: var(--color-bg-ivory);
}

.hero--cream {
  background-color: var(--color-bg-ivory);
}

.hero__slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  /* consistent desktop ratio */
  overflow: hidden;
  border-radius: var(--radius-card);
}

.hero__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-color: var(--color-border-light);
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__overline {
  display: block;
  margin-bottom: 1rem;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
}

.hero__title {
  color: var(--color-primary);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  margin-left: auto;
  margin-right: auto;
}

/* modifier to prevent long titles from stretching the hero row taller than the slider card */
.hero__title--inner {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 100%;
  text-wrap: pretty;
}

/* Unique styling for the Offshoring Page Hero Title */
.hero__title--offshoring {
  white-space: normal !important;
  line-height: 1.15;
  max-width: none !important;
  text-wrap: pretty; /* Prevents awkward blocky wrapping from balance */
}

/* Responsive grouping classes for hero titles */
.group-desktop { display: inline; }
.group-mobile { display: none; }

@media (max-width: 767px) {
  .group-desktop { display: none; }
  .group-mobile { display: inline; }
}

.hero__subtitle {
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: var(--space-xl);
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero__actions--center {
  display: flex;
  justify-content: center;
}

/* index-specific hero mobile logic (the commons style) */
.hero__content--index {
  text-align: left;
}

.hero__content--index .hero__title,
.hero__content--index .hero__subtitle {
  margin-left: 0;
  margin-right: 0;
}

.hero__actions--index {
  display: block;
  /* Completely removes flexbox constraints from children */
  margin-top: var(--space-lg) !important;
  width: 100%;
}

.hero__actions--index .btn,
.hero__actions--index .btn-primary {
  display: inline-flex !important;
  height: auto !important;
  max-height: 54px !important;
  /* FORCE strict pill height */
  line-height: 1 !important;
  padding: 14px 30px !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}



/* responsive adaptations (strict mobile-first) */

@media (max-width: 1023px) {
  .hero {
    padding-top: calc(var(--space-md) + 80px);
  }

  .hero .split {
    gap: var(--space-md);
  }

  /* keep hero media on top while stacked */
  .hero .split__media {
    order: -1;
  }

  .hero .split__content {
    order: 1;
  }
}

@media (max-width: 767px) {
  .hero {
    padding-top: 80px;
    padding-bottom: var(--space-xl);
    min-height: auto;
    overflow: visible;
  }

  /* break out of container on mobile for edge-to-edge media */
  .hero .container {
    padding-left: 0;
    padding-right: 0;
  }

  .hero .split {
    gap: 0;
  }

  .hero .split__content {
    padding-top: var(--space-sm);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero__slider {
    aspect-ratio: 16 / 10;
    margin-bottom: 0;
    border-radius: 0;
  }

  .hero__title,
  .hero__title--inner,
  .hero__welcome {
    font-size: clamp(2.25rem, 9vw, 3rem) !important;
  }
}

/* compact viewport catch-all (< 700px height or < 480px width) */
@media (max-width: 480px),
(max-height: 700px) and (max-width: 767px) {
  .hero {
    padding-top: 70px;
    padding-bottom: var(--space-md);
  }

  .hero__slider {
    aspect-ratio: 16 / 7;
    margin-bottom: 0;
  }

  .hero__title,
  .hero__title--inner,
  .hero__welcome {
    font-size: 2.0rem !important;
    margin-bottom: 0.5rem;
  }

  .hero__subtitle {
    font-size: 0.85rem;
    margin-bottom: var(--space-lg);
    line-height: 1.45;
  }

  .hero__overline {
    margin-bottom: 0.5rem;
    font-size: 0.65rem;
  }
}


/* trust bar — brand logos */

.trust-bar-section {
  padding: 5rem 0;
}

.trust-bar-wrapper {
  overflow: hidden;
  width: 100%;
  padding: var(--space-xs) 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.trust-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 25s linear infinite;
}

.trust-bar:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.trust-bar__logo-box {
  height: 40px;
  margin: 0 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-bar__logo {
  width: auto;
  height: 100%;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(20%) contrast(80%);
  transition: filter var(--transition-base), transform var(--transition-base);
}

.trust-bar__logo:hover {
  filter: grayscale(0%) contrast(100%);
  transform: scale(1.1);
}


/* logo banner section — uniform horizontal grid */

.logo-banner {
  padding: 6rem 0;
  background-color: var(--color-bg-ivory);
  /* inherits Ivory via content-panel alternating rhythm */
  border-top: 1px solid rgba(189, 69, 31, 0.05);
  border-bottom: 1px solid rgba(189, 69, 31, 0.05);
}

.logo-banner__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl) var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
}

.logo-banner__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 50px;
  opacity: 0.75;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.logo-banner__item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.logo-banner__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 767px) {
  .logo-banner {
    padding: var(--space-xl) 0;
  }

  .logo-banner__grid {
    gap: var(--space-lg) var(--space-xl);
  }

  .logo-banner__item {
    width: 140px;
    height: 40px;
  }
}

/* feature cards grid section */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.feature-card {
  padding: var(--space-lg);
  text-align: center;
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 203, 119, 0.1);
  border-radius: 50%;
  color: var(--color-accent);
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
}

.feature-card__title {
  margin-bottom: var(--space-xs);
}

.feature-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 36ch;
  margin: 0 auto;
}


/* split content section (image + text side by side on desktop) */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

/* ensure media is always on top on mobile, mirroring the commons pattern */
@media (max-width: 767px) {
  .split__media {
    order: -1;
  }

  .split__content {
    order: 1;
  }
}

.split__media {
  border-radius: var(--radius-card);
  overflow: hidden;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.split__content {
  padding: var(--space-sm) 0;
}

.split__content h2 {
  margin-bottom: var(--space-md);
}

.split__content p {
  margin-bottom: var(--space-lg);
}


/* spaces showcase cards */

.spaces-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* mobile carousel for spaces (the commons pattern) */
@media (max-width: 767px) {
  .spaces-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1.25rem;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    scrollbar-width: none;
    /* firefox */
  }

  .spaces-grid::-webkit-scrollbar {
    display: none;
    /* chrome/safari */
  }

  .spaces-grid>.space-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
}

.space-card {
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .section--map {
    padding-top: var(--space-sm) !important;
    padding-bottom: var(--space-sm) !important;
  }

  .section--map .split {
    gap: 0 !important;
  }

  .section--map .split__media img {
    max-height: 200px !important;
  }
}

/* core values specific cards and section */

.core-values-section {
  background-color: var(--color-bg-ivory);
  padding: 8rem 0;
}

.core-values-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.core-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  align-items: stretch;
}

.core-value-card {
  background: var(--color-bg-ivory);
  padding: 3rem 2.5rem;
  text-align: left;
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
}

.core-value-number {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  position: relative;
}

.core-value-number::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 24px;
  width: 20px;
  height: 1px;
  background-color: var(--color-accent);
  transform: translateY(-50%);
  opacity: 0.5;
}

.core-value-card h3 {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.core-value-card p {
  color: var(--color-text);
  /* deeper, sophisticated muted slate */
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.core-value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(189, 69, 31, 0.06);
}

/* Tablet */
@media (max-width: 1024px) {
  .core-values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .core-values-section {
    padding: 3rem 0;
    /* tightened section padding */
  }

  .core-values-container {
    padding-left: 0;
    padding-right: 0;
  }

  .core-values-container>.text-center {
    margin-bottom: var(--space-xl) !important;
    /* tighter header margin */
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .core-values-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1.25rem;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-md);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    gap: var(--space-sm);
    /* tightened gap */
    scrollbar-width: none;
    /* firefox */
  }

  .core-values-grid::-webkit-scrollbar {
    display: none;
    /* chrome/safari */
  }

  .core-values-grid>.core-value-card {
    flex: 0 0 80%;
    /* cards take up 80% of width, showing a peek of the next */
    scroll-snap-align: start;
    height: auto;
    padding: 2.5rem 2rem;
    /* slightly tighter internal padding for mobile */
  }
}

.space-card__img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.space-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.space-card:hover .space-card__img {
  transform: scale(1.05);
}

.space-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 0.375rem 0.875rem;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
}

.space-card__body {
  padding: var(--space-md);
}

.space-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.375rem;
}

.space-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.space-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-md) var(--space-md);
  margin-top: auto;
}

.space-card__capacity {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.375rem 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  background: transparent;
}


/* cta banner — full-width call to action */

.cta-banner {
  position: relative;
  padding: var(--space-2xl) 0;
  text-align: center;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg,
      var(--color-accent) 0%,
      var(--color-primary) 100%);
}

.cta-banner h2 {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 48ch;
  margin: 0 auto var(--space-lg);
}


/* journal preview (latest reports) */

.journal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.journal-grid>article {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 500px;
  /* Forces cards in different sections to match height */
}

.journal-grid>article>div:last-child {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.journal-grid>article>div:last-child>div:last-child {
  margin-top: auto;
}

/* mobile carousel for journal (the commons pattern) */
@media (max-width: 767px) {
  .journal-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1.25rem;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    scrollbar-width: none;
    align-items: stretch;
    /* Enforce uniform heights across the row */
  }

  .journal-grid::-webkit-scrollbar {
    display: none;
  }

  .journal-grid>article {
    flex: 0 0 85%;
    flex-shrink: 0;
    /* Prevent crushing */
    width: 85%;
    max-width: 320px;
    /* Optional cap to keep them looking good on large phones */
    height: auto;
    scroll-snap-align: start;
  }

  .journal-cta-wrap--desktop {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .journal-cta-wrap--mobile {
    display: none !important;
  }
}

.journal-card__img {
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.journal-card__body {
  padding: var(--space-md);
}

.journal-card__meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
}

.journal-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.journal-card__excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* footer */

.site-footer {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast);
}

.site-footer a:hover {
  color: #FBCB77; /* Muted Gold */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.footer-col__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col__list a {
  font-size: 0.9375rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
}

.footer-bottom__copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom__links {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.footer-bottom__links a {
  font-size: 0.8125rem;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition-fast);
}

.footer-social__link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-social__link svg {
  width: 18px;
  height: 18px;
  fill: var(--color-text-light);
  transition: fill var(--transition-fast);
}

.footer-social__link:hover svg {
  fill: #FBCB77; /* Muted Gold */
}


/* responsive breakpoints — mobile-first, desktop-adaptive */


/* bp: 480px — large mobile */

@media (min-width: 480px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .spaces-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* bp: 768px — tablet */

@media (min-width: 768px) {
  :root {
    --section-padding-y: var(--space-xl);
  }

  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .hero .split {
    grid-template-columns: 1fr;
  }

  .split--reverse {
    direction: rtl;
  }

  .split--reverse>* {
    direction: ltr;
  }

  .stat-bar {
    grid-template-columns: repeat(4, 1fr);
  }

  .journal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* center the 3rd journal card on ipad view (2 columns) */
  .journal-grid>article:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    /* max width is exactly 50% minus half the gap so it matches the other cards */
    max-width: calc(50% - (var(--space-md) / 2));
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .hero .split__content {
    max-width: 600px;
  }


}


/* bp: 1024px — small desktop (mega menu activates) */

@media (min-width: 1024px) {
  :root {
    --section-padding-y: var(--space-2xl);
  }

  .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  /* desktop nav on, mobile toggle off */
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
    /* consistent spacing between the link list and the action button */
  }

  .nav-mobile-toggle {
    display: none;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .spaces-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .journal-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* reset centering for 3-column desktop view */
  .journal-grid>article:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: auto;
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero .split {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
    align-items: flex-start;
    /* Anchor top to prevent jumping, matching other pages */
  }

  /* front-page specific right content column at desktop — vertically centered */
  .hero .hero__content--index {
    align-self: center !important;
    /* Perfectly center text vertically relative to the left media */
    display: block !important;
  }

  /* when card is on the right — vertically center content at desktop */
  .hero .split--media-right {
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-start;
    /* Anchor top to prevent jumping */
  }

  /* left content column at desktop — vertically centered */
  .hero .split--media-right .split__content {
    text-align: left;
    align-self: stretch;
    /* Stretch to row height (dictated by the card) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertically center the text within its container */
    align-items: flex-start;
    /* Left align the flex items */
    padding-right: 4rem;
  }

  .hero__content {
    max-width: 680px;
    padding: var(--space-2xl) 0;
  }

  .feature-card {
    text-align: left;
  }

  .feature-card__icon {
    margin: 0 0 var(--space-md) 0;
  }

  .feature-card__text {
    margin: 0;
  }
}


/* bp: 1280px — full desktop (12-column grid active) */

@media (min-width: 1280px) {
  .container {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .grid-12 {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-md);
  }

  /* column span utilities for 12-col desktop */
  .col-1 {
    grid-column: span 1;
  }

  .col-2 {
    grid-column: span 2;
  }

  .col-3 {
    grid-column: span 3;
  }

  .col-4 {
    grid-column: span 4;
  }

  .col-5 {
    grid-column: span 5;
  }

  .col-6 {
    grid-column: span 6;
  }

  .col-7 {
    grid-column: span 7;
  }

  .col-8 {
    grid-column: span 8;
  }

  .col-9 {
    grid-column: span 9;
  }

  .col-10 {
    grid-column: span 10;
  }

  .col-11 {
    grid-column: span 11;
  }

  .col-12 {
    grid-column: span 12;
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .split {
    gap: var(--space-2xl);
  }

  .hero__content {
    max-width: 720px;
  }

  .nav-desktop__list {
    gap: 2.5rem;
  }
}


/* bp: 1440px — large desktop (expanded whitespace) */

@media (min-width: 1440px) {
  :root {
    --section-padding-y: var(--space-3xl);
  }

  .container {
    padding-left: 5rem;
    padding-right: 5rem;
  }

  .grid-12 {
    gap: var(--space-lg);
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .hero__content {
    max-width: 780px;
  }

  .spaces-grid {
    gap: var(--space-lg);
  }
}


/* bp: 1920px — full hd desktop parity (the commons standard) */

@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
    padding-left: 6rem;
    padding-right: 6rem;
  }

  .container--wide {
    max-width: 1800px;
  }

  h1 {
    font-size: 4.5rem;
  }

  .hero__content {
    max-width: 850px;
  }

  .nav-desktop__list {
    gap: 3rem;
  }

  .features-grid {
    gap: var(--space-xl);
  }

  .split {
    gap: var(--space-3xl);
  }

  .stat-bar__number {
    font-size: 3.5rem;
  }

  .footer-grid {
    gap: var(--space-xl);
  }
}


/* animations — micro-interactions for premium feel */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.7s var(--ease-smooth) both;
}

.animate-fadeIn {
  animation: fadeIn 0.5s var(--ease-smooth) both;
}

/* staggered children animation */
.stagger-children>*:nth-child(1) {
  animation-delay: 0s;
}

.stagger-children>*:nth-child(2) {
  animation-delay: 0.1s;
}

.stagger-children>*:nth-child(3) {
  animation-delay: 0.2s;
}

.stagger-children>*:nth-child(4) {
  animation-delay: 0.3s;
}

.stagger-children>*:nth-child(5) {
  animation-delay: 0.4s;
}

.stagger-children>*:nth-child(6) {
  animation-delay: 0.5s;
}

/* scroll-triggered reveal (applied via js intersectionobserver) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-smooth),
    transform 0.6s var(--ease-smooth);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}




/* gallery carousel (horizontal scroll) */

.gallery-carousel {
  display: flex;
  gap: var(--space-xl);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0 4rem;
}

.gallery-carousel::-webkit-scrollbar {
  display: none;
}

.gallery-card {
  flex: 0 0 auto;
  width: clamp(320px, 33vw, 480px);
  aspect-ratio: 4/5;
  scroll-snap-align: center;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--color-border-light);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: var(--color-bg-ivory);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-ivory);
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: var(--color-text);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.gallery-nav:hover {
  background: var(--color-bg-alt);
  transform: translateY(-50%) scale(1.05);
}

.gallery-nav--prev {
  left: 1.5rem;
}

.gallery-nav--next {
  right: 1.5rem;
}

@media (max-width: 768px) {
  .gallery-carousel {
    padding: 0 1rem;
    gap: var(--space-md);
  }

  .gallery-card {
    width: clamp(280px, 85vw, 350px);
  }

  .gallery-nav {
    display: none;
  }
}


/* get social with us — the commons section_home-social pattern */

/* removed custom .sectionsocial .split styling to inherit standard 50/50 center-aligned split */

/* feature icons grid — 2 columns on mobile, 3 on tablet+ */
/* social-features-grid styles moved to the unified block below */

/* snake timeline */
.snake-timeline {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin: 0 auto;
}

.snake-row {
  display: flex;
  position: relative;
}

/* alternate direction for snake effect */
.snake-row:nth-child(even) {
  flex-direction: row-reverse;
}

.snake-item {
  flex: 1 1 33.333%;
  padding: 1.5rem 1rem;
  position: relative;
  text-align: center;
}

/* horizontal line */
.snake-row::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  /* aligns with padding-top of item */
  left: 16.666%;
  right: 16.666%;
  height: 2px;
  background: var(--color-border-light);
  z-index: 1;
}

.snake-row--centered-finale::before {
  left: 50% !important;
}

/* u-turn vertical line connecting rows */
.snake-row:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  bottom: -1.5rem;
  /* reaches the top of the next row's line */
  width: 2px;
  background: var(--color-border-light);
  z-index: 1;
}

/* downward connecting line on the right for odd rows */
.snake-row:nth-child(odd):not(:last-child)::after {
  right: 16.666%;
}

/* downward connecting line on the left for even rows */
.snake-row:nth-child(even):not(:last-child)::after {
  left: 16.666%;
}

/* the dot */
.snake-dot {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  border: 3px solid var(--color-bg-ivory);
  border-radius: 50%;
  z-index: 2;
  box-sizing: content-box;
}

.snake-content {
  margin-top: 1rem;
}

.snake-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
  display: block;
}

.snake-title {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.snake-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .snake-row {
    flex-direction: column !important;
  }

  .snake-row::before,
  .snake-row::after {
    display: none;
  }

  .snake-timeline {
    position: relative;
    padding-left: 2rem;
  }

  .snake-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: var(--color-border-light);
  }

  .snake-item {
    text-align: left;
    padding: 1.5rem 0 1.5rem 1.5rem;
  }

  .snake-dot {
    left: -2rem;
    top: 2.5rem;
  }

  .snake-content {
    margin-top: 0;
  }
}




/* Mission and Vision cards */
.mv-card {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.mv-card__icon {
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.mv-card__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 400;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.mv-card__text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.section--brown.mv-card .mv-card__title,
.section--brown.mv-card .mv-card__icon {
  color: var(--color-bg-ivory);
}

.section--brown.mv-card .mv-card__text,
.section--brown.mv-card .text-overline {
  color: rgba(255, 255, 255, 0.85);
}

/* media placeholders & common lists */

.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 100%;
  aspect-ratio: 4/3;
  background-color: var(--color-border-light);
  border-radius: var(--radius-card);
}

.check-list,
.icon-list {
  display: inline-flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--color-text-muted);
  text-align: left;
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.check-list li,
.icon-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-list {
  gap: 1.25rem;
}

.icon-list li {
  gap: 1rem;
}

.icon-list span {
  font-size: 0.95rem;
}


/* philosophy (what defines us) */

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.philosophy-grid--bottom {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .philosophy-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .philosophy-grid--bottom {
    grid-template-columns: repeat(2, 1fr);
  }
}

.philosophy-item__icon-wrap {
  margin-bottom: var(--space-md);
  height: auto;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophy-item__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.philosophy-item__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}


/* social member portal */

.section--social .split,
.section--pass .split,
.section--offshoring .split,
.section--spaces .split,
.section--intro .split,
.section--story .split,
.section--map .split,
.section--cda .split {
  grid-template-columns: 1fr;
}

@media (max-width: 1023px) {

  .section--pass,
  .section--offshoring,
  .section--spaces,
  .section--intro,
  .section--map {
    padding-top: var(--space-xl);
  }

  .section--social,
  .section--story,
  .section--cda {
    padding-top: var(--space-md) !important;
    padding-bottom: var(--space-md) !important;
  }



  .section--social .split,
  .section--pass .split,
  .section--offshoring .split,
  .section--spaces .split,
  .section--intro .split,
  .section--story .split,
  .section--map .split,
  .section--cda .split {
    gap: var(--space-md);
  }

  .section--social .split__media,
  .section--pass .split__media,
  .section--offshoring .split__media,
  .section--spaces .split__media,
  .section--intro .split__media,
  .section--story .split__media,
  .section--map .split__media,
  .section--cda .split__media {
    order: -1;
  }

  .section--social .split__content,
  .section--pass .split__content,
  .section--offshoring .split__content,
  .section--spaces .split__content,
  .section--intro .split__content,
  .section--story .split__content,
  .section--map .split__content,
  .section--cda .split__content {
    order: 1;
  }
}

@media (min-width: 1024px) {

  .section--social .split,
  .section--pass .split,
  .section--offshoring .split,
  .section--spaces .split,
  .section--intro .split,
  .section--story .split,
  .section--map .split,
  .section--cda .split {
    grid-template-columns: repeat(2, 1fr);
  }
}

.social-split {
  margin-bottom: var(--space-xl);
}

.social__title {
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.social__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 480px;
}

.social-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: var(--space-sm);
}

@media (max-width: 1023px) {
  .social-features-grid {
    width: 100%;
    margin-left: 0;
  }

  .social-feature {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
  }

  .social-feature__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    height: 24px;
    width: 24px;
    flex-shrink: 0;
    color: var(--color-primary);
    margin-top: 2px;
  }

  .social-feature__icon svg {
    stroke: var(--color-primary) !important;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
  }

  .social-feature__text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 0;
    max-width: 100%;
  }
}

@media (min-width: 1024px) {
  .social-features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg) var(--space-sm);
    margin-top: var(--space-xl);
  }

  .social-feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-xs);
  }

  .social-feature__icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 40px;
    margin-bottom: 0.25rem;
    color: var(--color-text);
  }

  .social-feature__text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 180px;
  }
}


/* impact section */

.section--impact {
  position: relative;
  padding: var(--space-3xl) 0;
}

.impact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0;
  aspect-ratio: auto;
}

.impact-container {
  position: relative;
  z-index: 1;
}

.impact-card {
  padding: clamp(2rem, 5vw, 4rem);
  max-width: 650px;
}

.impact__title {
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.impact__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.impact__text:last-of-type {
  margin-bottom: var(--space-xl);
}

.impact__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.impact__badges {
  display: flex;
  gap: var(--space-sm);
}

.badge-placeholder {
  width: 50px;
  height: 50px;
  background-color: var(--color-bg-ivory);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  text-align: center;
  color: var(--color-text-muted);
}


.has-mega-menu {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(251, 203, 119, 0.9);
  /* Muted Gold with glass effect */
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: var(--glass-border-light);
  box-shadow: var(--glass-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease-smooth);
  z-index: 10;
  padding: 1rem 0 !important;
  /* decisevly small padding */
}

.has-mega-menu.is-active .mega-menu,
.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu__main-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3rem;
  width: 100%;
  max-width: 1550px;
  /* match container max-width */
  margin: 0 auto;
  padding: 0 5rem;
  /* align with hero text */
}

.mega-menu__info {
  flex: 0 0 320px;
  text-align: left;
}

.mega-menu__title {
  font-family: var(--font-heading);
  font-size: 1.125rem !important;
  /* small heading */
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.15rem;
}

.mega-menu__desc {
  color: var(--color-text-muted);
  line-height: 1.4;
  font-size: 0.75rem;
  /* smaller description */
}

.mega-menu__links {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-width: 120px;
}

.mega-menu__logo-box {
  margin-left: auto;
  /* push to right */
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.mega-menu__logo-img {
  height: 64px !important;
  /* increased for premium prominence */
  width: auto !important;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.06));
  animation: megaLogoFloat 6s ease-in-out infinite;
}

@keyframes megaLogoFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.mega-menu__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mega-menu__link-arrow {
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s var(--ease-smooth);
  color: var(--color-accent);
}

.mega-menu__link:hover {
  color: var(--color-accent);
  padding-left: 0.25rem;
}

.mega-menu__link:hover .mega-menu__link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* mobile submenu toggle state */
.nav-drawer__submenu.is-active {
  display: block !important;
}

.submenu-toggle.is-active svg {
  transform: rotate(180deg);
}

.submenu-toggle svg {
  transition: transform 0.3s ease;
}


/* spaces page — page-specific styles */


/* outline button — earth terracotta border on light backgrounds (inquiry-first cta) */

.btn--outline {
  background-color: transparent !important;
  color: var(--color-primary) !important;
  /* Earthy Terracotta foundation color */
  border: 1px solid var(--color-primary) !important;
  transition: all 0.3s ease-in-out;
}

.btn--outline:hover {
  background-color: rgba(189, 69, 31, 0.08) !important;
  /* Extremely soft terracotta tint background */
  color: var(--color-primary) !important;
  /* Transitions crisp text to Earthy Terracotta */
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(189, 69, 31, 0.1);
}


/* spaces services — horizontal grid */

.spaces-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* mobile carousel for services (the commons pattern) */
@media (max-width: 767px) {
  .spaces-services-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1.25rem;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    scrollbar-width: none;
    /* firefox */
  }

  .spaces-services-grid::-webkit-scrollbar {
    display: none;
    /* chrome/safari */
  }

  .spaces-services-grid>.spaces-services__item {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
}

@media (min-width: 768px) {
  .spaces-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .spaces-services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.spaces-services__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.spaces-services__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--glass-shadow-lg);
}

.spaces-services__item-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(189, 69, 31, 0.08);
  border-radius: 50%;
  margin-bottom: var(--space-sm);
}

/* looping svg animation */
.spaces-services__item-icon svg {
  width: 32px;
  height: 32px;
  animation: pulseIcon 3s infinite ease-in-out;
}

@keyframes pulseIcon {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15) translateY(-2px);
  }

  100% {
    transform: scale(1);
  }
}

.spaces-services__item-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.spaces-services__item-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}


/* spaces pricing table — glassmorphic pricing rows */

.spaces-price-table {
  background: rgba(251, 203, 119, 0.55);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-card-sm);
  overflow: hidden;
  margin: var(--space-lg) auto;
  max-width: 440px;
  text-align: left;
}

.spaces-price-table__head {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  padding: 0.75rem 1.25rem;
  background: rgba(189, 69, 31, 0.08);
  border-bottom: 1px solid rgba(189, 69, 31, 0.1);
}

.spaces-price-table__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(189, 69, 31, 0.06);
}

.spaces-price-table__row:last-child {
  border-bottom: none;
}

.spaces-price-table__row span:last-child {
  font-weight: 600;
  color: var(--color-text);
}


/* spaces cta buttons container */

.spaces-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-lg);
}


/* spaces page — responsive breakpoints */

/* 768px — services split goes side-by-side */
@media (min-width: 768px) {
  .spaces-services-split {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-xl);
  }

  .spaces-services__logo-container {
    width: 260px;
    height: 260px;
  }
}

/* 1024px — larger ring, more breathing room */
@media (min-width: 1024px) {
  .spaces-services__logo-container {
    width: 300px;
    height: 300px;
  }

  .spaces-services__logo-center {
    width: 110px;
    height: 110px;
  }
}

/* 1440px — premium spacing */
@media (min-width: 1440px) {
  .spaces-services-split {
    gap: var(--space-2xl);
  }

  .spaces-services__logo-container {
    width: 340px;
    height: 340px;
  }

  .spaces-services__logo-center {
    width: 120px;
    height: 120px;
  }
}


/* offshoring page — page-specific styles */


/* offshoring process — card grid */

.off-process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.off-process-steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--color-primary);
  z-index: 0;
}

/* mobile carousel for offshoring process (the commons pattern) */
@media (max-width: 767px) {
  .off-process-steps {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1.25rem;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    scrollbar-width: none;
    /* firefox */
  }

  .off-process-steps::-webkit-scrollbar {
    display: none;
    /* chrome/safari */
  }

  .off-process-steps>.off-process-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  .off-process-steps::before {
    display: none;
  }
}

.off-process-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  text-align: center;
  position: relative;
  z-index: 1;
}

.off-process-card__num {
  position: relative;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-card-sm);
  background: rgba(189, 69, 31, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
  z-index: 2;
}

.off-process-card__num span {
  position: absolute;
  bottom: -6px;
  left: -6px;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.off-process-card__body {
  padding: var(--space-lg);
}

.off-process-card__body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.off-process-card__body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.off-process-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.off-process-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-sm);
}

.off-process-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(189, 69, 31, 0.08);
  border-radius: 50%;
  margin-bottom: var(--space-md);
}

.off-process-card__icon svg {
  width: 28px;
  height: 28px;
  animation: pulseIcon 3s infinite ease-in-out;
}

.off-process-card__img {
  margin-top: auto;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  width: 100%;
  margin-bottom: var(--space-md);
}

.off-process-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.off-process-card__breakdown {
  background: rgba(189, 69, 31, 0.06);
  border-radius: var(--radius-card-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: left;
  margin-top: auto;
}

@media (max-width: 900px) and (min-width: 768px) {
  .off-process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .off-process-steps::before {
    display: none;
  }
}

@media (max-width: 540px) {
  .off-process-steps {
    grid-template-columns: 1fr;
  }
}


/* offshoring roles — grid of role items */

.off-roles-desktop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.off-roles-mobile-row {
  display: contents; /* Flattens hierarchy so items join the desktop grid */
}

.off-role-item {
  background: var(--color-surface, #fff);
  border: 1px solid rgba(189, 69, 31, 0.12);
  border-radius: var(--radius-card);
  padding: 1.35rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.off-role-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 28px rgba(189, 69, 31, 0.14);
  transform: translateY(-3px);
}

.off-role-item h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0;
}

.off-role-item p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.off-role-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: rgba(189, 69, 31, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* mobile view (< 768px): two opposite-scrolling rows */
@media (max-width: 767px) {
  .off-roles-desktop-grid {
    display: block; /* Disable the desktop grid wrapper */
  }

  .off-roles-mobile-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1.25rem;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    scrollbar-width: none;
  }

  .off-roles-mobile-row::-webkit-scrollbar {
    display: none;
  }

  .off-roles-mobile-row--2 {
    direction: rtl; /* Second row starts on the right, scrolls left */
    margin-top: var(--space-md);
  }

  .off-roles-mobile-row--2 > * {
    direction: ltr; /* Reset text direction inside cards */
  }

  .compact-mobile {
    flex: 0 0 85%;
    scroll-snap-align: start;
    padding: 1.35rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-right: var(--space-sm);
  }
  
  .off-roles-mobile-row--2 .compact-mobile {
    margin-right: 0;
    margin-left: var(--space-sm); /* Reverse margin for RTL row */
  }

  .compact-mobile p {
    display: block;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .off-roles-desktop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .off-roles-desktop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* offshoring comparison table — premium glassmorphic table */

.compare-table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--space-xl);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
  text-align: left;
  background-color: var(--color-bg-ivory);
  /* premium ivory background */
}

.compare-table th {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-bg-ivory);
}

.compare-table th.head-dark,
.compare-table th.head-accent {
  background-color: var(--color-primary);
}

.compare-table td {
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  border-bottom: 1px solid rgba(189, 69, 31, 0.08);
  font-weight: 500;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td.col-highlight {
  color: var(--color-primary);
  font-weight: 700;
}

/* distinct brown vertical line separator in the middle */
.compare-table th:nth-child(2),
.compare-table td:nth-child(2) {
  border-right: 2px solid var(--color-primary);
}

.compare-table tbody tr:hover {
  background-color: rgba(189, 69, 31, 0.02);
}

.compare-table-footer {
  padding: 1rem 1.5rem;
  background-color: rgba(189, 69, 31, 0.04);
  border-top: 1px solid var(--color-border-light);
}

.compare-table-footer p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  font-style: italic;
}

.compare-table-footer a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
}

/* Responsive Table for Tablet / iPad Mini */
@media (max-width: 1024px) {

  .compare-table th,
  .compare-table td {
    padding: 1rem 1rem;
  }
}

/* Mobile Stacked Cards for Comparison Table */
@media (max-width: 767px) {
  .compare-table-wrapper {
    overflow-x: visible;
  }

  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table {
    min-width: 0;
    background-color: transparent;
  }

  .compare-table tr {
    margin-bottom: var(--space-md);
    background: var(--color-bg-ivory);
    border-radius: var(--radius-card);
    padding: var(--space-md) var(--space-md) var(--space-xs) var(--space-md);
    border: 1px solid var(--color-border-light);
  }

  .compare-table td {
    padding: var(--space-sm) 0 var(--space-sm) 50%;
    text-align: right;
    position: relative;
    border: none !important;
  }

  .compare-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: var(--space-sm);
    font-weight: 700;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    max-width: 90%;
  }

  .compare-table td.col-highlight {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   Brand List (Interactive Tabs)
   ========================================================================== */
.brand-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--color-border-light);
}

.brand-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--space-xl);
  border-bottom: 1px solid var(--color-border-light);
  cursor: pointer;
  transition: all 0.3s ease;
  gap: var(--space-md);
}

.brand-list__info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  /* allows badge to wrap below title gracefully on tiny screens */
  flex-grow: 1;
}

.brand-list__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--color-text);
}

.brand-list__badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  white-space: nowrap;
  /* Prevents text from breaking and warping the pill shape */
}

.brand-list__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  /* Prevents button from squishing when text wraps */
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.brand-list__item:hover .brand-list__icon,
.brand-list__item.is-active .brand-list__icon {
  background: var(--color-accent);
  color: var(--color-text-light);
  border-color: var(--color-accent);
}

.brand-list__item.is-active .brand-list__title {
  color: var(--color-primary);
}

.brand-detail {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.brand-detail.is-active {
  display: block;
  opacity: 1;
}

/* Responsive */
@media (max-width: 767px) {
  .brand-list__item {
    padding: 1rem 1.25rem;
    /* Tighter padding on mobile */
  }

  .brand-details-container {
    margin-top: var(--space-xs);
    /* Tighter spacing to list */
    min-height: auto !important;
    padding-left: 0 !important;
  }
}

/* Hardware Acceleration for Gallery Carousels */
.gallery-carousel {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.gallery-card {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-md);
}

/* membership perks — about page */
.section--pass .split {
  grid-template-columns: 1fr;
}

@media (max-width: 1023px) {
  .section--pass {
    padding-top: var(--space-xl);
  }

  .section--pass .split {
    gap: var(--space-md);
  }

  .section--pass .split__media {
    order: -1;
  }

  .section--pass .split__content {
    order: 1;
  }
}

@media (min-width: 1024px) {
  .section--pass .split {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* about page — membership perks overrides */

/* front page hero specific desktop dimension */
.front-page-hero-slider {
  aspect-ratio: 4 / 3;
  /* Fallback for mobile since inline style was removed */
}

@media (min-width: 1024px) {
  .hero {
    align-items: center !important;
    /* Vertically center in the section */
  }

  .hero .container {
    margin-top: -6vh;
    /* Position a bit in the upper */
  }

  .front-page-hero .split {
    grid-template-columns: 690px auto !important;
  }

  .hero .split {
    justify-content: center !important;
    /* Horizontally centralize */
    align-items: center;
  }

  .front-page-hero-slider {
    width: 690px !important;
    height: 670px !important;
    aspect-ratio: unset !important;
  }

  .hero .split__media {
    width: 690px;
    height: 670px;
  }
}

/* community section — about page */
.section--community .split {
  grid-template-columns: 1fr;
}

@media (max-width: 1023px) {
  .section--community {
    padding-top: var(--space-xl);
  }

  .section--community .split {
    gap: var(--space-md);
  }

  .section--community .split__media {
    order: -1;
  }

  .section--community .split__content {
    order: 1;
  }
}

@media (min-width: 1024px) {
  .section--community .split {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer specific color overrides requested by user */
.site-footer .footer-col__title {
  color: #FFF9EF !important;
}

.site-footer .footer-social__link svg {
  stroke: #FFF9EF !important;
  fill: #FFF9EF !important;
}

/* front page offshoring section specific desktop dimension */
@media (min-width: 1024px) {
  .section--offshoring .split {
    grid-template-columns: 1fr 660px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4rem;
    /* add nice spacing */
  }

  .section--offshoring .split__media {
    width: 660px !important;
    height: 630px !important;
    border-radius: var(--radius-card);
    /* make it a card */
    overflow: hidden;
  }

  .section--offshoring .split__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .section--offshoring .split__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* vertically center */
    align-items: flex-start;
    /* horizontally center the block itself */
    text-align: left;
    /* but keep text left aligned */
  }

  .section--offshoring .split__content>* {
    width: 100%;
    max-width: 450px;
    /* restrict width so it centers nicely next to the card */
  }

  .section--spaces .split__media,
  .section--intro .split__media,
  .section--pass .split__media,
  .section--story .split__media,
  .section--community .split__media,
  .section--social .split__media {
    width: 660px !important;
    height: 630px !important;
    border-radius: var(--radius-card);
    overflow: hidden;
  }

  .section--spaces .split__media img,
  .section--intro .split__media img,
  .section--pass .split__media img,
  .section--story .split__media img,
  .section--community .split__media img,
  .section--social .split__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .section--spaces .col-12.split,
  .section--intro .col-12.split,
  .section--pass .col-12.split,
  .section--story .col-12.split,
  .section--community .col-12.split,
  .section--social .col-12.split {
    align-items: center !important;
  }
}

/* offshoring contact section */
@media (min-width: 768px) {
  #offshoring-contact .contact-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-lg);
    width: 100%;
  }
}

/* Tablet & Mobile Adjustments */
@media (max-width: 991px) {
  #offshoring-contact {
    margin-left: 0;
    transform: none;
    width: 100%;
    min-height: auto;
  }

  #offshoring-contact>div>div {
    min-width: 100% !important;
    flex: 1 1 100% !important;
    min-height: auto !important;
  }

  .contact-cards-wrapper {
    padding: 0 var(--space-md);
  }
}

/* Mobile specific scrolling cards */
@media (max-width: 767px) {
  .contact-cards-wrapper {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-md) !important;
    padding-bottom: var(--space-md);
    -webkit-overflow-scrolling: touch;
  }

  .contact-cards-wrapper>.card-glass {
    flex: 0 0 85%;
    scroll-snap-align: center;
    padding: var(--space-lg) !important;
  }

  .contact-cards-wrapper>div:last-child {
    /* Acknowledgement block */
    flex: 0 0 100%;
    padding: 0 var(--space-md);
  }
}

/* Apply Pricing Section & Team Builder Styles */
.tb-leasing-scroll-container {
  max-height: 550px;
  overflow-y: auto;
  padding-right: var(--space-sm);
  margin-right: calc(-1 * var(--space-sm));
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-light) transparent;
}

.tb-leasing-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.tb-leasing-scroll-container::-webkit-scrollbar-thumb {
  background: var(--color-border-light);
  border-radius: 10px;
}

.tb-dept-title {
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 0.5rem;
}

#pricing-section {
  background-color: #FFBFBF;
}

.tb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.tb-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-card-sm);
  border: 1px dashed rgba(189, 69, 31, 0.3);
  margin-bottom: var(--space-md);
}

.tb-roles-headers {
  display: flex;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  padding: 0 0.5rem;
}

.tbr-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.tbr-name {
  flex: 1.8;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tbr-level {
  flex: 1.2;
}

.tbr-count {
  flex: 1;
  display: flex;
  justify-content: center;
}

.tbr-price {
  flex: 1.2;
  text-align: right;
  font-weight: 700;
  color: var(--color-primary);
}

.tbr-remove {
  width: 30px;
  text-align: right;
}

.btn-rem {
  background: none;
  border: none;
  color: #999;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
}

.btn-rem:hover {
  color: #ff4444;
}

.level-sel {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  font-size: 0.875rem;
  background: #fafafa;
}

.tbr-count-ctl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  overflow: hidden;
}

.tbr-count-ctl button {
  background: #fafafa;
  border: none;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-weight: bold;
  color: var(--color-primary);
}

.tbr-count-ctl input {
  width: 30px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border-light);
  border-right: 1px solid var(--color-border-light);
  background: #fff;
  font-size: 0.875rem;
  padding: 0.25rem 0;
}

.tb-summary {
  background: var(--color-bg-ivory);
  color: var(--color-primary);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  margin-top: var(--space-lg);
}

.tb-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-primary);
}

.tb-summary-row strong {
  color: var(--color-primary);
  font-size: 1rem;
}

.tb-summary-savings {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(159, 211, 175, 0.2);
  color: #9fd3af;
  padding: 0.75rem;
  border-radius: 4px;
  margin: 1rem 0;
  font-weight: 600;
  font-size: 0.875rem;
}

.tb-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: 1rem;
}

.tb-modal {
  position: fixed;
  inset: 0;
  background: rgba(43, 43, 43, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(15px) grayscale(100%);
  -webkit-backdrop-filter: blur(15px) grayscale(100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  padding: var(--space-md);
}

.tb-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tb-modal-content {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9) translateY(40px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tb-modal[aria-hidden="false"] .tb-modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.tb-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
}

.tb-modal-close {
  background: rgba(189, 69, 31, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--color-primary);
  transition: all var(--transition-fast);
}

.tb-modal-close:hover {
  background: var(--color-primary);
  color: #fff;
  transform: rotate(90deg);
}

.tb-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-light) transparent;
}

.tb-modal-body::-webkit-scrollbar {
  width: 6px;
}

.tb-modal-body::-webkit-scrollbar-thumb {
  background: var(--color-border-light);
  border-radius: 10px;
}

.tb-cat-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 1.5rem 0 0.5rem 0;
}

.tb-cat-title:first-child {
  margin-top: 0;
}

.tb-role-card {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-card-sm);
  margin-bottom: 0.75rem;
  gap: 1rem;
  transition: all var(--transition-fast);
}

.tb-role-card:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(5px);
  border-color: var(--color-accent-red);
  box-shadow: var(--glass-shadow);
}

.tb-role-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tb-role-info strong {
  color: var(--color-primary);
  margin-bottom: 0.15rem;
  font-size: 1rem;
}

.tb-role-info span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.btn-add-role {
  padding: 0.5rem 1.25rem;
  background-color: var(--color-accent-red) !important;
  color: var(--color-bg-ivory) !important;
  border: 1px solid var(--color-accent-red);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(172, 32, 26, 0.15);
}

.btn-add-role:hover {
  background-color: var(--color-btn-hover) !important;
  color: var(--color-bg-ivory) !important;
  border-color: var(--color-btn-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(142, 21, 16, 0.25);
}

/* Modal Open State — Body Lock & Global Gray Out */
body.modal-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  #pricing-section .col-6 {
    grid-column: span 6 !important;
  }
}

@media (max-width: 767px) {
  .tb-roles-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
    padding-bottom: 0.5rem;
  }

  .tb-roles-headers,
  .tbr-item {
    min-width: 600px;
  }

  /* Additional cleanup for the table headers so they don't break line on mobile */
  .tb-roles-headers>div {
    white-space: nowrap;
  }
}

/* Context-Aware Hero Spacing */
@media (min-width: 1024px) {
  .home .hero .split__content {
    padding-left: 4rem;
  }
}

/* ==============================================================
   DESKTOP HERO VERTICAL CENTERING FIX
   ============================================================== */
@media (min-width: 1024px) {

  /* 1. Fill the screen — bold, immersive, grand scale */
  .hero {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* Generous viewport-based padding so it feels spacious, not squished */
    padding-top: 6vh !important;
    padding-bottom: 6vh !important;
  }

  /* Center hero vertically in available visual space (compensating for the fixed header) */
  .hero.premium-hero {
    padding-top: calc(6vh + 60px) !important;
  }

  /* When the announcement bar is present, add its 40px height to maintain perfect balance */
  body.has-announcement .hero.premium-hero {
    padding-top: calc(6vh + 100px) !important;
  }

  /* 2. Reset negative margins — let flexbox do the centering */
  .hero .container {
    margin-top: 0 !important;
    width: 100%;
  }

  /* 3. Lock the split columns level with each other in the center */
  .hero .split,
  .hero .split--media-right {
    display: grid !important;
    align-items: center !important;
  }

  /* 4. Vertically center the text block within its grid cell */
  .hero .split__content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-self: center !important;
  }
}

/* ==============================================================
   SPACES SECTION — MULTICOLORED HOVER BORDERS
   ============================================================== */
.spaces-grid .space-card {
  position: relative;
  transition: all 0.3s ease;
}

/* Pseudo-element to draw the border OVER the image */
.spaces-grid .space-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 3px solid transparent;
  border-radius: var(--radius-card);
  transition: border-color 0.3s ease;
  z-index: 10;
}

/* Base Hover Shadow for all cards */
.spaces-grid .space-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Card 1 & 5: Terracotta */
.spaces-grid .space-card:nth-child(1):hover::after,
.spaces-grid .space-card:nth-child(5):hover::after {
  border-color: #BD451F;
}

/* Card 2 & 6: Muted Gold */
.spaces-grid .space-card:nth-child(2):hover::after,
.spaces-grid .space-card:nth-child(6):hover::after {
  border-color: var(--color-accent-gold);
}

/* Card 3: Deep Red */
.spaces-grid .space-card:nth-child(3):hover::after {
  border-color: var(--color-primary);
}

/* Card 4: Ivory (Replaced Pink so it pops against the pink background) */
.spaces-grid .space-card:nth-child(4):hover::after {
  border-color: var(--color-bg-ivory);
}

/* ==============================================================
   SPACES SECTION — IMAGE ZOOM HOVER EFFECT
   ============================================================== */
.spaces-grid .space-card__img-wrap {
  overflow: hidden;
}

.spaces-grid .space-card__img {
  transition: transform 0.5s ease;
}

.spaces-grid .space-card:hover .space-card__img {
  transform: scale(1.05);
}

/* ==============================================================
   JOURNAL SECTION — CUTESY MAGAZINE STYLING
   ============================================================== */
.journal-grid .card-glass {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Pseudo-element to draw the border OVER the image */
.journal-grid .card-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 3px solid transparent;
  border-radius: var(--radius-card);
  transition: border-color 0.3s ease;
  z-index: 10;
}

/* Base Hover Shadow for all cards */
.journal-grid .card-glass:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Card 1: Terracotta */
.journal-grid .card-glass:nth-child(1):hover::after {
  border-color: #BD451F;
}

/* Card 2: Muted Gold */
.journal-grid .card-glass:nth-child(2):hover::after {
  border-color: var(--color-accent-gold);
}

/* Card 3: Deep Red */
.journal-grid .card-glass:nth-child(3):hover::after {
  border-color: var(--color-primary);
}

/* Image Zoom on Hover */
.journal-grid .card-glass img {
  transition: transform 0.5s ease;
}

.journal-grid .card-glass:hover img {
  transform: scale(1.05);
}

/* ==============================================================
   GALLERY SECTION — POLAROID AESTHETIC
   ============================================================== */
.section--gallery .gallery-card {
  width: 458px !important;
  height: 510px !important;
  flex: 0 0 420px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease;
  position: relative;
  z-index: 2;
  /* Base border (fallback) */
  border: 8px solid var(--color-bg-ivory);
}

@media (max-width: 767px) {
  .section--gallery .gallery-card {
    width: 290px !important;
    height: 435px !important;
    flex: 0 0 290px !important;
  }
}

/* ==============================================================
   GALLERY SECTION — THEME: TERRACOTTA (Front Page)
   ============================================================== */
/* Universal 5-Color Cycle for Gallery Cards */
.section--gallery .gallery-card:nth-child(5n+1) { border-color: var(--color-primary) !important; } /* Terracotta */
.section--gallery .gallery-card:nth-child(5n+2) { border-color: var(--color-accent-red) !important; } /* Red */
.section--gallery .gallery-card:nth-child(5n+3) { border-color: var(--color-secondary) !important; } /* Soft Pink Blush */
.section--gallery .gallery-card:nth-child(5n+4) { border-color: var(--color-accent-gold) !important; } /* Muted Gold */
.section--gallery .gallery-card:nth-child(5n+5) { border-color: var(--color-bg-ivory) !important; } /* Ivory */

.gallery-theme-terracotta .gallery-nav {
  background-color: var(--color-secondary) !important;
  color: var(--color-bg-ivory) !important;
}

.gallery-theme-terracotta .gallery-nav:hover {
  background-color: var(--color-bg-ivory) !important;
  color: var(--color-secondary) !important;
}

/* ==============================================================
   GALLERY SECTION — THEME: PINK (Other Pages)
   ============================================================== */
.gallery-theme-pink {
  background-color: var(--color-secondary) !important;
  /* Enforce Soft Pink */
}



.gallery-theme-pink .gallery-nav {
  background-color: var(--color-bg-ivory) !important;
  color: #BD451F !important;
}

.gallery-theme-pink .gallery-nav:hover {
  background-color: #BD451F !important;
  color: var(--color-bg-ivory) !important;
}

.section--gallery .gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.section--gallery .gallery-card:hover img {
  transform: scale(1.05);
}

.section--gallery .gallery-bg-icon {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* Bubbly Navigation Controls */
.section--gallery .gallery-nav {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  border-radius: 50% !important;
  width: 48px !important;
  height: 48px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 5;
}

.section--gallery .gallery-nav--prev {
  left: 2rem;
}

.section--gallery .gallery-nav--next {
  right: 2rem;
}

.section--gallery .gallery-nav:hover {
  transform: translateY(-50%) scale(1.1);
}

/* ==============================================================
   OFFSHORING PROCESS SECTION — CUTESY / GIRLY AESTHETIC
   ============================================================== */

/* Squeeze section padding up and down */
#offshoring-process {
  padding-top: var(--space-2xl) !important;
  padding-bottom: var(--space-2xl) !important;
}

/* The Steps Container */
.off-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  position: relative;
  z-index: 2;
  margin-top: var(--space-xl);
}



/* The Dotted Connector Line (Treasure Map effect) */
@media (min-width: 992px) {
  .off-process-steps::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 5%;
    right: 5%;
    height: 4px;
    border-top: 4px dashed var(--color-primary);
    opacity: 0.3;
    z-index: -1;
  }
}

/* The Glass Cards (Inherits from .card-glass, just adding structural flex) */
.off-process-card {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
  /* Smooth transition for border-color only, avoiding layout-breaking transform animations on mobile */
  transition: border-color 0.3s ease !important;
}

/* Mixed Border Line Hover Colors (Excluding Pink) */
.off-process-card:nth-child(1):hover {
  border-color: var(--color-primary) !important; /* Terracotta */
}
.off-process-card:nth-child(2):hover {
  border-color: var(--color-accent-red) !important; /* Deep Red */
}
.off-process-card:nth-child(3):hover {
  border-color: var(--color-accent-gold) !important; /* Muted Gold */
}
.off-process-card:nth-child(4):hover {
  border-color: var(--color-bg-ivory) !important; /* Ivory */
}

/* The Soft Pastel Badge inside the card */
.off-process-card__num {
  background-color: var(--color-bg-ivory); /* Soft Ivory */
  color: var(--color-primary); /* Terracotta Text */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  margin-bottom: var(--space-md);
  border: 2px solid rgba(189, 69, 31, 0.1); /* Very subtle terracotta border */
}
.off-process-card__num svg {
  display: block; /* Let the new colorful SVGs shine! */
}
.off-process-card__num span {
  font-size: 1.5rem;
  line-height: 1;
  margin: 0;
  padding: 0;
}

/* Card Image Treatment */
.off-process-card__img {
  width: 130px;
  height: 130px;
  border-radius: 50%; /* Circle images stay soft */
  overflow: hidden;
  margin-bottom: var(--space-md);
  border: 4px solid rgba(255, 255, 255, 0.6); /* Soft frosted ring */
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.off-process-card:hover .off-process-card__img {
  transform: scale(1.05); /* Gentle image zoom on hover */
}

/* Inner Text Formatting */
.off-process-card h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
}

.off-process-card p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

/* Breakdown Bubble (Glassy version) */
.off-process-card__breakdown {
  background-color: rgba(255, 255, 255, 0.5); /* Frosted inner bubble */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--color-text);
  padding: var(--space-sm) var(--space-md);
  border-radius: 16px;
  font-size: 0.85rem;
  text-align: left;
  width: 100%;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.off-process-card__breakdown strong {
  color: var(--color-primary);
  font-weight: 700;
  display: inline-block;
  margin-top: 4px;
}

/* Tablet & Mobile Layout Adjustments for Offshoring Section */
@media (min-width: 768px) and (max-width: 991px) {
  .off-process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  #offshoring-process {
    padding-top: var(--space-lg) !important;
    padding-bottom: var(--space-lg) !important;
  }

  .off-process-steps {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-xl);
    scroll-padding: var(--space-md);
    /* Safe full bleed: negate container padding instead of using 100vw */
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .off-process-steps::-webkit-scrollbar {
    display: none;
  }

  .off-process-card {
    flex: 0 0 280px;
    scroll-snap-align: center;
    padding: var(--space-lg) var(--space-md) !important; /* Squeeze card up and down */
  }
  
  .off-process-card__img {
    width: 100px;
    height: 100px;
  }
  
  .off-process-card h3 {
    font-size: 1.15rem;
  }
}

/* ==============================================================
   OFFSHORING MODELS SECTION — CUTESY / GIRLY AESTHETIC
   ============================================================== */

.off-models-container {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  align-items: stretch;
}

.off-models-card {
  flex: 1;
  min-width: 280px;
  padding: var(--space-xl);
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  position: relative;
  /* Smooth transition for border-color to prevent layout breaking on mobile */
  transition: border-color 0.3s ease !important;
}

/* Base Frosted Pink Card */
.off-models-card--pink {
  background: rgba(255, 191, 191, 0.4) !important; /* Frosted Soft Blush */
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
  transform: rotate(-1deg);
}

.off-models-card--pink h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.off-models-card--pink .off-models-card__desc {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}

/* Base Frosted Terracotta Card */
.off-models-card--terracotta {
  background: rgba(189, 69, 31, 0.85) !important; /* Frosted Terracotta */
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff;
  transform: rotate(1deg);
}

.off-models-card--terracotta h3 {
  margin-bottom: var(--space-sm);
  color: #fff;
}

.off-models-card--terracotta .off-models-card__desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}

/* Sticker Checkmark Badges */
.off-models-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl) 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.off-models-card__list li {
  display: flex;
  gap: 0.8rem;
  font-size: 0.95rem;
  align-items: flex-start;
  line-height: 1.5;
}

.off-models-card--terracotta .off-models-card__list li {
  color: rgba(255,255,255,0.95);
}

.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.badge--pink {
  background-color: var(--color-bg-ivory);
  color: var(--color-primary);
}

.badge--terracotta {
  background-color: var(--color-accent-gold);
  color: var(--color-primary);
}

.off-models-btn {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn--glass-white {
  background: var(--color-secondary) !important; /* Soft Pink */
  color: var(--color-primary) !important; /* Terracotta text */
  border: 1px solid var(--color-secondary) !important;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}
.btn--glass-white:hover {
  background: var(--color-accent-gold) !important;
  color: var(--color-primary) !important;
  border-color: var(--color-accent-gold) !important;
}

/* Fairy Glow & Mixed Border Colors Hover Effects (Desktop Only) */
@media (min-width: 992px) {
  .off-models-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.4s ease !important;
  }
  
  .off-models-card--pink:hover {
    transform: translateY(-8px) rotate(-1deg) !important;
    border-color: var(--color-accent-red) !important; /* Deep Red Border */
    box-shadow: 0 20px 40px rgba(172, 32, 26, 0.2) !important;
  }
  
  .off-models-card--terracotta:hover {
    transform: translateY(-8px) rotate(1deg) !important;
    border-color: var(--color-accent-gold) !important; /* Muted Gold Border */
    box-shadow: 0 20px 40px rgba(251, 203, 119, 0.2) !important;
  }
}

/* ==============================================================
   OFFSHORING ROLES SECTION — JELLY BEAN AESTHETIC
   ============================================================== */

/* Grid definition just in case it doesn't exist globally */
.off-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.off-role-item {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  padding: var(--space-xl) var(--space-md) !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Jelly Bean Alternating Colors (Repeats every 3) */
.off-role-item:nth-child(3n+1) {
  background: rgba(255, 249, 239, 0.8) !important; /* Ivory / Milk Glass */
}
.off-role-item:nth-child(3n+2) {
  background: rgba(251, 203, 119, 0.5) !important; /* Muted Gold / Amber Glass */
}
.off-role-item:nth-child(3n+3) {
  background: rgba(255, 191, 191, 0.5) !important; /* Soft Pink / Blush Glass */
}

.off-role-icon {
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.8), 0 4px 10px rgba(0,0,0,0.05);
}

.off-role-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.off-role-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Bouncy Hover & Wiggle */
@media (min-width: 992px) {
  .off-role-item:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 15px 30px rgba(189, 69, 31, 0.15) !important;
    border-color: #fff !important;
    z-index: 2;
  }
  
  .off-role-item:hover .off-role-icon svg {
    animation: jellyWiggle 0.5s ease-in-out;
  }
}

@keyframes jellyWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg) scale(1.1); }
  50% { transform: rotate(10deg) scale(1.1); }
  75% { transform: rotate(-5deg) scale(1.05); }
}

/* ==============================================================
   OFFSHORING COMPARISON SECTION — LUXURY RECEIPT AESTHETIC
   ============================================================== */

/* Wrapper as frosted blush glass */
.compare-table-wrapper {
  background: rgba(255, 191, 191, 0.2) !important; /* Extremely soft pink tint */
  border-radius: 24px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 20px 40px rgba(172, 32, 26, 0.05) !important; /* Soft terracotta shadow */
  overflow: hidden;
  padding: var(--space-md);
}

.compare-table {
  border-collapse: separate !important;
  border-spacing: 0 var(--space-sm) !important; /* Gap between rows */
  width: 100%;
}

/* Elegant headers */
.compare-table th {
  background: transparent !important;
  border-bottom: 2px dashed rgba(172, 32, 26, 0.2) !important; /* Terracotta dashed line */
  color: var(--color-primary) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  padding: var(--space-md) !important;
}

/* Pill-shaped rows */
.compare-table tbody tr {
  background: #fff !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.compare-table tbody tr:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 20px rgba(251, 203, 119, 0.15); /* Muted gold glow */
  background: rgba(255, 255, 255, 0.95) !important;
  position: relative;
  z-index: 10;
}

/* Smooth rounded corners for pill rows on desktop */
@media (min-width: 768px) {
  .compare-table tbody td:first-child {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
  }
  .compare-table tbody td:last-child {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
  }
}

/* Cell padding */
.compare-table td {
  padding: var(--space-lg) var(--space-md) !important;
  border: none !important;
  vertical-align: middle;
}

/* Crossed-out expensive Onshore column */
.compare-table td[data-label="Onshore (Annual)"] {
  text-decoration: line-through;
  text-decoration-color: var(--color-accent-red);
  text-decoration-thickness: 2px;
  color: var(--color-text-muted) !important;
  opacity: 0.7;
}

/* Bold Philippines column */
.compare-table td[data-label="Philippines with Kings City"] {
  font-weight: 700;
  color: var(--color-primary) !important;
  font-size: 1.1rem;
}

/* Sticker Badges for Savings */
.save-badge {
  display: inline-block;
  font-weight: 700;
  color: var(--color-primary) !important;
  background: var(--color-accent-gold) !important;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(251, 203, 119, 0.4);
  transform: rotate(-2deg);
}

.save-badge::after {
  content: " OFF!";
  font-size: 0.75em;
  opacity: 0.8;
}

/* Mobile responsive fixes for the Luxury Receipt */
@media (max-width: 767px) {
  .compare-table thead {
    display: none !important;
  }

  .compare-table tbody tr {
    display: block;
    margin-bottom: var(--space-md);
    padding: var(--space-md) 0;
    border-radius: 20px !important;
    border: 1px solid rgba(172, 32, 26, 0.1);
  }
  
  .compare-table td {
    display: block !important;
    position: relative;
    padding: 0.75rem var(--space-md) 0.75rem 50% !important;
    border-bottom: 1px dashed rgba(0,0,0,0.05) !important;
    text-align: right !important;
  }
  
  .compare-table td:last-child {
    border-bottom: none !important;
  }
  
  .compare-table td::before {
    content: attr(data-label);
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.75rem; /* Reduced slightly for long labels */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    white-space: normal; /* Allow wrapping */
    width: 45%; /* Prevent overlapping the right column */
    line-height: 1.3;
  }
  
  /* Reset badge inline-block issues on mobile */
  .save-badge {
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* ==============================================================
   OFFSHORING SERVICES SECTION — FLOATING MAGIC BUBBLES
   ============================================================== */

/* Make the grid items look like frosted white bubbles */
#offshoring-services .spaces-services__item {
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  padding: var(--space-xl) var(--space-lg) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 10px 30px rgba(172, 32, 26, 0.08) !important; /* Soft terracotta shadow */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background 0.4s ease !important;
  position: relative;
  z-index: 5;
}

/* The inflate/pop hover animation */
#offshoring-services .spaces-services__item:hover {
  transform: translateY(-8px) scale(1.03) !important;
  box-shadow: 0 20px 40px rgba(251, 203, 119, 0.2) !important; /* Soft gold glow */
  z-index: 10;
}

/* Warm typography for titles */
#offshoring-services .spaces-services__item-title {
  color: var(--color-primary) !important;
  font-weight: 700;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

/* Icon container styling */
#offshoring-services .spaces-services__item-icon {
  margin-bottom: var(--space-sm);
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Wiggle the icon when the bubble is hovered */
#offshoring-services .spaces-services__item:hover .spaces-services__item-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
  #offshoring-services .spaces-services__item {
    padding: var(--space-lg) var(--space-md) !important;
  }
}

/* ==============================================================
   OFFSHORING CONTACT SECTION — ELEGANT LOVE LETTER
   ============================================================== */

/* Contact layout stacking behavior on mobile and tablet */
@media (max-width: 991px) {
  #offshoring-contact .contact-flex-container {
    flex-direction: column !important;
  }
  #offshoring-contact .offshoring-left,
  #offshoring-contact .offshoring-right {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 100% !important;
  }
  #offshoring-contact .offshoring-left {
    padding: var(--space-xl) var(--space-lg) !important;
  }
  #offshoring-contact .offshoring-right {
    padding: var(--space-xl) var(--space-lg) !important;
  }
}

/* Force cards to 1 column on mobile */
@media (max-width: 767px) {
  #offshoring-contact .contact-cards-wrapper {
    grid-template-columns: 1fr !important;
  }
  .contact-envelope-card {
    padding: var(--space-lg) !important;
  }
}

/* Envelope Contact Cards */
#offshoring-contact .contact-envelope-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: var(--space-lg) !important;
  background: linear-gradient(135deg, rgba(255, 249, 239, 0.95) 0%, rgba(251, 203, 119, 0.15) 50%, rgba(255, 191, 191, 0.25) 100%) !important; /* Ivory to Muted Gold to Soft Blush */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 203, 119, 0.4) !important; /* Muted Gold border */
  box-shadow: 0 10px 30px rgba(189, 69, 31, 0.08) !important; /* Terracotta shadow */
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
  position: relative;
  overflow: visible;
}

/* Replaced with universal cycle below */

/* Base text color for all cards */
#offshoring-contact .contact-envelope-card * {
  color: var(--color-primary) !important;
}
#offshoring-contact .contact-envelope-card svg {
  stroke: var(--color-primary) !important;
}
#offshoring-contact .contact-envelope-card svg path[fill="var(--color-bg-ivory)"] {
  fill: var(--color-bg-ivory) !important;
}

#offshoring-contact .contact-envelope-card .contact-envelope-content {
  width: 100%;
  text-align: center;
}

/* Envelope Icons */
#offshoring-contact .contact-envelope-card .envelope-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: transform 0.3s ease;
}

.contact-envelope-card:hover .envelope-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Social media links hover */
#offshoring-contact .offshoring-left a:hover {
  transform: translateX(5px);
  opacity: 0.8;
}

/* ==============================================================
   MEMBERSHIP PERKS SECTION ANIMATIONS
   ============================================================== */
@keyframes floatSoft { 
  0% { transform: translateY(0px) rotate(0deg); } 
  50% { transform: translateY(-10px) rotate(5deg); } 
  100% { transform: translateY(0px) rotate(0deg); } 
}
@keyframes pulseSoft { 
  0% { transform: scale(1); opacity: 0.3; } 
  50% { transform: scale(1.1); opacity: 0.6; } 
  100% { transform: scale(1); opacity: 0.3; } 
}
.pass-bg-icon { 
  position: absolute; 
  pointer-events: none; 
  z-index: 0; 
}

/* ==============================================================
   MEMBERSHIP PERKS SECTION BUBBLES
   ============================================================== */
.perks-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  text-align: left;
}
.perks-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.perk-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary) !important; /* All icons Terracotta */
}

/* Default / Ivory Background Context */
.bg-ivory .perks-list li:nth-child(3n+1) .perk-bubble { background-color: #FFBFBF; }
.bg-ivory .perks-list li:nth-child(3n+2) .perk-bubble { background-color: #AC201A; }
.bg-ivory .perks-list li:nth-child(3n+3) .perk-bubble { background-color: #FBCB77; }

/* Blush Background Context */
.bg-blush .perks-list li:nth-child(3n+1) .perk-bubble { background-color: #FFF9EF; }
.bg-blush .perks-list li:nth-child(3n+2) .perk-bubble { background-color: #AC201A; }
.bg-blush .perks-list li:nth-child(3n+3) .perk-bubble { background-color: #FBCB77; }

/* Membership Perks Specific Context (2-color alternating cycle) */
.bg-blush .perks-list--membership li:nth-child(2n+1) .perk-bubble { 
  background-color: #BD451F; 
  color: #FFF9EF !important; 
}
.bg-blush .perks-list--membership li:nth-child(2n+2) .perk-bubble { 
  background-color: #AC201A; 
  color: #FFF9EF !important; 
}

/* Social Perks Specific Context (2-color alternating cycle) */
.bg-blush .perks-list--social li:nth-child(2n+1) .perk-bubble { 
  background-color: #BD451F; 
  color: #FFF9EF !important; 
}
.bg-blush .perks-list--social li:nth-child(2n+2) .perk-bubble { 
  background-color: #AC201A; 
  color: #FFF9EF !important; 
}

/* Brands/About Perks Specific Context (2-color alternating cycle) */
.perks-list--brands-about li:nth-child(2n+1) .perk-bubble { 
  background-color: #FFBFBF !important; 
  color: var(--color-primary) !important; 
}
.perks-list--brands-about li:nth-child(2n+2) .perk-bubble { 
  background-color: #FBCB77 !important; 
  color: var(--color-primary) !important; 
}

/* Terracotta Background Context */
.bg-terracotta .perks-list li:nth-child(3n+1) .perk-bubble { background-color: #FFF9EF; } /* Warm Ivory */
.bg-terracotta .perks-list li:nth-child(3n+2) .perk-bubble { background-color: #FFBFBF; } /* Soft Blush */
.bg-terracotta .perks-list li:nth-child(3n+3) .perk-bubble { background-color: #FBCB77; } /* Muted Gold */

/* Offshoring Perks Specific Context (2-color alternating cycle) */
.bg-terracotta .perks-list--offshoring li:nth-child(2n+1) .perk-bubble { 
  background-color: #FFBFBF; 
  color: var(--color-primary) !important; 
}
.bg-terracotta .perks-list--offshoring li:nth-child(2n+2) .perk-bubble { 
  background-color: #AC201A; 
  color: #FFF9EF !important; 
}

/* --- Offshoring Universal System --- */
.universal-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: var(--space-sm);
}

.universal-icon-wrapper svg {
  width: 48px;
  height: 48px;
}

/* Card Background Color Cycle (Universal & Bulletproof) */
/* Universal Girly/Cutesy Pastel Cycle (Pink, Yellow, Peach, Rose) */
.cycle-card-bg > *:nth-child(4n+1) { 
  background: rgba(255, 191, 191, 0.6) !important; /* Soft Blush / Pink */
  border-color: rgba(255, 191, 191, 0.9) !important;
}

.cycle-card-bg > *:nth-child(4n+2) { 
  background: rgba(251, 203, 119, 0.5) !important; /* Muted Gold / Yellow */
  border-color: rgba(251, 203, 119, 0.8) !important;
}

.cycle-card-bg > *:nth-child(4n+3) { 
  background: rgba(189, 69, 31, 0.15) !important; /* Light Terracotta / Peach */
  border-color: rgba(189, 69, 31, 0.3) !important;
}

.cycle-card-bg > *:nth-child(4n+4) { 
  background: rgba(172, 32, 26, 0.15) !important; /* Light Deep Red / Rose */
  border-color: rgba(172, 32, 26, 0.3) !important;
}

/* Specific pattern override for Spaces Services section (Pink, Gold, Pink, Gold) */
#spaces-services .cycle-card-bg > *:nth-child(4n+3) {
  background: rgba(255, 191, 191, 0.6) !important; /* Soft Blush / Pink */
  border-color: rgba(255, 191, 191, 0.9) !important;
}
#spaces-services .cycle-card-bg > *:nth-child(4n+4) {
  background: rgba(251, 203, 119, 0.5) !important; /* Muted Gold / Yellow */
  border-color: rgba(251, 203, 119, 0.8) !important;
}
#spaces-services .cycle-card-bg .spaces-services__item-title,
#spaces-services .cycle-card-bg h2,
#spaces-services .cycle-card-bg h4 {
  color: var(--color-primary) !important; /* Terracotta text for card headings */
}

/* Specific pattern override for Offshoring Services section (Gold, Terracotta alternating) */
#offshoring-services .cycle-card-bg > *:nth-child(odd) {
  background: rgba(251, 203, 119, 0.5) !important; /* Muted Gold / Yellow */
  border-color: rgba(251, 203, 119, 0.8) !important;
}
#offshoring-services .cycle-card-bg > *:nth-child(even) {
  background: rgba(189, 69, 31, 0.6) !important; /* Terracotta */
  border-color: rgba(189, 69, 31, 0.9) !important;
}

/* Fix text and icon colors for the dark Terracotta cards (even cards) */
#offshoring-services .cycle-card-bg > *:nth-child(even) h2,
#offshoring-services .cycle-card-bg > *:nth-child(even) h3,
#offshoring-services .cycle-card-bg > *:nth-child(even) h4,
#offshoring-services .cycle-card-bg > *:nth-child(even) p,
#offshoring-services .cycle-card-bg > *:nth-child(even) .spaces-services__item-title {
  color: var(--color-bg-ivory) !important;
}
#offshoring-services .cycle-card-bg > *:nth-child(even) svg {
  stroke: var(--color-accent-gold) !important;
}
#offshoring-services .cycle-card-bg > *:nth-child(even) svg circle {
  fill: rgba(255, 249, 239, 0.2) !important; /* Sheer ivory for contrast */
}

/* Specific pattern override for Offshoring Roles section (3-color cycle: Gold, Terracotta, Deep Red) */
#offshoring-roles .cycle-card-bg > *:nth-child(3n+1) {
  background: rgba(251, 203, 119, 0.5) !important; /* Muted Gold */
  border-color: rgba(251, 203, 119, 0.8) !important;
}
#offshoring-roles .cycle-card-bg > *:nth-child(3n+2) {
  background: rgba(189, 69, 31, 0.6) !important; /* Terracotta */
  border-color: rgba(189, 69, 31, 0.9) !important;
}
#offshoring-roles .cycle-card-bg > *:nth-child(3n+3) {
  background: rgba(172, 32, 26, 0.6) !important; /* Deep Red */
  border-color: rgba(172, 32, 26, 0.9) !important;
}

/* Fix text and icon colors for the dark cards (Terracotta and Deep Red) */
#offshoring-roles .cycle-card-bg > *:nth-child(3n+2) h4,
#offshoring-roles .cycle-card-bg > *:nth-child(3n+2) p,
#offshoring-roles .cycle-card-bg > *:nth-child(3n+3) h4,
#offshoring-roles .cycle-card-bg > *:nth-child(3n+3) p {
  color: var(--color-bg-ivory) !important;
}
#offshoring-roles .cycle-card-bg > *:nth-child(3n+2) svg,
#offshoring-roles .cycle-card-bg > *:nth-child(3n+3) svg {
  stroke: var(--color-bg-ivory) !important;
}

/* Specific pattern override for Offshoring Process section (Gold, Terracotta alternating) */
.off-process-steps.cycle-card-bg > *:nth-child(odd) {
  background: rgba(251, 203, 119, 0.5) !important; /* Muted Gold */
  border-color: rgba(251, 203, 119, 0.8) !important;
}
.off-process-steps.cycle-card-bg > *:nth-child(even) {
  background: rgba(189, 69, 31, 0.6) !important; /* Terracotta */
  border-color: rgba(189, 69, 31, 0.9) !important;
}

/* Fix text and icon colors for the dark Terracotta cards (even cards) */
.off-process-steps.cycle-card-bg > *:nth-child(even) h2,
.off-process-steps.cycle-card-bg > *:nth-child(even) h3,
.off-process-steps.cycle-card-bg > *:nth-child(even) h4,
.off-process-steps.cycle-card-bg > *:nth-child(even) p,
.off-process-steps.cycle-card-bg > *:nth-child(even) .off-process-card__title {
  color: var(--color-bg-ivory) !important;
}
.off-process-steps.cycle-card-bg > *:nth-child(even) svg * {
  stroke: var(--color-accent-gold) !important;
}
.off-process-steps.cycle-card-bg > *:nth-child(even) svg rect[fill="var(--color-bg-ivory)"],
.off-process-steps.cycle-card-bg > *:nth-child(even) svg circle[fill="var(--color-bg-ivory)"] {
  fill: rgba(255, 249, 239, 0.2) !important; /* Sheer ivory for contrast */
}

/* Specific pattern override for Core Values section (Pink, Gold alternating) */
.core-values-section .cycle-card-bg > *:nth-child(odd) {
  background: rgba(255, 191, 191, 0.6) !important; /* Soft Blush / Pink */
  border-color: rgba(255, 191, 191, 0.9) !important;
}
.core-values-section .cycle-card-bg > *:nth-child(even) {
  background: rgba(251, 203, 119, 0.5) !important; /* Muted Gold / Yellow */
  border-color: rgba(251, 203, 119, 0.8) !important;
}

/* Universal Hover Borders overlay */
.cycle-card-bg > *, .cycle-hover-border > * {
  position: relative; /* required for the ::after overlay */
}
.cycle-card-bg > *::after, .cycle-hover-border > *::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 3px solid transparent;
  border-radius: var(--radius-card);
  transition: border-color 0.3s ease;
  z-index: 20;
}

/* Universal Color-Cycling Glass Grid */
.universal-glass-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  width: 100%;
}

@media (max-width: 1024px) {
  .universal-glass-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.cycle-card-bg > *:nth-child(4n+1):hover::after, .cycle-hover-border > *:nth-child(4n+1):hover::after { border-color: var(--color-accent-red) !important; }
.cycle-card-bg > *:nth-child(4n+2):hover::after, .cycle-hover-border > *:nth-child(4n+2):hover::after { border-color: var(--color-primary) !important; }
.cycle-card-bg > *:nth-child(4n+3):hover::after, .cycle-hover-border > *:nth-child(4n+3):hover::after { border-color: var(--color-secondary) !important; }
.cycle-card-bg > *:nth-child(4n+4):hover::after, .cycle-hover-border > *:nth-child(4n+4):hover::after { border-color: var(--color-accent-gold) !important; }

/* Override for Terracotta background cards to ensure border visibility */
.cycle-hover-border > .section--brown:hover::after { border-color: var(--color-accent-gold) !important; }

/* Contact Us Section - Layout Overrides */
#offshoring-contact .contact-flex-container {
  max-width: 100% !important;
  margin: 0 !important;
}

#offshoring-contact .contact-envelope-card {
  width: 100%;
  padding: var(--space-xl) var(--space-2xl);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

#offshoring-contact .contact-envelope-card:hover {
  transform: translateX(10px) !important;
  box-shadow: -10px 20px 40px rgba(189, 69, 31, 0.08) !important;
  z-index: 10;
}

/* Specific pattern override for Contact Us section (Pink, Gold alternating) */
#offshoring-contact .contact-cards-wrapper.cycle-card-bg > *:nth-child(odd) {
  background: rgba(255, 191, 191, 0.6) !important; /* Soft Blush / Pink */
  border-color: rgba(255, 191, 191, 0.9) !important;
}
#offshoring-contact .contact-cards-wrapper.cycle-card-bg > *:nth-child(even) {
  background: rgba(251, 203, 119, 0.5) !important; /* Muted Gold / Yellow */
  border-color: rgba(251, 203, 119, 0.8) !important;
}

/* ==========================================================================
   Section Background Utilities & Icon Modifiers
   ========================================================================== */

/* Background Color Enforcers */
.bg-ivory { background-color: var(--color-bg-ivory) !important; }
.bg-blush { background-color: var(--color-secondary) !important; }
.bg-terracotta { background-color: var(--color-primary) !important; color: var(--color-bg-ivory); }

/* Floating Background Icons */
.floating-bg-icon {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.floating-bg-icon svg {
  width: 60px;
  height: 60px;
  opacity: 0.6;
  transition: all 0.3s ease;
  will-change: transform;
}

/* Unified Animations */
@keyframes floatJournal { 0% { transform: translateY(0px) rotate(-5deg); } 50% { transform: translateY(-12px) rotate(5deg); } 100% { transform: translateY(0px) rotate(-5deg); } }

.anim-float-fast { animation: floatJournal 4.5s infinite ease-in-out; }
.anim-float-normal { animation: floatJournal 5s infinite ease-in-out; }
.anim-float-offset { animation: floatJournal 5.5s infinite ease-in-out; }
.anim-float-slow-rev { animation: floatJournal 6s infinite ease-in-out reverse; }
.anim-pulse { animation: pulseSoft 4s infinite ease-in-out; }

/* ==========================================================================
   Single News Article Template Styles
   ========================================================================== */
.single-article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-primary);
}

.single-article-content p {
  margin-bottom: 1.5rem;
}

.single-article-content h2,
.single-article-content h3,
.single-article-content h4 {
  font-family: var(--font-heading);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

.single-article-content img {
  display: block;
  float: none !important;
  clear: both;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  margin: 2rem auto;
  box-shadow: var(--shadow-md);
}

/* Clear WordPress alignment classes inside article */
.single-article-content .alignleft,
.single-article-content .alignright,
.single-article-content .aligncenter,
.single-article-content .alignnone {
  float: none !important;
  clear: both;
  display: block;
  margin: 2rem auto;
}

/* Ensure any figure/caption wrapping images is also cleared */
.single-article-content figure {
  float: none !important;
  clear: both;
  display: block;
  width: 100%;
  margin: 2rem 0;
}

/* If a <p> still ends up containing an <img>, make it block */
.single-article-content p img {
  display: block;
  float: none !important;
  clear: both;
  margin: 0 auto 1rem auto;
  max-width: 100%;
  height: auto;
}

.single-article-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.single-article-content ul,
.single-article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.single-article-content li {
  margin-bottom: 0.5rem;
}

.single-article-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.announcement-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 40px;
  padding: 0.5rem 1rem;
}

.announcement-bar__text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
}

.announcement-bar__close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.announcement-bar__close:hover {
  opacity: 0.7;
}

body.has-announcement .site-header {
  top: 40px;
}

body.hide-announcement .announcement-bar {
  transform: translateY(-100%);
}

body.hide-announcement .site-header {
  top: 0;
}

/* ========================================
   Single Article Page
   ======================================== */

/* Back Button */
.single-article__back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent-red);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.single-article__back-btn:hover {
  color: var(--color-btn-hover);
  gap: 0.75rem;
}

.single-article__back-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.single-article__back-btn:hover svg {
  transform: translateX(-3px);
}

/* Article Container — bordered card */
.single-article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  border: var(--glass-border);
  border-radius: var(--radius-card);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

@media (max-width: 600px) {
  .single-article-container {
    margin: 0 1rem;
    padding: 1.5rem 1rem;
  }
}

/* Meta Row */
.single-article__meta {
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
}

.single-article__meta-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Three Dots Button */
.single-article__share-toggle {
  position: relative;
}

.single-article__dots-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.single-article__dots-btn:hover {
  background: rgba(189, 69, 31, 0.1);
}

/* Sharing Dropdown */
.sharing-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border: var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-shadow-lg);
  z-index: 100;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.sharing-dropdown[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sharing-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--color-text);
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sharing-dropdown__item:hover {
  background: rgba(189, 69, 31, 0.08);
}

.sharing-dropdown__item svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

/* Article Title */
.single-article__title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 2.5rem;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .single-article__title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
}

/* Text Block */
.single-article__text-block {
  margin-bottom: 2rem;
}

.single-article__text-block p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.single-article__text-block img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  margin: 1rem auto;
  display: block;
}

/* 
  MAGIC RULE: 
  If the user clicks "Align Center" in WordPress, the image will automatically stretch to full width!
*/
.single-article__text-block .aligncenter,
.single-article__text-block .aligncenter img,
.single-article__text-block figure.aligncenter {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 1rem auto !important;
}

/* Only apply the aggressive 16:9 banner stretch to images inserted specifically as Large or Full size */
.single-article__text-block img.size-large,
.single-article__text-block img.size-full {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
}

/* Force WordPress figures and captions to fill the container, overriding inline styles */
.single-article__text-block figure:not(.gallery-item),
.single-article__text-block .wp-caption {
  width: 100% !important;
  max-width: 100%;
  margin: 1rem 0;
}

/* Native WordPress Gallery Support */
.single-article__text-block .gallery {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  justify-content: center !important;
  margin: 2rem 0 !important;
  padding: 0 !important;
  width: 100% !important;
  clear: both;
}

.single-article__text-block .gallery-item {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  text-align: center;
}

/* Base columns logic */
.single-article__text-block .gallery-columns-2 .gallery-item { width: calc(50% - 0.5rem) !important; }
.single-article__text-block .gallery-columns-3 .gallery-item { width: calc(33.333% - 0.67rem) !important; }
.single-article__text-block .gallery-columns-4 .gallery-item { width: calc(25% - 0.75rem) !important; }

.single-article__text-block .gallery-item img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: var(--radius-card) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: block !important;
}

/* Solo inline image: if the only thing inside a <p> is a single <img>, make it full-width and centered.
   This safely excludes WordPress gallery images which live inside .gallery-item wrappers. */
.single-article__text-block p > img:only-child,
.single-article__text-block p > a:only-child > img:only-child {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 1rem auto !important;
  border-radius: var(--radius-card) !important;
  object-fit: cover !important;
}

/* Center the <p> wrapper when it only contains a solo image */
.single-article__text-block p:has(> img:only-child),
.single-article__text-block p:has(> a:only-child > img:only-child) {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 1rem 0 !important;
  padding: 0 !important;
}


/* Big Image Block */
.single-article__big-image {
  width: 100%;
  margin: 2rem 0;
}

.single-article__big-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-card);
  display: block;
}

.single-article__big-image figcaption {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Gallery Grid Block */
.single-article__gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}

@media (max-width: 600px) {
  .single-article__gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

.single-article__gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.single-article__gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.single-article__gallery-item:hover img {
  transform: scale(1.05);
}

/* Social Footer */
.single-article__social-footer {
  margin-top: 2.5rem;
}

.single-article__social-divider {
  height: 1px;
  background: var(--color-border);
  margin-bottom: 1.5rem;
}

.single-article__social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.single-article__social-link {
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.single-article__social-link:hover {
  background: rgba(189, 69, 31, 0.1);
  color: var(--color-accent-red);
}

/* ========================================
   Recent Posts Section
   ======================================== */
.single-article-recent {
  max-width: 1100px;
  margin: 4rem auto 0;
  padding: 0 20px;
}

.single-article-recent__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.single-article-recent__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin: 0;
}

.single-article-recent__see-all {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-accent-red);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.single-article-recent__see-all:hover {
  color: var(--color-btn-hover);
}

.single-article-recent__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 767px) {
  .single-article-recent__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1.25rem;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
    scrollbar-width: none;
  }

  .single-article-recent__grid::-webkit-scrollbar {
    display: none;
  }

  .single-article-recent__grid > article {
    flex: 0 0 85%;
    max-width: 320px;
    scroll-snap-align: start;
  }
}

.single-article-recent__empty {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-muted);
  text-align: center;
  width: 100%;
  display: block;
  padding: 3rem 1rem;
  opacity: 0.7;
}
