/* Armstrong-Hilton — static site styles */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  --brand: #204392;
  --brand-dark: #142d66;
  --brand-light: #e9eef8;
  --accent: #1fb1e7;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e3e7ee;
  --bg-alt: #f5f7fa;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(20, 45, 102, 0.08);
  --container: 1160px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--brand); color: var(--white); padding: 0.5rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--brand-dark); color: #cfd8ee; font-size: 0.82rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.45rem; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.logo img { width: 260px; height: auto; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 0.25rem; }
.nav a, .nav .submenu-toggle {
  display: block; padding: 0.6rem 0.85rem; border-radius: 8px;
  color: var(--ink); font: 600 0.92rem/1.2 var(--font); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav .submenu-toggle:hover { color: var(--brand); background: var(--brand-light); }
.nav a[aria-current="page"], .nav .is-active > .submenu-toggle { color: var(--brand); }
.nav .submenu-toggle::after {
  content: ""; display: inline-block; margin-left: 0.4em; vertical-align: 0.15em;
  border: solid currentColor; border-width: 0 2px 2px 0; padding: 2.5px; transform: rotate(45deg);
}
.nav .btn { margin-left: 0.5rem; }
.nav a.btn, .nav a.btn[aria-current="page"] { color: var(--white); background: var(--brand); }
.nav a.btn:hover { color: var(--white); background: var(--brand-dark); }

.has-submenu { position: relative; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 270px; padding: 0.5rem !important;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.15s ease;
}
.submenu a { font-weight: 500; }
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.has-submenu.open > .submenu { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .logo img { width: 210px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; padding: 0.75rem 1rem 1rem; }
  .nav a, .nav .submenu-toggle { width: 100%; text-align: left; padding: 0.8rem 0.75rem; }
  .nav .btn { margin: 0.5rem 0 0; text-align: center; }
  .submenu {
    position: static; display: none; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 0 0.75rem !important; min-width: 0;
  }
  .has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu { display: none; }
  .has-submenu.open > .submenu { display: block; }
  .topbar .tagline { display: none; }
  .topbar .container { justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.85rem 1.6rem; border-radius: 999px; border: 2px solid var(--brand);
  background: var(--brand); color: var(--white); font: 600 0.95rem/1 var(--font);
  text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.8); }
.btn--ghost:hover { background: var(--white); color: var(--brand); border-color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Hero & page banners ---------- */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: var(--brand-dark);
}
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,45,102,0.15) 0%, rgba(20,45,102,0.55) 45%, rgba(20,45,102,0.9) 100%);
}
.hero .container {
  position: relative; z-index: 1; display: flex; justify-content: flex-end;
  min-height: clamp(380px, 48vw, 540px); align-items: center; padding-block: 3rem;
}
.hero-text { max-width: 560px; }
.hero .eyebrow { color: #bfe9fa; }
.hero h1 { color: var(--white); margin-bottom: 0.4em; }
.hero p { font-size: 1.1rem; color: #e8edf8; margin-bottom: 1.8rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(20,45,102,0.35), rgba(20,45,102,0.9)); }
  .hero .container { align-items: flex-end; }
}

.page-banner { position: relative; color: var(--white); background: var(--brand-dark); overflow: hidden; }
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,45,102,0.2), rgba(20,45,102,0.85) 55%); }
.page-banner .container { position: relative; z-index: 1; padding-block: clamp(2.5rem, 6vw, 4.5rem); text-align: right; }
.page-banner h1 { color: var(--white); margin: 0 0 0.3rem; }
.breadcrumb { font-size: 0.88rem; color: #cfd8ee; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.6; }
.breadcrumb a { color: var(--white); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.section--alt { background: var(--bg-alt); }
.section--brand { background: var(--brand); color: #e4eaf7; }
.section--brand h2 { color: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.75rem; }
.section-head p { color: var(--muted); }
.eyebrow {
  display: block; margin-bottom: 0.6rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand);
}
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- Cards (training grid) ---------- */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cards--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 1.25rem; }
.card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.card img {
  width: 100%; aspect-ratio: 32 / 25; object-fit: cover; border: 6px solid var(--brand);
  /* top corners only; 1px less than the card so it sits flush inside the card's 1px border */
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.card-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.card h3 { margin: 0; font-size: 1.05rem; }
.cards--compact h3 { font-size: 0.95rem; }
.card .arrow { color: var(--brand); font-size: 1.2rem; transition: transform 0.2s; }
.card:hover .arrow { transform: translateX(4px); }

/* ---------- Features ---------- */
.features { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.75rem; text-align: center;
  border: 1px solid var(--line);
}
.feature img { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 1.1rem; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 300px 1fr; }
.split--reverse { grid-template-columns: 1fr 300px; }
.split--reverse .split-media { order: 2; }
.split-media img { border-radius: 50%; width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow); }
.split-text p { color: var(--muted); }
blockquote.pull {
  margin: 0 0 1.25rem; font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 600; line-height: 1.45; color: var(--ink);
}
@media (max-width: 800px) {
  .split, .split--reverse { grid-template-columns: 1fr; text-align: center; }
  .split--reverse .split-media { order: 0; }
  .split-media { max-width: 240px; margin-inline: auto; }
}

/* ---------- Testimonials ---------- */
.testimonials { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.testimonial {
  margin: 0; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  padding: 2rem 1.75rem; border: 1px solid var(--line); position: relative;
}
.testimonial::before {
  content: "\201C"; position: absolute; top: 0.4rem; right: 1.25rem;
  font: 700 4.5rem/1 Georgia, serif; color: var(--brand-light);
}
.testimonial .t-logo { height: 56px; width: auto; object-fit: contain; margin-bottom: 1.25rem; align-self: flex-start; }
.testimonial blockquote { margin: 0 0 1.25rem; color: var(--muted); flex: 1; position: relative; }
.testimonial figcaption { font-weight: 700; }
.testimonial figcaption span { display: block; font-weight: 500; font-size: 0.88rem; color: var(--brand); }

/* ---------- Training detail ---------- */
.training { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 340px 1fr; align-items: start; }
.training-aside { position: sticky; top: 100px; }
.training-aside img { border-radius: var(--radius); width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.75rem; }
.facts li { background: var(--bg-alt); border-radius: 10px; padding: 0.85rem 1rem; }
.facts strong { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.facts span { display: block; font-size: 0.93rem; }
.facts span + span { margin-top: 0.2rem; }
.training-body h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.training-body h2:first-child { margin-top: 0; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 0.5rem; }
.steps li {
  counter-increment: step; display: flex; gap: 0.9rem; align-items: baseline;
  padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: 10px;
}
.steps li::before {
  content: counter(step, lower-alpha); flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.82rem; font-weight: 700;
  background: var(--brand-light); color: var(--brand); transform: translateY(0.1rem);
}
.note { color: var(--muted); }
@media (max-width: 860px) {
  .training { grid-template-columns: 1fr; }
  .training-aside { position: static; display: grid; grid-template-columns: 160px 1fr; gap: 1.25rem; align-items: start; }
  .facts { margin: 0; }
}
@media (max-width: 480px) {
  .training-aside { grid-template-columns: 1fr; }
  .training-aside img { max-width: 220px; }
}

/* Case study */
.case { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr 1.6fr; align-items: start; }
.case-quotes { display: grid; gap: 1rem; }
.case-quotes blockquote {
  margin: 0; padding: 1.5rem 1.6rem; background: var(--brand); color: var(--white); border-radius: var(--radius);
  font-size: 1.1rem; font-weight: 600; line-height: 1.5;
}
.case-quotes cite { display: block; margin-top: 0.75rem; font-size: 0.82rem; font-style: normal; font-weight: 500; color: #bcc9e8; }
.case-item + .case-item { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.case-item p { color: var(--muted); }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

/* ---------- Clients ---------- */
.industries { display: grid; gap: 0.75rem; max-width: 980px; margin-inline: auto; }
.industry { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.industry summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.industry summary::-webkit-details-marker { display: none; }
.industry summary::after {
  content: "+"; flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand); font-size: 1.2rem; transition: transform 0.2s;
}
.industry[open] summary::after { transform: rotate(45deg); }
.industry summary small { font-weight: 500; color: var(--muted); margin-left: auto; }
.logos {
  list-style: none; margin: 0; padding: 0.25rem 1.4rem 1.4rem;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}
.logos li { display: grid; place-items: center; padding: 0.75rem; border-radius: 10px; background: var(--bg-alt); }
.logos img { width: 140px; height: 70px; object-fit: contain; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1.5fr 1fr; align-items: start; }
.contact--single { grid-template-columns: 1fr; max-width: 820px; margin-inline: auto; }
.form { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.field label .req { color: var(--brand); }
.field input, .field textarea {
  width: 100%; padding: 0.85rem 1rem; font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--white); border: 1px solid #cfd5df; border-radius: 10px; transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(32,67,146,0.15); }
.hp { position: absolute; left: -9999px; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 0.9rem 1rem; border-radius: 10px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.ok { background: #e6f6ec; color: #1e6b3a; }
.form-status.err { background: #fdecec; color: #9b1c1c; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.office { background: var(--bg-alt); border-radius: var(--radius); padding: 2rem; }
.office h2 { font-size: 1.35rem; }
.office address { font-style: normal; margin-bottom: 1rem; }
.office dl { margin: 0; display: grid; gap: 0.6rem; }
.office dt { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.office dd { margin: 0; }
.map { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { margin: 0 0 0.25rem; }
.cta-band p { margin: 0; }
.cta-band .btn { background: var(--white); color: var(--brand); border-color: var(--white); }
.cta-band .btn:hover { background: transparent; color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: #0f1f47; color: #b6c1db; font-size: 0.92rem; }
.site-footer .container { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr; padding-block: 3.5rem 2.5rem; }
.site-footer h2 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #dfe6f5; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.site-footer address { font-style: normal; }
.footer-logo { width: 220px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding-block: 1.25rem; grid-template-columns: none; font-size: 0.82rem; }
@media (max-width: 800px) { .site-footer .container { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.testimonials--two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
/* <picture> wrappers shouldn't affect layout; the <img> inside is styled directly */
picture { display: contents; }
.topbar-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; }
