/* ============================================
   Homepage Styles – 3dverkstedet.no
   ============================================ */

/* ============================================
   Hero
   ============================================ */
#hero {
  background: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  position: relative;
}
#hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: var(--primary-50);
  border-radius: 50%;
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: var(--primary-100);
  border-radius: 50%;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-50);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4375rem 1rem;
  border-radius: var(--r-full);
  margin-bottom: 1.25rem;
  border: 1px solid var(--primary-100);
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(2.125rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.125rem;
}
.hero-title span { color: var(--primary); }
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 440px;
}
.hero-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.hero-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  flex-shrink: 0;
}
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero photo (right column) – blends into the background */
.hero-mockup-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-photo {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 480px;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply; /* white photo background disappears into the page */
  -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
}
.hero-photo-badge {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--primary-100);
  padding: 0.5rem 1.25rem;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-lg);
}
.hero-mockup {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 360px;
}
.mockup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.mockup-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.mockup-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  padding: 0.2rem 0.625rem;
  border-radius: var(--r-full);
}
.mockup-file {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
}
.mockup-file-icon { font-size: 1.75rem; flex-shrink: 0; }
.mockup-filename {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.mockup-filesize {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}
.mockup-specs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.mockup-spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}
.mockup-spec span { color: var(--text-secondary); }
.mockup-spec strong { font-weight: 700; color: var(--text); }
.mockup-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}
.mockup-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9375rem;
}
.mockup-price span { color: var(--text-secondary); }
.mockup-price strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-mockup-wrap { justify-content: flex-start; }
  .hero-mockup { max-width: 100%; }
}
@media (max-width: 560px) {
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .hero-cta-group .btn { justify-content: center; }
}

/* ============================================
   Workshop image
   ============================================ */
#workshop {
  background: #fff;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.workshop-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   How it works
   ============================================ */
#how-it-works {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--bg);
}
.how-main-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.how-title-green { color: var(--primary); }
.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}
.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  padding: 0 1.25rem;
}
.how-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(43,102,81,0.25);
}
.how-step-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.how-step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.how-step-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.how-connector {
  flex-shrink: 0;
  width: 48px;
  height: 2px;
  background: var(--border);
  margin-top: 26px;
  position: relative;
}
.how-connector::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -4px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid var(--border);
}
@media (max-width: 640px) {
  .how-steps { flex-direction: column; align-items: center; gap: 1.5rem; }
  .how-connector { width: 2px; height: 32px; margin-top: 0; }
  .how-connector::after {
    right: -4px;
    top: auto;
    bottom: -5px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--border);
    border-bottom: none;
  }
}

/* ============================================
   Materials
   ============================================ */
#materials {
  padding: var(--section-pad) 0;
  background: #fff;
}
.materials-header {
  text-align: center;
  margin-bottom: 3rem;
}
.materials-header .section-sub { margin: 0.75rem auto 0; }
.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.material-card {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.625rem;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.material-card:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow-md);
  background: #fff;
}
.material-name {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.375rem;
  letter-spacing: -0.02em;
}
.material-tagline {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.625rem;
}
.material-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}
.material-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.material-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-50);
  padding: 0.2rem 0.625rem;
  border-radius: var(--r-full);
}
@media (max-width: 900px) {
  .materials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .materials-grid { grid-template-columns: 1fr; }
}

/* ============================================
   FAQ section
   ============================================ */
#faq-section {
  padding: var(--section-pad) 0;
  background: var(--bg);
}
.faq-section-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: flex-start;
}
.faq-sidebar .section-title { margin-bottom: 1rem; }
.faq-sidebar .section-sub { margin-bottom: 1.5rem; }
@media (max-width: 900px) {
  .faq-section-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================
   CTA Banner
   ============================================ */
#cta-banner {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
#cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.cta-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-banner-title {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.cta-banner-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.80);
  line-height: 1.6;
  max-width: 500px;
}
.cta-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cta-banner-note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  text-align: center;
}
@media (max-width: 700px) {
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
  .cta-banner-actions { align-items: flex-start; width: 100%; }
  .cta-banner-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================
   Modal – print-specific additions
   ============================================ */

/* Gateway choices */
.gateway-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.gateway-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.625rem;
  padding: 1.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
  font-family: var(--font);
}
.gateway-choice:hover {
  border-color: var(--primary);
  background: var(--primary-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.gateway-choice-icon { font-size: 2.25rem; }
.gateway-choice-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.gateway-choice-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
@media (max-width: 420px) {
  .gateway-choices { grid-template-columns: 1fr; }
}

/* No-file screen */
.no-file-box {
  text-align: center;
  padding: 1rem 0;
}
.no-file-icon { font-size: 3.5rem; margin-bottom: 1rem; display: block; }
.no-file-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.no-file-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto;
}
.no-file-footer {
  display: flex;
  justify-content: flex-start;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-100);
  margin-top: 1.5rem;
}

/* File upload zone */
.file-drop-zone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  background: var(--gray-50);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.file-drop-zone:hover,
.file-drop-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-50);
}
.file-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.file-drop-zone label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.5rem;
  cursor: pointer;
  font-weight: normal;
  margin-bottom: 0;
}
.file-drop-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.file-drop-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
}
.file-drop-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* File list */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
}
.file-item-name {
  flex: 1;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-item-size {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 0.8125rem;
}
.file-item-remove {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
  padding: 0;
}
.file-item-remove:hover { background: var(--danger); color: #fff; }

/* Delivery / reservedel option buttons */
.levering-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.levering-btn,
.reservedel-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  transition: all 0.2s;
  font-family: var(--font);
  text-align: center;
}
.levering-btn small,
.reservedel-btn small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}
.levering-btn:hover,
.reservedel-btn:hover {
  border-color: var(--primary);
  background: var(--primary-50);
}
.levering-btn.selected,
.reservedel-btn.selected {
  border-color: var(--primary);
  background: var(--primary-50);
  color: var(--primary);
}

/* Measurements row */
.maal-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.maal-group {
  flex: 1;
  position: relative;
}
.maal-group .modal-input {
  padding-right: 2rem;
}
.maal-unit {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}
.maal-sep {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .maal-row { flex-direction: column; }
  .maal-sep { display: none; }
}

/* Contact row (two columns) */
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 480px) {
  .input-row { grid-template-columns: 1fr; }
}

/* Consent checkbox */
.consent-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 400 !important;
  cursor: pointer;
  line-height: 1.5;
}
.consent-cb {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.125rem;
  accent-color: var(--primary);
  cursor: pointer;
}
.consent-label span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.consent-label a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
