/* =========================================================
   Hudläkarna Nordöst Estetik – egen stilmall för /estetisk-dermatologi/
   ========================================================= */
@font-face { font-family: Manrope; src: url(../fonts/Manrope-400-700.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: Poppins; src: url(../fonts/Poppins-300.woff) format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: Petrona; src: url(../fonts/Petrona-500-700.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --ivory: #f8f5f0;
  --white: #fffdfa;
  --ink: #302b30;
  --muted: #655f64;
  --purple: #644971;
  --purple-dark: #493752;
  --lavender: #eee7f0;
  --lavender-ljus: #f5eef7;
  --line: #ddd4df;
  --serif: Petrona, Georgia, serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 16px/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0 0 18px; color: var(--muted); }
:focus-visible { outline: 3px solid #9e78ad; outline-offset: 4px; }
.hoppa { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.hoppa:focus { left: 8px; }
.e-wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }

/* Topprad och sidhuvud */
.e-toppbar { background: var(--lavender); font-size: 12px; }
.e-toppbar .e-wrap { display: flex; justify-content: flex-end; padding: 7px 0; }
.e-toppbar a { color: var(--purple-dark); text-underline-offset: 3px; }
.e-huvud { background: var(--ivory); }
.e-huvud__rad { min-height: 104px; display: flex; align-items: center; gap: 28px; }
.e-logga img { width: 170px; }
.e-meny { margin-left: auto; display: flex; gap: 28px; }
.e-meny a { text-decoration: none; font-size: 14.5px; font-weight: 500; }
.e-meny a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 6px; }
.e-knapp { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 4px; background: var(--purple-dark); color: #fff; text-decoration: none; font-size: 14.5px; font-weight: 600; border: 1px solid var(--purple-dark); }
.e-knapp:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
.e-knapp--kant { background: transparent; color: var(--ink); border-color: #b9aab9; }
.e-knapp--kant:hover { background: var(--lavender); color: var(--purple-dark); border-color: var(--purple); }
.e-knapp--vit { background: #fff; color: var(--purple-dark); border-color: #fff; }
.e-knapp--vit:hover { background: var(--lavender); color: var(--purple-dark); border-color: var(--lavender); }

/* Toppbild */
.e-hero { position: relative; isolation: isolate; overflow: hidden; }
.e-hero__bild { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.e-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(245,240,234,.98) 0%, rgba(245,240,234,.96) 27%, rgba(245,240,234,.8) 38%, rgba(245,240,234,.18) 57%, transparent 70%); }
.e-hero__inner { min-height: 610px; display: flex; align-items: center; }
.e-hero__text { width: 51%; max-width: 570px; }
.e-hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.06; }
.e-hero p { max-width: 400px; font-size: 15px; }
.e-knappar { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 31px; }

/* Filosofi – samma uppbyggnad som originalet: foto i vänsterkant som tonar ut, stora siffror bakom rubrikerna */
.e-filosofi { position: relative; isolation: isolate; overflow: hidden; background: #eee9ee; }
.e-filosofi::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, transparent 36%, rgba(238,233,238,.12) 47%, #eee9ee 63%); }
.e-filosofi__foto { position: absolute; left: 0; top: 190px; bottom: 0; width: 55%; max-width: 792px; z-index: -2; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 5%); mask-image: linear-gradient(to bottom, transparent, #000 5%); }
.e-filosofi__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 65%, #eee9ee 100%); }
.e-filosofi__foto img { width: 100%; height: 100%; object-fit: cover; object-position: left bottom; display: block; }
.e-filosofi__rad { position: relative; min-height: 790px; padding: 70px 0 54px; }
.e-filosofi h2 { position: absolute; left: 0; top: 76px; width: 38%; text-align: center; font-size: 69px; line-height: .98; letter-spacing: -2.76px; color: var(--purple-dark); }
.e-steg { list-style: none; margin: 12px 0 0 45%; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.e-steg li { position: relative; padding: 35px 0 15px 166px; min-height: 171px; }
.e-steg__nr { position: absolute; left: 0; top: -4px; font-family: var(--serif); font-size: 139px; line-height: 1; font-weight: 300; letter-spacing: -11px; color: #c8b8cf; }
.e-steg h3 { font-size: 27px; line-height: 1.15; margin: 0 0 11px; color: #302b30; }
.e-steg p { max-width: 327px; font-size: 16px; line-height: 28px; color: #4e474d; margin: 0; }
.e-steg li.e-steg__knapp { min-height: 0; padding-top: 0; }

/* Din behandlare */
.e-lakare { background: var(--white); padding: 96px 0; }
.e-lakare__rad { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 72px; align-items: center; }
.e-lakare__bild { width: 100%; height: auto; }
.e-overrubrik { font-family: Poppins, var(--sans); font-weight: 300; font-size: 12.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; }
.e-lakare h2 { font-size: clamp(40px, 4.4vw, 60px); line-height: 1; margin-bottom: 8px; }
.e-lakare__roll { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--purple-dark); margin-bottom: 26px; }
.e-lakare__text p:not(.e-overrubrik):not(.e-lakare__roll) { max-width: 520px; font-size: 16px; }
.e-lakare .e-knapp { margin-top: 10px; }

/* Behandlingar & priser (själva menyn har egna stilar i delar/estetik-meny.html) */
.e-behandlingar { background: var(--ivory); padding: 88px 0 100px; }

/* Vanliga frågor */
.e-faq { background: var(--white); padding: 98px 0 110px; }
.e-faq__rad { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.e-faq h2 { font-size: clamp(44px, 4.6vw, 65px); line-height: 1; letter-spacing: -.03em; margin-bottom: 28px; }
.e-faq__bild { width: 100%; max-width: 350px; height: 350px; object-fit: cover; object-position: 50% 35%; }
.e-fragor { align-self: center; border-top: 1px solid var(--line); }
.e-fragor details { border-bottom: 1px solid var(--line); }
.e-fragor summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.e-fragor summary::-webkit-details-marker { display: none; }
.e-fragor summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--ink); }
.e-fragor details[open] summary::after { content: "–"; }
.e-fragor p { margin: 0; padding: 0 0 20px; font-size: 15px; }
.e-fragor a { color: var(--purple); }

/* Kontakt */
.e-kontakt { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #312b33; }
.e-kontakt__bild { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.e-kontakt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(35,24,37,.88), rgba(35,24,37,.68) 46%, rgba(35,24,37,.82)); }
.e-kontakt__rad { min-height: 540px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 64px 0; }
.e-kontakt h2 { color: #fff; font-size: clamp(40px, 4.2vw, 60px); line-height: 1.04; }
.e-kontakt h2 em { font-weight: 400; }
.e-kontakt p { color: rgba(255,255,255,.86); max-width: 340px; }
.e-kontakt .e-knapp { margin-top: 10px; }
.e-kontakt__info { display: flex; flex-direction: column; gap: 18px; }
.e-kontakt__info a { font-family: var(--serif); font-size: 24px; color: #fff; text-underline-offset: 7px; font-style: italic; }
.e-kontakt__info p { margin: 0; }

/* Sidfot */
.e-fot { background: var(--ivory); padding: 26px 0; font-size: 12.5px; color: var(--muted); }
.e-fot__rad { display: flex; justify-content: space-between; gap: 18px; }
.e-fot a { color: var(--muted); }

@media (max-width: 1050px) {
  .e-wrap { width: calc(100% - 48px); }
  .e-hero__inner { min-height: 570px; }
  .e-hero__text { width: 55%; }
}
@media (max-width: 800px) {
  .e-meny { display: none; }
  .e-huvud__rad { min-height: 88px; justify-content: space-between; }
  .e-hero::after { background: linear-gradient(0deg, #f5f0ea 0%, #f5f0ea 35%, rgba(245,240,234,.97) 45%, rgba(245,240,234,.72) 56%, rgba(245,240,234,0) 75%); }
  .e-hero__bild { object-position: 68% top; height: 70%; }
  .e-hero__inner { min-height: 650px; align-items: flex-end; padding-bottom: 48px; }
  .e-hero__text { width: 100%; max-width: none; }
  .e-faq__rad, .e-kontakt__rad { grid-template-columns: 1fr; }
  .e-lakare__rad { grid-template-columns: 1fr; gap: 32px; }
  .e-filosofi h2 { font-size: 49px; width: 35%; }
  .e-steg { margin-left: 36%; }
  .e-steg li { padding-left: 120px; min-height: 180px; }
  .e-steg__nr { font-size: 100px; top: 8px; letter-spacing: -8px; }
}
@media (max-width: 600px) {
  .e-wrap { width: calc(100% - 40px); }
  .e-behandlingar { padding: 64px 0 72px; }
  .e-lakare { padding: 64px 0; }
  .e-lakare__bild { max-width: 300px; }
  .e-faq { padding: 64px 0 72px; }
  .e-faq__rad > div:first-child { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
  .e-faq h2 { margin: 0; }
  .e-faq__bild { height: 210px; }
  .e-kontakt::before { background: rgba(35,24,37,.8); }
  .e-kontakt__rad { min-height: 0; padding: 64px 0; }
  .e-filosofi::before { display: none; }
  .e-filosofi__foto { top: 104px; bottom: auto; height: 330px; width: 100%; max-width: none; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }
  .e-filosofi__foto img { object-position: left center; }
  .e-filosofi__foto::after { display: none; }
  .e-filosofi__rad { min-height: 0; padding: 40px 0 42px; }
  .e-filosofi h2 { position: relative; top: auto; width: 100%; text-align: left; min-height: 400px; max-width: none; }
  .e-steg { margin: 25px 0 0; gap: 18px; }
  .e-steg li { padding: 22px 0 0 78px; min-height: 0; }
  .e-steg__nr { font-size: 72px; top: 4px; letter-spacing: -5px; }
  .e-steg h3 { font-size: 23px; }
  .e-steg p { max-width: none; font-size: 15px; line-height: 26px; }
  .e-steg li.e-steg__knapp { padding-left: 78px; }
  .e-logga img { width: 140px; }
  .e-knapp { padding: 0 16px; font-size: 14px; }
  .e-fot__rad { flex-direction: column; gap: 6px; }
}
