/* Dansk Ejendomsservice – stylesheet */
:root {
  --accent: #C4501E;
  --accent-dark: #A8431A;
  --ink: #1A1A1A;
  --text: #4A4644;
  --muted: #5A5552;
  --line: #EEEAE6;
  --sand: #F6F3F0;
  --input: #B5ADA7;
  --radius: 14px;
  --font: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4vw, 42px); line-height: 1.08; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; color: #fff; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--xs { gap: 6px; }
.stack--sm { gap: 12px; }
.stack--lg { gap: 40px; }

.eyebrow { display: flex; gap: 14px; align-items: center; font-size: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.eyebrow::after { content: ""; width: 40px; height: 2px; background: currentColor; }
.lead { font-size: 19px; color: var(--text); max-width: 32em; }
.body { font-size: 18px; color: var(--text); }

/* Knapper */
.btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none; font: inherit; font-weight: 700; border-radius: 8px; padding: 13px 22px; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--lg { padding: 15px 28px; font-size: 17px; min-height: 54px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { border-color: var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--white { background: #fff; color: var(--ink); font-weight: 800; }
.btn--white:hover { background: var(--sand); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px 32px; font-weight: 600; font-size: 16px; }
.nav a:not(.btn) { text-decoration: none; padding: 12px 0; }
.nav .btn { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; width: 48px; height: 48px; border-radius: 8px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }

/* Hero */
.hero__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Billedrammer: rammen styrer formatet, billedet fylder den ud (ens i Safari, Chrome og Firefox) */
.media { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.media--hero { aspect-ratio: 5 / 4; border-radius: 18px; }
.media--portrait { aspect-ratio: 3 / 4; max-width: 420px; justify-self: center; border-radius: 18px; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Ydelser */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; padding-bottom: 40px; }
.card { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 6px 24px rgba(26, 26, 26, .06); transition: transform .15s, box-shadow .15s; }
.card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(26, 26, 26, .1); }
.card__icon, .card__arrow { color: var(--accent); flex: none; }
.card__arrow { margin-top: 4px; }
.card__text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__text strong { font-weight: 800; font-size: 19px; }
.card__text span { font-size: 15px; color: var(--muted); }

/* Fakta */
.facts__list { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px 64px; justify-content: center; padding-top: 16px; padding-bottom: 80px; font-weight: 800; font-size: 20px; }
.facts__list li { display: flex; gap: 12px; align-items: center; }
.facts__list svg { color: var(--accent); flex: none; }

/* Sektioner */
.section { padding: 96px 0; }
.section--sand { background: var(--sand); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; }
.split--top { align-items: start; }

.placeholder { background: #EDF1F5; border: 2px dashed #A7B3BF; color: #3E4A56; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-size: 16px; }
.placeholder--square { aspect-ratio: 1 / 1; border-radius: 18px; }
.placeholder--photo { aspect-ratio: 4 / 3; border-radius: var(--radius); font-size: 15px; }

/* Referencer */
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.ref { display: flex; flex-direction: column; gap: 12px; }
.ref h3 { font-weight: 800; font-size: 18px; }
.ref p { color: var(--muted); font-size: 15px; }
.quote { margin: 0; background: var(--sand); border-radius: 18px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.quote__title { font-size: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.quote blockquote { margin: 0; font-size: clamp(19px, 2.2vw, 22px); font-weight: 700; line-height: 1.4; }
.quote figcaption { color: var(--muted); }

/* Karriere */
.career { background: var(--accent); color: #fff; }
.career__inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding-top: 64px; padding-bottom: 64px; }
.career h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.1; }
.career p { font-size: 18px; max-width: 640px; }
.career__link, .career__link:hover { color: #fff; font-weight: 700; overflow-wrap: anywhere; }

/* Kontakt */
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; font-weight: 700; }
.contact-list a { display: flex; gap: 14px; align-items: center; text-decoration: none; overflow-wrap: anywhere; }
.contact-icon { width: 46px; height: 46px; flex: none; border-radius: 10px; background: var(--sand); color: var(--accent); display: flex; align-items: center; justify-content: center; }

.form { background: var(--sand); border-radius: 18px; padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form textarea { font: inherit; font-weight: 400; background: #fff; border: 1px solid var(--input); border-radius: 8px; padding: 0 14px; width: 100%; }
.form input { height: 50px; }
.form textarea { padding: 12px 14px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form [aria-invalid="true"] { border-color: #B3261E; background: #FFF6F5; }
.honeypot { position: absolute; left: -9999px; }
.form__status { font-weight: 600; min-height: 1.5em; }
.form__status.is-ok { color: #1E6B3A; }
.form__status.is-error { color: #B3261E; }

.form__note { font-size: 14px; color: var(--muted); }

/* Privatlivspolitik */
.legal { max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; color: var(--text); }
.legal h1 { color: var(--ink); font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.legal h2 { color: var(--ink); font-size: 22px; margin-top: 16px; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal__updated { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Footer */
.footer { background: var(--ink); color: #D9D4D0; font-size: 15px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; padding-top: 48px; padding-bottom: 48px; }
.footer a { color: #D9D4D0; overflow-wrap: anywhere; }
.footer a:hover { color: #fff; }
.footer__name { font-weight: 900; font-size: 18px; color: #fff; }
.footer .footer__strong { color: #fff; font-weight: 700; }

/* Mobil */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .logo img { height: 48px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(26, 26, 26, .08); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; padding: 15px 22px; }
  .hero__inner { padding-top: 40px; gap: 32px; }
  .section { padding: 64px 0; }
  .facts__list { padding-bottom: 56px; justify-content: flex-start; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
