:root {
  --navy: #15345b;
  --navy-dark: #102946;
  --red: #f62026;
  --text: #173c67;
  --body: #444;
  --white: #fff;
  --page: #ffffff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: var(--page);
  color: var(--body);
}

html.application-hidden body .site-header,
html.application-hidden body .about-hero-content,
html.application-hidden body .apply-main,
html.application-hidden body .site-footer,
body.application-hidden .site-header,
body.application-hidden .about-hero-content,
body.application-hidden .apply-main,
body.application-hidden .site-footer {
  visibility: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 86vh;
  background: url("extracted/images/Untitled_design-5.png") center center / cover no-repeat;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 35, 64, 0.48);
}

.site-header,
.hero-content {
  position: relative;
  z-index: 1;
}

.site-header {
  display: grid;
  grid-template-columns: 420px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
}

.site-logo {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--white);
}

.site-logo-badge {
  width: 74px;
  height: auto;
  display: block;
}

.site-logo-copy {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-logo-mayor {
  width: 94px;
  height: auto;
  display: block;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1;
  text-transform: uppercase;
}

.site-logo-text span,
.site-logo-text strong {
  display: block;
}

.site-logo-text span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-logo-text strong {
  font-size: 1.15rem;
  font-weight: 700;
}

.site-nav {
  justify-self: center;
  position: relative;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 0.65rem 0.9rem;
  font: inherit;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.92rem;
}

.nav-menu a,
.header-apply,
.hero-cta,
.red-button,
.blue-button,
.outline-button {
  transition: opacity 0.2s ease;
}

.nav-menu a:hover,
.header-apply:hover,
.hero-cta:hover,
.red-button:hover,
.blue-button:hover,
.outline-button:hover {
  opacity: 0.85;
}

.header-apply {
  border: 1px solid rgba(255, 255, 255, 0.88);
  color: var(--white);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 3.5rem 1.5rem 7rem;
}

.hero-cta {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  padding: 0.7rem 1.35rem;
  margin: 3rem 0 1rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 6vw, 5.3rem);
  font-weight: 800;
  line-height: 1;
}

.hero-copy {
  margin: 1.3rem 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1.5;
}

.hero-bonus {
  margin-top: 2rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700;
}

.position-section,
.why-section,
.career-section,
.apply-section {
  padding: 2rem 1.25rem;
}

.title-wrap,
.why-inner,
.career-grid,
.apply-panel {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.title-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  min-height: 180px;
}

.corner {
  position: absolute;
  width: 100px;
  height: 100px;
  border-color: #234a7c;
}

.corner-top {
  left: 0;
  top: 0;
  border-left: 14px solid #234a7c;
  border-top: 14px solid #234a7c;
}

.corner-bottom {
  right: 0;
  bottom: 0;
  border-right: 14px solid #234a7c;
  border-bottom: 14px solid #234a7c;
}

.title-wrap h2,
.why-inner h2,
.apply-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.6rem, 4.4vw, 4.1rem);
  font-weight: 700;
}

.why-inner {
  position: relative;
  max-width: 980px;
  text-align: center;
  padding: 3.5rem 1rem 4rem;
}

.why-inner h2 {
  color: var(--red);
  margin-bottom: 2.5rem;
}

.why-inner h3 {
  color: var(--text);
  font-size: 1.5rem;
  margin-top: 2rem;
}

.why-inner p {
  font-size: 1.15rem;
  line-height: 1.9;
}

.career-grid {
  display: grid;
  grid-template-columns: minmax(320px, 520px);
  justify-content: center;
  gap: 2rem;
}

.career-card {
  background: #fff;
  box-shadow: 0 20px 50px rgba(17, 32, 57, 0.08);
}

.career-image {
  padding: 1.2rem;
}

.career-image.navy {
  background: var(--navy);
}

.career-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.career-body {
  padding: 1.5rem;
}

.career-body h3 {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 2rem;
}

.career-body p {
  line-height: 1.8;
  min-height: 130px;
}

.red-button,
.blue-button,
.outline-button {
  display: inline-block;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
}

.red-button {
  background: var(--red);
  color: var(--white);
}

.blue-button {
  background: var(--navy);
  color: var(--white);
}

.apply-section {
  padding-bottom: 4rem;
}

.apply-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
}

.apply-logo {
  width: 200px;
  max-width: 100%;
  display: block;
}

.apply-copy h2 {
  color: var(--white);
  font-size: 2.4rem;
}

.apply-copy p {
  line-height: 1.8;
}

.apply-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.outline-button {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--white);
}

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 1.25rem;
  text-align: center;
}

.site-footer div {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.site-footer img {
  height: 56px;
  width: auto;
  display: block;
  background: var(--white);
  padding: 0.35rem;
}

.about-page {
  background: #f6f8fb;
}

.about-hero {
  position: relative;
  min-height: 52vh;
  background:
    linear-gradient(rgba(16, 41, 70, 0.7), rgba(16, 41, 70, 0.72)),
    url("about-assets/diversity.jpg") center center / cover no-repeat;
  color: var(--white);
}

.about-hero-content {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 5.5rem;
}

.about-kicker {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: 700;
}

.about-hero-content h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.about-hero-content p:last-child {
  max-width: 760px;
  font-size: 1.15rem;
  line-height: 1.8;
}

.about-main {
  padding: 4rem 0 5rem;
}

.about-shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.about-intro {
  padding-bottom: 2rem;
}

.about-intro .about-shell {
  max-width: 900px;
  text-align: center;
}

.about-intro p {
  font-size: 1.08rem;
  line-height: 1.95;
}

.statement-section {
  padding: 1rem 0 3rem;
}

.statement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.statement-card {
  background: var(--white);
  border-left: 6px solid var(--red);
  box-shadow: 0 16px 40px rgba(17, 32, 57, 0.08);
  padding: 1.8rem;
}

.statement-card h2,
.feature-copy h2 {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.statement-card p,
.feature-copy p {
  line-height: 1.9;
}

.feature-row {
  padding: 1.25rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.feature-grid.reverse {
  grid-template-columns: 1fr 1fr;
}

.feature-row.alt .feature-copy {
  order: 2;
}

.feature-row.alt .feature-image {
  order: 1;
}

.feature-copy {
  background: var(--white);
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(17, 32, 57, 0.08);
}

.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  box-shadow: 0 16px 40px rgba(17, 32, 57, 0.12);
}

.faq-page {
  background: #f6f8fb;
}

.apply-page {
  background: #f6f8fb;
}

.faq-hero {
  background:
    linear-gradient(rgba(16, 41, 70, 0.78), rgba(16, 41, 70, 0.8)),
    url("extracted/images/officer-new.jpg") center top / cover no-repeat;
}

.apply-hero {
  background:
    linear-gradient(rgba(16, 41, 70, 0.8), rgba(16, 41, 70, 0.82)),
    url("extracted/images/Untitled_design-5.png") center center / cover no-repeat;
}

.faq-main {
  padding: 4rem 0 5rem;
}

.apply-main {
  padding: 4rem 0 5rem;
}

.faq-section {
  padding: 0 0 2rem;
}

.faq-heading {
  margin-bottom: 1.5rem;
}

.faq-heading h2 {
  margin: 0 0 0.4rem;
  color: var(--text);
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  box-shadow: 0 12px 32px rgba(17, 32, 57, 0.08);
  border-left: 5px solid var(--navy);
  padding: 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.3rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  border-bottom: 1px solid #e6edf6;
}

.faq-item p,
.faq-item ul {
  margin: 0;
  padding: 1.1rem 1.3rem 1.3rem;
  line-height: 1.85;
}

.faq-item ul {
  padding-left: 2.4rem;
}

.faq-item li + li {
  margin-top: 0.45rem;
}

.apply-process-section {
  padding: 0 0 2rem;
}

.alt-surface {
  padding-top: 1rem;
}

.process-roadmap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.process-step,
.apply-card,
.timeline-item {
  background: var(--white);
  box-shadow: 0 12px 32px rgba(17, 32, 57, 0.08);
}

.process-step {
  padding: 1.35rem;
  border-top: 5px solid var(--navy);
}

.process-step span {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1rem;
}

.process-step h3,
.apply-card h2 {
  margin-top: 0;
  color: var(--text);
}

.process-step p,
.timeline-item p {
  line-height: 1.8;
}

.apply-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.apply-card {
  padding: 1.6rem;
}

.apply-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.9;
}

.apply-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.timeline-item {
  padding: 1.5rem;
  border-left: 5px solid var(--red);
}

.timeline-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
}

.apply-final-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(17, 32, 57, 0.08);
  padding: 2rem;
}

.dark-outline {
  border-color: rgba(21, 52, 91, 0.35);
  color: var(--navy);
}

.application-shell {
  background: var(--white);
  box-shadow: 0 16px 40px rgba(17, 32, 57, 0.08);
  padding: 2rem;
}

.application-progress {
  margin-bottom: 1.5rem;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e5ebf3;
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--red);
  transition: width 0.25s ease;
}

.application-progress p {
  margin: 0.85rem 0 0;
  color: var(--text);
  font-weight: 700;
}

.application-status {
  margin-bottom: 1.25rem;
  padding: 0.95rem 1rem;
  border-left: 4px solid var(--navy);
  background: #eef4fb;
  color: var(--text);
}

.application-status.is-error {
  border-left-color: var(--red);
  background: #fff1f1;
  color: #7c1f23;
}

.application-lock-notice {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #d9e3ef;
  background: #f7fafd;
  color: var(--text);
}

.application-lock-notice strong {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.application-form {
  display: grid;
  gap: 1.5rem;
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
}

.form-step h3,
.application-success h3 {
  margin-top: 0;
  color: var(--text);
  font-size: 1.8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.form-grid-single {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.form-grid label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 600;
}

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

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #c8d3e1;
  font: inherit;
  color: #24364d;
  background: #fbfcfe;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
}

.checkbox-row span {
  font-weight: 500;
  line-height: 1.7;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-actions-top {
  justify-content: flex-start;
}

.form-actions button {
  cursor: pointer;
  border-width: 1px;
  border-style: solid;
  font: inherit;
}

#submitApplication {
  display: none;
}

.application-success {
  padding: 1.5rem 0 0;
}

.application-success p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.application-reference {
  color: var(--text);
  font-weight: 700;
}

.application-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: #000;
}

.application-lock-card {
  width: min(560px, 100%);
  padding: 2rem;
  background: var(--white);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
}

.application-lock-kicker {
  margin: 0 0 0.75rem;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.application-lock-card h2 {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.application-lock-card p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 340px 1fr auto;
  }

  .nav-menu {
    gap: 1rem;
    font-size: 0.86rem;
  }

  .career-grid,
  .apply-panel,
  .statement-grid,
  .feature-grid,
  .feature-grid.reverse,
  .process-roadmap,
  .apply-two-column,
  .apply-timeline,
  .apply-final-panel,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-self: end;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    min-width: 220px;
    padding: 1rem;
    background: rgba(16, 41, 70, 0.97);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .header-apply {
    justify-self: end;
  }

  .hero-content {
    padding-top: 1rem;
  }

  .about-hero-content {
    padding: 3rem 0 4rem;
  }

  .title-wrap {
    min-height: 120px;
    padding: 2rem 0;
  }

  .corner {
    width: 70px;
    height: 70px;
  }

  .feature-row.alt .feature-copy,
  .feature-row.alt .feature-image {
    order: initial;
  }

  .site-logo-copy {
    align-items: flex-start;
  }

  .site-logo-mayor {
    width: 72px;
  }

  .site-logo-text span {
    font-size: 0.7rem;
  }

  .site-logo-text strong {
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 74vh;
  }

  .site-header {
    padding: 1rem;
  }

  .site-logo {
    gap: 0.55rem;
  }

  .site-logo-badge {
    width: 52px;
  }

  .site-logo-mayor {
    display: none;
  }

  .site-logo-text span {
    font-size: 0.6rem;
  }

  .site-logo-text strong {
    font-size: 0.82rem;
  }

  .hero-cta {
    margin-top: 1.5rem;
  }

  .career-grid {
    grid-template-columns: 1fr;
  }

  .career-image img {
    height: 300px;
  }

  .feature-image img {
    min-height: 260px;
  }

  .title-wrap h2,
  .why-inner h2,
  .apply-copy h2 {
    font-size: 2.2rem;
  }
}
