/* ==========================================================================
   Smart Systems Group Inc. — Site Stylesheet
   ========================================================================== */

:root {
  /* Brand palette (sampled from approved logo artwork) */
  --navy-950: #071b33;
  --navy-900: #0b2a47;
  --navy-800: #123a5e;
  --navy-700: #1c4c78;
  --navy-600: #2c628f;
  --red-700: #b71c1c;
  --red-600: #e02423;
  --red-500: #ef4444;
  --red-50: #fdecec;

  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --bg-dark: var(--navy-950);
  --bg-dark-alt: #0f2a49;

  --text: #14202f;
  --text-muted: #55677c;
  --text-on-dark: #eef3fa;
  --text-on-dark-muted: #a9bbd1;

  --border: #e3e9f1;
  --border-dark: #1f3a5c;

  --shadow-sm: 0 1px 3px rgba(7, 27, 51, 0.08), 0 1px 2px rgba(7, 27, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(7, 27, 51, 0.10), 0 2px 6px rgba(7, 27, 51, 0.06);
  --shadow-lg: 0 20px 48px rgba(7, 27, 51, 0.16), 0 6px 16px rgba(7, 27, 51, 0.08);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

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

  --container-w: 1180px;
  --header-h: 80px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-950);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.7rem, 2.4vw + 1rem, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { color: var(--text-muted); }

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

section { padding: 96px 0; }

@media (max-width: 720px) {
  section { padding: 64px 0; }
}

.section-bg-alt { background: var(--bg-alt); }
.section-bg-dark {
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
  color: var(--text-on-dark);
}
.section-bg-dark h2, .section-bg-dark h3, .section-bg-dark h4 { color: #fff; }
.section-bg-dark p { color: var(--text-on-dark-muted); }

/* ---------- Section heading helper ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red-600);
  border-radius: 2px;
}
.section-bg-dark .eyebrow { color: #ff6b6a; }

.section-head {
  max-width: 680px;
  margin-bottom: 52px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--red-600);
  color: #fff;
  box-shadow: 0 10px 24px rgba(224, 36, 35, 0.32);
}
.btn-primary:hover { background: var(--red-700); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(224, 36, 35, 0.38); }

.btn-outline {
  background: transparent;
  color: var(--navy-950);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--navy-900); background: var(--bg-alt); transform: translateY(-2px); }

.section-bg-dark .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.section-bg-dark .btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

.btn-light {
  background: #fff;
  color: var(--navy-950);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 38px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy-900);
  position: relative;
  padding: 8px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red-600);
  transition: width 0.25s ease;
  border-radius: 2px;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--red-600); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy-950);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 24px 26px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--bg-alt); }
  .header-actions .btn-primary { padding: 10px 18px; font-size: 0.85rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 20% 0%, rgba(224,36,35,0.16), transparent 55%),
              linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-alt) 65%, #113456 100%);
  color: #fff;
  padding: 110px 0 120px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 6px 6px, rgba(255,255,255,0.10) 1.5px, transparent 1.5px);
  background-size: 34px 34px;
  opacity: 0.5;
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
  color: #ffd9d9;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--red-500); }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-on-dark-muted);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .glow-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(6px);
  width: 100%;
  max-width: 420px;
}
.hero-visual .glow-card img { width: 100%; height: auto; }

@media (max-width: 900px) {
  .hero { padding: 84px 0 76px; }
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { display: none; }
}

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--navy-900);
  color: #fff;
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-grid .stat-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  color: #fff;
}
.stats-grid .stat-label {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  margin-top: 6px;
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
}

/* ---------- Grids & Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--red-50);
  color: var(--red-600);
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy-900);
}
.card-link svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform 0.2s ease; }
.card:hover .card-link svg,
.card-link:hover svg { transform: translateX(3px); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  color: var(--navy-800);
  border: 1px solid var(--border);
}

/* ---------- Feature list (check items) ---------- */
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 0.98rem;
}
.check-list li svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--red-600);
}

/* ---------- Value / icon row ---------- */
.value-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
@media (max-width: 960px) { .value-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .value-row { grid-template-columns: 1fr; } }
.value-item { text-align: left; }
.value-item .card-icon { background: rgba(255,255,255,0.08); color: #ff8483; }
.section-bg-dark .value-item h4 { color: #fff; margin-bottom: 8px; }
.value-item p { font-size: 0.92rem; }

/* ---------- Service / Product detail sections ---------- */
.detail-row {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.detail-row.reverse { grid-template-columns: 1.05fr 0.95fr; }
.detail-row.reverse .detail-visual { order: 2; }
@media (max-width: 900px) {
  .detail-row, .detail-row.reverse { grid-template-columns: 1fr; }
  .detail-row.reverse .detail-visual { order: 0; }
}
.detail-visual {
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.detail-visual svg { width: 100%; max-width: 260px; height: auto; }
.detail-block + .detail-block { margin-top: 90px; }
.service-anchor { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--red-700), var(--red-600));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.88); max-width: 460px; }
.cta-banner .btn-light:hover { color: var(--red-700); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--text-on-dark-muted);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 34px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 300px; margin-bottom: 18px; }
.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff8483;
}
.footer-col h4 { color: #fff; font-size: 0.92rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li { font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--navy-900);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 4px rgba(28, 76, 120, 0.12);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.form-status.is-visible { display: block; }
.form-status.success { background: #e8f7ef; color: #1a7a45; border: 1px solid #bfe9d3; }
.form-status.error { background: #fdecec; color: var(--red-700); border: 1px solid #f6c6c6; }

/* ---------- Contact info cards ---------- */
.contact-info-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .card-icon { width: 44px; height: 44px; margin-bottom: 0; flex-shrink: 0; }
.contact-info-item .card-icon svg { width: 20px; height: 20px; }
.contact-info-item h4 { margin-bottom: 4px; font-size: 0.98rem; }
.contact-info-item p, .contact-info-item a { font-size: 0.92rem; }
.contact-info-item a:hover { color: var(--red-600); }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
  color: #fff;
  padding: 76px 0 68px;
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 620px; margin: 16px auto 0; color: var(--text-on-dark-muted); font-size: 1.05rem; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: #fff; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
/* Content is visible by default (no-JS / JS-failure safe).
   Only once main.js confirms it's running do we hide-then-reveal for the animation. */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy-950);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 2000;
}
.skip-link:focus { left: 16px; top: 16px; }

::selection { background: var(--red-600); color: #fff; }
