/* Torvtak-landingsside — cinematisk variant.
   Hero med bg-foto, 3 service-kort, vedlikeholdsavtale-feature, prosess,
   rehab-tekst, hvorfor-oss, dekningsområde, CTA. Bruker .nhx-tv namespace.
   Avhenger av tokens.css (--tv-* paletter). Egne ekstra tokens nedenfor. */

html { scroll-behavior: smooth; }

.nhx-tv {
  box-sizing: border-box;
  font-family: 'Outfit', system-ui, sans-serif;
  color: #1A2540;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.nhx-tv *,
.nhx-tv *::before,
.nhx-tv *::after { margin: 0; padding: 0; box-sizing: border-box; }
.nhx-tv a { text-decoration: none; color: inherit; }
.nhx-tv img { display: block; width: 100%; height: 100%; object-fit: cover; }

:root {
  --tv-soft: rgba(236,138,94,0.1);
  --tv-ease: cubic-bezier(.22,.61,.36,1);
}

/* ════════ HERO ════════ */
.nhx-tv .tv-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--tv-dark);
}
.nhx-tv .tv-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .3;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.nhx-tv .tv-hero:hover .tv-hero-bg { transform: scale(1); }
.nhx-tv .tv-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,23,41,.5) 0%, rgba(15,23,41,.15) 35%, rgba(15,23,41,.6) 75%, rgba(15,23,41,.95) 100%),
    radial-gradient(ellipse at 50% 30%, rgba(236,138,94,.07) 0%, transparent 60%);
}
.nhx-tv .tv-hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 2rem;
}
.nhx-tv .tv-hero-content > * {
  opacity: 0;
  transform: translateY(35px);
  animation: tvUp 1s var(--tv-ease) forwards;
}
.nhx-tv .tv-hero-content > *:nth-child(1) { animation-delay: .3s; }
.nhx-tv .tv-hero-content > *:nth-child(2) { animation-delay: .5s; }
.nhx-tv .tv-hero-content > *:nth-child(3) { animation-delay: .7s; }
@keyframes tvUp { to { opacity: 1; transform: translateY(0); } }

.nhx-tv .tv-hero-label {
  display: inline-block;
  border: 1px solid rgba(236,138,94,.4);
  border-radius: 50px;
  padding: .4rem 1.3rem;
  color: var(--tv-accent);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.nhx-tv .tv-hero h1 {
  font-family: var(--tv-head);
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: white;
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.nhx-tv .tv-hero h1 em { font-style: italic; color: var(--tv-accent); }
.nhx-tv .tv-hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  font-weight: 200;
  max-width: 520px;
  margin: 0 auto;
}

/* ════════ SHARED ════════ */
.nhx-tv .tv-label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.2rem;
}
.nhx-tv .tv-label-line { width: 28px; height: 1px; background: var(--tv-accent); }
.nhx-tv .tv-label-text {
  color: var(--tv-accent);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.nhx-tv .tv-title {
  font-family: var(--tv-head);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  font-weight: 400;
  color: var(--tv-dark);
  margin-bottom: .8rem;
}
.nhx-tv .tv-intro {
  font-size: 1.05rem;
  color: var(--tv-granite);
  line-height: 1.8;
  font-weight: 300;
  max-width: 580px;
  margin-bottom: 3rem;
}

/* ════════ 3 SERVICES ════════ */
.nhx-tv .tv-services { padding: 7rem 5rem; background: var(--tv-white); }
.nhx-tv .tv-services-inner { max-width: 1100px; margin: 0 auto; }
.nhx-tv .tv-srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.nhx-tv .tv-srv {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--tv-mid);
  cursor: default;
}
.nhx-tv .tv-srv-img {
  position: absolute;
  inset: 0;
  transition: transform .7s var(--tv-ease);
}
.nhx-tv .tv-srv-img img { opacity: .65; transition: opacity .5s; }
.nhx-tv .tv-srv:hover .tv-srv-img { transform: scale(1.06); }
.nhx-tv .tv-srv:hover .tv-srv-img img { opacity: .4; }
.nhx-tv .tv-srv-grad {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(15,23,41,.95) 0%, rgba(15,23,41,.25) 45%, transparent 70%);
}
.nhx-tv .tv-srv-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem;
  z-index: 2;
}
.nhx-tv .tv-srv-num {
  font-family: var(--tv-head);
  font-size: 2.5rem;
  color: var(--tv-accent);
  opacity: .2;
  line-height: 1;
  margin-bottom: .3rem;
}
.nhx-tv .tv-srv h3 {
  font-family: var(--tv-head);
  font-size: 1.4rem;
  font-weight: 500;
  color: white;
  margin-bottom: .5rem;
}
.nhx-tv .tv-srv p {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  line-height: 1.55;
  font-weight: 300;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .5s var(--tv-ease), opacity .4s;
}
.nhx-tv .tv-srv:hover p { max-height: 140px; opacity: 1; }

@media (max-width: 900px) {
  .nhx-tv .tv-services { padding: 4rem 2rem; }
  .nhx-tv .tv-srv-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 550px) {
  .nhx-tv .tv-srv-grid { grid-template-columns: 1fr; }
  .nhx-tv .tv-srv { aspect-ratio: 4/3; }
}

/* ════════ VEDLIKEHOLDSAVTALE FEATURE ════════ */
.nhx-tv .tv-avtale {
  padding: 0;
  background: var(--tv-dark);
  position: relative;
  overflow: hidden;
}
.nhx-tv .tv-avtale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 75vh;
}
.nhx-tv .tv-avtale-img { position: relative; overflow: hidden; }
.nhx-tv .tv-avtale-img img { transition: transform 6s ease; }
.nhx-tv .tv-avtale:hover .tv-avtale-img img { transform: scale(1.04); }
.nhx-tv .tv-avtale-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem;
  position: relative;
}
.nhx-tv .tv-avtale-text::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(236,138,94,.04) 0%, transparent 60%);
}
.nhx-tv .tv-avtale-text > * { position: relative; z-index: 2; }
.nhx-tv .tv-avtale .tv-title { color: var(--tv-snow); margin-bottom: 1rem; }
.nhx-tv .tv-avtale-desc {
  font-size: 1.05rem;
  color: var(--tv-stone);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 450px;
}
.nhx-tv .tv-season {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin-bottom: 2.5rem;
}
.nhx-tv .tv-s {
  background: rgba(244,246,249,.04);
  border: 1px solid rgba(244,246,249,.07);
  border-radius: 6px;
  padding: 1.2rem;
  transition: all .3s;
}
.nhx-tv .tv-s:hover {
  border-color: rgba(236,138,94,.25);
  background: rgba(236,138,94,.04);
}
.nhx-tv .tv-s h4 {
  font-family: var(--tv-head);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--tv-snow);
  margin-bottom: .4rem;
}
.nhx-tv .tv-s p {
  font-size: .82rem;
  color: var(--tv-stone);
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
}
.nhx-tv .tv-avtale-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(236,138,94,.5);
  border-radius: 50px;
  padding: .8rem 2rem;
  color: var(--tv-accent);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: all .35s var(--tv-ease);
  align-self: flex-start;
}
.nhx-tv .tv-avtale-btn:hover {
  background: var(--tv-accent);
  color: var(--tv-dark);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .nhx-tv .tv-avtale-grid { grid-template-columns: 1fr; }
  .nhx-tv .tv-avtale-img { height: 50vh; }
  .nhx-tv .tv-avtale-text { padding: 3rem 2rem; }
}
@media (max-width: 550px) { .nhx-tv .tv-season { grid-template-columns: 1fr; } }

/* ════════ PROSESS ════════ */
.nhx-tv .tv-prosess { padding: 7rem 5rem; background: var(--tv-snow); }
.nhx-tv .tv-prosess-inner { max-width: 1100px; margin: 0 auto; }
.nhx-tv .tv-prosess-header { margin-bottom: 3.5rem; }
.nhx-tv .tv-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.nhx-tv .tv-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 8%; right: 8%;
  height: 1px;
  background: var(--tv-frost);
}
.nhx-tv .tv-step {
  text-align: center;
  padding: 0 .8rem;
  position: relative;
}
.nhx-tv .tv-step-dot {
  width: 56px; height: 56px;
  margin: 0 auto 1.2rem;
  background: var(--tv-white);
  border: 2px solid var(--tv-frost);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: border-color .3s;
}
.nhx-tv .tv-step:hover .tv-step-dot { border-color: var(--tv-accent); }
.nhx-tv .tv-step-num {
  font-family: var(--tv-head);
  font-size: 1.2rem;
  color: var(--tv-blue);
  font-weight: 500;
}
.nhx-tv .tv-step h4 {
  font-size: .95rem;
  font-weight: 500;
  color: var(--tv-dark);
  margin-bottom: .3rem;
}
.nhx-tv .tv-step p {
  font-size: .82rem;
  color: var(--tv-stone);
  line-height: 1.5;
  font-weight: 300;
}

@media (max-width: 900px) {
  .nhx-tv .tv-prosess { padding: 4rem 2rem; }
  .nhx-tv .tv-steps { grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
  .nhx-tv .tv-steps::before { display: none; }
}
@media (max-width: 550px) { .nhx-tv .tv-steps { grid-template-columns: 1fr; } }

/* ════════ REHAB ════════ */
.nhx-tv .tv-rehab { padding: 7rem 5rem; background: var(--tv-white); }
.nhx-tv .tv-rehab-inner { max-width: 1100px; margin: 0 auto; }
.nhx-tv .tv-rehab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.nhx-tv .tv-rehab-img {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 20px 50px rgba(26,37,64,.08);
}
.nhx-tv .tv-rehab-text p {
  font-size: 1rem;
  color: var(--tv-granite);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1rem;
}
.nhx-tv .tv-extra {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: 1.5rem;
}
.nhx-tv .tv-extra-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .92rem;
  color: var(--tv-granite);
  font-weight: 300;
}
.nhx-tv .tv-extra-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--tv-accent);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

@media (max-width: 900px) {
  .nhx-tv .tv-rehab { padding: 4rem 2rem; }
  .nhx-tv .tv-rehab-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ════════ WHY US ════════ */
.nhx-tv .tv-why { padding: 6rem 5rem; background: var(--tv-snow); }
.nhx-tv .tv-why-inner { max-width: 1100px; margin: 0 auto; }
.nhx-tv .tv-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.nhx-tv .tv-why-card {
  background: var(--tv-white);
  border: 1px solid var(--tv-frost);
  border-radius: 10px;
  padding: 1.8rem;
  transition: all .4s var(--tv-ease);
}
.nhx-tv .tv-why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(26,37,64,.06);
  border-color: transparent;
}
.nhx-tv .tv-why-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--tv-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tv-accent);
  margin-bottom: 1rem;
}
.nhx-tv .tv-why-card h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--tv-dark);
  margin-bottom: .4rem;
}
.nhx-tv .tv-why-card p {
  font-size: .85rem;
  color: var(--tv-stone);
  line-height: 1.5;
  font-weight: 300;
}

@media (max-width: 900px) {
  .nhx-tv .tv-why { padding: 4rem 2rem; }
  .nhx-tv .tv-why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 550px) { .nhx-tv .tv-why-grid { grid-template-columns: 1fr; } }

/* ════════ AREAS ════════ */
.nhx-tv .tv-areas {
  padding: 5rem 5rem;
  background: var(--tv-white);
  border-top: 1px solid var(--tv-frost);
}
.nhx-tv .tv-areas-inner { max-width: 1100px; margin: 0 auto; }
.nhx-tv .tv-area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.nhx-tv .tv-pill {
  background: var(--tv-snow);
  border: 1px solid var(--tv-frost);
  border-radius: 50px;
  padding: .6rem 1.5rem;
  font-size: .9rem;
  font-weight: 400;
  color: var(--tv-mid);
  transition: all .3s;
}
.nhx-tv .tv-pill:hover {
  border-color: var(--tv-accent);
  color: var(--tv-accent);
}
@media (max-width: 900px) { .nhx-tv .tv-areas { padding: 4rem 2rem; } }

/* ════════ CTA ════════ */
.nhx-tv .tv-cta {
  padding: 7rem 3rem;
  background: var(--tv-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 40px;
}
.nhx-tv .tv-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(236,138,94,.07) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(46,66,114,.12) 0%, transparent 50%);
}
.nhx-tv .tv-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}
.nhx-tv .tv-cta .tv-title { color: white; margin-bottom: 1rem; }
.nhx-tv .tv-cta-sub {
  font-size: 1.05rem;
  color: var(--tv-stone);
  line-height: 1.7;
  font-weight: 200;
  margin-bottom: 2.5rem;
}
.nhx-tv .tv-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--tv-head);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: white;
  font-weight: 400;
  margin-bottom: 1rem;
  transition: color .3s;
}
.nhx-tv .tv-cta-phone:hover { color: var(--tv-accent); }
.nhx-tv .tv-cta-phone svg {
  width: 26px;
  height: 26px;
  color: var(--tv-accent);
}
.nhx-tv .tv-cta-email {
  display: block;
  color: var(--tv-stone);
  font-size: .95rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  transition: color .3s;
}
.nhx-tv .tv-cta-email:hover { color: var(--tv-accent); }
.nhx-tv .tv-cta-address {
  font-size: .78rem;
  color: rgba(134,148,168,.45);
  letter-spacing: .08em;
  font-weight: 300;
}
@media (max-width: 768px) { .nhx-tv .tv-cta { padding: 5rem 1.5rem; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nhx-tv .tv-hero-content > *,
  .nhx-tv .tv-hero-bg,
  .nhx-tv .tv-srv-img,
  .nhx-tv .tv-avtale-img img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
