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

:root {
  --bg: #f6f4ee;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.84);

  --text: #181818;
  --muted: #5f6676;

  --accent-dark: #1f2942;
  --accent: #e4a11b;
  --accent-soft: rgba(228, 161, 27, 0.14);

  --line: rgba(24, 24, 24, 0.08);
  --line-strong: rgba(24, 24, 24, 0.14);

  --shadow-soft: 0 18px 40px rgba(20, 26, 45, 0.08);
  --shadow-card: 0 24px 60px rgba(20, 26, 45, 0.12);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --container: 1180px;
  --transition: 0.28s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(228, 161, 27, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(31, 41, 66, 0.07), transparent 30%),
    linear-gradient(to bottom, #f8f7f3, #efede7);
}

img {
  display: block;
  max-width: 100%;
}

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

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.soft-section {
  padding-top: 0;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(248, 247, 243, 0.82);
  border-bottom: 1px solid rgba(24, 24, 24, 0.05);
  transition: transform 0.32s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.site-header.header-scrolled {
  box-shadow: 0 10px 30px rgba(20, 26, 45, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  position: relative;
}

.brand {
  flex-shrink: 0;
}

.brand img {
  height: 58px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.96rem;
  transition: color var(--transition);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.main-nav a:hover {
  color: var(--accent-dark);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(24, 24, 24, 0.08);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(228, 161, 27, 0.35);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-dark);
  border-radius: 999px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO */
.hero {
  padding: 56px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 64px;
  align-items: center;
}

.hero-text {
  max-width: 580px;
}

.eyebrow,
.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--accent-dark);
}

.eyebrow {
  margin-bottom: 18px;
}

.hero h1,
.page-hero h1,
.section-head h2,
.home-info-text h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent-dark);
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.intro {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 52ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.94rem;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(31, 41, 66, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: rgba(228, 161, 27, 0.5);
  background: rgba(255, 255, 255, 0.95);
}

.hero-image-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52));
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 34px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.hero-image-card::before {
  content: "";
  position: absolute;
  inset: auto 18px 12px 18px;
  height: 40px;
  background: radial-gradient(circle, rgba(31, 41, 66, 0.16), transparent 70%);
  filter: blur(16px);
}

.hero-image-card img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 22px;
  transition: transform 0.5s ease;
}

.hero-image-card:hover img {
  transform: scale(1.04);
}

/* INTRO STRIP */
.intro-strip {
  padding: 10px 0 20px;
}

.intro-strip-inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: start;
}

.intro-line {
  width: 100%;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(to right, var(--accent-dark), rgba(228, 161, 27, 0.35));
}

.intro-strip p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.04rem;
}

/* SECTION HEAD */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}

.section-kicker {
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.card-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

.info-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 65px rgba(20, 26, 45, 0.14);
  border-color: rgba(228, 161, 27, 0.35);
}

.card-image-wrap {
  padding: 18px 18px 0;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
  border-radius: 20px;
  background: #ececec;
  transition: transform 0.45s ease, filter 0.35s ease;
}

.info-card:hover .card-image-wrap img {
  transform: scale(1.06);
  filter: saturate(1.06);
}

.card-content {
  padding: 22px 22px 24px;
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.card-content h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.card-content p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 18px;
}

.card-link {
  display: inline-block;
  font-size: 0.92rem;
  color: var(--accent-dark);
  border-bottom: 1px solid rgba(31, 41, 66, 0.22);
  padding-bottom: 2px;
  transition: border-color var(--transition), color var(--transition);
}

.card-link:hover {
  border-color: var(--accent);
}

/* HOME INFO BOX */
.home-info-box {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.home-info-text h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.home-info-text p {
  color: var(--muted);
  max-width: 48ch;
}

.home-info-links {
  display: grid;
  gap: 14px;
}

.mini-link-card {
  display: block;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.mini-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(228, 161, 27, 0.35);
  box-shadow: var(--shadow-soft);
}

.mini-link-card span {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 6px;
}

.mini-link-card strong {
  font-size: 1rem;
  color: var(--accent-dark);
  font-weight: 600;
}

/* GENERELLE UNDERSIDER */
.page-hero {
  padding: 72px 0 26px;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  line-height: 0.98;
  margin-bottom: 18px;
}

.page-intro {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.02rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.content-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.content-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  color: var(--accent-dark);
  margin-bottom: 10px;
  font-weight: 500;
}

.content-card p {
  color: var(--muted);
}

/* FOOTER */
.site-footer {
  padding: 28px 0 24px;
  border-top: 1px solid rgba(24, 24, 24, 0.08);
  background: rgba(255, 255, 255, 0.28);
  margin-top: 50px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 22px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand img {
  height: 42px;
  width: auto;
  margin-bottom: 12px;
  opacity: 0.95;
}

.footer-brand p {
  font-size: 0.94rem;
  color: var(--muted);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px 24px;
  align-content: start;
}

.footer-nav a,
.footer-socials a {
  color: var(--muted);
  font-size: 0.94rem;
  transition: color var(--transition);
}

.footer-nav a:hover,
.footer-socials a:hover {
  color: var(--accent-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(24, 24, 24, 0.08);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-socials {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero-grid,
  .home-info-box,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .card-grid-three {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-image-card img {
    height: 360px;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(280px, 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(24, 24, 24, 0.08);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(20, 26, 45, 0.12);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .main-nav.nav-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    width: 100%;
    padding: 14px 12px;
    border-radius: 12px;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover {
    background: rgba(228, 161, 27, 0.08);
  }
}

@media (max-width: 820px) {
  .card-grid,
  .card-grid-three {
    grid-template-columns: 1fr;
  }

  .intro-strip-inner {
    grid-template-columns: 80px 1fr;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
  }

  .brand {
    flex-shrink: 0;
  }

  .brand img {
    height: 50px;
  }

  .menu-toggle {
    margin-left: auto;
    flex-shrink: 0;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 34px 0 40px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero-image-card {
    padding: 14px;
    border-radius: 24px;
  }

  .hero-image-card img {
    height: 240px;
    border-radius: 16px;
  }

  .intro-strip-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .intro-line {
    max-width: 120px;
    margin-top: 0;
  }

  .card-image-wrap {
    padding: 14px 14px 0;
  }

  .card-content,
  .content-card,
  .home-info-box {
    padding: 20px;
  }

  .card-content h3,
  .content-card h2 {
    font-size: 1.3rem;
  }

  .btn {
    width: 100%;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}




.contact__intro {
  max-width: 680px;
  margin: 0 auto 2rem;
  text-align: center;
}

.contact__intro h2 {
  margin-bottom: 0.75rem;
}

.contact__intro p {
  color: var(--muted);
  line-height: 1.7;
}

.contact-form {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-field label {
  margin-bottom: 0.45rem;
  font-weight: 600;
  color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-field textarea {
  resize: vertical;
  min-height: 150px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-form button,
.contact-form__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  padding: 0.95rem 1.4rem;
  border: none;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-form button:hover,
.contact-form__button:hover {
  transform: translateY(-1px);
}

.contact-form button:disabled,
.contact-form__button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.contact-form__status {
  margin-top: 1rem;
  min-height: 1.5rem;
  color: var(--muted);
}

.contact-form__status.is-error {
  color: #b42318;
}

.contact-form__status.is-success {
  color: #027a48;
}

@media (max-width: 720px) {
  .contact-form {
    padding: 1.25rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}



.learning-hub-card {
  display: block;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}

.learning-hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* BILDE */
.hub-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.hub-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}


.learning-hub-card:hover .hub-image img {
  transform: scale(1.05);
}

/* TEKST */
.hub-content {
  padding: 20px;
}

.hub-content h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.hub-content p {
  font-size: 0.95rem;
  color: #666;
}


.learning-hub-section {
  padding: 10px 0 70px;
}

.learning-hub-grid {
  width: min(var(--container), 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.learning-hub-card {
  display: block;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.learning-hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 65px rgba(20, 26, 45, 0.14);
  border-color: rgba(228, 161, 27, 0.35);
}

.hub-image {
  padding: 18px 18px 0;
  overflow: hidden;
}

.hub-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  background: #ececec;
  transition: transform 0.45s ease, filter 0.35s ease;
}

.learning-hub-card:hover .hub-image img {
  transform: scale(1.06);
  filter: saturate(1.06);
}

.hub-content {
  padding: 22px 22px 24px;
}

.hub-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.hub-content p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

@media (max-width: 1100px) {
  .learning-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .learning-hub-section {
    padding: 0 0 50px;
  }

  .learning-hub-grid {
    grid-template-columns: 1fr;
  }

  .hub-image {
    padding: 14px 14px 0;
  }

  .hub-image img {
    height: 200px;
    border-radius: 16px;
  }

  .hub-content {
    padding: 20px;
  }

  .hub-content h2 {
    font-size: 1.3rem;
  }
}




.page-hero {
  padding: 7rem 0 3rem;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.page-lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.recipe-section {
  padding: 1rem 0 5rem;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.recipe-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.recipe-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-strong);
}

.recipe-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recipe-card-content {
  padding: 1.25rem 1.25rem 1.4rem;
}

.recipe-tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.recipe-card-content h2 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.recipe-card-content p {
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 800px) {
  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 6rem 0 2.5rem;
  }
}



.page-hero {
  padding: 7rem 0 3rem;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.page-lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.recipe-section {
  padding: 1rem 0 5rem;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.recipe-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.recipe-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-strong);
}

.recipe-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recipe-card-content {
  padding: 1.25rem 1.25rem 1.4rem;
}

.recipe-tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.recipe-card-content h2 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.recipe-card-content p {
  color: var(--muted);
  line-height: 1.65;
}

.recipe-detail {
  padding: 1rem 0 5rem;
}

.recipe-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.recipe-main img {
  width: 100%;
  display: block;
  border-radius: 24px;
  margin-bottom: 1.5rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.recipe-main h2 {
  margin: 2rem 0 1rem;
}

.recipe-main ol {
  padding-left: 1.2rem;
  line-height: 1.8;
  color: var(--text);
}

.recipe-main p {
  color: var(--muted);
  line-height: 1.7;
}

.recipe-sidebar {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 110px;
}

.recipe-sidebar h3 {
  margin-bottom: 1rem;
}

.recipe-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recipe-sidebar li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.recipe-sidebar li:last-child {
  border-bottom: none;
}

@media (max-width: 800px) {
  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .recipe-layout {
    grid-template-columns: 1fr;
  }

  .recipe-sidebar {
    position: static;
  }

  .page-hero {
    padding: 6rem 0 2.5rem;
  }
}

.learning-steps {
  padding: 2rem 0 5rem;
}

.step {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.step h2 {
  margin-bottom: 1rem;
}

.step ul {
  padding-left: 1.2rem;
  line-height: 1.8;
  color: var(--muted);
}

.learning-landing-page {
  background: var(--bg);
  color: var(--text);
}

.learning-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 70vh;
  background: var(--bg-soft);
}

.learning-hero-media {
  min-height: 100%;
}

.learning-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.learning-hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.82));
}

.learning-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.learning-meta {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.learning-hero-panel h1 {
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 1.02;
  margin-bottom: 1rem;
}

.learning-underline {
  width: 90px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  margin-bottom: 1.4rem;
}

.learning-lead {
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 40rem;
}

.learning-goals {
  margin: 0;
  padding-left: 1.2rem;
  max-width: 42rem;
}

.learning-goals li {
  margin-bottom: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}

.learning-progress-wrap {
  position: fixed !important;
  bottom: 0 !important;
  top: auto !important;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(246, 244, 238, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
}

main {
  padding-bottom: 110px;
}

.learning-progress-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
}

.learning-outline-button {
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: 0.2s ease;
}

.learning-outline-button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* PROFESJONELL PORTEFOLJE */
body:not(.learning-landing-page) main {
  padding-bottom: 0;
}

.pro-page {
  --bg: #f4f1ea;
  --bg-soft: #fffdf8;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #151515;
  --muted: #60656f;
  --accent-dark: #172033;
  --accent: #b98022;
  --accent-soft: rgba(185, 128, 34, 0.12);
  --line: rgba(21, 21, 21, 0.09);
  --line-strong: rgba(21, 21, 21, 0.16);
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
  background: #f4f1ea;
}

.pro-page main,
.pro-page .section,
.pro-page .portfolio-hero,
.pro-page .contact-hero {
  background: #f4f1ea;
}

.pro-page .pro-hero {
  background: #171717;
}

.pro-page .site-header {
  background: rgba(244, 241, 234, 0.9);
}

.pro-page .brand img {
  height: 50px;
}

.header-contact {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.pro-hero {
  position: relative;
  min-height: min(660px, calc(100vh - 120px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #171717;
}

.pro-hero-media,
.pro-hero-scrim {
  position: absolute;
  inset: 0;
}

.pro-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.pro-hero-scrim {
  background: linear-gradient(90deg, rgba(12, 14, 18, 0.82), rgba(12, 14, 18, 0.42) 48%, rgba(12, 14, 18, 0.14));
}

.pro-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
}

.pro-hero-content .section-kicker {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.pro-hero h1 {
  max-width: 850px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.95;
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.pro-hero .intro {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.14rem;
}

.pro-hero .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}

.hero-proof {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}

.hero-proof span {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

.service-grid,
.pricing-grid,
.featured-grid,
.portfolio-link-grid {
  display: grid;
  gap: 18px;
}

.service-grid,
.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.price-card,
.portfolio-link-card,
.direct-contact,
.contact-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 16px 34px rgba(18, 24, 38, 0.06);
}

.service-card span,
.price-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.service-card h3,
.price-card h3,
.featured-card h3,
.case-card h2,
.portfolio-link-card strong,
.contact-hero h1,
.contact-aside h2,
.direct-contact h2 {
  color: var(--accent-dark);
}

.service-card h3,
.price-card h3,
.featured-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.service-card p,
.price-card p,
.featured-card p,
.case-card p,
.pricing-note,
.contact-hero p,
.direct-contact p,
.contact-aside p {
  color: var(--muted);
}

.featured-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.featured-card {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 22px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 18px 38px rgba(18, 24, 38, 0.07);
}

.featured-card.large {
  grid-row: span 2;
  grid-template-columns: 1fr;
}

.featured-card img,
.case-image img,
.portfolio-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 6px;
}

.featured-card.large img {
  aspect-ratio: 4 / 5;
}

.featured-card:not(.large) img {
  aspect-ratio: 1.2 / 1;
}

.pro-pricing {
  padding-top: 40px;
}

.price-card.highlighted {
  border-color: rgba(185, 128, 34, 0.45);
  box-shadow: 0 22px 48px rgba(185, 128, 34, 0.13);
}

.price {
  color: var(--accent-dark) !important;
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.pricing-note {
  margin-top: 1rem;
  font-size: 0.94rem;
}

.portfolio-hero,
.contact-hero {
  padding: clamp(4.5rem, 8vw, 7rem) 0 3rem;
}

.portfolio-hero-grid,
.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.portfolio-hero h1,
.contact-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.98;
  font-weight: 500;
  margin-bottom: 1rem;
}

.portfolio-hero-image {
  aspect-ratio: 4 / 5;
}

.case-list {
  display: grid;
  gap: 26px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 18px 38px rgba(18, 24, 38, 0.07);
}

.case-card.reverse .case-image {
  order: 2;
}

.case-content {
  padding: clamp(0.4rem, 2vw, 1.6rem);
}

.case-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 1rem;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 0;
}

.case-meta li {
  padding: 0.45rem 0.7rem;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.portfolio-link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-link-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.portfolio-link-card strong {
  display: block;
  font-size: 1.1rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.contact-layout .contact-form {
  max-width: none;
  margin: 0;
  border-radius: 8px;
}

.contact-aside dl {
  margin: 1rem 0;
}

.contact-aside div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-aside dt {
  font-weight: 700;
}

.contact-aside dd {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 800;
  white-space: nowrap;
}

.direct-contact {
  display: grid;
  gap: 0.8rem;
  position: sticky;
  top: 104px;
}

.direct-contact a {
  color: var(--accent-dark);
  font-weight: 800;
}

.photo-feature img,
.photo-tile img,
.web-showcase-image img {
  content-visibility: auto;
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

@media (max-width: 980px) {
  .header-contact {
    display: none;
  }

  .service-grid,
  .pricing-grid,
  .featured-grid,
  .portfolio-link-grid,
  .portfolio-hero-grid,
  .contact-hero-grid,
  .case-card,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .case-card.reverse .case-image {
    order: 0;
  }

  .direct-contact {
    position: static;
  }
}

@media (max-width: 640px) {
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pro-hero {
    min-height: auto;
  }

  .pro-hero-scrim {
    background: linear-gradient(180deg, rgba(12, 14, 18, 0.26), rgba(12, 14, 18, 0.88));
  }

  .pro-hero h1,
  .portfolio-hero h1,
  .contact-hero h1 {
    font-size: 2.35rem;
  }

  .pro-hero-content {
    padding: 2.4rem 0 2.8rem;
  }

  .hero-proof {
    gap: 8px;
  }

  .hero-proof span {
    font-size: 0.82rem;
  }

  .service-card,
  .price-card,
  .portfolio-link-card,
  .direct-contact,
  .contact-aside,
  .featured-card,
  .case-card {
    padding: 18px;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }
}

.learning-progress {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  justify-content: center;
}

.learning-progress span {
  width: 38px;
  height: 6px;
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.12);
  display: block;
}

.learning-progress span.is-active {
  background: var(--accent);
}

.learning-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.learning-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  transition: 0.2s ease;
}

.learning-arrow:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.learning-arrow.is-disabled,
.learning-arrow[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.learning-overview {
  padding: 1.25rem 0 0;
}

.learning-overview-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
}

.learning-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.learning-overview-head h2 {
  font-size: 1.2rem;
  margin: 0;
}

.learning-overview-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  cursor: pointer;
  font: inherit;
}

.learning-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.learning-overview-item {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  transition: 0.2s ease;
}

.learning-overview-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.learning-overview-item span {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.learning-overview-item strong {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
}

.learning-overview-item.is-current {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.type-task {
  border-left: 4px solid var(--accent);
}

.type-quiz {
  border-left: 4px solid var(--accent-dark);
}

@media (max-width: 980px) {
  .learning-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .learning-hero-media {
    min-height: 320px;
  }

  .learning-progress-inner {
    flex-wrap: wrap;
  }

  .learning-progress {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .learning-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .learning-hero-panel {
    padding: 1.5rem;
  }

  .learning-progress span {
    width: 24px;
  }

  .learning-arrow {
    width: 42px;
    height: 42px;
  }
}



.learning-content-page,
.learning-landing-page {
  background: var(--bg);
  color: var(--text);
}

.narrow-reading {
  max-width: 820px;
}

.learning-page-top {
  padding: 7rem 0 2.5rem;
}

.learning-page-intro {
  text-align: left;
}

.learning-card-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.learning-page-intro h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.learning-underline {
  width: 88px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  margin: 0 0 1.4rem;
}

.learning-page-lead,
.learning-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.learning-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 72vh;
  background: var(--bg-soft);
}

.learning-hero-media {
  min-height: 100%;
}

.learning-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.learning-hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
  background: var(--surface-strong);
}

.learning-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.learning-meta {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.learning-hero-panel h1 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.04;
  margin-bottom: 1rem;
}

.learning-goals {
  margin: 0;
  padding-left: 1.2rem;
  max-width: 42rem;
}

.learning-goals li {
  margin-bottom: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}

.learning-progress-wrap {
  position: sticky;
  top: 84px;
  z-index: 20;
  background: rgba(246, 244, 238, 0.88);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.learning-progress-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
}

.learning-progress {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.learning-progress span {
  display: block;
  width: 38px;
  height: 6px;
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.12);
}

.learning-progress span.is-active {
  background: var(--accent);
}

.learning-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.learning-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.15rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.learning-arrow:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.learning-arrow.is-disabled,
.learning-arrow[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.learning-text-section {
  padding: 2.5rem 0;
}

.learning-soft-bg {
  background: rgba(255, 255, 255, 0.45);
}

.learning-intro-card,
.learning-quote-card,
.learning-reflection-card,
.learning-next-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.learning-intro-card,
.learning-quote-card,
.learning-reflection-card {
  padding: 2rem;
}

.learning-intro-card h2,
.learning-quote-card h2,
.learning-reflection-card h2,
.learning-next-card h2,
.learning-tasks-title {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.learning-intro-card p,
.learning-quote-card p,
.learning-reflection-card p,
.learning-next-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.learning-intro-card p + p,
.learning-quote-card p + p,
.learning-reflection-card p + p {
  margin-top: 1rem;
}

.learning-tasks-section {
  padding: 2.5rem 0;
}

.learning-tasks-title {
  margin-top: 0.7rem;
  margin-bottom: 1.5rem;
}

.learning-tasks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.task-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.35rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.task-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.task-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
}

.task-card p {
  color: var(--muted);
  line-height: 1.65;
}

.learning-reflection-section,
.learning-next-section {
  padding: 2.5rem 0 4rem;
}

.learning-next-card {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.learning-next-card .btn {
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .learning-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .learning-hero-media {
    min-height: 320px;
  }

  .learning-tasks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-next-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .learning-page-top {
    padding: 6rem 0 2rem;
  }

  .learning-text-section,
  .learning-tasks-section,
  .learning-reflection-section,
  .learning-next-section {
    padding: 2rem 0;
  }

  .learning-intro-card,
  .learning-quote-card,
  .learning-reflection-card,
  .learning-next-card {
    padding: 1.4rem;
    border-radius: 22px;
  }

  .learning-tasks-grid {
    grid-template-columns: 1fr;
  }

  .learning-progress-inner {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .learning-progress span {
    width: 24px;
  }

  .learning-arrow {
    width: 42px;
    height: 42px;
  }
}


.task-card-media {
  overflow: hidden;
  padding: 0;
}

.task-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.task-card-media h3,
.task-card-media p {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.task-card-media h3 {
  padding-top: 1rem;
  margin-bottom: 0.65rem;
}

.task-card-media p {
  padding-bottom: 1.2rem;
}


.learning-process-hero {
  padding-top: 5.5rem;
}

.learning-process-hero-media img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.learning-process-hero-panel {
  padding: 2.5rem 0 1rem;
}

.learning-step-section,
.learning-image-section {
  padding: 1.5rem 0;
}

.learning-step-card,
.learning-image-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.learning-step-card {
  padding: 2rem;
}

.learning-step-card h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
}

.learning-step-card p {
  color: var(--muted);
  line-height: 1.75;
}

.learning-image-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.learning-image-card p {
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 700px) {
  .learning-process-hero {
    padding-top: 4.8rem;
  }

  .learning-step-card {
    padding: 1.4rem;
    border-radius: 22px;
  }

  .learning-image-card {
    border-radius: 22px;
  }
}


.press-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.press-card h3 {
  font-size: 1.15rem;
}

.learning-showcase-section {
  padding: 2.5rem 0;
}

.learning-showcase-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.learning-showcase-text {
  padding: 2rem;
}

.learning-showcase-text h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.learning-showcase-text p {
  color: var(--muted);
  line-height: 1.75;
}

.learning-showcase-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  object-fit: cover;
}

@media (max-width: 980px) {
  .press-grid {
    grid-template-columns: 1fr;
  }

  .learning-showcase-card {
    grid-template-columns: 1fr;
  }

  .learning-showcase-media img {
    min-height: 260px;
  }
}

@media (max-width: 700px) {
  .learning-showcase-text {
    padding: 1.4rem;
  }
}


.portfolio-hero {
  padding-top: 8.5rem;
}

.section-head-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
}

.section-lead {
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

.portfolio-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.category-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.category-number {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.category-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
}

.category-card p {
  color: var(--muted);
  line-height: 1.6;
}

.portfolio-project-grid {
  gap: 1.5rem;
}

.portfolio-project-card .card-image-wrap {
  aspect-ratio: 4 / 3;
}

.portfolio-project-card .card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-feature-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.portfolio-feature-text p:last-child {
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
}

.portfolio-feature-points {
  display: grid;
  gap: 1rem;
}

.feature-point {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem 1.25rem;
}

.feature-point strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.feature-point p {
  color: var(--muted);
  line-height: 1.6;
}

.cta-panel {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-soft);
}

.cta-panel p:not(.section-kicker) {
  color: var(--muted);
  line-height: 1.7;
  max-width: 620px;
  margin: 0.75rem auto 0;
}

.cta-panel .hero-actions {
  justify-content: center;
  margin-top: 1.5rem;
}

.main-nav a.active {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .portfolio-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head-split,
  .portfolio-feature-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .portfolio-category-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel,
  .portfolio-feature-box {
    padding: 1.5rem;
  }
}


.project-hero {
  padding-top: 8.5rem;
}

.web-showcase-list {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.web-showcase-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.web-showcase-image img {
  width: 100%;
  display: block;
  border-radius: 22px;
  object-fit: cover;
}

.web-showcase-text h3 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.web-showcase-text p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .web-showcase-card {
    grid-template-columns: 1fr;
  }
}


.portfolio-top {
  padding: 8.5rem 0 2.5rem;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.7), transparent 35%),
    linear-gradient(to bottom, rgba(255,255,255,0.45), rgba(255,255,255,0));
}

.portfolio-top-inner {
  max-width: 760px;
}

.portfolio-top-mark {
  width: 90px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 1.25rem;
}

.portfolio-top h1 {
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.portfolio-top-text {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
}

.portfolio-project-grid {
  gap: 1.5rem;
}

.portfolio-project-card .card-image-wrap {
  aspect-ratio: 4 / 3;
}

.portfolio-project-card .card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-nav a.active {
  color: var(--accent);
}


.portfolio-top h1 {
  font-family: inherit;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.portfolio-top-text {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
}


.photo-top {
  padding-bottom: 1.5rem;
}

.photo-gallery-section {
  padding-top: 1.5rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.photo-item {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.photo-item img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 32% center;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 3000;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-inner {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
}

.lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 1000px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
  }
}

.photo-top {
  padding-bottom: 1.25rem;
}

.photo-feature-section {
  padding-top: 0.5rem;
  padding-bottom: 1.8rem;
}

.photo-feature {
  width: 100%;
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.photo-feature img {
  width: 100%;
  height: min(72vh, 920px);
  display: block;
  object-fit: cover;
  object-position: center 32%;
  border-radius: 34px;
}

.photo-gallery-section {
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
}

.photo-editorial-grid {
  column-count: 3;
  column-gap: 2rem;
}

.photo-tile {
  width: 100%;
  display: block;
  margin: 0 0 2rem;
  break-inside: avoid;
  cursor: pointer;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.58);
  border: 0;
  border-radius: 34px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.photo-tile img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  object-fit: cover;
  object-position: 30% center;
}

.photo-tile.portrait img {
  aspect-ratio: 4 / 5;
}

.photo-tile.landscape img,
.photo-tile.wide img {
  aspect-ratio: 16 / 10;
}

.dark-focus img {
  object-position: center center;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 3000;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-inner {
  max-width: min(1400px, 94vw);
  max-height: 90vh;
}

.lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .photo-editorial-grid {
    column-count: 2;
    column-gap: 1.5rem;
  }

  .photo-tile {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 760px) {
  .photo-editorial-grid {
    column-count: 1;
    column-gap: 0;
  }

  .photo-feature img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .photo-tile {
    margin-bottom: 1.2rem;
    padding: 0.35rem;
  }

  .photo-tile.portrait img,
  .photo-tile.landscape img,
  .photo-tile.wide img {
    aspect-ratio: 4 / 5;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
  }
}


.video-top {
  padding-bottom: 1.5rem;
}

.video-section {
  padding-top: 1rem;
}

.video-list {
  display: grid;
  gap: 2rem;
}

.video-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 30px;
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(228, 161, 27, 0.28);
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-card-text {
  padding: 1.2rem 0 0.4rem;
  max-width: 760px;
}

.video-card-text h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 500;
  color: var(--accent-dark);
  margin-bottom: 0.8rem;
}

.video-card-text p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

@media (max-width: 700px) {
  .video-card {
    padding: 0.9rem;
    border-radius: 24px;
  }

  .video-embed {
    border-radius: 18px;
  }

  .video-card-text {
    padding-top: 1rem;
  }
}


/* VIDEO SECTION */
.video-section {
  padding: 2rem 0 5rem;
}

.video-head {
  margin-bottom: 2rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.video-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-content {
  padding: 1.4rem;
}

.video-tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.video-content h3 {
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
}

.video-content p {
  color: var(--muted);
  line-height: 1.7;
}

/* siste video full bredde */
.video-card:last-child {
  grid-column: span 2;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-card:last-child {
    grid-column: span 1;
  }
}


.learning-top {
  padding-bottom: 1.75rem;
}

.learning-hub-section {
  padding: 0 0 5rem;
}

.learning-intro-panel {
  margin-bottom: 2rem;
}

.learning-intro-copy {
  max-width: 760px;
}

.learning-intro-copy h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.08;
  margin-bottom: 0.9rem;
  color: var(--accent-dark);
}

.learning-intro-copy p:last-child {
  color: var(--muted);
  line-height: 1.75;
  max-width: 58ch;
}

.learning-hub-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.learning-hub-card {
  display: block;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.learning-hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 65px rgba(20, 26, 45, 0.14);
  border-color: rgba(228, 161, 27, 0.35);
}

.hub-image {
  padding: 18px 18px 0;
  overflow: hidden;
}

.hub-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 22px;
  background: #ececec;
  transition: transform 0.45s ease, filter 0.35s ease;
}

.learning-hub-card:hover .hub-image img {
  transform: scale(1.04);
  filter: saturate(1.04);
}

.hub-content {
  padding: 24px 24px 26px;
}

.hub-tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hub-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--accent-dark);
  margin-bottom: 0.8rem;
}

.hub-content p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
  max-width: 34ch;
}

.hub-link {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--accent-dark);
  border-bottom: 1px solid rgba(31, 41, 66, 0.2);
  padding-bottom: 2px;
  transition: border-color var(--transition), color var(--transition);
}

.learning-hub-card:hover .hub-link {
  border-color: var(--accent);
}

@media (max-width: 900px) {
  .learning-hub-grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .learning-hub-section {
    padding-bottom: 4rem;
  }

  .hub-image {
    padding: 14px 14px 0;
  }

  .hub-image img {
    height: 220px;
    border-radius: 18px;
  }

  .hub-content {
    padding: 20px 20px 22px;
  }

  .hub-content h2 {
    font-size: 1.45rem;
  }
}


/* ==============================
   FORSIDE / HOME HERO
   Gjelder kun når body har class="home-page"
   ============================== */

body {
  overflow-x: hidden;
  overflow-y: auto;
}

main {
  padding-bottom: 110px;
}

/* HEADER SOM REFERANSEBILDET */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.home-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
}

body.home-page .header-inner {
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

body.home-page .brand img {
  height: 58px;
}

body.home-page .main-nav {
  background: rgba(18, 28, 34, 0.92);
  border-radius: 18px;
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

body.home-page .main-nav a {
  color: rgba(255, 255, 255, 0.82);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
}

body.home-page .main-nav a::after {
  display: none;
}

body.home-page .main-nav a.active {
  background: #fff;
  color: #111;
}

.header-contact {
  display: none;
}

body.home-page .header-contact {
  display: inline-flex;
  justify-self: end;
  background: #fff;
  color: #111;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 600;
}

/* FORSIDE FULLSCREEN */
body.home-page {
  height: 100vh;
  overflow: hidden;
  background: #000;
}

body.home-page main {
  height: 100vh;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

.home-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
}

body.home-page .home-hero {
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.hero-bg,
.hero-bg img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78)),
    linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 55%);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
  padding-top: 120px;
}

.home-hero .section-kicker {
  display: none;
}

.home-hero h1 {
  font-family: Arial, sans-serif;
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

.home-hero h1 span {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.home-hero .intro {
  max-width: 720px;
  margin: 26px auto 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.2rem;
}

.home-hero .hero-actions {
  justify-content: center;
  margin-bottom: 34px;
}

.home-hero .btn-primary {
  background: #fff;
  color: #111;
}

.home-hero .btn-secondary {
  display: none;
}

.hero-category-boxes {
  display: none;
}

body.home-page .site-footer {
  display: none !important;
}

/* MOBIL */
@media (max-width: 900px) {
  body.home-page .header-contact {
    display: none;
  }

  body.home-page .header-inner {
    display: flex;
  }

  body.home-page .main-nav {
    background: rgba(255, 255, 255, 0.96);
  }

  body.home-page .main-nav a {
    color: var(--accent-dark);
  }
}

@media (max-width: 760px) {
  body.home-page .home-hero-content {
    padding-top: 110px;
  }

  .home-hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }
}


body.home-page {
  height: 100vh;
  overflow: hidden;
}

body.home-page main {
  height: 100vh;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

body.home-page .home-hero {
  height: 100vh;
  min-height: 100vh;
}

body.home-page .site-footer {
  display: none !important;
}

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 95px;
}

.hero-socials a {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.88;
  transition: 0.2s ease;
}

.hero-socials a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

body.home-page .home-hero .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

body.home-page .home-hero .btn-primary {
  width: auto;
  min-width: 145px;
  height: 56px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
}

body.home-page .hero-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  margin-top: 170px;
}

body.home-page .hero-socials a {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  opacity: 0.9;
}


body.home-page .home-hero .hero-actions {
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-top: 36px;
  margin-bottom: 0;
}

body.home-page .home-hero .btn-primary {
  width: auto !important;
  min-width: 150px;
  height: 58px;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 999px;
}

body.home-page .hero-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 46px;
  margin-top: 44px;
}

body.home-page .hero-socials a {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

body.home-page .hero-actions{
  justify-content:center;
  margin-top:32px;
  margin-bottom:40px;
}

body.home-page .btn-primary{
  min-width:220px;
  height:64px;
  border-radius:999px;
  font-size:1.1rem;
}

body.home-page .hero-stats{
  width:min(920px,100%);
  margin:0 auto;
  padding:28px 34px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  border-radius:26px;
  background:rgba(20,30,28,0.55);
  backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,0.14);
}

body.home-page .hero-stats div{
  text-align:center;
}

body.home-page .hero-stats strong{
  display:block;
  color:#fff;
  font-size:2rem;
  font-weight:700;
}

body.home-page .hero-stats span{
  color:rgba(255,255,255,.75);
  font-size:1rem;
}

@media(max-width:900px){
  body.home-page .hero-stats{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:640px){
  body.home-page .hero-stats{
    grid-template-columns:1fr;
  }
}


body.home-page .hero-mini-stats{
  margin-top:65px;
  display:flex;
  justify-content:center;
  gap:70px;
  flex-wrap:wrap;
}

body.home-page .hero-mini-stats div{
  text-align:center;
}

body.home-page .hero-mini-stats strong{
  display:block;
  font-size:2.1rem;
  font-weight:700;
  color:#fff;
  line-height:1;
}

body.home-page .hero-mini-stats span{
  display:block;
  margin-top:10px;
  font-size:1rem;
  color:rgba(255,255,255,.72);
}

@media(max-width:900px){
  body.home-page .hero-mini-stats{
    gap:40px;
  }

  body.home-page .hero-mini-stats strong{
    font-size:1.6rem;
  }
}

@media(max-width:640px){
  body.home-page .hero-mini-stats{
    gap:25px;
    margin-top:40px;
  }

  body.home-page .hero-mini-stats div{
    width:45%;
  }

  body.home-page .hero-mini-stats strong{
    font-size:1.3rem;
  }

  body.home-page .hero-mini-stats span{
    font-size:.9rem;
  }
}



.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-meta {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0;
}

.text-link {
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}


.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.blog-feed {
  display: grid;
  gap: 2rem;
}

.blog-post-preview {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.blog-post-preview h2 {
  margin: 0.4rem 0;
}

.blog-post-preview h2 a {
  color: inherit;
  text-decoration: none;
}

.blog-post-preview h2 a:hover,
.read-more:hover {
  text-decoration: underline;
}

.blog-meta {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0;
}

.read-more {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.blog-sidebar {
  display: grid;
  gap: 1.5rem;
}

.sidebar-box {
  padding: 1.5rem;
  border-radius: 1rem;
  background: #f5f5f5;
}

.sidebar-box h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-box li {
  margin-bottom: 0.5rem;
}

.sidebar-box a {
  color: inherit;
  text-decoration: none;
}

.sidebar-box a:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

.blog-hero h1 {
  font-family: Arial, sans-serif;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* RS MEDIA: FOTO + WEBDESIGN RETNING */
.pro-page {
  --rs-blue: #172033;
  --rs-blue-2: #223052;
  --rs-orange: #f59b1a;
  --rs-cream: #faf7ef;
  --rs-paper: #ffffff;
  --rs-ink: #171a22;
  --rs-muted: #667085;
  --bg: var(--rs-cream);
  --bg-soft: var(--rs-paper);
  --surface: var(--rs-paper);
  --surface-strong: var(--rs-paper);
  --text: var(--rs-ink);
  --muted: var(--rs-muted);
  --accent-dark: var(--rs-blue);
  --accent: var(--rs-orange);
  --accent-soft: rgba(245, 155, 26, 0.14);
  background: var(--rs-cream);
}

.pro-page body,
.pro-page main,
.pro-page .section,
.pro-page .portfolio-hero,
.pro-page .contact-hero {
  background: var(--rs-cream);
}

.pro-page .site-header {
  background: rgba(250, 247, 239, 0.92);
  border-bottom: 1px solid rgba(23, 32, 51, 0.09);
}

.pro-page .header-inner {
  padding: 14px 0;
}

.pro-page .main-nav {
  background: transparent;
}

.pro-page .main-nav a {
  color: rgba(23, 32, 51, 0.72);
  font-weight: 700;
}

.pro-page .main-nav a.active,
.pro-page .main-nav a:hover {
  color: var(--rs-blue);
}

.header-contact,
.pro-page .btn-primary,
.contact-form__button {
  background: var(--rs-blue);
  color: #fff;
  border-color: var(--rs-blue);
}

.pro-page .btn-primary:hover,
.contact-form__button:hover {
  background: var(--rs-blue-2);
}

.pro-page .btn-secondary {
  background: transparent;
  border-color: rgba(23, 32, 51, 0.28);
  color: var(--rs-blue);
}

.pro-page .section-kicker,
.pro-page .card-tag,
.price-label {
  background: transparent;
  color: var(--rs-orange);
  padding: 0;
  border-radius: 0;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
}

.pro-hero {
  min-height: auto;
  background:
    linear-gradient(90deg, var(--rs-cream) 0 58%, var(--rs-blue) 58% 100%);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.pro-hero-media {
  position: absolute;
  inset: clamp(2rem, 5vw, 4rem) max(4vw, 36px) clamp(2rem, 5vw, 4rem) auto;
  width: min(42vw, 560px);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.2);
  overflow: hidden;
}

.pro-hero-media img {
  object-position: center;
}

.pro-hero-scrim {
  display: none;
}

.pro-hero-content {
  width: min(54%, 680px);
  color: var(--rs-blue);
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.pro-hero-content .section-kicker {
  color: var(--rs-orange);
}

.pro-hero h1 {
  max-width: 720px;
  color: var(--rs-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 6.5vw, 5.8rem);
  line-height: 0.96;
}

.pro-hero .intro {
  color: rgba(23, 32, 51, 0.72);
  font-size: 1.08rem;
}

.hero-proof span {
  border: 1px solid rgba(23, 32, 51, 0.14);
  background: #fff;
  color: var(--rs-blue);
}

.service-card,
.price-card,
.portfolio-link-card,
.direct-contact,
.contact-aside,
.featured-card,
.case-card,
.contact-layout .contact-form {
  border-radius: 8px;
  border-color: rgba(23, 32, 51, 0.1);
  box-shadow: 0 16px 38px rgba(23, 32, 51, 0.07);
}

.service-card {
  border-top: 4px solid var(--rs-orange);
}

.featured-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.featured-card.large {
  background: var(--rs-blue);
  color: #fff;
}

.featured-card.large h3,
.featured-card.large p {
  color: #fff;
}

.featured-card.large .card-tag {
  color: var(--rs-orange);
}

.featured-card img,
.case-image img,
.portfolio-hero-image img {
  min-height: 260px;
  border-radius: 6px;
}

.case-card {
  border-left: 4px solid var(--rs-orange);
}

.case-meta li {
  background: rgba(245, 155, 26, 0.14);
  color: var(--rs-blue);
}

.price-card.highlighted {
  border-color: rgba(245, 155, 26, 0.55);
  box-shadow: 0 22px 48px rgba(245, 155, 26, 0.15);
}

.price {
  color: var(--rs-blue) !important;
}

@media (max-width: 980px) {
  .pro-hero {
    background: var(--rs-cream);
    padding: 0 0 3rem;
  }

  .pro-hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 48vh;
    min-height: 320px;
    border-radius: 0;
    box-shadow: none;
  }

  .pro-hero-content {
    width: min(var(--container), 92%);
    padding: 2rem 0 0;
  }
}

@media (max-width: 640px) {
  .pro-hero-media {
    height: 42vh;
    min-height: 300px;
  }

  .pro-hero h1,
  .portfolio-hero h1,
  .contact-hero h1 {
    font-size: 2.45rem;
  }

  .hero-proof span {
    background: rgba(255, 255, 255, 0.78);
  }
}

/* Siste overstyring for forsiden etter eldre home-page regler */
body.pro-page {
  background: var(--rs-cream) !important;
  color: var(--rs-ink);
}

body.pro-page main,
body.pro-page .section,
body.pro-page .portfolio-hero,
body.pro-page .contact-hero {
  background: var(--rs-cream) !important;
}

body.pro-page .pro-hero {
  background: linear-gradient(90deg, var(--rs-cream) 0 58%, var(--rs-blue) 58% 100%) !important;
}

body.pro-page .pro-hero h1,
body.pro-page .pro-hero .intro {
  text-shadow: none !important;
}

body.pro-page .pro-hero h1 {
  color: var(--rs-blue) !important;
  font-size: clamp(2.8rem, 4.4vw, 4.2rem) !important;
  max-width: 520px !important;
}

body.pro-page .pro-hero .intro {
  color: rgba(23, 32, 51, 0.72) !important;
  max-width: 520px !important;
}

body.pro-page .pro-hero-content {
  width: min(44%, 560px) !important;
  margin-left: max(4vw, calc((100vw - var(--container)) / 2)) !important;
  margin-right: auto !important;
  text-align: left !important;
}

body.pro-page .pro-hero-media {
  width: min(38vw, 500px) !important;
  inset: clamp(2.6rem, 5vw, 4.5rem) max(4vw, 48px) clamp(2.6rem, 5vw, 4.5rem) auto !important;
}

body.pro-page .pro-hero .hero-actions {
  justify-content: flex-start !important;
  gap: 14px !important;
}

body.pro-page .pro-hero .btn {
  width: auto !important;
}

body.pro-page .pro-hero-media img {
  object-position: center !important;
}

body.pro-page .featured-card:not(.large) img {
  aspect-ratio: 4 / 3;
}

body.pro-page .featured-card.large img {
  aspect-ratio: 1 / 1;
}

@media (max-width: 980px) {
  body.pro-page .pro-hero {
    background: var(--rs-cream) !important;
  }

  body.pro-page .pro-hero-content {
    width: min(var(--container), 92%) !important;
  }

  body.pro-page .pro-hero-media {
    width: 100% !important;
    inset: auto !important;
  }
}

/* Minimalistisk portfolio-template retning */
body.editorial-page {
  --rs-cream: #eeeeec;
  --rs-paper: #ffffff;
  --rs-ink: #111111;
  --rs-muted: #5f6268;
  --rs-blue: #172033;
  --rs-orange: #f59b1a;
  background: #eeeeec !important;
}

body.editorial-page .site-header {
  position: sticky;
  background: rgba(238, 238, 236, 0.86) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
}

body.editorial-page .main-nav {
  background: #111 !important;
  border-radius: 0;
  padding: 6px;
  gap: 0;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

body.editorial-page .main-nav a {
  color: rgba(255, 255, 255, 0.72) !important;
  padding: 10px 18px;
  border-radius: 0;
}

body.editorial-page .main-nav a.active {
  background: #fff;
  color: #111 !important;
}

body.editorial-page .header-contact,
body.editorial-page .btn-primary {
  background: #111 !important;
  border-color: #111 !important;
  border-radius: 0 !important;
}

body.editorial-page .header-contact {
  display: none !important;
}

body.editorial-page .btn-secondary {
  border-radius: 0 !important;
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.14) !important;
  color: #111 !important;
}

body.editorial-page .section-kicker,
body.editorial-page .card-tag,
body.editorial-page .price-label {
  color: var(--rs-orange) !important;
  font-family: Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
}

body.editorial-page .pro-hero {
  width: min(1180px, 92%);
  margin: 34px auto 0;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: stretch;
  background: transparent !important;
  padding: 0 !important;
}

body.editorial-page .pro-hero-content {
  width: auto !important;
  margin: 0 !important;
  padding: 26px !important;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
}

body.editorial-page .pro-hero h1 {
  max-width: none !important;
  color: #050505 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: clamp(5rem, 12vw, 9.5rem) !important;
  line-height: 0.82 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  margin: 0 0 20px !important;
}

body.editorial-page .pro-hero .intro {
  max-width: 470px !important;
  color: #333 !important;
  font-size: 1rem !important;
  margin-bottom: 28px !important;
}

body.editorial-page .pro-hero-media {
  position: static !important;
  width: auto !important;
  height: auto !important;
  min-height: 520px;
  border-radius: 0 !important;
  border: 14px solid #fff;
  box-shadow: none !important;
  background: #fff;
}

body.editorial-page .pro-hero-media img {
  filter: grayscale(1) contrast(1.05);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.editorial-page .hero-proof {
  margin-top: 0;
}

body.editorial-page .hero-proof span {
  border-radius: 0;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: none;
  color: #111;
}

body.editorial-page .pro-services,
body.editorial-page .pro-featured,
body.editorial-page .pro-pricing,
body.editorial-page .portfolio-hero,
body.editorial-page .case-card,
body.editorial-page .cta-panel {
  width: min(1180px, 92%);
  margin: 18px auto 0;
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.09);
  padding: clamp(26px, 4vw, 48px) !important;
}

body.editorial-page .pro-services .container,
body.editorial-page .pro-featured .container,
body.editorial-page .pro-pricing .container,
body.editorial-page .portfolio-hero .container,
body.editorial-page .case-card .container {
  width: 100%;
}

body.editorial-page .section-head h2,
body.editorial-page .portfolio-hero h1,
body.editorial-page .case-card h2 {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 800 !important;
  color: #111 !important;
  letter-spacing: 0 !important;
}

body.editorial-page .section-head h2 {
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.9;
}

body.editorial-page .service-grid {
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin-top: 22px;
}

body.editorial-page .service-card,
body.editorial-page .price-card,
body.editorial-page .portfolio-link-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 22px 0 0;
  background: transparent;
}

body.editorial-page .service-card span {
  color: var(--rs-blue);
}

body.editorial-page .featured-grid {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

body.editorial-page .featured-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  background: #fff;
  display: grid;
  gap: 14px;
}

body.editorial-page .featured-card.large {
  background: #fff;
  color: #111;
}

body.editorial-page .featured-card.large h3,
body.editorial-page .featured-card.large p {
  color: #111;
}

body.editorial-page .featured-card img,
body.editorial-page .case-image img,
body.editorial-page .portfolio-hero-image img {
  border-radius: 0;
  border: 0;
  min-height: 0;
}

body.editorial-page .featured-card.large img {
  aspect-ratio: 16 / 10;
}

body.editorial-page .featured-card:not(.large) img {
  aspect-ratio: 4 / 3;
}

body.editorial-page .featured-card h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
}

body.editorial-page .portfolio-hero {
  display: block;
}

body.editorial-page .portfolio-hero-grid {
  grid-template-columns: 0.8fr 1.2fr;
}

body.editorial-page .portfolio-hero h1 {
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 0.82;
}

body.editorial-page .case-list {
  gap: 18px;
}

body.editorial-page .case-card {
  grid-template-columns: 1fr 0.78fr;
  box-shadow: none;
  border-left: 0;
}

body.editorial-page .case-card.reverse .case-image {
  order: 0;
}

body.editorial-page .case-card:nth-child(even) {
  grid-template-columns: 0.78fr 1fr;
}

body.editorial-page .case-content {
  padding: 0;
  align-self: end;
}

body.editorial-page .case-card h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

body.editorial-page .case-meta li {
  border-radius: 0;
  background: rgba(245, 155, 26, 0.12);
}

body.editorial-page .site-footer {
  background: #111;
  color: #fff;
}

body.editorial-page .site-footer a,
body.editorial-page .site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
  body.editorial-page .main-nav {
    background: #111 !important;
    border-radius: 0;
  }

  body.editorial-page .pro-hero,
  body.editorial-page .featured-grid,
  body.editorial-page .portfolio-hero-grid,
  body.editorial-page .case-card,
  body.editorial-page .case-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  body.editorial-page .pro-hero-content,
  body.editorial-page .pro-hero-media {
    min-height: auto;
  }

  body.editorial-page .pro-hero-media {
    order: -1;
    height: 340px !important;
  }

  body.editorial-page .pro-hero h1,
  body.editorial-page .portfolio-hero h1 {
    font-size: clamp(3.4rem, 17vw, 4.8rem) !important;
    line-height: 0.92 !important;
    max-width: 100% !important;
  }

  body.editorial-page .service-grid,
  body.editorial-page .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* RS Media forside 3.0 */
.rs-home-v3 {
  --v3-green: #2f4b3d;
  --v3-sage: #aeb9ab;
  --v3-rose: #b99d9f;
  --v3-peach: #e7b8a4;
  --v3-orange: #f59b1a;
  --v3-cream: #f7f4ed;
  --v3-ink: #26352d;
  --v3-white: #fffaf6;
  margin: 0;
  background: var(--v3-cream);
  color: var(--v3-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.rs-home-v3 main {
  padding-bottom: 0;
  overflow: hidden;
}

.v3-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(24px, 6vw, 64px);
  background: rgba(255, 250, 246, 0.94);
  border-bottom: 1px solid rgba(47, 75, 61, 0.08);
  backdrop-filter: blur(14px);
}

.v3-brand img {
  width: 86px;
  height: auto;
}

.v3-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.8vw, 42px);
}

.v3-nav a {
  color: #111;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.v3-nav > a,
.v3-nav-item > a {
  padding: 12px 0;
}

.v3-nav a:hover,
.v3-nav a.active {
  color: var(--v3-orange);
  font-weight: 700;
}

.v3-nav a.active {
  border-bottom: 2px solid var(--v3-orange);
}

.v3-order {
  padding: 12px 20px !important;
  border: 1px solid var(--v3-orange);
  border-radius: 6px;
  color: var(--v3-orange) !important;
  font-weight: 700 !important;
}

.v3-nav-item {
  position: relative;
}

.v3-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  width: 172px;
  padding: 12px 18px 18px;
  background: rgba(255, 250, 246, 0.98);
  box-shadow: 0 22px 50px rgba(47, 75, 61, 0.13);
  border-top: 4px solid var(--v3-orange);
  opacity: 0;
  visibility: hidden;
  transform: scaleY(0.72);
  transform-origin: top;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.v3-nav-item:hover .v3-dropdown,
.v3-nav-item:focus-within .v3-dropdown {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
}

.v3-dropdown strong,
.v3-dropdown a {
  display: block;
  padding: 5px 0;
  font-size: 0.86rem;
  color: #222;
}

.v3-dropdown strong {
  color: var(--v3-green);
  font-weight: 800;
}

.v3-menu-toggle {
  display: none;
}

.v3-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  align-items: stretch;
  background: var(--v3-white);
}

.v3-hero-copy {
  padding: clamp(54px, 8vw, 96px) 0 70px clamp(28px, 7vw, 76px);
  position: relative;
  z-index: 2;
}

.v3-hero h1 {
  max-width: 610px;
  margin: 0 0 44px;
  color: var(--v3-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.55rem, 5.8vw, 5.85rem);
  line-height: 1.14;
  font-weight: 500;
  letter-spacing: 0;
}

.v3-hero h1 em {
  color: var(--v3-orange);
  font-style: italic;
}

.v3-hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.v3-hero-actions a,
.v3-outline,
.v3-web-copy a,
.v3-dev-copy a,
.v3-contact-band a {
  min-width: 170px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 4px;
  border: 1px solid currentColor;
  font-weight: 700;
  font-size: 0.92rem;
}

.v3-hero-actions a:first-child {
  background: var(--v3-green);
  color: #fff;
  border-color: var(--v3-green);
}

.v3-hero-actions a:last-child,
.v3-outline {
  color: var(--v3-green);
  background: transparent;
}

.v3-hero-image {
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.v3-hero-image::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  background: linear-gradient(90deg, var(--v3-white), rgba(255, 250, 246, 0));
  z-index: 1;
}

.v3-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.v3-about {
  position: relative;
  margin-top: -1px;
  padding: 130px 0 110px;
  background: var(--v3-rose);
  color: #fff;
}

.v3-wave {
  position: absolute;
  left: -5%;
  width: 110%;
  height: 120px;
  background: var(--v3-white);
  border-radius: 0 0 50% 50%;
}

.v3-wave-top {
  top: -62px;
  transform: none;
}

.v3-section-inner {
  width: min(980px, 84%);
  margin: 0 auto;
  text-align: left;
}

.v3-small-logo {
  width: fit-content;
  margin: 0 auto 24px;
  color: #d75868;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.v3-about h2,
.v3-web-copy h2,
.v3-dev-copy h2,
.v3-contact-band h2,
.v3-prices h2,
.v3-float-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.v3-about h2 {
  margin: 0 0 12px;
  font-size: clamp(3rem, 5.8vw, 5.4rem);
  line-height: 1;
}

.v3-about p {
  max-width: 800px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.55;
  font-weight: 400;
}

.v3-about .v3-outline {
  color: #fff;
  margin: 28px auto 70px;
  display: flex;
  width: fit-content;
}

.v3-group-photo {
  width: min(860px, 88%);
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(61, 45, 45, 0.24);
}

.v3-photo-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 420px;
  background: var(--v3-sage);
}

.v3-photo-strip > img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.v3-float-card {
  position: absolute;
  left: 50%;
  bottom: -76px;
  transform: translateX(-50%);
  width: min(560px, 82%);
  min-height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  background: var(--v3-sage);
  color: #fff;
  box-shadow: 0 18px 38px rgba(47, 75, 61, 0.26);
}

.v3-float-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.v3-float-card a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  padding-bottom: 4px;
}

.v3-web-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
  padding: 170px clamp(28px, 8vw, 120px) 110px;
  background: var(--v3-sage);
  color: #fff;
}

.v3-web-media img,
.v3-dev-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.v3-web-copy {
  text-align: right;
  justify-self: end;
  max-width: 520px;
}

.v3-web-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(3rem, 5vw, 5.4rem);
}

.v3-web-copy p {
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  line-height: 1.5;
  font-weight: 400;
}

.v3-web-copy a {
  color: #fff;
  margin-top: 16px;
}

.v3-dev-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 54px;
  align-items: center;
  padding: 130px clamp(28px, 8vw, 120px);
  background: #edf3f2;
  color: #2f7a63;
}

.v3-dev-section::before {
  content: "";
  position: absolute;
  top: -72px;
  left: -5%;
  width: 110%;
  height: 120px;
  background: #edf3f2;
  border-radius: 50% 50% 0 0;
}

.v3-dev-copy,
.v3-dev-media {
  position: relative;
  z-index: 1;
}

.v3-dev-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(3rem, 5vw, 5.4rem);
}

.v3-dev-copy p {
  max-width: 560px;
  font-size: clamp(1.1rem, 1.6vw, 1.42rem);
  line-height: 1.55;
  font-weight: 400;
}

.v3-dev-copy a {
  color: #2f7a63;
  margin-top: 22px;
}

.v3-contact-band {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: clamp(36px, 8vw, 120px);
  align-items: center;
  padding: 120px clamp(28px, 8vw, 120px);
  background: var(--v3-peach);
  color: #fff;
}

.v3-contact-band img {
  width: min(430px, 100%);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

.v3-contact-band div {
  text-align: right;
  justify-self: end;
  max-width: 640px;
}

.v3-contact-band h2 {
  margin: 0 0 26px;
  font-size: clamp(3rem, 5.5vw, 5.4rem);
}

.v3-contact-band p {
  font-size: clamp(1.18rem, 1.8vw, 1.5rem);
  line-height: 1.6;
  font-weight: 400;
}

.v3-contact-band a {
  color: #fff;
  margin-top: 24px;
}

.v3-prices {
  position: relative;
  padding: 80px clamp(24px, 7vw, 96px) 66px;
  background: var(--v3-white);
  text-align: center;
}

.v3-prices::before {
  content: "";
  position: absolute;
  top: -54px;
  left: -5%;
  width: 110%;
  height: 90px;
  background: var(--v3-white);
  border-radius: 50% 50% 0 0;
}

.v3-prices h2,
.v3-prices p,
.v3-price-grid {
  position: relative;
  z-index: 1;
}

.v3-prices h2 {
  color: var(--v3-green);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-style: italic;
}

.v3-prices > p {
  color: var(--v3-green);
  font-weight: 700;
}

.v3-price-grid {
  width: min(980px, 100%);
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.v3-price-grid article {
  padding: 24px;
  border: 1px solid rgba(47, 75, 61, 0.14);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.v3-price-grid span {
  color: var(--v3-orange);
  font-weight: 800;
}

.v3-price-grid strong {
  display: block;
  margin: 8px 0;
  color: var(--v3-green);
  font-size: 1.35rem;
}

.v3-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 20px 44px;
  background: var(--v3-white);
  color: var(--v3-green);
  font-size: 0.82rem;
}

.v3-footer img {
  width: 112px;
}

@media (max-width: 960px) {
  .v3-header {
    height: auto;
    padding: 16px 24px;
  }

  .v3-menu-toggle {
    display: inline-flex;
    background: #fff;
    border-color: rgba(47, 75, 61, 0.16);
  }

  .v3-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 24px;
    width: min(310px, calc(100vw - 48px));
    display: grid;
    gap: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(47, 75, 61, 0.12);
    border-radius: 10px;
    box-shadow: 0 22px 48px rgba(47, 75, 61, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .v3-nav.nav-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .v3-nav a,
  .v3-nav > a,
  .v3-nav-item > a {
    padding: 13px 4px;
  }

  .v3-dropdown {
    position: static;
    width: 100%;
    margin: 0 0 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 2px solid var(--v3-orange);
    background: rgba(247, 244, 237, 0.72);
  }

  .v3-hero,
  .v3-web-section,
  .v3-dev-section,
  .v3-contact-band,
  .v3-price-grid {
    grid-template-columns: 1fr;
  }

  .v3-hero-copy {
    padding: 46px 24px;
  }

  .v3-hero-image {
    min-height: 380px;
    order: -1;
  }

  .v3-web-copy,
  .v3-contact-band div {
    text-align: left;
    justify-self: start;
  }

  .v3-photo-strip {
    grid-template-columns: 1fr;
  }

  .v3-photo-strip > img {
    height: 320px;
  }

  .v3-float-card {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .v3-brand img {
    width: 72px;
  }

  .v3-hero h1 {
    font-size: 3.05rem;
  }

  .v3-hero-actions a,
  .v3-outline,
  .v3-web-copy a,
  .v3-dev-copy a,
  .v3-contact-band a {
    width: 100%;
  }

  .v3-about,
  .v3-web-section,
  .v3-dev-section,
  .v3-contact-band {
    padding-left: 24px;
    padding-right: 24px;
  }

  .v3-section-inner {
    width: 100%;
  }

  .v3-about p,
  .v3-web-copy p,
  .v3-dev-copy p,
  .v3-contact-band p {
    font-size: 1.05rem;
  }
}
