/* VENDA — Frammistöðusálfræði
   Design tokens and layout. Values match the approved design exactly. */

:root {
  --bg: #0B0B0B;
  --bg-about: #0E0F10;
  --bg-bio: #141618;
  --bg-card: #1A1D1F;
  --bg-media: #111315;

  --border: #1A1D1F;
  --border-card: #26292B;
  --border-strong: #34383B;

  --text: #F2F0EB;
  --muted: #B8B6B1;
  --accent: #F47A45;

  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Sora, Inter, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad-x: clamp(20px, 5vw, 72px);
  --maxw: 1280px;
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

.page {
  overflow-x: hidden;
  overflow-x: clip;
}

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- Accessibility helpers ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 12px; }

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

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

/* ---------- Shared pieces ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.accent { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 30px;
  border-radius: 5px;
  font-size: 15px;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.btn--secondary {
  border: 1px solid var(--border-strong);
  font-weight: 500;
}

@media (hover: hover) {
  a:hover { color: var(--accent); }
  .btn--primary:hover,
  .contact__btn:hover {
    background: var(--text);
    color: var(--bg);
  }
  .btn--secondary:hover {
    border-color: var(--text);
    color: var(--text);
  }
  .nav-cta:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  .card:hover { border-color: var(--border-strong); }
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 32px;
  padding: 18px var(--pad-x);
  background: rgba(11, 11, 11, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__logo {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-header__logo img {
  height: 24px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 30px;
}

.site-nav__link {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--muted);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

.hero__content {
  container-type: inline-size;
  padding: clamp(72px, 10vw, 148px) var(--pad-x) clamp(64px, 9vw, 132px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 5.6cqw, 54px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  max-width: 22ch;
  text-wrap: pretty;
}

.hero__lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.hero__media {
  position: relative;
  min-height: min(74vh, 620px);
  border-left: 1px solid var(--border);
  background: var(--bg-media);
  overflow: hidden;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 18%;
  filter: grayscale(1) contrast(1.1) brightness(0.68);
}

.hero__scrim {
  position: absolute;
  inset: 0;
}

.hero__scrim--side {
  background: linear-gradient(100deg, #0B0B0B 0%, rgba(11, 11, 11, 0.5) 38%, rgba(11, 11, 11, 0.12) 100%);
}

.hero__scrim--bottom {
  background: linear-gradient(0deg, rgba(11, 11, 11, 0.8) 0%, transparent 42%);
}

/* ---------- Services ---------- */

.section {
  padding: clamp(72px, 9vw, 150px) var(--pad-x);
  border-bottom: 1px solid var(--border);
}

.section__head {
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 620px;
}

.section__head .eyebrow { margin-bottom: 20px; }

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 32px 28px 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
}

.card__rule {
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.25;
}

.card__title--wrap {
  overflow-wrap: break-word;
  hyphens: auto;
}

.card__text {
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
}

/* ---------- About performance psychology ---------- */

.about {
  padding: clamp(80px, 11vw, 170px) var(--pad-x);
  border-bottom: 1px solid var(--border);
  background: var(--bg-about);
}

.about__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.about__head { container-type: inline-size; }

.about__head .eyebrow { margin-bottom: 22px; }

.about__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 6.6cqw, 44px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__lead {
  margin: 0;
  font-size: 19px;
  color: var(--text);
  max-width: 52ch;
}

.about__text {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- Testimonials ---------- */

.quotes__title { margin: 0 0 clamp(40px, 5vw, 64px); }

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(36px, 5vw, 64px);
}

.quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid var(--border-strong);
  padding-top: 32px;
}

.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--text);
}

.quote figcaption {
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Bio ---------- */

.bio {
  background: var(--bg-bio);
  color: var(--text);
  padding: clamp(80px, 10vw, 160px) var(--pad-x);
}

.bio__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.bio__head .eyebrow { margin-bottom: 20px; }

.bio__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.bio__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bio__lead {
  margin: 0;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.5;
  max-width: 46ch;
  color: var(--text);
}

.bio__text {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
}

/* ---------- Name note ---------- */

.name {
  padding: clamp(56px, 6vw, 88px) var(--pad-x);
  border-bottom: 1px solid var(--border);
}

.name__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px clamp(32px, 6vw, 88px);
  align-items: baseline;
}

.name__label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.name__text {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  padding: clamp(96px, 12vw, 190px) var(--pad-x);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
}

.contact__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 66%;
  filter: saturate(0.2) contrast(1.05) brightness(0.42);
}

.contact__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 11, 11, 0.94) 0%, rgba(11, 11, 11, 0.72) 55%, rgba(11, 11, 11, 0.5) 100%);
}

.contact__grid {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.contact__head { container-type: inline-size; }

.contact__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 7cqw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.contact__text {
  margin: 0;
  color: var(--muted);
  max-width: 44ch;
}

.contact__actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.contact__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: min(320px, 100%);
  padding: 21px 26px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 16px;
}

.contact__alt {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 15px;
  color: var(--muted);
}

.contact__alt a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.site-footer { padding: 52px var(--pad-x); }

.site-footer__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  align-items: flex-end;
  justify-content: space-between;
}

.site-footer__logo {
  height: 21px;
  width: auto;
  display: block;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  font-size: 15px;
}

.site-footer__links a { color: var(--muted); }

.site-footer__copy {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- Print ---------- */

@media print {
  html, body, .page { background: #fff; color: #111; }
  .site-header, .skip-link, .hero__media, .contact__bg, .contact__scrim { display: none; }
  a { color: #111; }
  .card, .quote { break-inside: avoid; }
  .site-footer__links a::after { content: " (" attr(href) ")"; font-size: 11px; }
}
