/* ==========================================================================
   QamTech — Site Styles
   Defense dark / technical theme
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #0a0f1a;   /* deep navy */
  --bg-2:      #0e1626;   /* alt section */
  --surface:   #121c30;   /* cards */
  --surface-2: #16223a;
  --border:    #1f2e49;
  --text:      #e8edf6;
  --muted:     #9bacc8;
  --accent:    #2f9bff;   /* electric blue */
  --accent-2:  #4fd6c9;   /* teal */
  --accent-soft: rgba(47, 155, 255, 0.12);
  --danger:    #ff6b6b;

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);

  /* Self-hosted, no third-party requests. If you drop the real woff2 files into
     fonts/ and uncomment the @font-face block below, "Inter" / "Space Grotesk"
     will be used automatically; otherwise the native system stack renders. */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Optional self-hosted webfonts ----------
   To use the exact brand fonts, place the .woff2 files in website/fonts/ and
   uncomment this block. See fonts/README.md for the file list and sources.

@font-face { font-family:"Inter"; font-style:normal; font-weight:400; font-display:swap; src:url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:500; font-display:swap; src:url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:600; font-display:swap; src:url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:700; font-display:swap; src:url("../fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family:"Space Grotesk"; font-style:normal; font-weight:500; font-display:swap; src:url("../fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family:"Space Grotesk"; font-style:normal; font-weight:600; font-display:swap; src:url("../fonts/space-grotesk-600.woff2") format("woff2"); }
@font-face { font-family:"Space Grotesk"; font-style:normal; font-weight:700; font-display:swap; src:url("../fonts/space-grotesk-700.woff2") format("woff2"); }
*/

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.97rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #04101f; }
.btn-primary:hover { background: #4bb0ff; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; margin-top: 8px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(47,155,255,.5);
}
.brand-accent { color: var(--accent); }

.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--muted); font-weight: 500; font-size: 0.98rem; transition: color .2s ease; }
.nav-menu a:hover { color: var(--text); }
.nav-cta {
  color: var(--accent) !important; border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 8px; transition: border-color .2s ease, background .2s ease !important;
}
.nav-cta:hover { border-color: var(--accent); background: var(--accent-soft); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 76px; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(47,155,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,155,255,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}
.hero-inner { position: relative; max-width: 880px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-2);
  border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.hero-title { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 700; margin-bottom: 22px; }
.grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.18rem; color: var(--muted); max-width: 680px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  list-style: none; margin: 0; padding: 0;
}
.hero-stats li {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px;
}
.stat-num { display: block; font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--text); }
.stat-label { display: block; font-size: 0.88rem; color: var(--muted); margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding: 86px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; margin-bottom: 18px; }
.section-intro { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin-bottom: 44px; }

/* ---------- About ---------- */
.about-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.about-lead p { color: var(--muted); font-size: 1.06rem; }
.about-lead p:first-child { color: var(--text); font-size: 1.16rem; }
.about-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.about-card h3 { font-size: 1.05rem; color: var(--accent-2); margin-bottom: 18px; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; }
.about-card dl { margin: 0; }
.about-card dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.about-card dl > div:last-child { border-bottom: 0; }
.about-card dt { color: var(--muted); font-size: 0.92rem; }
.about-card dd { margin: 0; font-weight: 600; text-align: right; font-size: 0.95rem; }

/* ---------- Cards (Expertise) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--surface-2); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 12px; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent); font-size: 1.5rem;
}
.card h3 { font-size: 1.18rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ---------- Vision ---------- */
.vision-statement {
  border-left: 3px solid var(--accent); padding: 8px 0 8px 26px; margin-bottom: 48px; max-width: 760px;
}
.vision-statement p { font-family: var(--font-head); font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 500; color: var(--text); margin: 0; line-height: 1.4; }
.vision-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.vision-point { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.vp-num { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.vision-point h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.vision-point p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-inner { max-width: 720px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 28px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: 0; }
.contact-label { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; }
.contact-value { font-weight: 600; font-size: 1.08rem; }
a.contact-value { color: var(--accent); }
a.contact-value:hover { text-decoration: underline; }
.contact-address { text-align: right; font-weight: 500; font-size: 0.98rem; line-height: 1.45; }
.contact-note { color: var(--muted); font-size: 0.88rem; font-style: italic; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 34px 0; background: var(--bg-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; }
.footer-copy { color: var(--muted); font-size: 0.9rem; margin: 0; }
.footer-top { color: var(--accent); font-size: 0.9rem; font-weight: 600; }
.footer-top:hover { text-decoration: underline; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 68px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-menu li { padding: 6px 0; }
  .nav-cta { display: inline-block; }
  .hero-stats { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .vision-points { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
