/* ========================================
   Typography
   ======================================== */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-primary);
}

h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
}

h2 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.body-large {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Layout
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
}

.section {
  padding: var(--section-padding);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 0 64px;
}

/* ========================================
   Skip Navigation (Accessibility)
   ======================================== */

.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 12px 24px;
  background: var(--accent-blue);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.skip-nav:focus {
  top: 16px;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
  height: var(--nav-height);
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
  white-space: nowrap;
}

.nav-logo span {
  color: var(--accent-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

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

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.nav-dropdown-toggle:hover {
  color: #fff;
}

.nav-dropdown-toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition-fast);
}

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

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: rgba(20, 20, 35, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-dropdown-menu a:hover {
  color: #fff;
  background: var(--bg-elevated);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.nav-cta:hover {
  background: #1e63c4;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

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

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

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

/* Mobile Nav Overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 10, 20, 0.98);
  padding: calc(var(--nav-height) + 40px) 40px 40px;
  flex-direction: column;
  gap: 24px;
}

.nav-mobile-overlay.open {
  display: flex;
}

.nav-mobile-overlay a {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-mobile-overlay a:hover {
  color: #fff;
}

/* ========================================
   Buttons
   ======================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.btn-primary:hover {
  background: #1e63c4;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.btn-primary--full {
  width: 100%;
  justify-content: center;
}

/* ========================================
   Cards
   ======================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 36px;
  transition: border-color var(--transition-base);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 114, 220, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-blue-light);
  font-size: 20px;
}

/* ========================================
   Page Hero (Interior Pages)
   ======================================== */

.page-hero {
  padding: calc(var(--nav-height) + 100px) 64px 80px;
  position: relative;
}

.page-hero::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent-blue);
  margin-bottom: 24px;
}

.page-hero h1 {
  max-width: 700px;
}

.page-hero .subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 560px;
  line-height: 1.7;
}

/* ========================================
   Photo Treatment
   ======================================== */

.photo-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.3);
}

.photo-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, 0.4);
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
  padding: var(--section-padding);
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--garage-texture);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* ========================================
   Split Section (Two-column)
   ======================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-content {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-content .label {
  margin-bottom: 16px;
}

.split-content h2 {
  margin-bottom: 20px;
}

.split-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.split-photo {
  position: relative;
  overflow: hidden;
}

.split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.3);
}

.split-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, 0.4);
}

/* ========================================
   Footer
   ======================================== */

.footer {
  padding: 48px 64px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--accent-blue);
}

/* ========================================
   Stats Bar
   ======================================== */

.stats {
  display: flex;
}

.stat {
  flex: 1;
  padding: 64px 40px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat:last-child {
  border-right: none;
}

.stat-number {
  font-size: 56px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1199px) {
  .container {
    padding: 0 40px;
  }

  .section {
    padding: var(--section-padding-tablet);
  }

  .nav {
    padding: 0 40px;
  }

  h1 { font-size: 42px; letter-spacing: -1.5px; }
  h2 { font-size: 36px; letter-spacing: -1px; }

  .stats { flex-wrap: wrap; }
  .stat { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
  .stat:nth-child(2) { border-right: none; }

  .split { grid-template-columns: 1fr; }
  .split-photo { min-height: 300px; }

  .page-hero { padding: calc(var(--nav-height) + 72px) 40px 60px; }
  .footer { padding: 40px; }
  .divider { margin: 0 40px; }
}

@media (max-width: 767px) {
  .container {
    padding: 0 24px;
  }

  .section {
    padding: var(--section-padding-mobile);
  }

  .nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  h1 { font-size: 32px; letter-spacing: -1px; }
  h2 { font-size: 28px; letter-spacing: -0.5px; }

  .stats { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); padding: 40px 24px; }
  .stat:last-child { border-bottom: none; }

  .page-hero { padding: calc(var(--nav-height) + 56px) 24px 48px; }
  .footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .divider { margin: 0 24px; }

  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }

  .split-content { padding: 56px 24px; }

  .footer-links { flex-wrap: wrap; gap: 16px; }
}

/* ========================================
   Focus Visible States
   ======================================== */

.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.nav-cta:focus-visible,
.nav-links a:focus-visible,
.nav-dropdown-toggle:focus-visible,
.nav-dropdown-menu a:focus-visible,
.brand-card:focus-visible,
.card:focus-visible,
.location-card:focus-visible,
.team-card:focus-visible,
.footer-links a:focus-visible,
.footer-social a:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* ========================================
   Touch Target Fixes (Mobile)
   ======================================== */

.nav-hamburger {
  padding: 12px;
  margin: -4px;
}

.footer-social a {
  padding: 12px;
  margin: -12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-links a {
  padding: 8px 0;
}

.nav-dropdown-menu a {
  padding: 14px 20px;
}

/* ========================================
   Utility Classes
   ======================================== */

.section--narrow {
  max-width: 800px;
}

.section--centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.section--photo-bg {
  position: relative;
  overflow: hidden;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.2) brightness(0.15);
}

.section-fg {
  position: relative;
  z-index: 1;
}

.split--reversed .split-photo {
  order: -1;
}

.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.glow-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  background: var(--glow);
  pointer-events: none;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-hero--textured {
  position: relative;
  overflow: hidden;
}

.page-hero--textured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--garage-texture);
  pointer-events: none;
}

@media (max-width: 1199px) {
  .split--reversed .split-photo { order: 0; }
}

@media (max-width: 767px) {
  .beliefs-grid { grid-template-columns: 1fr; }
}

/* ========================================
   Reduced Motion
   ======================================== */

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