/* ============================================================
   GLOBAL STYLES — Jackson Group Isuzu
   ============================================================ */

:root {
  --isuzu-red: #cc0000;
  --black: #111;
  --white: #fff;
  --gray-light: #f5f5f5;
  --gray-dark: #333;
  --font-main: 'Arial', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--black);
  background-color: var(--white);
  line-height: 1.6;
}

/* ============================================================
   HEADER
   ============================================================ */
.main-header {
  background-color: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logos img {
  height: 40px;
  width: auto;
}

.header-phone {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.3s ease;
}

/* Responsive phone behavior */
@media (max-width: 600px) {
  .header-phone {
    font-size: 1.6rem;
    color: var(--white);
    text-indent: -9999px; /* hides the text */
    position: relative;
    width: 1.5em;
    height: 1.5em;
  }

  .header-phone::before {
    content: "📞";
    position: absolute;
    inset: 0;
    text-indent: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  cursor: pointer;
  display: none;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: var(--isuzu-red);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* ============================================================
   FOOTER (2-column grid)
   ============================================================ */
.site-footer {
  background-color: var(--black);
  color: var(--white);
  padding: 1.5rem 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-column h3 {
  color: var(--isuzu-red);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
}

.footer-links,
.footer-column p {
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a,
.footer-link {
  color: var(--isuzu-red);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-links a:hover,
.footer-link:hover {
  color: #a80000;
}

.footer-legal {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1rem;
  color: #ccc;
}

/* ============================================================
   RESPONSIVE NAV (Hamburger Menu)
   ============================================================ */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--black);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem;
    display: none;
  }

  .nav-menu.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

  .nav-menu ul {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .footer-container {
    text-align: center;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
