/* Terrasslinje — Nordic minimal terrace design */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #e8eaec;
  --text: #121416;
  --accent: #2a6f6b;
  --accent-light: #3a8f89;
  --border: #c8ccd0;
  --white: #f5f6f7;
  --muted: #5a6068;
  --max-width: 1120px;
  --spacing: 1.5rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.main-nav a {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text);
}

/* Hero */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 18ch;
}

.hero .tagline {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--text);
  color: var(--white);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--white);
}

/* Sections */

section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

section + section {
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

section p {
  margin-bottom: 1rem;
  max-width: 65ch;
}

/* Grid layouts */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* Cards */

.card {
  border: 1px solid var(--border);
  padding: 2rem;
  background: var(--white);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.card .price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1rem;
}

.card a.card-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Page header (inner pages) */

.page-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--muted);
  max-width: 55ch;
}

/* Content area */

.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.content-narrow {
  max-width: 720px;
}

.content h2 {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
}

.content p,
.content li {
  margin-bottom: 0.75rem;
  max-width: 65ch;
}

.content ul,
.content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.content ul li {
  margin-bottom: 0.4rem;
}

/* FAQ */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Process steps */

.process-steps {
  counter-reset: step;
}

.process-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 0.15rem;
}

/* Pricing table */

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  font-size: 0.9375rem;
}

.pricing-table th {
  background: var(--white);
  font-weight: 600;
}

.pricing-table td:last-child {
  font-weight: 600;
  white-space: nowrap;
}

/* Contact form */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Portfolio / projects */

.project-card {
  border: 1px solid var(--border);
  background: var(--white);
}

.project-card .project-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #d4d8dc 0%, #b8bec4 100%);
  border-bottom: 1px solid var(--border);
}

.project-card .project-body {
  padding: 1.5rem;
}

.project-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.project-card p {
  font-size: 0.875rem;
  color: var(--muted);
}

.project-meta {
  font-size: 0.8125rem;
  color: var(--accent);
  margin-top: 0.75rem;
}

/* Sitemap */

.sitemap-list {
  list-style: none;
  columns: 2;
  column-gap: 3rem;
}

.sitemap-list li {
  margin-bottom: 0.6rem;
  break-inside: avoid;
}

.sitemap-list a {
  font-size: 0.9375rem;
}

/* Legal pages */

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
}

.legal-content h3 {
  font-size: 1.0625rem;
  margin-top: 1.5rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.9375rem;
  color: var(--muted);
}

.last-updated {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* CTA banner */

.cta-banner {
  max-width: var(--max-width);
  margin: 0 auto 4rem;
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  background: var(--white);
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--muted);
  margin: 0 auto 1.75rem;
  max-width: 45ch;
}

.cta-banner .hero-actions {
  justify-content: center;
}

/* Footer */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}

.footer-brand .logo {
  margin-bottom: 0.75rem;
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 28ch;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: var(--muted);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* Responsive */

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0;
  }

  .hero {
    padding: 3rem 1.25rem 2.5rem;
  }

  section,
  .content,
  .page-header {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .sitemap-list {
    columns: 1;
  }
}
