/* ==========================================================================
   Älska Älvdalen — stylesheet
   Byggd efter Grafisk manual 2015. Färgvärden är de officiella ur manualens
   avsnitt 3.1 (CMYK/RGB/Pantone), extraherade exakt:
     Purpur     CMYK 27/100/62/28  RGB 149/22/55   Pantone 1955 C
     Skogsgrön  CMYK 75/38/95/31   RGB 66/100/46   Pantone 7742 C
     Solgul     CMYK 0/32/78/0     RGB 250/185/72  Pantone 136 C
     Mörkgrå    CMYK 0/0/0/80      RGB 87/87/86
     Ljusgrå    CMYK 4/3/2/0       RGB 247/247/249
   ========================================================================== */

/* -- Typsnitt --------------------------------------------------------------- */
/* Ropa Soft Pro är nu på plats (riktiga fontfiler). Garamond Premier Pro
   saknas fortfarande för brödtexten — EB Garamond från Google Fonts fyller
   in tills dess. Se assets/fonts/README.md. */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

@font-face {
  font-family: 'Ropa Soft Pro';
  src: url('../fonts/ropa-soft-pro-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ropa Soft Pro';
  src: url('../fonts/ropa-soft-pro-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ropa Soft Pro';
  src: url('../fonts/ropa-soft-pro-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Färger — exakt ur grafisk manual 3.1 */
  --purpur: #951637;
  --purpur-dark: #6c0f28;
  --purpur-deep: #240710;
  --skogsgron: #42642E;
  --solgul: #FAB948;
  --morkgra: #575756;
  --ljusgra: #F7F7F9;
  --vit: #FFFFFF;
  --text: #2c2a29;

  /* Typsnitt. Rubriker kör nu på riktiga Ropa Soft Pro. Brödtext väntar
     fortfarande på Garamond Premier Pro — EB Garamond är stand-in. */
  --font-heading: 'Ropa Soft Pro', system-ui, sans-serif;
  --font-body: 'EB Garamond', 'Garamond Premier Pro', Georgia, serif;

  /* Typografisk skala */
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-3: clamp(2.5rem, 2rem + 2.2vw, 4rem);
  --step-4: clamp(2.75rem, 2.1rem + 3.4vw, 5rem);

  --content-width: 68rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  /* Formspråk: radier, skuggor, rörelse — det här är vad som gör ytorna
     konsekventa i stället för att varje knapp/kort uppfinner sitt eget. */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(36, 7, 16, 0.08);
  --shadow-md: 0 10px 24px -8px rgba(36, 7, 16, 0.22);
  --shadow-lg: 0 24px 48px -16px rgba(36, 7, 16, 0.28);
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
}

/* -- Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ljusgra);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--purpur-dark);
  text-wrap: balance;
}
p { max-width: 62ch; margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.u-measure-wide p { max-width: 74ch; }
::selection { background: var(--solgul); color: var(--purpur-deep); }

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

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

/* -- Layout helpers ---------------------------------------------------------- */
.wrap {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--purpur { background: var(--purpur); color: var(--vit); }
.section--purpur h2, .section--purpur h3 { color: var(--vit); }
.section--tint { background: var(--ljusgra); }
.section--ljus { background: var(--vit); }

.river-divider {
  display: block;
  width: 100%;
  height: clamp(32px, 6vw, 72px);
}
.river-divider path { fill: none; stroke-width: 2; }

/* -- Eyebrow / kicker --------------------------------------------------------
   Återanvänds i stället för att varje sida hårdkodar egna inline-stilar. */
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purpur);
  margin: 0 0 1rem;
}
.section--purpur .eyebrow,
.section--photobg .eyebrow { color: var(--solgul); }

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 0; }

/* -- Header / navigation ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 247, 249, 0.86);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 1px solid rgba(87, 87, 86, 0.1);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.65rem;
}
.wordmark { display: inline-flex; }
.wordmark img { height: clamp(36px, 5.5vw, 48px); width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.nav a {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding-block: 0.4rem;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--purpur);
  transition: right 0.25s var(--ease);
}
.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] { color: var(--purpur); }
.nav a:hover::after,
.nav a:focus-visible::after,
.nav a[aria-current="page"]::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.nav-toggle:hover { background: rgba(149, 22, 55, 0.07); }
.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--purpur-dark);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--vit);
    padding: 0.5rem var(--gutter) 1.5rem;
    border-bottom: 1px solid rgba(87,87,86,0.12);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav[data-open="true"] {
    display: flex;
    animation: nav-drop 0.2s var(--ease);
  }
  .nav a {
    padding-block: 0.8rem;
    border-bottom: 1px solid rgba(87,87,86,0.08);
  }
  .nav a::after { display: none; }
  .nav a:last-child { border-bottom: none; }
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -- Hero: video + stor logga + knappar -------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--purpur) 0%, var(--purpur-dark) 55%, var(--purpur-deep) 100%);
  color: var(--vit);
}
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(149,22,55,0.45) 0%, rgba(108,15,40,0.52) 55%, rgba(50,8,21,0.62) 100%);
}
.hero--minimal {
  min-height: min(92vh, 780px);
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__inner--minimal {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: min(92vh, 780px);
  padding-block: clamp(3rem, 8vw, 5rem);
  position: relative;
  z-index: 1;
}
.hero__logo--big {
  max-width: min(440px, 72%);
  margin-bottom: 1.85rem;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.4));
}
.hero__buttons {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 3vw, 2.25rem);
  transform: translateX(-50%);
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.75);
  animation: scroll-cue-bounce 2.2s ease-in-out infinite;
}
.hero__scroll-cue svg { width: 18px; height: 18px; }
@keyframes scroll-cue-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* -- Buttons ------------------------------------------------------------------
   Ett litet system i stället för enstaka ad hoc-klasser: bas + varianter,
   med riktiga hover/active-lägen (lyft + skugga) istället för att bara byta
   bakgrundsfärg. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn--primary {
  background: var(--purpur);
  color: var(--vit);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--purpur-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--solgul);
  color: var(--purpur-dark);
  box-shadow: var(--shadow-sm);
}
.btn--accent:hover {
  background: #ffc568;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(144, 93, 11, 0.35);
}

.btn--ghost-light {
  background: rgba(255,255,255,0.06);
  color: var(--vit);
  border-color: rgba(255,255,255,0.55);
  backdrop-filter: blur(3px);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.14);
  border-color: var(--vit);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,0.45);
}

.btn--outline {
  background: transparent;
  color: var(--purpur);
  border-color: rgba(149, 22, 55, 0.35);
}
.btn--outline:hover {
  border-color: var(--purpur);
  background: rgba(149, 22, 55, 0.05);
  transform: translateY(-2px);
}

/* -- Statement: stor varumärkesrad (grundande besked, citat) ----------------- */
.statement {
  max-width: 22ch;
  font-family: var(--font-heading);
  font-size: var(--step-4);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--purpur-dark);
  margin: 0;
}
.statement--center { margin-inline: auto; text-align: center; }

/* -- Vision: redaktionellt tvåspalt -------------------------------------------
   Ett stort, tunt citattecken i Garamond (samma serif som brödtexten) ersätter
   gula stolpar och siffror — en diskret, förlagskänsla snarare än en
   produktsida. En smal mittlinje i dämpad purpur delar spalterna på desktop. */
.vision-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 781px) {
  .vision-grid::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 50%;
    width: 1px;
    background: rgba(149, 22, 55, 0.14);
  }
}
@media (max-width: 780px) {
  .vision-grid { grid-template-columns: 1fr; }
  .vision-item + .vision-item {
    padding-top: 2.25rem;
    border-top: 1px solid rgba(149, 22, 55, 0.14);
  }
}
.vision-item__mark {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 4.25rem;
  line-height: 0.6;
  color: var(--purpur);
  opacity: 0.22;
  margin: 0 0 0.75rem -0.1rem;
}
.vision-item p {
  font-family: var(--font-heading);
  font-size: var(--step-1);
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  max-width: 34ch;
}

/* -- Vision-citat som används tillsammans med bild (om.html) ----------------- */
.vision-quote {
  border-left: 2px solid rgba(149, 22, 55, 0.25);
  padding-left: 1.25rem;
  margin: 0 0 1.75rem;
}
.vision-quote:last-child { margin-bottom: 0; }
.vision-quote p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.3;
}
.section--purpur .vision-quote { border-left-color: rgba(255,255,255,0.35); }

/* -- Feature-kort (Idéråd / Magasin / Creativet på startsidan) --------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
}
.feature-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(250, 185, 72, 0.16);
  color: var(--solgul);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  flex: none;
}
.feature-card__icon svg { width: 1.3rem; height: 1.3rem; }
.feature-card h3 {
  color: var(--vit);
  font-size: var(--step-1);
  margin-bottom: 0.6rem;
}
.feature-card p {
  color: rgba(255,255,255,0.82);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}
.feature-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--solgul);
}
.feature-card__link svg {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.2s var(--ease);
}
.feature-card:hover .feature-card__link svg { transform: translateX(3px); }

/* -- Helbild som sektionsbakgrund (Vinter/sommarmagasin m.fl.) --------------- */
.section--photobg {
  position: relative;
  background-image: var(--photo-bg);
  background-size: cover;
  background-position: center 35%;
  overflow: hidden;
  color: var(--vit);
}
.section--photobg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(149,22,55,0.82) 0%, rgba(108,15,40,0.86) 55%, rgba(50,8,21,0.9) 100%);
}
.section--photobg.section--photobg--skog::before {
  background: linear-gradient(155deg, rgba(66,100,46,0.82) 0%, rgba(44,70,30,0.87) 55%, rgba(24,38,16,0.92) 100%);
}
.section--photobg .wrap {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}
.section--photobg h2 { color: var(--vit); }
.section--photobg p { color: rgba(255,255,255,0.9); }

/* -- Split (bild + text) ----------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}
.split__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* -- Infografik/collage-bild (t.ex. Creativet) ------------------------------- */
.split__media--contain {
  aspect-ratio: auto;
  background: var(--vit);
  display: flex;
  align-items: center;
}
.split__media--contain img { width: 100%; height: auto; object-fit: contain; }

/* -- Kontaktsida ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}
.contact-list dt {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purpur);
  margin-bottom: 0.25rem;
}
.contact-list dd { margin: 0; font-size: 1.05rem; }
.contact-list a { text-decoration: underline; text-decoration-color: var(--solgul); text-underline-offset: 3px; }
.contact-list__note {
  display: block;
  font-size: 0.88rem;
  color: var(--morkgra);
  margin-top: 0.3rem;
}

.form-field { margin-bottom: 1.25rem; display: grid; gap: 0.4rem; }
.form-field label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(87,87,86,0.25);
  border-radius: var(--radius-sm);
  background: var(--vit);
  resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--purpur);
  box-shadow: 0 0 0 4px rgba(149, 22, 55, 0.1);
}
.form-note {
  font-size: 0.85rem;
  color: var(--morkgra);
  margin-top: 0.75rem;
}

/* -- Footer ------------------------------------------------------------------ */
.site-footer {
  background: var(--purpur-dark);
  color: rgba(255,255,255,0.85);
  padding-block: 3.5rem 2rem;
}
.site-footer .wordmark img { filter: brightness(0) invert(1); }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 1.75rem);
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-nav a { text-decoration: none; transition: color 0.15s ease; }
.footer-nav a:hover { color: var(--solgul); }
.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(255,255,255,0.55);
}

/* -- Reveal-on-scroll (progressiv förhöjning, respekterar reduced motion) --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* -- Skip link ---------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--purpur);
  color: var(--vit);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
  top: 0;
}
