/* ==========================================================================
   BuyInRio - Main Stylesheet
   Luxury Real Estate in Rio de Janeiro
   ========================================================================== */

/* ==========================================================================
   TABLE OF CONTENTS
   --------------------------------------------------------------------------
   1.  Google Fonts Import
   2.  CSS Custom Properties (Design Tokens)
   3.  Reset & Base Styles
   4.  Typography System
   5.  Layout Utilities
   6.  Navigation
   7.  Dark Sections
   8.  Light Sections
   9.  Section Transitions (Wave Dividers)
   10. Cards - Dark Sections (Tilted Glassmorphism)
   11. Cards - Light Sections (Straight)
   12. Stat Boxes
   13. Buttons & CTAs
   14. Two-Column Layout
   15. Data Tables
   16. Process Timeline
   17. FAQ Accordion
   18. Sticky Table of Contents
   19. Breadcrumbs
   20. Footer
   21. Disclaimer Text
   22. Animations & Scroll Effects
   23. Image Reveal
   24. Utility Classes
   25. Print Styles
   26. Responsive - 1440px (Desktop)
   27. Responsive - 1024px (iPad Landscape)
   28. Responsive - 768px (iPad)
   29. Responsive - 414px (iPhone Plus)
   30. Responsive - 375px (iPhone SE)
   31. Reduced Motion
   ========================================================================== */


/* ==========================================================================
   1. GOOGLE FONTS IMPORT
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;800&display=swap');


/* ==========================================================================
   2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================================== */

:root {
  /* --- Brand Colors --- */
  --color-near-black:   #0a0a0a;
  --color-forest-green: #0d2b1e;
  --color-emerald:      #1a4a2e;
  --color-royal-purple: #7b2fff;
  --color-violet:       #9d4edd;
  --color-gold:         #c9a84c;
  --color-white:        #ffffff;
  --color-off-white:    #fafaf8;

  /* --- Derived / Functional Colors --- */
  --color-gold-hover:         #d4b45a;
  --color-gold-active:        #b8953f;
  --color-text-primary:       var(--color-white);
  --color-text-secondary:     rgba(255, 255, 255, 0.7);
  --color-text-muted:         rgba(255, 255, 255, 0.5);
  --color-text-dark:          var(--color-near-black);
  --color-text-dark-secondary: rgba(10, 10, 10, 0.7);
  --color-text-dark-muted:    rgba(10, 10, 10, 0.5);

  /* --- Typography --- */
  --font-family:  'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fw-light:     300;
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;

  --fs-hero:          clamp(3rem, 5vw + 1rem, 4.5rem);   /* 48-72px */
  --fs-section-title: clamp(2.25rem, 3vw + 0.5rem, 3rem); /* 36-48px */
  --fs-card-title:    clamp(1.125rem, 1.5vw, 1.375rem);   /* 18-22px */
  --fs-body:          clamp(0.9375rem, 1vw, 1rem);         /* 15-16px */
  --fs-stat:          clamp(2rem, 3vw, 3rem);               /* 32-48px */
  --fs-nav:           clamp(0.875rem, 1vw, 1rem);           /* 14-16px */
  --fs-cta:           clamp(0.875rem, 1vw, 1rem);           /* 14-16px */
  --fs-small:         0.8125rem;                             /* 13px */
  --fs-xs:            0.75rem;                               /* 12px */

  --lh-tight:   1.2;
  --lh-normal:  1.6;
  --lh-loose:   1.8;

  /* --- Spacing --- */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;
  --space-5xl:  8rem;

  /* --- Layout --- */
  --max-width:        1280px;
  --nav-height:       80px;
  --section-padding:  clamp(4rem, 8vw, 8rem);
  --container-gutter: clamp(1rem, 4vw, 2rem);
  --two-col-gap:      clamp(2.5rem, 4vw, 3.75rem); /* 40-60px */

  /* --- Borders & Radius --- */
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-card:  22px;
  --radius-pill:  50px;

  /* --- Shadows --- */
  --shadow-card-dark:  0 0 20px rgba(123, 47, 255, 0.4);
  --shadow-card-dark-hover: 0 0 35px rgba(123, 47, 255, 0.6), 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-card-light: 0 0 15px rgba(13, 43, 30, 0.3);
  --shadow-card-light-hover: 0 0 25px rgba(13, 43, 30, 0.45), 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-nav:        0 2px 20px rgba(0, 0, 0, 0.3);

  /* --- Glassmorphism --- */
  --glass-dark-bg:     rgba(255, 255, 255, 0.05);
  --glass-dark-blur:   blur(12px) saturate(180%);
  --glass-light-bg:    rgba(255, 255, 255, 0.6);
  --glass-light-blur:  blur(10px);

  /* --- Transitions --- */
  --transition-fast:   0.2s ease;
  --transition-base:   0.3s ease;
  --transition-slow:   0.5s ease;

  /* --- Z-Index Scale --- */
  --z-base:       1;
  --z-botanical:  10;
  --z-sticky:     100;
  --z-nav:        1000;
  --z-overlay:    2000;
  --z-modal:      3000;
}


/* ==========================================================================
   3. RESET & BASE STYLES
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-text-dark);
  background-color: var(--color-near-black);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

::selection {
  background-color: var(--color-gold);
  color: var(--color-near-black);
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}


/* ==========================================================================
   4. TYPOGRAPHY SYSTEM
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  line-height: var(--lh-tight);
}

/* --- Restore default block spacing stripped by reset --- */
p {
  margin-bottom: var(--space-md);
}

h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

h4 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

ul, ol {
  margin-bottom: var(--space-md);
}

/* Prevent double spacing on last child in a container */
p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

.hero-headline {
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-hero);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-headline {
  font-weight: var(--fw-bold);
  font-size: var(--fs-section-title);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

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

.body-text {
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
}

.stat-number {
  font-weight: var(--fw-bold);
  font-size: var(--fs-stat);
  color: var(--color-gold);
  line-height: 1;
}

.stat-label {
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
}

.text-gold    { color: var(--color-gold); }
.text-white   { color: var(--color-white); }
.text-muted   { color: var(--color-text-muted); }
.text-dark    { color: var(--color-text-dark); }
.text-dark-muted { color: var(--color-text-dark-muted); }
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.08em; }


/* ==========================================================================
   5. LAYOUT UTILITIES
   ========================================================================== */

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

.container--narrow {
  max-width: 960px;
}

.container--wide {
  max-width: 1440px;
}

.section {
  position: relative;
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  overflow: hidden;
}

.flex {
  display: flex;
}

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

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

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }
.gap-3xl { gap: var(--space-3xl); }

.grid {
  display: grid;
}

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

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

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

.mx-auto { margin-left: auto; margin-right: auto; }

.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); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.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); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

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

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

.p-md   { padding: var(--space-md); }
.p-lg   { padding: var(--space-lg); }
.p-xl   { padding: var(--space-xl); }
.p-2xl  { padding: var(--space-2xl); }


/* ==========================================================================
   6. NAVIGATION
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 var(--container-gutter);
  background-color: transparent;
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base);
}

.nav--scrolled {
  background-color: var(--color-forest-green);
  box-shadow: var(--shadow-nav);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav__logo {
  font-weight: var(--fw-bold);
  font-size: 1.5rem;
  color: var(--color-gold);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav__logo a {
  color: inherit;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-nav);
  color: var(--color-white);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width var(--transition-base);
}

.nav__link:hover {
  color: var(--color-gold);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--active {
  color: var(--color-gold);
}

.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-cta);
  color: var(--color-near-black);
  background-color: var(--color-gold);
  border-radius: var(--radius-pill);
  transition: background-color var(--transition-fast),
              transform var(--transition-fast);
  white-space: nowrap;
}

.nav__cta:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-1px);
}

.nav__cta:active {
  background-color: var(--color-gold-active);
  transform: translateY(0);
}

/* --- Hamburger Menu --- */

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: calc(var(--z-nav) + 1);
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-base),
              opacity var(--transition-base);
}

.nav__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Menu Overlay --- */

.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(13, 43, 30, 0.98);
  backdrop-filter: blur(20px);
  z-index: var(--z-nav);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav__mobile-menu--open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.nav__mobile-menu .nav__link {
  font-size: 1.5rem;
}

.nav__mobile-menu .nav__cta {
  font-size: 1.125rem;
  padding: 0.875rem 2rem;
}


/* ==========================================================================
   7. DARK SECTIONS
   ========================================================================== */

.section--dark {
  background: linear-gradient(180deg, var(--color-near-black) 0%, var(--color-forest-green) 100%);
  color: var(--color-text-primary);
  position: relative;
}

.section--dark::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/assets/images/backgrounds/processed/buyinrio-bg-ultrarealistic-extremely-dark-tropical-botanical-ba-0f10741d-b9f1-456f-aa5f-462d3144390b-1920w.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.section--dark > * {
  position: relative;
  z-index: var(--z-base);
}

/* --- Hero Section (Dark) --- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

/* Cinematic hero background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark gradient overlay for text readability */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(13, 43, 30, 0.65) 50%,
    rgba(10, 10, 10, 0.8) 100%
  );
  z-index: 1;
}

/* When hero has a bg image, suppress the section--dark botanical overlay */
.hero.hero--has-bg::after {
  background-image: none !important;
  opacity: 0;
}

.hero__content {
  max-width: 800px;
  padding: var(--space-2xl);
}

.hero__headline {
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-hero);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.hero__subheadline {
  font-weight: var(--fw-light);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta-group {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}



/* ==========================================================================
   8. LIGHT SECTIONS
   ========================================================================== */

.section--light {
  background-color: var(--color-off-white);
  color: var(--color-text-dark);
  position: relative;
}

.section--light::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/assets/images/backgrounds/processed/buyinrio-bg-ultrarealistic-tropical-botanical-background-image-184ce2fc-72d7-42aa-bfbb-9f87ad5b59fc-1920w.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.section--light > * {
  position: relative;
  z-index: var(--z-base);
}

.section--light .section-headline {
  color: var(--color-near-black);
}

.section--light .body-text {
  color: var(--color-text-dark-secondary);
}

.section--light .stat-label {
  color: var(--color-text-dark-muted);
}


/* ==========================================================================
   9. SECTION TRANSITIONS (WAVE DIVIDERS)
   ========================================================================== */

.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}

.wave-divider--dark-to-light {
  background-color: var(--color-off-white);
  margin-top: -1px;
}

.wave-divider--dark-to-light svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 60px;
}

.wave-divider--dark-to-light svg path {
  fill: var(--color-forest-green);
}

.wave-divider--light-to-dark {
  background-color: var(--color-near-black);
  margin-top: -1px;
}

.wave-divider--light-to-dark svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 60px;
}

.wave-divider--light-to-dark svg path {
  fill: var(--color-off-white);
}

/* --- Botanical Cross-Boundary Elements --- */

.botanical-element {
  position: absolute;
  z-index: var(--z-botanical);
  pointer-events: none;
  opacity: 0.15;
}

.botanical-element--left {
  left: -5%;
  top: -10%;
}

.botanical-element--right {
  right: -5%;
  bottom: -10%;
}


/* ==========================================================================
   10. CARDS - DARK SECTIONS (TILTED GLASSMORPHISM)
   ========================================================================== */

.card--dark {
  position: relative;
  background: var(--glass-dark-bg);
  backdrop-filter: var(--glass-dark-blur);
  -webkit-backdrop-filter: var(--glass-dark-blur);
  border: 1.5px solid transparent;
  border-radius: var(--radius-card);
  padding: var(--space-2xl);
  transform: rotate(2deg);
  box-shadow: var(--shadow-card-dark);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
  overflow: hidden;
}

/* Gradient border via background-clip trick */
.card--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--color-royal-purple), var(--color-violet));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card--dark:hover {
  transform: rotate(2deg) translateY(-4px);
  box-shadow: var(--shadow-card-dark-hover);
}

.card--dark:active {
  border-color: var(--color-gold);
  box-shadow: 0 0 25px rgba(201, 168, 76, 0.5);
  transition: border-color 0.1s ease, box-shadow 0.1s ease;
}

/* Alternate tilt direction for visual rhythm */
.card--dark:nth-child(even) {
  transform: rotate(-2deg);
}

.card--dark:nth-child(even):hover {
  transform: rotate(-2deg) translateY(-4px);
}

/* Steeper tilt variant */
.card--dark--tilt-more {
  transform: rotate(4deg);
}

.card--dark--tilt-more:hover {
  transform: rotate(4deg) translateY(-4px);
}

/* No tilt variant for dark cards */
.card--dark--straight {
  transform: rotate(0deg);
}

.card--dark--straight:hover {
  transform: rotate(0deg) translateY(-4px);
}

.card--dark__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.card--dark__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card--dark:hover .card--dark__image img {
  transform: scale(1.05);
}

.card--dark .card-title {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.card--dark .body-text {
  color: var(--color-text-secondary);
}


/* ==========================================================================
   11. CARDS - LIGHT SECTIONS (STRAIGHT)
   ========================================================================== */

.card--light {
  position: relative;
  background: var(--glass-light-bg);
  backdrop-filter: var(--glass-light-blur);
  -webkit-backdrop-filter: var(--glass-light-blur);
  border: 1.5px solid transparent;
  border-radius: var(--radius-card);
  padding: var(--space-2xl);
  transform: rotate(0deg);
  box-shadow: var(--shadow-card-light);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
  overflow: hidden;
}

/* Gradient border - green to emerald */
.card--light::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--color-forest-green), var(--color-emerald));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

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

.card--light:hover::before {
  background: linear-gradient(135deg, var(--color-emerald), #28704a);
}

.card--light:active {
  border-color: var(--color-gold);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
  transition: border-color 0.1s ease, box-shadow 0.1s ease;
}

.card--light__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.card--light__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card--light:hover .card--light__image img {
  transform: scale(1.05);
}

.card--light .card-title {
  color: var(--color-near-black);
  margin-bottom: var(--space-sm);
}

.card--light .body-text {
  color: var(--color-text-dark-secondary);
}


/* ==========================================================================
   12. STAT BOXES
   ========================================================================== */

.stat-box {
  text-align: center;
  padding: var(--space-2xl);
}

/* Stat box in dark section inherits card--dark styling */
.section--dark .stat-box {
  background: var(--glass-dark-bg);
  backdrop-filter: var(--glass-dark-blur);
  -webkit-backdrop-filter: var(--glass-dark-blur);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-dark);
  border: 1.5px solid transparent;
  position: relative;
}

.section--dark .stat-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--color-royal-purple), var(--color-violet));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Stat box in light section inherits card--light styling */
.section--light .stat-box {
  background: var(--glass-light-bg);
  backdrop-filter: var(--glass-light-blur);
  -webkit-backdrop-filter: var(--glass-light-blur);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-light);
  border: 1.5px solid transparent;
  position: relative;
}

.section--light .stat-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--color-forest-green), var(--color-emerald));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.stat-box__number {
  font-weight: var(--fw-bold);
  font-size: var(--fs-stat);
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-box__label {
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
}

.section--dark .stat-box__label {
  color: var(--color-text-secondary);
}

.section--light .stat-box__label {
  color: var(--color-text-dark-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}


/* ==========================================================================
   13. BUTTONS & CTAs
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-family);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-cta);
  line-height: 1;
  border-radius: var(--radius-pill);
  padding: 0.875rem 2rem;
  cursor: pointer;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

/* Primary - Gold pill */
.btn--primary {
  background-color: var(--color-gold);
  color: var(--color-near-black);
  border: 2px solid var(--color-gold);
}

.btn--primary:hover {
  background-color: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}

.btn--primary:active {
  background-color: var(--color-gold-active);
  transform: translateY(0);
}

/* Secondary - Outline on dark */
.btn--secondary {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

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

.btn--secondary:active {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(0);
}

/* Ghost - Transparent, for light sections */
.btn--ghost {
  background-color: transparent;
  color: var(--color-forest-green);
  border: 2px solid var(--color-emerald);
}

.btn--ghost:hover {
  background-color: var(--color-forest-green);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--ghost:active {
  background-color: var(--color-emerald);
  transform: translateY(0);
}

/* Small variant */
.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

/* Large variant */
.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
}

/* Full-width */
.btn--block {
  width: 100%;
}

/* Icon in button */
.btn__icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}


/* ==========================================================================
   14. TWO-COLUMN LAYOUT
   ========================================================================== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--two-col-gap);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

.two-col--top {
  align-items: start;
}

.two-col__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.two-col__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.two-col__media img {
  width: 100%;
  height: auto;
  display: block;
}


/* ==========================================================================
   15. DATA TABLES
   ========================================================================== */

/* --- Dark Section Tables --- */

.table-wrapper--dark {
  background: var(--glass-dark-bg);
  backdrop-filter: var(--glass-dark-blur);
  -webkit-backdrop-filter: var(--glass-dark-blur);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-dark);
  overflow: hidden;
  position: relative;
  border: 1.5px solid transparent;
}

.table-wrapper--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--color-royal-purple), var(--color-violet));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table--dark {
  width: 100%;
  border-collapse: collapse;
  color: var(--color-text-primary);
}

.table--dark thead {
  background: rgba(255, 255, 255, 0.08);
}

.table--dark th {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-lg);
  text-align: left;
  white-space: nowrap;
  color: var(--color-gold);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table--dark th[data-sortable] {
  cursor: pointer;
  user-select: none;
}

.table--dark th[data-sortable]:hover {
  color: var(--color-gold-hover);
}

.table--dark th[data-sortable]::after {
  content: ' \2195';
  opacity: 0.4;
  font-size: 0.75em;
}

.table--dark th[data-sort="asc"]::after {
  content: ' \2191';
  opacity: 1;
}

.table--dark th[data-sort="desc"]::after {
  content: ' \2193';
  opacity: 1;
}

.table--dark td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: var(--fs-body);
}

.table--dark tbody tr {
  transition: background-color var(--transition-fast);
}

.table--dark tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* --- Light Section Tables --- */

.table-wrapper--light {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid rgba(13, 43, 30, 0.1);
}

.table--light {
  width: 100%;
  border-collapse: collapse;
  color: var(--color-text-dark);
}

.table--light thead {
  background: var(--color-forest-green);
}

.table--light th {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-lg);
  text-align: left;
  white-space: nowrap;
  color: var(--color-white);
}

.table--light th[data-sortable] {
  cursor: pointer;
  user-select: none;
}

.table--light th[data-sortable]:hover {
  color: var(--color-gold);
}

.table--light th[data-sortable]::after {
  content: ' \2195';
  opacity: 0.4;
  font-size: 0.75em;
}

.table--light th[data-sort="asc"]::after {
  content: ' \2191';
  opacity: 1;
}

.table--light th[data-sort="desc"]::after {
  content: ' \2193';
  opacity: 1;
}

.table--light td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(13, 43, 30, 0.08);
  font-size: var(--fs-body);
}

.table--light tbody tr {
  transition: background-color var(--transition-fast);
}

.table--light tbody tr:hover {
  background-color: rgba(13, 43, 30, 0.03);
}

.table--light tbody tr:nth-child(even) {
  background-color: rgba(13, 43, 30, 0.02);
}

.table--light tbody tr:nth-child(even):hover {
  background-color: rgba(13, 43, 30, 0.05);
}


/* ==========================================================================
   16. PROCESS TIMELINE
   ========================================================================== */

.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
}

/* Connecting line - horizontal on desktop */
.timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-gold) 0%,
    var(--color-emerald) 50%,
    var(--color-gold) 100%
  );
  z-index: 0;
}

.timeline__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  z-index: 1;
}

.timeline__number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: 1.25rem;
  color: var(--color-near-black);
  background-color: var(--color-gold);
  border: 3px solid var(--color-near-black);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.section--dark .timeline__number {
  border-color: var(--color-forest-green);
}

.timeline__title {
  font-weight: var(--fw-bold);
  font-size: var(--fs-card-title);
  margin-bottom: var(--space-sm);
}

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

.section--light .timeline__title {
  color: var(--color-near-black);
}

.timeline__description {
  font-size: var(--fs-body);
  max-width: 200px;
}

.section--dark .timeline__description {
  color: var(--color-text-secondary);
}

.section--light .timeline__description {
  color: var(--color-text-dark-secondary);
}


/* ==========================================================================
   17. FAQ ACCORDION
   ========================================================================== */

.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section--light .faq__item {
  border-bottom-color: rgba(13, 43, 30, 0.1);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) 0;
  font-weight: var(--fw-semibold);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.section--light .faq__question {
  color: var(--color-near-black);
}

.faq__question:hover {
  color: var(--color-gold);
}

.faq__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: var(--space-lg);
  position: relative;
  transition: transform var(--transition-base);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background-color: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--transition-base);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item--open .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease,
              padding var(--transition-slow) ease;
}

.faq__item--open .faq__answer {
  max-height: 500px;
  padding-bottom: var(--space-xl);
}

.faq__answer-inner {
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
}

.section--dark .faq__answer-inner {
  color: var(--color-text-secondary);
}

.section--light .faq__answer-inner {
  color: var(--color-text-dark-secondary);
}


/* ==========================================================================
   18. STICKY TABLE OF CONTENTS (Buying Guide)
   ========================================================================== */

.guide-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-3xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.toc {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-xl));
  align-self: start;
  max-height: calc(100vh - var(--nav-height) - var(--space-3xl));
  overflow-y: auto;
  padding-right: var(--space-lg);
}

.toc__title {
  font-weight: var(--fw-bold);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-lg);
}

.section--dark .toc__title {
  color: var(--color-gold);
}

.section--light .toc__title {
  color: var(--color-forest-green);
}

.toc__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.toc__link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: all var(--transition-fast);
}

.section--dark .toc__link {
  color: var(--color-text-secondary);
}

.section--light .toc__link {
  color: var(--color-text-dark-secondary);
}

.toc__link:hover {
  color: var(--color-gold);
}

.toc__link--active {
  border-left-color: var(--color-gold);
  font-weight: var(--fw-semibold);
}

.section--dark .toc__link--active {
  color: var(--color-gold);
  background-color: rgba(201, 168, 76, 0.08);
}

.section--light .toc__link--active {
  color: var(--color-forest-green);
  background-color: rgba(13, 43, 30, 0.05);
}

/* Mobile TOC - Collapsible */
.toc__mobile-toggle {
  display: none;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
}

.section--dark .toc__mobile-toggle {
  background: var(--glass-dark-bg);
  color: var(--color-gold);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.section--light .toc__mobile-toggle {
  background: var(--color-white);
  color: var(--color-forest-green);
  border: 1px solid rgba(13, 43, 30, 0.15);
}

.toc__mobile-toggle::after {
  content: '\25BC';
  float: right;
  font-size: 0.75em;
  transition: transform var(--transition-base);
}

.toc__mobile-toggle--open::after {
  transform: rotate(180deg);
}

.guide-content {
  min-width: 0;
}

.guide-content h2 {
  scroll-margin-top: calc(var(--nav-height) + var(--space-xl));
}


/* ==========================================================================
   19. BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.breadcrumbs__item {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
}

.section--dark .breadcrumbs__item {
  color: var(--color-text-muted);
}

.section--light .breadcrumbs__item {
  color: var(--color-text-dark-muted);
}

.breadcrumbs__item a {
  transition: color var(--transition-fast);
}

.breadcrumbs__item a:hover {
  color: var(--color-gold);
}

.breadcrumbs__separator {
  font-size: var(--fs-xs);
  opacity: 0.5;
}

.breadcrumbs__item:last-child {
  font-weight: var(--fw-semibold);
}

.section--dark .breadcrumbs__item:last-child {
  color: var(--color-text-secondary);
}

.section--light .breadcrumbs__item:last-child {
  color: var(--color-text-dark-secondary);
}


/* ==========================================================================
   20. FOOTER
   ========================================================================== */

.footer {
  background-color: var(--color-forest-green);
  color: var(--color-text-secondary);
  padding: var(--space-4xl) 0 var(--space-2xl);
  position: relative;
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/assets/images/backgrounds/processed/buyinrio-bg-ultrarealistic-dark-tropical-botanical-background-i-1a28eca5-0b53-4296-986e-5a4e528bb81a-1920w.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.05;
  pointer-events: none;
}

.footer > * {
  position: relative;
  z-index: var(--z-base);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-3xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer__logo {
  font-weight: var(--fw-bold);
  font-size: 1.5rem;
  color: var(--color-gold);
}

.footer__description {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  line-height: var(--lh-loose);
  max-width: 320px;
}

.footer__column-title {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-gold);
}

.footer__divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: var(--space-2xl) 0;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer__legal-link {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--color-text-secondary);
}

.footer__copyright {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.footer__credit {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
  margin-top: var(--space-xl);
}

.footer__credit a {
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--transition-fast);
}

.footer__credit a:hover {
  color: var(--color-text-muted);
}


/* ==========================================================================
   21. DISCLAIMER TEXT
   ========================================================================== */

.disclaimer {
  font-size: var(--fs-xs);
  font-style: italic;
  line-height: var(--lh-normal);
  margin-top: var(--space-xl);
}

.section--dark .disclaimer {
  color: var(--color-text-muted);
}

.section--light .disclaimer {
  color: var(--color-text-dark-muted);
}


/* ==========================================================================
   22. ANIMATIONS & SCROLL EFFECTS
   ========================================================================== */

/* --- Animate on Scroll (used by main.js IntersectionObserver) --- */
/* JS adds .js-ready to <html> then hides elements; without JS they stay visible */

/* animate-on-scroll: elements fade in as they enter viewport */
/* The .is-visible class is added by main.js IntersectionObserver */
.animate-on-scroll {
  opacity: 1;
}

/* --- Fade Up on Scroll --- */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out,
              transform 0.6s ease-out;
}

.fade-up--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for children */
.fade-up--delay-1 { transition-delay: 0.1s; }
.fade-up--delay-2 { transition-delay: 0.2s; }
.fade-up--delay-3 { transition-delay: 0.3s; }
.fade-up--delay-4 { transition-delay: 0.4s; }
.fade-up--delay-5 { transition-delay: 0.5s; }

/* --- Fade In --- */

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.fade-in--visible {
  opacity: 1;
}

/* --- Scale In --- */

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease-out,
              transform 0.5s ease-out;
}

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

/* --- Slide In Left / Right --- */

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

.slide-in-left--visible {
  opacity: 1;
  transform: translateX(0);
}

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

.slide-in-right--visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Counter Animation --- */

.counter-animate {
  display: inline-block;
}

.counter-animate--active {
  animation: counter-pop 0.3s ease-out;
}

@keyframes counter-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* --- Card Hover Lift (generic) --- */

.hover-lift {
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* --- Glow Pulse (for accent elements) --- */

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(123, 47, 255, 0.4); }
  50%      { box-shadow: 0 0 35px rgba(123, 47, 255, 0.7); }
}

.glow-pulse {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* --- Gold Flash (for active/click states) --- */

@keyframes gold-flash {
  0%   { border-color: var(--color-gold); box-shadow: 0 0 25px rgba(201, 168, 76, 0.6); }
  100% { border-color: transparent; box-shadow: none; }
}

.gold-flash {
  animation: gold-flash 0.4s ease-out forwards;
}


/* ==========================================================================
   23. IMAGE REVEAL
   ========================================================================== */

.image-reveal {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.image-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.section--dark .image-reveal::before {
  background-color: var(--color-royal-purple);
}

.section--light .image-reveal::before {
  background-color: var(--color-gold);
}

.image-reveal--visible::before {
  transform: scaleX(0);
}

.image-reveal img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ==========================================================================
   24. UTILITY CLASSES
   ========================================================================== */

/* --- Visibility --- */

.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;
}

.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* --- Display --- */

.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.grid { display: grid; }

/* --- Overflow --- */

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* --- Position --- */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* --- Width / Height --- */

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* --- Border Radius --- */

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-card { border-radius: var(--radius-card); }
.rounded-full { border-radius: 50%; }
.rounded-pill { border-radius: var(--radius-pill); }

/* --- Cursor --- */

.pointer { cursor: pointer; }

/* --- Object Fit --- */

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* --- Z-Index --- */

.z-0 { z-index: 0; }
.z-1 { z-index: 1; }
.z-10 { z-index: 10; }
.z-100 { z-index: 100; }

/* --- Tag / Badge --- */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
}

.tag--gold {
  background-color: rgba(201, 168, 76, 0.15);
  color: var(--color-gold);
}

.tag--purple {
  background-color: rgba(123, 47, 255, 0.15);
  color: var(--color-royal-purple);
}

.tag--green {
  background-color: rgba(26, 74, 46, 0.15);
  color: var(--color-emerald);
}

/* --- Divider --- */

.divider {
  width: 100%;
  height: 1px;
  border: none;
}

.section--dark .divider {
  background-color: rgba(255, 255, 255, 0.1);
}

.section--light .divider {
  background-color: rgba(13, 43, 30, 0.1);
}

/* --- Aspect Ratio --- */

.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-4-3 { aspect-ratio: 4 / 3; }

/* --- Truncate --- */

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Form Elements --- */

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-family);
  font-size: var(--fs-body);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
}

.section--dark .input {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.section--dark .input::placeholder {
  color: var(--color-text-muted);
}

.section--dark .input:focus {
  border-color: var(--color-royal-purple);
  box-shadow: 0 0 0 3px rgba(123, 47, 255, 0.15);
  outline: none;
}

.section--light .input {
  background: var(--color-white);
  border: 1.5px solid rgba(13, 43, 30, 0.2);
  color: var(--color-text-dark);
}

.section--light .input::placeholder {
  color: var(--color-text-dark-muted);
}

.section--light .input:focus {
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 3px rgba(26, 74, 46, 0.1);
  outline: none;
}


/* ==========================================================================
   25. PRINT STYLES
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .nav,
  .nav__hamburger,
  .nav__mobile-menu,
  .wave-divider,
  .botanical-element,
  .footer__credit,
  .toc__mobile-toggle {
    display: none !important;
  }

  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }

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

  h1, h2, h3, h4 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666 !important;
  }

  .card--dark,
  .card--light {
    transform: none !important;
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .table-scroll {
    overflow: visible;
  }

  table {
    border: 1px solid #ccc;
  }

  th, td {
    border: 1px solid #ccc;
    padding: 0.5rem;
  }

  .footer {
    border-top: 1px solid #ccc;
    padding: 1rem 0;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ==========================================================================
   26. RESPONSIVE - 1440px (Desktop Large)
   ========================================================================== */

@media (max-width: 1440px) {
  :root {
    --max-width: 1200px;
  }
}


/* ==========================================================================
   27. RESPONSIVE - 1024px (iPad Landscape)
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --nav-height: 70px;
  }

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

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  /* Timeline shifts to narrower spacing */
  .timeline {
    gap: var(--space-md);
  }

  .timeline__description {
    max-width: 160px;
  }

  /* Guide layout TOC shrinks */
  .guide-layout {
    grid-template-columns: 220px 1fr;
    gap: var(--space-2xl);
  }
}


/* ==========================================================================
   28. RESPONSIVE - 768px (iPad)
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  /* --- Navigation goes mobile --- */

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* --- Two Column becomes single --- */

  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .two-col--reverse {
    direction: ltr;
  }

  /* --- Grids collapse --- */

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* --- Cards lose tilt on mobile --- */

  .card--dark,
  .card--dark:nth-child(even),
  .card--dark--tilt-more {
    transform: rotate(0deg);
  }

  .card--dark:hover,
  .card--dark:nth-child(even):hover,
  .card--dark--tilt-more:hover {
    transform: translateY(-4px);
  }

  /* --- Timeline becomes vertical --- */

  .timeline {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2xl);
    padding-left: 32px;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 32px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline__step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-lg);
  }

  .timeline__number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    font-size: 1rem;
    margin-bottom: 0;
  }

  .timeline__description {
    max-width: none;
  }

  /* --- Guide layout becomes single column --- */

  .guide-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .toc {
    position: static;
    max-height: none;
    padding-right: 0;
  }

  .toc__mobile-toggle {
    display: block;
  }

  .toc__list {
    display: none;
    margin-top: var(--space-md);
  }

  .toc__list--open {
    display: flex;
  }

  /* --- Footer simplifies --- */

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }

  /* --- Stats grid --- */

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

  /* --- Tables scroll --- */

  .table-scroll {
    margin: 0 calc(var(--container-gutter) * -1);
    padding: 0 var(--container-gutter);
  }
}


/* ==========================================================================
   29. RESPONSIVE - 414px (iPhone Plus)
   ========================================================================== */

@media (max-width: 414px) {
  :root {
    --container-gutter: 1rem;
  }

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

  .hero__cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .card--dark,
  .card--light {
    padding: var(--space-xl);
  }

  .stat-box {
    padding: var(--space-xl);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .btn--lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  .faq__question {
    padding: var(--space-lg) 0;
    font-size: 0.9375rem;
  }
}


/* ==========================================================================
   30. RESPONSIVE - 375px (iPhone SE)
   ========================================================================== */

@media (max-width: 375px) {
  :root {
    --container-gutter: 0.75rem;
  }

  .hero__headline {
    font-size: 2.25rem;
  }

  .section-headline {
    font-size: 1.75rem;
  }

  .nav__logo {
    font-size: 1.25rem;
  }

  .card--dark,
  .card--light {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
  }

  .card--dark__image img,
  .card--light__image img {
    height: 180px;
  }

  .timeline__number {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }

  .table--dark th,
  .table--dark td,
  .table--light th,
  .table--light td {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8125rem;
  }
}


/* ==========================================================================
   31. REDUCED MOTION
   ========================================================================== */

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

  .fade-up,
  .fade-in,
  .scale-in,
  .slide-in-left,
  .slide-in-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .image-reveal::before {
    transition: none;
    transform: scaleX(0);
  }

  .card--dark:hover,
  .card--light:hover,
  .hover-lift:hover {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   NAVBAR ALIASES (maps .navbar classes used in HTML to .nav classes)
   ========================================================================== */

.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 80px; display: flex; align-items: center; padding: 0 clamp(1rem, 3vw, 2rem); background-color: rgba(13, 43, 30, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(201, 168, 76, 0.15); transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.navbar--transparent { background-color: rgba(13, 43, 30, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.navbar--solid { background-color: #0d2b1e; box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4); }
.navbar__container { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1280px; margin: 0 auto; }
.navbar__logo { font-weight: 700; font-size: 1.5rem; color: #c9a84c; letter-spacing: -0.01em; white-space: nowrap; text-decoration: none; }
.navbar__links { display: flex; align-items: center; gap: 2rem; }
.navbar__link { font-weight: 600; font-size: clamp(0.875rem, 1vw, 1rem); color: #fff; transition: color 0.2s ease; position: relative; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; }
.navbar__link:hover { color: #c9a84c; }
.navbar__arrow { font-size: 0.7em; margin-left: 2px; }
.navbar__cta { display: inline-flex; align-items: center; padding: 0.625rem 1.5rem; font-weight: 600; font-size: clamp(0.875rem, 1vw, 1rem); color: #0a0a0a; background-color: #c9a84c; border-radius: 50px; transition: background-color 0.2s, transform 0.2s; white-space: nowrap; text-decoration: none; }
.navbar__cta:hover { transform: translateY(-1px); filter: brightness(1.1); }
.navbar__hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 28px; height: 28px; background: none; border: none; cursor: pointer; padding: 0; }
.navbar__hamburger span { display: block; width: 100%; height: 2px; background-color: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

/* Dropdown */
.navbar__dropdown { position: relative; }
.navbar__dropdown-toggle { padding: 0.5rem 0; }
.navbar__dropdown-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 220px; background: #0d2b1e; border: 1px solid rgba(123, 47, 255, 0.3); border-radius: 12px; padding: 0.75rem 0; box-shadow: 0 8px 30px rgba(0,0,0,0.4); z-index: 1001; padding-top: 1rem; }
.navbar__dropdown::before { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 0.5rem; }
.navbar__dropdown:hover .navbar__dropdown-menu { display: block; }
.navbar__dropdown-item { display: block; padding: 0.5rem 1.25rem; color: rgba(255,255,255,0.8); font-size: 0.9rem; transition: color 0.2s, background 0.2s; text-decoration: none; }
.navbar__dropdown-item:hover { color: #c9a84c; background: rgba(255,255,255,0.05); }
.navbar__dropdown-item--header { color: #c9a84c; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 0.25rem; padding-bottom: 0.75rem; }

/* Mobile menu */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: #0d2b1e; z-index: 2000; transition: right 0.3s ease; padding: 2rem; overflow-y: auto; }
.mobile-menu--open { right: 0; }
.mobile-menu__close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 2rem; }
.mobile-menu__link { color: rgba(255,255,255,0.85); padding: 0.5rem 0; font-size: 1rem; text-decoration: none; transition: color 0.2s; }
.mobile-menu__link:hover { color: #c9a84c; }
.mobile-menu__divider { color: #c9a84c; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.1); }

@media (max-width: 1024px) {
  .navbar__links { display: none !important; }
  .navbar__cta { display: none !important; }
  .navbar__hamburger { display: flex !important; }
}
