/* Josh Bauer Team — Premium Corporate Theme */

:root {
  --white: #ffffff;
  --off-white: #f8fafc;
  --light-blue: #6C98DD;
  --light-blue-soft: #eef3fb;
  --light-blue-muted: rgba(108, 152, 221, 0.15);
  --mid-blue: #6C98DD;
  --dark-blue: #19319C;
  --dark-blue-deep: #111f66;
  --accent-blue: #19319C;
  --text-primary: #19319C;
  --text-secondary: #3d5299;
  --text-muted: #6b7db8;
  --border: rgba(25, 49, 156, 0.12);
  --shadow-sm: 0 2px 8px rgba(25, 49, 156, 0.06);
  --shadow-md: 0 8px 32px rgba(25, 49, 156, 0.1);
  --shadow-lg: 0 20px 60px rgba(25, 49, 156, 0.14);
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── Typography ── */

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-blue);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 640px;
}

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

/* ── Layout ── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section--alt {
  background: var(--light-blue-soft);
}

.section--dark {
  background: var(--dark-blue);
  color: var(--white);
}

.section--dark .lead,
.section--dark .text-muted {
  color: rgba(255, 255, 255, 0.75);
}

.section-header {
  margin-bottom: 3.5rem;
}

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

.section-header--center .lead {
  margin: 1rem auto 0;
}

/* ── Header ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.logo-img--footer {
  height: 44px;
  opacity: 0.95;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dark-blue);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--dark-blue);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-blue);
  transition: var(--transition);
}

/* ── Hero ── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
  background: linear-gradient(160deg, var(--white) 0%, var(--light-blue-soft) 50%, var(--light-blue) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(25, 49, 156, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.hero-content {
  max-width: 780px;
}

.hero .eyebrow {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.hero .display-xl {
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.15s forwards;
}

.hero .lead {
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.45s forwards;
}

.hero-accent {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  border: 1px solid rgba(25, 49, 156, 0.08);
  border-radius: 50%;
  opacity: 0;
  animation: fadeIn 1.2s ease 0.6s forwards;
}

.hero-accent::before {
  content: "";
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(25, 49, 156, 0.06);
  border-radius: 50%;
}

.hero-accent::after {
  content: "";
  position: absolute;
  inset: 80px;
  background: rgba(108, 152, 221, 0.25);
  border-radius: 50%;
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--header-height) + 5rem) 0 4rem;
  background: linear-gradient(180deg, var(--light-blue-soft) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero .eyebrow {
  margin-bottom: 1rem;
}

.page-hero .display-lg {
  margin-bottom: 1rem;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--dark-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--dark-blue);
  border: 1.5px solid var(--dark-blue);
}

.btn-outline:hover {
  background: var(--dark-blue);
  color: var(--white);
}

.btn-arrow::after {
  content: "→";
  transition: transform var(--transition);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ── Value pillars (overview) ── */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar {
  padding: 2.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.pillar:hover {
  border-color: var(--light-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--dark-blue);
}

.pillar p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Team grid ── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.team-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dark-blue), var(--mid-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

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

.team-photo,
.team-initials {
  width: 128px;
  height: 128px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.team-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-blue-muted);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--dark-blue);
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.team-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-blue);
  transition: gap var(--transition);
}

.team-link:hover {
  gap: 0.625rem;
}

/* ── Clients grid ── */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}

.client-logo {
  max-height: 48px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}

.client-card:hover {
  border-color: var(--mid-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.client-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--dark-blue);
  transition: color var(--transition);
}

.client-card:hover .client-name {
  color: var(--accent-blue);
}

/* ── Jobs ── */

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.job-card:hover {
  box-shadow: var(--shadow-md);
}

.job-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2rem 0;
  cursor: pointer;
}

.job-header-left {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.job-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius);
}

.job-header-left h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.job-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.job-badge {
  flex-shrink: 0;
  padding: 0.375rem 0.875rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
}

.job-badge--current {
  background: var(--light-blue-muted);
  color: var(--dark-blue);
}

.job-badge--future {
  background: var(--dark-blue);
  color: var(--white);
}

.job-summary {
  padding: 1rem 2rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.job-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--light-blue-soft);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.job-toggle svg {
  transition: transform var(--transition);
}

.job-card.expanded .job-toggle svg {
  transform: rotate(180deg);
}

.job-details {
  display: none;
  padding: 0 2rem 2rem;
  border-top: 1px solid var(--border);
}

.job-card.expanded .job-details {
  display: block;
  padding-top: 1.5rem;
}

.job-section {
  margin-bottom: 1.5rem;
}

.job-section:last-child {
  margin-bottom: 0;
}

.job-section h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-blue);
  margin-bottom: 0.75rem;
}

.job-section ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.job-section li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
  line-height: 1.6;
}

.job-apply {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ── Contact ── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-card {
  padding: 3rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-card--featured {
  background: var(--dark-blue);
  color: var(--white);
  border: none;
}

.contact-method {
  margin-bottom: 2.5rem;
}

.contact-method:last-child {
  margin-bottom: 0;
}

.contact-method .eyebrow {
  margin-bottom: 0.5rem;
}

.contact-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
}

.contact-card--featured .contact-value a {
  color: var(--white);
  transition: opacity var(--transition);
}

.contact-card--featured .contact-value a:hover {
  opacity: 0.8;
}

.contact-card--featured .eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

/* ── CTA band ── */

.cta-band {
  padding: 5rem 0;
  background: var(--dark-blue);
  color: var(--white);
  text-align: center;
}

.cta-band .display-md {
  margin-bottom: 1rem;
}

.cta-band .lead {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 2rem;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--dark-blue);
}

.cta-band .btn-primary:hover {
  background: var(--light-blue);
}

/* ── Footer ── */

.site-footer {
  padding: 3rem 0;
  background: var(--dark-blue-deep);
  color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-legal {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

.footer-copy {
  font-size: 0.8125rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--white);
}

/* ── Loading & error states ── */

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 0.75rem;
  border: 2px solid var(--light-blue);
  border-top-color: var(--dark-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

.error-message {
  text-align: center;
  padding: 2rem;
  color: #b44;
  background: #fef2f2;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
}

/* ── Animations ── */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ── */

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-accent {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transform: translateY(-110%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 1rem 2rem;
  }

  .section {
    padding: 4rem 0;
  }

  .job-header {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
