/* patrik-narm.se — stilmall
   Palett: hämtad från havet och det skandinaviska ljuset.
   Vågen är sajtens bärande motiv — "vågor av känslomässigt fullbordande". */

:root {
  --hav: #1c3a3e;        /* djupt blågrönt bläck */
  --sjogras: #4a7c74;    /* mellanton, havsgrön */
  --dis: #e9e0d1;        /* varm, ljus bakgrund (kaffeton) */
  --sand: #ddd4c1;       /* varm alternativ sektion, aningen djupare */
  --barnsten: #b07c2e;   /* bärnsten — värme, används sparsamt */
  --black: #22302f;
  --white: #ffffff;
  --maxw: 68rem;
  --readw: 42rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Karla", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--black);
  background: var(--dis);
}

h1, h2, h3 {
  font-family: "Literata", Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--hav);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; max-width: var(--readw); }
ul { max-width: var(--readw); padding-left: 1.2em; }
li { margin-bottom: 0.5em; }

a { color: var(--sjogras); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--hav); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--barnsten);
  outline-offset: 3px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sjogras);
  font-weight: 700;
  margin-bottom: 1rem;
}

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

/* ---------- Header ---------- */
header.site {
  background: var(--dis);
  border-bottom: 1px solid rgba(28,58,62,0.12);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: 1.1rem 0;
}
.brand {
  font-family: "Literata", Georgia, serif;
  font-size: 1.2rem;
  color: var(--hav);
  text-decoration: none;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-mark { width: 2.3rem; height: 2.3rem; display: block; flex: none; }
.nav a.item {
  text-decoration: none;
  color: var(--black);
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav a.item[aria-current="page"] {
  color: var(--hav);
  border-bottom: 2px solid var(--barnsten);
  padding-bottom: 2px;
}
.lang {
  font-size: 0.85rem;
  border: 1px solid rgba(28,58,62,0.3);
  border-radius: 2rem;
  padding: 0.15rem 0.7rem;
  text-decoration: none;
  color: var(--hav);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(5.5rem, 12vw, 8.5rem);
  background-image:
    linear-gradient(103deg, rgba(20,40,43,0.78) 0%, rgba(20,40,43,0.52) 42%, rgba(20,40,43,0.18) 100%),
    url("hero-solnedgang.jpg");
  background-size: cover;
  background-position: center 58%;
  color: var(--dis);
}
.hero .inner { position: relative; z-index: 3; max-width: 44rem; }
.hero .eyebrow { color: var(--sand); }
.hero h1 { color: #fff; text-shadow: 0 1px 30px rgba(20,40,43,0.35); }
.hero p.lede {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.94);
  max-width: 36rem;
}
.hero .cta-row { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn.ghost { border-color: rgba(255,255,255,0.85); color: #fff; }
.hero .btn.ghost:hover { background: #fff; color: var(--hav); border-color: #fff; }

/* Hemsidan: stor logga som utg\u00e5r fr\u00e5n headern och dyker ner i solnedg\u00e5ngen */
.home header.site { position: relative; z-index: 6; overflow: visible; }
.home .brand { position: relative; }
.home .brand-mark {
  position: absolute;
  top: -1rem;
  left: -1.5rem;
  width: 13rem;
  height: 13rem;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 6px 20px rgba(20,40,43,0.22));
}
.home .brand span { position: relative; z-index: 2; }
@media (max-width: 640px) {
  .home .brand-mark { width: 9rem; height: 9rem; top: -0.6rem; left: -1rem; }
}

.fade-up { animation: fadeUp 0.9s ease both; }
.fade-up.d1 { animation-delay: 0.15s; }
.fade-up.d2 { animation-delay: 0.3s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Vågen — signaturmotivet */
.wave-field {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  z-index: 1;
  pointer-events: none;
}
.wave-field svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.wave-a { animation: drift 26s linear infinite; opacity: 0.5; }
.wave-b { animation: drift 40s linear infinite reverse; opacity: 0.3; }
.hero .wave-field { z-index: 2; opacity: 0.85; }
@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.wave-divider { display: block; width: 100%; height: 42px; }

/* ---------- Knappar ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn.primary { background: var(--hav); color: var(--white); }
.btn.primary:hover { background: var(--sjogras); color: var(--white); }
.btn.ghost { border: 1.5px solid var(--hav); color: var(--hav); }
.btn.ghost:hover { background: var(--hav); color: var(--white); }

/* ---------- Sektioner ---------- */
section.band { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section.band.sand { background: var(--sand); }
section.band.hav { background: var(--hav); color: var(--dis); }
section.band.hav h2, section.band.hav h3 { color: var(--white); }
section.band.hav a { color: var(--sand); }

.cols {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 2rem;
}
.cols h3 { margin-bottom: 0.4rem; }
.cols p { font-size: 0.98rem; }

.steps { counter-reset: step; margin-top: 2rem; display: grid; gap: 1.6rem; max-width: var(--readw); }
.step { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: start; }
.step .num {
  counter-increment: step;
  font-family: "Literata", Georgia, serif;
  font-size: 1.4rem;
  color: var(--barnsten);
  border-top: 2px solid var(--barnsten);
  padding-top: 0.3rem;
}
.step .num::before { content: counter(step); }
.step p { margin: 0; }
.step h3 { margin-bottom: 0.25rem; }

blockquote {
  font-family: "Literata", Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--hav);
  border-left: 3px solid var(--barnsten);
  margin: 2.5rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  max-width: var(--readw);
}
blockquote cite { display: block; font-family: "Karla", sans-serif; font-size: 0.85rem; font-style: normal; margin-top: 0.8rem; color: var(--sjogras); }

.note {
  background: var(--white);
  border-left: 3px solid var(--sjogras);
  padding: 1.1rem 1.3rem;
  max-width: var(--readw);
  font-size: 0.95rem;
  margin: 2rem 0;
}

.placeholder { background: #fdf0d5; padding: 0 0.25em; border-radius: 3px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--hav);
  color: rgba(242,244,242,0.85);
  padding: 3rem 0 2.5rem;
  font-size: 0.92rem;
}
footer.site a { color: var(--sand); }
footer.site .cols { gap: 2rem; margin-top: 0; }
footer.site h3 { color: var(--white); font-size: 1rem; font-family: "Karla", sans-serif; font-weight: 700; }
footer.site p { max-width: none; }
.footnote { margin-top: 2rem; font-size: 0.8rem; opacity: 0.7; }

@media (max-width: 640px) {
  .step { grid-template-columns: 2.2rem 1fr; }
}

/* ---------- Porträtt ---------- */
.about-wrap { max-width: var(--readw); margin: 0 auto; }
.about-wrap p, .about-wrap blockquote { max-width: none; }
.about-intro { text-align: center; margin-bottom: 2.6rem; }
.about-intro .portrait {
  width: 11rem;
  height: 11rem;
  display: block;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  box-shadow: 0 0 0 6px var(--white), 0 0 0 7px rgba(28,58,62,0.14), 0 20px 44px -22px rgba(28,58,62,0.5);
}
.about-intro .eyebrow { margin-bottom: 0.55rem; }
.about-intro h1 { margin-bottom: 0.5rem; }
.about-intro .lede { margin: 0 auto; }

.about-teaser {
  display: grid;
  grid-template-columns: 1fr 14rem;
  gap: 3rem;
  align-items: center;
}
.about-teaser .portrait-circle {
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  box-shadow: 0 0 0 5px rgba(231,227,216,0.14);
}
.about-teaser p { margin-bottom: 1.1em; }
.about-teaser p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .about-teaser { grid-template-columns: 1fr; gap: 2rem; }
  .about-teaser .portrait-circle { order: -1; }
}
