/**
 * Global Styles for Dealer Sites
 *
 * Base styles, layout containers, site header/footer.
 * Matches dealer-template.css aesthetic.
 */

/* ==================== BASE STYLES ==================== */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family:
    'Open Sans',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  line-height: 1.6;
  color: #000000;
  background-color: #ffffff;
}

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

a {
  color: inherit;
}

/* ==================== LAYOUT ==================== */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==================== SITE HEADER ==================== */
.site-header {
  background-color: #093b66;
  color: #ffffff;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-brand a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

/* ==================== NAVIGATION ==================== */
.site-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.site-nav a:hover {
  opacity: 0.8;
}

.site-nav .has-dropdown {
  position: relative;
}

.site-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  padding: 0.5rem 0;
  flex-direction: column;
  gap: 0;
}

.site-nav .has-dropdown:hover .dropdown {
  display: flex;
}

.site-nav .dropdown li {
  padding: 0;
}

.site-nav .dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: #000000;
}

.site-nav .dropdown a:hover {
  background-color: #f0f0f0;
  opacity: 1;
}

/* ==================== MAIN CONTENT ==================== */
.site-main {
  min-height: 60vh;
  padding: 2rem 0;
}

/* .page-content {
  max-width: 900px;
} */

/* ==================== SITE FOOTER ==================== */
.site-footer {
  background-color: #000000;
  color: #ffffff;
  padding: 2rem 0;
  margin-top: 3rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact p {
  margin-bottom: 0.25rem;
}

.footer-contact a {
  color: #f8981d;
}

.footer-copyright {
  color: #757575;
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .site-header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}
