/* ═══════════════════════════════════════════
   MICHIGAN AUTO BODY ASSOCIATION (MABA)
   Shared Stylesheet — All Pages
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #0B1D3A;
  --navy-deep: #060F1F;
  --blue-accent: #1B4F8A;
  --gold: #C5972C;
  --gold-bright: #E8B94A;
  --gold-pale: #F5E6C4;
  --white: #FAFAF8;
  --gray-100: #F0EDE8;
  --gray-200: #D8D4CC;
  --gray-600: #6B6560;
  --gray-800: #2E2A26;
  --red-accent: #8B2232;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ═══════════════ NAVIGATION ═══════════════ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 29, 58, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold);
  padding: 0 2rem;
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-deep);
  letter-spacing: 0.5px;
}

.nav-logo-text {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-200);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover { color: var(--gold); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--gold-bright) !important;
  transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* ═══════════════ BUTTONS ═══════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 16px 36px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s;
  border: 2px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 151, 44, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 16px 36px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

/* ═══════════════ SECTION LABELS ═══════════════ */
.section-label {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.2rem;
  height: 2px;
  background: var(--gold);
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: normal;
  color: var(--gold);
}

/* ═══════════════ PAGE HEADER (for inner pages) ═══════════════ */
.page-header {
  background: var(--navy-deep);
  padding: 140px 2rem 60px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(27, 79, 138, 0.2), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(197, 151, 44, 0.08), transparent);
}

.page-header-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.page-header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-header h1 em {
  font-style: normal;
  color: var(--gold);
}

.page-header p {
  font-family: 'Source Serif 4', serif;
  font-size: 1.15rem;
  color: var(--gray-200);
  max-width: 640px;
  line-height: 1.7;
}

/* ═══════════════ FORM STYLES ═══════════════ */
.form-container {
  background: var(--navy);
  border-radius: 12px;
  padding: 2.5rem;
}

.form-container h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.form-container > p {
  color: var(--gray-200);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.maba-form { display: flex; flex-direction: column; gap: 1rem; }

.maba-form input,
.maba-form select,
.maba-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.maba-form input::placeholder,
.maba-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.maba-form input:focus,
.maba-form select:focus,
.maba-form textarea:focus {
  border-color: var(--gold);
}

.maba-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.maba-form select option { background: var(--navy-deep); color: var(--white); }
.maba-form textarea { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit {
  background: var(--gold);
  color: var(--navy-deep);
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 151, 44, 0.3);
}

.form-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 0.75rem;
}

/* ═══════════════ CONTENT SECTIONS ═══════════════ */
.content-section {
  padding: 5rem 2rem;
}

.content-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.content-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.prose {
  font-family: 'Source Serif 4', serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-800);
}

.prose p + p { margin-top: 1.2rem; }

.prose h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

/* ═══════════════ FOOTER ═══════════════ */
footer {
  background: var(--navy-deep);
  padding: 3rem 2rem 2rem;
  border-top: 2px solid var(--gold);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--gray-200);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--gray-600);
}

.footer-bottom a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--gold); }

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 968px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important;
    position: absolute !important;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(6, 15, 31, 0.98);
    flex-direction: column !important;
    padding: 1.5rem 2rem 2rem;
    gap: 0.25rem;
    border-bottom: 2px solid #C5972C;
  }
  .nav-links.show {
    display: flex !important;
  }
  .nav-links li { width: 100%; list-style: none; }
  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-links a::after { display: none !important; }
  .nav-cta {
    margin-top: 0.75rem;
    text-align: center !important;
    display: block !important;
  }
  .mobile-toggle { display: flex !important; }
  .section-title { font-size: 2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 2rem; }
}
