/* ==========================================================================
   Comtech Solutions, Inc. (CSI) — Website Styles
   Design: precision-time / engineering. Navy + steel with signal-amber accent.
   ========================================================================== */

:root {
  --navy:        #0b2545;   /* primary — deep, trustworthy */
  --steel:       #13315c;   /* secondary surface */
  --slate:       #134074;   /* mid blue */
  --sky:         #8da9c4;   /* muted blue-grey */
  --mist:        #eef4fa;   /* light section bg */
  --paper:       #ffffff;
  --ink:         #16202e;   /* body text */
  --ink-soft:    #4a5a6e;
  --amber:       #f4a300;   /* signal accent */
  --amber-deep:  #d98700;
  --line:        #dbe4ee;
  --radius:      4px;
  --shadow-sm:   0 1px 3px rgba(11,37,69,.08);
  --shadow-md:   0 10px 30px rgba(11,37,69,.10);
  --shadow-lg:   0 24px 60px rgba(11,37,69,.16);
  --maxw:        1200px;
  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head:   'Space Grotesk', 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--slate); text-decoration: none; transition: color .2s; }
a:hover { color: var(--amber-deep); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Eyebrow / signature tick motif ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber-deep); margin: 0 0 16px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--amber);
  position: relative;
}
.eyebrow.on-dark { color: var(--amber); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer; transition: all .2s; letter-spacing: .01em;
}
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-deep); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-outline.on-dark { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 20px; letter-spacing: -.02em; }
.brand-logo { width: 46px; height: 46px; flex: none; object-fit: contain; display: block; }
.footer-brand .brand-logo { width: 42px; height: 42px; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-soft); letter-spacing: .04em; font-family: var(--font-body); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--ink); }
.nav-links a:hover, .nav-links a.active { color: var(--amber-deep); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, #071b34 0%, #0b2545 45%, #134074 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 82% 30%, rgba(244,163,0,.14), transparent 42%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='29'/%3E%3Cpath d='M30 4v6M30 50v6M4 30h6M50 30h6'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 92px 0 96px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 4.6vw, 3.85rem); margin: 0 0 20px; letter-spacing: -.025em; }
.hero h1 .accent { color: var(--amber); }
.hero p.lead { font-size: 1.2rem; color: #cdd9e8; max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual {
  position: relative; border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3; background: #0a1f3a;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(11,37,69,.85); backdrop-filter: blur(6px);
  color: #fff; padding: 12px 18px; border-radius: var(--radius);
  font-family: var(--font-head); font-size: 13px; font-weight: 500; letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.12);
}
.hero-badge b { color: var(--amber); }

/* trust strip */
.trust-strip { background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); }
.trust-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.trust-item { display: flex; align-items: center; gap: 12px; color: #cdd9e8; font-size: 14.5px; }
.trust-item b { color: #fff; font-family: var(--font-head); }
.trust-item .num { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--amber); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 88px 0; }
.section.tint { background: var(--mist); }
.section.dark { background: var(--navy); color: #eaf1f8; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 0 0 16px; }
.section-head p { font-size: 1.1rem; color: var(--ink-soft); margin: 0; }
.section.dark .section-head p { color: #bccbdd; }

/* ---- Solutions grid ---- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--sky); }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--mist); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-media.contain { background: #fff; }
.card-media.contain img { object-fit: contain; padding: 14px; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.28rem; margin: 0 0 10px; }
.card-body p { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 18px; flex: 1; }
.card-link { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--amber-deep); display: inline-flex; align-items: center; gap: 6px; }
.card-link::after { content: "→"; transition: transform .2s; }
.card:hover .card-link::after { transform: translateX(4px); }

/* ---- Feature split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 5/4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 18px; }
.split-body p { color: var(--ink-soft); margin: 0 0 16px; }
.split.dark-media .split-body p { color: #bccbdd; }

/* ---- Values / philosophy ---- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 28px 24px;
}
.value .vnum { font-family: var(--font-head); color: var(--amber); font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.value h3 { color: #fff; font-size: 1.2rem; margin: 12px 0 10px; }
.value p { color: #bccbdd; font-size: 14.5px; margin: 0; }

/* ---- Services rows ---- */
.svc-row { display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.svc-row:last-child { border-bottom: 0; }
.svc-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--mist); color: var(--slate); display: grid; place-items: center; }
.svc-ico svg { width: 26px; height: 26px; }
.svc-row h3 { font-size: 1.35rem; margin: 4px 0 8px; }
.svc-row p { color: var(--ink-soft); margin: 0; }

/* ---- Product grid ---- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prod {
  border: 1px solid var(--line); border-radius: 8px; padding: 30px 26px;
  background: var(--paper); transition: box-shadow .25s, transform .25s;
}
.prod.has-img { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.prod:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.prod-ico { width: 48px; height: 48px; color: var(--amber-deep); margin-bottom: 16px; }
.prod-ico svg { width: 48px; height: 48px; }
.prod h3 { font-size: 1.18rem; margin: 0 0 10px; }
.prod p { color: var(--ink-soft); font-size: 15px; margin: 0; }
/* Uniform product photo: same size, white background, contained */
.prod-img {
  width: 100%; aspect-ratio: 16/10; background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.prod-img img { max-width: 82%; max-height: 78%; width: auto; height: auto; object-fit: contain; }
.prod.has-img .prod-body { padding: 24px 26px 28px; }
.prod.has-img h3 { margin-top: 0; }

/* ---- Partners ---- */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.partner {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 26px 22px; transition: border-color .2s, box-shadow .2s;
}
.partner:hover { border-color: var(--sky); box-shadow: var(--shadow-sm); }
.partner h3 { font-size: 1.12rem; margin: 0 0 8px; color: var(--navy); }
.partner p { font-size: 13.8px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* Partner card with logo */
.partner-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 30px 32px; display: flex; flex-direction: column; gap: 16px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.partner-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--sky); }
.partner-logo-wrap {
  height: 64px; display: flex; align-items: center; justify-content: flex-start;
}
.partner-logo-wrap img { max-height: 58px; max-width: 190px; width: auto; object-fit: contain; }
.partner-card h3 { font-size: 1.2rem; margin: 0; color: var(--navy); }
.partner-card p { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.6; }
.partner-logo-text {
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--navy);
  letter-spacing: -.01em;
}
.partner-logo-text span { color: var(--amber-deep); }

/* ---- Projects gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 1; background: var(--mist); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.08); }
.gallery-tall { grid-row: span 2; aspect-ratio: 1/2 !important; }

/* ---- Clients ---- */
.client-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; align-items: center; }
.client-grid img { filter: grayscale(1); opacity: .72; transition: .3s; width: 100%; aspect-ratio: 1; object-fit: contain; }
.client-grid img:hover { filter: grayscale(0); opacity: 1; }
.industry-tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.industry-tags span {
  font-family: var(--font-head); font-size: 14px; font-weight: 500;
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 100px;
  color: var(--slate); background: var(--paper);
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(120deg, #0b2545, #134074);
  color: #fff; border-radius: 12px; padding: 56px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(244,163,0,.22), transparent 70%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 14px; position: relative; }
.cta-band p { color: #cdd9e8; font-size: 1.12rem; margin: 0 auto 28px; max-width: 620px; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* ==========================================================================
   PAGE HERO (interior)
   ========================================================================== */
.page-hero {
  background: linear-gradient(120deg, #071b34, #0b2545 60%, #134074);
  color: #fff; padding: 72px 0 66px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 20%, rgba(244,163,0,.14), transparent 45%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3rem); margin: 0 0 14px; }
.page-hero p { color: #cdd9e8; font-size: 1.15rem; max-width: 640px; margin: 0; }
.breadcrumb { font-size: 13.5px; color: var(--sky); margin-bottom: 18px; font-family: var(--font-head); }
.breadcrumb a { color: var(--sky); }
.breadcrumb a:hover { color: #fff; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.info-block { margin-bottom: 28px; }
.info-block h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-deep); margin: 0 0 8px; }
.info-block p { margin: 0; color: var(--ink); }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--font-head); font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--navy); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15.5px; color: var(--ink); background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(19,64,116,.12);
}
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
.map-embed { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #071b34; color: #aebfd2; padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { color: #8da9c4; max-width: 300px; margin: 0 0 18px; font-size: 14.5px; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; font-family: var(--font-head); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #aebfd2; font-size: 14.5px; }
.footer-col a:hover { color: var(--amber); }
.social { display: flex; gap: 12px; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; color: #aebfd2; }
.social a:hover { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #7c92a9; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 72px; }
  .hero-visual { max-width: 560px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .grid-3, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(5, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }

  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 18px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .container { padding: 0 20px; }
  .grid-3, .grid-2, .prod-grid, .value-grid, .partner-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .brand small { display: none; }

  /* Trust strip: clean 2x2 grid instead of uneven wrap */
  .trust-strip .container { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .trust-item .num { font-size: 22px; }
  .trust-item { font-size: 13.5px; }

  /* Stack CTA / hero buttons full-width so they never overflow */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Comfortable tap targets */
  .btn { padding: 15px 24px; }
  .nav-links.open a { padding: 15px 0; }

  /* Headings scale down a touch more on small screens */
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .partner-logo-wrap img { max-width: 160px; }
}

@media (max-width: 400px) {
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 16px; }
}
