/* AutoCar Dour — mobile-first, no external fonts or icon libraries. */
:root {
  --ink: #0f1a17;
  --ink-2: #16241f;
  --ink-3: #20322c;
  --bone: #f6f3ec;
  --white: #fff;
  --accent: #e0a93b;
  --accent-deep: #8a5d06;
  --text: #1b2421;
  --text-2: #4d5a55;
  --on-dark: #f2f0ea;
  --on-dark-2: rgba(242, 240, 234, .74);
  --line: #e0dcd1;
  --line-dark: rgba(255, 255, 255, .14);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1160px;
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.65; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: .6em; }
h3 { font-size: 1.25rem; margin-bottom: .35em; }
ul, ol { list-style: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.hp { position: absolute; left: -9999px; }

/* ---- Buttons ---- */
.btn { display: inline-block; padding: .65rem 1.15rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; line-height: 1.3; }
.btn-lg { padding: .85rem 1.5rem; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #f0bd55; color: var(--ink); }
.btn-ghost { border-color: var(--line-dark); color: var(--on-dark); overflow-wrap: anywhere; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---- Header ---- */
.hdr { background: var(--ink); color: var(--on-dark); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line-dark); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 68px; gap: .5rem 1rem; }
.brand { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--on-dark); text-decoration: none; letter-spacing: .01em; }
.brand span { color: var(--accent); }
.nav-btn { background: none; border: 1px solid var(--line-dark); color: var(--on-dark); font: inherit; padding: .45rem .9rem; border-radius: 999px; cursor: pointer; }
.nav { display: none; width: 100%; padding-bottom: 1rem; }
.nav.open { display: block; }
.nav ul { display: flex; flex-direction: column; gap: .2rem; }
.nav a:not(.btn) { display: block; padding: .6rem 0; color: var(--on-dark-2); text-decoration: none; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .lang { text-transform: uppercase; font-size: .85rem; letter-spacing: .08em; }
.nav .btn { margin-top: .5rem; }
@media (min-width: 1180px) {
  .nav-btn { display: none; }
  .nav { display: block; width: auto; padding: 0; }
  .nav ul { flex-direction: row; align-items: center; gap: 1.4rem; }
  .nav a:not(.btn) { padding: .3rem 0; font-size: .95rem; }
  .nav .btn { margin: 0; }
}

/* ---- Hero ---- */
.hero { position: relative; background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%); color: var(--on-dark); padding: clamp(3rem, 8vw, 5.5rem) 0; overflow: hidden; }
.hero-home { padding: clamp(4rem, 12vw, 8.5rem) 0; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
/* Dark fade behind the text (left/bottom on mobile), photo left visible on the right. */
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,26,23,.55) 0%, rgba(15,26,23,.88) 100%); }
@media (min-width: 900px) {
  .hero-media::after { background: linear-gradient(90deg, rgba(15,26,23,.94) 0%, rgba(15,26,23,.78) 40%, rgba(15,26,23,.2) 75%, rgba(15,26,23,0) 100%); }
}
.hero-in { position: relative; }
.hero-in > * { max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.hero-lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--on-dark-2); margin-top: 1.2rem; max-width: 62ch; }
.hero-lead a { color: var(--accent); }
.crumbs { font-size: .88rem; color: var(--on-dark-2); margin-bottom: 1.4rem; }
.crumbs a { color: var(--on-dark-2); }

/* ---- Sections ---- */
.sec { padding: clamp(3rem, 7vw, 5rem) 0; }
.sec-alt { background: var(--bone); }
.sec-dark { background: var(--ink); color: var(--on-dark); }
.sec-dark a { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 68ch; margin-bottom: 1.6rem; }
.sec-dark .lead { color: var(--on-dark-2); }
.prose { max-width: 72ch; }
.prose p + p, .prose p + ul, .prose ul + p, .prose h3 { margin-top: 1.1em; }
.prose ul { list-style: disc; padding-left: 1.3rem; }
.prose li + li { margin-top: .4em; }
.prose + .grid, .prose + .steps { margin-top: 2rem; }

.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; border-top: 3px solid var(--accent); }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent-deep); }
.card p { color: var(--text-2); font-size: .98rem; flex: 1; }
.more { font-weight: 600; text-decoration: none; }

.steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ink); color: var(--accent); font-weight: 700; margin-bottom: .9rem; }
.steps p { color: var(--text-2); font-size: .98rem; }

.faq { max-width: 80ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 600; font-size: 1.08rem; }
.faq details p { padding-bottom: 1.2rem; color: var(--text-2); }

.related { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.related a { display: block; height: 100%; padding: 1.2rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); }
.related a:hover { border-color: var(--accent); }
.related strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: .3rem; }
.related span { color: var(--text-2); font-size: .95rem; }

/* ---- Quote form ---- */
.quote { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .quote { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.quote-mail { margin-top: 1.5rem; color: var(--on-dark-2); }
.quote-mail a { font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }
.form { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--r); padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: 1.1rem; }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea { width: 100%; padding: .7rem .85rem; border-radius: 6px; border: 1px solid var(--line-dark); background: var(--ink); color: var(--on-dark); font: inherit; color-scheme: dark; }
.field input::placeholder { color: rgba(242, 240, 234, .45); }
.form .btn { justify-self: start; }
.form-note { font-size: .88rem; color: var(--on-dark-2); }

/* ---- Footer ---- */
.ftr { background: var(--ink-2); color: var(--on-dark-2); padding-top: 3.5rem; font-size: .96rem; }
.ftr a { color: var(--on-dark-2); text-decoration: none; }
.ftr a:hover { color: var(--accent); }
.ftr-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.ftr-grid p + p { margin-top: .8rem; }
.ftr h2 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--on-dark); margin-bottom: 1rem; }
.ftr li + li { margin-top: .5rem; }
.ftr-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin-top: 3rem; padding-block: 1.4rem; border-top: 1px solid var(--line-dark); font-size: .88rem; }

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