/* ============================================================
   Sweethome — base & tokens
   ============================================================ */
:root {
  --color-bg: #f7f4ef;        /* varm off-white / lin */
  --color-surface: #ffffff;
  --color-dark: #1a1a18;      /* nesten svart */
  --color-accent: #b5885a;    /* varm bronse/gull */
  --color-text: #2c2c2a;
  --color-muted: #8a8880;
  --color-border: #e2ddd6;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --maxw: 1240px;
  --nav-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease, border-color 0.4s ease,
    backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

/* Transparent over the dark hero, solid once scrolled */
.navbar__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  transition: color 0.4s ease;
}

.navbar__nav {
  display: flex;
  gap: 40px;
  margin-left: auto;
  margin-right: 40px;
}

.navbar__link {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.navbar__link:hover {
  color: #fff;
}
.navbar__link:hover::after {
  width: 100%;
}

.navbar__cta {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 11px 22px;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

.navbar__cta:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* Scrolled state — solid surface, dark text */
.navbar.is-scrolled {
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--color-border);
}
.navbar.is-scrolled .navbar__logo {
  color: var(--color-dark);
}
.navbar.is-scrolled .navbar__link {
  color: var(--color-text);
}
.navbar.is-scrolled .navbar__cta {
  color: var(--color-dark);
  border-color: var(--color-dark);
}
.navbar.is-scrolled .navbar__cta:hover {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}

/* Mobile toggle (hidden on desktop) */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.navbar__toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: #fff;
  transition: background-color 0.4s ease;
}
.navbar.is-scrolled .navbar__toggle span {
  background: var(--color-dark);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* Mørkt fasadebilde — nærbilde av fasade og trelameller */
  background-image: url("images/facade-front.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

/* Mørk gradient-overlay for kontrast og lesbarhet */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 15, 14, 0.78) 0%,
    rgba(15, 15, 14, 0.5) 45%,
    rgba(15, 15, 14, 0.25) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.2s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 14ch;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.35s forwards;
}

.hero__subline {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 300;
  line-height: 1.55;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.5s forwards;
}

.hero__cta {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-accent);
  padding: 17px 42px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.65s forwards;
}

.hero__cta:hover {
  background: #a0764b;
  transform: translateY(-2px);
}

/* Scroll-indikator */
.hero__scroll {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.9s ease 1s forwards;
}
.hero__scroll span:first-child {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.hero__scroll-line {
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -46px;
  left: 0;
  width: 100%;
  height: 46px;
  background: var(--color-accent);
  animation: scrollDrop 2s ease-in-out infinite;
}

/* ============================================================
   Intro / Konsept
   ============================================================ */
.intro {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(90px, 13vw, 160px) 40px;
}

.intro__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro__eyebrow {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 32px;
}

.intro__lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--color-text);
  max-width: 60ch;
}

.intro__stats {
  display: flex;
  justify-content: center;
  gap: clamp(40px, 8vw, 110px);
  margin-top: clamp(56px, 8vw, 90px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.stat__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  letter-spacing: -0.01em;
  color: var(--color-dark);
  white-space: nowrap;
}

/* ============================================================
   Produktet
   ============================================================ */
.product {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(90px, 13vw, 160px) 40px;
}

.product__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
}

.product__media {
  margin: 0;
  overflow: hidden;
}

.product__media img {
  display: block;
  width: 100%;
  height: clamp(420px, 56vw, 680px);
  object-fit: cover;
}

.product__eyebrow {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 26px;
}

.product__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-dark);
  margin-bottom: 28px;
}

.product__body {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text);
  max-width: 48ch;
  margin-bottom: 44px;
}

.product__specs {
  list-style: none;
}

.product__specs li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
}
.product__specs li:last-child {
  border-bottom: 1px solid var(--color-border);
}

.product__spec-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.product__spec-value {
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text);
}

/* Planløsning */
.floorplan {
  max-width: var(--maxw);
  margin: clamp(64px, 9vw, 110px) auto 0;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}

.floorplan__eyebrow {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 22px;
}

.floorplan__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.floorplan__body {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text);
  max-width: 40ch;
  margin-bottom: 32px;
}

.floorplan__rooms {
  list-style: none;
}
.floorplan__rooms li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text);
}
.floorplan__rooms li:last-child {
  border-bottom: 1px solid var(--color-border);
}
.floorplan__rooms li span:last-child {
  font-family: var(--font-display);
  color: var(--color-dark);
  white-space: nowrap;
}

.floorplan__media {
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: clamp(20px, 3vw, 36px);
}
.floorplan__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Galleri */
.gallery {
  max-width: var(--maxw);
  margin: clamp(40px, 6vw, 72px) auto 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}

.gallery__item {
  margin: 0;
  overflow: hidden;
}
.gallery__item img {
  display: block;
  width: 100%;
  height: clamp(240px, 30vw, 380px);
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery__item:hover img {
  transform: scale(1.04);
}

/* ============================================================
   Hva er inkludert
   ============================================================ */
.included {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(90px, 13vw, 160px) 40px;
}

.included__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.included__header {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto clamp(56px, 8vw, 84px);
}

.included__eyebrow {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 26px;
}

.included__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.included__intro {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text);
}

/* Prisoversikt */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.pricing__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: clamp(32px, 5vw, 48px) 24px;
  border-right: 1px solid var(--color-border);
}
.pricing__item:last-child {
  border-right: none;
}

.pricing__item--total {
  background: var(--color-dark);
  color: #fff;
}

.pricing__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.pricing__amount {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  color: var(--color-dark);
}
.pricing__item--total .pricing__amount {
  color: #fff;
}

.pricing__note {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-muted);
}
.pricing__item--total .pricing__note {
  color: rgba(255, 255, 255, 0.7);
}

.pricing__disclaimer {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-muted);
  max-width: 60ch;
  margin: 24px auto 0;
}

/* Inkl. / ikke inkl. / tilleggspakke */
.included__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 5vw, 64px);
  margin-top: clamp(64px, 9vw, 100px);
}

.incl-col--highlight {
  position: relative;
}

.incl-col__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--color-dark);
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--color-border);
}

.incl-list {
  list-style: none;
}

.incl-list li {
  position: relative;
  padding: 11px 0 11px 28px;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text);
}

.incl-list li::before {
  position: absolute;
  left: 0;
  top: 11px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.incl-list--yes li::before {
  content: "—";
  color: var(--color-accent);
}

.incl-list--no li {
  color: var(--color-muted);
}
.incl-list--no li::before {
  content: "×";
  color: var(--color-muted);
}

/* ============================================================
   Teknisk trygghet (mørk seksjon — kontrast)
   ============================================================ */
.tech {
  background: var(--color-dark);
  color: #fff;
  padding: clamp(90px, 13vw, 160px) 40px;
}

.tech__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.tech__header {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto clamp(56px, 8vw, 84px);
}

.tech__eyebrow {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 26px;
}

.tech__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 24px;
}

.tech__intro {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.tech__drawing {
  margin: 0 auto clamp(56px, 8vw, 84px);
  max-width: 540px;
  background: var(--color-surface);
  padding: clamp(28px, 4vw, 44px);
}
.tech__drawing img {
  display: block;
  width: 100%;
  height: auto;
}
.tech__drawing figcaption {
  margin-top: 18px;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.tech__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: clamp(40px, 5vw, 56px) 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.tech-card:last-child {
  border-right: none;
}

.tech-card__u {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}

.tech-card__unit {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.tech-card__label {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.tech-card__detail {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  max-width: 30ch;
  margin-top: 6px;
}

/* ============================================================
   Lead-skjema
   ============================================================ */
.contact {
  background: var(--color-bg);
  padding: clamp(90px, 13vw, 160px) 40px;
}

.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
}

.contact__eyebrow {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 26px;
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.contact__text {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text);
  max-width: 42ch;
  margin-bottom: 28px;
}

.contact__promise {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-dark);
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
  max-width: 42ch;
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field label {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
}

.field__opt {
  color: var(--color-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 14px 16px;
  transition: border-color 0.25s ease;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-muted);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact__submit {
  align-self: flex-start;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-dark);
  border: none;
  padding: 17px 42px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact__submit:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.contact__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact__success {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}
.contact__success-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 10px;
}
.contact__success p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-muted);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--color-dark);
  color: #fff;
  padding: clamp(56px, 8vw, 84px) 40px clamp(28px, 4vw, 40px);
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.footer__tagline {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  max-width: 32ch;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}

.footer__link {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s ease;
}
.footer__link:hover {
  color: var(--color-accent);
}

.footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: clamp(28px, 4vw, 40px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollDrop {
  0% {
    top: -46px;
  }
  60%,
  100% {
    top: 46px;
  }
}

/* ---- Scroll reveal ---- */
/* Premium easing curve — myk start, rolig landing */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(6px);
  will-change: opacity, transform, filter;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Bilder kommer inn med en rolig skala i tillegg */
.reveal--media {
  transform: translateY(40px) scale(1.04);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal--media.is-visible {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero__eyebrow,
  .hero__title,
  .hero__subline,
  .hero__cta,
  .hero__scroll {
    opacity: 1;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .navbar__inner {
    padding: 0 24px;
  }
  .navbar__nav,
  .navbar__cta {
    display: none;
  }
  .navbar__toggle {
    display: flex;
  }
  .hero__content {
    padding: 0 24px;
  }
  .hero__title {
    max-width: 100%;
  }
  .intro {
    padding-left: 24px;
    padding-right: 24px;
  }
  .intro__stats {
    flex-direction: column;
    gap: 40px;
  }
  .stat {
    gap: 8px;
  }
  .product {
    padding-left: 24px;
    padding-right: 24px;
  }
  .product__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .product__media img {
    height: clamp(320px, 70vw, 460px);
  }
  .floorplan {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .floorplan__text {
    order: 1;
  }
  .floorplan__media {
    order: 2;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .gallery__item--wide {
    grid-column: 1 / -1;
  }
  .gallery__item img {
    height: clamp(220px, 48vw, 320px);
  }
  .included {
    padding-left: 24px;
    padding-right: 24px;
  }
  .pricing {
    grid-template-columns: 1fr;
  }
  .pricing__item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .pricing__item:last-child {
    border-bottom: none;
  }
  .included__grid {
    grid-template-columns: 1fr;
  }
  .tech {
    padding-left: 24px;
    padding-right: 24px;
  }
  .tech__grid {
    grid-template-columns: 1fr;
  }
  .tech-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
  .tech-card:last-child {
    border-bottom: none;
  }
  .contact {
    padding-left: 24px;
    padding-right: 24px;
  }
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .footer__contact {
    text-align: left;
  }
}
