/* AutoGroup Farum – fælles styling for alle sider */
:root {
  --steel: #dfe3e8;
  --paper: #f4f6f8;
  --graphite: #16191e;
  --graphite-2: #1f242b;
  --gunmetal: #5b6370;
  --line-light: #c6ccd4;
  --line-dark: #323942;
  --blue: #2563eb;
  --blue-hover: #1d4fd0;
  --blue-soft: #8fb2ff;
  --red: #d7262e;
  --wide: 125%;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: var(--steel); color: var(--graphite); font: 400 17px/1.6 "Archivo", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.display { font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.02em; line-height: .98; }
h2.display { font-size: clamp(36px, 5.4vw, 72px); }
.lede { font-size: 19px; color: var(--gunmetal); max-width: 52ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px "Archivo", sans-serif; text-decoration: none; cursor: pointer; border: 0; transition: background-color .2s, color .2s, border-color .2s; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); }
.btn-line { border: 1.5px solid currentColor; background: transparent; }
.btn-line:hover { background: #fff; color: var(--graphite); border-color: #fff; }

/* Nav */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 10px 0 22px; border-radius: 999px; background: rgba(22,25,30,.55); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border: 1px solid rgba(255,255,255,.1); color: #fff; transition: background-color .3s; }
.nav.solid .nav-bar { background: rgba(22,25,30,.92); }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo svg { width: 78px; height: 14px; margin-bottom: 2px; }
.logo span { font: italic 700 19px Georgia, "Times New Roman", serif; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 14px; border-radius: 999px; color: rgba(255,255,255,.78); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links .btn { color: #fff; min-height: 44px; padding: 0 20px; margin-left: 6px; }
.nav-links .btn:hover { background: var(--blue-hover); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; place-items: center; }

/* Hero */
.hero { position: relative; min-height: 100svh; background: var(--graphite); color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,25,30,.5) 0%, rgba(22,25,30,.05) 28%, rgba(22,25,30,.55) 58%, rgba(22,25,30,.95) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 140px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(38px, 6vw, 92px); max-width: 15ch; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-foot { margin-top: 36px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.hero-foot p { font-size: 19px; color: rgba(255,255,255,.82); max-width: 48ch; margin-bottom: 26px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.status { min-width: 280px; padding: 20px 22px; border-radius: 20px; background: rgba(22,25,30,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.12); }
.status-now { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa3ae; flex: none; }
.dot.open { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.18); }
.status-sub { color: rgba(255,255,255,.66); font-size: 15px; margin: 2px 0 14px 20px; }
.status a { display: block; text-decoration: none; font-stretch: var(--wide); font-weight: 700; font-size: 24px; letter-spacing: -.01em; }
.status small { display: block; color: rgba(255,255,255,.66); font-size: 14px; margin-top: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-foot { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
  .hero-foot { animation-delay: .25s; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } }
}

/* LED strip divider – the showroom ceiling lights from the video */
.strip { height: 3px; background: linear-gradient(90deg, transparent, #fff 15%, #fff 85%, transparent); opacity: .9; }

/* Services list */
.services { padding-block: clamp(80px, 10vw, 140px); }
.services-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.services-intro { position: sticky; top: 120px; align-self: start; }
.services-intro h2 { margin-bottom: 22px; }
.services-intro .btn { margin-top: 30px; }
.svc-list { list-style: none; border-top: 1px solid var(--line-light); }
.svc { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line-light); }
.svc img { width: 200px; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; }
.svc h3 { font-stretch: var(--wide); font-weight: 750; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.01em; line-height: 1.1; margin-bottom: 8px; }
.svc p { color: var(--gunmetal); max-width: 46ch; }

/* Trade section */
.trade { background: var(--graphite); color: #fff; }
.trade-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; }
.trade-img { position: relative; }
.trade-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trade-text { padding: clamp(64px, 8vw, 120px) var(--gutter); display: flex; flex-direction: column; justify-content: center; max-width: 640px; }
.trade-text h2 { margin-bottom: 24px; }
.trade-text .lede { color: rgba(255,255,255,.72); margin-bottom: 36px; }
.trade-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 16px; overflow: hidden; margin-bottom: 36px; }
.trade-opts div { background: var(--graphite-2); padding: 20px 18px; }
.trade-opts b { display: block; font-stretch: var(--wide); font-weight: 750; font-size: 20px; margin-bottom: 4px; }
.trade-opts span { color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.45; }
.trade-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* About */
.about { padding-block: clamp(80px, 10vw, 140px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-img { border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { margin-bottom: 22px; }
.checks { list-style: none; margin-top: 32px; border-top: 1px solid var(--line-light); }
.checks li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-light); font-weight: 500; }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; stroke: var(--blue); fill: none; stroke-width: 2.4; }

/* Steps – a real sequence, so numbered */
.steps-sec { padding-bottom: clamp(80px, 10vw, 140px); }
.steps-sec h2 { margin-bottom: 48px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { background: var(--paper); border-radius: 20px; padding: 30px 28px 34px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--graphite); color: #fff; font-weight: 700; margin-bottom: 26px; }
.steps h3 { font-stretch: var(--wide); font-weight: 750; font-size: 24px; margin-bottom: 8px; }
.steps p { color: var(--gunmetal); }

/* Contact */
.contact { background: var(--graphite); color: #fff; padding-block: clamp(80px, 10vw, 140px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); }
.contact h2 { margin-bottom: 36px; }
.big-phone { display: inline-block; text-decoration: none; font-stretch: var(--wide); font-weight: 800; font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.02em; line-height: 1; margin-bottom: 8px; }
.big-phone:hover { color: var(--blue-soft); }
.contact-meta { color: rgba(255,255,255,.7); margin-bottom: 36px; }
.contact-meta a { color: #fff; }
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours caption { text-align: left; font-weight: 600; margin-bottom: 10px; }
.hours td { padding: 11px 0; border-bottom: 1px solid var(--line-dark); }
.hours td:last-child { text-align: right; color: rgba(255,255,255,.7); }
.hours tr.today td { color: #fff; font-weight: 600; }
.hours tr.today td:first-child::after { content: " (i dag)"; font-weight: 400; color: var(--blue-soft); }

form.book { background: var(--paper); color: var(--graphite); border-radius: 24px; padding: clamp(24px, 4vw, 44px); }
form.book h3 { font-stretch: var(--wide); font-weight: 800; font-size: 30px; letter-spacing: -.01em; margin-bottom: 6px; }
form.book > p { color: var(--gunmetal); margin-bottom: 26px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
input, select, textarea { width: 100%; margin-top: 6px; padding: 14px 16px; background: #fff; border: 1.5px solid var(--line-light); border-radius: 12px; color: var(--graphite); font: 400 16px "Archivo", sans-serif; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
textarea { min-height: 110px; resize: vertical; }
form.book .btn { width: 100%; margin-top: 4px; }
.form-ok { display: none; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: #e3ebff; color: #1a3a8a; font-weight: 500; }

.map { margin-top: clamp(48px, 6vw, 80px); border-radius: 24px; overflow: hidden; height: 380px; border: 1px solid var(--line-dark); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

footer { background: var(--graphite); color: rgba(255,255,255,.6); font-size: 15px; padding-block: 0 40px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.foot a { text-decoration: none; }

.callbar { display: none; }

@media (max-width: 1000px) {
  .services-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-intro { position: static; }
  .trade-grid { grid-template-columns: 1fr; }
  .trade-img { min-height: 340px; }
  .about-img { aspect-ratio: 16/10; }
  .hero-foot { grid-template-columns: 1fr; }
  .status { max-width: 360px; }
}
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .nav { top: 10px; }
  .nav-bar { padding-left: 18px; }
  .burger { display: grid; }
  .nav-links { display: none; position: absolute; top: 72px; left: var(--gutter); right: var(--gutter); flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: 22px; background: rgba(22,25,30,.97); border: 1px solid rgba(255,255,255,.1); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 17px; }
  .nav-links .btn { margin: 6px 0 0; }
  .hero-inner { padding-top: 120px; padding-bottom: 32px; }
  .hero-foot p { font-size: 17px; }
  .status { min-width: 0; }
  .svc { grid-template-columns: 112px 1fr; gap: 18px; padding: 20px 0; }
  .svc img { width: 112px; border-radius: 10px; }
  .svc h3 { font-size: 19px; }
  .svc p { font-size: 15px; }
  .trade-opts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .map { height: 280px; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(22,25,30,.96); border-top: 1px solid var(--line-dark); }
  .callbar .btn { min-height: 50px; }
  .callbar .btn-line { color: #fff; }
}

/* ---------- Undersider (brugte biler) ---------- */
.page { background: var(--steel); }
.page .nav-bar { background: rgba(22,25,30,.94); }
.page-head { padding-top: 150px; padding-bottom: 40px; }
.page-head h1 { font-size: clamp(40px, 6vw, 84px); margin-bottom: 16px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; font-weight: 600; text-decoration: none; color: var(--gunmetal); }
.back:hover { color: var(--graphite); }

/* Filtre */
.filters { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 10px; padding: 12px; background: var(--paper); border-radius: 20px; margin-bottom: 18px; }
.filters label { margin: 0; font-size: 13px; color: var(--gunmetal); }
.filters input, .filters select { margin-top: 4px; padding: 11px 12px; border-radius: 10px; font-size: 15px; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--gunmetal); font-weight: 500; }
.linkbtn { background: none; border: 0; font: 600 15px "Archivo", sans-serif; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Bilkort */
.cars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; }
.car { background: var(--paper); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.car:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(22,25,30,.45); }
.car-img { position: relative; aspect-ratio: 16/10; background: var(--graphite-2); }
.car-img img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(22,25,30,.82); color: #fff; font-size: 13px; font-weight: 600; }
.tag.sold { background: var(--red); }
.car-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.car-body h3 { font-stretch: var(--wide); font-weight: 750; font-size: 21px; letter-spacing: -.01em; line-height: 1.15; }
.car-variant { color: var(--gunmetal); font-size: 15px; margin: 2px 0 14px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-bottom: 18px; }
.specs li { padding: 4px 10px; border-radius: 999px; background: var(--steel); font-size: 13px; font-weight: 500; }
.car-price { margin-top: auto; font-stretch: var(--wide); font-weight: 800; font-size: 24px; letter-spacing: -.01em; }
.empty { padding: 60px 24px; text-align: center; background: var(--paper); border-radius: 20px; }
.empty h2 { font-stretch: var(--wide); font-weight: 750; font-size: 24px; margin-bottom: 8px; }
.empty p { color: var(--gunmetal); margin-bottom: 18px; }
.find-for-you { margin-block: 56px clamp(80px, 10vw, 120px); padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: var(--graphite); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.find-for-you h2 { font-stretch: var(--wide); font-weight: 800; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.01em; margin-bottom: 6px; }
.find-for-you p { color: rgba(255,255,255,.7); }

/* Bilside */
.car-detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 64px; }
.gallery-main { border-radius: 24px; overflow: hidden; aspect-ratio: 16/10; background: var(--graphite-2); position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.thumbs button { border: 2px solid transparent; border-radius: 12px; overflow: hidden; padding: 0; cursor: pointer; aspect-ratio: 4/3; background: var(--graphite-2); }
.thumbs button[aria-current="true"] { border-color: var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { position: sticky; top: 110px; background: var(--paper); border-radius: 24px; padding: clamp(22px, 3vw, 34px); }
.buy-box h1 { font-stretch: var(--wide); font-weight: 800; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; line-height: 1.02; }
.buy-box .car-variant { font-size: 17px; margin-bottom: 20px; }
.big-price { font-stretch: var(--wide); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.02em; line-height: 1; }
.price-note { color: var(--gunmetal); font-size: 14px; margin: 6px 0 22px; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: 14px; overflow: hidden; margin-bottom: 22px; }
.spec-table div { background: #fff; padding: 12px 14px; }
.spec-table dt { font-size: 13px; color: var(--gunmetal); }
.spec-table dd { font-weight: 600; }
.buy-ctas { display: grid; gap: 10px; }
.buy-ctas .btn-line { color: var(--graphite); }
.buy-ctas .btn-line:hover { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.car-more { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); padding-bottom: clamp(80px, 10vw, 120px); }
.car-more h2 { font-stretch: var(--wide); font-weight: 800; font-size: 28px; letter-spacing: -.01em; margin-bottom: 14px; }
.car-more .desc { color: #2c323a; max-width: 62ch; margin-bottom: 36px; white-space: pre-line; }
.equip { list-style: none; columns: 2; column-gap: 28px; }
.equip li { padding: 9px 0; border-bottom: 1px solid var(--line-light); break-inside: avoid; }

/* Forside: biler på lager */
.stock { padding-block: clamp(80px, 10vw, 140px) 0; }
.stock-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }

@media (max-width: 1000px) {
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .filters .f-search { grid-column: 1 / -1; }
  .cars { grid-template-columns: 1fr 1fr; }
  .car-detail, .car-more { grid-template-columns: 1fr; }
  .buy-box { position: static; }
}
@media (max-width: 760px) {
  .page-head { padding-top: 120px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .cars { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .equip { columns: 1; }
}
