/* ===================================
   CEMSource - Industrial Modern
   =================================== */

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
  /* Colors - Industrial Modern Palette */
  --color-navy-darker: #000421;
  --color-navy-dark: #000A62;
  --color-navy: #001489;
  --color-navy-light: #1a2db3;
  --color-gold: #D4A574;
  --color-gold-bright: #F4C68A;
  --color-gold-dark: #9A7647;
  --color-white: #FFFFFF;
  --color-gray-lightest: #F8F9FA;
  --color-gray-light: #E9ECEF;
  --color-gray-medium: #ADB5BD;
  --color-gray-dark: #495057;
  --color-gray-darker: #212529;
  --color-accent-blue: #0EA5E9;
  --color-accent-teal: #14B8A6;

  /* Typography - Industrial/Technical */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

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

  /* Container */
  --container-max: 1280px;
  --container-padding: var(--space-md);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-gray-darker);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-navy-dark);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-lg);
  font-weight: 900;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 800;
}

h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
}

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

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

p {
  margin-bottom: var(--space-md);
}

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

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

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

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

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

strong {
  font-weight: 600;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-gray-light);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
}

/* ========== LAYOUT UTILITIES ========== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

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

.section-sm {
  padding: var(--space-3xl) 0;
}

.section-lg {
  padding: 6rem 0;
}

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

.text-white {
  color: var(--color-white);
}

.text-gold {
  color: var(--color-gold);
}

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

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

.bg-gray-light {
  background-color: var(--color-gray-lightest);
}

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

/* ========== HEADER & NAVIGATION ========== */
.site-header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-base);
  border-bottom: 1px solid var(--color-gray-light);
}

.site-header.scrolled {
  box-shadow: var(--shadow-lg);
  background-color: rgba(255, 255, 255, 1);
}

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

.site-logo {
  height: 48px;
  width: auto;
  transition: transform var(--transition-fast);
}

.logo-link:hover .site-logo {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-navy-dark);
  transition: all var(--transition-fast);
  position: relative;
  letter-spacing: -0.01em;
}

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

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

.nav-list a.active {
  color: var(--color-gold);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--color-navy-dark);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.5;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

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

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
  border-color: var(--color-gold);
  box-shadow: 0 4px 14px rgba(212, 165, 116, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-gold-bright);
  border-color: var(--color-gold-bright);
  color: var(--color-navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
}

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

.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-navy-dark);
  color: var(--color-white);
}

/* Hero with background image */
.hero-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(0, 10, 98, 0.95) 0%,
    rgba(0, 20, 137, 0.85) 50%,
    rgba(0, 4, 33, 0.95) 100%);
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  min-height: 500px;
}

.hero-text h1 {
  color: var(--color-white);
  font-size: var(--text-6xl);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Brighter h1 for inner pages (non-home) - improves readability */
body:not(.page-home) .hero h1 {
  color: var(--color-gold-bright);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(244, 198, 138, 0.3);
}

.hero-text .subheading {
  font-size: var(--text-xl);
  color: var(--color-white);
  opacity: 0.95;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero-note {
  font-size: var(--text-sm);
  color: var(--color-white);
  opacity: 0.8;
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.hero-visual svg {
  max-width: 100%;
  height: auto;
}

/* ========== CARDS ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--color-gray-light);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

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

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
  color: var(--color-gold);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: var(--text-3xl);
  box-shadow: 0 8px 16px rgba(0, 10, 98, 0.3);
}

.card h3 {
  margin-bottom: var(--space-sm);
  font-size: var(--text-xl);
  font-weight: 700;
}

.card p {
  color: var(--color-gray-dark);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.card-link {
  font-weight: 600;
  color: var(--color-navy-dark);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-link:hover {
  gap: var(--space-sm);
  color: var(--color-gold);
}

.card-link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* ========== PARTNERSHIP STRIP ========== */
.partnership-strip {
  background-color: var(--color-gray-lightest);
  padding: var(--space-2xl) 0;
  border-top: 3px solid var(--color-gold);
  border-bottom: 3px solid var(--color-gold);
  position: relative;
}

.partnership-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(0, 10, 98, 0.02) 50px, rgba(0, 10, 98, 0.02) 51px);
  pointer-events: none;
}

.partnership-content {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.partnership-logo {
  max-width: 220px;
  height: auto;
}

.partnership-text {
  flex: 1;
  min-width: 300px;
  font-size: var(--text-lg);
  color: var(--color-gray-darker);
  font-weight: 500;
}

/* ========== COLUMNS ========== */
.columns-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
}
.columns-2 > div {
  display: flex;
  flex-direction: column;
}
.columns-2 > div .img-card {
  margin-top: auto;
}

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

.columns-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.column-box {
  padding: var(--space-xl);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.column-box h3 {
  color: var(--color-gold-bright);
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

/* ========== CTA STRIP ========== */
.cta-strip {
  background: linear-gradient(135deg, var(--color-navy-darker), var(--color-navy-dark));
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-strip h2,
.cta-strip h3 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-strip p {
  color: var(--color-white);
  opacity: 0.9;
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-navy-dark);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-label.required::after {
  content: ' *';
  color: var(--color-gold);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  background-color: var(--color-white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #dc2626;
}

.form-error {
  color: #dc2626;
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
  display: none;
}

.form-error.visible {
  display: block;
}

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

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
  margin: var(--space-2xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-gold), var(--color-gold-dark));
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-2xl) - 7px);
  top: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background-color: var(--color-gold);
  border: 4px solid var(--color-white);
  box-shadow: 0 0 0 3px var(--color-gold), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.timeline-date {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-gold);
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-content h3 {
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

/* ========== TEAM GRID ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.team-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  border-top: 4px solid var(--color-gold);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.1), transparent);
  transition: left 0.6s;
}

.team-card:hover::before {
  left: 100%;
}

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

.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-md);
  border: 4px solid var(--color-gold);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.team-card h3 {
  margin-bottom: var(--space-xs);
  color: var(--color-navy-dark);
  font-weight: 700;
}

.team-title {
  font-size: var(--text-sm);
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.team-bio {
  text-align: left;
  color: var(--color-gray-dark);
  font-size: var(--text-base);
}

.team-bio ul {
  margin-top: var(--space-sm);
  padding-left: var(--space-lg);
}

/* ========== FAQ / ACCORDION ========== */
.faq-list {
  max-width: 900px;
  margin: var(--space-2xl) auto;
}

.faq-item {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--color-gray-light);
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: var(--space-lg);
  text-align: left;
  background-color: var(--color-gray-lightest);
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-navy-dark);
  transition: all var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background-color: var(--color-gray-light);
}

.faq-question::after {
  content: '+';
  font-size: var(--text-3xl);
  color: var(--color-gold);
  transition: transform var(--transition-fast);
  font-weight: 300;
  line-height: 1;
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-lg);
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-slow);
}

.faq-answer.open {
  padding: var(--space-lg);
  max-height: 1000px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: linear-gradient(135deg, var(--color-navy-darker), var(--color-navy-dark));
  color: var(--color-white);
  padding-top: var(--space-4xl);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px);
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.footer-column h4 {
  color: var(--color-gold-bright);
  margin-bottom: var(--space-md);
  font-weight: 700;
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-logo {
  max-width: 200px;
  margin-bottom: var(--space-md);
}

.footer-description {
  color: var(--color-white);
  opacity: 0.9;
  font-size: var(--text-base);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-white);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-gold);
  color: var(--color-navy-dark);
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--color-white);
  opacity: 0.8;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-gold-bright);
  padding-left: var(--space-xs);
}

.footer-contact p {
  margin-bottom: var(--space-sm);
}

.footer-contact a {
  color: var(--color-white);
  opacity: 0.9;
}

.footer-contact a:hover {
  color: var(--color-gold-bright);
}

.footer-bottom {
  background-color: var(--color-navy-darker);
  padding: var(--space-lg) 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  margin: 0;
  font-size: var(--text-sm);
  opacity: 0.7;
}

/* ========== CALLOUT ========== */
/* Subtle, professional callout box for notes, disclaimers, and important reminders */
.callout {
  background-color: var(--color-gray-lightest);
  border-left: 4px solid var(--color-gold);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
  color: var(--color-gray-dark);
  font-size: var(--text-base);
  line-height: 1.7;
}

.callout strong {
  color: var(--color-navy-dark);
}

.callout > *:last-child {
  margin-bottom: 0;
}

/* ========== UTILITY CLASSES ========== */
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
  :root {
    --text-6xl: 2.5rem;
    --text-5xl: 2rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
  }

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

  .hero-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-sm);
    --space-4xl: 4rem;
    --text-6xl: 2rem;
    --text-5xl: 1.875rem;
    --text-4xl: 1.5rem;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
    transform: translateY(-150%);
    opacity: 0;
    transition: all var(--transition-base);
    z-index: 999;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: var(--space-md);
    align-items: flex-start;
  }

  .nav-list a {
    display: block;
    width: 100%;
    padding: var(--space-sm) 0;
    font-size: var(--text-lg);
    min-width: 200px;
  }

  .nav-list a::after {
    display: none;
  }

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

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 90%;
    max-width: 400px;
  }

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

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

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links a:hover {
    padding-left: 0;
  }

  .team-bio {
    text-align: center;
  }

  .team-bio ul {
    text-align: left;
  }

  /* Force inline flex sections to stack on mobile */
  .img-accent[style*="flex: 0 0"],
  .img-card[style*="flex: 0 0"],
  [style*="flex: 0 0 320px"],
  [style*="flex: 0 0 380px"] {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  /* Footer lists centered on mobile */
  .footer-links {
    text-align: center;
  }

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

@media (max-width: 480px) {
  :root {
    --text-6xl: 1.75rem;
    --text-5xl: 1.5rem;
  }

  .site-logo {
    height: 40px;
  }

  .main-nav {
    top: 68px;
    max-height: calc(100vh - 68px);
  }

  /* Buttons full width on small phones */
  .btn {
    width: 100%;
    max-width: 100%;
  }

  .btn-group {
    align-items: stretch;
  }

  /* Reduce section padding on small screens */
  .section {
    padding: var(--space-2xl) 0;
  }

  .section-sm {
    padding: var(--space-xl) 0;
  }
}

/* ========== CONTENT IMAGES ========== */

/* Inline content images used in page sections */
.content-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Light treatment for content images */
.content-img.img-atmospheric {
  transition: filter 0.3s ease;
}

.content-img.img-atmospheric:hover {
  filter: brightness(1.03);
}

/* Card-style image with subtle overlay gradient for depth */
.img-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

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

/* Anchor cropping to the top of the image — use when the subject
   is at the top of the frame (e.g. a controller head on a tall shot). */
.img-card.img-card--top img,
.img-accent.img-accent--top img {
  object-position: top center;
}

.img-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
    rgba(0, 10, 98, 0.08) 0%,
    rgba(0, 4, 33, 0.2) 100%);
  pointer-events: none;
}

/* Small accent image — used at reduced size in cards or sidebars */
.img-accent {
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 220px;
}

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

/* Full-bleed background section image */
.section-bg-img {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-bg-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(0, 10, 98, 0.88) 0%,
    rgba(0, 4, 33, 0.92) 100%);
  z-index: 1;
}

.section-bg-img > * {
  position: relative;
  z-index: 2;
}

/* ========== PRINT ========== */
@media print {
  .site-header,
  .mobile-menu-toggle,
  .btn,
  .cta-strip {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
