/* ===== Design tokens ===== */
:root {
  --navy-dark: #081A33;
  --navy: #0E2A52;
  --navy-light: #1D3E6E;
  --gold: #C9972F;
  --gold-light: #E0B44D;
  --cream: #F7F5F0;
  --gray-100: #F2F4F7;
  --gray-300: #D7DCE3;
  --text-dark: #16223A;
  --text-muted: #566073;
  --white: #FFFFFF;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(8,26,51,0.12);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Source Sans 3', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--serif); margin: 0 0 .5em; color: var(--navy-dark); }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 24px; }
.section-tight { padding: 48px 24px; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); text-align: center; margin-bottom: .3em; }
.section-sub { text-align: center; color: var(--text-muted); max-width: 640px; margin: 0 auto 2.5rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease;
}
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Header / Nav ===== */
.site-header { background: var(--navy-dark); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.2); }
.header-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark-img { display: block; height: 40px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-line1 { font-family: var(--serif); font-weight: 700; color: var(--white); font-size: 1.35rem; }
.logo-line1 em { color: var(--gold); font-style: normal; }
.logo-line2 { font-size: .62rem; letter-spacing: .18em; color: var(--gray-300); text-transform: uppercase; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); display: block; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 4px; padding: 12px 14px;
  color: var(--gray-300); font-weight: 600; font-size: .88rem; letter-spacing: .03em;
  text-transform: uppercase; border-bottom: 2px solid transparent;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active { color: var(--gold); border-color: var(--gold); }
.caret { font-size: .65em; margin-left: 2px; }

.dropdown {
  position: absolute; top: 100%; left: 0; background: var(--white);
  min-width: 240px; box-shadow: var(--shadow); border-radius: var(--radius);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: block; padding: 10px 14px; color: var(--text-dark);
  font-size: .88rem; font-weight: 500; border-radius: 4px; text-transform: none; letter-spacing: normal;
}
.dropdown li a:hover, .dropdown li a.active { background: var(--gray-100); color: var(--navy); }

.lang-select { position: relative; margin-left: 8px; }
.lang-btn { background: transparent; border: 1px solid rgba(255,255,255,.3); color: var(--white); padding: 8px 12px; border-radius: 4px; font-size: .82rem; cursor: pointer; }
.lang-dropdown { position: absolute; right: 0; top: 110%; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 150px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease; }
.lang-select.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown li a { display: block; padding: 10px 14px; color: var(--text-dark); font-size: .85rem; }
.lang-dropdown li a:hover { background: var(--gray-100); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  background: linear-gradient(120deg, rgba(8,26,51,.92) 10%, rgba(8,26,51,.35) 60%), var(--navy-dark);
  background-size: cover; background-position: center;
  color: var(--white);
}
.hero-content { max-width: 640px; padding: 24px; }
.hero-content h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin-bottom: .2em; }
.hero-content h1 .accent { color: var(--gold); display: block; }
.hero-divider { width: 70px; height: 3px; background: var(--gold); margin: 20px 0; }
.hero-tagline { font-size: 1.15rem; letter-spacing: .02em; margin-bottom: 1.5em; color: var(--gray-300); }
.hero-pillars { display: flex; gap: 10px; align-items: center; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; margin-bottom: 2em; color: var(--white); }
.hero-pillars .dot { color: var(--gold); }

@media (min-width: 781px) {
  .hero { align-items: flex-start; padding-top: 12vh; padding-left: 25vh;}
  .hero-content { margin: 0; }
}

.page-hero {
  background: linear-gradient(120deg, rgba(8,26,51,.94), rgba(8,26,51,.6)), var(--navy-dark);
  background-size: cover; background-position: center;
  color: var(--white); padding: 90px 24px 70px; text-align: left;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: .3em; line-height: 1.2; }
.page-hero h1 .accent { color: var(--gold); display: block; }
.page-hero p { color: var(--gray-300); max-width: 620px; font-size: 1.05rem; margin-top: .5em; }

/* ===== Cards / grids ===== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.card h3 { font-size: 1.15rem; margin-bottom: .3em; }

.news-card {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-300);
  background: var(--white); transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card-image { display: block; width: 100%; height: 210px; overflow: hidden; background: var(--gray-300); }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.news-card:hover .news-card-image img { transform: scale(1.07); }
.news-card-head {
  position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-block;
  background: var(--navy); color: var(--white); padding: 6px 14px; border-radius: 999px;
  font-weight: 700; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(8,26,51,.35);
}
.news-card-head.gold { background: var(--gold); color: var(--navy-dark); }
.news-card-head:hover { opacity: .88; }

.news-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.news-filter-pill { display: inline-block; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--gray-300); color: var(--text-muted); font-size: .85rem; font-weight: 600; }
.news-filter-pill:hover { border-color: var(--navy); color: var(--navy); }
.news-filter-pill.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.news-card-body { padding: 18px; background: var(--white); }
.news-card-body h4 { font-size: 1.05rem; margin-bottom: .4em; }

.news-detail-hero { padding: 44px 24px 32px; }
.news-detail-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0; }
.news-detail-image-section { padding-top: 40px; }

.news-article-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news-article-image img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.news-article-body p { margin-bottom: 1.1em; line-height: 1.7; }
.news-article-body h2, .news-article-body h3, .news-article-body h4 { margin-top: 1.2em; }
.news-article-body ul, .news-article-body ol { margin: 0 0 1.1em 1.4em; }
.news-article-body blockquote { border-left: 3px solid var(--gold); margin: 1.2em 0; padding: .2em 1em; color: var(--text-muted); font-style: italic; }
.news-article-body a { color: var(--navy); text-decoration: underline; }

.doc-card {
  background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius);
  padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.doc-card .doc-icon { font-size: 2rem; color: var(--gold); }
.doc-card h3 { font-size: 1rem; min-height: 48px; }

.service-row {
  display: flex; gap: 18px; align-items: flex-start; padding: 20px;
  border: 1px solid var(--gray-300); border-radius: var(--radius); background: var(--white);
}
.service-row .icon { font-size: 1.6rem; flex-shrink: 0; }

/* ===== Process steps ===== */
.process { display: flex; flex-wrap: wrap; gap: 8px; }
.process-step {
  flex: 1; min-width: 150px; padding: 16px 20px; text-align: center; font-weight: 700;
  background: var(--navy); color: var(--white); position: relative;
}
.process-step:first-child { background: var(--gold); color: var(--navy-dark); }

/* ===== Section backgrounds ===== */
.bg-navy { background: var(--navy-dark); color: var(--white); }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-navy p { color: var(--gray-300); }
.bg-cream { background: var(--cream); }
.bg-gray { background: var(--gray-100); }

/* ===== Manuals page layout ===== */
.manuals-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 32px; align-items: flex-start; }

/* ===== Contact page layout ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }

/* ===== Forms ===== */
.form-panel { background: var(--navy); border: 1px solid var(--gold); border-radius: var(--radius); padding: 28px; }
.form-panel h3 { color: var(--gold); }
.form-group { margin-bottom: 14px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border-radius: 4px; border: 1px solid var(--gray-300);
  font-family: var(--sans); font-size: .95rem;
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ===== Values / icons row ===== */
.values-row { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; text-align: center; }
.value-item .value-icon { width: 90px; height: 90px; margin: 0 auto 10px; display: block; }

/* ===== Stat badges ===== */
.stat-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-badge { border: 2px solid var(--gold); border-radius: var(--radius); padding: 14px 22px; text-align: center; font-weight: 700; color: var(--navy); }

/* ===== Parts & support bento tiles ===== */
.parts-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.parts-tile { grid-column: span 3; border: 2px solid var(--gold); border-radius: 8px; overflow: hidden; background: var(--navy-dark); }
.parts-tile.third { grid-column: span 2; }
.parts-tile img { width: 100%; display: block; }
.parts-tile-caption { padding: 18px 22px; }
.parts-tile-caption h3 { color: var(--gold); margin-bottom: .2em; font-size: 1.2rem; }
.parts-tile-caption p { color: var(--gray-300); margin: 0; }
@media (max-width: 880px) {
  .parts-tiles { grid-template-columns: 1fr; }
  .parts-tile, .parts-tile.third { grid-column: span 1; }
}

/* ===== Training page ===== */
.training-photo-card { border: 1px solid rgba(255,255,255,.25); border-radius: 8px; overflow: hidden; }
.training-photo-card img { width: 100%; display: block; }
.training-photo-card .caption { padding: 20px 24px; background: var(--navy-dark); }
.training-photo-card .caption h3 { color: var(--gold); margin-bottom: .3em; }
.training-photo-card .caption p { color: var(--gray-300); margin: 0; }

.programs-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 1.5rem; justify-content: flex-start; }
.programs-heading img { width: 40px; height: 40px; }
.programs-heading h2 { color: #fff; margin: 0; text-align: left; }

.program-pill { display: flex; align-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; overflow: hidden; }
.program-pill img { width: 60px; height: 60px; background: #fff; padding: 10px; flex-shrink: 0; }
.program-pill span { color: #fff; font-weight: 600; padding: 0 16px; font-size: .95rem; }

/* ===== Explore tiles (photo + gold label) ===== */
.explore-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.explore-tile { display: block; text-align: center; }
.explore-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 3px solid var(--gold); border-radius: 8px 8px 0 0; border-bottom: none; }
.explore-tile-label { display: block; background: var(--gold); color: var(--navy-dark); font-weight: 700; padding: 10px 8px; border-radius: 0 0 8px 8px; }
@media (max-width: 880px) {
  .explore-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Services photo panel ===== */
.services-photo-hero {
  position: relative;
  background-size: cover; background-position: center;
  padding: 56px 24px 64px;
}
.services-photo-hero .page-title {
  text-align: center; color: var(--navy-dark); text-transform: uppercase;
  letter-spacing: .04em; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 2rem;
}
.services-panel {
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow);
  padding: 40px clamp(20px, 4vw, 48px);
}
.services-panel-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .6em; }
.services-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
.services-col:not(:first-child) { border-left: 1px solid var(--gray-300); padding-left: 32px; }
.services-col-icons { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.services-col h3 { font-size: 1.1rem; margin-bottom: .1em; }
.services-col .col-subtitle { color: var(--text-muted); font-size: .85rem; margin: 0 0 .6em; }
.services-col ul { color: var(--text-muted); display: flex; flex-direction: column; gap: 8px; margin-top: .8em; }
.services-why { margin-top: 40px; }
.services-why h3 { text-transform: uppercase; letter-spacing: .04em; color: var(--navy); margin-bottom: .5em; font-size: 1.05rem; }
.services-why ul { color: var(--text-muted); }

@media (max-width: 880px) {
  .services-columns { grid-template-columns: 1fr; }
  .services-col:not(:first-child) { border-left: none; padding-left: 0; border-top: 1px solid var(--gray-300); padding-top: 24px; }
}

/* ===== Tabs (services sub-nav look) ===== */
.subnav { background: var(--gray-100); border-bottom: 1px solid var(--gray-300); }
.subnav .container { display: flex; gap: 4px; padding: 10px 24px; }
.subnav a { padding: 8px 16px; font-weight: 600; font-size: .85rem; border-radius: 4px; color: var(--navy); white-space: nowrap; flex-shrink: 0; }
.subnav a.active, .subnav a:hover { background: var(--navy); color: var(--white); }

/* ===== Partners marquee ===== */
.partners-section { padding: 56px 24px; background: var(--gray-100); overflow: hidden; }
.partners-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.partners-track {
  display: flex; align-items: center; width: max-content;
  animation: partners-scroll 32s linear infinite;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partner-logo-item { flex-shrink: 0; padding: 0 48px; display: flex; align-items: center; }
.partner-logo-item img {
  height: 88px; width: auto; max-width: 220px; object-fit: contain;
  filter: grayscale(1); opacity: .65; transition: filter .25s ease, opacity .25s ease;
}
.partner-logo-item img:hover { filter: grayscale(0); opacity: 1; }
@keyframes partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; overflow-x: auto; }
}
@media (max-width: 780px) {
  .partner-logo-item { padding: 0 30px; }
  .partner-logo-item img { height: 60px; }
}

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: var(--gray-300); position: relative; }

.footer-divider { position: relative; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); max-width: 1280px; margin: 0 auto; }
.footer-divider-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold);
  background: var(--navy-dark); display: flex; align-items: center; justify-content: center;
}

.footer-inner { max-width: 1280px; margin: 0 auto; padding: 56px 24px 32px; display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 32px; }
.footer-col h4 { color: var(--gold); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--gray-300); }
.footer-col a:hover { color: var(--gold); }
.footer-links a { display: flex; align-items: center; gap: 8px; }
.footer-links a::before { content: "\203A"; color: var(--gold); font-weight: 700; }

.footer-logo { margin-bottom: 18px; }
.footer-tagline-title { color: var(--white); font-family: var(--serif); font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.footer-tagline-words { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; margin-bottom: 16px; }
.footer-about { font-size: .9rem; }
.footer-map { display: block; width: 100%; max-width: 260px; height: auto; opacity: .9; margin-top: 12px; }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; margin-bottom: 14px; }
.footer-icon { flex-shrink: 0; color: var(--white); margin-top: 2px; }

.footer-follow-heading { margin-top: 28px; }
.footer-social { display: flex; gap: 10px; margin-top: 10px; }
.footer-social-link {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; color: var(--white);
  transition: background .2s ease;
}
.footer-social-link:hover { background: var(--gold); color: var(--navy-dark); }

.footer-certifications { border-top: 1px solid rgba(255,255,255,.1); }
.footer-certifications-inner {
  max-width: 1280px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-certifications-label { display: flex; flex-direction: column; }
.footer-certifications-title { color: var(--gold); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: .85rem; }
.footer-certifications-line { font-size: .82rem; color: var(--gray-300); text-transform: uppercase; letter-spacing: .04em; }
.footer-certifications-badges { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.18); }
.footer-cert-badge { display: flex; align-items: center; justify-content: center; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.18); }
.footer-cert-badge:first-child { padding-left: 0; border-left: none; }
.footer-cert-badge a { display: flex; opacity: .92; transition: opacity .2s ease; }
.footer-cert-badge a:hover { opacity: 1; }
.footer-cert-logo { display: block; height: 56px; width: auto; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 18px 24px;
  font-size: .82rem; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }
.footer-legal-links { display: flex; align-items: center; gap: 10px; }
.footer-legal-links a:hover { color: var(--gold); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .manuals-layout { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-dark);
    flex-direction: column; align-items: stretch; padding: 12px 24px 24px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .dropdown { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .subnav .container { overflow-x: auto; }
  .contact-layout { grid-template-columns: 1fr; }
}
