/* ==========================================================================
   HøjdeRensen — refine layer (v82)
   Loaded last on every page. Keeps the existing look, copy and layout;
   tightens type, contrast, focus and motion.
   Sources: Impeccable (polish/craft floor), Emil Kowalski (motion),
   Taste (type + tells).
   ========================================================================== */

:root{
  /* Motion tokens (Emil Kowalski) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 160ms;
  --dur-ui: 200ms;
  --dur-reveal: 560ms;

  /* Two typefaces only: Space Grotesk (display) + Inter (text).
     The old monospace "technical" voice now uses the text face. */
  --font-mono: var(--font-body);

  accent-color: var(--navy-700);
  -webkit-tap-highlight-color: transparent;
}

html{ text-size-adjust:100%; -webkit-text-size-adjust:100%; }
body{ text-rendering:optimizeLegibility; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }

/* Headings: balanced lines, no orphans in body copy */
h1, h2, h3{ text-wrap:balance; }
p, li, .faq-item p{ text-wrap:pretty; }

/* Numbers in prices and tables line up */
.price-table td.num, .price-table th.num, .tier-card .t-price, .pkg-price, .pkg-start,
.addon-price, .vp-price-meta, .vp-price-after, .about-stats, .cart-badge{
  font-variant-numeric: tabular-nums;
}

/* ---------- Theme the browser chrome ---------- */
::selection{ background:var(--navy-700); color:#fff; }
input, textarea, select{ caret-color:var(--navy-700); }
html{ scrollbar-color: var(--line-strong) transparent; }

/* Visible, consistent keyboard focus (never on mouse click) */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible{
  outline:2px solid var(--navy-600);
  outline-offset:3px;
  border-radius:3px;
}
:where(.bg-navy, .hero-photo, .site-footer, footer, .about, .erhverv-teaser) :where(a, button, summary):focus-visible{
  outline-color:var(--steel-300);
}
:where(input, select, textarea):focus-visible{ outline-offset:1px; }

/* ---------- Eyebrows: same words, quieter voice ----------
   No more tracked uppercase mono with a dash ornament. Sentence case in
   the text face, readable size, AA contrast on both grounds. */
.eyebrow{
  font-family:var(--font-body);
  font-size:15px;
  font-weight:600;
  letter-spacing:0;
  text-transform:none;
  color:var(--navy-600);
  gap:0;
}
.eyebrow::before{ content:none; display:none; }
.section-light .eyebrow{ color:var(--navy-600); }
.bg-navy .eyebrow,
.hero-photo .eyebrow,
.hero .eyebrow,
.hero-eyebrow,
.eyebrow[style*="steel-300"]{ color:var(--steel-300) !important; }

/* ---------- Labels: sentence case, readable ---------- */
.footer-h{
  font-family:var(--font-body); font-size:14px; font-weight:600;
  text-transform:none; letter-spacing:0; color:rgba(255,255,255,0.78);
}
.footer-bottom, .footer-bottom a, .footer-bottom span{ color:rgba(255,255,255,0.62); }
.footer-bottom a:hover{ color:#fff; }

.d-label, .direct-item .d-label, .contact-info-item .d-label{
  font-family:var(--font-body); font-size:13.5px; font-weight:600;
  text-transform:none; letter-spacing:0;
}
.form-row label, .cart-form-card label, label.form-label{
  font-family:var(--font-body); font-size:13.5px; font-weight:600;
  text-transform:none; letter-spacing:0;
}
.suboption-title, .mini-price-card h3, .price-block-title, .price-fold-body .price-block-title{
  font-family:var(--font-body); font-size:13.5px; font-weight:700;
  text-transform:none; letter-spacing:0;
}
.price-table th{
  font-family:var(--font-body); font-size:13px; font-weight:700;
  text-transform:none; letter-spacing:0;
}
.table-scroll-hint{ font-family:var(--font-body); font-size:13px; text-transform:none; letter-spacing:0; }

.s-location{ font-size:13px; letter-spacing:0; text-transform:none; }
.compare-tag{ font-size:13px; letter-spacing:0; text-transform:none; }
.ba-badge, .ba-grid-3 .ba-badge{ font-size:13px; letter-spacing:0; text-transform:none; }
.pkg-badge, .pkg-select-label{ font-size:12.5px; letter-spacing:0; text-transform:none; }
.pkg-price-vat{ font-size:12.5px; }
.cart-badge{ font-size:11.5px; }

/* Small print raised to a readable floor */
.ba-caption, .ba-grid .ba-caption, .ba-grid-2 .ba-caption, .ba-grid-3 .ba-caption,
.quote-photo-caption, .form-note, .price-note, .file-attach-hint, .pkg-start,
.pkg-toggle-fee, .vp-fradrag, .et-title, .about-portrait-name,
.tp-review-author-name, .addon-text p, .addon-box .addon-price span,
.service-picker-card span.sp-sub, .cart-item-service, .vp-floor-head span,
.vp-row-label span, .vp-price-meta, .vp-price-after, .vp-pill .vp-pill-tag,
.pkg-addon-check, .pkg-addon-height{
  font-size:13.5px;
}
.tp-review-date{ font-size:12.5px; }
.tp-verified{ font-size:12.5px; color:#1d6a43; }

/* ---------- Contrast fixes (WCAG AA) ---------- */
.icon-bar-badge{
  background:#a93226; color:#fff; font-size:12px; letter-spacing:0;
  text-transform:none; box-shadow:none;
}
.et-thumb-badge{ background:#157a46; box-shadow:none; }
.cart-empty .btn-ghost{ color:var(--navy-900); border-color:var(--line-strong); background:transparent; }
@media (hover:hover) and (pointer:fine){
  .cart-empty .btn-ghost:hover{ border-color:var(--navy-900); background:transparent; }
}

/* ---------- Surfaces: no shadow at rest on small UI ---------- */
.tp-review{ box-shadow:none; }

/* ---------- Viewport units ---------- */
.hero-photo{ min-height:100vh; min-height:100svh; }

/* ---------- Press feedback (Emil: scale 0.97 on :active) ---------- */
.btn, .vp-pill, .pill, .pkg-select-btn, .pkg-cart-btn, .pkg-select-close, .service-picker-card, .cart-link,
.nav-toggle, .tp-link, .file-attach-btn, button[type="submit"]{
  transition-property: transform, background-color, border-color, color, opacity, box-shadow;
  transition-duration: var(--dur-press);
  transition-timing-function: var(--ease-out);
}
.btn:active, .vp-pill:active, .pill:active, .pkg-select-btn:active,
.service-picker-card:active, .file-attach-btn:active, .pkg-cart-btn:active, .pkg-select-close:active, button[type="submit"]:active,
.nav-toggle:active{
  transform:scale(0.97);
}
.btn:disabled, button:disabled{ transform:none; cursor:not-allowed; }

/* ---------- Hover motion only for real pointers ---------- */
.icon-bar-item, .service-card, .tier-card{
  transition-property: transform, border-color, box-shadow;
  transition-duration: var(--dur-ui);
  transition-timing-function: var(--ease-out);
}
@media (hover:none), (pointer:coarse){
  .icon-bar-item:hover, .service-card:hover, .tp-review:hover{ transform:none; }
  .service-card:hover{ box-shadow:none; }
}

/* Dropdown: fast, from its trigger, never ease-in */
.nav-dropdown-menu{
  transform-origin: top center;
  transition: opacity 150ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu{
  transition: opacity 150ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s;
}

/* FAQ chevrons and accordions rotate on the strong curve */
.faq-chev, .tp-chevron{ transition: transform var(--dur-ui) var(--ease-out); }

/* ---------- Scroll reveal ----------
   Hidden start state ONLY when motion is welcome; otherwise content is
   simply there. Stronger curve, shorter travel. */
.js-reveal .reveal,
.js-reveal .reveal-img{
  opacity:1; transform:none;
}
@media (prefers-reduced-motion: no-preference){
  .js-reveal .reveal{
    opacity:0; transform:translateY(12px);
    transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  }
  .js-reveal .reveal-img{
    opacity:0; transform:translateY(20px);
    transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
  }
  .js-reveal .reveal.in, .js-reveal .reveal-img.in{ opacity:1; transform:none; }

  /* Light stagger inside grids that reveal as one block (40ms steps) */
  .js-reveal .r-stagger.reveal{ transform:none; }
  .js-reveal .r-stagger.reveal > *{
    opacity:0; transform:translateY(10px);
    transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 40ms);
  }
  .js-reveal .r-stagger.reveal.in > *{ opacity:1; transform:none; }
}

/* The hero is the first thing people see: never hold it back */
.js-reveal .hero-single.reveal{ opacity:1; transform:none; transition:none; }

/* Reduced motion: keep fades that explain, drop movement */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .btn:active, .vp-pill:active, .pill:active{ transform:none; }
  .icon-bar-item:hover, .service-card:hover, .tp-review:hover{ transform:none; }
  .nav-dropdown-menu, .nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu{
    transform:translate(-50%,0);
  }
}

/* ---------- Round 2: findings from the render ---------- */

/* Hero trust row overflowed the screen between 521 and ~1000px */
@media (max-width:1000px){
  .hero-trust{ flex-wrap:wrap; gap:14px 28px; }
  .hero-trust-item{ white-space:normal; }
}
.hero-trust-item span{ color:rgba(255,255,255,0.72); font-size:14px; }

/* Muted grey text on the navy "Om HøjdeRensen" ground was 2.8:1 */
.bg-navy .about-copy p,
.bg-navy .section-head p{ color:rgba(255,255,255,0.78); }

/* Running text: one ink step darker, and a readable floor */
:root{ --muted:#4b5360; }
.terms-body p{ font-size:15px; }
.tp-review-body{ font-size:14.5px; }
.service-card p{ font-size:14.5px; }

/* Icon row: photo tiles sit on the page, no resting shadow */
.icon-bar-img{ box-shadow:none; }
.icon-bar-badge{ color:#fff !important; }

/* Long centred intro paragraph capped to a comfortable measure */
.measure{ max-width:66ch; margin-left:auto; margin-right:auto; }

/* ---------- Round 3 ---------- */
/* "2" and "3+" were navy on navy (invisible) in Om HøjdeRensen */
.bg-navy .about-stat strong{ color:#fff; }
.bg-navy .about-stat span{ color:rgba(255,255,255,0.72) !important; }

/* Package headers are navy: units and start price were grey-on-navy */
.pkg-head .pkg-price span{ color:rgba(255,255,255,0.74); opacity:1; }
.pkg-head .pkg-start,
.pkg-card.is-featured .pkg-head .pkg-start{ color:rgba(255,255,255,0.74); }

/* Step numbers keep their meaning (order), lose the mono costume */
.process-num{ font-family:var(--font-display); font-size:15px; font-weight:700; color:var(--navy-600); letter-spacing:0; }
.bg-navy .process-num{ color:var(--navy-600); }

.pkg-select-label{ font-size:13px; }
.tp-review-date, .tp-verified{ font-size:13px; }

/* Fliser price heading was forced onto one line and pushed the page sideways on phones */
@media (max-width:760px){
  .section-head h2[style*="nowrap"]{ white-space:normal !important; }
  .section-head[style*="display:flex"] > div{ min-width:0; }
}
.faq-list{ padding-top:4px; }
.compare-handle:focus-visible{ outline:none; }
.compare-handle:focus-visible .compare-grip{ outline:2px solid #fff; outline-offset:3px; }


/* ==========================================================================
   v83 — motion layer: calm, expensive-feeling, never in the way.
   Everything below only runs when the visitor has not asked for less motion.
   ========================================================================== */
picture{ display:contents; }

@media (prefers-reduced-motion: no-preference){

  html{ scroll-behavior:smooth; }

  /* Soft cross-fade between pages (Chrome/Edge/Safari 18+; others just navigate) */
  @view-transition{ navigation:auto; }
  ::view-transition-old(root){ animation:260ms var(--ease-out) both vtOut; }
  ::view-transition-new(root){ animation:420ms var(--ease-out) both vtIn; }
  @keyframes vtOut{ to{ opacity:0; } }
  @keyframes vtIn{ from{ opacity:0; transform:translateY(8px); } }

  /* Hero: the photo emerges from navy, then the words arrive one by one */
  .hero-photo{ position:relative; isolation:isolate; }
  .hero-photo::after{
    content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
    background:var(--navy-950);
    animation:heroVeil 1400ms var(--ease-out) 60ms both;
  }
  @keyframes heroVeil{ from{ opacity:1; } to{ opacity:0; } }

  .hero-single > *{
    animation:heroIn 900ms var(--ease-out) both;
  }
  .hero-single > *:nth-child(1){ animation-delay:180ms; }
  .hero-single > *:nth-child(2){ animation-delay:260ms; }
  .hero-single > *:nth-child(3){ animation-delay:360ms; }
  .hero-single > *:nth-child(4){ animation-delay:450ms; }
  .hero-single > *:nth-child(5){ animation-delay:540ms; }
  .hero-single > *:nth-child(n+6){ animation-delay:620ms; }
  @keyframes heroIn{
    from{ opacity:0; transform:translateY(18px); filter:blur(6px); }
    to{ opacity:1; transform:none; filter:blur(0); }
  }

  /* Hero drifts up and dims a touch as you scroll past it (scroll-linked, GPU only) */
  @supports (animation-timeline: view()){
    .hero-single{
      animation:heroDrift linear both;
      animation-timeline:view();
      animation-range:exit 0% exit 100%;
    }
    @keyframes heroDrift{ to{ transform:translateY(-60px); opacity:0.35; } }
  }

  /* Header tucks away on the way down, returns on the way up */
  .site-header{ transition:transform 420ms var(--ease-drawer), box-shadow 300ms var(--ease-out); }
  .site-header.is-hidden{ transform:translateY(-100%); }
  .site-header.is-scrolled{ box-shadow:0 1px 0 rgba(255,255,255,0.06); }

  /* Section intros: label, heading and text arrive in sequence */
  .js-reveal .section-head.reveal{ opacity:1; transform:none; }
  .js-reveal .section-head.reveal > *{
    opacity:0; transform:translateY(14px);
    transition:opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  }
  .js-reveal .section-head.reveal > *:nth-child(2){ transition-delay:70ms; }
  .js-reveal .section-head.reveal > *:nth-child(3){ transition-delay:140ms; }
  .js-reveal .section-head.reveal > *:nth-child(n+4){ transition-delay:200ms; }
  .js-reveal .section-head.reveal.in > *{ opacity:1; transform:none; }

  /* Photos open like a curtain and settle (clip-path + scale on the image itself) */
  .r-img{
    clip-path:inset(14% 0 0 0);
    transform:scale(1.06);
    transform-origin:50% 60%;
    transition:clip-path 1100ms var(--ease-in-out), transform 1400ms var(--ease-out);
  }
  .r-img.is-in{ clip-path:inset(0 0 0 0); transform:scale(1); }

  /* Buttons: a quiet lift, arrows lean forward */
  @media (hover:hover) and (pointer:fine){
    .btn:hover{ transform:translateY(-1px); }
    .btn:hover svg{ transform:translateX(3px); }
    .btn svg{ transition:transform 260ms var(--ease-out); }
    .icon-bar-item:hover .icon-bar-img{ transform:translateY(-3px); }
    .icon-bar-img{ transition:transform 320ms var(--ease-out); }
  }
}
