/* ============================================
   REINHARD BYGG - Custom Styles
   Brand Colors: Dark Navy #2B2D42, Gold #E8A817, White
   ============================================ */

:root {
  --primary-dark: #2B2D42;
  --primary-dark-light: #3D3F56;
  --primary-gold: #E8A817;
  --primary-gold-light: #F5C542;
  --primary-gold-dark: #C48E12;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --light-gray: #E9ECEF;
  --medium-gray: #6C757D;
  --text-dark: #1A1A2E;
  --text-body: #4A4A5A;
  --shadow-sm: 0 2px 8px rgba(43, 45, 66, 0.08);
  --shadow-md: 0 4px 20px rgba(43, 45, 66, 0.12);
  --shadow-lg: 0 8px 40px rgba(43, 45, 66, 0.16);
  --shadow-gold: 0 4px 20px rgba(232, 168, 23, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--white);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-gold-dark);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--primary-dark);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-light {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .overline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary-gold);
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--medium-gray);
  font-size: 1.1rem;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.7);
}

.gold-line {
  width: 60px;
  height: 3px;
  background: var(--primary-gold);
  margin: 1rem auto;
  border-radius: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-gold);
  color: var(--primary-dark);
  border-color: var(--primary-gold);
}

.btn-primary:hover {
  background: var(--primary-gold-light);
  border-color: var(--primary-gold-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-gold);
  border-color: var(--primary-gold);
}

.btn-outline:hover {
  background: var(--primary-gold);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--primary-dark);
  color: var(--white);
  border-color: var(--primary-dark);
}

.btn-dark:hover {
  background: var(--primary-dark-light);
  border-color: var(--primary-dark-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(43, 45, 66, 0.97);
  backdrop-filter: blur(12px);
  padding: 0.6rem 0;
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 48px;
  width: auto;
  transition: var(--transition);
}

.navbar.scrolled .nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-links a {
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-gold);
}

.nav-cta {
  background: var(--primary-gold) !important;
  color: var(--primary-dark) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--primary-gold-light) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav — hamburger tar over før menyen blir for trang.
   Menylenkene krever 940px + logo 96px + padding 48px = 1084px,
   så bruddpunktet må ligge over det for å unngå at menyen brekker. */
@media (max-width: 1140px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--primary-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(43,45,66,0.95) 0%, rgba(43,45,66,0.7) 50%, rgba(43,45,66,0.85) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem 0;
}

/* Hero Portrait */
.hero-portrait {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease 0.5s forwards;
  opacity: 0;
}

.hero-portrait-img {
  width: 280px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
  transition: transform 0.4s ease;
  mask-image: radial-gradient(ellipse 96% 95% at 50% 46%, black 88%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 96% 95% at 50% 46%, black 88%, transparent 100%);
}

.hero-portrait:hover .hero-portrait-img {
  transform: scale(1.02) translateY(-4px);
}

.hero-portrait-label {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gold);
  color: var(--primary-dark);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  box-shadow: var(--shadow-gold);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 168, 23, 0.15);
  border: 1px solid rgba(232, 168, 23, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary-gold);
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease forwards;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease 0.15s forwards;
  opacity: 0;
}

.hero h1 .gold {
  color: var(--primary-gold);
}

.hero-text {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 550px;
  line-height: 1.8;
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.45s forwards;
  opacity: 0;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeInUp 0.6s ease 0.6s forwards;
  opacity: 0;
}

.hero-stat h3 {
  color: var(--primary-gold);
  font-size: 2.2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
}

.hero-stat p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin: 0;
}

/* Floating elements */
.hero-float {
  position: absolute;
  z-index: 2;
  opacity: 0.07;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-float-1 {
  top: 15%;
  right: 8%;
  font-size: 4rem;
  animation-delay: 0s;
}

.hero-float-2 {
  bottom: 20%;
  right: 15%;
  font-size: 3rem;
  animation-delay: 2s;
}

.hero-float-3 {
  top: 40%;
  right: 25%;
  font-size: 2.5rem;
  animation-delay: 4s;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  animation: bounce 2s ease infinite;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--primary-gold);
  border-radius: 2px;
  animation: scrollWheel 2s ease infinite;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}


.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--light-gray);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gold);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(232, 168, 23, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary-gold);
  transform: scale(1.05);
}

.service-card:hover .service-icon svg {
  color: var(--primary-dark);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary-gold);
  transition: var(--transition);
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--medium-gray);
  font-size: 0.95rem;
}

/* ============================================
   WHY US / ABOUT SECTION
   ============================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-image-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--primary-gold);
  color: var(--primary-dark);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.about-image-badge .number {
  font-size: 2rem;
  display: block;
  font-family: 'Inter', sans-serif;
}

.about-image-badge .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-content .overline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary-gold);
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content > p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.usp-list {
  list-style: none;
  margin: 2rem 0;
}

.usp-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.usp-list li .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(232, 168, 23, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.usp-list li .check svg {
  width: 14px;
  height: 14px;
  color: var(--primary-gold);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image img {
    height: 350px;
  }
}

/* ============================================
   PROCESS / HOW WE WORK
   ============================================ */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: rgba(232, 168, 23, 0.2);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--primary-gold);
  transition: var(--transition);
}

.process-step:hover .step-number {
  background: var(--primary-gold);
  color: var(--primary-dark);
  transform: scale(1.1);
}

.process-step h4 {
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--medium-gray);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .process-steps::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  position: relative;
}

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

.testimonial-stars {
  color: var(--primary-gold);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-info h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.testimonial-info p {
  font-size: 0.8rem;
  color: var(--medium-gray);
  margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: var(--primary-dark);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,168,23,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-gold);
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  margin-top: 1.5rem;
}

.cta-phone svg {
  width: 22px;
  height: 22px;
}

/* ============================================
   PORTFOLIO GRID
   ============================================ */

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--light-gray);
  border-radius: 50px;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary-gold);
  background: var(--primary-gold);
  color: var(--primary-dark);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43,45,66,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.portfolio-overlay p {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin: 0;
}

.portfolio-overlay .tag {
  display: inline-block;
  background: var(--primary-gold);
  color: var(--primary-dark);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--primary-gold);
  color: var(--primary-dark);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: var(--primary-gold);
  color: var(--primary-dark);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ============================================
   PRICING
   ============================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.price-card {
  container-type: inline-size;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  position: relative;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.price-card.featured {
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-gold);
}

.price-card.featured::before {
  content: 'Mest populær';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gold);
  color: var(--primary-dark);
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.price-card h3 {
  margin-bottom: 0.5rem;
}

.price-card .price {
  /* Skalerer etter kortets bredde, ikke skjermens - lange prisspenn
     som "22 000-35 000 kr" brakk ellers slik at "kr" havnet alene. */
  font-size: clamp(1.25rem, 10cqi, 2rem);
  line-height: 1.15;
  text-wrap: balance;
  font-weight: 800;
  color: var(--primary-gold);
  font-family: 'Inter', sans-serif;
  margin-bottom: 0.25rem;
}

.price-card .price-note {
  font-size: 0.85rem;
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
}

.price-features {
  list-style: none;
  margin-bottom: 2rem;
}

.price-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--off-white);
}

.price-features li:last-child {
  border-bottom: none;
}

.price-features li svg {
  width: 16px;
  height: 16px;
  color: var(--primary-gold);
  flex-shrink: 0;
}

/* ============================================
   CALCULATOR
   ============================================ */

.calculator {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-gray);
  max-width: 800px;
  margin: 0 auto;
}

.calculator h3 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.calculator > p {
  text-align: center;
  color: var(--medium-gray);
  margin-bottom: 2.5rem;
}

.calc-row {
  margin-bottom: 1.5rem;
}

.calc-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.calc-row select,
.calc-row input[type="number"],
.calc-row input[type="range"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  background: var(--white);
  color: var(--text-dark);
}

.calc-row select:focus,
.calc-row input:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(232, 168, 23, 0.15);
}

.calc-range-wrapper {
  position: relative;
}

.calc-range-value {
  text-align: right;
  font-weight: 600;
  color: var(--primary-gold);
  font-size: 1.1rem;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: var(--light-gray);
  border-radius: 4px;
  border: none !important;
  padding: 0 !important;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-gold);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(232, 168, 23, 0.4);
  transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Skinnen var hvit på hvit fordi .calc-row-regelen over satte hvit bakgrunn */
.calc-row input[type="range"] {
  height: 8px;
  background: #d9d6cf;
  cursor: pointer;
}

input[type="range"]::-moz-range-track {
  height: 8px;
  background: #d9d6cf;
  border-radius: 4px;
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: var(--primary-gold);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(232, 168, 23, 0.4);
}

.calc-result {
  background: var(--primary-dark);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.calc-result-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.calc-result-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-gold);
  font-family: 'Inter', sans-serif;
}

.calc-result-note {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-gold);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(232, 168, 23, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary-gold);
}

.contact-info-text h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--medium-gray);
  margin-bottom: 0.15rem;
}

.contact-info-text p {
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  font-size: 1rem;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-gray);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  background: var(--white);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(232, 168, 23, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* File upload */
.file-upload {
  border: 2px dashed var(--light-gray);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.file-upload:hover {
  border-color: var(--primary-gold);
  background: rgba(232, 168, 23, 0.03);
}

.file-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--medium-gray);
}

.file-upload-icon svg {
  width: 40px;
  height: 40px;
  color: var(--primary-gold);
}

.file-upload p {
  color: var(--medium-gray);
  font-size: 0.9rem;
  margin: 0;
}

.file-upload .highlight {
  color: var(--primary-gold);
  font-weight: 600;
}

.file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.file-preview-item {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.file-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-preview-item .remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: rgba(220, 53, 69, 0.9);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(232, 168, 23, 0.3);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-gold);
}

.faq-question .icon {
  width: 28px;
  height: 28px;
  background: rgba(232, 168, 23, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 1.2rem;
  color: var(--primary-gold);
}

.faq-item.active .faq-question .icon {
  background: var(--primary-gold);
  color: var(--primary-dark);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* FAQ - Native Details/Summary */
details.faq-item {
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
  background: var(--white);
}

details.faq-item:hover {
  border-color: rgba(232, 168, 23, 0.3);
}

details.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: '+';
  width: 28px;
  height: 28px;
  background: rgba(232, 168, 23, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--primary-gold);
  transition: var(--transition);
}

details.faq-item[open] summary::after {
  content: '−';
  background: var(--primary-gold);
  color: var(--primary-dark);
}

details.faq-item summary:hover {
  color: var(--primary-gold);
}

details.faq-item .faq-answer {
  max-height: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--text-body);
  line-height: 1.7;
}

details.faq-item .faq-answer a {
  color: var(--primary-gold);
  text-decoration: underline;
}

details.faq-item .faq-answer a:hover {
  color: var(--text-dark);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-about img {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-about p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-gold);
  color: var(--primary-dark);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-gold);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(3deg); }
  50% { transform: translateY(-5px) rotate(-2deg); }
  75% { transform: translateY(-20px) rotate(1deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes scrollWheel {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

@keyframes sawdustFall {
  0% {
    transform: translateY(-10px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

@keyframes hammerSwing {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  50% { transform: rotate(5deg); }
  75% { transform: rotate(-8deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Scroll animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.animate-left {
  transform: translateX(-40px);
}

.animate-on-scroll.animate-right {
  transform: translateX(40px);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Staggered children animation */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 0.3s; }
.stagger-children .animate-on-scroll:nth-child(7) { transition-delay: 0.35s; }
.stagger-children .animate-on-scroll:nth-child(8) { transition-delay: 0.4s; }

/* Sawdust particles */
.sawdust-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.sawdust {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-gold);
  border-radius: 1px;
  opacity: 0;
  animation: sawdustFall linear forwards;
}

/* Counter animation */
.counter {
  display: inline-block;
}

/* Wood grain texture overlay */
.wood-texture {
  position: relative;
}

.wood-texture::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23E8A817' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   PAGE HERO (sub-pages)
   ============================================ */

.page-hero {
  background: var(--primary-dark);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at right, rgba(232,168,23,0.08) 0%, transparent 70%);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  position: relative;
}

.breadcrumbs a {
  color: rgba(255,255,255,0.5);
}

.breadcrumbs a:hover {
  color: var(--primary-gold);
}

.breadcrumbs span {
  color: rgba(255,255,255,0.3);
}

.breadcrumbs .current {
  color: var(--primary-gold);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-portrait {
    display: none;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-stat h3 {
    font-size: 1.6rem;
  }

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

  .calculator {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ============================================
   MISC / UTILITIES
   ============================================ */

.text-gold { color: var(--primary-gold); }
.text-white { color: var(--white); }
.bg-dark { background: var(--primary-dark); }
.bg-gold { background: var(--primary-gold); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Smooth image loading */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Selection styling */
::selection {
  background: var(--primary-gold);
  color: var(--primary-dark);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--primary-gold);
  outline-offset: 2px;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary-gold);
  color: var(--primary-dark);
  padding: 0.5rem 1rem;
  z-index: 10000;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Print styles */
@media print {
  .navbar, .footer, .cta-section, .scroll-indicator {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}

/* ========== AREA & SERVICE LINK GRIDS ========== */
.area-link:hover,
.services-seo-grid a:hover {
  border-color: var(--primary-gold) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.areas-grid a,
.services-seo-grid a {
  transition: all 0.3s ease;
}

.section-light {
  background: var(--off-white);
}

/* ============================================
   UTEMØBLER — PRODUKTSIDER
   ============================================ */

/* --- Produktoversikt (hub) --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--light-gray);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.product-card-body p {
  color: var(--text-body);
  margin: 0 0 1.2rem;
  flex: 1;
}

.product-card-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}

.product-card-price span {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--medium-gray);
}

/* --- Produktside: layout --- */
.product-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* --- Galleri --- */
.product-gallery-main {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--light-gray);
  box-shadow: var(--shadow-md);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.product-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--light-gray);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb:hover { border-color: var(--primary-gold-light); }
.product-thumb[aria-current="true"] { border-color: var(--primary-gold); }
.product-thumb:focus-visible { outline: 3px solid var(--primary-gold); outline-offset: 2px; }

/* --- Bestillingspanel --- */
.order-panel {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

@media (max-width: 900px) {
  .order-panel { position: static; }
}

.order-panel h2 {
  font-size: 1.8rem;
  margin: 0 0 0.4rem;
}

.order-panel > .overline { margin-bottom: 0.6rem; }

.order-lead {
  color: var(--text-body);
  margin: 0 0 1.6rem;
}

.order-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.4rem;
}

.order-fieldset legend {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  padding: 0;
  margin-bottom: 0.7rem;
}

.size-options {
  display: grid;
  gap: 0.6rem;
}

.size-option {
  position: relative;
  display: block;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem 0.9rem 2.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.size-option:hover { border-color: var(--primary-gold-light); background: var(--off-white); }

.size-option input {
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  accent-color: var(--primary-gold-dark);
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  cursor: pointer;
}

.size-option:has(input:checked) {
  border-color: var(--primary-gold);
  background: rgba(232, 168, 23, 0.06);
}

.size-option:has(input:focus-visible) {
  outline: 3px solid var(--primary-gold);
  outline-offset: 2px;
}

.size-option-name {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
}

.size-option-meta {
  display: block;
  font-size: 0.88rem;
  color: var(--medium-gray);
  margin-top: 0.15rem;
}

/* --- Pris --- */
.order-price {
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  padding: 1.3rem 0;
  margin-bottom: 1.4rem;
}

.order-price-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

.order-price-note {
  font-size: 0.88rem;
  color: var(--medium-gray);
  margin-top: 0.35rem;
}

.order-actions { display: grid; gap: 0.7rem; }

.order-note {
  font-size: 0.85rem;
  color: var(--medium-gray);
  margin: 1.1rem 0 0;
  text-align: center;
}

/* --- Spesifikasjonstabell --- */
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--light-gray);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.97rem;
}

.spec-list dt, .spec-list .spec-key {
  color: var(--medium-gray);
  flex-shrink: 0;
}

.spec-list .spec-val {
  color: var(--text-dark);
  font-weight: 600;
  text-align: right;
}

/* --- Infoboks (puter, custom osv.) --- */
.info-box {
  background: var(--off-white);
  border-left: 3px solid var(--primary-gold);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.5rem;
  margin: 1.8rem 0;
}

.info-box h3, .info-box h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.info-box p { margin: 0; color: var(--text-body); font-size: 0.95rem; }
.info-box p + p { margin-top: 0.6rem; }


/* ============================================
   RUTENETT-UNNTAK
   Maa staa sist i filen: de opprinnelige grid-reglene har samme
   spesifisitet, saa den som kommer sist vinner.
   ============================================ */

/* Prisbokser skiller seg fra vanlige kort - de skal staa tre
   i bredden, ikke brytes opp. */
.pricing-grid { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid > * { grid-column: auto; }
}

/* Infofliser (aapningstider o.l.) - alltid alle paa en rad naar det er plass */
.info-tiles {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 760px) {
  .info-tiles { grid-template-columns: repeat(3, 1fr); }
}
.info-tile {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.25rem;
  text-align: center;
}

/* Klikkbare tjenestekort */
.service-card:has(.service-card-link) { padding: 0; display: flex; }
.service-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: inherit;
}
.service-card-link h3,
.service-card-link p { color: inherit; }
.service-card-mer {
  margin-top: auto;
  padding-top: 1.1rem;
  color: var(--primary-gold-dark);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.25s ease;
}
.service-card:hover .service-card-mer { gap: 0.75rem; }
.service-card-link:focus-visible { outline: 3px solid var(--primary-gold); outline-offset: -3px; border-radius: var(--radius-md); }

/* Eksempelgalleri paa tjenestesider */
.losning-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .losning-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .losning-grid { grid-template-columns: repeat(4, 1fr); } }
.losning-kort { margin: 0; }
.losning-kort img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: block;
}
.losning-kort figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--medium-gray);
  line-height: 1.45;
}

/* ============================================
   OMRÅDEKORT
   ============================================ */
.omrade-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .omrade-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .omrade-grid { grid-template-columns: repeat(3, 1fr); } }

.omrade-kort {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
}
.omrade-kort:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-gold);
}
.omrade-kort > a {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.8rem 1.6rem;
  text-decoration: none;
  color: inherit;
}
.omrade-kort > a:focus-visible {
  outline: 3px solid var(--primary-gold);
  outline-offset: -3px;
  border-radius: var(--radius-md);
}
.omrade-ikon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(232, 168, 23, 0.12);
  color: var(--primary-gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.omrade-ikon svg { width: 21px; height: 21px; }
.omrade-kort h3 {
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
  color: var(--text-dark);
}
.omrade-kort p {
  color: var(--text-body);
  font-size: 0.97rem;
  margin: 0 0 0.9rem;
}
.omrade-steder {
  display: block;
  font-size: 0.86rem;
  color: var(--medium-gray);
  line-height: 1.6;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--light-gray);
}
.omrade-mer {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--primary-gold-dark);
  font-weight: 600;
  font-size: 0.93rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.25s ease;
}
.omrade-kort:hover .omrade-mer { gap: 0.75rem; }

/* ============================================
   KORT FORTALT - faktablokk
   Staar paa Om oss, som en oppsummering etter
   historien. Leses av folk som skanner, og av
   AI-sok som henter ut direkte svar (Google AI
   Overviews, ChatGPT, Perplexity). Derfor: korte,
   entydige verdier.
   ============================================ */
.kort-fortalt {
  padding: 4.5rem 0;
  background: var(--off-white);
}

.kort-fortalt-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.kort-fortalt .overline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary-gold-dark);
  margin-bottom: 0.6rem;
  font-family: 'Inter', sans-serif;
}

.kort-fortalt h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.6rem;
}

.kort-fortalt > .container > .kort-fortalt-inner > p {
  color: var(--text-body);
  font-size: 1rem;
  margin-bottom: 1.8rem;
  max-width: 62ch;
}

.fakta-liste {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--light-gray);
}

@media (min-width: 720px) {
  .fakta-liste { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
}

.fakta-rad {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.fakta-rad dt {
  color: var(--medium-gray);
  font-size: 0.9rem;
  font-weight: 500;
  flex-shrink: 0;
}

.fakta-rad dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.fakta-rad dd a { color: var(--primary-gold-dark); text-decoration: none; }
.fakta-rad dd a:hover { text-decoration: underline; }

/* ============================================
   OMRAADE-LENKER (intern lenking)
   Gir omraadesidene lenker fra hver eneste side,
   ikke bare fra omrader.html. Viktig for lokal
   synlighet i Google.
   ============================================ */
.omrade-lenker {
  margin-top: 3rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--light-gray);
  text-align: center;
}

.omrade-lenker h3 {
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
}

.omrade-lenker ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
}

.omrade-lenker a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--light-gray);
  border-radius: 100px;
  background: var(--white);
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.omrade-lenker a:hover {
  border-color: var(--primary-gold);
  color: var(--text-dark);
  background: var(--off-white);
}

/* ============================================
   HERO - innholdet maa ikke havne bak den faste headeren
   Er innholdet hoyere enn skjermen, skyver "align-items: center"
   toppen opp under navbaren. Paa smale skjermer legger vi det
   derfor fra toppen, med plass til headeren.
   ============================================ */
.hero {
  padding-top: 104px;
  padding-bottom: 3rem;
}

@media (max-width: 900px) {
  .hero {
    align-items: flex-start;
    padding-top: 108px;
    padding-bottom: 3.5rem;
  }
}

/* Pris vist i hvert maalvalg - redigerbar, og kilden for prisen i panelet */
.size-option-pris {
  display: block;
  margin-top: 0.45rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.98rem;
}

/* ============================================
   JEVNE RADER — ingen kort alene på siste rad
   ============================================ */

/* Tjenestekort: 4 kort står fire i bredden, ellers to og to */
.services-grid:has(> :nth-child(4):last-child),
.services-seo-grid:has(> :nth-child(8):last-child) {
  grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 1100px) {
  .services-grid:has(> :nth-child(4):last-child),
  .services-seo-grid:has(> :nth-child(8):last-child) {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 640px) {
  .services-grid:has(> :nth-child(4):last-child),
  .services-seo-grid:has(> :nth-child(8):last-child) {
    grid-template-columns: 1fr !important;
  }
}

/* Åtte tjenestekort (forsiden): tre i bredden, med de to siste
   sentrert i nederste rad. Seks smale kolonner der hvert kort tar to,
   så kort nr. 7 kan starte en halv kortbredde inn. Fire i bredden ga
   for smale kort. */
.services-grid:has(> :nth-child(8):last-child) {
  grid-template-columns: repeat(2, 1fr) !important;
}
@media (min-width: 901px) {
  .services-grid:has(> :nth-child(8):last-child) {
    grid-template-columns: repeat(6, 1fr) !important;
  }
  .services-grid:has(> :nth-child(8):last-child) > * { grid-column: span 2; }
  .services-grid:has(> :nth-child(8):last-child) > :nth-child(7) { grid-column: 2 / span 2; }
}
@media (max-width: 640px) {
  .services-grid:has(> :nth-child(8):last-child) {
    grid-template-columns: 1fr !important;
  }
}

/* Tre kort (produkter, omtaler): tre i bredden, og to med det siste
   sentrert under når det blir trangt */
@media (min-width: 901px) {
  .product-grid:has(> :nth-child(3):last-child),
  .testimonials-grid:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .product-grid,
  .testimonials-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .product-grid > *,
  .testimonials-grid > * {
    grid-column: span 2;
  }
  .product-grid > :last-child:nth-child(odd),
  .testimonials-grid > :last-child:nth-child(odd) {
    grid-column: 2 / span 2;
  }
}
@media (max-width: 640px) {
  .product-grid,
  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }
  .product-grid > *,
  .product-grid > :last-child:nth-child(odd),
  .testimonials-grid > *,
  .testimonials-grid > :last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* Prosesser med fem steg: fem i bredden, ellers 3 + 2 sentrert */
@media (min-width: 1025px) {
  .process-steps:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .process-steps:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(6, 1fr);
  }
  .process-steps:has(> :nth-child(5):last-child) > * {
    grid-column: span 2;
  }
  .process-steps:has(> :nth-child(5):last-child) > :nth-child(4) {
    grid-column: 2 / span 2;
  }
  .process-steps:has(> :nth-child(5):last-child)::before {
    display: none;
  }
}
@media (max-width: 768px) and (min-width: 481px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .process-steps > * {
    grid-column: span 2;
  }
  .process-steps > :last-child:nth-child(odd) {
    grid-column: 2 / span 2;
  }
}

/* Portefølje: siste rad sentreres, også når et filter er valgt */
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.portfolio-grid > * {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 0;
}
@media (max-width: 995px) {
  .portfolio-grid > * {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}
@media (max-width: 671px) {
  .portfolio-grid > * {
    flex-basis: 100%;
  }
}
