/* =========================================================
   Halsnæshuse — fælles stylesheet
   Design: skovgrøn #2D5240 · varm off-white #F6F5F1
   Typografi: Schibsted Grotesk (én familie, hierarki via vægt)
   ========================================================= */

:root {
  --green:       #2D5240;
  --green-deep:  #1E3A2C;
  --green-soft:  #3E6B54;
  --cream:       #F6F5F1;
  --sand:        #ECE7DC;
  --sand-line:   #DED7C7;
  --ink:         #1E2019;
  --ink-soft:    #4A4E44;
  --brass:       #B0894C;
  --white:       #FFFFFF;
  --radius:      4px;
  --maxw:        1140px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.32rem; }

p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin: 0 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--brass);
  display: inline-block;
}

.lead { font-size: 1.22rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green); color: var(--white); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--green-deep); }
.btn-light:hover { background: var(--sand); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,245,241,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand {
  font-weight: 800; font-size: 1.28rem; letter-spacing: -0.03em;
  text-decoration: none; color: var(--green-deep);
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.brand .mark {
  width: 26px; height: 26px; flex: none;
}
.nav-links { display: flex; gap: 0.35rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.98rem;
  padding: 0.5rem 0.85rem; border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-deep); background: var(--sand); }
.nav-cta { margin-left: 0.6rem; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; padding: 8px;
}
.nav-toggle span { display: block; height: 2px; background: var(--green-deep); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-sand { background: var(--sand); }
.section-green { background: var(--green); color: var(--cream); }
.section-green .eyebrow { color: #A9C6B4; }
.section-green .lead { color: #D7E2D9; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 88px;
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero h1 { color: var(--green-deep); font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-visual {
  position: relative; border-radius: 8px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(30,58,44,0.45);
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, #34573f 0%, #22402f 100%);
}
.hero-visual .ba-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 18px 22px;
  background: linear-gradient(to top, rgba(20,34,25,0.78), transparent);
  color: var(--cream); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em;
}
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 40px;
  margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--sand-line);
}
.trust-strip .stat { }
.trust-strip .num { font-size: 2rem; font-weight: 800; color: var(--green-deep); line-height: 1; }
.trust-strip .cap { font-size: 0.9rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Cards / steps ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--sand-line);
  border-radius: 6px; padding: 30px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(30,58,44,0.4); }
.card .step-no {
  font-size: 0.85rem; font-weight: 700; color: var(--brass);
  letter-spacing: 0.1em; display: block; margin-bottom: 0.8rem;
}
.card h3 { color: var(--green-deep); }
.card p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

.icon-dot {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--sand); color: var(--green);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.section-green .icon-dot { background: rgba(255,255,255,0.12); color: var(--cream); }

/* ---------- Standard list ---------- */
.std-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.std-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--sand-line);
}
.std-list .n {
  font-weight: 800; color: var(--brass); font-size: 0.95rem;
  min-width: 34px; padding-top: 2px;
}
.std-list h3 { margin-bottom: 0.2rem; font-size: 1.15rem; color: var(--green-deep); }
.std-list p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media {
  aspect-ratio: 5/4; border-radius: 8px;
  background: linear-gradient(150deg, #3b6349, #234230);
  box-shadow: 0 24px 48px -30px rgba(30,58,44,0.45);
}

/* ---------- Areas ---------- */
.area-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.area-tags a {
  text-decoration: none; padding: 0.65rem 1.2rem;
  background: var(--white); border: 1px solid var(--sand-line);
  border-radius: 100px; font-weight: 600; color: var(--green-deep);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.area-tags a:hover { background: var(--green); color: var(--white); transform: translateY(-2px); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: var(--cream); max-width: 20ch; margin: 0 auto 0.6rem; }
.cta-band .lead { margin: 0 auto 2rem; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Form ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--sand-line);
  border-radius: 8px; padding: 40px;
  box-shadow: 0 24px 50px -36px rgba(30,58,44,0.4);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; color: var(--green-deep); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 0.8rem 0.95rem; border: 1.5px solid var(--sand-line);
  border-radius: var(--radius); background: var(--cream); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,82,64,0.15);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--sand-line); padding: 6px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.1rem; color: var(--green-deep);
  padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; color: var(--brass); transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); font-size: 1rem; padding-bottom: 18px; margin: 0; max-width: 68ch; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 72px 0 40px; }
.page-hero h1 { color: var(--green-deep); }
.page-hero .lead { margin-top: 0.4rem; }

/* ---------- Values ---------- */
.value { display: flex; gap: 18px; align-items: flex-start; }
.value .icon-dot { flex: none; margin: 0; }
.value h3 { margin-bottom: 0.25rem; color: var(--green-deep); font-size: 1.15rem; }
.value p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center; }
.founder .portrait {
  width: 200px; height: 200px; border-radius: 50%;
  background: linear-gradient(150deg, #3b6349, #234230);
  display: grid; place-items: center; color: var(--cream);
  font-size: 3rem; font-weight: 800;
}

/* ---------- Empty state (huse til salg) ---------- */
.empty {
  text-align: center; background: var(--white); border: 1px dashed var(--sand-line);
  border-radius: 8px; padding: 64px 32px; max-width: 620px; margin: 0 auto;
}
.empty .icon-dot { margin: 0 auto 1.2rem; width: 56px; height: 56px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #C9D6CC; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: var(--cream); font-size: 0.95rem; letter-spacing: 0.04em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: #C9D6CC; text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--white); }
.footer-brand { font-size: 1.3rem; font-weight: 800; color: var(--cream); margin-bottom: 0.8rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.85rem; color: #9FB3A5;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-s { margin-top: 1.2rem; }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 2px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .founder { grid-template-columns: 1fr; gap: 36px; }
  .founder { text-align: center; justify-items: center; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--sand-line);
    padding: 12px 24px 20px; gap: 4px;
    transform: translateY(-140%); transition: transform 0.35s var(--ease);
    box-shadow: 0 20px 40px -24px rgba(30,58,44,0.4);
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 0.85rem 0.6rem; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  section { padding: 64px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
  .trust-strip { gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
