/* ==========================
   Base / Reset
   ========================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #0f172a; /* slate-900 */
  background: #ffffff;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:root {
  --primary: #0b4d90; /* brand blue */
  --primary-700: #083d73;
  --accent: #0ea5e9; /* sky-500 */
  --muted: #64748b;   /* slate-500 */
  --bg-soft: #f1f5f9;  /* slate-100 */
  --card: #0a2b57;     /* deep navy for cards */
  --white: #ffffff;
  --container: 1400px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(2, 8, 23, 0.08);
}

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(2rem, 4vw + 1rem, 4.5rem) 0; }
.section-title { text-align: center; font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); font-weight: 800; color: #0b1324; margin: 0 0 1rem 0; }
.subtle { color: var(--muted); font-size: 0.95rem; }

.btn { display: inline-block; padding: .8rem 1.1rem; border-radius: 999px; background: var(--primary); color: var(--white); font-weight: 600; border: 0; box-shadow: var(--shadow); transition: transform .15s ease, background .2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); background: var(--primary-700); }
.btn-link { background: transparent; color: var(--primary); box-shadow: none; padding: 0; }

/* ==========================
   Logo (responsive)
   ========================== */
.logo { max-width: 320px; height: auto; display: block; }
@media (max-width: 768px) { .logo { max-width: 190px; } }
@media (max-width: 480px) { .logo { max-width: 190px; } }

/* ==========================
   Header / Navigation (Desktop base)
   ========================== */
header.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #e2e8f0; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; }

/* Menu */
.nav-menu { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.nav-menu a { font-weight: 500; color: #0b2c5f; text-decoration: none; transition: color 0.3s ease; padding-bottom: 27px; }
.nav-menu a:hover { color: #0b4d90; }

/* Desktop dropdowns */
.has-submenu { position: relative; }
.submenu {
  position: absolute; left: 0; top: calc(100% + 24px);
  background: #fff; border: 1px solid #e2e8f0; border-top:0;
  padding: .5rem; min-width: 220px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .15s ease, transform .15s ease; z-index: 60;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.submenu li { list-style: none; }
.submenu a { display: block; padding: .5rem .6rem; border-radius: 8px; color: #0b2c5f; white-space: nowrap; }
.submenu a:hover { background: #f1f5f9; }
.has-submenu > a::after {
  display: inline-block;
  margin-left: .255em;
  vertical-align: .255em;
  content: "";
  border-top: .3em solid;
  border-right: .3em solid transparent;
  border-bottom: 0;
  border-left: .3em solid transparent;
}
.mobile-menu .has-submenu > a::after {
  
  content: none;
}
/* Search button */
.search-btn { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: #0b2c5f; transition: transform 0.2s ease; }
.search-btn:hover { transform: scale(1.2); }

/* Appointment button */
.btn-appointment { background: #0b2c5f; color: #fff; padding: 0.7rem 1.4rem; border-radius: 4px; font-weight: 600; text-decoration: none; transition: background 0.3s ease; }
.btn-appointment:hover { background: #08366b; }

/* Mobile nav toggle (hamburger) */
.nav-toggle { display: none; background: transparent; border: 0; padding: .25rem; width: 44px; height: 44px; border-radius: 8px; cursor: pointer; }
.nav-toggle:focus-visible { outline: 2px solid #0b4d90; outline-offset: 2px; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: #0b2c5f; margin: 5px auto; transition: transform .2s ease, opacity .2s ease; }

/* Mobile Drawer (unchanged pieces ok) */
.mobile-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(86vw, 360px);
  background: #fff; border-left: 1px solid #e2e8f0; box-shadow: -12px 0 30px rgba(2, 8, 23, 0.08);
  transform: translateX(100%); transition: transform .28s ease; z-index: 80;
  display: grid; grid-template-rows: auto 1fr;
}
.mobile-drawer.is-open { transform: translateX(0); }

.nav-backdrop { position: fixed; inset: 0; background: rgba(2, 6, 23, 0.45); z-index: 70; }

.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; border-bottom: 1px solid #e2e8f0; }
.drawer-title { font-weight: 700; color: #0b2c5f; }
.drawer-close { background: transparent; border: 0; font-size: 1.25rem; cursor: pointer; }
.drawer-close:focus-visible { outline: 2px solid #0b4d90; outline-offset: 2px; }

.mobile-menu { overflow-y: auto; padding: .5rem .6rem 1rem; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }

/* Make list item normal flow; submenu will sit beneath the link */
#mobile-drawer .drawer-group {
  position: relative;       /* for the absolute caret */
  margin: .15rem 0;
}

/* Parent link row */
#mobile-drawer .drawer-group > a.drawer-link {
  display: block;
  padding: 0;
  border-radius: 10px;
  color: #0b2c5f;
  font-weight: 600;
}

/* Caret button pinned to the right of the parent row */
#mobile-drawer .drawer-group > .drawer-caret {
  position: absolute;
  top: 0;
  right: .25rem;
  height: 30px;
  background: none;
  border: 0;
  padding: 0 .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#mobile-drawer .drawer-group > .drawer-caret:focus-visible {
  outline: 2px solid #0b4d90; outline-offset: 2px;
}
#mobile-drawer .drawer-group > .drawer-caret .caret {
  transition: transform .2s ease;
  font-size:20px;
}
#mobile-drawer .drawer-group > .drawer-caret[aria-expanded="true"] .caret {
  transform: rotate(90deg);
}

/* Submenu sits below the parent row */
#mobile-drawer .drawer-submenu,
#mobile-drawer .submenu {
  margin-top: .25rem;
  padding-left: 1rem;
}
#mobile-drawer .drawer-submenu[hidden],
#mobile-drawer .submenu[hidden] { display: none !important; }
/* Mobile breakpoint: logo left, hamburger right, hide desktop nav */
@media (max-width: 980px) {
  .primary-nav, .btn-appointment { display: none; }
  .nav-toggle { display: block;  }
  .nav-wrap { gap: .5rem; }
}

/* Extra: legacy mobile nav overflow from your code */
@media (max-width: 820px) {
  nav ul { overflow-x: auto; white-space: nowrap; padding-bottom: .4rem; }
  .cta { display: inline-flex; }
}
fieldset.hidden-fields-container {
    display: none;
}
input.wpcf7-form-control.wpcf7-submit.has-spinner {
        background: #0b2c5f;
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}
/* ==========================
   About Section
   ========================== */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1rem, 3vw, 2.25rem); align-items: start; }
.about h2 { margin: 0 0 .35rem; }
.about p { color: #1f2937; }
.about .bullets { margin: .75rem 0 0 0; padding-left: 1rem; }
.about .bullets li { margin: .4rem 0; color: var(--muted); }
.about .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
 main#primary {
     min-height: 436px;
 }   
/* ==========================
   Services Section (Cards)
   ========================== */
.services { background: var(--bg-soft); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.25rem; }
.service-card {
  background: #0b3d91; /* fallback */
  background: linear-gradient(135deg, #0a0a0a 0%, #0b3d91 100%);
  color: #fff; padding: 2rem 1.5rem; text-align: center; transition: all 0.4s ease; border-radius: 0;
  min-height: 320px; display: flex; flex-direction: column; justify-content: center;
}
.service-card img,
.service-card .icon { width: 60px; height: 60px; margin: 0 auto 1rem; display: block; }
.service-card h3 { margin: 0.5rem 0; font-size: 1.3rem; font-weight: 700; }
.service-card p { font-size: 0.95rem; margin: 0.5rem 0 1rem; line-height: 1.5; }
.service-card a { margin-top: auto; color: #fff; font-weight: 600; text-decoration: underline; transition: color 0.3s ease; }
.service-card:hover { background: linear-gradient(135deg, #0b3d91 0%, #0a0a0a 100%); transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.service-card:hover a { color: #dbeafe; }
@media (max-width: 1000px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .service-grid { grid-template-columns: 1fr; } }

/* ==========================
   Industries grid
   ========================== */
.industries .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.industries .item { background: #fff; border: 2px solid #2e79a7; border-radius: 12px; padding: 2rem 1rem; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.industries .item:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); border-color: #145374; }
.industries .item h4 { margin-top: 0.8rem; font-size: 20px; font-weight: 700; color: #0f172a; }
@media (max-width: 1024px) { .industries .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .industries .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .industries .grid { grid-template-columns: 1fr; } }
a.more-btn {
    display: block;
    margin: 40px auto 0 auto;
    width: 140px;
    background: #0b2c5f;
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
    text-align: center;
    font-size: 20px;
}
.indutry-icon {
    width: 100px;
    margin: 0 auto;
    height: 100px;
}
.indutry-icon img {
    width:100px;
    height:100px;
}
/* ==========================
   Training Highlight
   ========================== */
.training { background: #eaf2fb; }
.training-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; align-items: center; }
.training .visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 260px; background: #cbd5e1; }
.training h3 { margin: 0 0 .25rem; }
.training p { color: #334155; }
.training .btn { margin-top: .6rem; }
@media (max-width: 900px) { .training-wrap { grid-template-columns: 1fr; } }

/* ==========================
   Enlistments (logos)
   ========================== */
.logos { text-align: center; }
.logo-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 1rem; }
@media (max-width: 1000px) { .logo-row { grid-template-columns: repeat(4,1fr);} }
@media (max-width: 700px)  { .logo-row { grid-template-columns: repeat(3,1fr);} }
@media (max-width: 500px)  { .logo-row { grid-template-columns: repeat(2,1fr);} }
.enlist-logo-row {
    display: flex;
  align-items: center;
  justify-content: center;
}
.enlist-logo-row img {
   max-height:160px;
}
/* ==========================
   Contact Section
   ========================== */
.contact .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.25rem; }
form.card, .contact-card { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.field { display: grid; gap: .35rem; margin-bottom: .75rem; }
.two { display: grid; gap: .65rem; grid-template-columns: 1fr 1fr; }
input, textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: .75rem .9rem; font: inherit; }
textarea { min-height: 120px; resize: vertical; }
.contact-card .row { display: grid; grid-template-columns: 28px auto; gap: .6rem; align-items: start; padding: .4rem 0; }
.chip { width: 28px; height: 28px; border-radius: 7px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: .8rem; }
@media (max-width: 900px) { .contact .grid { grid-template-columns: 1fr; } }

/* ==========================
   CTA Strip
   ========================== */
.cta-strip { background: var(--primary); color: #fff; text-align: center; padding: 2rem 0; border-radius: 18px; box-shadow: var(--shadow); }
.cta-strip .container { display: grid; gap: 1rem; }
.cta-actions { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }

/* ==========================
   Footer
   ========================== */
footer { background: #0f172a; color: #cbd5e1; padding: 2.2rem 0; margin-top: 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1.2rem; }
.footer-title { color: #fff; font-weight: 800; margin: 0 0 .5rem; }
.muted-small { color: #94a3b8; font-size: .92rem; }
.newsletter { display: grid; gap: .5rem; }
.newsletter .row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================
   Hero Slider (unchanged)
   ========================== */
.hero-slider { position: relative; width: 100%; height: clamp(360px, 70vh, 760px); overflow: hidden; border-radius: 10px; }
.hs-track { height: 100%; position: relative; }
.hs-slide { position: absolute; inset: 0; background: center/cover no-repeat var(--bg, none); opacity: 0; transform: scale(1.02); transition: opacity .7s ease, transform 1.2s ease; }
.hs-slide.is-active { opacity: 1; transform: scale(1); z-index: 2; }
.hs-overlay { position: absolute; inset: 0; background: radial-gradient(80% 60% at 20% 40%, rgba(11,77,144,.25), transparent 60%), linear-gradient(90deg, rgba(15,23,42,.55) 0%, rgba(2,6,23,.20) 40%, rgba(0,0,0,0) 100%); }
.hs-content { position: absolute; inset: 0; display: grid; align-content: center; padding: clamp(16px, 4vw, 56px); }
.hs-content h2 { max-width: min(38ch, 90%); color: #dbeafe; font-weight: 800; font-size: clamp(1.6rem, 2.4vw + 1rem, 3rem); line-height: 1.2; text-shadow: 0 8px 30px rgba(0,0,0,.45); }
.hs-content h2 span { display: inline-block; }
.hs-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.15); backdrop-filter: blur(4px); color: #fff; font-size: 26px; line-height: 44px; text-align: center; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.hs-nav:hover { background: rgba(255,255,255,.25); transform: translateY(-50%) scale(1.05); }
.hs-prev { left: 12px; }
.hs-next { right: 12px; }
.hs-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 6; }
.hs-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s ease, background .2s ease; }
.hs-dots button.is-active { width: 28px; background: #fff; }
@media (max-width: 640px) { .hs-content h2 { font-size: clamp(1.35rem, 4.5vw + .5rem, 2rem); } .hs-prev, .hs-next { display: none; } }
