/* ==========================================================================
   WORKPLACE BY IRSA — Design System
   Premium Corporate Coworking Club — Buenos Aires
   ========================================================================== */

/* Google Fonts
   --------------------------------------------------------------------------
   Cormorant Garamond: refined serif for headlines — elegant, editorial weight
   Inter: clean geometric sans-serif for body — excellent readability
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   1. DESIGN TOKENS (Custom Properties)
   ========================================================================== */

:root {

  /* ---------------------------------------------------------------------------
     1a. COLOR PALETTE
     --------------------------------------------------------------------------- */

  /* Primary — Deep, Authoritative */
  --color-navy:            #0B1D33;
  --color-navy-light:      #142D4A;
  --color-charcoal:        #1C2632;
  --color-slate:           #2E3A48;

  /* Gold / Brass — The 5-Star Accent */
  --color-gold:            #B8965A;
  --color-gold-light:      #D4B07A;
  --color-gold-dark:       #9A7A42;
  --color-gold-muted:      #C8AD7E;
  --color-gold-pale:       rgba(184, 150, 90, 0.08);

  /* Neutrals — Warm, Never Clinical */
  --color-white:           #FFFFFF;
  --color-ivory:           #FAF8F5;
  --color-warm-gray-50:    #F5F3F0;
  --color-warm-gray-100:   #EBE8E4;
  --color-warm-gray-200:   #D8D4CE;
  --color-warm-gray-300:   #B8B3AB;
  --color-warm-gray-400:   #94908A;
  --color-warm-gray-500:   #706C66;
  --color-warm-gray-600:   #504D48;
  --color-warm-gray-700:   #3A3835;
  --color-warm-gray-800:   #272523;
  --color-warm-gray-900:   #1A1917;

  /* Secondary Accent — For CTAs and Interactive Elements */
  --color-copper:          #C4724E;
  --color-copper-light:    #D9937A;
  --color-copper-dark:     #A65D3C;

  /* Semantic */
  --color-success:         #4A7C59;
  --color-success-light:   #E8F0EB;
  --color-error:           #A63D3D;
  --color-error-light:     #F5E8E8;
  --color-warning:         #B8965A;
  --color-warning-light:   #FAF5EC;
  --color-info:            #3D6A8A;
  --color-info-light:      #E8F0F5;

  /* ---------------------------------------------------------------------------
     1b. SEMANTIC COLOR ASSIGNMENTS
     --------------------------------------------------------------------------- */

  --color-bg-primary:      var(--color-white);
  --color-bg-secondary:    var(--color-ivory);
  --color-bg-tertiary:     var(--color-warm-gray-50);
  --color-bg-dark:         var(--color-navy);
  --color-bg-dark-alt:     var(--color-charcoal);

  --color-text-primary:    var(--color-warm-gray-900);
  --color-text-secondary:  var(--color-warm-gray-500);
  --color-text-tertiary:   var(--color-warm-gray-400);
  --color-text-inverse:    var(--color-ivory);
  --color-text-accent:     var(--color-gold);
  --color-text-link:       var(--color-copper);

  --color-border-light:    var(--color-warm-gray-100);
  --color-border-default:  var(--color-warm-gray-200);
  --color-border-dark:     var(--color-warm-gray-300);
  --color-border-gold:     var(--color-gold-muted);

  /* ---------------------------------------------------------------------------
     1c. TYPOGRAPHY
     --------------------------------------------------------------------------- */

  --font-serif:            'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --font-sans:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Type Scale — modular, generous */
  --text-display:          clamp(3rem, 5vw + 1rem, 5.5rem);     /* 48–88px */
  --text-display-sm:       clamp(2.25rem, 4vw + 0.5rem, 4rem);  /* 36–64px */
  --text-h1:               clamp(2rem, 3vw + 0.5rem, 3.25rem);  /* 32–52px */
  --text-h2:               clamp(1.75rem, 2.5vw + 0.25rem, 2.5rem); /* 28–40px */
  --text-h3:               clamp(1.375rem, 2vw, 1.875rem);      /* 22–30px */
  --text-h4:               clamp(1.125rem, 1.5vw, 1.5rem);      /* 18–24px */
  --text-h5:               1.125rem;                              /* 18px */
  --text-h6:               1rem;                                  /* 16px */
  --text-body-lg:          1.125rem;                              /* 18px */
  --text-body:             1rem;                                  /* 16px */
  --text-body-sm:          0.9375rem;                             /* 15px */
  --text-small:            0.875rem;                              /* 14px */
  --text-caption:          0.8125rem;                             /* 13px */
  --text-overline:         0.75rem;                               /* 12px */

  /* Line Heights */
  --leading-none:          1;
  --leading-tight:         1.15;
  --leading-snug:          1.3;
  --leading-normal:        1.6;
  --leading-relaxed:       1.75;
  --leading-loose:         2;

  /* Letter Spacing */
  --tracking-tighter:     -0.03em;
  --tracking-tight:       -0.015em;
  --tracking-normal:       0;
  --tracking-wide:         0.04em;
  --tracking-wider:        0.08em;
  --tracking-widest:       0.16em;

  /* Font Weights */
  --weight-light:          300;
  --weight-regular:        400;
  --weight-medium:         500;
  --weight-semibold:       600;
  --weight-bold:           700;

  /* ---------------------------------------------------------------------------
     1d. SPACING (8px base grid)
     --------------------------------------------------------------------------- */

  --space-unit:            8px;
  --space-2xs:             4px;      /* 0.5 units */
  --space-xs:              8px;      /* 1 unit   */
  --space-sm:              16px;     /* 2 units  */
  --space-md:              24px;     /* 3 units  */
  --space-lg:              32px;     /* 4 units  */
  --space-xl:              48px;     /* 6 units  */
  --space-2xl:             64px;     /* 8 units  */
  --space-3xl:             96px;     /* 12 units */
  --space-4xl:             128px;    /* 16 units */
  --space-5xl:             192px;    /* 24 units */

  /* Section Padding — generous, premium whitespace */
  --section-padding-y:     clamp(var(--space-3xl), 10vw, var(--space-5xl));
  --section-padding-x:     clamp(var(--space-sm), 5vw, var(--space-xl));

  /* ---------------------------------------------------------------------------
     1e. LAYOUT
     --------------------------------------------------------------------------- */

  --max-width:             1200px;
  --max-width-narrow:      800px;
  --max-width-wide:        1400px;
  --max-width-text:        680px;

  --grid-columns:          12;
  --grid-gap:              var(--space-md);
  --grid-gap-lg:           var(--space-xl);

  /* ---------------------------------------------------------------------------
     1f. BORDERS & RADII
     --------------------------------------------------------------------------- */

  --radius-none:           0;
  --radius-sm:             2px;
  --radius-md:             4px;
  --radius-lg:             8px;
  --radius-xl:             12px;
  --radius-full:           9999px;

  --border-thin:           1px solid var(--color-border-light);
  --border-default:        1px solid var(--color-border-default);
  --border-gold:           1px solid var(--color-border-gold);

  /* ---------------------------------------------------------------------------
     1g. SHADOWS — Layered, Subtle
     --------------------------------------------------------------------------- */

  --shadow-xs:             0 1px 2px rgba(27, 25, 23, 0.04);
  --shadow-sm:             0 1px 4px rgba(27, 25, 23, 0.06),
                           0 1px 2px rgba(27, 25, 23, 0.04);
  --shadow-md:             0 4px 12px rgba(27, 25, 23, 0.06),
                           0 2px 4px rgba(27, 25, 23, 0.04);
  --shadow-lg:             0 8px 24px rgba(27, 25, 23, 0.08),
                           0 4px 8px rgba(27, 25, 23, 0.04);
  --shadow-xl:             0 16px 48px rgba(27, 25, 23, 0.10),
                           0 8px 16px rgba(27, 25, 23, 0.04);
  --shadow-gold:           0 4px 16px rgba(184, 150, 90, 0.15);
  --shadow-inner:          inset 0 1px 3px rgba(27, 25, 23, 0.06);

  /* ---------------------------------------------------------------------------
     1h. TRANSITIONS & ANIMATIONS
     --------------------------------------------------------------------------- */

  --ease-out-smooth:       cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-expo:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth:    cubic-bezier(0.45, 0, 0.55, 1);

  --duration-instant:      100ms;
  --duration-fast:         200ms;
  --duration-normal:       350ms;
  --duration-slow:         500ms;
  --duration-slower:       700ms;
  --duration-reveal:       1000ms;

  --transition-fast:       var(--duration-fast) var(--ease-out-smooth);
  --transition-normal:     var(--duration-normal) var(--ease-out-smooth);
  --transition-slow:       var(--duration-slow) var(--ease-out-expo);

  /* ---------------------------------------------------------------------------
     1i. Z-INDEX SCALE
     --------------------------------------------------------------------------- */

  --z-base:                0;
  --z-raised:              10;
  --z-dropdown:            100;
  --z-sticky:              200;
  --z-overlay:             300;
  --z-modal:               400;
  --z-toast:               500;
}


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

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  letter-spacing: var(--tracking-normal);
}

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

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

a:hover {
  color: var(--color-copper-dark);
}

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


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

/* Display — Hero-level */
.text-display {
  font-family: var(--font-serif);
  font-size: var(--text-display);
  font-weight: var(--weight-light);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tighter);
  color: var(--color-text-primary);
}

.text-display-sm {
  font-family: var(--font-serif);
  font-size: var(--text-display-sm);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

/* Headings */
h1, .h1 {
  font-family: var(--font-serif);
  font-size: var(--text-h1);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

h2, .h2 {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

h3, .h3 {
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

h4, .h4 {
  font-family: var(--font-sans);
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

h5, .h5 {
  font-family: var(--font-sans);
  font-size: var(--text-h5);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

h6, .h6 {
  font-family: var(--font-sans);
  font-size: var(--text-h6);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

/* Body Text */
.text-body-lg {
  font-size: var(--text-body-lg);
  line-height: var(--leading-relaxed);
}

.text-body {
  font-size: var(--text-body);
  line-height: var(--leading-normal);
}

.text-body-sm {
  font-size: var(--text-body-sm);
  line-height: var(--leading-normal);
}

.text-small {
  font-size: var(--text-small);
  line-height: var(--leading-normal);
}

.text-caption {
  font-size: var(--text-caption);
  line-height: var(--leading-normal);
  color: var(--color-text-tertiary);
}

.text-overline {
  font-family: var(--font-sans);
  font-size: var(--text-overline);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Lead / Intro Paragraph */
.text-lead {
  font-size: var(--text-body-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: var(--max-width-text);
}

/* Paragraph defaults */
p {
  margin-bottom: var(--space-sm);
}

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


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
}

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

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

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

/* Section */
.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section--sm {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section--lg {
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-5xl);
}

/* Backgrounds */
.section--light {
  background-color: var(--color-bg-secondary);
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

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

.section--dark .text-overline {
  color: var(--color-gold-light);
}

.section--dark .text-lead,
.section--dark .text-caption {
  color: var(--color-warm-gray-300);
}

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

.grid--lg-gap {
  gap: var(--grid-gap-lg);
}

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

/* Asymmetric layouts */
.grid-cols-2-1 { grid-template-columns: 2fr 1fr; }
.grid-cols-1-2 { grid-template-columns: 1fr 2fr; }
.grid-cols-3-2 { grid-template-columns: 3fr 2fr; }
.grid-cols-2-3 { grid-template-columns: 2fr 3fr; }

/* Grid alignment */
.grid--center {
  align-items: center;
}

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

/* Responsive Grid */
@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4,
  .grid-cols-2-1,
  .grid-cols-1-2,
  .grid-cols-3-2,
  .grid-cols-2-3 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Flex utilities */
.flex {
  display: flex;
}

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

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

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

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

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


/* ==========================================================================
   5. COMPONENTS — BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  line-height: 1;
  padding: 14px 32px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--duration-fast) var(--ease-out-smooth);
  text-decoration: none;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

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

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

.btn--primary:hover {
  background-color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-gold);
}

/* Secondary — Outline */
.btn--secondary {
  background-color: transparent;
  border-color: var(--color-warm-gray-800);
  color: var(--color-warm-gray-800);
}

.btn--secondary:hover {
  background-color: var(--color-warm-gray-800);
  color: var(--color-white);
}

/* Secondary on Dark */
.section--dark .btn--secondary,
.btn--secondary-light {
  border-color: var(--color-warm-gray-200);
  color: var(--color-warm-gray-200);
}

.section--dark .btn--secondary:hover,
.btn--secondary-light:hover {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-navy);
}

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

.btn--ghost:hover {
  color: var(--color-gold);
  background-color: var(--color-gold-pale);
}

/* CTA — Copper accent */
.btn--cta {
  background-color: var(--color-copper);
  border-color: var(--color-copper);
  color: var(--color-white);
}

.btn--cta:hover {
  background-color: var(--color-copper-dark);
  border-color: var(--color-copper-dark);
  color: var(--color-white);
}

/* Sizes */
.btn--sm {
  font-size: var(--text-caption);
  padding: 10px 20px;
}

.btn--lg {
  font-size: var(--text-body-sm);
  padding: 18px 40px;
}

/* Icon button */
.btn--icon {
  padding: 12px;
  line-height: 0;
}


/* ==========================================================================
   6. COMPONENTS — CARDS
   ========================================================================== */

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

.card--elevated {
  box-shadow: var(--shadow-sm);
}

.card--elevated:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card--bordered {
  border: var(--border-thin);
}

.card--bordered:hover {
  border-color: var(--color-border-gold);
}

.card--dark {
  background-color: var(--color-charcoal);
  color: var(--color-text-inverse);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__image--portrait {
  aspect-ratio: 3 / 4;
}

.card__image--square {
  aspect-ratio: 1 / 1;
}

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

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

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

.card__eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-overline);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.card__title {
  font-family: var(--font-serif);
  font-size: var(--text-h4);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-xs);
}

.card__text {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}


/* ==========================================================================
   7. COMPONENTS — FORMS
   ========================================================================== */

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

.form-label {
  display: block;
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2xs);
  letter-spacing: var(--tracking-wide);
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

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

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

.form-input::placeholder {
  color: var(--color-text-tertiary);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input--error {
  border-color: var(--color-error);
}

.form-input--error:focus {
  box-shadow: 0 0 0 3px rgba(166, 61, 61, 0.12);
}

.form-hint {
  font-size: var(--text-caption);
  color: var(--color-text-tertiary);
  margin-top: var(--space-2xs);
}

.form-error {
  font-size: var(--text-caption);
  color: var(--color-error);
  margin-top: var(--space-2xs);
}

/* Dark variant */
.section--dark .form-input,
.section--dark .form-textarea {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-text-inverse);
}

.section--dark .form-input::placeholder {
  color: var(--color-warm-gray-400);
}

.section--dark .form-input:focus,
.section--dark .form-textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 150, 90, 0.2);
}

.section--dark .form-label {
  color: var(--color-warm-gray-200);
}


/* ==========================================================================
   8. COMPONENTS — BADGES & TAGS
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  line-height: 1;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  letter-spacing: var(--tracking-wide);
}

.badge--gold {
  background-color: var(--color-gold-pale);
  color: var(--color-gold-dark);
  border: 1px solid rgba(184, 150, 90, 0.2);
}

.badge--dark {
  background-color: var(--color-navy);
  color: var(--color-warm-gray-200);
}

.badge--outline {
  background-color: transparent;
  border: 1px solid var(--color-border-default);
  color: var(--color-text-secondary);
}

.badge--success {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.badge--error {
  background-color: var(--color-error-light);
  color: var(--color-error);
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: var(--text-overline);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  line-height: 1;
  padding: 8px 16px;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast),
    background-color var(--transition-fast);
}

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

.tag--active {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}


/* ==========================================================================
   9. COMPONENTS — DIVIDERS & DECORATIVE
   ========================================================================== */

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

.divider--gold {
  background: linear-gradient(
    to right,
    transparent,
    var(--color-gold-muted),
    transparent
  );
  height: 1px;
}

.divider--short {
  width: 60px;
  height: 2px;
  background-color: var(--color-gold);
}

.divider--short-center {
  width: 60px;
  height: 2px;
  background-color: var(--color-gold);
  margin-left: auto;
  margin-right: auto;
}

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

/* Decorative gold line — often used above headings */
.gold-accent {
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.gold-accent--center {
  margin-left: auto;
  margin-right: auto;
}

/* Decorative quote mark */
.deco-quote::before {
  content: '\201C';
  display: block;
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-gold-muted);
  margin-bottom: var(--space-sm);
}


/* ==========================================================================
   10. ANIMATIONS
   ========================================================================== */

/* Base state for reveal animations */
[data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity var(--duration-reveal) var(--ease-out-expo),
    transform var(--duration-reveal) var(--ease-out-expo);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Fade Up */
.fade-up,
[data-reveal="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--duration-reveal) var(--ease-out-expo),
    transform var(--duration-reveal) var(--ease-out-expo);
}

.fade-up.is-visible,
[data-reveal="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade In */
.fade-in,
[data-reveal="fade-in"] {
  opacity: 0;
  transition: opacity var(--duration-reveal) var(--ease-out-expo);
}

.fade-in.is-visible,
[data-reveal="fade-in"].is-visible {
  opacity: 1;
}

/* Fade In Left */
.fade-in-left,
[data-reveal="fade-in-left"] {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity var(--duration-reveal) var(--ease-out-expo),
    transform var(--duration-reveal) var(--ease-out-expo);
}

.fade-in-left.is-visible,
[data-reveal="fade-in-left"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade In Right */
.fade-in-right,
[data-reveal="fade-in-right"] {
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity var(--duration-reveal) var(--ease-out-expo),
    transform var(--duration-reveal) var(--ease-out-expo);
}

.fade-in-right.is-visible,
[data-reveal="fade-in-right"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale In */
.scale-in,
[data-reveal="scale-in"] {
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity var(--duration-reveal) var(--ease-out-expo),
    transform var(--duration-reveal) var(--ease-out-expo);
}

.scale-in.is-visible,
[data-reveal="scale-in"].is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for children */
[data-reveal-stagger] > *:nth-child(1)  { transition-delay: 0ms; }
[data-reveal-stagger] > *:nth-child(2)  { transition-delay: 100ms; }
[data-reveal-stagger] > *:nth-child(3)  { transition-delay: 200ms; }
[data-reveal-stagger] > *:nth-child(4)  { transition-delay: 300ms; }
[data-reveal-stagger] > *:nth-child(5)  { transition-delay: 400ms; }
[data-reveal-stagger] > *:nth-child(6)  { transition-delay: 500ms; }
[data-reveal-stagger] > *:nth-child(7)  { transition-delay: 600ms; }
[data-reveal-stagger] > *:nth-child(8)  { transition-delay: 700ms; }

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

  [data-reveal],
  .fade-up,
  .fade-in,
  .fade-in-left,
  .fade-in-right,
  .scale-in {
    opacity: 1;
    transform: none;
  }
}

/* Keyframe animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes goldShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Shimmer effect for premium elements */
.shimmer-gold {
  background: linear-gradient(
    90deg,
    var(--color-gold) 0%,
    var(--color-gold-light) 50%,
    var(--color-gold) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 3s linear infinite;
}


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

/* --- Text Alignment --- */
.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

/* --- Text Colors --- */
.text-primary    { color: var(--color-text-primary); }
.text-secondary  { color: var(--color-text-secondary); }
.text-tertiary   { color: var(--color-text-tertiary); }
.text-inverse    { color: var(--color-text-inverse); }
.text-gold       { color: var(--color-gold); }
.text-copper     { color: var(--color-copper); }
.text-white      { color: var(--color-white); }

/* --- Background Colors --- */
.bg-white      { background-color: var(--color-white); }
.bg-ivory      { background-color: var(--color-ivory); }
.bg-light      { background-color: var(--color-warm-gray-50); }
.bg-navy       { background-color: var(--color-navy); }
.bg-charcoal   { background-color: var(--color-charcoal); }
.bg-gold-pale  { background-color: var(--color-gold-pale); }

/* --- Font Families --- */
.font-serif    { font-family: var(--font-serif); }
.font-sans     { font-family: var(--font-sans); }

/* --- Font Weights --- */
.weight-light     { font-weight: var(--weight-light); }
.weight-regular   { font-weight: var(--weight-regular); }
.weight-medium    { font-weight: var(--weight-medium); }
.weight-semibold  { font-weight: var(--weight-semibold); }
.weight-bold      { font-weight: var(--weight-bold); }

/* --- Spacing: Margin --- */
.mt-0   { margin-top: 0; }
.mt-xs  { margin-top: var(--space-xs); }
.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-0   { margin-bottom: 0; }
.mb-xs  { margin-bottom: var(--space-xs); }
.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); }

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

/* --- Spacing: Padding --- */
.p-0    { padding: 0; }
.p-xs   { padding: var(--space-xs); }
.p-sm   { padding: var(--space-sm); }
.p-md   { padding: var(--space-md); }
.p-lg   { padding: var(--space-lg); }
.p-xl   { padding: var(--space-xl); }
.p-2xl  { padding: var(--space-2xl); }

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

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

/* --- Width Constraints --- */
.max-w-text   { max-width: var(--max-width-text); }
.max-w-narrow { max-width: var(--max-width-narrow); }
.max-w-default { max-width: var(--max-width); }
.max-w-wide   { max-width: var(--max-width-wide); }
.w-full       { width: 100%; }

/* --- Display --- */
.block        { display: block; }
.inline-block { display: inline-block; }
.inline       { display: inline; }
.hidden       { display: none; }

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

/* --- Position --- */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; }

/* --- Image Utilities --- */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Border Utilities --- */
.border-top    { border-top: var(--border-thin); }
.border-bottom { border-bottom: var(--border-thin); }
.border-gold   { border: var(--border-gold); }

/* --- Responsive Visibility --- */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hide-tablet { display: none !important; }
}

@media (min-width: 1025px) {
  .hide-desktop { display: none !important; }
}

@media (max-width: 1024px) {
  .hide-below-desktop { display: none !important; }
}

@media (min-width: 769px) {
  .show-mobile-only { display: none !important; }
}

/* --- List Reset --- */
.list-reset {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- Screen Reader Only --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ==========================================================================
   12. SCROLL REVEAL — Minimal JS Helper
   ========================================================================== */

/*
   Usage: Add this inline script or in a separate .js file:

   <script>
   document.addEventListener('DOMContentLoaded', () => {
     const observer = new IntersectionObserver((entries) => {
       entries.forEach(entry => {
         if (entry.isIntersecting) {
           entry.target.classList.add('is-visible');
           observer.unobserve(entry.target);
         }
       });
     }, { threshold: 0.1, rootMargin: '0px 0px -40px 0px' });

     document.querySelectorAll('[data-reveal]').forEach(el => observer.observe(el));
     document.querySelectorAll('.fade-up, .fade-in, .fade-in-left, .fade-in-right, .scale-in')
       .forEach(el => observer.observe(el));
   });
   </script>
*/
