:root {
  --navy: #1e3a5f;
  --navy-dark: #152a45;
  --red: #c41e3a;
  --red-dark: #a01830;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --blue-light: #e8eef5;
  --gray: #5a6b7d;
  --gray-light: #8b9aab;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
}

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 2px solid var(--blue-light);
}

.header-inner {
  max-width: min(1600px, 96vw);
  margin: 0 auto;
  width: 100%;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  min-height: 60px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 56px;
  width: auto;
}

/* Mobile nav toggle (hidden on desktop) */
.nav-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 6px;
}
.nav-toggle:hover { background: var(--blue-light); }
.hamburger-icon {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  display: block;
  position: relative;
}
.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}
.hamburger-icon::before { top: -7px; }
.hamburger-icon::after { top: 7px; }
.nav-check:checked + .nav-toggle .hamburger-icon { background: transparent; }
.nav-check:checked + .nav-toggle .hamburger-icon::before { top: 0; transform: rotate(45deg); }
.nav-check:checked + .nav-toggle .hamburger-icon::after { top: 0; transform: rotate(-45deg); }

/* Overlay only used in mobile nav; hide on desktop so it doesn't affect header layout */
.nav-overlay {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 0.35em 0;
}

.nav a:hover {
  color: var(--red);
}

.nav .btn-primary {
  color: var(--white);
}

.nav .btn-primary:hover {
  color: var(--white);
}

.nav .btn-primary {
  padding-left: 1.65rem;
  padding-right: 1.65rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* Mobile nav drawer */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    z-index: 101;
  }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 5.5rem 1.25rem 2rem;
    gap: 0;
    box-shadow: -4px 0 24px rgba(30, 58, 95, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease, visibility 0.25s;
    visibility: hidden;
    z-index: 100;
    overflow-y: auto;
    border-left: 2px solid var(--blue-light);
  }
  .nav-check:checked ~ .nav {
    transform: translateX(0);
    visibility: visible;
  }
  .nav a {
    min-height: 44px;
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--blue-light);
    font-size: 1rem;
  }
  .nav a:last-of-type { border-bottom: none; }
  .nav .btn-primary {
    margin-top: 0.5rem;
    min-height: 48px;
    justify-content: center;
    display: flex;
    align-items: center;
  }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 58, 95, 0.25);
    z-index: 99;
    cursor: pointer;
  }
  .nav-check:checked ~ .nav-overlay { display: block; }
  html:has(.nav-check:checked) { overflow: hidden; }
}

/* Main: start below fixed header */
main {
  padding-top: 5rem;
}

/* Footer */
.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: min(1600px, 96vw);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
}

.footer-brand a {
  color: var(--white);
  text-decoration: none;
}

.footer-wordmark {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.footer-wordmark .brush {
  color: var(--red);
}

.footer-wordmark .cuts {
  color: var(--white);
}

.footer-veteran {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact {
  text-align: right;
}

@media (max-width: 768px) {
  .footer-contact {
    text-align: center;
  }
}

.footer-contact a {
  color: var(--white);
  font-weight: 600;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .footer-social {
    justify-content: center;
  }
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 400;
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--white);
  color: var(--navy-dark);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  max-width: min(1600px, 96vw);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Touch-friendly tap highlight (harmless on pages without matching elements) */
a, button, .btn, input, textarea, select, [tabindex]:not([tabindex="-1"]) {
  -webkit-tap-highlight-color: rgba(30, 58, 95, 0.08);
}
