@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #1c1815;
  --brand: #a65530;
  --brand-deep: #221e1a;
  --brand-light: #faf6ee;
  --bg: #efe7d8;
  --text: #2b2a26;
  --text-muted: #5f5e57;
  --white: #ffffff;
  --border: #e3d9c4;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

/* Sikrer at [hidden] alltid virker, uansett hvilken class-regel som ellers
   setter display på samme element (f.eks. .btn-secondary, .calculator-step). */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--brand-deep);
}

img {
  max-width: 100%;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

header.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo img {
  height: 40px;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.logo:hover img {
  transform: scale(1.02);
  filter: brightness(0.8);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--brand-deep);
}

nav.main-nav a.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
}

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }

  nav.main-nav {
    display: none;
    width: 100%;
  }

  nav.main-nav.open {
    display: block;
  }

  nav.main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
  }

  nav.main-nav a {
    display: block;
    padding: 12px 0;
  }

  nav.main-nav a.lang-link {
    display: inline-flex;
    margin-top: 8px;
    padding: 6px 12px;
  }
}

/* Full-screen photo hero (homepage) */
.hero-full {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--white);
}

.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 24, 21, 0.5), rgba(28, 24, 21, 0.75));
}

.hero-full .container {
  position: relative;
  z-index: 1;
}

.hero-full h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-full p.lead {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--brand-light);
}

.hero-tagline {
  color: var(--brand-light);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.hero-full-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .hero-full {
    min-height: 80vh;
  }

  .hero-full h1 {
    font-size: 2.1rem;
  }
}

/* Photo hero for secondary pages (dark overlay + white text) */
.hero-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 84px 0;
  text-align: center;
  color: var(--white);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 24, 21, 0.82), rgba(28, 24, 21, 0.68));
}

.hero-photo .container {
  position: relative;
  z-index: 1;
}

.hero-photo h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: var(--white);
}

.hero-photo p.lead {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
  color: var(--brand-light);
}

/* Feature block with a photo beside a text column */
.feature-split {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.feature-split .feature-text,
.feature-split .feature-image {
  flex: 1 1 320px;
}

.feature-split img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(28, 24, 21, 0.14);
  display: block;
}

@media (max-width: 700px) {
  .feature-split img {
    height: 260px;
  }

  .hero-photo {
    padding: 56px 0;
  }
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  filter: brightness(0.96);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--brand-deep);
  border: 2px solid var(--brand-deep);
  padding: 12px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}

.btn-secondary:hover {
  background: var(--brand-light);
  color: var(--brand-deep);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 12px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--ink);
}

/* Sections */
section {
  padding: 56px 0;
}

section h2 {
  color: var(--brand-deep);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 36px;
}

/* Trust cards */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.trust-card {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--white) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
}

.trust-card .badge-dark {
  margin: 0 auto 16px;
}

.trust-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--brand);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--brand-deep);
}

.trust-card .icon svg {
  width: 28px;
  height: 28px;
}

.trust-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--white) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
}

.testimonial-card .stars {
  color: #f5a623;
  letter-spacing: 3px;
  margin-bottom: 12px;
  font-size: 1rem;
}

.testimonial-card .quote {
  font-style: italic;
  color: var(--text);
  margin: 0 0 16px;
}

.testimonial-card .author {
  margin: 0;
  font-weight: 600;
  color: var(--brand-deep);
  font-size: 0.9rem;
}

/* CTA banner */
.cta-banner {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 48px 0;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.cta-banner p {
  color: var(--brand-light);
  margin-bottom: 24px;
}

.cta-banner .btn {
  background: var(--white);
  color: var(--brand-deep);
}

.cta-banner .btn:hover {
  background: var(--brand-light);
  color: var(--brand-deep);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--brand-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-deep);
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

/* About page */
.about-block {
  margin-bottom: 48px;
}

.about-block h2 {
  margin-bottom: 12px;
}

.values-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.values-list li {
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.values-list strong {
  color: var(--brand-deep);
  display: block;
  margin-bottom: 4px;
}

.founder {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--white) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

.founder-photo {
  flex-shrink: 0;
}

.founder-photo img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 4px var(--brand), 0 20px 40px rgba(28, 24, 21, 0.15);
  display: block;
}

.founder-info {
  flex: 1 1 280px;
}

.badge-dark {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.founder-badge {
  margin-bottom: 12px;
}

.founder-info h3 {
  margin: 0 0 2px;
  font-size: 1.4rem;
  color: var(--ink);
}

.founder-nickname {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

.founder-info p:last-child {
  margin-bottom: 0;
}

/* Pricing table */
.price-note {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin-top: 8px;
}

.price-note h3 {
  margin-top: 0;
  color: var(--brand-deep);
}

/* Price calculator */
.calculator {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 24px;
}

.calculator-progress {
  margin-bottom: 28px;
}

.calculator-progress-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: 8px;
}

.calculator-progress-bar {
  height: 6px;
  background: var(--brand-light);
  border-radius: 999px;
  overflow: hidden;
}

.calculator-progress-fill {
  height: 100%;
  width: 25%;
  background: var(--brand);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.calculator-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.calculator-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.calculator-nav #calculator-next {
  margin-left: auto;
}

.calculator-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  min-height: 2.6em;
}

.calculator-field input,
.calculator-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
}

.calculator-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232b2a26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}

.calculator-checkbox {
  display: flex;
  align-items: flex-end;
}

.calculator-checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  margin-bottom: 0;
}

.calculator-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.calculator-result {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--white) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
}

.calculator-result-label {
  display: block;
  font-weight: 600;
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.calculator-result-value {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.calculator-result-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 480px;
  margin: 0 auto 20px;
}

.calculator-distance-note {
  color: var(--brand-deep);
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 1.2em;
  margin: 0 0 8px;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
  gap: 40px;
}

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

form.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 16px;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

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

form.contact-form button {
  margin-top: 20px;
}

#form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  display: none;
}

#form-status.success {
  display: block;
  background: #e5f6e8;
  color: #1e6b2f;
}

#form-status.error {
  display: block;
  background: #fbe6e6;
  color: #a13333;
}

.contact-info {
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-info h3 {
  color: var(--brand-deep);
  margin-top: 0;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  margin-bottom: 16px;
}

.contact-info .label {
  display: block;
  font-weight: 600;
  color: var(--brand-deep);
  font-size: 0.9rem;
}

.contact-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
}

.step-number {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-direct {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.calculator-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.calculator-summary-header h3 {
  margin: 0;
}

.calculator-summary-remove {
  flex-shrink: 0;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand-deep);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.calculator-summary-remove:hover {
  background: var(--white);
  color: var(--ink);
}

.calculator-summary-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin: 4px 0 16px;
}

.calculator-summary-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-deep);
  list-style: none;
}

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

.calculator-summary-details summary::after {
  content: "+";
  margin-left: 6px;
  font-weight: 700;
}

.calculator-summary-details[open] summary::after {
  content: "\2013";
}

.calculator-summary-details ul {
  margin-top: 12px;
}

.calculator-summary-note {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
footer.site-footer {
  padding: 32px 0;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site-footer a {
  color: var(--text-muted);
}
