/* ════════════════════════════════════════════════════════════
   US WORKFORCES — styles.css
   Brand: Service Navy #003577 · Liberty Red #D40000
          Steel Slate #495764 · Field Gray #B8BEC4
   Fonts: Oswald (headlines) · Open Sans (body)
   ════════════════════════════════════════════════════════════ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --navy:        #003577;
  --navy-deep:   #00234f;
  --navy-mid:    #004499;
  --red:         #D40000;
  --red-dark:    #a80000;
  --slate:       #495764;
  --gray:        #B8BEC4;
  --gray-light:  #e8eaec;
  --white:       #FFFFFF;
  --off-white:   #f4f5f7;

  --font-display: 'Oswald', Arial, sans-serif;
  --font-body:    'Open Sans', Arial, sans-serif;

  --nav-h:        96px;
  --container:    1200px;
  --pad-section:  96px;
  --pad-section-sm: 64px;

  --radius:       0px;
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --shadow-sm:    0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:    0 8px 28px rgba(0,0,0,0.10);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.14);
  --shadow-navy:  0 8px 32px rgba(0,53,119,0.22);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::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(--slate);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

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

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 2px solid var(--red);
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,0,0,0.28);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ════════════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,53,119,0.12);
  border-color: transparent;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-link {
  flex-shrink: 0;
  margin-right: auto;
}

.nav-logo {
  height: 82px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-right: 36px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s var(--ease);
}

.nav-link:hover            { color: var(--red); }
.nav-link:hover::after     { width: 100%; }

.nav-cta {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 12px 24px;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--red-dark); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 16px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

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

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-cta   { display: none; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-right: 0;
    padding: 8px 0 24px;
    border-top: 2px solid var(--red);
    border-bottom: 1px solid var(--gray-light);
    box-shadow: 0 8px 24px rgba(0,53,119,0.12);
  }
  .nav-menu.open { display: flex; }
  .nav-link {
    width: 100%;
    padding: 14px 40px;
    color: var(--navy);
    font-size: 0.875rem;
  }
  .nav-link::after { bottom: 0; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
}

/* ════════════════════════════════════════════════════════════
   CSS AMERICAN FLAG
   ════════════════════════════════════════════════════════════ */
.css-flag {
  position: relative;
  width: 300px;
  height: 158px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,0.28);
  flex-shrink: 0;
  /* 13 alternating red/white stripes */
  background: repeating-linear-gradient(
    to bottom,
    #D40000  0px, #D40000  12px,
    #FFFFFF 12px, #FFFFFF  24px
  );
}

/* Blue canton (union) — top-left, covering 7 stripes */
.css-flag::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 38%;
  height: 84px; /* 7 × 12px */
  background: #003577;
  /* Star grid — white dots suggesting 50 stars */
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.92) 26%, transparent 27%),
    radial-gradient(circle, rgba(255,255,255,0.75) 26%, transparent 27%);
  background-size: 9px 8px, 9px 8px;
  background-position: 4px 4px, 8.5px 8px;
}

/* Flag-pole shadow line */
.css-flag::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: rgba(0,0,0,0.15);
}

/* Inline flag (smaller, in branches section) */
.flag-inline {
  width: 80px;
  height: 42px;
  flex-shrink: 0;
}

.american-flag-inline {
  height: 45px;
  width: auto;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 100px;
}

/* Subtle diagonal stripe — flag-inspired, very low opacity */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -52deg,
      transparent         0px,
      transparent         58px,
      rgba(212,0,0,0.038) 58px,
      rgba(212,0,0,0.038) 61px,
      transparent         61px,
      transparent         98px,
      rgba(212,0,0,0.025) 98px,
      rgba(212,0,0,0.025) 100px
    );
  pointer-events: none;
}

/* Top-right geometric accent */
#hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 600px; height: 600px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 72px;
  align-items: center;
}

.hero-content { min-width: 0; }

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.hero-logo-large {
  width: 300px;
  background: var(--white);
  padding: 24px 28px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
}

@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-brand {
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .hero-logo-large { width: 220px; padding: 18px 22px; }
  .css-flag { width: 220px; height: 116px; }
  .css-flag::before { height: 62px; }
}

@media (max-width: 600px) {
  .hero-brand { display: none; }
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 6.5vw, 5.25rem);
  line-height: 1.03;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.hero-body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.68);
  max-width: 580px;
  margin-bottom: 52px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
}

/* Bottom red rule */
.hero-rule {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, transparent 70%);
  opacity: 0.7;
}

/* ════════════════════════════════════════════════════════════
   SECTION SHARED STYLES
   ════════════════════════════════════════════════════════════ */
.section {
  padding: var(--pad-section) 0;
}

.section-alt {
  background: var(--off-white);
}

.section-dark {
  background: var(--navy);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.section-label.light {
  color: rgba(255,255,255,0.55);
}
.section-label.light::before {
  background: rgba(255,255,255,0.35);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.section-title.light {
  color: var(--white);
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--slate);
  max-width: 580px;
  margin-bottom: 60px;
  line-height: 1.72;
}

.section-intro.light {
  color: rgba(255,255,255,0.62);
}

/* ════════════════════════════════════════════════════════════
   WHO WE SERVE
   ════════════════════════════════════════════════════════════ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

.client-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-top: 3px solid transparent;
  padding: 36px 28px;
  transition:
    border-top-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
  opacity: 0;
  transform: translateY(24px);
}

.client-card.visible {
  animation: revealUp 0.5s var(--ease) forwards;
}

.client-card:hover {
  border-top-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.client-icon {
  width: 44px;
  height: 44px;
  color: var(--navy);
  margin-bottom: 20px;
}

.client-icon svg { width: 100%; height: 100%; }

.client-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.client-card p {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.68;
}

/* ════════════════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  background: var(--gray-light);
}

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

.service-card {
  background: var(--white);
  padding: 52px 44px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  opacity: 0;
  transform: translateY(24px);
}

.service-card.visible {
  animation: revealUp 0.5s var(--ease) forwards;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  z-index: 1;
  transform: translateY(-2px);
}

.service-card:hover .service-accent { width: 100%; }

.service-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: #edf0f4;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  user-select: none;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.72;
}

.service-accent {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 52px;
  background: var(--red);
  transition: width 0.45s var(--ease);
}

/* ════════════════════════════════════════════════════════════
   WHY US WORKFORCES (VALUES)
   ════════════════════════════════════════════════════════════ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

@media (max-width: 960px)  { .values-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 520px)  { .values-grid { grid-template-columns: 1fr; } }

.value-card {
  opacity: 0;
  transform: translateY(24px);
}

.value-card.visible {
  animation: revealUp 0.55s var(--ease) forwards;
}

.value-icon {
  width: 40px;
  height: 40px;
  color: var(--red);
  margin-bottom: 20px;
}

.value-icon svg { width: 100%; height: 100%; }

.value-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.value-card p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.72;
}

/* ── Section logo (reusable accent logo in section headers) ── */
.section-logo-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-logo-wrap img {
  height: 96px;
  width: auto;
  object-fit: contain;
}

.section-logo-divider {
  width: 1px;
  height: 64px;
  background: var(--gray);
  flex-shrink: 0;
}

/* Contact section logo */
.contact-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin-bottom: 32px;
  background: rgba(255,255,255,0.06);
  padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ════════════════════════════════════════════════════════════
   MILITARY BRANCHES
   ════════════════════════════════════════════════════════════ */
.branches-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 52px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

@media (max-width: 768px) { .branches-row { gap: 28px; } }

.branch-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
}

.branch-badge.visible {
  animation: revealUp 0.45s var(--ease) forwards;
}

.branch-seal {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--gray);
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
  cursor: default;
}

.branch-seal:hover {
  border-color: var(--navy);
  background: #edf2fa;
  box-shadow: var(--shadow-navy);
}

.branch-seal-img {
  padding: 0;
  overflow: hidden;
}

.branch-seal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.branch-abbr {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1;
}

.branch-star {
  font-size: 0.625rem;
  color: var(--red);
  line-height: 1;
}

.branch-name {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  text-align: center;
  max-width: 80px;
}

.branch-disclaimer {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray);
  font-style: italic;
  max-width: 560px;
  margin: 0 auto;
}

/* ════════════════════════════════════════════════════════════
   STATS BAR
   ════════════════════════════════════════════════════════════ */
.stats-bar {
  background: var(--navy-deep);
  padding: 64px 0;
  border-top: 3px solid var(--red);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

@media (max-width: 860px) { .stats-grid { justify-content: center; } }

.stat-item {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(16px);
}

.stat-item.visible {
  animation: revealUp 0.45s var(--ease) forwards;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  max-width: 160px;
  line-height: 1.45;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .stat-divider { display: none; }
  .stat-item    { min-width: 200px; }
}

/* ════════════════════════════════════════════════════════════
   CAREERS
   ════════════════════════════════════════════════════════════ */
.careers-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 860px) { .careers-inner { grid-template-columns: 1fr; gap: 48px; } }

.careers-content .section-title { margin-bottom: 20px; }

.careers-content p {
  font-size: 1.0625rem;
  color: var(--slate);
  line-height: 1.72;
  margin-bottom: 40px;
  max-width: 480px;
}

.careers-callout {
  background: var(--navy);
  padding: 52px 44px;
  position: relative;
}

.callout-rule {
  width: 40px;
  height: 3px;
  background: var(--red);
  margin-bottom: 28px;
}

.callout-quote {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.32;
  font-style: normal;
  margin-bottom: 20px;
}

.callout-attr {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 36px;
}

.callout-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.callout-values span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 5px 12px;
}

/* ════════════════════════════════════════════════════════════
   CONTACT / CTA
   ════════════════════════════════════════════════════════════ */
.contact-inner {
  max-width: 820px;
}

.contact-header {
  margin-bottom: 52px;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-full { grid-column: 1 / -1; }

.form-group label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--white);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.28);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.09);
}

.btn-submit {
  justify-self: start;
  border: none;
  font-size: 0.925rem;
  padding: 18px 48px;
  cursor: pointer;
  margin-top: 8px;
}

.contact-call {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  margin-bottom: 32px;
}

.contact-call-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.contact-call-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1;
  transition: color 0.2s;
}

.contact-call-number:hover {
  color: var(--red);
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
footer {
  background: var(--navy-deep);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-logo {
  height: 88px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.68;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

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

.footer-bottom {
  padding: 22px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p,
.footer-fine {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.25);
}

/* ════════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════════ */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered delays for grid children */
.clients-grid  .client-card:nth-child(2)  { animation-delay: 0.07s; }
.clients-grid  .client-card:nth-child(3)  { animation-delay: 0.14s; }
.clients-grid  .client-card:nth-child(4)  { animation-delay: 0.21s; }

.services-grid .service-card:nth-child(2) { animation-delay: 0.07s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.14s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.21s; }

.values-grid   .value-card:nth-child(2)   { animation-delay: 0.09s; }
.values-grid   .value-card:nth-child(3)   { animation-delay: 0.18s; }
.values-grid   .value-card:nth-child(4)   { animation-delay: 0.27s; }

.branches-row  .branch-badge:nth-child(2) { animation-delay: 0.06s; }
.branches-row  .branch-badge:nth-child(3) { animation-delay: 0.12s; }
.branches-row  .branch-badge:nth-child(4) { animation-delay: 0.18s; }
.branches-row  .branch-badge:nth-child(5) { animation-delay: 0.24s; }
.branches-row  .branch-badge:nth-child(6) { animation-delay: 0.30s; }

.stats-grid    .stat-item:nth-child(3)    { animation-delay: 0.08s; }
.stats-grid    .stat-item:nth-child(5)    { animation-delay: 0.16s; }
.stats-grid    .stat-item:nth-child(7)    { animation-delay: 0.24s; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE OVERRIDES
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --pad-section: 64px;
  }

  .hero-actions { gap: 28px; }

  .section-intro { margin-bottom: 44px; }

  .careers-callout { padding: 36px 28px; }
  .callout-quote   { font-size: 1.3rem; }

  .service-card { padding: 36px 28px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.4rem; }
  .btn-primary   { padding: 14px 28px; }
  .branch-seal   { width: 84px; height: 84px; }
  .stat-number   { font-size: 1.65rem; }
}

/* ════════════════════════════════════════════════════════════
   APPLY MODAL
   ════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 23, 60, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--white);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease);
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px; right: 20px;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--slate);
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--navy); }

.modal-header {
  margin-bottom: 36px;
}

.modal-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.6;
}

.modal-form {
  display: grid;
  gap: 18px;
}

.modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) {
  .modal-form-row { grid-template-columns: 1fr; }
  .modal-box { padding: 32px 24px; }
}

.modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.modal-form-group label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.modal-form-group input,
.modal-form-group select {
  background: var(--off-white);
  border: 1px solid var(--gray);
  color: var(--navy);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.modal-form-group input:focus,
.modal-form-group select:focus {
  border-color: var(--navy);
  background: var(--white);
}

.modal-form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23495764' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.modal-submit {
  margin-top: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.925rem;
  padding: 16px 40px;
  justify-self: start;
}

/* ════════════════════════════════════════════════════════════
   FOCUS / ACCESSIBILITY
   ════════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ════════════════════════════════════════════════════════════
   SCROLLBAR (Chrome/Edge) — minimal navy
   ════════════════════════════════════════════════════════════ */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--gray); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate); }
