@import url("/fonts/fonts.css");

:root {
  --blue: #170df2;
  --blue-dark: #0f09a1;
  --lavender: #8782f6;
  --lavender-light: #c9c6ff;
  --pink: #f012d5;
  --pink-soft: #ffadff;
  --lime: #bada55;
  --grey: #e8e6e6;
  --grey-line: #757575;
  --ink: #000;
  --text: #1d1d1f;
  --muted: #55555c;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --header-h: 84px;
  --font: "Syne", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: #fff; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.05; letter-spacing: 0.01em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: box-shadow .2s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); }
.site-header.scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-size: 31px; line-height: 1; text-decoration: none; color: var(--ink); letter-spacing: .05em; }
.logo:hover { color: var(--blue); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 2.6vw, 36px); }
.nav a { font-size: 15px; text-decoration: none; color: var(--ink); padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .25s, opacity .2s, top .25s; }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  :root { --header-h: 68px; }
  .logo { font-size: 26px; }
  .menu-toggle { display: block; z-index: 2; }
  .nav { position: fixed; inset: 0; background: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .nav ul { flex-direction: column; align-items: center; gap: 22px; }
  .nav a { font-size: 30px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { box-shadow: none; }
  .site-header .logo { position: relative; z-index: 2; }
  .menu-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 194px; min-height: 44px; padding: 8px 22px; font: inherit; font-size: 16px; line-height: 1.3; color: var(--ink); text-decoration: none; background: rgba(232,230,230,.5); border: 1px solid var(--grey-line); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn:hover, .btn:focus-visible { color: #fff; border-color: transparent; background: var(--hover, var(--blue)); }
.btn--pink { --hover: #e88ae8; }
.btn--lime { --hover: #9fbf3b; }
.btn--blue { --hover: var(--blue); }
.btn--solid { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--solid:hover { background: var(--blue-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; min-height: clamp(560px, 62vw, 800px); display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(16px, 3vw, 28px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero__blob { position: absolute; left: max(-7px, calc(50% - var(--wrap) / 2 - 7px)); top: 0; width: min(829px, 78vw); z-index: 0; pointer-events: none; }
.hero__brand { position: relative; z-index: 1; font-size: clamp(76px, 13.5vw, 160px); line-height: 1.1; letter-spacing: .05em; color: var(--ink); }
.hero__title { position: relative; z-index: 1; align-self: flex-end; max-width: 650px; font-size: clamp(42px, 6.6vw, 89px); line-height: 1.1; color: var(--ink); text-align: left; }
@media (max-width: 640px) {
  .hero .wrap { min-height: 0; gap: 0; }
  .hero__blob { width: 118vw; left: -14vw; top: 10px; }
  .hero__brand { margin-top: 8vw; }
  .hero__title { align-self: stretch; margin-top: 48vw; }
}

/* ---------- Section heads ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section-title { font-size: clamp(40px, 6vw, 60px); line-height: 1.1; letter-spacing: .05em; }
.section-title--lav { color: var(--lavender); }
.center { text-align: center; }

/* ---------- About ---------- */
.about { background: rgba(232,230,230,.21); }
.about__body { margin-top: clamp(32px, 5vw, 52px); padding-left: clamp(0px, 13vw, 130px); max-width: 700px; }
.about__brand { font-size: clamp(40px, 5.5vw, 56px); line-height: 1.4; letter-spacing: .05em; color: var(--ink); }
.about__lead { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.4; color: var(--ink); }

/* ---------- Services ---------- */
.services { overflow: hidden; }
.services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px) clamp(24px, 6vw, 80px); }
.service { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: clamp(300px, 34vw, 420px); padding: 24px 0; isolation: isolate; }
.service__blob { position: absolute; z-index: -1; width: min(440px, 92%); top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); pointer-events: none; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.service:hover .service__blob { transform: translate(-50%, -50%) rotate(calc(var(--rot, 0deg) + 8deg)) scale(1.04); }
.service__name { font-size: clamp(58px, 8.4vw, 103px); line-height: 1.15; margin-bottom: 18px; }
.service__name a { text-decoration: none; color: var(--ink); }
.service--wide { grid-column: 1 / -1; min-height: clamp(220px, 24vw, 300px); }
.service--wide .service__name { font-size: clamp(38px, 5vw, 53px); }
.service--wide .service__blob { width: min(380px, 70%); }
@media (max-width: 760px) {
  .services__grid { grid-template-columns: 1fr; }
  .service, .service--wide { min-height: 300px; }
  .service__blob, .service--wide .service__blob { width: min(360px, 88%); }
}

/* ---------- Reference / Partners ---------- */
.references { background: var(--grey); }
.logos { list-style: none; margin: clamp(36px, 5vw, 56px) auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 56px); align-items: center; justify-items: center; max-width: 720px; }
.logos li { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 110px; }
.logos a { display: block; transition: transform .2s, opacity .2s; }
.logos a:hover { transform: scale(1.06); }
.logos img { max-height: 110px; width: auto; }
.logo-w-davidsport { width: 110px; }
.logo-w-lifties { width: 164px; }
.logo-w-rubens { width: 164px; }
.logo-w-pneukap { width: 167px; }
.logo-w-mobileko { width: 99px; }
.logo-w-cbd { width: 155px; }
.logo-w-shoptet { width: 155px; }
.logo-w-samurai { width: 232px; }
.logo-w-saimon { width: 136px; }
.references__cta { margin-top: clamp(36px, 5vw, 52px); text-align: center; }
.partners { overflow: hidden; }
.partners__blob { position: absolute; right: -380px; top: 55%; width: min(640px, 70vw); transform: translateY(-50%) rotate(187deg); opacity: .9; pointer-events: none; z-index: 0; }
.partners .wrap { position: relative; z-index: 1; }
.partners .logos { max-width: 820px; }
@media (max-width: 640px) {
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logos li { min-height: 80px; }
  .partners__blob { right: -40vw; opacity: .55; }
  .partners .logos li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- Subpage ---------- */
.page-hero { position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; min-height: clamp(420px, 50vw, 575px); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(40px, 5vw, 56px); }
.page-hero__blob { position: absolute; z-index: 0; width: min(980px, 120vw); left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.page-hero h1 { position: relative; z-index: 1; font-size: clamp(56px, 10vw, 108px); line-height: 1.05; color: var(--ink); max-width: 820px; padding-left: clamp(0px, 9vw, 143px); }
.page-intro { max-width: 694px; margin: 0 auto; padding: clamp(28px, 4vw, 40px) var(--pad) 0; font-size: clamp(17px, 1.6vw, 18px); color: var(--ink); }
.page-intro p + p { margin-top: 1em; }
.steps { list-style: none; margin: clamp(48px, 6vw, 72px) auto 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 3vw, 32px); counter-reset: step; }
.step { counter-increment: step; padding: 28px 28px 30px; border: 1px solid rgba(0,0,0,.1); background: #fff; transition: border-color .2s, transform .2s; }
.step:hover { border-color: var(--blue); transform: translateY(-3px); }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--accent, var(--blue)); margin-bottom: 10px; }
.step h2 { font-size: 21px; line-height: 1.3; margin-bottom: 10px; color: var(--ink); }
.step p { color: var(--muted); }
.page-cta { text-align: center; padding: clamp(56px, 7vw, 88px) 0 clamp(64px, 8vw, 100px); }
.page-cta p { font-size: clamp(24px, 3vw, 32px); line-height: 1.3; margin-bottom: 24px; color: var(--ink); }
.accent-pink { --accent: var(--pink); }
.accent-blue { --accent: var(--blue); }
.accent-lime { --accent: #8aa52e; }

/* ---------- Footer / contact ---------- */
.site-footer { background: var(--blue); color: #fff; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 453px); gap: clamp(40px, 6vw, 80px); padding: clamp(72px, 9vw, 117px) 0 clamp(40px, 5vw, 56px); }
.contact h2 { font-size: clamp(38px, 5vw, 50px); line-height: 1.2; letter-spacing: .05em; color: #fff; margin-bottom: 18px; }
.contact h2 .dot { color: var(--lavender-light); }
.contact p { letter-spacing: .05em; color: #fff; }
.contact__lead { margin-bottom: 40px; }
.contact__address { color: var(--lavender-light) !important; }
.contact__address strong { display: block; color: #fff; font-weight: 400; }
.contact a { text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.form { border: 1px solid #e3e3e3; padding: 12px; display: grid; grid-template-columns: 186fr 233fr; gap: 12px; align-self: start; }
.form label { display: block; }
.form input, .form textarea { width: 100%; font: inherit; font-size: 15px; line-height: 1.4; color: #373b4d; background: #fff; border: 1px solid #fff; border-radius: 0; padding: 7px 12px 7px 20px; outline: none; transition: border-color .2s; }
.form input { height: 44px; }
.form textarea { grid-column: 1 / -1; min-height: 121px; resize: vertical; }
.form .full { grid-column: 1 / -1; }
.form input:hover, .form textarea:hover { border-color: var(--blue-dark); }
.form input:focus, .form textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 2px var(--lime); }
.form ::placeholder { color: #8a8d99; }
.form button { grid-column: 1 / -1; justify-self: center; min-width: 186px; height: 44px; font: inherit; font-size: 16px; color: #fff; background: var(--blue); border: 1px solid #fff; cursor: pointer; transition: background-color .2s, color .2s; }
.form button:hover, .form button:focus-visible { background: #fff; color: var(--blue); }
.form button[disabled] { opacity: .6; cursor: wait; }
.form__status { grid-column: 1 / -1; min-height: 1.5em; text-align: center; font-style: italic; }
.form__status.err { color: #ffd0d0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); padding: 20px 0 28px; font-size: 12px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--lavender-light); }
.footer-bottom a { color: var(--lavender-light); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; }
  .contact__lead { margin-bottom: 24px; }
  .form { grid-template-columns: 1fr; }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.445,.05,.55,.95), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .service__blob, .step, .btn { transition: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; padding: 80px var(--pad); }
.notfound h1 { font-size: clamp(80px, 16vw, 160px); }
