/* Reset some default spacing */
body, h1, h2, h3, h4, p, ul {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* Header styling */
.site-header {
  background-color: #2d5cb7;
  padding: 15px 0;
  color: white;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo h1 {
  color: white;
  font-size: 24px;
  font-weight: bold;
}

.logo img {
  height: 60px;
  background: transparent;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 16px;
}

.nav-links a:hover {
  text-decoration: underline;
}

.contractor-login-btn {
  color: #e8e8e8 !important;
  font-size: 14px !important;
  font-weight: normal !important;
  text-decoration: none !important;
}

.contractor-login-btn:hover {
  color: white !important;
  text-decoration: underline !important;
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-toggle i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  list-style: none;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: #333 !important;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: #f8f9fa;
  color: #2d5cb7 !important;
  text-decoration: none;
}

.blue-bar {
  display: none;
}

/* Intro Section */
.intro {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.intro-text {
  flex: 2;
  text-align: left;
}

.intro-text h2 {
  font-size: 32px;
  color: #333;
  margin-bottom: 10px;
  font-weight: bold;
}

.intro-text h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  font-weight: normal;
}

.intro-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.map-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.map-image img {
  max-width: 250px;
  border: 2px solid #ccc;
  border-radius: 6px;
}

/* Categories */
.category-selection {
  max-width: 1100px;
  margin: 40px auto 60px auto;
  padding: 0 20px;
}

.category-selection h3 {
  font-size: 24px;
  margin-bottom: 30px;
  color: #333;
  font-weight: bold;
}

.steps-text {
  font-size: 20px;
  color: #333;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.steps-text::after {
  display: none;
}

.steps-text::before {
  display: none;
}

/* Curved arrow shaft */
.steps-text::after {
  display: none;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 55px;
  margin-bottom: 20px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.category-box {
  background-color: #2d5cb7;
  color: white;
  padding: 40px 20px;
  text-align: center;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 92, 183, 0.25);
  z-index: 1;
}

.category-box:hover::before {
  background: rgba(45, 92, 183, 0);
}

.category-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(45, 92, 183, 0.3);
}

.category-box img {
  display: none;
}

.category-title {
  font-size: 24px;
  color: #333;
  font-weight: bold;
  text-align: center;
  margin: 0;
}

/* Special styling for different categories */
.category-box.remodeling {
  background-image: url('../assets/icons/remodeling.png');
}

.category-box.new-construction {
  background-image: url('../assets/icons/new-construction.png');
}

.category-box.repairs {
  background-image: url('../assets/icons/repairs.png');
}

.category-box.home-services {
  background-image: url('../assets/icons/home-services.png');
}

/* Footer */
.site-footer {
  background-color: #2d5cb7;
  color: white;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .intro {
    flex-direction: column;
    gap: 20px;
  }
  
  .map-container {
    justify-content: center;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .header-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .nav-links {
    gap: 15px;
  }
  
  .intro-text h2 {
    font-size: 28px;
  }
  
  .intro-text h3 {
    font-size: 20px;
  }
}

/* Services List Styling */
.service-selection {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #2d5cb7;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.service-selection h2 {
  color: #2d5cb7;
  font-size: 32px;
  margin-bottom: 15px;
}

.service-selection p {
  margin-bottom: 30px;
  line-height: 1.6;
}

.service-selection p a {
  color: #2d5cb7;
  text-decoration: none;
}

.service-selection p a:hover {
  text-decoration: underline;
}

.steps-text {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-arrow {
  height: 20px;
  width: auto;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.service-link {
  background-color: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.service-link:hover {
  border-color: #2d5cb7;
  box-shadow: 0 4px 12px rgba(45, 92, 183, 0.1);
  transform: translateY(-2px);
}

.service-item-link {
  display: block;
  padding: 20px 25px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.service-item-link:hover {
  color: #2d5cb7;
  background-color: #f8f9ff;
}

/* Responsive adjustments for services */
@media (max-width: 768px) {
  .services-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .service-item-link {
    padding: 15px 20px;
    font-size: 15px;
  }
  
  .service-selection {
    padding: 20px 15px;
  }
  
  .service-selection h2 {
    font-size: 28px;
  }
}


/* --- LOGO + HEADER VISIBILITY FIX --- */
.logo img {
  display: block;
  height: 60px;
  width: auto;
  margin-right: 10px;
  object-fit: contain;
  z-index: 9999;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Fade out animation for upload indicators */
@keyframes fadeOut {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

/* Footer Navigation Styles */
.site-footer a:hover {
  color: white !important;
}

/* ZIP Code Landing Overlay Styles */
.zip-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 92, 183, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.zip-modal {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  text-align: center;
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zip-form input:focus {
  outline: none;
  border-color: #2d5cb7;
  box-shadow: 0 0 0 3px rgba(45, 92, 183, 0.1);
}

.zip-form button:hover {
  background-color: #1e4a9a;
  transform: translateY(-1px);
}

.zip-error {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: #e53e3e;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.zip-error i {
  color: #e53e3e;
}

/* Hidden by default - will be shown via JavaScript */
.zip-overlay.hidden {
  display: none;
}

/* Main content hidden until ZIP is entered */
.main-content-hidden {
  display: none;
}

@media (max-width: 600px) {
  .zip-modal {
    padding: 30px 20px;
    margin: 20px;
  }
  
  .zip-form > div {
    flex-direction: column;
    gap: 15px;
  }
  
  .zip-form button {
    width: 100%;
  }
}
