/* ==========================================================================
   Advanced Engineering & Design, Inc. — site styles
   Palette carried over from the original site: navy #07127d / #282A75,
   crimson #A4070B (bright crimson #E0242A for small accents on dark backgrounds), light gray #E1E1E1, charcoal #333.
   ========================================================================== */

:root {
  --navy: #272C74;
  --navy-2: #272C74;
  --navy-deep: #15184a;
  --crimson: #A4070B;
  --crimson-dark: #7d0508;
  --crimson-bright: #E0242A;
  --gray-50: #f6f7f9;
  --gray-100: #eef0f3;
  --gray-200: #E1E1E1;
  --gray-500: #6b7080;
  --ink: #1d2030;
  --charcoal: #1b1d1c;
  --white: #fff;

  --font-head: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(39, 44, 116, .08);
  --shadow: 0 12px 32px rgba(39, 44, 116, .12);
  --shadow-lg: 0 24px 60px rgba(21, 24, 74, .22);
  --nav-h: 76px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--crimson); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--navy-2); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--crimson-bright); outline-offset: 2px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-sm { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(900px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-alt { background: var(--gray-50); }
.visually-hidden, .hp-field {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--crimson); color: var(--white); padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { left: 8px; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--crimson); margin-bottom: .75rem;
}
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 900; }
.lead { font-size: 1.15rem; color: #3a3f55; }
.rule { width: 72px; height: 4px; background: var(--crimson); border: 0; margin: 0 0 1.5rem; border-radius: 2px; }
.center { text-align: center; }
.center .rule { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .9em 1.6em; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--crimson); color: var(--white); box-shadow: 0 8px 20px rgba(164, 7, 11, .3); }
.btn-primary:hover { background: var(--crimson-dark); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.8); color: var(--white); background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: var(--navy); box-shadow: 0 2px 18px rgba(0,0,0,.18);
  transition: background-color .35s ease, box-shadow .35s ease;
}
.site-nav.is-transparent { position: fixed; inset: 0 0 auto 0; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); box-shadow: none; }
.site-nav.is-transparent.scrolled { background: var(--navy); box-shadow: 0 2px 18px rgba(0,0,0,.18); }
.nav-inner { height: 100%; width: min(1320px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand { background: var(--white); padding: 6px 12px; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.brand img { height: 38px; width: auto; }
.nav-links ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-links a {
  position: relative; display: block; padding: 10px 14px; color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-weight: 500; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 2px;
  background: var(--crimson-bright); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; background: var(--navy); max-height: 0; overflow: hidden;
    transition: max-height .35s ease; box-shadow: 0 16px 30px rgba(0,0,0,.25);
  }
  .nav-links ul { flex-direction: column; padding: 8px 16px 20px; }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-links a::after { left: 8px; right: auto; width: 40px; bottom: 6px; }
  .nav-open .nav-links { max-height: 480px; }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .nav-open .site-nav.is-transparent { background: var(--navy); }
  .brand img { height: 30px; }
  .brand { padding: 5px 10px; }
}

/* ---------- Home: video hero ---------- */
.video-hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: var(--navy-deep); color: var(--white); }
.hero-videos { position: absolute; inset: 0; }
.hero-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.hero-clip.is-active { opacity: 1; }
.video-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,24,74,.55) 0%, rgba(21,24,74,.25) 45%, rgba(21,24,74,.85) 100%);
}
.video-hero-content { position: relative; z-index: 1; text-align: center; padding: calc(var(--nav-h) + 24px) 16px 96px; max-width: 980px; }
.video-hero h1 {
  color: var(--white); font-weight: 900; font-size: clamp(2.1rem, 5.6vw, 4.4rem); letter-spacing: -.01em;
  text-shadow: 0 4px 18px rgba(0,0,0,.45); margin-bottom: .35em;
}
.video-hero h1 span {
  color: var(--navy); background: var(--white); text-shadow: none; padding: 0 .18em; border-radius: 6px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.video-hero .btn-navy { border-color: rgba(255,255,255,.85); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.video-hero p { font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 500; max-width: 760px; margin: 0 auto 2rem; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.video-toggle {
  position: absolute; z-index: 2; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.35); color: #fff; cursor: pointer; font: 700 12px var(--font-head);
}
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); color: var(--white); animation: bob 2s ease-in-out infinite; }
.scroll-cue .icon { width: 36px; height: 36px; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Home: intro + mission ---------- */
.intro { text-align: center; }
.intro .we-are { font-family: var(--font-head); font-weight: 500; font-size: 1.4rem; color: var(--gray-500); margin-bottom: .75rem; }
.intro .logo-lg { width: min(600px, 100%); height: auto; margin: 0 auto 2rem; }
.mission {
  position: relative; margin: 3rem auto 0; max-width: 960px; padding: clamp(28px, 4vw, 48px);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 5px solid var(--crimson); text-align: left;
}
.mission h2 { color: var(--navy); font-size: 1.8rem; font-weight: 700; }
.mission p { font-size: 1.12rem; margin: 0; }

.quick-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 3.5rem; }
.quick-link {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 14px; text-decoration: none;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.quick-link .ico { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); transition: background-color .25s ease; }
.quick-link .ico .icon { width: 30px; height: 30px; }
.quick-link span { font-family: var(--font-head); font-weight: 700; color: var(--navy-2); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.quick-link:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--crimson); }
.quick-link:hover .ico { background: var(--crimson); }
@media (max-width: 900px) { .quick-links { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .quick-links { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; min-height: clamp(220px, 30vw, 340px); display: grid; place-items: center; text-align: center;
  background-size: cover; background-position: center; color: var(--white); border-bottom: 5px solid var(--crimson);
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,24,74,.35), rgba(21,24,74,.7)); }
.page-hero-inner { position: relative; padding: 24px 16px; }
.page-hero h1 {
  color: var(--white); text-transform: uppercase; font-weight: 900; letter-spacing: .04em;
  font-size: clamp(2.2rem, 6vw, 4rem); text-shadow: 4px 4px 2px #000; margin: 0;
}
.page-hero p { margin: .5rem 0 0; font-size: 1.1rem; font-weight: 500; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.hero-about    { background-image: url(../img/AboutUs.jpg); }
.hero-services { background-image: url(../img/services.jpg); }
.hero-careers  { background-image: url(../img/Careers.jpg); }
.hero-office   { background-image: url(../img/Office.jpg); }
.hero-contact  { background-image: url(../img/ContactUs.jpg); }
.hero-newsroom { background-image: url(../img/Newsroom.jpg); }

/* ---------- About: counters ---------- */
.counters { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.counter-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 48px 0; text-align: center; }
.counter-num { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.6rem, 6vw, 4rem); color: var(--white); line-height: 1; font-variant-numeric: tabular-nums; }
.counter-label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin-top: .75rem; color: #dfe3ff; }
@media (max-width: 640px) { .counter-grid { grid-template-columns: 1fr; gap: 32px; } }

.history { display: grid; grid-template-columns: 1fr; gap: 0; }
.history .first-line { font-family: var(--font-head); color: var(--navy-2); font-weight: 500; font-size: 1.6rem; }
.history p { font-size: 1.08rem; }
.profiles-note { color: var(--crimson); font-weight: 700; font-family: var(--font-head); letter-spacing: .02em; }

/* ---------- About: staff cards ---------- */
.staff-list { display: flex; flex-direction: column; gap: 22px; margin-top: 2rem; }
.staff-card {
  display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 3vw, 36px); align-items: start;
  padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
}
.staff-card.align-left { background: var(--gray-200); border-color: transparent; }
.staff-card.align-right { grid-template-columns: 1fr 220px; }
.staff-card.align-right .staff-photo { order: 2; }
.staff-photo { border: 5px double var(--crimson); border-radius: 6px; overflow: hidden; background: var(--white); aspect-ratio: 4 / 5; }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.staff-photo.placeholder { display: grid; place-items: center; color: var(--navy); font: 900 3rem var(--font-head); background: var(--gray-100); }
.staff-card h2 { font-size: 1.45rem; font-weight: 700; color: var(--navy-2); margin-bottom: .2rem; }
.staff-card .role { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; color: var(--crimson); margin-bottom: .6rem; }
.staff-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: .9rem; }
.staff-contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--crimson); font-weight: 600; text-decoration: none; }
.staff-contact a:hover { color: var(--navy); }
.staff-contact .icon { width: 20px; height: 20px; }
.staff-bio p { margin-bottom: .6em; }
.staff-bio p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .staff-card, .staff-card.align-right { grid-template-columns: 1fr; }
  .staff-card.align-right .staff-photo { order: 0; }
  .staff-photo { max-width: 220px; }
  .staff-card.align-right .staff-photo { margin-left: auto; }
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.service-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px;
  border: 4px solid var(--crimson); border-radius: var(--radius); overflow: hidden; color: var(--white); background: var(--navy-deep);
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
}
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.1) 20%, rgba(21,24,74,.88) 100%); transition: opacity .3s ease; }
.service-card-body { position: relative; z-index: 2; padding: 24px; }
.service-card h2 { color: var(--white); font-size: 1.6rem; font-weight: 700; text-shadow: 3px 3px 2px #000; margin: 0; }
.service-card p { margin: .6rem 0 0; font-size: .98rem; color: #eef0ff; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover img { transform: scale(1.06); }
@media (max-width: 400px) { .services-grid { grid-template-columns: 1fr; } }

.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, var(--crimson) 140%); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: #dfe3ff; max-width: 680px; margin: 0 auto 1.5rem; }

/* ---------- Careers ---------- */
.job-list { display: flex; flex-direction: column; gap: 32px; }
.job { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.job-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 24px clamp(20px, 3vw, 36px); background: var(--navy); color: var(--white); }
.job:nth-child(even) .job-head { background: #4d4f5c; }
.job-head h2 { color: var(--white); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font: 600 .82rem var(--font-head); letter-spacing: .04em; background: rgba(255,255,255,.14); color: var(--white); }
.job-body { display: grid; grid-template-columns: 1fr 280px; gap: clamp(24px, 3vw, 40px); padding: clamp(20px, 3vw, 36px); }
.job-summary { font-size: 1.08rem; }
.job-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 32px; }
.job-cols h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--crimson); margin: 1rem 0 .5rem; }
.job-cols ul { margin: 0; padding: 0; list-style: none; }
.job-cols li { position: relative; padding-left: 22px; margin-bottom: .35rem; line-height: 1.5; }
.job-cols li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--navy); transform: rotate(45deg); }
.job-side { display: flex; flex-direction: column; gap: 16px; }
.job-flyer { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); transition: transform .25s ease; background: var(--white); align-self: flex-start; }
.job-flyer img { width: 100%; height: auto; }
.job-flyer:hover { transform: scale(1.02); }
.apply-box { background: var(--gray-50); border-left: 4px solid var(--crimson); border-radius: 6px; padding: 18px; font-size: .98rem; }
.apply-box strong { display: block; font-family: var(--font-head); color: var(--navy-2); margin-bottom: .3rem; }
.apply-box p { margin: 0 0 .75rem; }
.apply-actions { display: flex; flex-direction: column; gap: 10px; }
.apply-box .btn { width: 100%; }
.empty-state { text-align: center; padding: 56px 24px; background: var(--gray-50); border-radius: var(--radius); border: 2px dashed var(--gray-200); }
@media (max-width: 860px) { .job-body { grid-template-columns: 1fr; } .job-side { flex-direction: row; flex-wrap: wrap; } .job-flyer { width: 160px; } .apply-box { flex: 1 1 240px; } }

/* ---------- Office ---------- */
.office-grid { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: stretch; }
.info-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.info-card h2 { color: var(--white); font-size: 1.5rem; }
.info-card a { color: var(--white); }
.info-card a:hover { color: #ffb3b5; }
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 1.25rem; }
.info-row .icon { width: 24px; height: 24px; color: #ff6b6f; margin-top: 4px; }
.info-row small { display: block; text-transform: uppercase; letter-spacing: .12em; font: 700 .75rem var(--font-head); color: #b9c0ff; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; border: 4px solid var(--white); outline: 1px solid var(--gray-200); }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
@media (max-width: 860px) { .office-grid { grid-template-columns: 1fr; } }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: start; }
.form-card { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); border-top: 5px solid var(--crimson); }
.form-card h2 { font-size: 1.7rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 700 .85rem var(--font-head); letter-spacing: .04em; color: var(--navy-2); text-transform: uppercase; }
.field label .req { color: var(--crimson); }
.field label .opt { color: var(--gray-500); font-weight: 500; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #cfd3de; border-radius: 8px; background: var(--white); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(39,44,116,.12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--crimson); }
.field-error { color: var(--crimson); font-size: .88rem; font-weight: 600; }
.form-note { font-size: .88rem; color: var(--gray-500); margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.form-note .icon { color: var(--navy); margin-top: 3px; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 6px; }
.alert { border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; font-weight: 600; }
.alert-error { background: #fdecec; color: var(--crimson-dark); border: 1px solid #f5c2c3; }
.alert-ok { background: #eaf7ee; color: #17602d; border: 1px solid #bfe5ca; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.thanks { text-align: center; max-width: 640px; margin: 0 auto; }
.thanks .check { width: 84px; height: 84px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; margin: 0 auto 1.5rem; }
.thanks .check .icon { width: 42px; height: 42px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #c9cbd3; font-size: .95rem; border-top: 5px solid var(--crimson); }
.footer-grid { width: min(var(--wrap), 100% - 32px); margin: 0 auto; padding: 56px 0 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 280px; height: auto; margin-bottom: 1rem; background: var(--white); padding: 10px 14px; border-radius: 6px; box-sizing: content-box; }
.site-footer h2 { color: var(--white); font-size: .9rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.site-footer a { color: #e7e9f0; text-decoration: none; }
.site-footer a:hover { color: #ff6b6f; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-links li { margin-bottom: .4rem; }
.site-footer address { font-style: normal; line-height: 1.9; }
.social { list-style: none; display: flex; gap: 12px; margin: 1rem 0 0; padding: 0; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background-color .2s ease; }
.social a:hover { background: var(--crimson); color: var(--white); }
.social .icon { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); background: #141615; padding: 16px; text-align: center; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: center; }
.footer-bottom p { margin: 0; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--crimson); color: var(--white); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: var(--white); background: var(--navy); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.section-intro { margin-bottom: clamp(28px, 4vw, 48px); }
@media (max-width: 600px) { .job-flyer { width: 100%; } }

/* ---------- Newsroom ---------- */
.news-list { display: flex; flex-direction: column; }
.news-post {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(32px, 4vw, 52px) 0; border-bottom: 1px solid var(--crimson-dark);
}
.news-post:first-child { padding-top: 0; }
.news-post:last-child { border-bottom: 0; }
.news-post.img-right { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.news-post.img-right .news-img { order: 2; }
.news-img { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); background: var(--gray-100); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-img:hover img { transform: scale(1.04); }
.news-img-badge {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: rgba(21,24,74,.85); color: var(--white);
  font: 700 .78rem var(--font-head); letter-spacing: .04em; text-transform: uppercase;
}
.news-img-badge .icon { width: 14px; height: 14px; }
.post-meta { font: 600 .85rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--crimson); margin-bottom: .6rem; }
.news-text h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; margin-bottom: .6rem; }
.news-text h3 a { color: var(--navy); text-decoration: none; }
.news-text h3 a:hover { color: var(--crimson); }
.news-actions { margin: .25rem 0 1rem; }
.news-link { display: inline-flex; align-items: center; gap: 6px; font: 700 .95rem var(--font-head); color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--crimson); padding-bottom: 2px; }
.news-link:hover { color: var(--crimson); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-label { font: 700 .75rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500); margin-right: 4px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 10px; justify-content: center;
  border-radius: 999px; border: 1px solid var(--gray-200); background: var(--white); color: var(--navy);
  font: 600 .82rem var(--font-head); cursor: pointer; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s;
}
.share-btn .icon { width: 16px; height: 16px; }
.share-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.share-btn.copied { background: var(--navy); color: var(--white); border-color: var(--navy); }
@media (max-width: 760px) {
  .news-post, .news-post.img-right { grid-template-columns: 1fr; gap: 18px; }
  .news-post.img-right .news-img { order: 0; }
}

.back-link { display: inline-block; margin-bottom: 1.5rem; font: 700 .9rem var(--font-head); text-decoration: none; }
.post-full-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 900; color: var(--navy); }
.post-full-img { display: block; border-radius: var(--radius); overflow: hidden; margin: 1.5rem auto; box-shadow: var(--shadow); width: 100%; }
/* Image size chosen per post in the admin (post's own page only) */
.post-full-img.size-75 { width: 75%; }
.post-full-img.size-50 { width: 50%; }
.post-full-img.size-25 { width: 25%; min-width: 200px; }
@media (max-width: 600px) { .post-full-img.size-75, .post-full-img.size-50 { width: 100%; } .post-full-img.size-25 { width: 60%; } }
.post-full-img img { width: 100%; height: auto; }
.post-body { font-size: 1.1rem; margin-bottom: 1.5rem; }
.post-full .share { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--crimson-dark); }

@media (min-width: 1041px) and (max-width: 1240px) { .nav-links a { padding: 10px 9px; font-size: .84rem; } }
.news-toolbar { display: flex; justify-content: flex-end; margin: -12px 0 28px; }
.btn-sm-site { padding: .6em 1.2em; font-size: .85rem; }
