/* ==========================================================================
   Global Reset
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: sans-serif;
  line-height: 1.6;
  background-color: #f8f9fa;
  color: #333;
}

/* ==========================================================================
   Layout / Containers
   ========================================================================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem;
}

.left-container {
  max-width: 90%;         /* optional: keep this or set to 100% */
  margin: 0;              /* removes auto-centering and aligns left */
  padding: 3rem;          /* keeps padding for readability */
}

.header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: #123e5a;
  color: white;
  padding: 1.5rem 2rem;
}

.main-content { padding: 2rem 0; }

/* ==========================================================================
   Branding
   ========================================================================== */
.company-logo {
  max-height: 90px;
  max-width: 160px;
  height: auto;
  background: white;
  padding: 0.5rem;
  border-radius: 4px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.company-text h1 { margin: 0 0 0.5rem; font-size: 2rem; }
.company-text p  { margin: 0.2rem 0; }

/* ==========================================================================
   Typography
   ========================================================================== */
.page-title h2 { font-size: 1.75rem; margin-bottom: 1rem; color: #a57912; }
h2 { color: #a57912; }

/* ===============================
   Contact Form Styles
   =============================== */
.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 1rem auto;
  padding: 1.25rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  gap: 0.9rem;
}
.contact-form h2 {
  font-size: 1.5rem;
  color: #a57912;
  text-align: center;
  margin-bottom: 1rem;
}
.contact-form input,
.contact-form textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #123e5a;
  box-shadow: 0 0 3px rgba(18,62,90,0.5);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input[type="file"] { padding: 0.5rem 0; border: none; }
.contact-form button {
  align-self: flex-start;
  background-color: #123e5a;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}
.contact-form button:hover { background-color: #f8f3ec; color: #123e5a; }
.form-group { display: flex; flex-direction: column; margin-bottom: 0.5em; }
.contact-form label { font-weight: 600; margin-bottom: 0.25rem; }
.success-message { text-align: center; color: green; margin-top: 1rem; }
.error-message   { text-align: center; color: red;   margin-top: 1rem; }

/* Mobile responsiveness (contact form) */
@media (max-width: 600px) {
  .contact-form { padding: 1.5rem; }
  .contact-form button { width: 100%; }
}

/* Optional: compact page title spacing */
.page-title { margin-bottom: 1rem; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  background-color: #123e5a;
  padding: 1rem 0;
  border-top: 1px solid #123e5a;
  border-bottom: 1px solid #123e5a; /* fixed: explicit 'solid' */
}
.site-nav li { margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  background-color: #0e2f45;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: inline-block;
}
.site-nav a:hover {
  transform: translateY(-2px);
  background-color: #1d4f6f;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.site-nav a:active {
  transform: translateY(1px);
  background-color: #0c273d;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Media Queries (layout)
   ========================================================================== */
@media (max-width: 768px) {
  .header { justify-content: center; text-align: center; }
  .company-logo { margin-bottom: 1rem; }
  .company-text h1 { font-size: 1.5rem; }
  .site-nav a { display: block; margin: 0.5rem 0; }
}

/* ======================================
   Inline Image with Caption
   ====================================== */
.callout-image {
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
}
.callout-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.callout-caption { margin-top: 0.8rem; }
.callout-caption h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #123e5a;
}
.callout-caption p { margin: 0.3rem 0 0; font-size: 0.95rem; color: #444; }

/* ======================================
   Full-Width Hero Image with Overlay Text
   ====================================== */
.callout {
  position: relative;
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 2rem auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.callout img { width: 100%; display: block; }
.callout .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(18,62,90,0.9);
  color: white;
  text-align: center;
  padding: 1rem;
}
.callout .overlay h3 { font-size: 1.2rem; margin: 0; color: #fff; }
.callout .overlay p  { font-size: 1rem; margin: 0.5rem 0 0; color: #a57912; }

/* ==========================================================================
   Footer (Consolidated and Clean)
   ========================================================================== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: #f2f2f2;
  font-size: 0.9rem;
  color: #333;
  text-align: center;
  border-top: 1px solid #ccc;
}
.footer span { display: inline-block; }
.footer .social-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #123e5a;
  text-decoration: none;
  font-weight: 500;
}
.footer .social-link a:hover { color: #a57912; }
.footer .social-icon {
  width: 18px; height: 18px; max-width: 25px; max-height: 25px;
  display: inline-block; vertical-align: text-bottom; object-fit: contain;
}

/* Responsive footer */
@media (max-width: 600px) {
  .footer { flex-direction: column; gap: 0.3rem; text-align: center; }
}

/* ==========================================================================
   Contact popup (single source of truth)
   ========================================================================== */
.contact-page .sr-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 600;
  color: #fff;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: opacity 1s ease-out;
  opacity: 1;
}
.contact-page .sr-popup.is-success { background: #28a745; }
.contact-page .sr-popup.is-error   { background: #dc3545; }
.contact-page .sr-popup.is-fading  { opacity: 0 !important; }

/* ===== Form hint + honeypot (single copy) ===== */
.form-hint { display: block; margin-top: .35rem; font-size: .9rem; color: #555; }
.hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hp-wrap label { font-size: 0; }

/* ===== Mobile fixes (phones ≤640px) — non-destructive ===== */
@media (max-width: 640px) {
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 1rem 1rem;
  }
  .company-logo { max-height: 72px; max-width: 140px; }
  .company-text h1 { font-size: 1.6rem; }
  .company-text p  { line-height: 1.35; }

  /* Nav wraps: About + Contact side-by-side, PDF full-width below */
  .site-nav ul { flex-wrap: wrap; gap: 10px; padding: 0.75rem 0; }
  .site-nav li { flex: 1 1 calc(50% - 10px); margin: 0; }
  .site-nav li:last-child { flex: 1 1 100%; }
  .site-nav a {
    display: block; width: 100%; text-align: center;
    padding: 10px 12px; border-radius: 10px;
  }
  .site-nav .btn-gold {
    position: static; white-space: normal; line-height: 1.2;
    font-size: 0.95rem; padding: 10px 12px;
  }
  .hero h2 { font-size: 1.35rem; line-height: 1.25; margin-top: 14px; }
}

/* Veteran-owned micro line (gold text, tiny icon) */
.vet-line {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  font-size: .95rem;
  color: #a57912;
  line-height: 1.2;
}
.vet-line .vet-icon {
  --h: .95em;                   /* icon height */
  height: var(--h);
  width: calc(var(--h) * 1.618);/* golden ratio width */
  flex: 0 0 auto;
  vertical-align: middle;
}
.vet-line--xs .vet-icon { --h: .8em; }
.vet-line--lg .vet-icon { --h: 1.1em; }
.on-dark .vet-line { color: #f8f3ec; }

/* Highlight the active nav item */
nav a[aria-current="page"] {
  background-color: #a57912;
  color: #ffffff;
  font-weight: bold;
  border-radius: 4px;
}

/* ===== Gallery trigger (DIV that looks like a button) ===== */
.gallery-button {
  display: inline-block;
  vertical-align: middle;
  background-color: #123e5a;
  border: 2px solid #123e5a;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  text-align: center;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.gallery-button > a {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
}
.gallery-button:hover { background-color: #fff; }
.gallery-button:hover > a { color: #123e5a; }
.gallery-button:has(a:focus-visible) { outline: 2px solid #0a2a3d; outline-offset: 2px; }

/* ===== "View Gallery" anchor-only variant (optional) ===== */
a.btn-gallery {
  display: inline-block;
  padding: 8px 16px;
  background-color: #123e5a;
  border: 2px solid #123e5a;
  border-radius: 6px;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
a.btn-gallery:hover { background-color: #fff; color: #123e5a; }
a.btn-gallery:focus-visible { outline: 2px solid #0a2a3d; outline-offset: 2px; }

/* ===== Close link (inside the gallery page) ===== */
.close-link { text-align: center; margin-top: 20px; }
.close-link a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #123e5a;
  border: 2px solid #123e5a;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.close-link a:hover { background-color: #fff; color: #123e5a; }
.close-link a:focus-visible { outline: 2px solid #0a2a3d; outline-offset: 2px; }

/* Motion preference: tone down transitions */
@media (prefers-reduced-motion: reduce) {
  .gallery-button, a.btn-gallery, .close-link a { transition: none; }
}
