/* Buzzmore – gemensam stil
   Färger enligt visuell identitet (juli 2023) */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/Outfit-Variable.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("/assets/fonts/CrimsonText-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bla: #4371A3;        /* Buzzblå */
  --bla-mork: #3D5F86;
  --beige: #EDD9D6;      /* Buzzbeige */
  --gron: #5CB29E;
  --gron-kontakt: #2DB69D;
  --rod: #FF7B7B;
  --creme: #EEEACC;
  --svart: #000;
  --vit: #fff;
  --text-mork: #333;
  --text-gra: #4D4D4D;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Crimson Text", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--vit);
  color: var(--svart);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; font-weight: inherit; }

/* ---------- Sidhuvud ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--beige);
  height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.header__logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  font-family: var(--sans); font-weight: 500; font-size: 14px; line-height: 1.4;
  text-decoration: none; color: var(--svart);
}
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.nav .btn-kris {
  background: var(--rod); color: var(--vit);
  border-radius: 8px; padding: 10px 12px; margin-left: 8px;
}
.nav .btn-kris:hover { text-decoration: none; background: #f06a6a; }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: #999; margin: 6px 0; transition: .2s; }

/* ---------- Tvåspalt (startsidan, boken) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > * { min-height: 600px; }
.split--hero > * { min-height: 680px; }
.split__img { position: relative; overflow: hidden; }
.split__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__text {
  display: flex; flex-direction: column; justify-content: center; gap: 36px;
  padding: 80px 160px;
}
.bg-bla { background: var(--bla); color: var(--vit); }
.bg-gron { background: var(--gron); color: var(--vit); }
.bg-beige { background: var(--beige); color: var(--svart); }
.bg-rod { background: var(--rod); color: var(--vit); }
.bg-creme { background: var(--creme); color: var(--bla); }
.bg-gradient { background: radial-gradient(46% 46% at 50% 50%, var(--bla) 0%, var(--gron) 100%); }

.rubrik-stor { font-family: var(--sans); font-weight: 500; font-size: 39px; line-height: 1.2; }
.text-serif { font-family: var(--serif); font-size: 24px; line-height: 1.5; }

/* ---------- Rutnät med mönster (startsidan) ---------- */
.grid-section { background: var(--beige); padding: 100px 40px; }
.grid {
  display: grid; grid-template-columns: repeat(3, 293px); gap: 60px;
  justify-content: center;
}
.grid__item img {
  width: 293px; height: 293px; object-fit: cover; border-radius: 20px;
  margin-bottom: 30px;
}
.grid__item img.pos-top { object-position: 46% 1%; }
.grid__item h2 { font-family: var(--sans); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--text-mork); margin-bottom: 10px; }
.grid__item p { font-family: var(--serif); font-size: 24px; line-height: 1.4; }

/* ---------- Kontaktyta med bakgrund (startsidan) ---------- */
.cta {
  position: relative; color: var(--vit); text-align: center;
  padding: 140px 126px; overflow: hidden;
}
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.cta__inner { position: relative; z-index: 1; max-width: 1188px; margin: 0 auto; display: flex; flex-direction: column; gap: 60px; }
.cta p { font-family: var(--serif); font-size: 44px; line-height: 1.4; }

/* ---------- Undersidor ---------- */
.page-bla { background: var(--bla); }
.intro {
  text-align: center; padding: 100px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 30px;
}
.intro h1 { font-family: var(--sans); font-weight: 500; font-size: 52px; line-height: 1.2; }
.intro .ingress { font-family: var(--sans); font-weight: 400; font-size: 24px; line-height: 1.4; max-width: 653px; }
.intro .ingress + .ingress { margin-top: -6px; }
.intro .ingress a { text-decoration: underline; }

.lead { font-family: var(--sans); font-weight: 500; font-size: 28px; line-height: 1.4; color: var(--text-mork); }

.cols3 {
  display: grid; grid-template-columns: repeat(3, 293px); gap: 60px;
  justify-content: center; padding: 0 40px 100px;
}
.cols3 h2 { font-family: var(--sans); font-weight: 500; font-size: 28px; line-height: 1.4; color: var(--text-mork); margin-bottom: 20px; }
.cols3 p { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--text-gra); margin-bottom: 20px; }

.center-block { max-width: 900px; margin: 0 auto; padding: 60px 40px 100px; text-align: center; }
.center-block h2.lead { text-align: left; margin-bottom: 40px; }
.center-block p { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--text-gra); margin-bottom: 20px; }
.center-block .symbol { width: 335px; height: 268px; object-fit: contain; margin: 40px auto 0; }

.quotes {
  display: grid; grid-template-columns: repeat(3, 260px); gap: 80px;
  justify-content: center; padding: 140px 40px; text-align: center;
}
.quotes h3 { font-family: var(--sans); font-weight: 400; font-size: 20px; line-height: 1.4; color: var(--text-mork); margin-bottom: 30px; }
.quotes p { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--text-gra); }

.photo-full { width: 100%; object-fit: cover; }
.photo-full--711 { height: 711px; }
.photo-full--693 { height: 693px; }
.photo-full--954 { height: 954px; }
.band { width: 100%; object-fit: cover; }
.band--300 { height: 300px; }
.band--238 { height: 238px; }

/* Nyhetsbrev */
.substack { width: 480px; max-width: 100%; height: 320px; border: 0; background: var(--vit); border-radius: 8px; }

/* Kontakt */
.kontakt-rubrik { font-family: var(--sans); font-weight: 500; font-size: 44px; line-height: 1.2; max-width: 780px; }
.kontakt-rubrik a { text-decoration: underline; }

/* Kris */
.kris { padding: 127px 40px 140px; text-align: center; }
.kris h1 { font-family: var(--sans); font-weight: 500; font-size: 60px; line-height: 1.2; max-width: 1056px; margin: 0 auto; }
.kris a { text-decoration: underline; }

/* Boken */
.boken-text { max-width: 920px; margin: 0 auto; padding: 50px 40px 100px; display: flex; flex-direction: column; gap: 36px; }
.boken-text p { font-family: var(--serif); font-size: 24px; line-height: 1.5; }
.boken-text .lankar { display: flex; flex-direction: column; gap: 0; }
.boken-text a { text-decoration: underline; }

/* ---------- Sidfot ---------- */
.footer {
  background: var(--bla); color: var(--vit);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  display: grid; grid-template-columns: 340px 340px 300px; justify-content: center;
  padding: 60px 40px 70px;
}
.footer .rubrik { font-weight: 300; margin-bottom: 16px; }
.footer p, .footer a { font-weight: 500; }
.footer a { text-decoration: none; display: block; margin-bottom: 10px; }
.footer a:hover { text-decoration: underline; }
.footer .kontakt p { margin: 0; }
.footer .linkedin { display: inline; }

/* ---------- Surfplatta ---------- */
@media (max-width: 1199px) {
  .split__text { padding: 60px 60px; }
  .rubrik-stor { font-size: 32px; }
  .grid, .cols3 { grid-template-columns: repeat(2, minmax(0, 293px)); }
  .quotes { grid-template-columns: repeat(3, minmax(0, 260px)); gap: 40px; }
  .cta { padding: 100px 60px; }
  .cta p { font-size: 36px; }
  .footer { grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
}

/* ---------- Mobil ---------- */
@media (max-width: 809px) {
  .header { height: 64px; padding: 0 16px; }
  .header__logo img { height: 38px; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: var(--beige); padding: 20px 24px 28px;
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
  }
  .nav a { font-size: 18px; }
  .nav .btn-kris { margin-left: 0; }
  .header.open .nav { display: flex; }
  .header.open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .header.open .menu-toggle span:nth-child(2) { opacity: 0; }
  .header.open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .split { grid-template-columns: 1fr; }
  .split > *, .split--hero > * { min-height: 0; }
  .split__img { aspect-ratio: 4 / 5; }
  .split__img--gradient { aspect-ratio: 1 / 1; }
  .split__text { padding: 60px 24px; gap: 24px; }
  .split .order-first-mobile { order: -1; }
  .rubrik-stor { font-size: 28px; }
  .text-serif { font-size: 21px; }

  .grid-section { padding: 60px 24px; }
  .grid, .cols3 { grid-template-columns: 1fr; gap: 50px; justify-items: center; }
  .grid__item, .cols3 > div { max-width: 362px; width: 100%; }
  .grid__item img { width: 100%; height: auto; aspect-ratio: 1 / 1; }

  .cta { padding: 80px 24px; }
  .cta__inner { gap: 36px; }
  .cta p { font-size: 26px; }

  .intro { padding: 60px 24px; }
  .intro h1 { font-size: 34px; }
  .intro .ingress { font-size: 20px; }
  .lead { font-size: 22px; }
  .cols3 { padding: 0 24px 60px; }
  .cols3 h2 { font-size: 24px; }
  .center-block { padding: 40px 24px 60px; }
  .center-block .symbol { width: 220px; height: 176px; }
  .quotes { grid-template-columns: 1fr; gap: 50px; padding: 80px 24px; justify-items: center; }
  .quotes > div { max-width: 340px; }
  .photo-full--711, .photo-full--693, .photo-full--954 { height: auto; aspect-ratio: 4 / 5; }
  .band--300, .band--238 { height: 160px; }
  .kontakt-rubrik { font-size: 28px; }
  .kris { padding: 80px 24px; }
  .kris h1 { font-size: 34px; }
  .boken-text { padding: 40px 24px 60px; }
  .boken-text p { font-size: 21px; }

  .footer { grid-template-columns: 1fr; gap: 28px; padding: 48px 24px; }
}

/* Fristående bilder på undersidor (ingen beskärning) */
.photo-wrap { padding: 0 40px 100px; }
.photo-wrap .photo { width: 100%; height: auto; margin: 0 auto; border-radius: 20px; }
.intro .lead { text-align: center; }

/* Två spalter med erbjudanden */
.cols2 {
  display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 60px 80px;
  justify-content: center; padding: 0 40px 100px;
}
.cols2 h2 { font-family: var(--sans); font-weight: 500; font-size: 28px; line-height: 1.3; color: var(--text-mork); margin-bottom: 16px; }
.cols2 p { font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--text-gra); }
@media (max-width: 809px) {
  .photo-wrap { padding: 0 24px 60px; }
  .cols2 { grid-template-columns: 1fr; gap: 44px; padding: 0 24px 60px; }
  .cols2 h2 { font-size: 24px; }
  .cols2 p { font-size: 20px; }
}

/* Jämnare radbrytning i rubriker */
h1, .lead, .cols2 h2, .quotes h3 { text-wrap: balance; }

/* Erbjudande: centrerade texter */
.center-block h2.lead { text-align: center; }
.cols2 > div { text-align: center; }

/* Mobil: bilderna i tvåspalterna får egen höjd, utan vita ytor */
@media (max-width: 809px) {
  .split__img { aspect-ratio: auto; height: auto; }
  .split__img img {
    position: static; display: block;
    width: 100%; height: auto; aspect-ratio: 4 / 5;
    object-fit: cover;
  }
  .split__img--gradient { aspect-ratio: 1 / 1; height: auto; }
  .split__text { padding: 48px 24px; }
  .cols2 > div { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 809px) { .split__img--gradient { aspect-ratio: 2 / 1; } }

/* Smala fönster och mobil: staplade block utan vita glapp, centrerad text */
@media (max-width: 809px) {
  .split { display: flex; flex-direction: column; }
  .split > * { min-height: 0 !important; }
  .split__img { position: relative; height: auto; aspect-ratio: auto; overflow: hidden; }
  .split__img img {
    position: static; display: block;
    width: 100%; height: min(125vw, 760px); aspect-ratio: auto;
    object-fit: cover;
  }
  .split__img--gradient { height: 50vw; max-height: 320px; aspect-ratio: auto; }
  .split__text { text-align: center; align-items: center; padding: 56px 28px; }
  .split__text > * { max-width: 560px; }
}

/* Knappar och länkrader */
.knapp {
  display: inline-block; font-family: var(--sans); font-weight: 500; font-size: 18px; line-height: 1;
  padding: 16px 26px; border-radius: 8px; text-decoration: none;
}
.knapp--ljus { background: var(--vit); color: var(--bla); }
.knapp--ljus:hover { background: var(--beige); }
.cta__inner .cta__mindre { font-size: 30px; }
.cta__inner { gap: 36px; }
.lankar-rad { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
@media (max-width: 809px) {
  .cta__inner .cta__mindre { font-size: 21px; }
  .knapp { font-size: 16px; padding: 14px 22px; }
}

/* Jobba med mig: luft mellan styckena */
.cols2 p + p { margin-top: 20px; }
.cols2 { row-gap: 80px; }

/* Boken: större titel intill bilden */
.bok-titel { font-family: var(--sans); font-weight: 500; font-size: 88px; line-height: 1; color: var(--bla); }
.bok-undertitel { font-family: var(--sans); font-weight: 400; font-size: 34px; line-height: 1.25; color: var(--bla); margin-top: -8px; }
@media (max-width: 1199px) { .bok-titel { font-size: 64px; } .bok-undertitel { font-size: 28px; } }
@media (max-width: 809px) { .bok-titel { font-size: 52px; } .bok-undertitel { font-size: 24px; } .cols2 { row-gap: 56px; } }

/* Boken: bilden visas nästan hel, så att både ansikte och bok syns */
@media (min-width: 810px) {
  .split--bok > * { min-height: 0; }
  .split--bok .split__img { aspect-ratio: 3 / 4; }
}
@media (max-width: 809px) { .split--bok .split__img img { height: min(140vw, 820px); } }
