/* ── Custom Properties ──────────────────────────── */
:root {
  --ad-primary: #1a2a4a;
  --ad-primary-light: #243560;
  --ad-accent: #e8640c;
  --ad-accent-hover: #d45a0a;
  --ad-text-light: #ffffff;
  --ad-bg-light: #f8f9fa;
  --ad-bg-dark: #1a2a4a;
}

/* ── Global ─────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ── Navbar ─────────────────────────────────────── */
.navbar {
  background-color: var(--ad-primary) !important;
}

.navbar__logo {
  height: 2.5rem;
  width: auto;
}

@media (max-width: 767.98px) {
  .navbar__logo {
    height: 1.75rem;
  }

  .navbar {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--ad-accent) !important;
}

/* ── Hero ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ad-text-light);
  background: url('../images/hof.jpg') center / cover no-repeat;
}

@media (max-width: 767.98px) {
  .hero {
    min-height: 60vh;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 42, 74, 0.82);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  opacity: 0.9;
}

/* ── Buttons ────────────────────────────────────── */
.btn--accent {
  background-color: var(--ad-accent);
  border-color: var(--ad-accent);
  color: var(--ad-text-light);
  font-weight: 600;
}

.btn--accent:hover,
.btn--accent:focus {
  background-color: var(--ad-accent-hover);
  border-color: var(--ad-accent-hover);
  color: var(--ad-text-light);
}

/* ── Sections ───────────────────────────────────── */
.section {
  padding: 4rem 0;
}

.section--dark {
  background-color: var(--ad-bg-dark);
  color: var(--ad-text-light);
}

.section--light {
  background-color: var(--ad-bg-light);
  color: #212529;
}

.section__heading {
  font-weight: 700;
  margin-bottom: 2.5rem;
  position: relative;
}

.section__heading::after {
  content: '';
  display: block;
  width: 3.5rem;
  height: 0.2rem;
  background-color: var(--ad-accent);
  margin: 0.75rem auto 0;
}

/* ── Service Cards ──────────────────────────────── */
.services__card {
  border: none;
  border-radius: 0.75rem;
  transition: transform 0.2s ease;
}

.services__card:hover {
  transform: translateY(-0.25rem);
}

.services__icon {
  font-size: 2.5rem;
  color: var(--ad-accent);
  margin-bottom: 1rem;
}

.services__badge {
  background-color: var(--ad-accent);
  font-size: 0.875rem;
}

/* ── Contact ────────────────────────────────────── */
.contact__icon {
  color: var(--ad-accent);
  width: 1.5rem;
  text-align: center;
}

.contact__link {
  color: var(--ad-accent);
  text-decoration: none;
}

.contact__link:hover {
  text-decoration: underline;
}

/* ── Map preview ──────────────────────────────────── */
.contact__map-link {
  display: block;
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  text-decoration: none;
}

.contact__map-link:hover .contact__map-overlay {
  opacity: 1;
}

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

.contact__map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(26, 42, 74, 0.7);
  color: var(--ad-text-light);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.contact__map-overlay-icon {
  font-size: 2rem;
  color: var(--ad-accent);
  margin-bottom: 0.5rem;
}

/* ── Hours table ────────────────────────────────── */
.hours__table {
  margin-bottom: 0;
}

.hours__table td {
  padding: 0.4rem 0.75rem;
  border-color: rgba(255, 255, 255, 0.1);
}

.hours__closed {
  opacity: 0.5;
}

/* ── About ──────────────────────────────────────── */
.about__image {
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.3);
}

.about__highlight {
  border-left: 0.25rem solid var(--ad-accent);
  padding-left: 1rem;
  font-size: 1.125rem;
}

/* ── Footer ─────────────────────────────────────── */
.footer {
  background-color: #111b2e;
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
  font-size: 0.875rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer a:hover {
  color: var(--ad-accent);
}

.footer__heading {
  color: var(--ad-text-light);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer__divider {
  border-color: rgba(255, 255, 255, 0.15);
  margin: 2rem 0 1.5rem;
}

/* ── Mobile sticky CTA ─────────────────────────── */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 0.75rem 1rem;
  background: var(--ad-primary);
  border-top: 2px solid var(--ad-accent);
}

@media (min-width: 768px) {
  .mobile-cta {
    display: none !important;
  }
}

/* Extra bottom padding on mobile so footer is not hidden behind CTA */
@media (max-width: 767.98px) {
  .footer {
    padding-bottom: 5rem;
  }
}

/* ── Focus indicator ────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--ad-accent);
  outline-offset: 2px;
}

/* ── Dark mode (default) ─────────────────────────── */
.section--light {
  background-color: #1e2d4a;
  color: #e0e0e0;
}

.services__card {
  background-color: var(--ad-primary-light);
  color: #e0e0e0;
}

/* ── Light mode override ─────────────────────────── */
@media (prefers-color-scheme: light) {
  [data-bs-theme="dark"] {
    color-scheme: light;
  }

  body {
    background-color: #fff;
    color: #212529;
  }

  .section--light {
    background-color: var(--ad-bg-light);
    color: #212529;
  }

  .services__card {
    background-color: #fff;
    color: #212529;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  }

  .hours__table td {
    border-color: rgba(0, 0, 0, 0.1);
  }
}
