body {
  background: #111;
}

/* ===== Global Heading Styles ===== */
h1, h2, h3 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #002868; /* American Flag Blue */
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Different sizes for hierarchy */
h1 {
  font-size: 2rem;
  border-bottom: 3px solid #bf0a30; /* Flag Red accent */
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 1.6rem;
  border-bottom: 2px solid #bf0a30;
  padding-bottom: 0.4rem;
}

h3 {
  font-size: 1.2rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.3rem;
}

.services-page > p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  text-align: center;
}

/* =======================
   HERO GLOBAL STYLES
======================= */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

/* Background image */
.hero .hero-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Text image (always full width, responsive) */
.hero .hero-text {
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1400px;
  height: auto;
  z-index: -1;
}

/* =======================
   HOME PAGE OVERLAY ONLY
======================= */
.hero:not(.hero-inner) .hero-overlay {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  padding: 1rem 2rem;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  font-size: 1.1rem;
  display: inline-block;
  max-width: 90%;
}

.hero:not(.hero-inner) .hero-overlay .hero-sub {
  margin-bottom: 0.75rem;
}

.hero:not(.hero-inner) .hero-overlay .btn {
  margin-top: 0.5rem;
}

/* =======================
   INNER HERO BANNERS
======================= */
.inner-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero.hero-inner {
  aspect-ratio: 1536 / 140;
  height: auto !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
}

.hero.hero-inner .hero-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

/* Text logo left + centered vertically */
.hero.hero-inner .hero-text {
  position: absolute;
  left: 1%;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  max-width: 800px;
  height: auto;
  z-index: 1;
}

/* =======================
   HERO BOTTOM INFO (hours + address)
======================= */
.hero.hero-inner .hero-bottom-info {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  z-index: 1;
  transition: all 0.3s ease;
}

/* Fluid scaling between 2200 → 1440 */
.hero.hero-inner .hero-bottom-info img {
  height: auto;
  width: calc(200px + (350 - 200) * ((100vw - 1440px) / (2200 - 1440)));
  max-width: 100%;
  object-fit: contain;
  transition: width 0.25s ease;
}

/* Cap max at very large screens */
@media (min-width: 2200px) {
  .hero.hero-inner .hero-bottom-info img {
    width: 350px;
  }
}

/* ====== BELOW 1440px — move right-center (side by side) ====== */
@media (max-width: 1440px) {
  .hero.hero-inner .hero-bottom-info {
    top: 50%;
    bottom: auto;
    left: auto;
    right: 5%;
    transform: translateY(-50%);
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
  }

  .hero.hero-inner .hero-bottom-info img {
    width: calc(150px + (250 - 150) * ((100vw - 768px) / (1440 - 768)));
  }
}

/* ====== BELOW 768px — center LincolnWay text and bottom-center info ====== */
@media (max-width: 768px) {
  /* Center the LincolnWay text */
  .hero.hero-inner .hero-text {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 95%;
    z-index: 1;
  }

  /* Keep bottom info side by side, bottom center */
  .hero.hero-inner .hero-bottom-info {
    top: auto;
    bottom: 1.5rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  .hero.hero-inner .hero-bottom-info img {
    width: clamp(120px, 30vw, 180px);
  }
}

/* ====== BELOW 480px — bottom center smaller ====== */
@media (max-width: 480px) {
  .hero.hero-inner .hero-text {
    width: 90%;
  }

  .hero.hero-inner .hero-bottom-info {
    gap: 0.8rem;
  }

  .hero.hero-inner .hero-bottom-info img {
    width: clamp(100px, 35vw, 150px);
  }
}

/* explicitly hide overlays on inner pages */
.hero.hero-inner .hero-overlay {
  display: none !important;
}

/* Banner images */
.banner-container {
  width: 100%;
}

.banner-full {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  aspect-ratio: 1536 / 170;
}

/* Animate hamburger into X */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hamburger button (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  padding-right: 50px;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Default nav menu (desktop) */
.navbar ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.navbar li {
  position: relative;
  margin: 0 0.5rem;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  transition: color 0.3s;
}
.navbar a:hover {
  color: #f87171;
}

/* --- Dropdowns --- */
.navbar .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0,0,0,0.9);
  padding: 0.5rem 0;
  border-radius: 6px;
  min-width: 180px;
  z-index: 1200;
}
.navbar .dropdown:hover .dropdown-menu {
  display: block;
}
.navbar .dropdown-menu li {
  margin: 0;
}
.navbar .dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-weight: normal;
  white-space: nowrap;
}
.navbar .dropdown-menu a:hover {
  background: #c0392b;
  color: #fff;
}

/* --- Mobile menu --- */
.navbar ul.mobile-hidden {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  padding: 1rem;
  border-radius: 6px;
}

.navbar ul.mobile-visible {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  padding: 1rem;
  border-radius: 6px;
  background: rgba(0,0,0,0.6);
  z-index: 1050;
}
.navbar ul.mobile-visible li {
  margin: 0.5rem 0;
}

.navbar ul.mobile-visible .dropdown-menu {
  position: static;
  background: transparent;
  padding-left: 1rem;
  margin-top: 0.25rem;
}
.navbar ul.mobile-visible .dropdown-menu a {
  font-weight: normal;
  text-shadow: none;
  font-size: 0.95rem;
  color: #fff;
}
.navbar ul.mobile-visible .dropdown-menu a:hover {
  color: #f87171;
  background: none;
}

/* Body container */
.page-container {
  background: #f4f4f4;
  margin: 0 auto 2rem auto;
  padding: 2rem;
  border-radius: 10px;
  max-width: 80%;
}

/* Footer */
.footer {
  background: #111;
  color: #eee;
  text-align: center;
  padding: 2rem 1rem;
}
.footer .socials {
  margin-bottom: 1rem;
}
.footer .socials img {
  width: 24px;
  margin: 0 8px;
}
.footer .tagline {
  margin: 0.5rem 0;
}
.footer .powered {
  font-size: 0.85rem;
  color: #aaa;
}

/* ------------------------------
   Responsive Adjustments
------------------------------- */
@media (max-width: 1024px) {
  .page-container {
    max-width: 90%;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 45vh;
    min-height: 300px;
  }
  .hero .hero-text {
    width: 100%;
  }
  .hero-overlay {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }

  .navbar {
    padding: 0.75rem 1rem;
  }
  .hamburger {
    display: flex;
  }
  .navbar ul {
    display: none;
  }
  .navbar.navbar-inner ul {
    display: none;
  }
  .navbar.navbar-inner .hamburger {
    display: flex;
  }
  .navbar li {
    margin: 0.5rem 0;
  }

  .page-container {
    max-width: 95%;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 40vh;
    min-height: 250px;
  }
  .hero-overlay {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }
  .hero-overlay .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
  .footer {
    padding: 1.5rem 1rem;
  }
}
