/* ==========================================================================
   Assi Intermediari — base styles
   Palette sampled directly from the brand logo (navy / teal / cyan).
   ========================================================================== */

:root {
  --navy-900: #142644;
  --navy-800: #1c3559;
  --navy-700: #274b7a;   /* brand navy — matches logo wordmark exactly */
  --navy-600: #33619c;
  --teal-600: #0b93ad;
  --cyan-500: #12c4de;
  --cyan-050: #eafbfd;

  --ink: #16233b;
  --slate-600: #52607a;
  --slate-400: #8b96ab;
  --slate-200: #e3e8f0;
  --slate-100: #eef1f6;
  --slate-050: #f8fafc;
  --white: #ffffff;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 38, 68, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(20, 38, 68, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(20, 38, 68, 0.28);

  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

p { margin: 0 0 1em; color: var(--slate-600); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--navy-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-800); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--slate-200);
}
.btn-ghost:hover { border-color: var(--navy-600); background: var(--slate-050); }

.btn-light {
  background: #fff;
  color: var(--navy-800);
}
.btn-light:hover { background: var(--cyan-050); }

.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 34px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--slate-600);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--navy-700); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin-inline: auto;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 88px 96px;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(480px 320px at 15% 20%, rgba(18, 196, 222, 0.16), transparent 70%),
    radial-gradient(560px 360px at 85% 0%, rgba(39, 75, 122, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  max-width: 16ch;
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 46ch;
  color: var(--slate-600);
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-visual { display: flex; justify-content: center; }

.hero-visual-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(165deg, #ffffff 0%, var(--cyan-050) 100%);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.hero-visual-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-visual-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--navy-800);
  font-size: 0.95rem;
}
.hero-visual-list .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-500), var(--teal-600));
  flex-shrink: 0;
}

/* ---------- trust strip ---------- */

.trust {
  border-block: 1px solid var(--slate-100);
  background: var(--slate-050);
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-block: 28px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
}
.trust-item svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--teal-600);
}

/* ---------- generic section ---------- */

.section { padding-block: 96px; }
.section-tinted { background: var(--slate-050); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.section-lead { font-size: 1.05rem; }

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

/* ---------- services / cards ---------- */

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

.card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { font-size: 0.94rem; margin-bottom: 0; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan-050), #dff6f8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; color: var(--teal-600); }

/* ---------- why grid ---------- */

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

.why-item {
  padding: 26px 4px;
  border-top: 2px solid var(--navy-700);
}
.why-item h3 { font-size: 1.05rem; }
.why-item p { font-size: 0.94rem; margin-bottom: 0; }

/* ---------- process ---------- */

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid var(--slate-200);
}

.process-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan-500);
  margin-bottom: 10px;
}
.process-step h3 { font-size: 1.05rem; }
.process-step p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--teal-600) 130%);
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 56px;
  flex-wrap: wrap;
}
.cta-banner-inner h2 { color: #fff; font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 6px; }
.cta-banner-inner p { color: rgba(255, 255, 255, 0.85); margin: 0; max-width: 46ch; }

/* ---------- contact ---------- */

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--navy-800);
}
.contact-list svg { width: 22px; height: 22px; color: var(--teal-600); flex-shrink: 0; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--teal-600); }

.contact-form {
  background: var(--slate-050);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--navy-800); }

.form-row input,
.form-row textarea {
  font: inherit;
  padding: 11px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(11, 147, 173, 0.15);
}

.form-note {
  min-height: 1.2em;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
  color: var(--teal-600);
}
.form-note.error { color: #c0392b; }

/* ---------- footer ---------- */

.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.75); }

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding-block: 64px 40px;
}

.footer-brand img { height: 32px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: rgba(255, 255, 255, 0.55); max-width: 34ch; font-size: 0.9rem; }

.footer-nav { display: flex; gap: 64px; }
.footer-nav h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { text-decoration: none; color: rgba(255, 255, 255, 0.65); font-size: 0.92rem; }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 22px;
}
.footer-bottom p { margin: 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual-card { max-width: 460px; }

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

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

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }

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

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--slate-100);
    box-shadow: var(--shadow-md);
    padding: 8px 24px 20px;
  }
  .site-header.nav-open .main-nav ul { flex-direction: column; gap: 4px; }
  .site-header.nav-open .main-nav a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid var(--slate-100);
  }

  .header-actions .btn-sm { display: none; }

  .hero { padding-block: 56px 64px; }
  .section { padding-block: 64px; }

  .services-grid,
  .why-grid,
  .process { grid-template-columns: 1fr; }

  .cta-banner-inner { flex-direction: column; align-items: flex-start; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { gap: 40px; }
}

@media (max-width: 480px) {
  .trust-inner { grid-template-columns: 1fr; }
  .footer-nav { flex-direction: column; gap: 28px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
