/* =========================================================
   Lumen Tannklinikk — styles.css
   Design system: "Soft Calm" — pastel, warm, organic, gentle
   ========================================================= */

:root {
  /* Palette — warm cream base + soft pastels */
  --cream: #fbf7f1;
  --cream-2: #f4ede4;       /* warm section */
  --paper: #fffdfa;         /* cards */
  --ink: #423b4f;           /* soft deep plum-charcoal */
  --muted: #7d7588;
  --line: #ece3d6;

  --blue: #8ab4dd;          /* soft powder blue */
  --blue-deep: #4c6a99;     /* accessible text/buttons */
  --blush: #f2c4b3;         /* warm peach */
  --blush-deep: #d99a82;
  --mint: #bee3cf;
  --lav: #c9c2e6;

  /* Soft pastel gradient (deepened just enough to read on cream) */
  --grad: linear-gradient(115deg, #6e92c4 0%, #b79fd8 55%, #d99a82 100%);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Generous, rounded, soft */
  --r: 26px;
  --r-lg: 40px;
  --r-xl: 56px;
  --sh-soft: 0 14px 40px -20px rgba(76, 70, 95, .28);
  --sh: 0 26px 60px -28px rgba(76, 70, 95, .34);
  --sh-lift: 0 40px 80px -36px rgba(76, 70, 95, .40);

  --maxw: 1140px;
  --ease: cubic-bezier(.22, .68, .35, 1);
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.012em;
  color: var(--ink);
  font-optical-sizing: auto;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.section { position: relative; padding: clamp(76px, 12vw, 140px) 0; }
.section-warm { background: var(--cream-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-deep); margin-bottom: 18px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blush-deep);
}

.section-head { max-width: 640px; margin: 0 auto clamp(48px, 7vw, 76px); text-align: center; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.section-sub { color: var(--muted); margin-top: 18px; font-size: 1.06rem; }

/* ---------- Gradient text (clipping fix preserved) ---------- */
.grad-text {
  display: inline-block;          /* required for background-clip:text */
  padding: .06em .16em .18em 0;   /* symmetric top/bottom + right so g,j,p,y aren't clipped */
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 18px; top: -52px; z-index: 300;
  background: var(--ink); color: #fff;
  padding: 11px 20px; border-radius: 999px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-deep); color: #fff;
  box-shadow: 0 14px 28px -14px rgba(76, 106, 153, .65);
}
.btn-primary:hover { background: #41608f; transform: translateY(-2px); box-shadow: 0 20px 36px -16px rgba(76, 106, 153, .7); }
.btn-soft { background: var(--paper); color: var(--ink); box-shadow: var(--sh-soft); }
.btn-soft:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.btn-lg { padding: 17px 32px; font-size: 1.04rem; }
.btn-block { width: 100%; }
:focus-visible {
  outline: 3px solid rgba(138, 180, 221, .6);
  outline-offset: 3px;
}

/* ---------- Header (floating pill) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding: 16px 18px 0;
  display: flex; flex-direction: column; align-items: center;
}
.header-pill {
  width: 100%; max-width: var(--maxw);
  display: flex; align-items: center; gap: 22px;
  padding: 12px 14px 12px 24px;
  background: rgba(255, 253, 250, .78);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  box-shadow: var(--sh-soft);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled .header-pill {
  box-shadow: var(--sh);
  background: rgba(255, 253, 250, .92);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 28px; height: 32px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name {
  font-family: var(--font-head); font-weight: 600;
  font-size: 1.4rem; letter-spacing: -.01em; color: var(--ink);
}
.brand-name--light { color: var(--ink); }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 30px; }
.site-nav a {
  font-weight: 500; font-size: .97rem; color: var(--ink);
  position: relative; padding: 6px 2px;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--blush-deep);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  flex-direction: column; justify-content: center; gap: 5px;
  margin-left: auto;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  width: 100%; max-width: var(--maxw); margin-top: 10px;
  background: rgba(255, 253, 250, .97);
  border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh);
  backdrop-filter: blur(12px);
}
.mobile-nav nav { display: flex; flex-direction: column; padding: 12px 20px 20px; }
.mobile-nav a { font-weight: 500; padding: 13px 6px; border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { border: none; margin-top: 14px; color: #fff; justify-content: center; }

/* ---------- Organic blobs ---------- */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .55; pointer-events: none; z-index: 0;
}
.blob-a { width: 460px; height: 460px; background: var(--blue); top: -120px; right: -120px; }
.blob-b { width: 380px; height: 380px; background: var(--blush); bottom: -40px; left: -140px; }
.blob-c { width: 300px; height: 300px; background: var(--lav); top: 38%; left: 46%; opacity: .4; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 7vw, 80px); padding-bottom: 0; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(34px, 6vw, 70px);
  align-items: center;
  padding: clamp(40px, 7vw, 90px) 0 clamp(90px, 12vw, 150px);
}
.hero-copy h1 {
  font-size: clamp(2.7rem, 6.6vw, 4.6rem);
  font-weight: 600; margin: 14px 0 22px;
}
.hero-lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.hero-trust { display: flex; flex-direction: column; gap: 9px; font-size: .98rem; }
.hero-trust li { display: flex; align-items: center; gap: 10px; }
.hero-trust span {
  width: 24px; height: 24px; flex: none; display: grid; place-items: center;
  background: var(--blush); color: #fff; border-radius: 50%; font-size: .72rem;
}

.hero-media { position: relative; }
.hero-frame {
  position: relative; overflow: hidden;
  /* organic blob mask instead of a rectangle */
  border-radius: 62% 38% 58% 42% / 56% 52% 48% 44%;
  aspect-ratio: 1 / 1.06;
  box-shadow: var(--sh-lift);
  border: 8px solid var(--paper);
  background: #dfeaf3;
  animation: morph 16s ease-in-out infinite alternate;
}
.hero-video { width: 100%; height: 100%; object-fit: cover; }
@keyframes morph {
  0%   { border-radius: 62% 38% 58% 42% / 56% 52% 48% 44%; }
  50%  { border-radius: 45% 55% 42% 58% / 48% 46% 54% 52%; }
  100% { border-radius: 58% 42% 50% 50% / 52% 58% 42% 48%; }
}
.hero-chip {
  position: absolute; background: var(--paper);
  border-radius: 999px; box-shadow: var(--sh);
  display: flex; align-items: baseline; gap: 7px;
  padding: 12px 20px; font-size: .86rem; color: var(--muted);
}
.hero-chip strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); }
.chip-rating { left: -16px; bottom: 40px; }
.chip-soft {
  right: 4px; top: 30px; padding: 11px 18px;
  background: var(--mint); color: #2f5e49; font-weight: 600;
}

/* wave divider */
.wave { line-height: 0; }
.wave svg { width: 100%; height: 90px; display: block; }
.wave-cream { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; }
.wave-cream svg path { fill: var(--cream); }
.has-wave { padding-top: clamp(110px, 14vw, 180px); }
.wave-top { position: absolute; top: -1px; left: 0; right: 0; }
.wave-top svg { height: 100px; }
.wave-top svg path { fill: var(--cream-2); }

/* ---------- Stat bubbles ---------- */
.stats { background: var(--cream); padding: 8px 0 clamp(20px, 5vw, 50px); }
.stats-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px;
}
.bubble {
  background: var(--paper); border-radius: 999px;
  padding: 18px 32px; box-shadow: var(--sh-soft);
  display: flex; align-items: baseline; gap: 10px;
  border: 1px solid rgba(255, 255, 255, .8);
}
.bubble strong {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem); color: var(--blue-deep);
}
.bubble span { color: var(--muted); font-size: .94rem; }
.bubble:nth-child(2) strong { color: var(--blush-deep); }
.bubble:nth-child(3) strong { color: #5a8a6e; }
.bubble:nth-child(4) strong { color: #7d6fab; }

/* ---------- Services (soft tinted, offset) ---------- */
.service-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.service {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--paper); border-radius: var(--r-lg);
  padding: 32px 32px; box-shadow: var(--sh-soft);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service:nth-child(even) { transform: translateY(20px); }
.service:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.service:nth-child(even):hover { transform: translateY(14px); }
.service-ic {
  width: 58px; height: 58px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--blue-deep);
}
.service-ic svg { width: 27px; height: 27px; }
.tint-blue  .service-ic { background: #dcebf9; }
.tint-blush .service-ic { background: #f8ddd1; color: var(--blush-deep); }
.tint-mint  .service-ic { background: #d4eede; color: #4f876b; }
.tint-lav   .service-ic { background: #e4def4; color: #6f61a8; }
.service h3 { font-size: 1.28rem; font-weight: 600; margin-bottom: 7px; }
.service p { color: var(--muted); font-size: .98rem; }

/* ---------- Split sections ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 84px); align-items: center;
  position: relative; z-index: 1;
}
.split-copy h2 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); margin-bottom: 20px; }
.split-copy > p { color: var(--muted); margin-bottom: 26px; }

.check-list { display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; }
.check-list span {
  flex: none; width: 25px; height: 25px; display: grid; place-items: center;
  border-radius: 50%; background: var(--mint); color: #2f5e49;
  font-size: .74rem; font-weight: 700; margin-top: 3px;
}

.split-media { position: relative; }
.om-photo {
  aspect-ratio: 1 / 1.04;
  border-radius: 58% 42% 52% 48% / 52% 56% 44% 48%;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 75% 15%, rgba(201, 194, 230, .6), transparent 60%),
    linear-gradient(160deg, #d9e7f3, #f3ddd2);
  display: grid; place-items: center;
  border: 8px solid var(--paper); box-shadow: var(--sh);
  animation: morph 18s ease-in-out infinite alternate;
}
.om-photo img { width: 100%; height: 100%; object-fit: cover; }
.om-photo-note { color: #8a8197; font-size: .96rem; text-align: center; padding: 0 28px; line-height: 1.5; }
.om-photo-note small { color: #a59cb1; font-size: .82rem; }
.om-badge {
  position: absolute; right: -6px; bottom: 14px;
  background: var(--paper); border-radius: 999px;
  padding: 15px 26px; box-shadow: var(--sh);
  display: flex; flex-direction: column; line-height: 1.3;
}
.om-badge strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--blue-deep); }
.om-badge span { font-size: .82rem; color: var(--muted); }

/* ---------- Process path ---------- */
.path {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px; position: relative;
}
.path::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%;
  height: 2px; background: repeating-linear-gradient(90deg, var(--blush) 0 10px, transparent 10px 20px);
  z-index: 0;
}
.node { position: relative; text-align: center; padding: 0 14px; z-index: 1; }
.node-dot {
  width: 68px; height: 68px; margin: 0 auto 22px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--paper); box-shadow: var(--sh-soft);
  font-family: var(--font-head); font-weight: 600; font-size: 1.3rem;
  color: var(--blue-deep); border: 1px solid rgba(255,255,255,.8);
}
.node:nth-child(2) .node-dot { color: var(--blush-deep); }
.node:nth-child(3) .node-dot { color: #5a8a6e; }
.node h3 { font-size: 1.24rem; font-weight: 600; margin-bottom: 8px; }
.node p { color: var(--muted); font-size: .98rem; }

/* ---------- Contact ---------- */
.contact-split { align-items: stretch; }
.contact-list { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.contact-list li { display: flex; align-items: center; gap: 13px; }
.contact-ic {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; background: var(--paper); color: var(--blue-deep);
  box-shadow: var(--sh-soft);
}
.contact-ic svg { width: 19px; height: 19px; }
.contact-list a:hover { color: var(--blue-deep); }

.form-card {
  background: var(--paper); border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--sh);
  border: 1px solid rgba(255, 255, 255, .8);
}
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 16px;
  background: var(--cream); transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); background: #fff; outline: none;
}
.field textarea { resize: vertical; }
.form-note { font-size: .92rem; color: var(--blue-deep); font-weight: 600; }
.form-note:not(:empty) { margin-bottom: 14px; }
.form-fine { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #d6cfe0;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 70px 0 36px; margin-top: 10px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { max-width: 30ch; font-size: .95rem; color: #aaa1bb; }
.footer-col h2 {
  font-family: var(--font-body); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; margin-bottom: 16px;
}
.footer-col p { font-size: .95rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--blush); }
.footer-acute { color: var(--mint) !important; font-weight: 600; margin-top: 12px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 26px; font-size: .88rem; color: #9389a6;
}
.credit a { color: var(--blush); font-weight: 600; }
.credit a:hover { text-decoration: underline; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.service:nth-child(even).reveal { transform: translateY(48px); }
.service:nth-child(even).reveal.in { transform: translateY(20px); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { order: 2; }
  .hero-media { order: 1; max-width: 440px; margin: 0 auto; }
  .hero-lead { max-width: 48ch; }
  .service-list { grid-template-columns: 1fr; }
  .service:nth-child(even), .service:nth-child(even):hover { transform: none; }
  .service:nth-child(even).reveal { transform: translateY(28px); }
  .service:nth-child(even).reveal.in { transform: none; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: 2; max-width: 480px; margin: 0 auto; }
  .contact-split .split-copy { order: 1; }
  .path { grid-template-columns: 1fr; gap: 18px; }
  .path::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-pill { padding: 10px 12px 10px 18px; }
  .stats-row { gap: 12px; }
  .bubble { padding: 14px 22px; flex: 1 1 42%; justify-content: center; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .om-badge { right: 50%; transform: translateX(50%); }
  /* On mobile, show the whole photo (less crop = more "zoomed out") */
  .om-photo { aspect-ratio: 1 / 0.92; }
  .om-photo img { object-fit: contain; padding: 14px; }
  .hero-actions .btn { flex: 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-frame, .om-photo { animation: none !important; }
}