/* ============================================================
   SDPRG — Safety & Defense Product Representation Group
   Command Authority Design System v2 (website-migration skill)
   ============================================================ */

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

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0d1117;
  --navy-mid:    #111922;
  --navy-card:   #0f1520;
  --gold:        #c9a227;
  --gold-light:  #e0b93a;
  --gold-dim:    rgba(201,162,39,.14);
  --gold-border: rgba(201,162,39,.28);
  --steel:       #1e2a3a;
  --white:       #f0f2f5;
  --w70:         rgba(240,242,245,.70);
  --w50:         rgba(240,242,245,.50);
  --w30:         rgba(240,242,245,.30);
  --w10:         rgba(240,242,245,.10);
  --w06:         rgba(240,242,245,.06);
  --font-head:   'Barlow Condensed', sans-serif;
  --font-body:   'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ───────────────────────────────────────────── */
.label {
  font-family: var(--font-head);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
h1,h2,h3,h4 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.05;
}

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-alt { background: var(--navy-mid); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  padding: 14px 28px; border: none; cursor: pointer;
  transition: all .2s ease; text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid var(--w30); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 9px 18px; font-size: .7rem; }

/* ── Section Header ───────────────────────────────────────── */
.section-header { margin-bottom: 52px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.eyebrow-line { width: 32px; height: 2px; background: var(--gold); }
.section-title { font-size: clamp(2rem, 4vw, 3rem); }
.section-title .gold { color: var(--gold); }
.section-sub { color: var(--w70); max-width: 560px; margin-top: 14px; font-size: .95rem; line-height: 1.7; }
.divider { width: 40px; height: 3px; background: var(--gold); margin: 16px 0; }

/* ── Navbar ───────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,17,23,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--w06); transition: background .3s;
}
#navbar.scrolled { background: rgba(10,13,18,.98); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo {
  width: 42px; height: 42px; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--navy);
}
.nav-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .08em; }
.nav-tagline { font-family: var(--font-head); font-size: .55rem; letter-spacing: .15em; text-transform: uppercase; color: var(--w50); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-family: var(--font-head); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--w70); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); transition: all .3s; }
.mobile-menu { display: none; position: fixed; inset: 70px 0 0 0; background: rgba(10,13,18,.98); z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: .1em; text-transform: uppercase; color: var(--w70); }
.mobile-menu a:hover { color: var(--gold); }
@media (max-width: 900px) { .nav-links, .nav-cta .btn { display: none; } .hamburger { display: flex; } }

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--navy); overflow: hidden; padding-top: 70px;
}
.hero-bg { position: absolute; inset: 0; background-image: url('../images/hero.jpg'); background-size: cover; background-position: center; opacity: .25; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(13,17,23,.93) 40%, rgba(13,17,23,.45) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.hero-eyebrow-line { width: 40px; height: 2px; background: var(--gold); }
.hero-title { font-size: clamp(3rem, 8vw, 6rem); line-height: .95; margin-bottom: 24px; }
.hero-title .gold { color: var(--gold); }
.hero-desc { font-size: 1rem; color: var(--w70); max-width: 520px; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--w06); }
.stat-item { padding: 26px 20px; text-align: center; border-right: 1px solid var(--w06); }
.stat-item:last-child { border-right: none; }
.stat-val { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--gold); line-height: 1; }
.stat-lbl { font-family: var(--font-head); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--w50); margin-top: 5px; }
@media (max-width: 600px) { .stats-bar { grid-template-columns: repeat(2,1fr); } .stat-item:nth-child(2) { border-right: none; } }

/* ── About ────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-badge { position: absolute; bottom: -18px; right: -18px; background: var(--gold); color: var(--navy); padding: 18px 22px; text-align: center; }
.about-badge-num { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.about-badge-lbl { font-family: var(--font-head); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; }
.about-text p { color: var(--w70); line-height: 1.8; margin-bottom: 18px; font-size: .95rem; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.pillar { padding: 14px 16px; border-left: 3px solid var(--gold-border); background: var(--gold-dim); }
.pillar-title { font-family: var(--font-head); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.pillar-desc { font-size: .82rem; color: var(--w50); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } .about-badge { right: 0; } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }

/* ── Markets ──────────────────────────────────────────────── */
.markets-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 44px; }
.market-card { background: var(--navy-card); border: 1px solid var(--w06); padding: 22px; transition: border-color .2s; }
.market-card:hover { border-color: var(--gold-border); }
.market-region { font-family: var(--font-head); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.market-countries { font-size: .8rem; color: var(--w50); line-height: 1.7; }
.market-count { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--white); margin-top: 10px; }
.market-count-lbl { font-size: .7rem; color: var(--w50); }
.itar { margin-top: 28px; padding: 14px 18px; border: 1px solid var(--gold-border); background: var(--gold-dim); font-size: .82rem; color: var(--w70); line-height: 1.6; }
.itar strong { color: var(--gold); }
@media (max-width: 900px) { .markets-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .markets-grid { grid-template-columns: 1fr; } }

/* ── Services / Products ──────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; }
.service-card { position: relative; overflow: hidden; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; }
.service-card:hover .service-img { transform: scale(1.04); opacity: .78; }
.service-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .58; transition: all .4s; }
.service-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,14,20,.80) 30%, rgba(10,14,20,.10) 100%); }
.service-content { position: relative; z-index: 2; padding: 28px; }
.service-tag { font-family: var(--font-head); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.service-title { font-size: 1.4rem; margin-bottom: 10px; }
.service-items { list-style: none; }
.service-items li { font-size: .82rem; color: var(--w50); padding: 3px 0; border-bottom: 1px solid var(--w06); display: flex; align-items: center; gap: 8px; }
.service-items li::before { content: '—'; color: var(--gold); font-size: .7rem; flex-shrink: 0; }
@media (max-width: 700px) { .services-grid { grid-template-columns: 1fr; } }

/* ── Gallery ──────────────────────────────────────────────── */
.gallery-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn { font-family: var(--font-head); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 8px 18px; background: var(--navy-card); border: 1px solid var(--w06); color: var(--w50); cursor: pointer; transition: all .2s; }
.filter-btn:hover, .filter-btn.active { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }
.gallery-item { position: relative; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption { position: absolute; inset: 0; background: rgba(10,14,20,.7); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; padding: 16px; text-align: center; }
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption h4 { font-family: var(--font-head); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.gallery-caption p { font-size: .78rem; color: var(--w70); }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 450px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ── Why ──────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.why-card { padding: 28px; border: 1px solid var(--w06); background: var(--navy-card); transition: border-color .2s; }
.why-card:hover { border-color: var(--gold-border); }
.why-icon { width: 46px; height: 46px; background: var(--gold-dim); border: 1px solid var(--gold-border); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 1.3rem; }
.why-title { font-family: var(--font-head); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.why-desc { font-size: .86rem; color: var(--w50); line-height: 1.7; }
.why-cta { margin-top: 56px; padding: 44px; background: var(--navy-card); border: 1px solid var(--gold-border); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.why-cta h3 { font-size: 1.6rem; margin-bottom: 6px; }
.why-cta p { color: var(--w70); max-width: 480px; font-size: .9rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* ── Contact Form ─────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-icon { width: 40px; height: 40px; flex-shrink: 0; background: var(--gold-dim); border: 1px solid var(--gold-border); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.contact-lbl { font-family: var(--font-head); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.contact-val { font-size: .9rem; color: var(--w70); }
.qualify { margin-top: 28px; padding: 16px 18px; border-left: 3px solid var(--gold); background: var(--gold-dim); font-size: .82rem; color: var(--w70); line-height: 1.6; }
.qualify strong { color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-family: var(--font-head); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--w50); margin-bottom: 7px; }
.form-group label .req { color: var(--gold); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,.05); border: 1px solid var(--w10);
  color: var(--white); font-family: var(--font-body); font-size: .9rem;
  outline: none; transition: border-color .2s; -webkit-appearance: none; appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a227' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.form-group select option { background: var(--navy-mid); }
.form-group textarea { resize: vertical; min-height: 100px; }
.product-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.check-group-title { font-family: var(--font-head); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding: 6px 0; border-bottom: 1px solid var(--w06); margin-bottom: 5px; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 5px 0; cursor: pointer; }
.check-item input[type=checkbox] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; min-width: 16px;
  border: 1.5px solid var(--w30);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: border-color .15s, background .15s;
  flex-shrink: 0;
}
.check-item input[type=checkbox]:hover { border-color: var(--gold); }
.check-item input[type=checkbox]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.check-item input[type=checkbox]:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 2px;
  width: 4px; height: 8px;
  border: 2px solid var(--navy);
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.check-item span { font-size: .8rem; color: var(--w70); transition: color .15s; }
.check-item:hover span { color: var(--white); }
.form-msg { display: none; margin-top: 14px; padding: 12px 16px; font-size: .88rem; border-left: 3px solid; }
.form-msg.success { border-color: #4caf50; background: rgba(76,175,80,.08); color: #a5d6a7; }
.form-msg.error { border-color: #f44336; background: rgba(244,67,54,.08); color: #ef9a9a; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } .product-checks { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────────────────────────── */
footer { background: #080c12; border-top: 1px solid var(--w06); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.footer-brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: .08em; margin-bottom: 10px; }
.footer-brand p { font-size: .84rem; color: var(--w50); line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-family: var(--font-head); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: .84rem; color: var(--w50); transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--w06); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-copy { font-size: .76rem; color: var(--w30); }
.footer-compliance { font-size: .7rem; color: var(--w30); max-width: 560px; text-align: right; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .footer-compliance { text-align: left; } }

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero { padding: 120px 0 60px; background: var(--navy-mid); border-bottom: 1px solid var(--w06); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.page-hero p { color: var(--w70); max-width: 560px; margin-top: 14px; font-size: .95rem; }

/* ── Animations ───────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Utility ──────────────────────────────────────────────── */
.text-gold { color: var(--gold); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
