/* 54 Bravo Auto Repair - Shared Styles */
:root {
  --color-bg: #23241e;
  --color-header: #2d2e28;
  --color-accent: #bfa76a;
  --color-gold: #d4af37;
  --color-army: #4b5320;
  --color-text: #eaeaea;
  --color-muted: #888;
  --color-footer-bg: #23241e;
}

html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Segoe UI', 'Arial', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.header {
  background: var(--color-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.2rem;
  padding: 0.35rem 1.1rem 0.35rem 1.1rem;
  gap: 0.7rem;
  border-bottom: 2px solid var(--color-accent);
  box-sizing: border-box;
}
/* Removed brand-title, site-title, site-tagline for logo-only branding */
nav {
  margin-left: auto;
}
.nav {
  display: flex;
  gap: 1.2rem;
}
.nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav a.active,
.nav a:hover {
  background: var(--color-army);
  color: var(--color-gold);
}
.main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 2rem auto 1rem auto;
  padding: 0 1.5rem;
}
.footer {
  background: var(--color-footer-bg);
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 0.7rem 0;
  letter-spacing: 0.5px;
}
/* Attribution link styling */
.footer-attribution {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.2rem;
  text-align: center;
  opacity: 0.7;
}
.footer-attribution a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.8rem;
  opacity: 0.8;
  pointer-events: auto;
  transition: color 0.2s;
}
.footer-attribution a:hover,
.footer-attribution a:focus {
  color: var(--color-accent);
  text-decoration: underline;
  opacity: 1;
}
/* Splash Opening (index.html only) */
.splash {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 1.2s ease;
  animation: splash-fade 1.2s forwards;
}

.splash[aria-hidden="true"],
.splash[style*="opacity: 0"],
.splash[style*="display: none"] {
  pointer-events: none !important;
}
.splash-logo {
  filter: drop-shadow(0 0 18px var(--color-army));
}
@keyframes splash-fade {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}
.page-content {
  opacity: 0;
  animation: content-fade-in 1.2s forwards;
  animation-delay: 1.1s;
}
@keyframes content-fade-in {
  0% { opacity: 0; }
  80% { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .splash {
    animation: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .page-content {
    animation: none !important;
    opacity: 1 !important;
  }
}
/* Responsive */
/* Logo styles for header */
.logo {
  display: block;
  height: 3rem;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  aspect-ratio: 5/1;
  margin-right: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}

@media (max-width: 700px) {
  .logo {
    height: 1.5rem;
    max-width: 70px;
    margin-right: 0.5rem;
    margin-bottom: 0.15rem;
  }
  .header {
    gap: 0.15rem;
    padding: 0.5rem 0.5rem 0.2rem 0.5rem;
  }
  .nav {
    flex-wrap: wrap;
    width: 100%;
    margin-top: 0.2rem;
  }
  .main {
    margin: 1.2rem auto 0.7rem auto;
    padding: 0 0.7rem;
  }
  .header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: unset;
    padding: 0.25rem 0.5rem 0.18rem 0.5rem;
    gap: 0.4rem;
  }
  .logo {
    align-self: flex-start;
    margin-bottom: 0;
  }
  .site-title {
    font-size: 1.2rem;
  }
  .site-tagline {
    font-size: 0.9rem;
  }
  .nav {
    gap: 0.7rem;
    flex-wrap: wrap;
  }
  .brand-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  .splash-title {
    font-size: 1.5rem;
  }
}
