/* DK Automotive website. Black with the logo red (#E93423), sampled from the logo itself. */
:root {
  --red: #e93423;
  --red-dark: #c4271a;
  --bg: #0a0a0a;
  --bg-2: #141414;
  --bg-3: #1c1c1c;
  --ink: #f4f4f4;
  --muted: #a9a9ad;
  --line: #2a2a2d;
  --radius: 10px;
  --wrap: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 4rem); font-weight: 900; text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.eyebrow { color: var(--red); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; margin-bottom: .6em; }
.red { color: var(--red); }

/* ---- Buttons ------------------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #222; color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn-outline-light:hover { background: #fff; color: #000; }

/* ---- Header -------------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand img { width: 150px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a, .sub-toggle {
  color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; font-size: .98rem;
  padding: 10px 14px; border-radius: 8px; background: none; border: 0; cursor: pointer;
}
.site-nav > a:hover, .sub-toggle:hover { color: var(--red); }
.site-nav [aria-current="page"] { color: var(--red); }
.site-nav .nav-call { margin-left: 8px; color: #fff; background: var(--red); padding: 10px 18px; min-height: 44px; border-radius: 999px; }
.site-nav .nav-call:hover { color: #fff; background: var(--red-dark); }
.has-sub { position: relative; }
.sub-toggle::after { content: ''; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.sub {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--bg-3);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.sub a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.sub a:hover { background: #262629; color: var(--red); }
.has-sub.open .sub { display: block; }
@media (hover: hover) and (min-width: 961px) { .has-sub:hover .sub { display: block; } }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: #fff; position: relative; content: ''; transition: transform .2s; }
  .bars::before { position: absolute; top: -7px; }
  .bars::after { position: absolute; top: 7px; }
  .nav-open .bars { background: transparent; }
  .nav-open .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: #000; border-bottom: 1px solid var(--line); padding: 8px 16px 20px; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav > a, .sub-toggle { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; text-align: left; width: 100%; }
  .sub { position: static; box-shadow: none; border: 0; background: none; padding: 0 0 6px 12px; min-width: 0; }
  .site-nav .nav-call { margin: 16px 0 0; }
}

/* ---- Hero ---------------------------------------------------------------------------------- */
.hero { position: relative; min-height: min(88vh, 760px); display: grid; align-items: end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
/* Dark on the left (behind the text) and at the bottom, so the headline reads over any photo. */
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.1) 75%), linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(10,10,10,.96) 100%); }
.hero h1, .hero .lead { text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.hero-content { position: relative; z-index: 1; padding: 120px 0 64px; max-width: 760px; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #e6e6e6; max-width: 600px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.page-hero { min-height: min(62vh, 560px); }
/* The home photo is 1440px wide: on wider screens show it at its real size on the right (never stretched/blurred),
   fading into black behind the headline on the left. */
.hero-home { object-position: center 72%; }
@media (min-width: 1441px) {
  .hero-home {
    left: auto; right: 0; width: 1440px;
    /* Soft left edge so the photo melts into the black instead of ending in a hard line. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%);
    mask-image: linear-gradient(90deg, transparent 0, #000 30%);
  }
}
.page-hero .hero-content { padding-bottom: 48px; }

/* ---- Sections ------------------------------------------------------------------------------ */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.prose { max-width: 760px; font-size: 1.08rem; }
.prose p { color: #dcdcdc; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split img { aspect-ratio: 4 / 3; } }

/* ---- Cards --------------------------------------------------------------------------------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-3 { grid-template-columns: 1fr; } }
.card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); flex: 1; margin-bottom: 14px; }
.card-link { font-weight: 700; color: var(--red); text-decoration: none; }
.card-link::after { content: ' \2192'; }
a.card { text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-3px); border-color: var(--red); color: inherit; }
.card .tag { width: 44px; height: 4px; background: var(--red); border-radius: 2px; margin-bottom: 14px; }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: #dcdcdc; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }

/* ---- Gallery & lightbox -------------------------------------------------------------------- */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.g-item { display: block; overflow: hidden; border-radius: 8px; background: var(--bg-3); }
.g-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.g-item:hover img { transform: scale(1.04); }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; } }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .94); display: grid; place-items: center; padding: 56px 12px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--red); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---- Bands, contact, footer ---------------------------------------------------------------- */
.band { padding: 44px 0; }
.band-red { background: var(--red); color: #fff; }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { margin-bottom: .2em; }
.band p { margin: 0; opacity: .95; }
.band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.contact-card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card h2 { font-size: 1.15rem; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }
.contact-card { min-width: 0; }
.contact-card .big { font-size: 1.35rem; font-weight: 800; text-decoration: none; }
/* The email address is long: smaller, and allowed to break after the @ if the card is narrow. */
.contact-card .email { font-size: clamp(1rem, 1.35vw, 1.08rem); overflow-wrap: anywhere; }
.follow { margin-top: 24px; color: var(--muted); }
address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }

.site-footer { background: #000; border-top: 3px solid var(--red); padding: 56px 0 24px; font-size: .97rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.footer-h { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 1em; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--red); }
.social { display: flex; gap: 10px; }
.social a { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-3); align-items: center; justify-content: center; }
.social a:hover { background: var(--red); }
.social svg { width: 20px; height: 20px; fill: #fff; }
.copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } body { font-size: 16px; } }

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