/* ==========================================================================
   FEESQAL SP Z O O — stylesheet
   ========================================================================== */

:root {
  --ink: #16232E;
  --ink-soft: #2A3B4A;
  --paper: #F5F6F4;
  --paper-alt: #ECEEEA;
  --teal: #2E6F6E;
  --teal-dark: #21514F;
  --gold: #B98B4E;
  --line: #D9DCD6;
  --grey: #5B6470;
  --grey-light: #8A9099;
  --white: #FFFFFF;
  --radius: 4px;
  --max-width: 1180px;
  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

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

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

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

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--teal);
  margin: 0 0 0.75em;
  font-weight: 600;
}

.section-lead {
  color: var(--grey);
  max-width: 540px;
  font-size: 1.05rem;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-small { padding: 9px 18px; font-size: 0.85rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 246, 244, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand-mark { color: var(--teal); display: inline-flex; }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--teal);
  transition: right 0.25s ease;
}
.main-nav a:hover::after { right: 0; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.hero {
  padding: 88px 0 96px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  color: var(--ink);
  max-width: 15ch;
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 28px 0 44px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-stats dt {
  font-size: 0.78rem;
  color: var(--grey-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
}

.hero-graphic {
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
}
#netNodes circle { fill: var(--ink); }
#netNodes circle.accent { fill: var(--gold); }

/* ---------- sections ---------- */

.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* about */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.about-label h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); max-width: 11ch; }
.about-body p { font-size: 1.02rem; max-width: 62ch; }

/* services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--paper-alt);
  padding: 34px 30px;
  transition: background 0.2s ease;
}
.section-alt .service-card { background: var(--paper); }
.service-card:hover { background: var(--white); }

.service-icon {
  display: inline-flex;
  color: var(--teal);
  margin-bottom: 18px;
}
.service-icon svg { width: 36px; height: 36px; }

.service-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5em;
  color: var(--ink);
}
.service-card p { font-size: 0.96rem; margin: 0; }

/* why */

.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.why-copy h2 { max-width: 11ch; }

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
}
.why-list li {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.why-list h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.4em;
}
.why-list p { font-size: 0.96rem; margin: 0; }

/* contact */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.contact-details {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.contact-details li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.detail-label {
  color: var(--grey-light);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 2px;
}
.contact-details a { font-weight: 600; }

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

.form-row { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-row .optional { color: var(--grey-light); font-weight: 400; }

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--teal);
  outline: none;
}
.form-row.has-error input,
.form-row.has-error textarea {
  border-color: #B4453F;
}

.field-error {
  display: block;
  min-height: 1.1em;
  color: #B4453F;
  font-size: 0.82rem;
  margin-top: 5px;
}

.form-submit { width: 100%; margin-top: 4px; }

.form-status {
  margin: 14px 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.success { color: var(--teal-dark); font-weight: 600; }
.form-status.error { color: #B4453F; font-weight: 600; }

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

.site-footer {
  background: var(--ink);
  color: #C7CCD1;
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand { display: flex; gap: 12px; }
.footer-brand .brand-mark { color: var(--gold); }
.footer-name {
  font-family: var(--font-head);
  color: var(--white);
  font-weight: 600;
  margin: 0 0 4px;
}
.footer-address { margin: 0; font-size: 0.88rem; color: #9AA2AB; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a { color: #C7CCD1; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--white); }

.footer-legal { font-size: 0.85rem; color: #8B929B; text-align: right; }
.footer-legal p { margin: 0 0 6px; color: inherit; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-graphic { order: -1; max-width: 300px; }
  .about-grid,
  .why-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-legal { text-align: left; }
}

@media (max-width: 700px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: block;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .main-nav.open ul {
    flex-direction: column;
    gap: 0;
    padding: 0 24px;
  }
  .main-nav.open li { border-bottom: 1px solid var(--line); }
  .main-nav.open a { display: block; padding: 14px 0; }

  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .service-grid { grid-template-columns: 1fr; }
  .contact-details li { grid-template-columns: 1fr; gap: 4px; }
}
