:root {
  --ink: #12212b;
  --muted: #5e6b73;
  --line: #dbe3e8;
  --brand: #0f6c81;
  --brand-dark: #0d4d5e;
  --accent: #f6b44b;
  --accent-dark: #d98f16;
  --surface: #f7fafb;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

[x-cloak] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

.navbar {
  min-height: 72px;
}

.brand-mark {
  align-items: center;
  background: var(--brand);
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  letter-spacing: 0;
  width: 42px;
}

.brand-name {
  color: var(--ink);
  font-weight: 800;
}

.nav-link {
  color: var(--ink);
  font-weight: 650;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--brand);
}

.user-menu {
  position: relative;
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.btn-login {
  min-width: 88px;
  padding: .55rem 1rem;
}

.icon-button,
.carousel-controls button {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
  width: 42px;
}

.icon-button svg,
.carousel-controls svg {
  height: 22px;
  width: 22px;
}

.icon-button:hover,
.carousel-controls button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.user-dropdown {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 190px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
}

.user-dropdown a {
  border-radius: 6px;
  color: var(--ink);
  display: block;
  font-weight: 600;
  padding: 10px 12px;
  text-decoration: none;
}

.user-dropdown a:hover {
  background: var(--surface);
  color: var(--brand);
}

.hero-carousel {
  background: #0d1f2d;
  min-height: 620px;
  overflow: hidden;
  position: relative;
}

.hero-slide {
  inset: 0;
  min-height: 620px;
  position: absolute;
  width: 100%;
}

.hero-bg {
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  inset: 0;
  position: absolute;
}

.hero-content {
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
  padding-bottom: 150px;
  padding-top: 96px;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2.15rem, 4vw, 3.8rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
  max-width: 680px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero-content p:not(.section-kicker) {
  color: rgba(255, 255, 255, .88);
  font-size: 1.18rem;
  max-width: 590px;
}

.hero-content .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.section-kicker {
  color: var(--brand);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-content .section-kicker {
  color: var(--accent);
}

.btn {
  border-radius: 8px;
  font-weight: 750;
  padding: .78rem 1.1rem;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-outline-primary {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-outline-primary:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #211506;
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #211506;
}

.carousel-controls {
  align-items: center;
  bottom: 44px;
  display: flex;
  gap: 14px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 4;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  background: rgba(255, 255, 255, .45);
  border: 0;
  border-radius: 999px;
  height: 10px;
  padding: 0;
  width: 10px;
}

.carousel-dots button.active {
  background: var(--accent);
  width: 30px;
}

.content-band,
.gallery-section,
.video-section,
.faq-section,
.contact-section {
  padding: 84px 0;
}

.content-band.soft,
.video-section,
.contact-section {
  background: var(--surface);
}

.split-section {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: 78px;
}

.split-section:last-child {
  margin-bottom: 0;
}

.split-section.reverse .split-copy {
  order: 2;
}

.split-section.reverse .split-media {
  order: 1;
}

.split-copy h2,
.section-heading h2,
.contact-layout h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.1;
}

.split-copy p,
.contact-layout p {
  color: var(--muted);
  font-size: 1.08rem;
}

.split-media {
  margin: 0;
}

.split-media img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.section-heading {
  margin-bottom: 34px;
  max-width: 780px;
}

.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-item,
.image-trigger {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: block;
  overflow: hidden;
  padding: 0;
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease;
  width: 100%;
}

.gallery-item:hover,
.gallery-item:focus-visible,
.image-trigger:hover,
.image-trigger:focus-visible {
  box-shadow: 0 18px 42px rgba(18, 33, 43, .28);
  outline: 0;
  transform: translateY(-2px);
}

.gallery-grid img,
.gallery-item img {
  aspect-ratio: 1 / .78;
  border-radius: 8px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.split-media .image-trigger {
  height: 100%;
}

.split-media .image-trigger img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gallery-caption {
  background: linear-gradient(0deg, rgba(0, 0, 0, .74), rgba(0, 0, 0, 0));
  border-radius: 0 0 8px 8px;
  bottom: 0;
  color: var(--white);
  display: block;
  font-size: .82rem;
  font-weight: 700;
  left: 0;
  line-height: 1.25;
  padding: 34px 12px 10px;
  position: absolute;
  right: 0;
  text-align: left;
}

.image-viewer {
  align-items: center;
  background: rgba(9, 11, 9, .88);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 72px 84px;
  position: fixed;
  z-index: 1050;
}

.image-viewer-frame {
  margin: 0;
  max-height: 86vh;
  max-width: min(1100px, 86vw);
  position: relative;
}

.image-viewer-frame img {
  border-radius: 8px;
  max-height: 86vh;
  object-fit: contain;
  width: 100%;
}

.image-viewer-caption {
  background: linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
  border-radius: 0 0 8px 8px;
  bottom: 0;
  color: var(--white);
  left: 0;
  padding: 56px 24px 18px;
  position: absolute;
  right: 0;
}

.image-viewer-caption p {
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.45;
  margin: 0;
}

.image-viewer-close,
.image-viewer-nav {
  align-items: center;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  position: absolute;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  width: 48px;
}

.image-viewer-close:hover,
.image-viewer-nav:hover {
  background: var(--accent);
  color: #17120a;
}

.image-viewer-close {
  right: 22px;
  top: 22px;
}

.image-viewer-nav.previous {
  left: 22px;
}

.image-viewer-nav.next {
  right: 22px;
}

.image-viewer-close svg,
.image-viewer-nav svg {
  height: 24px;
  width: 24px;
}

.image-viewer-count {
  background: rgba(255, 255, 255, .94);
  border-radius: 8px;
  bottom: 22px;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 800;
  padding: 8px 12px;
  position: absolute;
}

.video-frame {
  border-radius: 8px;
  overflow: hidden;
}

.check-list {
  color: var(--ink);
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.check-list li {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

.check-list li::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  flex: 0 0 10px;
  height: 10px;
  margin-top: 8px;
  width: 10px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: flex;
  font-size: 1.08rem;
  font-weight: 760;
  justify-content: space-between;
  padding: 22px 0;
  text-align: left;
  width: 100%;
}

.faq-item svg {
  color: var(--brand);
  flex: 0 0 auto;
  height: 22px;
  transition: transform .2s ease;
  width: 22px;
}

.faq-item svg.rotate {
  transform: rotate(180deg);
}

.faq-item p {
  color: var(--muted);
  margin: 0;
  max-width: 820px;
  padding: 0 48px 22px 0;
}

.contact-layout {
  display: grid;
  gap: 48px;
  grid-template-columns: .82fr 1.18fr;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.form-control {
  border-color: var(--line);
  border-radius: 8px;
  min-height: 48px;
}

.form-select {
  border-color: var(--line);
  border-radius: 8px;
  min-height: 48px;
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .25rem rgba(15, 108, 129, .16);
}

.form-select:focus,
.form-check-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .25rem rgba(15, 108, 129, .16);
}

.form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.form-success {
  color: var(--brand-dark);
  font-weight: 700;
  margin: 14px 0 0;
}

.auth-body {
  background:
    linear-gradient(90deg, rgba(13, 31, 45, .88), rgba(15, 108, 129, .74)),
    url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=1600&q=80") center / cover;
  min-height: 100vh;
}

.auth-screen {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 36px 16px;
}

.auth-card {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
  max-width: 460px;
  padding: 32px;
  width: 100%;
}

.auth-card-wide {
  max-width: 720px;
}

.auth-brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 10px;
  margin-bottom: 28px;
  text-decoration: none;
}

.auth-heading {
  margin-bottom: 24px;
}

.auth-heading h1 {
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 830;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 10px;
}

.auth-heading p:not(.section-kicker),
.auth-switch,
.auth-options,
.auth-terms {
  color: var(--muted);
}

.auth-options {
  align-items: center;
  display: flex;
  font-size: .95rem;
  justify-content: space-between;
  margin: 14px 0 22px;
}

.auth-options a,
.auth-switch a {
  color: var(--brand);
  font-weight: 750;
  text-decoration: none;
}

.auth-options a:hover,
.auth-switch a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.auth-switch {
  margin: 22px 0 0;
  text-align: center;
}

.auth-terms {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.auth-terms .form-check-input {
  flex: 0 0 auto;
  margin-top: 5px;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
  padding: 26px 0;
}

.site-footer span:first-child {
  color: var(--white);
  font-weight: 800;
}

body.military-page {
  --ink: #161b16;
  --muted: #65705f;
  --line: #d8d2c4;
  --brand: #5f161f;
  --brand-dark: #3f1016;
  --accent: #d4af37;
  --accent-dark: #ad8b22;
  --surface: #efede4;
  background: #fbfaf5;
}

.military-page .scroll-sentinel {
  height: 1px;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 1px;
}

.military-page .navbar.bg-white {
  background: #f8f6ec !important;
}

.military-page .navbar {
  border-color: #cfc6b2 !important;
  min-height: 98px;
  transition: min-height .24s ease, padding .24s ease;
}

.military-page .brand-mark {
  background: #ffffff;
  border: 1px solid rgba(95, 22, 31, .2);
  box-shadow: 0 4px 14px rgba(22, 27, 22, .12);
  height: 74px;
  overflow: hidden;
  transition: height .24s ease, width .24s ease, box-shadow .24s ease;
  width: 74px;
}

.military-page .brand-seal {
  height: 68px;
  object-fit: contain;
  transition: height .24s ease, width .24s ease;
  width: 68px;
}

.military-page .site-header.is-scrolled .navbar {
  min-height: 72px;
}

.military-page .site-header.is-scrolled .brand-mark {
  height: 48px;
  width: 48px;
}

.military-page .site-header.is-scrolled .brand-seal {
  height: 42px;
  width: 42px;
}

.military-page .brand-name {
  color: #251b16;
  text-transform: uppercase;
}

.military-page .nav-actions {
  align-items: center;
}

.military-page .icon-button {
  height: 51px;
  width: 51px;
}

.military-page .icon-button svg {
  height: 24px;
  width: 24px;
}

.military-page .nav-link:hover,
.military-page .nav-link:focus {
  color: var(--brand);
}

.military-page .hero-carousel,
.military-page .hero-slide {
  background: #141a14;
  min-height: 660px;
}

.military-page .hero-bg {
  background-position: center;
}

.military-page .hero-content {
  min-height: 660px;
}

.military-page .hero-content h1 {
  max-width: 740px;
  text-transform: uppercase;
}

.military-page .hero-content p:not(.section-kicker) {
  max-width: 620px;
}

.military-page .section-kicker {
  color: var(--brand);
}

.military-page .hero-content .section-kicker {
  color: var(--accent);
}

.military-page .btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.military-page .btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.military-page .btn-outline-primary {
  border-color: var(--brand);
  color: var(--brand);
}

.military-page .btn-outline-primary:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.military-page .btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #17120a;
}

.military-page .btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #17120a;
}

.military-page .split-media img,
.military-page .gallery-grid img,
.military-page .video-frame,
.military-page .contact-form {
  box-shadow: 0 18px 48px rgba(22, 27, 22, .12);
}

.military-page .content-band.soft,
.military-page .video-section,
.military-page .contact-section {
  background:
    linear-gradient(135deg, rgba(95, 22, 31, .07), rgba(212, 175, 55, .08)),
    var(--surface);
}

.military-page .gallery-section {
  background: #fbfaf5;
}

.military-page .gallery-grid img {
  filter: saturate(.82) contrast(1.08);
}

.military-page .check-list li::before,
.military-page .carousel-dots button.active {
  background: var(--accent);
}

.military-page .faq-item svg,
.military-page .form-success {
  color: var(--brand);
}

.military-page .form-control:focus,
.military-page .form-select:focus,
.military-page .form-check-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .25rem rgba(95, 22, 31, .14);
}

.military-page .site-footer {
  background: #151912;
}

@media (max-width: 991.98px) {
  .user-menu {
    padding-bottom: 0;
  }

  .user-dropdown {
    left: 0;
    right: auto;
  }

  .nav-actions {
    align-items: flex-start;
    padding: 10px 0 12px;
  }

  .hero-carousel,
  .hero-slide {
    min-height: 560px;
  }

  .hero-content {
    min-height: 560px;
    padding-bottom: 138px;
    padding-top: 82px;
  }

  .hero-bg {
    background-position: center;
  }

  .split-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .split-section.reverse .split-copy,
  .split-section.reverse .split-media {
    order: initial;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-viewer {
    padding: 70px 18px;
  }

  .image-viewer-frame {
    max-width: 100%;
  }

  .image-viewer-nav {
    bottom: 22px;
    top: auto;
  }

  .military-page .hero-carousel,
  .military-page .hero-slide {
    min-height: 590px;
  }

  .military-page .hero-content {
    min-height: 590px;
  }
}

@media (max-width: 575.98px) {
  .hero-carousel,
  .hero-slide {
    min-height: 610px;
  }

  .hero-content {
    padding-bottom: 128px;
    padding-top: 88px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 10vw, 2.85rem);
  }

  .content-band,
  .gallery-section,
  .video-section,
  .faq-section,
  .contact-section {
    padding: 58px 0;
  }

  .gallery-grid {
    gap: 12px;
  }

  .contact-form {
    padding: 20px;
  }

  .auth-card {
    padding: 24px;
  }

  .auth-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
