/* Jadex landing — mobile-first, restrained Stockholm tech */

:root {
  --bg: #0f1419;
  --bg-elevated: #171d24;
  --bg-card: #1a222c;
  --surface: #222b36;
  --border: rgba(232, 226, 214, 0.12);
  --border-strong: rgba(232, 226, 214, 0.22);
  --text: #ebe6dc;
  --text-muted: #a8a296;
  --accent: #c4a574;
  --accent-hover: #d4b888;
  --accent-soft: rgba(196, 165, 116, 0.14);
  --focus: #e8d5a8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

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

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196, 165, 116, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(70, 110, 130, 0.12), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.35rem;
  background:
    linear-gradient(135deg, var(--accent) 0%, #8a6f45 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 28% 28% 28% 42%;
  background: var(--bg);
  border-radius: 1px;
  transform: skewX(-12deg);
}

.logo-text {
  font-size: 1.125rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: auto;
  width: min(100%, 20rem);
  max-width: 100%;
  background: rgba(15, 20, 25, 0.97);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.25s var(--ease), visibility 0.25s;
}

.site-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.site-nav ul a {
  display: block;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
}

.site-nav ul a:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.nav-cta {
  align-self: flex-start;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    inset: auto;
    width: auto;
    max-width: none;
    background: transparent;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 0.25rem;
  }

  .site-nav ul a {
    padding: 0.4rem 0.65rem;
  }

  .nav-cta {
    align-self: auto;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--accent);
  color: #1a140c;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #1a140c;
  border-color: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head h2,
.hero h1,
.cta-band h2,
.contact h2 {
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 650;
}

.section-head h2,
.cta-band h2,
.contact h2 {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(196, 165, 116, 0.28);
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2.15rem, 6.5vw, 3.35rem);
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Value */
.value {
  background: linear-gradient(180deg, transparent, rgba(23, 29, 36, 0.6));
}

.value-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.value-grid li {
  padding: 1.35rem 1.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.value-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.value-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

@media (min-width: 720px) {
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Services cards */
.card-grid {
  display: grid;
  gap: 1rem;
}

.card {
  padding: 1.5rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.card:hover {
  border-color: rgba(196, 165, 116, 0.35);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* CTA band */
.cta-band {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.cta-inner {
  max-width: 36rem;
}

.cta-band p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

/* Contact */
.contact-inner {
  display: grid;
  gap: 2rem;
}

.contact-list {
  margin: 1.5rem 0 0;
}

.contact-list > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}

.contact-list > div:last-child {
  border-bottom: 1px solid var(--border);
}

.contact-list dt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-list dd {
  margin: 0;
  font-weight: 500;
}

.contact-list a {
  text-decoration: none;
  font-weight: 600;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-note {
  padding: 1.25rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.contact-note p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-note strong {
  color: var(--text);
}

@media (min-width: 800px) {
  .contact-inner {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: 3rem;
  }
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-meta a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--accent);
}
