/* --- Global Resets & Typography --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #ffffff;
}

/* --- Header --- */
.site-header {
  background-color: #ffffff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: relative;
  z-index: 10;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 50px;
  display: block;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.consult-text {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 2px;
}

.phone-number {
  font-size: 1.2rem;
  font-weight: bold;
  color: #666;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  padding: 120px 20px 200px; /* Extra bottom padding for overlapping form */
  background-image: url('images/banner.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #ffffff;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: rgba(0, 0, 0, 0.4);*/
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  font-weight: 300;
}

/* --- Overlapping Form Section --- */
.form-section {
  position: relative;
  z-index: 3;
  margin-top: -100px; /* Pulls the form up over the hero image */
  text-align: center;
  padding: 0 20px;
}

.form-container {
  background-color: #ffffff;
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  position: relative;
  border-top: 4px solid #f2b705; /* Yellow accent line */
}

/* The yellow triangle pointing up */
.form-triangle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0; 
  height: 0; 
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid #f2b705;
}

.form-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: bold;
  color: #38546d; /* Brand Blue */
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.form-container label {
  display: block;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 10px;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  font-size: 1rem;
  color: #333;
}

.location-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  background-color: #38546d;
  color: #ffffff;
  border: none;
  padding: 15px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #2a4054;
}

.form-disclaimer {
  font-size: 0.8rem;
  color: #888;
  margin-top: 15px;
}

/* --- Icons Section --- */
.services-icons {
  text-align: center;
  padding: 80px 20px;
  max-width: 1000px;
  margin: 96px auto;
}

.services-icons h2 {
  font-size: 2rem;
  font-weight: 300;
  color: #666;
  margin-bottom: 50px;
}

.icons-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-item {
  flex: 1;
  border-right: 1px solid #ddd;
}

.icon-item:last-child {
  border-right: none;
}

.icon-item img {
  max-width: 60px;
  height: auto;
}

/* --- Alternating Features Section --- */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 60px;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
  padding: 20px 0;
}

.feature-label {
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.feature-label::after {
  content: '';
  display: inline-block;
  width: 50px;
  height: 1px;
  background-color: #ccc;
  margin-left: 15px;
}

.feature-text h3 {
  font-size: 2.2rem;
  font-weight: 300;
  color: #333;
  line-height: 1.2;
  margin-bottom: 20px;
}

.feature-text p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
}

.feature-image {
  flex: 1;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Bottom CTA Banner --- */
.bottom-cta {
  position: relative;
  padding: 80px 20px;
  background-image: url('images/bg-bottom-cta.jpg');
  background-size: cover;
  background-position: center;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 114, 133, 0.85); /* Slate blue overlay to match image */
  z-index: 1;
}

.cta-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-text {
  flex: 2;
  color: #ffffff;
}

.cta-label {
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.cta-text h2 {
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1.2;
}

.cta-button {
  flex: 1;
  text-align: right;
}

.btn-outline {
  background-color: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 15px 60px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-outline:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 60px 20px;
  background-color: #ffffff;
}

.footer-logo img {
  max-width: 180px;
  margin-bottom: 20px;
}

.footer-links {
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  margin: 0 10px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copyright p {
  font-size: 0.7rem;
  color: #999;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
  .feature-row, .feature-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .feature-label {
    justify-content: center;
  }
  
  .feature-label::after {
    display: none; /* Hide the line on mobile for cleaner centering */
  }

  .cta-container {
    flex-direction: column;
    text-align: center;
  }

  .cta-button {
    text-align: center;
    width: 100%;
  }
  
  .btn-outline {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .icons-container {
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .icon-item {
    flex: 0 0 50%;
    border-right: none;
  }
}
body {
    position: relative !important;
    min-height: 100vh !important;
}

/* The Invisible Full-Page Overlay */
.global-page-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 500 !important; /* Sits above standard text backgrounds */
    cursor: pointer !important;
}