/* ==========================================================================
   Combine Solutions — Design System
   ========================================================================== */

:root {
  /* Brand palette */
  --navy: #142D4E;          /* Primary: header logo, footer, headings */
  --navy-700: #0E2240;      /* Darker navy for hover on primary buttons */
  --navy-600: #1C3A63;      /* Slightly lighter navy for surfaces on navy */
  --blue: #60A5FA;          /* Secondary: icons, accents, highlights */
  --blue-600: #2563EB;      /* Accessible link/text blue on white (5.2:1) */
  --blue-700: #1D4ED8;      /* Link hover on white */
  --blue-50: #EFF6FF;       /* Very light blue: section backgrounds */
  --blue-100: #DBEAFE;      /* Light tint for borders/hover on blue-50 */
  --white: #FFFFFF;

  /* Text */
  --text: #1E293B;          /* Dark slate body text */
  --text-muted: #64748B;    /* Muted slate secondary text */
  --text-on-navy: #CBD5E1;  /* Readable body text on navy (9.6:1) */

  /* Lines */
  --border: #E2E8F0;

  /* Focus ring */
  --focus: #60A5FA;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-3xl: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --fs-hero: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem);

  /* Spacing & shape */
  --space-section: clamp(4rem, 3rem + 4vw, 6.5rem);
  --container: 1180px;
  --gutter: 1.25rem;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  /* Restrained shadows */
  --shadow-sm: 0 1px 2px rgba(20, 45, 78, 0.06);
  --shadow: 0 4px 16px -4px rgba(20, 45, 78, 0.10), 0 1px 3px rgba(20, 45, 78, 0.06);
  --shadow-lg: 0 12px 32px -8px rgba(20, 45, 78, 0.16);

  --transition: 160ms ease;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { text-wrap: balance; color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-section) 0; }
.section--tint { background: var(--blue-50); }

.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: var(--fs-3xl); }
.section-head p { color: var(--text-muted); font-size: var(--fs-lg); margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0.7rem 1.4rem;
  font: inherit; font-weight: 600; font-size: var(--fs-base); line-height: 1.2;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-700); color: var(--white); box-shadow: var(--shadow); }

.btn--secondary { background: var(--white); color: var(--navy); border-color: var(--blue); }
.btn--secondary:hover { background: var(--blue-50); color: var(--navy); border-color: var(--navy); }

/* On navy backgrounds */
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--blue-50); color: var(--navy); }
.btn--outline-light { background: transparent; color: var(--white); border-color: var(--blue); }
.btn--outline-light:hover { background: rgba(96, 165, 250, 0.14); color: var(--white); }

.on-navy :focus-visible { outline-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(8px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--navy); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo:hover { color: var(--navy); text-decoration: none; }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo span small { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); line-height: 1; margin-top: 2px; }
.logo span { line-height: 1.1; }

.nav-list { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  position: relative; display: block; padding: 0.5rem 0.85rem;
  color: var(--navy); font-weight: 500; font-size: 0.95rem;
}
.nav-link::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.15rem;
  height: 2px; border-radius: 2px; background: var(--blue);
  transform: scaleX(0); transition: transform var(--transition);
}
.nav-link:hover { color: var(--blue-600); text-decoration: none; }
.nav-link:hover::after, .nav-link[aria-current="true"]::after { transform: scaleX(1); }
.nav-link[aria-current="true"] { color: var(--navy); font-weight: 600; }

.header-cta { margin-left: 0.75rem; }
.header-cta .btn { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.95rem; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem var(--gutter) 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--border); }
  .nav-link::after { display: none; }
  .nav-link[aria-current="true"] { color: var(--blue-600); }
  .header-cta { margin: 1rem 0 0; }
  .header-cta .btn { width: 100%; min-height: 48px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-50) 100%);
  padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0 clamp(3.5rem, 2rem + 5vw, 6rem);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: var(--fs-hero); letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.highlight {
  color: var(--blue-600);
  background-image: linear-gradient(transparent 70%, rgba(96, 165, 250, 0.28) 70%);
  padding: 0 0.08em;
}
.hero-lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2.25rem; color: var(--text-muted); font-size: var(--fs-sm); }
.hero-trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-trust svg { width: 18px; height: 18px; color: var(--blue-600); flex: none; }

.hero-shape {
  position: absolute; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.22) 0%, rgba(96, 165, 250, 0) 70%);
  pointer-events: none;
}
.hero-shape--1 { width: 620px; height: 620px; right: -180px; top: -200px; }
.hero-shape--2 { width: 360px; height: 360px; left: -160px; bottom: -180px; }
.hero > .container { position: relative; z-index: 1; }

.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 18px 36px rgba(20, 45, 78, 0.14)); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Products ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.product-card::before {
  content: ""; position: absolute; top: -1px; left: 1.75rem; right: 1.75rem; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--blue);
  opacity: 0; transition: opacity var(--transition);
}
.product-card:hover, .product-card:focus-within {
  background: var(--blue-50); border-color: var(--blue-100);
  box-shadow: var(--shadow); transform: translateY(-3px);
}
.product-card:hover::before, .product-card:focus-within::before { opacity: 1; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--blue-50); color: var(--blue-600);
  border: 1px solid var(--blue-100);
  margin-bottom: 1.25rem;
  transition: background-color var(--transition);
}
.product-card:hover .icon-badge { background: var(--white); }
.icon-badge svg { width: 26px; height: 26px; }

.product-card h3 { font-size: var(--fs-xl); margin-bottom: 0.4rem; }
.product-card .tagline { font-size: var(--fs-sm); font-weight: 600; color: var(--blue-600); margin-bottom: 0.85rem; }
.product-card p { color: var(--text-muted); }

.feature-list { margin: 0.25rem 0 1.5rem; display: grid; gap: 0.55rem; }
.feature-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; color: var(--text); }
.feature-list svg { width: 18px; height: 18px; color: var(--blue); flex: none; margin-top: 0.2rem; }

.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; }
.card-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.card-link:hover svg { transform: translateX(3px); }

/* ---------- Custom Software (navy feature) ---------- */
.feature-navy { background: var(--navy); color: var(--text-on-navy); position: relative; overflow: hidden; }
.feature-navy::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(96, 165, 250, 0.16) 0, rgba(96, 165, 250, 0) 40%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
}
.feature-navy > .container { position: relative; }
.feature-navy h2, .feature-navy h3 { color: var(--white); }
.feature-navy .eyebrow { color: var(--blue); }
.feature-navy a:not(.btn) { color: var(--blue); }
.feature-navy a:not(.btn):hover { color: var(--white); }

.custom-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
.custom-intro h2 { font-size: var(--fs-3xl); }
.custom-intro p { font-size: var(--fs-lg); }
.custom-intro .btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.service {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: background-color var(--transition), border-color var(--transition);
}
.service:hover { background: rgba(96, 165, 250, 0.08); border-color: rgba(96, 165, 250, 0.4); }
.service svg { width: 28px; height: 28px; color: var(--blue); margin-bottom: 0.9rem; }
.service h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.service p { font-size: 0.95rem; margin: 0; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid rgba(255, 255, 255, 0.12); counter-reset: step; }
.process li { counter-increment: step; }
.process li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.08em;
  color: var(--blue); margin-bottom: 0.5rem;
}
.process h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.process p { font-size: 0.92rem; margin: 0; }

@media (max-width: 980px) {
  .custom-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .service-grid, .process { grid-template-columns: 1fr; }
}

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.why-item { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--white); }
.why-item .icon-badge { width: 44px; height: 44px; margin-bottom: 1rem; }
.why-item .icon-badge svg { width: 22px; height: 22px; }
.why-item h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.why-item p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: start; }
.contact-info h2 { font-size: var(--fs-3xl); }
.contact-info > p { color: var(--text-muted); font-size: var(--fs-lg); }
.contact-list { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.contact-list .icon-badge { width: 42px; height: 42px; margin: 0; flex: none; }
.contact-list .icon-badge svg { width: 20px; height: 20px; }
.contact-list strong { display: block; color: var(--navy); font-size: 0.95rem; }
.contact-list span, .contact-list a { font-size: 0.95rem; }
.contact-list span { color: var(--text-muted); }

.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.field .req { color: var(--blue-600); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem; min-height: 46px; width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #94A3B8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #CBD5E1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.35);
}
.form-note { font-size: var(--fs-sm); color: var(--text-muted); margin: 0.85rem 0 0; }
.form-status { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--navy); font-size: 0.95rem; }
.form-status[hidden] { display: none; }
.form-card .btn { width: 100%; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--text-on-navy); padding: 4rem 0 0; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer h2 { color: var(--white); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer .logo { color: var(--white); }
.site-footer .logo span small { color: var(--text-on-navy); }
.site-footer .logo { --mark-bg: var(--navy-600); }
.footer-about p { margin-top: 1rem; max-width: 320px; }
.footer-links { display: grid; gap: 0.55rem; }
.site-footer a { color: var(--blue); }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-sm);
}
.site-footer :focus-visible { outline-color: var(--white); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
