/* ==========================================================
   Bizlink Technologies, single-page site
   Palette tokens below are matched to the official logo
   (bright blue top, deep navy base, charcoal wordmark).
   ========================================================== */

:root {
  --navy-900: #001743;
  --navy-800: #0A2A66;
  --navy-700: #0D3578;
  --blue-700: #0047B3;
  --blue-600: #0B6BE0;
  --blue-500: #1A8CF8;
  --blue-300: #8CC6FB;
  --blue-100: #D6EAFE;
  --blue-50:  #EFF7FF;
  --ink:      #1D252B;
  --muted:    #55657F;
  --line:     #E2EAF6;
  --white:    #FFFFFF;
  --ok:       #157347;
  --err:      #B42318;

  --r-chip: 999px;
  --r-btn: 12px;
  --r-input: 12px;
  --r-card: 20px;
  --r-panel: 28px;

  --shadow-sm: 0 1px 2px rgba(10,42,102,.06), 0 6px 16px rgba(10,42,102,.05);
  --shadow-md: 0 14px 36px rgba(10,42,102,.12);

  --header-h: 72px;
  --font-head: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--blue-600); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-800);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.02rem; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--navy-800); color: #fff; padding: .7rem 1rem; border-radius: 10px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Icons ---------- */
.icon, .ic {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.icon.sm { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.4rem;
  font: 600 .95rem/1.2 var(--font-body);
  border: 2px solid transparent; border-radius: var(--r-btn);
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 8px 20px rgba(11,107,224,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11,107,224,.36); }
.btn-outline { color: var(--navy-800); border-color: var(--navy-800); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-light { color: var(--navy-800); background: #fff; box-shadow: 0 10px 24px rgba(0,23,67,.25); }
.btn-light:hover { transform: translateY(-2px); }
.btn-whatsapp { color: #fff; background: #128C4A; }
.btn-whatsapp:hover { background: #0E7640; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(10,42,102,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 40px; width: auto; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px;
  background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.nav-toggle .bar { display: block; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .22s, opacity .22s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  padding: 1rem 1.25rem 1.5rem;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(10,42,102,.1);
}
.primary-nav.is-open { display: block; }
.primary-nav ul { display: grid; gap: .25rem; margin-bottom: 1rem; }
.primary-nav a:not(.btn) {
  display: block; padding: .75rem .5rem;
  color: var(--navy-800); font-weight: 500; text-decoration: none; border-radius: 10px;
}
.primary-nav a:not(.btn):hover { background: var(--blue-50); }
.primary-nav a[aria-current="true"] { color: var(--blue-600); }
.nav-cta { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); background: #fff; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--blue-100) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
          mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
  opacity: .8;
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.blob-a { width: 420px; height: 420px; right: -120px; top: -140px; background: radial-gradient(circle, #8CC6FB, transparent 70%); }
.blob-b { width: 340px; height: 340px; left: -140px; bottom: -160px; background: radial-gradient(circle, #D6EAFE, transparent 70%); animation-delay: -6s; }
@keyframes drift { to { transform: translate3d(-30px, 24px, 0) scale(1.06); } }

.hero-grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.hero-copy { max-width: 36rem; }
.lead { margin-top: 1.25rem; font-size: 1.1rem; color: var(--muted); max-width: 34rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-art { width: 100%; height: auto; display: block; overflow: visible; }

.float { animation: float 7s ease-in-out infinite; transform-box: fill-box; }
.f2 { animation-delay: -1.8s; } .f3 { animation-delay: -3.6s; } .f4 { animation-delay: -5.2s; }
@keyframes float { 50% { transform: translateY(-9px); } }

/* the one orchestrated page-load moment: bars rise */
.hero-art .bar {
  transform-box: fill-box; transform-origin: bottom;
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(.25s + var(--i) * .07s);
}
@keyframes rise { from { transform: scaleY(0); } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.subtitle { margin-top: .85rem; font-size: 1.1rem; color: var(--muted); }

.card-ic {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  color: var(--blue-600); background: var(--blue-50);
  border: 1px solid var(--blue-100); border-radius: 16px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.card-ic.sm { width: 44px; height: 44px; border-radius: 14px; }

.card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--blue-600);
}
.card-link .icon { transition: transform .2s; }
.card-link:hover { color: var(--blue-700); }
.card-link:hover .icon { transform: translateX(3px); }

/* About */
.about-grid { display: grid; gap: 2.5rem; align-items: start; }
.about-copy h2 { margin-bottom: 1.25rem; }
.about-copy p { color: var(--muted); max-width: 36rem; }
.about-copy p + p { margin-top: 1rem; }

.approach {
  padding: 1.75rem; border-radius: var(--r-panel);
  background: linear-gradient(160deg, var(--blue-50), #fff 70%);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.approach-title { margin-bottom: 1.5rem; }
.flow { position: relative; display: grid; gap: 1.5rem; }
.flow::before {
  content: ""; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--blue-300) 0 6px, transparent 6px 12px);
}
.flow li { position: relative; display: flex; gap: 1.1rem; align-items: flex-start; }
.flow-ic {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  color: #fff; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); border-radius: 16px;
  box-shadow: 0 8px 18px rgba(11,107,224,.25);
}
.flow li p { margin-top: .2rem; color: var(--muted); font-size: .96rem; }
.flow li > div { padding-top: .35rem; }

/* Cards (services / why) */
.card-grid { display: grid; gap: 1.25rem; }
.card {
  position: relative; display: flex; flex-direction: column; gap: .9rem;
  padding: 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card p { color: var(--muted); font-size: .98rem; }
.card .card-link { margin-top: auto; padding-top: .5rem; }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.card:hover .card-ic, .card:focus-within .card-ic { color: #fff; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); border-color: transparent; }

.services { background: linear-gradient(180deg, var(--blue-50), #fff 85%); }

/* Solutions */
.solutions-grid { display: grid; gap: 1.25rem; }
.solution {
  display: flex; gap: 1.25rem; padding: 1.75rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.solution:hover, .solution:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.solution:hover .card-ic, .solution:focus-within .card-ic { color: #fff; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); border-color: transparent; }
.solution-body { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.solution-body p { color: var(--muted); font-size: .98rem; }
.solution-body .card-link { margin-top: auto; padding-top: .35rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li {
  padding: .3rem .75rem; font-size: .8rem; font-weight: 500; color: var(--navy-700);
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--r-chip);
}
.solution-custom { background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); border-color: transparent; }
.solution-custom h3 { color: #fff; }
.solution-custom p { color: #C9D8F5; }
.solution-custom .card-ic { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.solution-custom .card-link { color: #fff; }
.solution-custom:hover .card-ic { background: rgba(255,255,255,.2); }

.inline-cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem;
  margin-top: 2rem; padding: 1.75rem; border-radius: var(--r-panel);
  background: var(--blue-50); border: 1px solid var(--blue-100);
}
.inline-cta p { font: 600 1.2rem/1.35 var(--font-head); color: var(--navy-800); letter-spacing: -0.01em; }

/* Why */
.why { background: var(--navy-800); background-image: radial-gradient(900px 400px at 85% -10%, rgba(26,140,248,.28), transparent 60%); }
.why h2 { color: #fff; }
.why-card {
  display: flex; flex-direction: column; gap: .8rem; padding: 1.75rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-card);
  transition: background-color .22s, border-color .22s, transform .22s;
}
.why-card:hover { background: rgba(255,255,255,.1); border-color: rgba(140,198,251,.55); transform: translateY(-3px); }
.why-card h3 { color: #fff; }
.why-card p { color: #C9D8F5; font-size: .98rem; }
.why-card .card-ic { color: #fff; background: rgba(26,140,248,.3); border-color: rgba(140,198,251,.4); }

/* Process timeline (vertical on mobile) */
.timeline { position: relative; display: grid; gap: 1.75rem; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--blue-100); }
.timeline li { position: relative; padding-left: 4rem; }
.marker {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px;
  font: 600 1rem var(--font-head); color: #fff; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 0 0 6px #fff, 0 8px 16px rgba(11,107,224,.28);
}
.timeline li p { margin-top: .35rem; color: var(--muted); font-size: .96rem; }
.process { background: #fff; }

/* CTA */
.cta {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0; color: #fff; text-align: center;
  background: radial-gradient(700px 320px at 15% 0%, rgba(26,140,248,.55), transparent 65%), linear-gradient(135deg, var(--navy-800), var(--blue-700));
}
.cta-inner { max-width: 44rem; }
.cta h2 { color: #fff; }
.cta p { margin: 1rem auto 2rem; color: #D6EAFE; font-size: 1.1rem; }

/* Contact */
.contact { background: linear-gradient(180deg, #fff, var(--blue-50)); }
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.lead-sm { color: var(--muted); font-size: 1.05rem; max-width: 30rem; }
.contact-list { display: grid; gap: 1rem; margin: 2rem 0; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list .label { display: block; font-size: .8rem; color: var(--muted); }
.contact-list .value { font-weight: 600; color: var(--navy-800); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a.value:hover { color: var(--blue-600); text-decoration: underline; }

.form-card {
  padding: 1.5rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-panel); box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 0; }
label { display: block; margin-bottom: .4rem; font-size: .9rem; font-weight: 600; color: var(--navy-800); }
.req { color: var(--err); }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: .8rem .95rem;
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: #fff; border: 1.5px solid #CBD7EC; border-radius: var(--r-input);
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 130px; }
input:hover, select:hover, textarea:hover { border-color: var(--blue-300); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(26,140,248,.18); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
.err { min-height: 0; margin-top: .35rem; font-size: .85rem; color: var(--err); }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite;
}
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toasts */
.toasts { position: fixed; z-index: 300; right: 1rem; left: 1rem; bottom: 1rem; display: grid; gap: .6rem; justify-items: end; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: .75rem; align-items: flex-start;
  width: min(100%, 26rem); padding: .95rem 1rem; color: #fff; border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0,23,67,.3); animation: toast-in .3s ease both;
}
.toast.ok { background: var(--ok); }
.toast.error { background: var(--err); }
.toast p { flex: 1; font-size: .94rem; line-height: 1.45; }
.toast button { background: none; border: 0; color: inherit; cursor: pointer; padding: 2px; border-radius: 6px; }
.toast.leaving { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* Footer */
.site-footer { color: #C9D8F5; background: var(--navy-900); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; gap: 2.25rem; }
.logo-chip { display: inline-block; padding: .6rem .9rem; background: #fff; border-radius: 14px; margin-bottom: 1.1rem; }
.logo-chip img { height: 40px; width: auto; }
.footer-brand p { max-width: 24rem; font-size: .96rem; }
.footer-brand .tagline { margin-top: 1rem; font: 600 1rem var(--font-head); color: #fff; }
.site-footer h3 { margin-bottom: 1rem; font-size: 1rem; color: #fff; }
.site-footer li + li { margin-top: .55rem; }
.site-footer a { color: #C9D8F5; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }

/* ---------- Scroll reveal (only when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .card-grid.services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .inline-cta { flex-direction: row; align-items: center; justify-content: space-between; }
  .form-card { padding: 2rem; }
  .toasts { left: auto; }
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr .8fr 1.2fr; gap: 3rem; }
}

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex; position: static; align-items: center; gap: 1.25rem;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .primary-nav ul { display: flex; gap: .1rem; margin: 0; }
  .primary-nav a:not(.btn) { position: relative; padding: .5rem .7rem; font-size: .93rem; }
  .primary-nav a:not(.btn):hover { background: none; color: var(--blue-600); }
  .primary-nav a[aria-current="true"]::after {
    content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .1rem; height: 2px; border-radius: 2px; background: var(--blue-600);
  }
  .nav-cta { width: auto; padding: .7rem 1.1rem; font-size: .9rem; }

  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
  .card-grid.services-grid, .why-grid { grid-template-columns: repeat(3, 1fr); }

  /* horizontal timeline */
  .timeline { grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
  .timeline::before { display: none; }
  .timeline li { padding: 4rem 0 0; }
  .timeline li:not(:last-child)::before {
    content: ""; position: absolute; top: 21px; left: 56px; right: -12px; height: 2px; background: var(--blue-100);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
