/* ============================================
   FORGEAHEAD HOLDINGS - Design System
   Phase 3.1: Color System
   ============================================ */

:root {
  /* ---- PRIMARY COLORS ---- */
  --navy: #1B2A4A;
  --navy-light: #243656;
  --navy-dark: #111D33;
  --gold: #C8A951;
  --gold-light: #E8D5A3;
  --gold-dark: #A68B3C;

  /* ---- NEUTRALS ---- */
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --gray-50: #F5F5F5;
  --gray-100: #EEEEEE;
  --gray-200: #E0E0E0;
  --gray-300: #CCCCCC;
  --gray-400: #AAAAAA;
  --gray-500: #888888;
  --gray-600: #666666;
  --gray-700: #444444;
  --gray-800: #2D2D2D;
  --gray-900: #1A1A1A;
  --black: #000000;

  /* ---- ACCENT COLORS ---- */
  --sky-blue: #5CAFF3;
  --sky-blue-light: #8CC8F7;
  --success: #22C55E;
  --success-light: #86EFAC;
  --error: #EF4444;
  --error-light: #FCA5A5;
  --warning: #F59E0B;

  /* ---- SEMANTIC COLORS ---- */
  --text-primary: var(--gray-800);
  --text-secondary: var(--gray-500);
  --text-caption: var(--gray-400);
  --text-on-dark: var(--white);
  --text-on-dark-muted: rgba(255, 255, 255, 0.7);
  --text-link: var(--sky-blue);
  --text-link-hover: var(--gold);

  /* ---- BACKGROUND COLORS ---- */
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --bg-dark: var(--navy);
  --bg-dark-alt: var(--navy-dark);
  --bg-overlay: rgba(27, 42, 74, 0.7);
  --bg-overlay-light: rgba(27, 42, 74, 0.5);

  /* ---- BORDER COLORS ---- */
  --border-light: var(--gray-100);
  --border-medium: var(--gray-200);
  --border-dark: var(--gray-300);
  --border-gold: var(--gold);

  /* ---- BUTTON COLORS ---- */
  --btn-primary-bg: var(--gold);
  --btn-primary-text: var(--navy-dark);
  --btn-primary-hover: var(--gold-dark);
  --btn-secondary-bg: transparent;
  --btn-secondary-text: var(--gold);
  --btn-secondary-border: var(--gold);
  --btn-secondary-hover-bg: var(--gold);
  --btn-secondary-hover-text: var(--navy-dark);
  --btn-dark-bg: var(--navy);
  --btn-dark-text: var(--white);
  --btn-dark-hover: var(--navy-light);

  /* ---- SHADOW COLORS ---- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-gold: 0 4px 20px rgba(200, 169, 81, 0.2);

  /* ---- GRADIENT PRESETS ---- */
  --gradient-navy: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  --gradient-hero: linear-gradient(180deg, rgba(27, 42, 74, 0.3) 0%, rgba(27, 42, 74, 0.8) 100%);
  --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  --gradient-dark-fade: linear-gradient(180deg, transparent 0%, var(--navy-dark) 100%);
}

/* ---- DARK SECTION UTILITY ---- */
.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section-dark .text-muted { color: var(--text-on-dark-muted); }

.section-light {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.section-gray {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ---- ACCENT UTILITIES ---- */
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-secondary); }
.text-caption { color: var(--text-caption); }
.bg-navy { background: var(--navy); }
.bg-gold { background: var(--gold); }
.bg-gray { background: var(--bg-secondary); }
.border-gold { border-color: var(--gold); }

/* ============================================
   Phase 3.2: Typography System
   ============================================ */

/* ---- FONT IMPORTS ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* ---- FONT FAMILIES ---- */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: Georgia, 'Times New Roman', serif;
  --font-mono: 'SF Mono', Consolas, monospace;

  /* ---- FONT SIZES ---- */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 36px;
  --text-5xl: 44px;
  --text-6xl: 56px;
  --text-7xl: 72px;

  /* ---- LINE HEIGHTS ---- */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;
  --leading-loose: 2.0;

  /* ---- LETTER SPACING ---- */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
  --tracking-widest: 0.15em;
}

/* ---- BASE TYPOGRAPHY ---- */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
}

/* ---- HEADINGS ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin: 0;
}

h1 {
  font-size: var(--text-6xl);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--text-5xl);
  font-weight: 700;
}

h3 {
  font-size: var(--text-3xl);
  font-weight: 600;
}

h4 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h5 {
  font-size: var(--text-xl);
  font-weight: 600;
}

h6 {
  font-size: var(--text-lg);
  font-weight: 600;
}

/* ---- PARAGRAPH ---- */
p {
  margin: 0 0 1em;
  line-height: var(--leading-relaxed);
}

p.large {
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: var(--leading-relaxed);
}

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

/* ---- SECTION CAPTION (Coco Gonser style "/ CAPTION") ---- */
.section-caption {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-caption::before {
  content: "/ ";
}

/* ---- ACCENT TEXT (Serif for quotes/storytelling) ---- */
.text-serif {
  font-family: var(--font-accent);
}

.text-quote {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
}

.text-quote-large {
  font-family: var(--font-accent);
  font-size: var(--text-3xl);
  font-style: italic;
  line-height: var(--leading-snug);
}

/* ---- LINKS ---- */
a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--text-link-hover);
}

/* ---- DARK SECTION TYPOGRAPHY ---- */
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--white);
}

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

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

.section-dark a:hover {
  color: var(--gold-light);
}

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

/* ---- TEXT UTILITIES ---- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.text-bold { font-weight: 700; }
.text-semibold { font-weight: 600; }
.text-light { font-weight: 300; }
.text-italic { font-style: italic; }

/* ---- RESPONSIVE TYPOGRAPHY ---- */
@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
  h4 { font-size: var(--text-xl); }
  p.large { font-size: var(--text-lg); }
  .text-quote-large { font-size: var(--text-xl); }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
}

/* ============================================
   Phase 3.3: Component Library
   ============================================ */

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ---- LAYOUT ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-lg {
  padding: 120px 0;
}

/* ---- GRID ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- FLEX ---- */
.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; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--btn-primary-hover);
  color: var(--btn-primary-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

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

.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: var(--text-xs); }
.btn-lg { padding: 18px 40px; font-size: var(--text-base); }

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-body {
  padding: 28px 24px;
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Brand Card */
.brand-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.brand-card-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.brand-card-body {
  padding: 32px 28px;
}

.brand-card-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: 8px;
}

.brand-card-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: var(--leading-relaxed);
}

.brand-card-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.brand-card-stat {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: 4px 12px;
  background: var(--gray-50);
  border-radius: 20px;
}

/* Service Card */
.service-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--white);
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.service-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--gold);
}

.service-card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Stat Card */
.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* Team Card */
.team-card {
  text-align: center;
}

.team-card-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--gold);
}

.team-card-name {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card-role {
  font-size: var(--text-sm);
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: 12px;
}

.team-card-bio {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 320px;
  margin: 0 auto;
}

/* ---- NAVIGATION ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s ease, padding 0.3s ease;
}

.header.transparent {
  background: transparent;
}

.header.solid {
  background: var(--navy);
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-logo {
  height: 36px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

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

.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--navy-light);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
}

.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--gold);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy-dark);
  z-index: 999;
  padding: 80px 24px 40px;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--white);
  font-size: var(--text-2xl);
  font-weight: 300;
  text-decoration: none;
}

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

@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-toggle { display: block; }
}

/* ---- FORMS ---- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--white);
  border: 1.5px solid var(--border-medium);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.15);
}

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

.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: var(--text-sm);
}

.form-radio input[type="radio"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}

/* ---- BADGES ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: 20px;
}

.badge-gold {
  background: rgba(200, 169, 81, 0.15);
  color: var(--gold);
  border: 1px solid rgba(200, 169, 81, 0.3);
}

.badge-navy {
  background: var(--navy);
  color: var(--white);
}

.badge-wbe {
  background: rgba(200, 169, 81, 0.1);
  color: var(--gold);
  border: 1.5px solid var(--gold);
  font-weight: 700;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-short {
  min-height: 40vh;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 24px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero p {
  color: var(--text-on-dark-muted);
  font-size: var(--text-xl);
  margin-bottom: 32px;
}

/* ---- SCROLL INDICATOR ---- */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 18px; opacity: 0.3; }
}

/* ---- DIVIDER ---- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 20px auto;
}

.divider-left {
  margin-left: 0;
}

/* ============================================
   Phase 3.5: Animations & Interactions
   ============================================ */

/* ---- SCROLL ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.fade-in.animate-in {
  opacity: 1;
}

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

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

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.scale-in.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* ---- STAGGER CHILDREN ---- */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children > *.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---- HOVER EFFECTS ---- */
.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}
.hover-glow:hover {
  box-shadow: var(--shadow-gold);
}

.hover-scale {
  transition: transform 0.3s ease;
}
.hover-scale:hover {
  transform: scale(1.03);
}

/* ---- LINK UNDERLINE ANIMATION ---- */
.link-animated {
  position: relative;
  display: inline-block;
}
.link-animated::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.link-animated:hover::after {
  width: 100%;
}

/* ---- BUTTON HOVER ARROW ---- */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-arrow .arrow {
  transition: transform 0.2s ease;
}
.btn-arrow:hover .arrow {
  transform: translateX(4px);
}

/* ---- PAGE LOAD ANIMATION ---- */
.page-enter {
  animation: pageEnter 0.6s ease forwards;
}

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

/* ---- PULSE (for badges/indicators) ---- */
.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ---- FORM SUCCESS ---- */
.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success .icon {
  width: 48px;
  height: 48px;
  color: var(--success);
  margin: 0 auto 16px;
}
.form-success h3 {
  margin-bottom: 8px;
}
.form-success p {
  color: var(--text-secondary);
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-in, .slide-left, .slide-right, .scale-in,
  .stagger-children > *, .hover-lift, .hover-scale {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================
   Phase 3.6: Responsive Breakpoints
   ============================================ */

/* ---- WIDE DESKTOP (1440px+) ---- */
@media (min-width: 1440px) {
  .container { max-width: 1320px; }
  .hero { min-height: 100vh; }
  .section-lg { padding: 140px 0; }
}

/* ---- DESKTOP (1024px - 1439px) ---- */
/* Default styles cover this range */

/* ---- TABLET (768px - 1023px) ---- */
@media (max-width: 1023px) {
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .section-lg { padding: 80px 0; }
  
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  
  .hero { min-height: 80vh; }
  .hero-short { min-height: 35vh; }
  
  /* Split layouts stack */
  .split { flex-direction: column; }
  .split > * { width: 100%; }
  
  /* Brand cards side by side still */
  .brand-card-image { height: 220px; }
  .brand-card-body { padding: 24px 20px; }
  
  /* Stats 2x2 */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  
  /* Team cards side by side */
  .team-card-photo { width: 160px; height: 160px; }
}

/* ---- MOBILE LARGE (640px - 767px) ---- */
@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
  
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  
  /* Header */
  .header-nav { display: none; }
  .mobile-toggle { display: block; }
  .header-inner { padding: 0 16px; }
  .header-logo { height: 28px; }
  
  /* Hero */
  .hero { min-height: 70vh; padding-top: 60px; }
  .hero-short { min-height: 30vh; }
  .hero-content { padding: 0 16px; }
  .scroll-indicator { display: none; }
  
  /* Brand cards full width */
  .brand-card-image { height: 200px; }
  
  /* Service cards */
  .service-card { padding: 28px 20px; }
  
  /* Stats stack */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-number { font-size: var(--text-4xl); }
  
  /* Team full width */
  .team-card { margin-bottom: 32px; }
  .team-card-photo { width: 140px; height: 140px; }
  
  /* Forms full width */
  .form-split { flex-direction: column; }
  .form-split > * { width: 100%; }
  
  /* Footer stacks */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  
  /* Buttons full width on mobile */
  .btn-mobile-full { width: 100%; text-align: center; }
  
  /* CTA section */
  .cta-buttons { flex-direction: column; gap: 12px; }
  .cta-buttons .btn { width: 100%; }
}

/* ---- MOBILE SMALL (375px - 639px) ---- */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .section { padding: 40px 0; }
  
  /* Tighter spacing */
  .gap-lg { gap: 24px; }
  .gap-md { gap: 16px; }
  
  /* Stats 1 column */
  .stats-grid { grid-template-columns: 1fr; }
  
  /* Brand card */
  .brand-card-image { height: 180px; }
  .brand-card-body { padding: 20px 16px; }
  .brand-card-stats { flex-wrap: wrap; gap: 8px; }
  
  /* Even smaller hero */
  .hero { min-height: 60vh; }
  
  /* Timeline */
  .timeline-item { padding-left: 24px; }
  
  /* Badges wrap */
  .badge-row { flex-wrap: wrap; justify-content: center; gap: 8px; }
}

/* ---- TOUCH DEVICE HELPERS ---- */
@media (hover: none) {
  /* Remove hover effects on touch devices */
  .hover-lift:hover { transform: none; box-shadow: var(--shadow-md); }
  .hover-scale:hover { transform: none; }
  .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; opacity: 1; visibility: visible; transform: none; }
}

/* ---- PRINT STYLES ---- */
@media print {
  .header, .footer, .mobile-menu, .scroll-indicator, .btn { display: none; }
  .hero { min-height: auto; padding: 20px; }
  .section { padding: 20px 0; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
