/* ==========================================================================
   New Edge Security — styles.css
   Mobile-first, vanilla CSS, custom properties for theming.
   ========================================================================== */

:root {
  --navy-900: #0B1E3D;
  --navy-800: #13294B;
  --navy-700: #1B3B6F;
  --gold-500: #C9A227;
  --gold-400: #E0BE5B;
  --white: #FFFFFF;
  --off-white: #F6F7F9;
  --ink-900: #1A1F2B;
  --ink-600: #5A6472;
  --border: #E2E5EA;

  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --header-h: 68px;
  --container-w: 1200px;
  --radius: 14px;
  --shadow-card: 0 6px 24px rgba(11, 30, 61, 0.08);
  --shadow-lift: 0 14px 36px rgba(11, 30, 61, 0.16);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--ink-600); }
button { font-family: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold-500);
  color: var(--navy-900);
  padding: .75rem 1.25rem;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--gold-500);
  margin-bottom: .5em;
}
.eyebrow.light { color: var(--gold-400); }
.center { text-align: center; }
h2.center { margin-left: auto; margin-right: auto; }
.section-lead {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--ink-600);
}
.section-lead.light { color: rgba(255,255,255,.75); }
h2.light { color: var(--white); }

.section { padding: 5rem 0; }
.section-alt { background: var(--off-white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-gold:hover { background: var(--gold-400); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.7);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: var(--navy-900);
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-mark.small { width: 44px; height: 44px; margin-bottom: .75rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-heading); font-weight: 700; color: var(--white); font-size: 1.05rem; }
.brand-tagline { font-size: .62rem; letter-spacing: .06em; color: var(--gold-400); text-transform: uppercase; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
  padding: 1rem 20px 2rem;
  gap: .25rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.nav-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-menu li a {
  display: block;
  padding: .85rem .25rem;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-menu li a.active { color: var(--gold-400); }
.nav-cta {
  margin-top: .75rem;
  background: var(--gold-500);
  color: var(--navy-900) !important;
  text-align: center;
  border-radius: 999px;
  font-weight: 700;
  border-bottom: none !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,30,61,.55) 0%, rgba(11,30,61,.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
  color: var(--white);
  max-width: 760px;
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  color: var(--white);
  margin-bottom: .2em;
}
.hero-tagline {
  font-family: var(--font-heading);
  color: var(--gold-400);
  font-weight: 600;
  letter-spacing: .04em;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.hero-lead {
  color: rgba(255,255,255,.88);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.trust-badges { display: flex; flex-wrap: wrap; gap: .75rem; }
.trust-badges li {
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .8rem;
  color: rgba(255,255,255,.9);
  font-weight: 500;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.about-copy h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.value-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0; }
.value-chips span {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-800);
}
.license-line {
  font-size: .85rem;
  color: var(--ink-600);
  border-left: 3px solid var(--gold-500);
  padding-left: .8rem;
}

/* ---------- Cards / grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-500);
  margin-bottom: 1.1rem;
}
.icon-badge svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.1rem; margin-bottom: .5em; }
.card p { margin: 0; font-size: .95rem; }

/* ---------- Credentials / PDF viewer ---------- */
.pdf-viewer-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.pdf-viewer {
  height: 70vh;
  min-height: 420px;
  max-height: 720px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  background: var(--off-white);
}
.pdf-viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.pdf-viewer-fallback {
  text-align: center;
  margin-top: 1rem;
}
.pdf-viewer-fallback p {
  font-size: .85rem;
  margin-bottom: .6rem;
}
.pdf-contents {
  margin: 2rem 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.pdf-contents li {
  position: relative;
  padding-left: 1.6rem;
  font-size: .92rem;
  color: var(--ink-600);
}
.pdf-contents li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35rem;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--gold-500);
}
.download-link {
  display: inline-block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy-700);
  border-bottom: 1px solid var(--gold-500);
}
.download-link:hover { color: var(--gold-500); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.gallery-tile {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 760px;
  margin: 0 auto;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.2rem;
}
.team-role {
  color: var(--gold-500);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1em;
}

/* ---------- Future services ---------- */
.future-section { background: var(--navy-900); }
.future-grid { grid-template-columns: 1fr; }
.future-card {
  position: relative;
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}
.future-card h3 { color: var(--white); font-size: 1.15rem; }
.future-card p { color: rgba(255,255,255,.82); font-size: .92rem; margin: 0; }
.badge-soon {
  align-self: flex-start;
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .3rem .8rem;
  margin-bottom: auto;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.contact-list { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 1rem; }
.contact-list li { display: flex; flex-direction: column; gap: .15rem; }
.contact-list strong { font-family: var(--font-heading); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--navy-800); }
.contact-list a { color: var(--navy-700); font-weight: 600; }
.contact-list a:hover { color: var(--gold-500); }
.license-callout {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold-500);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: .85rem;
  color: var(--ink-600);
}

.contact-form-wrap {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-form { display: flex; flex-direction: column; gap: .3rem; }
.contact-form label { font-weight: 600; font-size: .85rem; margin-top: .8rem; color: var(--navy-800); }
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .7rem .9rem;
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--white);
}
.contact-form textarea { resize: vertical; }
.contact-form button { margin-top: 1.3rem; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-status { font-size: .85rem; margin-top: .8rem; min-height: 1.2em; }
.form-status.success { color: #2E7D4F; }
.form-status.error { color: #B3261E; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer-name { color: var(--white); font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; margin-bottom: .3em; }
.footer-license { font-size: .8rem; margin-bottom: 1.2rem; }
.social-links { display: flex; justify-content: center; gap: .75rem; margin-bottom: 1.5rem; }
.social-links a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
  color: rgba(255,255,255,.8);
}
.social-links a:hover { border-color: var(--gold-500); color: var(--gold-500); }
.footer-copy { font-size: .8rem; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  .card-grid.services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .future-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .about-grid { grid-template-columns: .8fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  :root { --header-h: 80px; }

  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    flex-direction: row;
    align-items: center;
    background: transparent;
    padding: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    max-height: none;
    gap: 1.75rem;
  }
  .nav-menu li a {
    padding: .4rem 0;
    border-bottom: 2px solid transparent;
  }
  .nav-menu li a:hover,
  .nav-menu li a.active { color: var(--gold-400); border-color: var(--gold-500); }
  .nav-cta {
    margin-top: 0;
    padding: .55rem 1.3rem;
  }

  .card-grid.services-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .future-grid { grid-template-columns: repeat(4, 1fr); }

  .section { padding: 7rem 0; }
}

@media (min-width: 1180px) {
  .hero h1 { font-size: 3.6rem; }
}
