/* ===========================================================
   NOVI CLINICS — shared design system
   =========================================================== */
:root {
  --accent: #1D1C1A;
  --ink: #1D1C1A;
  --ink-soft: #57544F;
  --ink-faint: #8A857C;
  --paper: #F1EFEB;
  --paper-2: #FBFAF8;
  --paper-3: #ECE8E0;
  --dark: #1A1816;
  --dark-2: #141311;
  --line: rgba(29,28,26,0.14);
  --sy: clamp(120px, 13vw, 200px);
  --fd: 'Newsreader', Georgia, serif;
  --fb: 'Hanken Grotesk', system-ui, sans-serif;
  --fm: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.16,1,.3,1);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--fb); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[id] { scroll-margin-top: 92px; }
::selection { background: #1D1C1A; color: #F4F1EC; }
img { max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { overflow-wrap: break-word; word-break: break-word; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(24px,5vw,56px); }

/* hero with a B&W image fading in from the right */
.hero-has-img { position: relative; overflow: hidden; }
.hero-has-img > .wrap { position: relative; z-index: 1; }
.hero-fade { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; z-index: 0; pointer-events: none; }
.hero-fade img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(1.02);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 22%, rgba(0,0,0,.55) 50%, #000 82%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 22%, rgba(0,0,0,.55) 50%, #000 82%); }
@media (max-width: 900px) { .hero-fade { display: none; } }
.section { padding: var(--sy) 0; }
.eyebrow { font-family: var(--fm); font-size: 11px; letter-spacing: 0.22em; color: var(--ink-faint); text-transform: uppercase; }
.serif { font-family: var(--fd); font-weight: 400; letter-spacing: -0.02em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; border: none; cursor: pointer;
  border-radius: 100px; font-family: var(--fb); font-size: 15px; letter-spacing: 0.02em; padding: 16px 28px;
  transition: transform .3s var(--ease), box-shadow .35s ease, background .25s ease, color .25s ease; }
.btn span.arw { display: inline-block; font-size: 17px; transition: transform .35s var(--ease); }
.btn:hover span.arw { transform: translateX(5px); }
.btn-dark { background: var(--accent); color: #F4F1EC; box-shadow: 0 10px 28px rgba(18,18,20,0.24); }
.btn-dark:hover { transform: translateY(-2px); }
.btn-light { background: #F4F1EC; color: #1B1A18; }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid rgba(29,28,26,0.28); }
.btn-outline:hover { background: var(--ink); color: #F4F1EC; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(241,239,235,0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(29,28,26,0.08); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 14px clamp(24px,5vw,56px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-size: 17px; letter-spacing: 0.22em; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.brand span { font-weight: 300; }
.nav-links { display: flex; align-items: center; gap: clamp(16px,2vw,30px); }
.nav-links a { position: relative; font-size: 14px; color: var(--ink-soft); text-decoration: none; transition: color .2s ease; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-drop > a { display: inline-flex; align-items: center; }
.nav-drop .caret { font-size: 9px; margin-left: 6px; opacity: .6; }
.nav-drop-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 210px; background: #FBFAF8; border: 1px solid rgba(29,28,26,0.1); border-radius: 14px; padding: 8px;
  box-shadow: 0 26px 60px -26px rgba(30,28,24,0.42); opacity: 0; visibility: hidden;
  transition: opacity .22s ease, transform .22s ease; z-index: 130; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }
.nav-drop-menu a { display: block; padding: 11px 14px; font-size: 14px; color: var(--ink-soft); text-decoration: none; border-radius: 9px; white-space: nowrap; }
.nav-drop-menu a::after { display: none; }
.nav-drop-menu a:hover { background: rgba(29,28,26,0.06); color: var(--ink); }
#mobileMenu a.m-sub { font-size: 17px; opacity: .55; padding: 7px 20px; }
.nav-right { display: flex; align-items: center; gap: clamp(14px,1.6vw,22px); }
.lang-toggle { background: transparent; border: none; cursor: pointer; font-family: var(--fm); font-size: 12px;
  letter-spacing: 0.12em; color: var(--ink-soft); padding: 6px 4px; }
.lang-toggle b { color: var(--ink); }
.lang-toggle .sep { opacity: .4; margin: 0 3px; }
.nav .btn { padding: 9px 18px; font-size: 13.5px; }
.hamburger { display: none; background: transparent; border: none; cursor: pointer; padding: 6px; color: var(--ink); }

#mobileMenu { position: fixed; inset: 0; z-index: 200; background: var(--dark-2); flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; display: none; }
#mobileMenu.open { display: flex; }
#mobileMenu a { color: #F4F1EC; text-decoration: none; font-family: var(--fd); font-size: 26px; padding: 11px 20px; transition: opacity .2s ease; }
#mobileMenu a:hover, #mobileMenu a.active { opacity: 1; }
#mobileMenu a { opacity: .82; }
#mobileMenu .m-cta { font-family: var(--fb); font-size: 16px; margin-top: 22px; background: #F4F1EC; color: #1B1A18; border-radius: 100px; padding: 14px 32px; opacity: 1; }
#mobileMenu .m-lang { font-family: var(--fm); font-size: 13px; letter-spacing: 0.14em; margin-top: 26px; opacity: .7; cursor: pointer; background: none; border: none; color: #F4F1EC; }
#mobileMenu .menu-close { position: absolute; top: 20px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.1); color: #F4F1EC; font-size: 20px; cursor: pointer; }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--dark-2); color: #CFCAC1; padding: clamp(88px,10vw,140px) 0 0; overflow: hidden; }
.foot a { color: rgba(207,202,193,0.85); text-decoration: none; transition: color .2s ease; }
.foot a:hover { color: #fff; }
.foot-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: clamp(56px,6.5vw,90px); border-bottom: 1px solid rgba(255,255,255,0.09); }
.foot-cols { display: flex; gap: clamp(36px,6vw,84px); flex-wrap: wrap; justify-content: space-between; padding: clamp(56px,6.5vw,88px) 0; }
.foot h4 { font-family: var(--fm); font-size: 10.5px; letter-spacing: 0.22em; color: rgba(207,202,193,0.5); margin: 0 0 20px; font-weight: 400; }
.foot-links { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.foot-bottom { padding: 26px 0 34px; border-top: 1px solid rgba(255,255,255,0.09); display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 12px; letter-spacing: 0.03em; color: rgba(207,202,193,0.5); }
.foot-mark { position: relative; z-index: 0; margin: clamp(8px,1.5vw,20px) 0 -0.16em; font-family: var(--fd); font-weight: 400;
  font-size: clamp(96px,18vw,260px); line-height: 0.82; letter-spacing: 0.05em; text-align: center;
  color: rgba(246,243,238,0.035); white-space: nowrap; pointer-events: none; user-select: none; }

/* ---------- reveal / motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.hi { opacity: 0; animation: rise 1.1s var(--ease) forwards; }
.hi-2 { animation-delay: .12s; } .hi-3 { animation-delay: .24s; } .hi-4 { animation-delay: .34s; } .hi-5 { animation-delay: .46s; }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1.05s var(--ease), transform 1.05s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.img-zoom { transition: transform 1.4s var(--ease); }
.img-zoom:hover { transform: scale(1.025); }

@media (prefers-reduced-motion: reduce) {
  .hi, .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ---------- hero (split) ---------- */
.hero { position: relative; background:
  linear-gradient(105deg, #E4DFD6 0%, #ECE8E1 46%, #F4F2EE 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(28px,4vw,64px); align-items: center;
  min-height: min(78vh, 760px); padding: clamp(48px,6vw,88px) 0; }
.hero-copy { max-width: 560px; }
.hero-copy h1 { margin: 22px 0 22px; font-family: var(--fd); font-weight: 400; letter-spacing: -0.02em;
  font-size: clamp(36px,4.8vw,62px); line-height: 1.05; color: var(--ink); }
.hero-copy p { margin: 0 0 14px; font-size: clamp(15.5px,1.5vw,18px); line-height: 1.6; color: var(--ink-soft); max-width: 440px; }
.hero-copy .note { font-size: 13.5px; color: var(--ink-faint); margin-top: 6px; }
.hero-media { position: relative; height: clamp(360px,52vw,600px); border-radius: 26px; overflow: hidden;
  box-shadow: 0 44px 100px -44px rgba(42,40,35,0.5); background: #DED8CF; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.62) contrast(1.05) brightness(1.0); }
.hero-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- treatment list (forside categories) ---------- */
.tlist { border-top: 2px solid rgba(29,28,26,0.5); }
.tlist a { display: flex; align-items: center; justify-content: space-between; gap: 20px; text-decoration: none;
  color: var(--ink); padding: clamp(26px,3vw,40px) 6px; border-bottom: 2px solid rgba(29,28,26,0.5);
  transition: padding-left .3s var(--ease); }
.tlist a:hover { padding-left: 18px; }
.tlist .t-name { font-family: var(--fd); font-size: clamp(26px,3.4vw,46px); letter-spacing: -0.01em; line-height: 1; }
.tlist .t-num { font-family: var(--fm); font-size: 12px; color: var(--ink-faint); margin-right: 22px; }
.tlist .t-left { display: flex; align-items: baseline; }
.tlist .t-arw { font-size: 20px; color: var(--ink-soft); transition: transform .3s var(--ease); }
.tlist a:hover .t-arw { transform: translateX(6px); }

/* dark variant */
.tlist.dark { border-top-color: rgba(246,244,240,0.55); }
.tlist.dark a { color: #F4F1EC; border-bottom-color: rgba(246,244,240,0.55); }
.tlist.dark .t-num { color: rgba(246,244,240,0.55); }
.tlist.dark .t-arw { color: rgba(246,244,240,0.7); }

/* ---------- cards ---------- */
.card { background: #fff; border: 1px solid rgba(29,28,26,0.08); border-radius: 24px; padding: clamp(30px,3vw,44px);
  box-shadow: 0 18px 40px -28px rgba(42,40,35,0.3); transition: transform .5s var(--ease), box-shadow .5s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 34px 70px -32px rgba(42,40,35,0.42); }

/* treatment-category card (behandlinger) */
.tcard { background: #FBFAF8; border: 1px solid rgba(29,28,26,0.1); border-radius: 24px; padding: clamp(30px,3vw,44px);
  transition: transform .5s var(--ease), box-shadow .5s ease; }
.tcard:hover { transform: translateY(-5px); box-shadow: 0 30px 64px -34px rgba(42,40,35,0.4); }
.tcard h3 { margin: 0 0 8px; font-family: var(--fd); font-weight: 400; font-size: clamp(24px,2.4vw,32px); letter-spacing: -0.01em; }
.tcard .tcard-sub { font-family: var(--fm); font-size: 10px; letter-spacing: 0.2em; color: var(--ink-faint); margin-bottom: 22px; }
.tcard .tc-links { display: flex; flex-direction: column; }
.tcard .tc-links a { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-decoration: none;
  color: var(--ink); font-size: clamp(16px,1.5vw,18.5px); padding: 15px 4px; border-top: 1px solid rgba(29,28,26,0.12);
  transition: padding-left .25s var(--ease), color .2s ease; }
.tcard .tc-links a:hover { padding-left: 10px; color: #000; }
.tcard .tc-links a .tc-arw { font-size: 16px; color: var(--ink-faint); transition: transform .25s var(--ease); }
.tcard .tc-links a:hover .tc-arw { transform: translateX(5px); }

/* ---------- reviews / faq / misc ---------- */
.stars { color: var(--accent); letter-spacing: 2px; font-size: 14px; margin-bottom: 18px; }
.faq-row { border-top: 1px solid var(--line); }
.faq-row button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: transparent; border: none; cursor: pointer; padding: 24px 4px; text-align: left; font-family: var(--fb); }
.faq-q { font-family: var(--fd); font-size: clamp(18px,1.7vw,24px); color: var(--ink); }
.faq-plus { font-size: 24px; color: var(--accent); line-height: 1; transition: transform .25s var(--ease); }
@keyframes faqDown { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }
.faq-a { animation: faqDown .5s var(--ease); padding: 0 4px 26px; }
.faq-a p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); max-width: 660px; }

.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pill-list li { display: flex; align-items: flex-start; gap: 18px; padding: 22px 0; border-top: 1px solid rgba(246,244,240,0.16); }
.pill-list li .n { font-family: var(--fm); font-size: 12px; color: rgba(246,244,240,0.45); padding-top: 6px; }
.pill-list li .t { font-family: var(--fd); font-size: clamp(20px,2.2vw,30px); line-height: 1.2; color: #F6F3EE; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .desktop-nav { display: none !important; }
  .hamburger { display: inline-flex !important; align-items: center; justify-content: center; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 26px; }
  .hero-media { height: clamp(300px, 62vw, 420px); order: -1; }
}
