/* ============================================
   Trans Tech Auto & Truck — Shared Styles
   ============================================ */

:root {
  --black: #0e0e10;
  --charcoal: #1a1a1f;
  --steel: #2a2a32;
  --gunmetal: #3a3a44;
  --silver: #c8ccd2;
  --offwhite: #f5f5f3;
  --white: #ffffff;
  --yellow: #ffc20e;
  --yellow-dark: #e0a800;
  --red: #d62828;
  --red-dark: #a51d1d;
  --green: #2d8a3f;
  --text: #1a1a1f;
  --text-body: #4a4a52;
  --text-dim: #7a7a82;
  --border: #e2e2de;
  --border-dark: #2a2a32;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--offwhite);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-sm {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   TOP BAR (above nav)
   ============================================ */
.topbar {
  background: var(--black);
  color: var(--silver);
  padding: 10px 0;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--yellow);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-left {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-item svg {
  color: var(--yellow);
}

.topbar-right {
  display: flex;
  gap: 18px;
  align-items: center;
}

.topbar-right a {
  text-decoration: none;
  color: var(--silver);
  font-weight: 500;
  transition: color 0.2s;
}

.topbar-right a:hover { color: var(--yellow); }

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 56px;
  height: 56px;
  background: var(--black);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mark::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 2px solid var(--yellow);
  border-radius: 5px;
}

.logo-mark span {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--yellow);
  letter-spacing: -0.02em;
  z-index: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
}

.logo-tag {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links > li {
  list-style: none;
  position: relative;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  display: block;
  transition: color 0.2s;
  border-radius: 4px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--red);
}

.nav-links a.active {
  border-bottom: 3px solid var(--yellow);
}

/* Dropdown */
.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7em;
  color: var(--text-dim);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: 6px;
  border-top: 3px solid var(--yellow);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 110;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  list-style: none;
}

.dropdown a {
  padding: 10px 18px;
  font-size: 0.85rem;
  border-radius: 0;
  border-bottom: none;
}

.dropdown a:hover {
  background: var(--offwhite);
  color: var(--red);
  border-bottom: none;
}

.nav-cta {
  margin-left: 12px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(214, 40, 40, 0.3);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(214, 40, 40, 0.4);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 4px 14px rgba(255, 194, 14, 0.35);
}

.btn-yellow:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 194, 14, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--black);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--charcoal);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.2rem; }

.eyebrow {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  position: relative;
  padding-left: 50px;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 36px;
  height: 3px;
  background: var(--yellow);
  transform: translateY(-50%);
}

.eyebrow-center {
  padding-left: 0;
}

.eyebrow-center::before {
  display: none;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-divider {
  width: 80px;
  height: 4px;
  background: var(--yellow);
  margin: 0 auto 24px;
  border-radius: 2px;
  position: relative;
}

.section-header .section-divider::before,
.section-header .section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--border);
  transform: translateY(-50%);
}

.section-header .section-divider::before { right: 100%; margin-right: 12px; }
.section-header .section-divider::after { left: 100%; margin-left: 12px; }

.section-sub {
  color: var(--text-body);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 16px auto 0;
}

/* ============================================
   SECTIONS
   ============================================ */
section { padding: 100px 0; position: relative; }

.bg-dark {
  background: var(--black);
  color: var(--white);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }

.bg-charcoal {
  background: var(--charcoal);
  color: var(--white);
}

.bg-charcoal h1, .bg-charcoal h2, .bg-charcoal h3, .bg-charcoal h4 { color: var(--white); }

.bg-light { background: var(--white); }

.bg-warm { background: var(--offwhite); }

/* ============================================
   PAGE HEADER (interior pages)
   ============================================ */
.page-header {
  background:
    linear-gradient(135deg, rgba(14, 14, 16, 0.92), rgba(14, 14, 16, 0.85)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23ffc20e' fill-opacity='0.05'%3E%3Cpath d='M30 0L0 30l30 30 30-30z'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  border-bottom: 4px solid var(--yellow);
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--silver);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.page-header .breadcrumb a {
  color: var(--yellow);
  text-decoration: none;
}

.page-header .breadcrumb a:hover { text-decoration: underline; }

.page-header .breadcrumb span { color: var(--text-dim); }

.page-header p {
  font-size: 1.15rem;
  color: var(--silver);
  max-width: 720px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--black);
  color: var(--silver);
  padding: 70px 0 30px;
  border-top: 4px solid var(--yellow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-tag { color: var(--silver); }

.footer-brand p {
  margin-top: 18px;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col a, .footer-col p {
  display: block;
  color: var(--silver);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 5px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--yellow); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.footer-contact-item svg {
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item div {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--steel);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 14px;
}

.footer-badges {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}

.footer-badge {
  background: var(--steel);
  border: 1px solid var(--gunmetal);
  border-radius: 6px;
  padding: 8px 14px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yellow);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.8s ease forwards;
}

.reveal-1 { animation-delay: 0.1s; }
.reveal-2 { animation-delay: 0.25s; }
.reveal-3 { animation-delay: 0.4s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow);
    align-items: stretch;
    gap: 0;
  }
  .nav-links.open > li { width: 100%; }
  .nav-links.open a { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open .dropdown {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--offwhite);
    border-top: none;
    padding: 0;
  }
  .nav-cta { margin-left: 0; margin-top: 12px; }
}

@media (max-width: 768px) {
  .container, .container-sm { padding: 0 20px; }
  section { padding: 70px 0; }
  .topbar { font-size: 0.78rem; }
  .topbar-left { gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .page-header { padding: 70px 0 60px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
