/* ----------------------------------------------------
   GLOBAL STYLES
---------------------------------------------------- */

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #fdfdfd;
  color: #333;
}

/* Ensure navbar is always on top */
.navbar {
  position: relative;
  z-index: 99999;
}

/* ----------------------------------------------------
   MOBILE NAVBAR FIXES
   - Brand centered
   - Toggler (hamburger) on the RIGHT
---------------------------------------------------- */

@media (max-width: 768px) {
  .navbar-brand {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 100%;
  }

  .navbar-toggler {
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: absolute;
    right: 15px;
    top: 10px;
    display: block;
  }
}

/* ----------------------------------------------------
   IMPROVED HERO DESIGN
---------------------------------------------------- */

.hero {
  background: linear-gradient(135deg, #d2b48c 0%, #e8d7c3 100%);
  padding: 90px 20px;
  text-align: center;
  color: #333;
  border-bottom: 3px solid rgba(0,0,0,0.05);
  position: relative;
  z-index: 1;
  animation: heroFade 1.2s ease-out forwards;
  opacity: 0;
}

.small-hero {
  padding: 70px 20px;
}

/* Prevent hero from overlapping navbar */
.hero,
.small-hero {
  position: relative;
  z-index: 1;
  margin-top: 0 !important;
  padding-top: 40px !important;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.9;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------
   SERVICE AREAS PAGE
---------------------------------------------------- */

.content-section {
  padding: 40px 20px;
}

.service-areas-box {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Search bar */
.search-wrapper {
  text-align: center;
  margin: 20px 0;
}

#citySearch {
  width: 100%;
  max-width: 350px;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* 3-column grid */
.service-areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.service-column ul {
  list-style: none;
  padding: 0;
}

.service-column li {
  padding: 8px 0;
  font-size: 1.1rem;
}

.service-column a {
  text-decoration: none;
  color: #333;
  position: relative;
  transition: color 0.25s ease, transform 0.25s ease;
}

/* Hover animation for city links */
.service-column a:hover {
  color: #8b5e34;
  transform: translateX(4px);
}

/* Underline slide-in effect */
.service-column a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: #8b5e34;
  transition: width 0.25s ease;
}

.service-column a:hover::after {
  width: 100%;
}

.map-icon {
  margin-right: 6px;
}

/* Mobile layout */
@media (max-width: 768px) {
  .service-areas-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------
   BUTTON HOVER EFFECTS
---------------------------------------------------- */

.btn-primary {
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #8b5e34;
  transform: translateY(-2px);
}

/* ----------------------------------------------------
   NAVBAR HOVER EFFECTS
---------------------------------------------------- */

.nav-link {
  transition: color 0.25s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: #8b5e34 !important;
  transform: translateY(-1px);
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */

footer {
  text-align: center;
  padding: 20px;
  background: #f2f2f2;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #555;
}

/* ----------------------------------------------------
   FADE-IN ANIMATION
---------------------------------------------------- */

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-in forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------
   HOMEPAGE LOGO CENTERING (MOBILE ONLY)
---------------------------------------------------- */

@media (max-width: 768px) {
  header .col-md-2,
  header .col-2,
  header [class*="col-"] {
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto 20px auto !important;
    display: block !important;
  }

  header img {
    display: block;
    margin: 0 auto !important;
    width: 160px;
    height: 160px;
  }
}
