/* ============================================================
   TAGSCO.CSS — Global Stylesheet
   tagsco.com · A Spacedust Company · Albuquerque, NM
   Version: 2.0
   Structure:
     1. Custom Properties (Design Tokens)
     2. Reset & Base
     3. Typography
     4. Layout Utilities
     5. Buttons
     6. Header & Navigation
     7. Footer
     8. Forms & Inputs
     9. Cards
    10. Badges & Labels
    11. Animations & Transitions
    12. Utility Classes
    13. Responsive Overrides
    14. Print
============================================================ */


/* ── 1. CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  /* Brand Colors */
  --primary:        #00acd4;
  --primary-dark:   #0090b3;
  --primary-darker: #006e8a;
  --primary-light:  #e6f7fb;
  --primary-mid:    #b3e6f2;

  --gold:           #d4a017;
  --gold-dark:      #b8880f;
  --gold-light:     #fef3d0;

  --alert:          #e74c3c;
  --alert-dark:     #c0392b;
  --alert-light:    #fdecea;

  --success:        #00b894;
  --success-light:  #e6f8f4;

  --warning:        #f39c12;
  --warning-light:  #fef6e4;

  /* Neutral Palette */
  --dark:           #2d3436;
  --dark-mid:       #4a5568;
  --gray:           #636e72;
  --gray-light:     #a0aab4;
  --light:          #b2bec3;
  --border:         #e8ecef;
  --border-dark:    #d0d7de;

  /* Backgrounds */
  --bg:             #ffffff;
  --bg2:            #f8f9fa;
  --bg3:            #f0f4f5;
  --bg4:            #e8edf0;

  /* Typography */
  --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-plate:     'License Plate USA', 'Arial Black', sans-serif;
  --font-mono:      'Courier New', Courier, monospace;

  /* Font Sizes — fluid scale */
  --text-xs:        0.72rem;
  --text-sm:        0.85rem;
  --text-base:      1rem;
  --text-md:        1.1rem;
  --text-lg:        1.25rem;
  --text-xl:        1.5rem;
  --text-2xl:       2rem;
  --text-3xl:       2.6rem;
  --text-4xl:       3.2rem;

  /* Layout */
  --max-width:      1100px;
  --gutter:         20px;
  --section-pad:    72px;

  /* Spacing scale */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* Border Radius */
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
  --shadow-md:  0 6px 28px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl:  0 16px 60px rgba(0,0,0,0.16);
  --shadow-primary: 0 4px 18px rgba(0,172,212,0.28);
  --shadow-gold:    0 4px 18px rgba(212,160,23,0.28);

  /* Transitions */
  --transition:     all 0.2s ease;
  --transition-slow: all 0.35s ease;

  /* Z-index scale */
  --z-base:    1;
  --z-above:   10;
  --z-sticky:  100;
  --z-overlay: 500;
  --z-modal:   1000;
  --z-toast:   9999;

  /* Header height — used for scroll offset calculations */
  --header-h: 60px;
}


/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--dark);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--primary-dark); }

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: var(--font-sans);
  font-size: inherit;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ── 3. TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--dark);
}

h1 { font-size: clamp(2rem,   5vw, var(--text-4xl)); font-weight: 900; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 4vw, var(--text-3xl)); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 3vw, var(--text-xl));  font-weight: 700; }
h4 { font-size: var(--text-lg);  font-weight: 700; }
h5 { font-size: var(--text-base); font-weight: 600; }
h6 { font-size: var(--text-sm);  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

p {
  margin-bottom: var(--sp-4);
  color: var(--gray);
  line-height: 1.7;
}
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--dark); }
em { font-style: italic; }

.text-muted   { color: var(--gray); }
.text-light   { color: var(--light); }
.text-primary { color: var(--primary); }
.text-gold    { color: var(--gold); }
.text-dark    { color: var(--dark); }
.text-white   { color: #fff; }
.text-success { color: var(--success); }
.text-alert   { color: var(--alert); }

.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }

.font-300 { font-weight: 300; }
.font-400 { font-weight: 400; }
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }
.font-900 { font-weight: 900; }

.uppercase { text-transform: uppercase; letter-spacing: 0.08em; }
.tracking   { letter-spacing: 0.05em; }

/* Section headings pattern */
.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--sp-2);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}
.section-header .eyebrow { margin-bottom: var(--sp-2); }
.section-header h2 { margin-bottom: var(--sp-3); }
.section-header p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--text-md);
}


/* ── 4. LAYOUT UTILITIES ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section {
  padding: var(--section-pad) var(--gutter);
}

.section-alt { background: var(--bg2); }
.section-dark { background: var(--dark); color: #fff; }
.section-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; }

/* Grid system */
.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); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* Flex helpers */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.items-center{ align-items: center; }
.gap-3 { gap: var(--sp-3); }

/* Spacing */
.mt-0  { margin-top: 0; }
.mt-2  { margin-top: var(--sp-2); }
.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Display */
.block        { display: block; }
.inline-block { display: inline-block; }
.hidden       { display: none !important; }
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

/* Width */
.w-full { width: 100%; }
.max-w-sm { max-width: 400px; }
.max-w-md { max-width: 560px; }
.max-w-lg { max-width: 720px; }


/* ── 5. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Sizes */
.btn-sm  { padding: 7px 16px;  font-size: var(--text-xs); }
.btn-lg  { padding: 15px 36px; font-size: var(--text-base); }
.btn-xl  { padding: 18px 44px; font-size: var(--text-md); }
.btn-full{ width: 100%; }

/* Variants */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,172,212,.38);
}

.btn-gold {
    color: #000;
    background: #ffba31;
  box-shadow: var(--shadow-gold);
  border-radius: 4px;
}
.btn-gold:hover {
    color: #000;
    background: #e8990c;
  transform: translateY(-2px);
}


.btn-dark {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.btn-dark:hover {
  background: var(--dark-mid);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--border-dark);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg3);
  color: var(--dark);
}

.btn-white {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
  font-weight: 800;
}
.btn-white:hover {
  background: var(--primary-light);
  color: var(--primary-darker);
  transform: translateY(-2px);
}

.btn-alert {
  background: var(--alert);
  color: #fff;
  border-color: var(--alert);
  box-shadow: 0 4px 16px rgba(231,76,60,.28);
}
.btn-alert:hover {
  background: var(--alert-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* Icon inside button */
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-lg svg { width: 18px; height: 18px; }


/* ── 6. HEADER & NAVIGATION ───────────────────────────────── */
.main-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  width: 100%;
  height: var(--header-h);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  z-index: var(--z-sticky);
  transition: box-shadow 0.3s ease;
}
.main-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.header-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  font-weight: 900;
  font-size: var(--text-lg);
  letter-spacing: 0px;
  color: var(--dark);
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}
.header-logo img { max-height: 32px; width: auto; }
.logo-co { color: var(--primary); }
.logo-tagline {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--light);
  margin-left: var(--sp-2);
  letter-spacing: 0;
}

/* Desktop nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.header-nav a {
  color: var(--gray);
  font-weight: 400;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--primary);
}
/* Active indicator */
.header-nav a.active {
  font-weight: 600;
  position: relative;
}
.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Nav CTA */
.btn-nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-primary);
  font-size: var(--text-xs) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: var(--transition) !important;
}
.btn-nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,172,212,.38) !important;
}

/* Hamburger */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.mobile-menu-btn:hover { background: var(--bg3); }
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
/* Animated X state */
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--sp-4) var(--gutter);
  gap: var(--sp-1);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  box-shadow: var(--shadow-md);
  z-index: var(--z-sticky);
  /* Slide down animation */
  transform-origin: top;
  animation: slideDown 0.25s ease;
}
.mobile-nav a {
  display: block;
  color: var(--gray);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--primary); }
.mobile-nav .btn-nav-cta {
  display: flex !important;
  justify-content: center;
  margin-top: var(--sp-3);
  padding: 12px !important;
  border-radius: var(--radius-full) !important;
}


/* ── 7. FOOTER ────────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--sp-12) var(--gutter) var(--sp-6);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
}

/* Footer brand column */
.footer-brand {}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 900;
  font-size: var(--text-lg);
  letter-spacing: -0.5px;
  color: var(--dark);
  text-decoration: none;
  line-height: 1;
  margin-bottom: var(--sp-4);
}
.footer-logo img { max-height: 28px; }
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--gray);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: var(--sp-4);
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--gray-light);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px 12px;
}

/* Footer columns */
.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: var(--sp-4);
}
.footer-col a {
  display: block;
  color: var(--gray);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-2);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}
.footer-col a:hover { color: var(--primary); }

/* Footer bottom bar */
.footer-bottom {
  max-width: var(--max-width);
  margin: var(--sp-8) auto 0;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--text-xs);
  color: var(--light);
  flex-wrap: wrap;
}
.footer-bottom a {
  color: var(--light);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--primary); }

/* Newsletter inline */
.footer-newsletter {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.footer-newsletter input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg);
  color: var(--dark);
}
.footer-newsletter input:focus { border-color: var(--primary); }
.footer-newsletter input::placeholder { color: var(--light); }


/* ── 8. FORMS & INPUTS ────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.form-group:last-child { margin-bottom: 0; }

label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--dark-mid);
}

.input,
input[type=text],
input[type=email],
input[type=number],
input[type=tel],
input[type=search],
input[type=password],
select,
textarea {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--dark);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.input:focus,
input[type=text]:focus,
input[type=email]:focus,
input[type=number]:focus,
input[type=search]:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,172,212,.12);
}
.input::placeholder { color: var(--light); }
textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23636e72' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.input-pill { border-radius: var(--radius-full); }
.input-sm { padding: 8px 14px; font-size: var(--text-sm); }
.input-error { border-color: var(--alert); }
.input-error:focus { box-shadow: 0 0 0 3px rgba(231,76,60,.12); }
.field-error { font-size: var(--text-xs); color: var(--alert); margin-top: var(--sp-1); }
.field-hint  { font-size: var(--text-xs); color: var(--gray-light); margin-top: var(--sp-1); }

/* Search bar */
.search-wrap {
  position: relative;
}
.search-wrap .search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--light);
  pointer-events: none;
  width: 16px;
  height: 16px;
}
.search-wrap input { padding-left: 42px; border-radius: var(--radius-full); }


/* ── 9. CARDS ─────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-body   { padding: var(--sp-5) var(--sp-6); }
.card-header { padding: var(--sp-4) var(--sp-6); border-bottom: 1px solid var(--border); }
.card-footer { padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--border); background: var(--bg2); }
.card-shadow { box-shadow: var(--shadow); }
.card-elevated { box-shadow: var(--shadow-lg); border-color: transparent; }

/* Product card */
.product-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-card-body { padding: var(--sp-5); }
.product-card-title { font-size: var(--text-md); font-weight: 700; margin-bottom: var(--sp-1); color: var(--dark); }
.product-card-desc  { font-size: var(--text-sm); color: var(--gray); margin-bottom: var(--sp-3); line-height: 1.5; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: var(--text-base); font-weight: 800; color: var(--primary); }


/* ── 10. BADGES & LABELS ──────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.badge-primary { background: var(--primary-light); color: var(--primary-dark); border: 1px solid var(--primary-mid); }
.badge-gold    { background: var(--gold-light);    color: var(--gold-dark);    border: 1px solid #f0d888; }
.badge-success { background: var(--success-light); color: var(--success);      border: 1px solid #b3eadd; }
.badge-alert   { background: var(--alert-light);   color: var(--alert-dark);   border: 1px solid #f8c3be; }
.badge-dark    { background: var(--dark);           color: #fff; }
.badge-outline { background: transparent;           color: var(--gray);         border: 1px solid var(--border); }

/* Absolute badge on cards */
.card-badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: var(--z-above);
}


/* ── 11. ANIMATIONS & TRANSITIONS ─────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Scroll-triggered reveal — add .reveal to any element, JS adds .visible */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--bg4) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}


/* ── 12. UTILITY CLASSES ──────────────────────────────────── */
/* Visually hidden but accessible */
.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;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-6) 0;
}

/* Aspect ratios */
.aspect-video  { aspect-ratio: 16 / 9; }
.aspect-plate  { aspect-ratio: 2 / 1; }
.aspect-square { aspect-ratio: 1 / 1; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto   { overflow: auto; }

/* Border radius helpers */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded    { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow    { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-toast);
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  max-width: 320px;
  transform: translateY(80px);
  opacity: 0;
  transition: var(--transition-slow);
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.toast-success { background: var(--success); }
.toast-alert   { background: var(--alert); }
.toast-gold    { background: var(--gold); }

/* Page overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.show { opacity: 1; pointer-events: all; }

/* Steps */
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 900;
  font-size: var(--text-md);
  flex-shrink: 0;
}


/* ── 13. RESPONSIVE ───────────────────────────────────────── */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  :root { --section-pad: 60px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 100%; }
}

/* Tablet portrait — 768px */
@media (max-width: 768px) {
  :root { --section-pad: 50px; --gutter: 16px; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }

  /* Header */
  .header-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .logo-tagline { display: none; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }
  .footer-brand p { margin: var(--sp-3) auto; }
  .footer-logo { justify-content: center; }
  .footer-newsletter { max-width: 360px; margin: var(--sp-3) auto 0; }
  .footer-bottom { flex-direction: column; text-align: center; gap: var(--sp-2); }

  .section-header { margin-bottom: var(--sp-8); }
}

/* Mobile — 480px */
@media (max-width: 480px) {
  :root { --section-pad: 40px; --gutter: 14px; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col { text-align: center; }
  .footer-bottom { font-size: 0.7rem; }

  h1 { letter-spacing: -0.3px; }
  .btn-lg { padding: 13px 28px; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}


/* ── 14. PRINT ────────────────────────────────────────────── */
@media print {
  .main-header, .mobile-nav, .site-footer,
  .btn, .toast, .overlay { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .container { max-width: 100%; padding: 0; }
}
