/* Kjellerup Rengøring — retning 1 "Varm & personlig" */

/* ── Design tokens ────────────────────────────────────────── */
:root {
  --bg: #f6f2ec;
  --surface: #fbf8f3;
  --fg: #2a2622;
  --muted: #6b625a;
  --accent: #2d4a3e;
  --accent-dark: #233a31;
  --accent-soft: #c9d6c2;
  --rule: rgba(42, 38, 34, 0.12);
  --heading: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1180px;
  --pad-x: clamp(20px, 5vw, 56px);
}

/* ── Reset-ish ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--heading);
  font-weight: 400;
  letter-spacing: -0.4px;
  margin: 0;
  color: var(--fg);
}

p { margin: 0; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
}

.lead {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 54ch;
}

/* ── Layout primitives ───────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section { padding: clamp(56px, 9vw, 96px) 0; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(120%) blur(6px);
}
.site-header .inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.site-header .nav { flex: 1; justify-content: center; }
.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
  color: var(--fg);
  flex-shrink: 0;
  min-width: 0;
}
.brand .name {
  font-family: var(--heading);
  font-size: 22px;
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.brand .owner {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav .btn { white-space: nowrap; flex-shrink: 0; }
.nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color .15s;
}
.nav a:hover { color: var(--fg); }
.nav a.active { color: var(--accent); font-weight: 500; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: background .15s, color .15s, transform .15s;
  cursor: pointer;
}
.btn:hover { background: var(--accent); color: #fbf8f3; }
.btn.primary {
  background: var(--accent);
  color: #fbf8f3;
}
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.large {
  padding: 16px 28px;
  font-size: 15px;
}
.btn.light {
  background: #fbf8f3;
  color: var(--accent);
  border-color: #fbf8f3;
}
.btn.light:hover { background: #fff; border-color: #fff; color: var(--accent-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg { display: block; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: end;
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(48px, 8vw, 80px);
}
.hero h1 {
  font-size: clamp(44px, 7.2vw, 88px);
  line-height: 1;
  letter-spacing: -1.5px;
  margin-top: 24px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.hero .hero-actions .linklike {
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.hero .hero-actions .linklike:hover { color: var(--accent); border-color: var(--accent); }

.hero-image {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  box-shadow: 0 2px 0 var(--rule);
}

/* ── Pillars ─────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.pillar {
  background: var(--surface);
  padding: 24px 26px;
}
.pillar h3 { font-size: 22px; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ── Service preview (3 cards w/ image) ──────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card .service-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
}
.service-card h3 {
  font-size: 28px;
  margin-top: 20px;
}
.service-card p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.6;
}
.service-card .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 16px;
}
.service-card .more:hover { gap: 12px; transition: gap .15s; }

/* ── CTA strip ───────────────────────────────────────────── */
.cta-strip {
  background: var(--accent);
  color: #fbf8f3;
  padding: clamp(40px, 6vw, 56px) clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-strip h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  color: #fbf8f3;
}
.cta-strip .note {
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.85;
}

/* ── Generic page hero ───────────────────────────────────── */
.page-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-top: clamp(24px, 4vw, 44px);
  padding-bottom: clamp(40px, 6vw, 56px);
}
.page-hero h1 {
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.8px;
  margin-top: 22px;
}
.page-hero-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
}

/* ── Services list ───────────────────────────────────────── */
.services {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.services-title {
  font-family: var(--heading);
  font-size: 22px;
  font-style: italic;
  color: var(--fg);
}
.services ul {
  list-style: none;
  padding: 0;
  margin: 0;
  column-count: 2;
  column-gap: 40px;
}
.services li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.5;
  break-inside: avoid;
}
.services li:first-child { border-top: none; }
.services li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

/* ── Info box ────────────────────────────────────────────── */
.info-box {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 22px 26px;
  margin-top: 48px;
  font-size: 14px;
  line-height: 1.6;
}
.info-box strong { color: var(--accent); }

/* ── Inline CTA row (below service lists) ────────────────── */
.cta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: clamp(48px, 8vw, 80px);
}
.cta-row h3 {
  font-size: 28px;
  max-width: 520px;
}

/* ── Contact page ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
}
.contact-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-row .icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-row .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.contact-row .value {
  font-family: var(--heading);
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--fg);
  text-decoration: none;
  display: block;
  margin-top: 2px;
}
.contact-row a.value { text-decoration: none; }
.contact-row a.value:hover { color: var(--accent); }

/* ── Contact form ────────────────────────────────────────── */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: clamp(24px, 4vw, 36px);
  border-radius: 2px;
}
.contact-form h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: 6px;
}
.contact-form .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--fg);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.12);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .error {
  color: #9c3a2b;
  font-size: 12px;
  font-family: var(--body);
  letter-spacing: 0;
  text-transform: none;
  display: none;
  margin-top: 2px;
}
.field.invalid input,
.field.invalid textarea { border-color: #9c3a2b; }
.field.invalid .error { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-success {
  background: var(--accent-soft);
  padding: 32px;
  border-radius: 2px;
  text-align: center;
}
.form-success h3 {
  font-family: var(--heading);
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 10px;
}
.form-success p { color: var(--fg); font-size: 15px; }

.quote-card {
  margin-top: 20px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
}
.quote-card .sig {
  font-style: normal;
  margin-top: 10px;
  font-size: 12px;
  color: var(--fg);
  font-family: var(--body);
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: 56px 0 24px;
  color: var(--muted);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}
.footer-grid .brand-name {
  font-family: var(--heading);
  font-size: 22px;
  color: var(--fg);
  margin-bottom: 8px;
}
.footer-grid p { max-width: 360px; line-height: 1.6; }
.footer-grid h4 {
  font-family: var(--body);
  color: var(--fg);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.footer-grid .links a {
  color: var(--muted);
  text-decoration: none;
  line-height: 1.9;
  display: block;
}
.footer-grid .links a:hover { color: var(--fg); }
.footer-grid .contact-line {
  line-height: 1.9;
}
.footer-grid .contact-line a.main {
  color: var(--fg);
  text-decoration: none;
  display: block;
  font-weight: 500;
}
.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Page transitions ────────────────────────────────────── */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
  animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
::view-transition-old(root) { animation-name: page-fade-out; }
::view-transition-new(root) { animation-name: page-fade-in; }

@keyframes page-fade-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes page-fade-in  { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .hero-image { aspect-ratio: 4/3; }
  .pillars { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-strip { grid-template-columns: 1fr; }
  .page-hero { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; gap: 20px; }
  .services ul { column-count: 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: flex-start; }

  .site-header .inner {
    flex-wrap: wrap;
    row-gap: 30px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .nav-toggle { display: none; }
  .brand { order: 0; }
  .header-cta {
    order: 1;
    margin-left: auto;
    padding: 5px 12px;
    font-size: 12px;
    gap: 6px;
  }
  .header-cta svg { width: 12px; height: 12px; }
  .site-header .nav {
    order: 2;
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px 18px;
  }
  .nav a { font-size: 14px; padding: 0; }
}

@media (max-width: 720px) {
  .brand .owner { display: none; }
  .hero-image,
  .page-hero-img,
  .service-card .service-img {
    aspect-ratio: 16 / 9;
    max-height: 32vh;
  }
}
@media (max-width: 500px) {
  .services-title { font-size: 18px; }
  .brand .name { font-size: 19px; }
  .header-cta { font-size: 11px; padding: 4px 10px; }
  .site-header .nav { gap: 8px 14px; }
  .nav a { font-size: 13px; }
}
