/* ===================================================
   Gitz Classic Cars – stylesheet
   Farver hentet fra det officielle logo:
   Mørkegrøn #004E32, grå #575656
   Fuld bredde, firkantede rammer, redaktionelt udtryk
   =================================================== */

:root {
  --green: #00311f;
  --green-dark: #001c11;
  --gray: #575656;
  --text: #2a2a28;
  --cream: #f6f1e6;
  --card: #ffffff;
  --accent: #b98a3e;
  --maroon: #7a2e2e;
  --border: #e4dcc9;
  --radius: 0px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

/* overflow-x is contained on <main> (not html/body) so the full-bleed
   sections can't cause a horizontal scrollbar, without breaking the
   sticky header — position:sticky stops working on any element whose
   ancestor (up to and including html/body) has overflow set. */
main { overflow-x: hidden; }

h1, h2, h3, .display {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--green);
  margin: 0 0 0.5em;
  line-height: 1.1;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--green); text-decoration: none; }

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

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Full-bleed: break an element out of .container to the full viewport width */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  max-width: 1320px;
  margin: 0 auto;
}

.nav .logo img { height: 44px; width: auto; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--green);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--green);
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav { padding: 16px 20px; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 20px 24px;
    gap: 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--green);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-outline {
  background: transparent;
  color: var(--green);
}
.btn-outline:hover { background: var(--green); color: #fff; }

/* ---------- Hero banner (full-bleed, image + overlay text) ---------- */

.hero-banner {
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 560px;
  max-height: 900px;
  padding: 0;
  overflow: hidden;
  background: var(--green);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 49, 31, 0.85) 0%, rgba(0, 49, 31, 0.3) 42%, rgba(0, 49, 31, 0) 68%);
  pointer-events: none;
}

.hero-banner-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 40px 64px;
  max-width: 1320px;
  margin: 0 auto;
  color: #fff;
}

.hero-banner-text .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e7cd9b;
  margin-bottom: 18px;
  display: block;
}

.hero-banner-text h1 { color: #fff; max-width: 16ch; }

.hero-banner-text p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 48ch;
  margin-top: 10px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-banner-text .btn-outline { border-color: #fff; color: #fff; }
.hero-banner-text .btn-outline:hover { background: #fff; color: var(--green); }

@media (max-width: 720px) {
  .hero-banner { height: 78vh; min-height: 460px; }
  .hero-banner-text { padding: 0 20px 40px; }
}

/* Simple framed image (used for detail-page photography, no overlay text) */

.hero-image {
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 40%;
}

/* ---------- Sections ---------- */

section { padding: 88px 0; }

.section-title { text-align: center; margin-bottom: 44px; }
.section-title p { color: var(--gray); max-width: 60ch; margin: 10px auto 0; }

.divider {
  width: 44px;
  height: 1px;
  background: var(--accent);
  margin: 16px auto 0;
}
.section-title.left .divider { margin-left: 0; }

/* Teaser links on forside — flat, editorial, no card chrome */

.teasers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.teaser-card {
  padding: 40px 36px 44px;
  border-right: 1px solid var(--border);
}
.teaser-card:last-child { border-right: none; }

.teaser-card .kicker {
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 20px;
}

.teaser-card h3 { margin-bottom: 10px; letter-spacing: 0.01em; }
.teaser-card p { color: var(--gray); margin-bottom: 18px; }
.teaser-card a.more {
  font-weight: 700;
  color: var(--green);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.teaser-card a.more:hover { color: var(--accent); }

@media (max-width: 860px) {
  .teasers { grid-template-columns: 1fr; border-top: none; }
  .teaser-card { border-right: none; border-top: 1px solid var(--border); }
}

/* Visit strip — full-bleed colour band */

.visit-strip {
  background: var(--green);
  color: #fff;
}
.visit-strip-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.visit-strip h3 { color: #fff; margin-bottom: 6px; }
.visit-strip p { color: #d9e8e0; margin: 0; }
.visit-strip .btn-outline { border-color: #fff; color: #fff; }
.visit-strip .btn-outline:hover { background: #fff; color: var(--green); }

@media (max-width: 720px) {
  .visit-strip-inner { padding: 44px 20px; }
}

/* ---------- Om os page ---------- */

.page-hero {
  padding: 64px 0 20px;
  text-align: center;
}
.page-hero p.lead {
  color: var(--gray);
  max-width: 60ch;
  margin: 0 auto;
  font-size: 1.1rem;
}

.story {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}

.story .pull-quote {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: var(--green);
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
}

.story-text p { color: var(--text); font-size: 1.05rem; }

.fact-card {
  border: 1px solid var(--border);
  padding: 32px;
}
.fact-card h3 { letter-spacing: 0.02em; }
.fact-card ul { list-style: none; padding: 0; margin: 0; }
.fact-card li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.fact-card li:last-child { border-bottom: none; }
.fact-card .label { color: var(--gray); font-size: 0.92rem; }
.fact-card .value { font-weight: 700; color: var(--green); text-align: right; }

@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
}

/* ---------- Biler / gallery ---------- */

/* Feature car — full-bleed image with overlay copy, same language as hero-banner */

.feature-car {
  position: relative;
  width: 100%;
  height: 82vh;
  min-height: 520px;
  max-height: 820px;
  overflow: hidden;
  background: var(--green);
  margin-bottom: 4px;
}
.feature-car img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 78%; }
.feature-car > a { display: block; width: 100%; height: 100%; }
.feature-car .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0, 49, 31, 0.85) 0%, rgba(0, 49, 31, 0.27) 45%, rgba(0, 49, 31, 0) 70%);
  pointer-events: none;
}
.feature-car .fc-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 40px 56px;
  max-width: 1320px;
  margin: 0 auto;
  color: #fff;
}
.feature-car .fc-copy h2 { color: #fff; }
.feature-car .fc-copy p { color: rgba(255,255,255,0.88); max-width: 62ch; }
.feature-car .fc-copy .btn-outline { border-color: #fff; color: #fff; }
.feature-car .fc-copy .btn-outline:hover { background: #fff; color: var(--green); }

@media (max-width: 720px) {
  .feature-car { height: 74vh; min-height: 480px; }
  .feature-car .fc-copy { padding: 0 20px 36px; }
}

.badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
  border: 1px solid currentColor;
}
.badge-showcase { color: #e7cd9b; }
.badge-forsale { color: var(--green); }
.badge-notforsale { color: var(--maroon); }

.fc-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 20px 0 8px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
}
.fc-specs span strong { color: #fff; }

.fc-price {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: var(--green);
  margin-top: 10px;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 40px;
}

.car-card { display: flex; flex-direction: column; height: 100%; transition: opacity 0.2s ease; }
.car-card:hover { opacity: 0.92; }

.car-card .cc-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #eef1ea, #e4dcc9);
}
.car-card .cc-image img { width: 100%; height: 100%; object-fit: cover; }
.car-card .cc-image a { display: block; width: 100%; height: 100%; }

.placeholder-photo {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  gap: 10px;
}
.placeholder-photo svg { width: 64px; height: 64px; opacity: 0.55; }
.placeholder-photo span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.8;
}

.cc-body { padding: 22px 0 0; display: flex; flex-direction: column; flex: 1; }
.cc-body h3 { margin-bottom: 4px; }
.cc-year { color: var(--gray); font-size: 0.88rem; margin-bottom: 12px; letter-spacing: 0.01em; }
.cc-body p.desc { color: var(--text); font-size: 0.95rem; margin-bottom: 18px; }

.cc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.cc-price { font-weight: 700; color: var(--green); font-family: "Playfair Display", serif; font-size: 1.15rem; }

@media (max-width: 720px) {
  .car-grid { grid-template-columns: 1fr; gap: 44px; }
}

.gallery-note {
  text-align: center;
  color: var(--gray);
  font-size: 0.92rem;
  margin-top: 40px;
  font-style: italic;
}

/* Detail-page photo gallery (e.g. Renault 4CV) — large, square-cornered */

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.detail-gallery .hero-image { aspect-ratio: 3/4; }

@media (max-width: 720px) {
  .detail-gallery { grid-template-columns: 1fr; }
}

/* ---------- Kontakt ---------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  align-items: stretch;
}

.contact-card {
  border: 1px solid var(--border);
  padding: 40px;
}

.contact-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .icon {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: var(--accent);
}
.contact-row .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray); margin-bottom: 2px; }
.contact-row .value { font-weight: 600; color: var(--text); }
.contact-row a.value { color: var(--green); }

.map-frame {
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 21/9;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .map-frame { aspect-ratio: 4/3; }
}

/* Contact form */

.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.96rem;
  border-radius: 0;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green);
}
.form-row textarea { resize: vertical; }

#form-status {
  margin: 14px 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
#form-status.success { color: var(--green); }
#form-status.error { color: var(--maroon); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green);
  color: #cfe0d7;
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.footer-inner img { height: 38px; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-col h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col p, .footer-col a { color: #cfe0d7; font-size: 0.92rem; }
.footer-col a { display: block; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.8rem;
  color: #9db8ab;
  text-align: center;
}
