/* Base styles and CSS reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #ffffff;
}

a {
  color: #063970;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header & Navigation */
.site-header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  padding: 1rem;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  height: 32px;
  width: 32px;
}

.brand-name {
  font-weight: 600;
  font-size: 1.25rem;
}

.menu-toggle {
  background: none;
  border: none;
  display: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
}
.menu-toggle .hamburger,
.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background: #1f2937;
  position: relative;
  transition: transform 0.3s ease;
}
.menu-toggle .hamburger::before {
  top: -8px;
  position: absolute;
}
.menu-toggle .hamburger::after {
  top: 8px;
  position: absolute;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links li a {
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}
.nav-links li a:hover,
.nav-links li a:focus {
  color: #0a65a8;
}

/* Responsive navigation */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    width: 200px;
    background: #ffffff;
    flex-direction: column;
    padding: 1rem;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    height: calc(100vh - 64px);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .menu-toggle {
    display: inline-block;
  }
}

/* Hero Section */
.hero {
  position: relative;
  /* Desktop height is preserved */
  height: min(92vh, 800px);
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-img.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(2, 14, 28, 0.78) 0%,
      rgba(2, 14, 28, 0.52) 42%,
      rgba(2, 14, 28, 0.2) 100%
    ),
    linear-gradient(180deg, rgba(2, 14, 28, 0.12) 0%, rgba(2, 14, 28, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  color: #fff;
  padding: 0 1.5rem;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: #dbeafe;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 38px;
  height: 2px;
  background: #38bdf8;
  border-radius: 999px;
}
.hero h1 {
  max-width: 850px;
  font-size: 5.35rem;
  font-weight: 900;
  line-height: 0.98;
  margin-bottom: 1.15rem;
  text-wrap: balance;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.hero .subheading {
  color: #fff;
}
.hero-lead {
  max-width: 620px;
  font-size: 1.6rem;
  font-weight: 650;
  line-height: 1.35;
  margin-bottom: 0.8rem;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.42);
}
.hero-location {
  display: inline-flex;
  align-items: center;
  padding-left: 0.9rem;
  border-left: 3px solid #38bdf8;
  color: #e0f2fe;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.8rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .cta-buttons {
  justify-content: flex-start;
}

@media (max-width: 1100px) {
  .hero h1 {
    font-size: 4.35rem;
  }
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
.btn.primary {
  background-color: #063970;
  color: #fff;
}
.btn.primary:hover,
.btn.primary:focus {
  background-color: #0a65a8;
}
.btn.secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn.secondary:hover,
.btn.secondary:focus {
  background-color: #fff;
  color: #063970;
}

.carousel-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s ease;
}
.carousel-dot.active,
.carousel-dot:hover {
  background: #fff;
}

/* Sections */
section {
  padding: 3rem 1rem;
}
h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 700;
}
p.intro {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  text-align: center;
  font-size: 1.125rem;
  color: #374151;
}

/* MODIFICATION: Added class to create the background block */
.bg-gray {
  background-color: #f9fafb; /* Very light gray */
}

.services {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.services-header {
  max-width: 820px;
  margin: 0 auto 2.75rem;
  text-align: center;
}
.section-eyebrow {
  margin-bottom: 0.65rem;
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}
.services-header h2 {
  margin-bottom: 0.75rem;
  color: #0f172a;
  font-size: 2.7rem;
  line-height: 1.08;
  font-weight: 850;
}
.services-header p:last-child {
  max-width: 680px;
  margin: 0 auto;
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.7;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  position: relative;
  min-height: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #0ea5e9, #14b8a6);
  border-radius: 8px 0 0 8px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.service-card-kicker {
  margin-bottom: 1rem;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
.service-card h3 {
  margin-bottom: 1rem;
  color: #063970;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 1.28rem;
  line-height: 1.3;
}
.service-card p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
}
.service-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.35rem;
  color: #0369a1;
  font-weight: 800;
  line-height: 1.2;
}
.service-card-action::after {
  content: "→";
  font-size: 1.05rem;
  transition: transform 0.22s ease;
}
.service-card:first-child {
  grid-column: span 2;
}
.service-card:first-child h3 {
  max-width: 720px;
  font-size: 1.55rem;
}
.service-card:first-child p {
  max-width: 850px;
}

/* Why Section - Full-Width Cinematic Parallax */
.parallax-section {
  position: relative;
  padding: 8rem 1rem;
  background-image: url("assets/coverage-map.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(2, 14, 28, 0.1) 0%,
    rgba(2, 14, 28, 0.6) 100%
  );
  /* Removed the entire-section blur so the map is sharp and beautiful */
  z-index: 1;
}
.relative-z {
  position: relative;
  z-index: 2;
}
.why-container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title-light {
  text-align: center;
  font-size: 2.75rem;
  margin-bottom: 4rem;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.why-glass-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .why-glass-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.glass-panel {
  background: rgba(8, 20, 35, 0.65); /* Rich, dark frosted glass for contrast */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}
.glass-panel:hover {
  transform: translateY(-5px);
  background: rgba(12, 28, 50, 0.75);
  border-color: rgba(255, 255, 255, 0.3);
}
.glass-panel h3 {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.icon-wrap-glass {
  background: rgba(255, 255, 255, 0.1);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.glass-panel p {
  color: #e2e8f0;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* DEPRECATED CLIENT STYLES (Hidden to prevent mobile issues) */
.client-ring,
.client-list,
.client-names {
  display: none;
}
/* END DEPRECATED CLIENT STYLES */

/* Contact section */
.contact {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(20, 184, 166, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.contact-header {
  max-width: 760px;
  margin: 0 auto 2.75rem;
  text-align: center;
}
.contact-header h2 {
  margin-bottom: 0.75rem;
  color: #0f172a;
  font-size: 2.7rem;
  line-height: 1.08;
  font-weight: 850;
}
.contact-header p:last-child {
  max-width: 640px;
  margin: 0 auto;
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.7;
}
.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  align-items: stretch;
  min-width: 0;
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  min-width: 0;
}
.contact-form-heading {
  grid-column: 1 / -1;
  margin-bottom: 1.5rem;
}
.contact-form-heading h3 {
  margin-bottom: 0.35rem;
  color: #063970;
  font-size: 1.35rem;
  line-height: 1.2;
}
.contact-form-heading p {
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.5;
}
.contact-form .form-field {
  margin-bottom: 1.1rem;
  min-width: 0;
}
.contact-form .full-width {
  grid-column: 1 / -1;
}
.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 750;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.4;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0ea5e9;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}
.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}
.contact-form button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 48px;
  margin-top: 0.35rem;
  padding: 0.9rem 1.25rem;
}
.privacy-note {
  grid-column: 1 / -1;
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}
.contact-info {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(6, 57, 112, 0.96), rgba(15, 118, 110, 0.94)),
    #063970;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 2rem;
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  min-width: 0;
}
.contact-info::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}
.contact-info h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 0.8rem;
  color: #ffffff;
  font-size: 1.65rem;
  line-height: 1.2;
}
.contact-info p {
  position: relative;
  z-index: 1;
}
.contact-info a {
  color: #ffffff;
  text-decoration: none;
}
.contact-info a:hover,
.contact-info a:focus {
  text-decoration: underline;
}
.contact-info-kicker {
  margin-bottom: 0.75rem;
  color: #bae6fd;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}
.contact-info-copy {
  color: #dbeafe;
  line-height: 1.65;
}
.contact-detail-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  margin-top: 1.7rem;
}
.contact-detail-list p {
  display: grid;
  gap: 0.18rem;
  margin: 0;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}
.contact-detail-list span {
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}
.contact-detail-list strong,
.contact-detail-list a {
  font-size: 1rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.service-inline-form,
.request-form-section .contact-form {
  display: block;
}

/* Simple Professional Story Section Styles */
.simple-story-section {
  background: #ffffff;
  padding: 4rem 1.5rem;
}
.simple-story-container {
  max-width: 800px;
  margin: 0 auto;
}
.simple-story-container h2 {
  font-size: 2.25rem;
  color: #063970;
  margin-bottom: 0.25rem;
  text-align: left;
  line-height: 1.2;
  font-weight: 800;
}
.story-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 2rem;
  font-weight: 500;
}
.simple-story-container h3 {
  font-size: 1.5rem;
  color: #0f172a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.simple-story-container p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 1.25rem;
}
.story-highlight {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  border: 1px solid #e2e8f0;
}
.story-mission-statement-container {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.story-mission-statement {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  background: #063970;
  padding: 1.5rem 3rem;
  border-radius: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 20px -5px rgba(6, 57, 112, 0.4);
}
@media (max-width: 768px) {
  .story-mission-statement {
    font-size: 1.15rem;
    padding: 1.25rem 2rem;
  }
}

/* Team section styles (Modern Flex Layout) */
.team-section {
  padding: 6rem 1.5rem;
  background: #f8fafc;
  text-align: center;
}
.team-intro {
  max-width: 640px;
  margin: 0 auto 4rem;
  color: #5a6472;
  font-size: 1.1rem;
  line-height: 1.6;
}
.team-flex-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.team-card-modern {
  flex: 1 1 calc(33.333% - 2.5rem);
  min-width: 260px;
  max-width: 340px;
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.02);
}
.team-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.team-img-modern {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1.5rem;
  max-width: 220px;
  border: 4px solid #f0f6fc;
}
.team-img-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.team-card-modern:hover .team-img-modern img {
  transform: scale(1.06);
}
.team-card-modern h3 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
  color: #063970;
  font-weight: 700;
}
.team-title-modern {
  color: #64748b;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Clients section styles */
.clients-section {
  padding: 4rem 1.5rem;
  text-align: center;
  overflow: hidden;
}
.clients-subtitle {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: #5a6472;
  font-size: 0.95rem;
}
.clients-slider {
  width: min(100%, 1120px);
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 9%,
    #000 91%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 9%,
    #000 91%,
    transparent
  );
}
.clients-track {
  display: flex;
  width: max-content;
  animation: clients-scroll 22s linear infinite;
}
.clients-slider:hover .clients-track {
  animation-play-state: paused;
}
.clients-slide-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-right: 1.25rem;
}
.client-logo {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 94px;
  flex: 0 0 auto;
}

.client-logo img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  opacity: 1;
  filter: none;
}

@keyframes clients-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .clients-section {
    padding: 3rem 1rem;
  }

  .clients-subtitle {
    margin-bottom: 2rem;
  }

  .clients-slider {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent,
      #000 6%,
      #000 94%,
      transparent
    );
    mask-image: linear-gradient(
      90deg,
      transparent,
      #000 6%,
      #000 94%,
      transparent
    );
  }

  .clients-track {
    animation-duration: 18s;
  }

  .clients-slide-group {
    gap: 0.8rem;
    padding-right: 0.8rem;
  }

  .client-logo {
    width: 150px;
    height: 76px;
    padding: 0.8rem 1rem;
  }

  .client-logo img {
    max-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation: none;
    transform: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .clients-slide-group {
    justify-content: center;
    flex-wrap: wrap;
    padding-right: 0;
  }

  .clients-slide-group[aria-hidden="true"] {
    display: none;
  }
}

/* Careers page styles */
.career-hero {
  text-align: center;
  padding: 4rem 1rem 2rem 1rem;
}
.career-hero h1 {
  font-size: 2.5rem;
  color: #063970;
  margin-bottom: 0.5rem;
}
.career-hero .subheading {
  font-size: 1.25rem;
  color: #374151;
}
.careers-intro,
.careers-openings {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

/* Styling for 'No current openings' */
.careers-openings {
  margin-top: 2rem;
}
.no-openings {
  color: #5a6472;
  font-size: 0.95rem;
}

/* Footer styles */
.site-footer {
  background: #063970;
  color: #fff;
  padding: 1.5rem;
  text-align: center;
}
.site-footer .footer-content {
  max-width: 1000px;
  margin: 0 auto;
}
.site-footer a {
  color: #bbdefb;
  margin: 0 0.5rem;
  font-size: 0.9rem;
}
.site-footer a:hover,
.site-footer a:focus {
  color: #fff;
  text-decoration: underline;
}

/* Utility classes */
.full-width {
  grid-column: span 2;
}

/* --------------------------------------------------------------------------------- */
/* MOBILE OVERRIDES – ensure hero image is not "zoomed" on phones                    */
/* --------------------------------------------------------------------------------- */

@media (max-width: 767px) {
  /* Slightly taller hero height to give content more room */
  .hero {
    height: 90vh;
    max-height: 700px;
  }

  /* Ensure the single mobile image covers the new height */
  .hero-img {
    object-fit: cover;
    object-position: center;
  }

  /* Hide carousel controls entirely for mobile */
  .carousel-controls {
    display: none;
  }

  /* Adjust hero content for better fit */
  .hero-content {
    top: 45%;
    transform: translateY(-45%);
    padding: 0 1.25rem;
  }

  .hero-eyebrow {
    font-size: 0.76rem;
    margin-bottom: 0.8rem;
  }

  .hero-eyebrow::before {
    width: 28px;
  }

  /* Smaller type for main heading to prevent overlap */
  .hero h1 {
    font-size: 2.15rem;
    line-height: 1.04;
    margin-bottom: 0.9rem;
  }

  /* Smaller type for subheading */
  .hero-lead {
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
  }

  .hero-location {
    font-size: 0.92rem;
    margin-bottom: 1.35rem;
  }

  /* Button spacing */
  .cta-buttons {
    gap: 0.75rem;
  }

  .hero .cta-buttons {
    justify-content: flex-start;
  }

  .services {
    padding: 3.5rem 1rem;
  }

  .services-header {
    margin-bottom: 2rem;
    text-align: left;
  }

  .services-header h2 {
    font-size: 2rem;
  }

  .services-header p:last-child {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card:first-child {
    grid-column: auto;
  }

  .service-card {
    padding: 1.25rem;
  }

  .service-card:first-child h3,
  .service-card h3 {
    font-size: 1.12rem;
  }

  .service-card p {
    font-size: 0.95rem;
  }

  .contact {
    padding: 3.5rem 1rem;
  }

  .contact-header {
    margin-bottom: 2rem;
    text-align: left;
  }

  .contact-header h2 {
    font-size: 2rem;
  }

  .contact-header p:last-child {
    font-size: 1rem;
  }

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

  .contact-form,
  .contact-info {
    padding: 1.25rem;
  }

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

  .contact-info h3 {
    font-size: 1.35rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.78rem 0.85rem;
  }

  /* Make team image containers smaller on mobile */
  .team-img-container {
    max-width: 180px;
  }

}

@media (max-width: 480px) {
  .contact {
    padding: 3rem 0.75rem;
  }

  .contact-header {
    margin-bottom: 1.5rem;
  }

  .contact-form,
  .contact-info {
    padding: 1rem;
  }

  .contact-form-heading {
    margin-bottom: 1.15rem;
  }

  .contact-form-heading h3 {
    font-size: 1.18rem;
  }

  .contact-form .form-field {
    margin-bottom: 0.9rem;
  }

  .contact-detail-list p {
    padding: 0.8rem;
  }
}

.service-link {
  display: flex;
  color: inherit;
  text-decoration: none;
}
.service-link:hover,
.service-link:focus {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
  border-color: #bae6fd;
}
.service-link:hover::before,
.service-link:focus::before {
  opacity: 1;
}
.service-link:hover .service-card-action::after,
.service-link:focus .service-card-action::after {
  transform: translateX(4px);
}
.service-link:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.45);
  outline-offset: 4px;
}
.service-icon {
  width: 46px;
  height: 46px;
  background: #f0f9ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.35rem;
  margin-right: 0;
}

/* Sticky Header Wrapper */
.sticky-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 2000;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.sticky-header-wrapper .site-header {
  position: relative; /* Override sticky since wrapper is sticky */
  box-shadow: none; /* Let the wrapper handle shadow */
}

/* Top Announcement Strip */
.announcement-strip {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease,
    opacity 0.3s ease;
  overflow: hidden;
  max-height: 100px;
}
.announcement-strip.hidden {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.announcement-strip-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.announcement-strip-content p {
  margin: 0;
  font-weight: 500;
}
.announcement-icon {
  font-size: 1.1rem;
}
.announcement-link {
  color: #0284c7;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}
.announcement-link:hover {
  color: #0369a1;
}
.close-announcement {
  position: absolute;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  line-height: 1;
}
.close-announcement:hover {
  color: #0f172a;
}

/* Service pages */
.service-hero,
.request-hero {
  text-align: center;
  padding: 4rem 1rem 2rem 1rem;
}
.service-hero h1,
.request-hero h1 {
  font-size: 2.5rem;
  color: #063970;
  margin-bottom: 0.5rem;
}
.service-hero .subheading,
.request-hero .subheading {
  font-size: 1.15rem;
  color: #374151;
}
.service-body .service-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}
.service-body h2 {
  text-align: left;
  font-size: 1.6rem;
  margin-top: 2rem;
}
.service-list {
  margin: 1rem 0 0 1.25rem;
  color: #374151;
}
.service-list li {
  margin-bottom: 0.75rem;
}
.service-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  text-align: center;
}
.service-callout {
  margin-bottom: 1rem;
  color: #374151;
}
.request-form-section .contact-form {
  max-width: 900px;
  margin: 0 auto;
}
.request-form-section select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
  background: #ffffff;
}
