/* ---------------------------------------------------
   Root Variables
--------------------------------------------------- */
:root {
  --dark-gray: #424242;
  --medium-gray: #757575;
  --light-gray-bg: #f5f5f5;
  --white: #ffffff;
  --black: #000000;
  --brand-red: #C62828;

  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --heading-letter-spacing: -0.5px;
  --heading-line-height: 1.2;
}

/* ...[rest of your variables and base styles remain unchanged]... */

/* ---------------------------------------------------
   Hero Section Overlay — DETECTABLE to WAVE
--------------------------------------------------- */
.hero-section {
  margin-top: 180px;
  min-height: calc(100vh - 180px);
}

.hero-content {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('/assets/img/mackinac.jpg') center/cover no-repeat;
  min-height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (max-width: 768px) {
  .hero-section {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
  }

  .hero-content {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
      url('/assets/img/mackinac.jpg') center/cover no-repeat;
    min-height: calc(100vh - 100px);
  }
}

/* ---------------------------------------------------
   Hero section text styling for better contrast
--------------------------------------------------- */
.hero-section h1,
.hero-section .lead,
.hero-section .list-inline-item {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7),
    0 1px 2px rgba(0, 0, 0, 0.6);
}

/* ---------------------------------------------------
   Global Typography & Layout
--------------------------------------------------- */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  background-color: var(--light-gray-bg);
  color: var(--dark-gray);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: var(--heading-letter-spacing);
  line-height: var(--heading-line-height);
}

#main-content {
  transition: margin-top 0.3s ease-in-out;
}

/* ---------------------------------------------------
   Buttons & Branding
--------------------------------------------------- */
.btn-brand,
.badge-btn-brand {
  background-color: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  color: var(--white) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.btn-white {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .75rem;
  font-size: .875rem;
  line-height: 1;
  border-radius: .375rem;
  cursor: pointer;
  transition: background-color .15s ease-in-out;
}

.badge-btn-brand:hover,
.badge-btn-brand:focus {
  background-color: color-mix(in srgb, var(--brand-red) 90%, #000);
  text-decoration: none;
}

/* ---------------------------------------------------
   Utility Classes
--------------------------------------------------- */
.bg-section {
  background-color: var(--white) !important;
}

.bg-dark-gray {
  background-color: var(--dark-gray) !important;
}

.border-brand {
  border-color: var(--brand-red) !important;
}

.text-brand {
  color: var(--brand-red) !important;
}

.text-dark {
  color: var(--dark-gray) !important;
}

.text-black {
  color: var(--black) !important;
}

.navbar-brand {
  padding: 0.25rem 0;
  margin-right: 1.5rem;
  flex-shrink: 0;
  min-width: 0;
}

.navbar-logo {
  display: block;
  height: 180px;
  width: auto;
  transition: height 0.3s ease-in-out;
}

.navbar-scrolled .navbar-logo {
  height: 90px;
  /* 50% reduction */
}

/* ---------------------------------------------------
   Navbar Toggler
--------------------------------------------------- */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  font-size: 1.5rem;
}

.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------
   Responsive Navbar Themes
--------------------------------------------------- */
.header-light .nav-link,
.header-dark .nav-link {
  color: #ffffff !important;
  padding: 1rem 1.5rem !important;
  font-size: 1.25rem !important;
}

.header-light .nav-link:hover {
  color: #f8f9fa !important;
}

.header-dark .nav-link:hover {
  color: #0d6efd !important;
}

@media (max-width: 991.98px) {
  .header-light .navbar-collapse {
    background-color: #ffffff !important;
  }

  .header-light .nav-link {
    color: #212529 !important;
  }

  .header-light .nav-link:hover {
    color: #0d6efd !important;
  }

  .header-dark .navbar-collapse {
    background-color: #1a252f !important;
  }

  .header-dark .nav-link {
    color: #ffffff !important;
  }

  .header-dark .nav-link:hover {
    color: #f8f9fa !important;
  }

  .header-dark .nav-link.disabled {
    color: #adb5bd !important;
  }
}

/* ---------------------------------------------------
   Navbar Offset & Hero Height
--------------------------------------------------- */
.hero-section {
  min-height: calc(100vh - 180px);
}

/* ---------------------------------------------------
   Form Controls & Checkboxes
--------------------------------------------------- */
.form-label,
.form-check-label {
  color: var(--dark-gray) !important;
}

.form-check {
  padding-left: 0;
}

.form-check-input {
  margin-left: 0;
  background-image: none !important;
}

.form-check-input:checked {
  background-color: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
}

.form-check .form-check-label::before,
.form-check-input[type="checkbox"]::after {
  display: none !important;
}

/* Optional: brand-colored focus ring */
.form-check-input:focus {
  box-shadow: 0 0 0 .25rem rgba(255, 0, 0, .25);
}

/* ---------------------------------------------------
   Links
--------------------------------------------------- */
.link-brand {
  color: var(--brand-red) !important;
  text-decoration: underline !important;
  transition: color .15s ease;
}

.link-brand:hover,
.link-brand:focus {
  text-decoration: underline;
  text-decoration-color: currentColor;
}

/* ---------------------------------------------------
   Skip Link Visibility
--------------------------------------------------- */
.visually-hidden-focusable {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
}

.visually-hidden-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background: #222;
  color: #fff;
  text-decoration: underline;
}

/* ---------------------------------------------------
   Form Focus Indicators (including Bootstrap)
--------------------------------------------------- */
input:focus,
select:focus,
textarea:focus,
button:focus,
.btn:focus,
.form-select:focus {
  outline: 3px solid #C62828 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #C62828 !important;
  z-index: 2;
}

.btn:focus,
.form-select:focus,
button:focus {
  outline: 3px solid #C62828 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #C62828 !important;
}

/* ---------------------------------------------------
   Scroll To Top Button
--------------------------------------------------- */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:focus {
  outline: 2px solid #C62828;
  outline-offset: 2px;
}

/* ---------------------------------------------------
   Form Controls & Cards
--------------------------------------------------- */
.form-control,
.form-select,
.form-check-input {
  border-width: 1px !important;
  border-style: solid;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

/* ---------------------------------------------------
   Navigation Links
--------------------------------------------------- */
.navbar-nav {
  flex-direction: row !important;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  min-width: 0;
  flex: 1;
}

@media (max-width: 991.98px) {
  .navbar-nav {
    flex-direction: column !important;
    align-items: flex-start;
    flex-wrap: wrap;
    overflow-x: visible;
    width: 100%;
  }

  .navbar-nav .nav-item {
    width: 100%;
    margin: 0;
  }

  .navbar-nav .nav-link {
    width: 100%;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.navbar-nav .nav-item {
  margin: 0 0.15rem;
  flex-shrink: 0;
}

.navbar-nav .nav-link {
  font-size: 1rem !important;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 0.6rem 0.8rem !important;
  transition: color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--brand-red) !important;
  transform: translateY(-2px);
}

.header-dark {
  background-color: #1a252f !important;
  backdrop-filter: blur(8px);
  transition: padding 0.3s ease-in-out;
}

#mainNavbar {
  transition: all 0.3s ease-in-out;
  padding-top: 0;
  padding-bottom: 0;
}

/* ---------------------------------------------------
   Active Navigation Link Styles
--------------------------------------------------- */
.navbar-nav .nav-link.active {
  color: #E57373 !important;
  font-weight: 600;
}

/* Responsive active link styles */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link.active {
    color: #E57373 !important;
  }
}

.pt-navbar-offset {
  padding-top: 3rem !important;
  /* Adjust as needed */
}