/*
 * ════════════════════════════════════════════════════════
 * FROSTBYTE DEFENSE TECHNOLOGIES — Shared Stylesheet
 * ────────────────────────────────────────────────────────
 * Edit the :root variables below to retheme the entire site.
 * This file is linked by every page — one change affects all.
 *
 * FONTS: Barlow Condensed (all headings) + Inter (all body text)
 * ════════════════════════════════════════════════════════
 */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;900&family=Inter:wght@400;500;600&display=swap');

/* ── CSS VARIABLES ─────────────────────────────────────
   Change these to retheme the entire site at once.
   ───────────────────────────────────────────────────── */
:root {
  /* Brand */
  --red:        #bd2025;    /* Primary accent — buttons, eyebrows, active states */
  --red-dark:   #9a1a1f;    /* Button hover state */
  --black:      #111111;    /* Primary text, nav */

  /* Text */
  --text:       #1c1c1c;    /* Body copy */
  --text-muted: #3a3a3a;    /* Secondary text, captions — darkened for readability */
  --text-light: #666666;    /* Tertiary, placeholders */

  /* Glass system */
  --glass:         rgba(255,255,255,0.80);   /* Standard glass panel */
  --glass-strong:  rgba(255,255,255,0.92);   /* Heavier — used for nav */
  --glass-medium:  rgba(255,255,255,0.70);   /* Cards */
  --glass-border:  rgba(0,0,0,0.07);         /* Borders on glass panels */

  /* Layout */
  --nav-h:     70px;
  --max-w:     1240px;
  --pad-x:     80px;        /* Horizontal section padding — reduce for tighter feel */
  --pad-y:     96px;        /* Vertical section padding */
  --gap:       24px;        /* Standard card/grid gap */
  --radius:    3px;         /* Border radius — keep low for sharp military feel */
}

/* ══════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text);
  overflow-x: hidden;

  /* ── BACKGROUND ──────────────────────────────────────
     UPDATE: Change 'Website Background.png' to any image.
     background-size: controls tile size of the camo pattern.
     Increase for larger blobs, decrease for tighter pattern.
     ──────────────────────────────────────────────────── */
  background-image: url('Website Background.png');
  background-size: 560px 560px;
  background-repeat: repeat;
  background-attachment: fixed;
  background-color: #d4d8d4; /* Fallback if image doesn't load */
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ══════════════════════════════════════════════════════
   TYPOGRAPHY SYSTEM
   ── All headings: Barlow Condensed 900, uppercase
   ── All body: Inter 400/500/600
   ── No other fonts used anywhere on the site
   ══════════════════════════════════════════════════════ */

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--black);
}

p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

/* ── Eyebrow label (small uppercase above section title) ── */
/* UPDATE: Used as section category label — change text content in HTML */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

/* ── Section title ── */
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 4.5vw, 56px);
  text-transform: uppercase;
  color: var(--black);
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 20px;
}
.section-title .accent { color: var(--red); }

/* ── Section intro text ── */
.section-intro {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  max-width: 640px;
}

/* ══════════════════════════════════════════════════════
   LAYOUT UTILITIES
   ══════════════════════════════════════════════════════ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: var(--pad-y) var(--pad-x);
}

/* Glass container for full sections */
.section-glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.section-header {
  margin-bottom: 56px;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Three-column card grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* Four-column grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

/* Five-column grid (people) */
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}

/* ══════════════════════════════════════════════════════
   GLASS CARD
   Base card component used throughout the site.
   ══════════════════════════════════════════════════════ */
.card {
  background: var(--glass-medium);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}

/* Thin shimmer line at top of every card */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.9);
}

/* Red shimmer on featured card */
.card.featured::before {
  background: var(--red);
  height: 2px;
}

/* Card number badge (01, 02, 03...) */
.card-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 16px;
  opacity: 0.7;
}

.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.15;
}

.card-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════ */

/* Primary — solid red */
/* UPDATE: Change background color or text in HTML */
.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 14px 40px;
  border-radius: var(--radius);
  border: none;
  transition: all 0.22s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 18px rgba(189,32,37,0.28);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(189,32,37,0.38);
}

/* Secondary — outlined glass */
.btn-secondary {
  background: rgba(255,255,255,0.60);
  color: var(--black);
  border: 1px solid rgba(255,255,255,0.90);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.85);
  transform: translateY(-2px);
}

/* Full-width button (inside cards) */
.btn-full { width: 100%; text-align: center; }

/* ══════════════════════════════════════════════════════
   NAVIGATION
   ────────────────────────────────────────────────────
   EDIT:
   - Logo: change img src or height in the HTML nav block
   - Links: add/remove <a> tags in .nav-menu
     (copy the whole <nav> block to all pages when adding links)
   - CTA button: change href and text on .nav-cta
   ══════════════════════════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: var(--glass-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 16px rgba(0,0,0,0.06);
}

/* Logo image */
.nav-brand img {
  height: 40px;    /* UPDATE: Adjust logo display height */
  width: auto;
  display: block;
}

/* Nav links container */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Individual nav links */
.nav-menu a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: color 0.18s, background 0.18s;
}

.nav-menu a:hover {
  color: var(--black);
  background: rgba(0,0,0,0.05);
}

/* Active page — red text, no background */
.nav-menu a.active {
  color: var(--red);
}

/* Nav CTA button */
/* UPDATE: Change href in each page's HTML to point to contact page */
.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 9px 22px;
  background: var(--red);
  color: white;
  border-radius: var(--radius);
  border: none;
  box-shadow: 0 2px 12px rgba(189,32,37,0.25);
  transition: all 0.2s;
}
.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(189,32,37,0.35);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: all 0.25s;
}

/* ══════════════════════════════════════════════════════
   PAGE BANNER (inner pages — not the home hero)
   Short hero area at the top of every inner page.
   ══════════════════════════════════════════════════════ */
.page-banner {
  padding: 72px var(--pad-x) 64px;
  /* Camo shows through behind the glass overlay */
}

.page-banner-inner {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius);
  padding: 56px 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  border: 1px solid var(--glass-border);
}

.page-banner h1 {
  font-size: clamp(48px, 6vw, 80px);
  margin-top: 12px;
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════
   STAT STRIP
   Used in hero — 4 metrics in a row
   ══════════════════════════════════════════════════════ */
.stat-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid rgba(0,0,0,0.08);
}
.stat-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--black);
  letter-spacing: 1px;
  line-height: 1;
}
.stat-num .accent { color: var(--red); }

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-top: 5px;
}

/* ══════════════════════════════════════════════════════
   SPEC TABLE (used in hero right panel)
   ══════════════════════════════════════════════════════ */
.spec-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.spec-row:last-child { border-bottom: none; }

.spec-key {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.spec-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
  letter-spacing: 0.5px;
  text-align: right;
}
.spec-val .accent { color: var(--red); }

/* ══════════════════════════════════════════════════════
   PEOPLE / TEAM CARDS
   ══════════════════════════════════════════════════════ */
.person-card {
  padding: 0;       /* Override .card padding — photo goes edge-to-edge */
  overflow: hidden;
}

.person-card .card-content {
  padding: 20px 24px 24px;
}

/* Photo frame — 3:4 portrait, sharp corners */
.person-photo-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #d0d4d0;   /* Fallback if photo missing */
}

.person-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.person-card:hover .person-photo-frame img {
  transform: scale(1.04);
}

.person-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 4px;
  line-height: 1.1;
}

.person-role {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.person-bio {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════
   PHOTO STRIP (Our Story page)
   ══════════════════════════════════════════════════════ */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.photo-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.photo-frame:hover img { transform: scale(1.04); }

.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.60), transparent);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

/* ══════════════════════════════════════════════════════
   MILESTONE TIMELINE (Our Story page)
   Rectangular markers — no circles
   ══════════════════════════════════════════════════════ */
.milestones {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-top: 48px;
  margin-top: 16px;
}

/* Horizontal connecting line */
.milestones::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(0,0,0,0.12);
}

.milestone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Rectangular tick mark — NOT a circle */
.milestone::before {
  content: '';
  position: absolute;
  top: -54px;
  width: 2px;
  height: 10px;
  background: var(--red);
}

.milestone-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: center;
}

.milestone-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  max-width: 110px;
  line-height: 1.5;
}

/* Future milestones — muted */
.milestone.future .milestone-date { color: var(--text-light); }
.milestone.future .milestone-text { color: var(--text-light); }
.milestone.future::before { background: var(--text-light); }

/* ══════════════════════════════════════════════════════
   CONTACT FORM
   ══════════════════════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  background: rgba(255,255,255,0.90);
  border-color: rgba(189,32,37,0.4);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ── UPDATE: Change links and copyright year in HTML
   ══════════════════════════════════════════════════════ */
footer {
  background: rgba(12,12,12,0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 44px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: white;
}
.footer-logo .accent { color: var(--red); }

.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.75); }

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  :root { --pad-x: 48px; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --pad-x: 28px; --pad-y: 64px; }
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--glass-strong);
    backdrop-filter: blur(24px);
    padding: 16px 28px;
    border-bottom: 1px solid var(--glass-border);
    gap: 4px;
  }
  .nav-menu.open a { padding: 12px 0; width: 100%; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr; }
  .milestones { flex-direction: column; gap: 28px; padding-top: 0; }
  .milestones::before { display: none; }
  .milestone::before { display: none; }
  .stat-strip { flex-wrap: wrap; gap: 20px; }
  .stat-item { border-right: none; min-width: 44%; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .page-banner-inner { padding: 40px 28px; }
}

@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .stat-item { min-width: 100%; }
}
