/* ==========================================================================
   PLEXUS AVIATION - Main Stylesheet
   Luxury Private Aviation Charter Services
   Version: 1.0.0
   ========================================================================== */

/* ==========================================================================
   0. CUSTOM FONTS
   ========================================================================== */

@font-face {
  font-family: 'Gotham Rounded';
  src: url('../fonts/GothamRounded-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baloo Bhaijaan 2';
  src: url('../fonts/BalooBhaijaan2-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
  /* ---- Brand Colors ---- */
  --color-primary:          #6B2FA0;
  --color-primary-light:    #8B4FC0;
  --color-primary-dark:     #4E1D7A;
  --color-primary-rgb:      107, 47, 160;

  --color-secondary:        #1A1A2E;
  --color-secondary-light:  #2A2A4E;
  --color-secondary-dark:   #0F0F1A;

  --color-accent:           #C9A84C;
  --color-accent-light:     #D9C07C;
  --color-accent-dark:      #A8883C;

  /* ---- Neutral Palette ---- */
  --color-white:            #FFFFFF;
  --color-off-white:        #F8F8FC;
  --color-light-gray:       #F0F0F5;
  --color-gray:             #B0B0C0;
  --color-mid-gray:         #6E6E80;
  --color-dark-gray:        #3A3A4A;
  --color-charcoal:         #1E1E2A;
  --color-black:            #0A0A14;

  /* ---- Functional Colors ---- */
  --color-success:          #2ECC71;
  --color-warning:          #F1C40F;
  --color-error:            #E74C3C;
  --color-info:             #3498DB;

  /* ---- Typography ---- */
  --font-heading:           'Gotham Rounded', 'Quicksand', sans-serif;
  --font-body:              'Baloo Bhaijaan 2', 'Inter', sans-serif;

  --fw-regular:             400;
  --fw-medium:              500;
  --fw-semibold:            600;
  --fw-bold:                700;

  /* Fluid type scale */
  --fs-h1:                  clamp(2.5rem, 4vw + 1rem, 4.125rem);   /* 40px - 66px */
  --fs-h2:                  clamp(1.75rem, 2.5vw + 0.5rem, 2.625rem); /* 28px - 42px */
  --fs-h3:                  clamp(1.375rem, 1.5vw + 0.5rem, 1.875rem); /* 22px - 30px */
  --fs-h4:                  clamp(1.125rem, 1vw + 0.5rem, 1.5rem);  /* 18px - 24px */
  --fs-body:                clamp(0.9375rem, 0.5vw + 0.75rem, 1rem); /* 15px - 16px */
  --fs-small:               0.75rem;                                 /* 12px */
  --fs-caption:             0.8125rem;                               /* 13px */

  --lh-heading:             1.2;
  --lh-body:                1.7;
  --lh-tight:               1.1;

  --ls-heading:             -0.02em;
  --ls-body:                0;
  --ls-wide:                0.08em;
  --ls-caps:                0.15em;

  /* ---- Spacing Scale ---- */
  --space-3xs:              0.25rem;   /* 4px  */
  --space-2xs:              0.5rem;    /* 8px  */
  --space-xs:               0.75rem;   /* 12px */
  --space-sm:               1rem;      /* 16px */
  --space-md:               1.5rem;    /* 24px */
  --space-lg:               2rem;      /* 32px */
  --space-xl:               3rem;      /* 48px */
  --space-2xl:              4rem;      /* 64px */
  --space-3xl:              6rem;      /* 96px */
  --space-4xl:              8rem;      /* 128px */

  /* Fluid section spacing */
  --section-padding:        clamp(3rem, 8vw, 7rem);
  --section-gap:            clamp(2rem, 5vw, 4rem);

  /* ---- Layout ---- */
  --container-max:          1440px;
  --container-wide:         1200px;
  --container-narrow:       800px;
  --container-text:         680px;
  --container-padding:      clamp(1rem, 3vw, 2.5rem);

  --grid-gap:               clamp(1rem, 2vw, 2rem);

  /* ---- Borders & Radii ---- */
  --radius-sm:              4px;
  --radius-md:              8px;
  --radius-lg:              16px;
  --radius-xl:              24px;
  --radius-pill:            999px;
  --radius-circle:          50%;

  --border-thin:            1px solid rgba(255, 255, 255, 0.1);
  --border-light:           1px solid var(--color-light-gray);
  --border-purple:          2px solid var(--color-primary);

  /* ---- Shadows ---- */
  --shadow-sm:              0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md:              0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg:              0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl:              0 16px 50px rgba(0, 0, 0, 0.16);
  --shadow-purple:          0 8px 30px rgba(107, 47, 160, 0.25);
  --shadow-inset:           inset 0 2px 6px rgba(0, 0, 0, 0.06);

  /* ---- Transitions ---- */
  --ease-out:               cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out:            cubic-bezier(0.42, 0, 0.58, 1);
  --ease-elastic:           cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth:            cubic-bezier(0.4, 0, 0.2, 1);

  --transition-fast:        150ms var(--ease-out);
  --transition-base:        300ms var(--ease-out);
  --transition-slow:        500ms var(--ease-in-out);
  --transition-slower:      800ms var(--ease-in-out);

  /* ---- Z-Index Scale ---- */
  --z-base:                 1;
  --z-dropdown:             100;
  --z-sticky:               200;
  --z-overlay:              300;
  --z-modal:                400;
  --z-nav:                  500;
  --z-toast:                600;
  --z-intro:                9999;

  /* ---- Header ---- */
  --header-height:          80px;
  --header-height-mobile:   64px;
}

/* Dark mode tokens (applied via class or media query) */
[data-theme="dark"] {
  --color-bg:               var(--color-black);
  --color-surface:          var(--color-charcoal);
  --color-text:             var(--color-white);
  --color-text-muted:       var(--color-gray);
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-charcoal);
  background-color: var(--color-white);
  overflow-x: hidden;
  position: relative;
}

body.menu-open,
body.intro-active {
  overflow: hidden;
}

/* Selection highlight */
::selection {
  background-color: rgba(var(--color-primary-rgb), 0.25);
  color: var(--color-primary-dark);
}

::-moz-selection {
  background-color: rgba(var(--color-primary-rgb), 0.25);
  color: var(--color-primary-dark);
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-secondary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-light);
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-secondary-dark);
}

/* Smooth scrolling for anchors, disabled when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
}

h1,
.h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

h2,
.h2 {
  font-family: var(--font-body);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
}

h3,
.h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
}

h4,
.h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-medium);
}

h5, .h5 {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
}

h6, .h6 {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--color-mid-gray);
}

p {
  margin-bottom: var(--space-sm);
  max-width: 72ch;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

strong, b {
  font-weight: var(--fw-bold);
}

em, i {
  font-style: italic;
}

small,
.text-small {
  font-size: var(--fs-small);
  line-height: 1.5;
}

.text-caption {
  font-size: var(--fs-caption);
  color: var(--color-mid-gray);
  line-height: 1.5;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-white  { color: var(--color-white); }
.text-purple { color: var(--color-primary); }
.text-gold   { color: var(--color-accent); }
.text-muted  { color: var(--color-mid-gray); }

/* Lead paragraph */
.lead {
  font-size: clamp(1.0625rem, 0.8vw + 0.75rem, 1.25rem);
  line-height: 1.6;
  color: var(--color-mid-gray);
  max-width: 60ch;
}

/* Section label / eyebrow */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--color-primary);
  margin-right: var(--space-2xs);
  vertical-align: middle;
  transition: width var(--transition-base);
}

/* List resets */
ul, ol {
  list-style: none;
}

.content-list {
  list-style: none;
  padding: 0;
}

.content-list li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-2xs);
}

.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-circle);
  background: var(--color-primary);
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-dark-gray);
  background: var(--color-off-white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

blockquote cite {
  display: block;
  margin-top: var(--space-sm);
  font-size: var(--fs-small);
  font-style: normal;
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
}

hr {
  border: none;
  height: 1px;
  background: var(--color-light-gray);
  margin: var(--space-xl) 0;
}


/* ==========================================================================
   4. LAYOUT - Container & Grid System
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--text {
  max-width: var(--container-text);
}

.container--full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Grid system */
.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--auto-fill {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid--auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Flexbox helpers */
.flex {
  display: flex;
}

.flex--center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex--between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex--column {
  display: flex;
  flex-direction: column;
}

.flex--wrap {
  flex-wrap: wrap;
}

.flex--gap-sm { gap: var(--space-sm); }
.flex--gap-md { gap: var(--space-md); }
.flex--gap-lg { gap: var(--space-lg); }

/* Alignment utilities */
.align-center   { align-items: center; }
.align-start    { align-items: flex-start; }
.align-end      { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-start  { justify-content: flex-start; }
.justify-end    { justify-content: flex-end; }


/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  padding: 1.25rem 2rem;
  background: transparent;
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base),
              backdrop-filter var(--transition-base);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* All pages: header stays transparent — no black strip ever */
.site-header--transparent.is-scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.site-header.is-scrolled .header__logo-img {
  filter: brightness(1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  flex-shrink: 0;
  z-index: calc(var(--z-nav) + 2);
}

.header__logo-img {
  height: 32px;
  width: auto;
  transition: filter var(--transition-base);
}

/* White logo hidden by default, shown on globe slide */
.header__logo-img--white {
  display: none;
}

body[data-intro-scene="3"] .header__logo-img--purple {
  display: none;
}

body[data-intro-scene="3"] .header__logo-img--white {
  display: block;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--color-white);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

/* Navigation - right side controls */
.header__controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: calc(var(--z-nav) + 2);
}

/* Back button (pill shape) */
.header__back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast),
              border-color var(--transition-fast),
              transform var(--transition-fast);
  white-space: nowrap;
}

.header__back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--color-white);
  transform: translateX(-2px);
}

.header__back-btn svg,
.header__back-btn .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.header__back-btn:hover svg,
.header__back-btn:hover .icon {
  transform: translateX(-3px);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Prevent RTL from flipping header layout */
[dir="rtl"] .site-header,
[dir="rtl"] .header__inner,
[dir="rtl"] .header__actions {
  direction: ltr !important;
}

/* Hamburger menu button */
.header__menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-right: -10px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: calc(var(--z-nav) + 2);
  position: relative;
}

.header__menu-toggle .hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-base),
              opacity var(--transition-fast);
}

/* Hamburger stays white on all pages (matches intro nav) */

.header__menu-toggle .hamburger-line:nth-child(1) {
  margin-bottom: 6px;
}

.header__menu-toggle .hamburger-line:nth-child(2) {
  margin-bottom: 6px;
}

/* Hamburger open state */
.header__menu-toggle.is-active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__menu-toggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header__menu-toggle.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Full-screen navigation overlay (Figma menu design) */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-nav);
  background: rgba(10, 10, 20, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) + 1);
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--space-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-panel.is-open {
  opacity: 1;
  visibility: visible;
}

/* Centered wrapper for menu + close button */
.nav-panel__center {
  position: relative;
  width: 100%;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Close button (X) — same position as hamburger icon */
.nav-panel__close {
  position: fixed;
  top: 1.25rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  z-index: 2;
  transition: opacity var(--transition-fast);
}

.nav-panel__close:hover {
  opacity: 0.7;
}

.nav-panel__menu {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 4.5vh, 3.5rem);
}

.nav-panel__item {
  margin: 0;
}

.nav-panel__link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4.5vh, 3rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0;
  transition: color var(--transition-fast);
  border-bottom: none;
  letter-spacing: 0.01em;
}

.nav-panel__link:hover,
.nav-panel__link.is-active {
  color: var(--color-white);
}

/* Bottom bar inside menu overlay */
.nav-panel__bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.4);
}

.nav-panel__copyright {
  color: rgba(255, 255, 255, 0.4);
}

.nav-panel__email {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-panel__email:hover {
  color: var(--color-white);
}


/* ==========================================================================
   6. SECTIONS
   ========================================================================== */

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section--dark {
  background: var(--color-secondary);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.75);
}

.section--dark .section-label {
  color: var(--color-accent);
}

.section--dark .section-label::before {
  background: var(--color-accent);
}

.section--light {
  background: var(--color-off-white);
}

.section--gradient {
  background: linear-gradient(180deg,
    var(--color-secondary) 0%,
    var(--color-secondary-light) 100%
  );
  color: var(--color-white);
}

.section--gradient h1,
.section--gradient h2,
.section--gradient h3,
.section--gradient h4 {
  color: var(--color-white);
}

.section--purple {
  background: linear-gradient(135deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 100%
  );
  color: var(--color-white);
}

.section--purple h1,
.section--purple h2,
.section--purple h3,
.section--purple h4 {
  color: var(--color-white);
}

/* Section header block */
.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--section-gap);
}

.section__header .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Hero sections */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--space-4xl) var(--container-padding) var(--section-padding);
}

.hero--full {
  min-height: 100vh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 20, 0.5) 0%,
    rgba(10, 10, 20, 0.7) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__content h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.hero__content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}


/* ==========================================================================
   7. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 3px;
}

/* Primary button */
.btn--primary {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Secondary button (outline) */
.btn--secondary {
  color: var(--color-primary);
  background: transparent;
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

.btn--secondary:active {
  transform: translateY(0);
}

/* Outline white (for dark backgrounds) */
.btn--outline-white {
  color: var(--color-white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* CTA button */
.btn--cta {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-color: transparent;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  box-shadow: var(--shadow-purple);
}

.btn--cta:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(var(--color-primary-rgb), 0.35);
}

.btn--cta:active {
  transform: translateY(-1px);
}

/* Button sizes */
.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-small);
}

.btn--lg {
  padding: 1.125rem 3rem;
  font-size: 1.0625rem;
}

/* Button with icon */
.btn .btn-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon--arrow {
  transform: translateX(4px);
}

/* Ghost button */
.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--color-primary);
  padding-left: 0;
  padding-right: 0;
}

.btn--ghost:hover {
  color: var(--color-primary-dark);
  background: transparent;
}

/* Button group */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}


/* ==========================================================================
   8. CARDS
   ========================================================================== */

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slower);
}

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__body {
  padding: var(--space-lg);
}

.card__label {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--color-primary);
  margin-bottom: var(--space-2xs);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-2xs);
}

.card__text {
  color: var(--color-mid-gray);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.card__footer {
  padding: var(--space-sm) var(--space-lg);
  border-top: 1px solid var(--color-light-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Dark card variant */
.card--dark {
  background: var(--color-secondary);
  color: var(--color-white);
}

.card--dark .card__title {
  color: var(--color-white);
}

.card--dark .card__text {
  color: rgba(255, 255, 255, 0.65);
}

.card--dark .card__footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* Icon card variant */
.card--icon {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}

.card--icon .card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-md);
  background: rgba(var(--color-primary-rgb), 0.08);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
}

.card--icon .card__icon svg,
.card--icon .card__icon img {
  width: 32px;
  height: 32px;
}

/* Horizontal card */
.card--horizontal {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.card--horizontal .card__image {
  aspect-ratio: auto;
  height: 100%;
}


/* ==========================================================================
   9. FORMS
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-md);
  position: relative;
}

.form-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--color-dark-gray);
  margin-bottom: var(--space-2xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-charcoal);
  background: var(--color-white);
  border: 1.5px solid var(--color-light-gray);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: var(--color-gray);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.12);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: var(--lh-body);
}

/* Select with custom arrow */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236E6E80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Checkbox & Radio custom */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xs);
  cursor: pointer;
  margin-bottom: var(--space-2xs);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-check label {
  font-size: var(--fs-body);
  color: var(--color-dark-gray);
  cursor: pointer;
}

/* Error state */
.form-group.has-error .form-input,
.form-group.has-error .form-textarea,
.form-group.has-error .form-select,
.quote-form__field.has-error .quote-form__input,
.quote-form__field.has-error .quote-form__textarea {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-error {
  display: none;
  font-size: var(--fs-small);
  color: var(--color-error);
  margin-top: var(--space-3xs);
}

.form-group.has-error .form-error,
.quote-form__field.has-error .form-error {
  display: block;
}

/* Success state */
.form-group.has-success .form-input,
.form-group.has-success .form-textarea,
.form-group.has-success .form-select,
.quote-form__field.has-success .quote-form__input,
.quote-form__field.has-success .quote-form__textarea {
  border-color: var(--color-success);
}

/* Form on dark background */
.section--dark .form-input,
.section--dark .form-textarea,
.section--dark .form-select {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.section--dark .form-input::placeholder,
.section--dark .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.section--dark .form-input:focus,
.section--dark .form-textarea:focus,
.section--dark .form-select:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.2);
}

.section--dark .form-label {
  color: rgba(255, 255, 255, 0.7);
}

/* Form row (inline fields) */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

/* Form submit message */
.form-message {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--fs-body);
  margin-top: var(--space-md);
  display: none;
}

.form-message--success {
  display: block;
  background: rgba(46, 204, 113, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.form-message--error {
  display: block;
  background: rgba(231, 76, 60, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(231, 76, 60, 0.2);
}


/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) 0 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Footer brand column */
.footer__brand {
  max-width: 300px;
}

.footer__logo-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin: 0 auto var(--space-md);
}

.footer__logo {
  margin-bottom: 20px;
}

.footer__logo img {
  height: 50px;
  width: auto;
}

.footer__tagline img {
  height: 14px;
  width: auto;
  opacity: 0.7;
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-body);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

/* Footer contact column */
.footer__contact .footer__heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

/* Footer social icons */
.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--color-white);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

/* Footer nav columns */
.footer__nav h5,
.footer__nav .footer__heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-transform: none;
  letter-spacing: 0;
}

.footer__nav ul {
  list-style: none;
}

.footer__nav li {
  margin-bottom: var(--space-xs);
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer__nav a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

/* Footer contact info */
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9375rem;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--color-primary-light);
}

.footer__contact-item a {
  color: rgba(255, 255, 255, 0.5);
}

.footer__contact-item a:hover {
  color: var(--color-white);
}

/* Footer bottom bar */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) 0;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.35);
}

/* Footer newsletter (optional) */
.footer__newsletter {
  margin-top: var(--space-md);
}

.footer__newsletter-form {
  display: flex;
  gap: var(--space-2xs);
}

.footer__newsletter-form .form-input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.footer__newsletter-form .form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.footer__newsletter-form .btn {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
}


/* ==========================================================================
   11. UTILITY CLASSES
   ========================================================================== */

/* Spacing utilities */
.mt-0  { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0  { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

.px-sm { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }

/* Display utilities */
.hidden        { display: none !important; }
.block         { display: block; }
.inline-block  { display: inline-block; }
.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;
}

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Relative positioning */
.relative { position: relative; }

/* Width utilities */
.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Background utilities */
.bg-dark       { background-color: var(--color-secondary); }
.bg-light      { background-color: var(--color-off-white); }
.bg-white      { background-color: var(--color-white); }
.bg-purple     { background-color: var(--color-primary); }

/* Border utilities */
.rounded-sm    { border-radius: var(--radius-sm); }
.rounded-md    { border-radius: var(--radius-md); }
.rounded-lg    { border-radius: var(--radius-lg); }
.rounded-pill  { border-radius: var(--radius-pill); }

/* Back-to-top button */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-sticky);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-circle);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-purple);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-light);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* Page transition overlay */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--color-secondary);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

/* Reveal animations (triggered by JS IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

.reveal--left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal--right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

.reveal--right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal--scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

.reveal--scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
}

.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.10s; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.20s; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 0.30s; }
.stagger-children.is-visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.is-visible > *:nth-child(8) { transition-delay: 0.40s; }

.stagger-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg,
    var(--color-light-gray) 25%,
    var(--color-off-white) 50%,
    var(--color-light-gray) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
