/* ==========================================================================
   Anlægsgartner Kem Kristensen – stylesheet
   Farver og skrift samlet i :root, så de er nemme at rette.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-normal.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-900: #13291b;   /* mørk skovgrøn – tekst og mørke flader */
  --green-800: #1c3a27;
  --green-700: #2c5236;
  --green-500: #557f47;
  --sage-200: #d8e2cc;
  --sage-100: #e9efe1;
  --cream: #f7f3ea;
  --sand: #ece3cf;
  --sun: #f2b640;         /* CTA-farve */
  --sun-dark: #e0a21f;
  --clay: #b8562a;
  --ink: #1b2620;
  --muted: #4d5a51;
  --line: #d9d2bf;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(19, 41, 27, .06), 0 8px 24px rgba(19, 41, 27, .08);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--green-900);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); letter-spacing: -0.005em; }

p { margin: 0 0 1em; }
a { color: var(--green-700); text-underline-offset: .18em; }
a:hover { color: var(--green-900); }

:focus-visible {
  outline: 3px solid var(--sun-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green-900); color: var(--white);
  padding: 12px 18px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-700); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 38em; }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .8em 1.4em;
  font: 700 1rem/1.2 var(--font-body);
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--sun); color: var(--green-900); }
.btn-primary:hover { background: var(--sun-dark); color: var(--green-900); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green-900); border-color: var(--green-900); }
.btn-ghost:hover { background: var(--green-900); color: var(--white); }
.btn-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-light:hover { background: var(--white); color: var(--green-900); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.trust {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  list-style: none; padding: 0; margin: 1.4rem 0 0;
  font-size: .95rem; color: var(--muted);
}
.trust li { display: inline-flex; align-items: center; gap: .45em; }
.trust svg { width: 18px; height: 18px; color: var(--green-500); flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 234, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-900); margin-right: auto; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; }
.brand-sub { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: transparent; border: 1px solid var(--line); color: var(--green-900); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(19,41,27,.08);
}
.site-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 20px; }
.site-nav a {
  display: block; padding: 14px 4px; text-decoration: none; font-weight: 700;
  color: var(--green-900); border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--green-500); }

.header-phone { display: none; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; gap: 4px; padding: 0; }
  .site-nav a { border: 0; padding: 10px 14px; border-radius: 999px; font-size: .98rem; }
  .site-nav a:hover { background: var(--sage-100); }
  .site-nav a[aria-current="page"] { background: var(--sage-100); color: var(--green-900); }
  .header-phone { display: inline-flex; min-height: 46px; padding: .6em 1.1em; }
}

/* ---------- Sektioner ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-alt { background: var(--white); }
.section-sage { background: var(--sage-100); }
.section-dark { background: var(--green-900); color: #e8eee3; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .lead, .section-dark p { color: #cfdac8; }
.section-dark .eyebrow { color: var(--sun); }
.section-dark a:not(.btn) { color: var(--sun); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { max-width: 13em; }
.hero h1 em { font-style: normal; color: var(--green-500); }
.hero .lead { margin-bottom: 1.8rem; }
.hero-art { position: relative; max-width: 560px; margin: 0 auto; width: 100%; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(19,41,27,.18)); }
.hero-badge {
  position: absolute; left: -6px; bottom: 22px;
  background: var(--white); border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
  max-width: 250px; font-size: .92rem; line-height: 1.35;
}
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--green-900); }
.hero-badge .dot { width: 42px; height: 42px; border-radius: 50%; background: var(--sage-100); display: grid; place-items: center; flex: none; }
.hero-badge .dot svg { width: 22px; height: 22px; color: var(--green-700); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; }
}

/* ---------- Ydelser ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } .cards.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px 26px; text-decoration: none; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.section-alt .card { background: var(--cream); }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sage-200); color: var(--ink); }
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--muted); margin: 0 0 16px; }
.card .more { margin-top: auto; font-weight: 700; color: var(--green-700); display: inline-flex; align-items: center; gap: .4em; }
.card .more svg { width: 18px; height: 18px; transition: transform .2s ease; }
a.card:hover .more svg { transform: translateX(3px); }

.icon-tile {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--sage-100); color: var(--green-700);
}
.icon-tile svg { width: 30px; height: 30px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.chips li { font-size: .88rem; background: var(--sage-100); color: var(--green-800); padding: 4px 12px; border-radius: 999px; }

/* ---------- Hvorfor os ---------- */
.why-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .why-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; } }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .why-list { grid-template-columns: 1fr 1fr; } }
.why-list li {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 22px;
}
.why-list h3 { font-size: 1.15rem; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.why-list h3 svg { width: 22px; height: 22px; color: var(--sun); flex: none; }
.why-list p { margin: 0; font-size: .98rem; }

/* ---------- Trin ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding: 26px 22px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 16px;
  font: 600 1.2rem var(--font-display); background: var(--green-900); color: var(--sun);
}
.steps h3 { font-size: 1.15rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Pladsholdere (mangler fra kunden) ---------- */
.mangler {
  display: inline; background: #fff4d6; color: #6b4a00;
  border: 1px dashed #d9a520; border-radius: 6px; padding: 0 .35em;
  font-size: .92em; font-weight: 700;
}
.placeholder-box {
  border: 2px dashed var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px); background: rgba(255,255,255,.55); text-align: center; color: var(--muted);
}
.placeholder-box strong { color: var(--green-900); }

/* ---------- Galleri ---------- */
.gallery { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } .gallery figure:first-child { grid-column: span 2; grid-row: span 2; } }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sage-200); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery figure:first-child img { aspect-ratio: auto; }
.gallery figcaption {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  background: rgba(19,41,27,.82); color: var(--white); font-size: .85rem;
  padding: 6px 10px; border-radius: 8px; line-height: 1.35;
}

/* ---------- Område ---------- */
.area { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .area { grid-template-columns: 1fr 1fr; gap: 64px; } }
.area-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--line); }
.area-card .btn { margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-weight: 700; font-size: 1.05rem; color: var(--green-900); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px;
  border-right: 2.5px solid var(--green-700); border-bottom: 2.5px solid var(--green-700);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA-bånd ---------- */
.cta-band { background: var(--green-800); color: var(--white); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); display: grid; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,182,64,.28), transparent 70%);
}
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { color: #cfdac8; margin: 0; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr auto; } }

/* ---------- Undersider ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); }
.page-hero .lead { margin-bottom: 1.6rem; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--muted); }

.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }

.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.4fr .9fr; gap: 56px; align-items: start; } }

.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: 96px; }
.aside-card h3 { margin-bottom: 10px; }
.aside-card p { color: var(--muted); }
.aside-card .btn { width: 100%; margin-top: 10px; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5236' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; } }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--green-900); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; color: var(--ink); background: var(--cream);
  border: 1.5px solid #b9b19c; border-radius: 10px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--green-700); background: var(--white); }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
.form .btn { width: 100%; }
@media (min-width: 640px) { .form .btn { width: auto; } }
.alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; background: #fde8e1; color: #7a2510; border: 1px solid #f0b8a5; }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.info-list .icon-tile { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.info-list .icon-tile svg { width: 22px; height: 22px; }
.info-list strong { display: block; color: var(--green-900); }
.info-list a { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #cfdac8; padding: 64px 0 120px; font-size: .97rem; }
@media (min-width: 960px) { .site-footer { padding-bottom: 40px; } }
.site-footer a { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 1.15rem; margin-bottom: 12px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand .brand { color: var(--white); margin-bottom: 14px; }
.footer-brand .brand-sub { color: #a9b8a2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem; color: #a9b8a2; }
.footer-bottom a { color: #cfdac8; }

/* ---------- Sticky ring-knap på mobil ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(19,41,27,.96); box-shadow: 0 -6px 20px rgba(0,0,0,.15);
}
.mobile-cta .btn { min-height: 50px; padding: .6em .8em; font-size: .98rem; }
@media (min-width: 960px) { .mobile-cta { display: none; } }

/* ---------- Diverse ---------- */
.center { text-align: center; }
.mt-lg { margin-top: clamp(32px, 4vw, 48px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
