/* Dimension Services — automotive event organizing
   Design language inspired by jeepjamboreeusa.com: bold full-bleed hero,
   rugged dark palette, card-based sections, strong CTA buttons. */

:root {
  --bg: #12130f;
  --bg-alt: #191b15;
  --panel: #1f2219;
  --border: #2c2f24;
  --text: #f2f1ea;
  --text-muted: #b7b7ac;
  --accent: #ff5a1f;
  --accent-dark: #d9470f;
  --accent-2: #8fae3c;
  --radius: 6px;
  --max-width: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', "Arial Narrow", "Segoe UI", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { color: var(--text-muted); margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #12130f;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 19, 15, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}
.logo span { color: var(--accent); }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }

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

.nav-links a {
  position: relative;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

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

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links a { display: block; padding: 16px 24px; }
  .nav-cta .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: repeating-linear-gradient(115deg, #23261c 0 40px, #1c1e16 40px 80px);
  border-bottom: 4px solid var(--accent);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(18,19,15,0.35) 0%, rgba(18,19,15,0.92) 88%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 60px 24px 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: block;
}

.hero p.lead {
  max-width: 560px;
  font-size: 1.1rem;
  color: var(--text);
}

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

.page-hero {
  min-height: 38vh;
  display: flex;
  align-items: flex-end;
}
.page-hero .hero-inner { padding: 48px 24px 40px; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .hero-eyebrow { display: block; text-align: center; }

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -18px rgba(0,0,0,0.6);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #12130f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 18px;
  font-size: 1.1rem;
}
.card .icon svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: 10px; }

/* number stat blocks */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat .num {
  font-family: "Arial Black", sans-serif;
  font-size: 2.6rem;
  color: var(--accent);
  display: block;
}
.stat .label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #12130f;
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
}
.cta-banner h2 { color: #12130f; }
.cta-banner p { color: rgba(18,19,15,0.8); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-outline { border-color: #12130f; color: #12130f; }
.cta-banner .btn-outline:hover { background: #12130f; color: var(--accent); }

/* Video embed */
.video-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.video-frame-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.video-frame-link:hover img { transform: scale(1.03); }
.play-badge-lg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  font-size: 1.6rem;
}

/* Video grid */
.video-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.video-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.video-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.video-card .play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 14px));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #12130f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0.92;
}
.video-card-title {
  display: block;
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Mosaic grid (home) */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  gap: 10px;
}
.mosaic-grid .gallery-item { aspect-ratio: auto; height: 100%; padding: 14px; }
.mosaic-grid .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic-grid .gallery-item:nth-child(6) { grid-column: span 2; }
@media (max-width: 700px) {
  .mosaic-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .mosaic-grid .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .mosaic-grid .gallery-item:nth-child(6) { grid-column: span 1; }
}

/* Gallery */
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #23261c 0 24px, #1c1e16 24px 48px);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.gallery-item .tag {
  position: relative;
  z-index: 1;
  background: var(--accent);
  color: #12130f;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 18px;
  max-width: 640px;
}
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note { font-size: 0.85rem; }
.form-success {
  display: none;
  background: var(--panel);
  border: 1px solid var(--accent-2);
  color: var(--accent-2);
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-top: 16px;
}
.form-error {
  border-color: var(--accent);
  color: var(--accent);
}
.form-success.show { display: block; }

/* Contact info list */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.info-list li strong { color: var(--text); display: block; margin-bottom: 2px; }

/* Two column layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.split .media-block {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: repeating-linear-gradient(115deg, #23261c 0 40px, #1c1e16 40px 80px);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.media-block img,
.gallery-item img,
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Team */
.team-member { text-align: center; }
.team-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: repeating-linear-gradient(115deg, #2c2f24 0 12px, #23261c 12px 24px);
  border: 2px solid var(--accent);
  position: relative;
  overflow: hidden;
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-grid h4 {
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-muted); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.social-icons { display: flex; gap: 14px; }
.social-icons a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}
.social-icons a:hover { border-color: var(--accent); color: var(--accent); }

.badge {
  display: inline-block;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 20px;
  margin: 4px 6px 4px 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.grid .reveal:nth-child(1) { transition-delay: 0s; }
.grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid .reveal:nth-child(6) { transition-delay: 0.4s; }
.grid .reveal:nth-child(7) { transition-delay: 0.48s; }
.grid .reveal:nth-child(8) { transition-delay: 0.56s; }
.grid .reveal:nth-child(9) { transition-delay: 0.64s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 8, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 90vw);
  max-height: 82vh;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: contain;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { border-color: var(--accent); color: var(--accent); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.gallery-item { cursor: pointer; }
.gallery-item img { transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #12130f;
  border: none;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.6);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); color: #fff; }

/* Tilt cards */
.card, .video-card { transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }

/* Sticky sub-nav (scroll-spy) */
.subnav {
  position: sticky;
  top: 71px;
  z-index: 50;
  background: rgba(18, 19, 15, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.subnav-inner {
  display: flex;
  gap: 8px;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.subnav a {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.subnav a:hover { color: var(--text); border-color: var(--accent); }
.subnav a.active { background: var(--accent); border-color: var(--accent); color: #12130f; }

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 22px 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.faq-question .plus {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-question .plus { transform: rotate(45deg); border-color: var(--accent); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 4px 22px; margin: 0; }
