/* SKEWELLABS — shared stylesheet (mobile-first, no framework) */

:root {
  --bg: #f8fafc;
  --bg-alt: #eef2f7;
  --bg-dark: #0b1220;
  --bg-dark-alt: #101a2e;
  --text: #0f172a;
  --text-light: #f8fafc;
  --text-muted: #475569;
  --text-muted-light: #94a3b8;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --cta: #f97316;
  --cta-dark: #ea580c;
  --border: #e2e8f0;
  --border-dark: #1e293b;
  --radius: 12px;
  --shadow: 0 10px 30px -12px rgb(15 23 42 / 0.18);
  --container: 1200px;
  --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(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--text-muted); }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 8px 20px -8px rgb(249 115 22 / 0.55); }
.btn-primary:hover { background: var(--cta-dark); }
.btn-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-outline:hover { background: rgb(255 255 255 / 0.08); }
.btn-light { background: #fff; color: var(--text); }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img { height: 32px; width: auto; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle::before { position: absolute; transform: translateY(-7px); }
.nav-toggle::after { position: absolute; transform: translateY(7px); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }

.main-nav {
  position: fixed;
  inset: 72px 0 0 0;
  background: #fff;
  transform: translateY(-110%);
  transition: transform .25s ease;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.main-nav.is-open { transform: translateY(0); }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 12px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.main-nav a {
  display: block;
  padding: 14px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--bg-alt); }
.main-nav a[aria-current="page"] { color: var(--primary); background: rgb(37 99 235 / 0.08); }
.lang-switch {
  display: flex;
  gap: 8px;
  padding: 4px 20px 20px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.lang-switch a {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--text-muted);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.lang-switch a:hover { border-color: var(--primary); color: var(--primary); }
.lang-switch a[aria-current="true"] { background: var(--text); color: #fff; border-color: var(--text); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    transform: none;
    background: transparent;
    border-top: none;
    inset: auto;
    flex-direction: row;
    align-items: center;
  }
  .main-nav ul {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 4px;
  }
  .main-nav a {
    padding: 8px 14px;
    border-bottom: none;
    border-radius: 999px;
  }
  .main-nav a[aria-current="page"] { background: rgb(37 99 235 / 0.1); }
  .lang-switch {
    padding: 0;
    margin: 0 0 0 20px;
    border-top: none;
    border-left: 1px solid var(--border);
    padding-left: 20px;
  }
  .lang-switch a { flex: none; padding: 6px 14px; }
}

/* Sections */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: linear-gradient(160deg, var(--bg-dark), var(--bg-dark-alt));
  color: var(--text-light);
}
.section-dark .lede, .section-dark p { color: var(--text-muted-light); }
.section-dark .eyebrow { color: var(--accent); }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgb(37 99 235 / 0.35), transparent 60%), linear-gradient(160deg, var(--bg-dark), var(--bg-dark-alt));
  color: var(--text-light);
  padding: 96px 0 80px;
  text-align: center;
}
.hero h1 { color: #fff; }
.hero .lede { max-width: 640px; margin-left: auto; margin-right: auto; color: var(--text-muted-light); }
.hero-tags {
  font-size: .95rem;
  color: var(--text-muted-light);
  margin: 1.2em 0;
  letter-spacing: .02em;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 1.5em; }

/* Grid / Cards */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.15rem; text-align: center; }
.card img { border-radius: calc(var(--radius) - 4px); margin-bottom: 1em; }

/* Offer cards */
.offer {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: .6em;
}
.offer-tag { font-weight: 800; }
.offer ul { padding-left: 1.2em; margin: .5em 0 1em; }
.offer li { margin-bottom: .4em; }
.offer .note { font-style: italic; color: var(--text-muted); font-size: .95rem; }

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .95rem; }
thead th { background: var(--bg-alt); font-weight: 700; }
tbody tr:last-child td { border-bottom: none; }

/* Reference / case study blocks */
.case {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.case:last-child { border-bottom: none; }
.case img { border-radius: var(--radius); box-shadow: var(--shadow); }
.case-media { display: flex; gap: 12px; flex-wrap: wrap; }
.case-media img { width: 100%; max-width: 260px; }
@media (min-width: 800px) {
  .case { grid-template-columns: 320px 1fr; align-items: start; }
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-muted-light);
  padding: 56px 0 28px;
  font-size: .92rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 32px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h3 { color: #fff; font-size: 1rem; }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
}
.footer-links { display: flex; align-items: center; gap: 18px; }
.footer-social img { display: block; filter: invert(1); opacity: .8; }
.footer-social:hover img { opacity: 1; }
.link-icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }

/* Cookie consent banner */
#cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  z-index: 200;
  display: none;
}
#cookie-banner.is-visible { display: block; }
#cookie-banner p { font-size: .92rem; color: var(--text-muted); margin-bottom: 12px; }
#cookie-banner .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#cookie-banner button { font-family: inherit; }

/* Contact form */
.contact-form { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .92rem; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-captcha { display: flex; align-items: center; gap: 10px; }
.field-captcha input { width: 100px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-msg { font-size: .92rem; margin-top: 10px; min-height: 1.2em; }
.form-msg.error { color: #dc2626; }
.form-msg.ok { color: #16a34a; }

/* Contact details block */
.contact-details { text-align: center; color: var(--text-muted); margin-top: 24px; font-size: .95rem; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.max-w { max-width: 720px; margin-left: auto; margin-right: auto; }
.legal h2 { margin-top: 1.6em; }
.legal { max-width: 800px; margin: 0 auto; }
