/* Vanguard Development — shared layout rules.
   Page-specific type and color styles live in each page's <style> block. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FAF8F4; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #B08D57; outline-offset: 2px;
}

/* Skip link */
.skip { position: absolute; left: -9999px; top: 0; background: #0F2E25; color: #FAF8F4; padding: 10px 16px; z-index: 10; font-family: 'Source Sans 3', sans-serif; }
.skip:focus { left: 8px; top: 8px; }

/* Menu button (phones only) */
.menu-btn { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1.5px solid #1B4D3E; border-radius: 4px; background: #FFFFFF; color: #1B4D3E; font-family: 'Source Sans 3', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; }

/* Click-to-reveal contact details */
.reveal { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px dashed #B08D57; border-radius: 4px; background: #FFFFFF; color: #1B4D3E; font-family: 'Source Sans 3', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; }
.reveal:hover { background: #EFEAE1; }
.revealed { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.copy-btn { height: 32px; padding: 0 10px; border: 1px solid #DDD7CB; border-radius: 4px; background: #FFFFFF; color: #1B4D3E; font-family: 'Source Sans 3', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; }

/* Form spam trap: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

[hidden] { display: none !important; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .wrap { padding-left: 24px !important; padding-right: 24px !important; }
  /* Four-up grids (specs, photo strips, profile tiles) become two-up */
  [style*="repeat(4, minmax(0, 1fr))"], [style*="repeat(7, minmax(0, 1fr))"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  /* Every other multi-column grid stacks */
  [style*="grid-template-columns"]:not([style*="repeat(4, minmax(0, 1fr))"]):not([style*="repeat(7, minmax(0, 1fr))"]) { grid-template-columns: minmax(0, 1fr) !important; }
  /* Sticky sidebars become normal blocks once stacked */
  [style*="position: sticky"] { position: static !important; }
  .h1 { font-size: 40px !important; }
  .h2 { font-size: 28px !important; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  .wrap { padding-left: 16px !important; padding-right: 16px !important; }
  .nav { flex-wrap: wrap; }
  .menu-btn { display: inline-flex; }
  .navlinks { display: none !important; width: 100%; flex-direction: column; align-items: stretch !important; gap: 0 !important; padding: 8px 0 4px; }
  .navlinks.open { display: flex !important; }
  .navlinks .navlink { padding: 12px 4px; border-top: 1px solid #DDD7CB; }
  .navlinks .btn { margin-top: 10px; }
  .h1 { font-size: 34px !important; }
  .h2 { font-size: 24px !important; }
  .num { font-size: 32px !important; }
  /* Long label/value rows stack instead of squeezing */
  .row { flex-direction: column; gap: 4px !important; align-items: flex-start !important; }
  .row .v { text-align: left !important; }
  .revealed { justify-content: flex-start; }
  [style*="align-items: flex-end"] { align-items: flex-start !important; }
  /* Hero and photo heights tuned for small screens */
  img[style*="height: 480px"] { height: 260px !important; }
  img[style*="height: 380px"] { height: 240px !important; }
  img[style*="width: 360px"], img[style*="width: 320px"] { width: 100% !important; height: 320px !important; }
  select[style*="min-width: 280px"] { min-width: 0 !important; width: 100%; }
}
