/* ==========================================================================
   Famlinx Solutions — Site Stylesheet
   Brand: white background, near-black text, blue highlights (logo colors)
   ========================================================================== */

:root {
  --blue: #0389fb;
  --blue-dark: #00449e;
  --blue-light: #e7f2ff;
  --ink: #14181f;
  --ink-soft: #4a5160;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 40, 100, 0.08);
  --shadow-sm: 0 4px 14px rgba(0, 40, 100, 0.06);
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-dark); text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  color: var(--blue-dark);
  background: var(--blue-light);
  border: 1px solid #cfe6ff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section {
  padding: 76px 0;
}

.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 700px;
  margin: 0 0 44px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(3, 137, 251, 0.32);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}
.btn-secondary:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-1px); }

.btn-light {
  background: var(--white);
  color: var(--blue-dark);
}
.btn-light:hover { background: var(--blue-light); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-dark);
  border-bottom-color: var(--blue);
}

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-mobile-cta { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(0, 27, 66, 0.93) 0%, rgba(0, 55, 128, 0.86) 45%, rgba(3, 137, 251, 0.72) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 120px 0 96px;
}

.hero.hero-page .hero-inner { padding: 88px 0 76px; }

.hero h1 { color: var(--white); max-width: 820px; }
.hero p.lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  max-width: 640px;
}
.hero p.support {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.98rem;
}

.trust-strip {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Two column layout ---------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split .media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3.1;
}

.split.reverse .media { order: 2; }
.split.reverse .text { order: 1; }

/* Cards ------------------------------------------------------------------ */

.grid {
  display: grid;
  gap: 26px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #cfe6ff;
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

.card-numbered {
  position: relative;
  border-top: 3px solid var(--blue);
}
.card-numbered .num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: block;
}

/* Point list with check icon --------------------------------------------- */

.point-list { list-style: none; margin: 0; padding: 0; }
.point-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  color: var(--ink-soft);
}
.point-list li svg { flex: none; margin-top: 3px; }

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 30px;
}

/* Why choose / feature blocks --------------------------------------------- */

.feature {
  display: flex;
  gap: 18px;
}
.feature .icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { font-size: 0.95rem; margin-bottom: 0; }

/* Industries ------------------------------------------------------------- */

.tag-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.tag-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tag-card:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Process ------------------------------------------------------------------ */

.process-list { counter-reset: step; display: grid; gap: 0; }
.process-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.process-item:last-child { border-bottom: none; }
.process-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-item h3 { margin-bottom: 6px; }
.process-item p { margin-bottom: 0; }

/* Testimonials -------------------------------------------------------------- */

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.stars { color: var(--blue); font-size: 0.9rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p.quote {
  font-size: 0.92rem;
  color: var(--ink-soft);
  flex: 1;
}
.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-dark);
  background-image: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.testimonial-person .who { font-size: 0.85rem; }
.testimonial-person .name { font-weight: 700; color: var(--ink); display: block; }
.testimonial-person .loc { color: var(--ink-soft); }

/* CTA band ------------------------------------------------------------------ */

.cta-band {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: var(--white);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; }

/* Stats -------------------------------------------------------------------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  text-align: center;
  padding: 24px 12px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--blue-dark);
  display: block;
}
.stat .label { font-size: 0.88rem; color: var(--ink-soft); }

/* Values grid ---------------------------------------------------------- */

.value-card {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 20px;
}
.value-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.value-card p { margin-bottom: 0; font-size: 0.94rem; }

/* Service detail blocks -------------------------------------------------- */

.service-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.service-block + .service-block { margin-top: 24px; }
.service-block .num-tag {
  display: inline-block;
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.service-benefits {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.service-benefits li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: flex;
  gap: 8px;
}
.service-benefits li svg { flex: none; margin-top: 4px; }

/* Contact page ------------------------------------------------------------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.contact-detail {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail .icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-detail h4 { margin: 0 0 4px; font-size: 0.95rem; }
.contact-detail p { margin: 0; font-size: 0.94rem; }

.map-wrap {
  margin-top: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 7px;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  font-family: var(--font);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--bg-alt);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.consent input { margin-top: 4px; }

.privacy-line { font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.94rem;
  margin-bottom: 20px;
}
.form-status.success { background: #e6f7ec; color: #146c3a; border: 1px solid #b8e6c8; }
.form-status.error { background: #fdecec; color: #a12727; border: 1px solid #f4c1c1; }

/* Footer -------------------------------------------------------------------- */

.site-footer {
  background: #071427;
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand img { height: 30px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255, 255, 255, 0.62); font-size: 0.92rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 10px;
}

/* Utility --------------------------------------------------------------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .tag-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-track { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 50;
  }
  .nav.open .nav-mobile-cta {
    display: inline-flex;
    margin-top: 4px;
  }
  .split { grid-template-columns: 1fr; }
  .split .media { order: -1 !important; }
  .split.reverse .text { order: 0; }
  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .tag-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-track { grid-template-columns: 1fr; }
  .process-item { grid-template-columns: 52px 1fr; }
  .cta-band { padding: 40px 24px; }
  .service-benefits { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
}
