/* --- CSS Variables for Brand Colors --- */
:root {
  --eraar-dark-blue: #1a375e;
  --eraar-gold-brown: #c09a53;
  --text-light: #f0f0f0; /* Will still be used in hero section text */
  --text-dark: #333;
  --neutral-light-grey: #f5f5f5;
  --neutral-medium-grey: #666;
  --header-bg-color: #ffffff; /* NEW: Header background */
  --header-text-color: var(
    --eraar-dark-blue
  ); /* NEW: Text color for white header */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Open Sans", sans-serif;
  font-size: 10px;
}

/* --- Base Styles & Typography (no change here unless specified) --- */
body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #fff;
  font-size: 1.6rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  color: var(--eraar-dark-blue);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 4.8rem;
  font-weight: 700;
}
h2 {
  font-size: 3.9rem;
  font-weight: 700;
}
h3 {
  font-size: 3.1rem;
  font-weight: 600;
}
h4 {
  font-size: 2.8rem;
  font-weight: 600;
}
p {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--eraar-dark-blue);
  transition: color 0.3s ease;
}
a:hover {
  color: var(--eraar-gold-brown);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Global Container for Centering Content */
.container {
  max-width: 1200px; /* Adjust based on your preferred max width */
  margin: 0 auto;
  padding: 0 20px; /* Padding on sides for smaller screens */
}

/* Section Common Styling */
section {
  padding: 80px 0; /* Generous top/bottom padding for sections */
}


.final-cta-section
 {
   background-color: var(--neutral-light-grey);

}

section:nth-of-type(odd) {
  /* Alternate background for readability, adjust if needed */
 /* background-color: var(--neutral-light-grey);  */
}

 .page-hero{
   background-color: var(--neutral-light-grey); 

}
.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  font-size: 1.8rem;
  color: var(--neutral-medium-grey);
}

/* REMOVED: .centered-button for 'View All Services' */

/* --- Call to Action Buttons --- */
.cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95em;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent; /* For consistent size */
}

.cta-button.primary {
  background-color: var(--eraar-gold-brown);
  color: white;
  border-color: var(--eraar-gold-brown); /* Add border for consistency */
}

/* --- IMPORTANT CHANGE FOR PRIMARY BUTTON HOVER --- */
.cta-button.primary:hover {
  background-color: var(--eraar-dark-blue); /* Change to Dark Blue on hover */
  color: white; /* Ensure text remains white */
  border-color: var(--eraar-dark-blue); /* Match border color */
  transform: translateY(-2px); /* Keep the slight lift effect */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Add subtle shadow for depth */
}
.cta-button.secondary {
  background-color: transparent;
  color: var(--eraar-dark-blue);
  border-color: var(--eraar-dark-blue);
  /* margin-top: 50px; */
}
.cta-button.secondary:hover {
  background-color: var(--eraar-dark-blue);
  color: white;
  transform: translateY(-2px);
}

/* --- 1. Utility Bar --- */
.utility-bar {
  background-color: var(--neutral-light-grey);
  color: var(--neutral-medium-grey);
  font-size: 1.4rem;
  padding: 8px 0;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.utility-contact {
  cursor: pointer;
}
.utility-contact span {
  margin-right: 20px;
}
.utility-contact i {
  color: var(--eraar-gold-brown);
  margin-right: 5px;
}
.utility-social a {
  color: var(--neutral-medium-grey);
  margin-left: 15px;
}
.utility-social a:hover {
  color: var(--eraar-gold-brown);
}

/* --- 2. Header / Navigation Bar --- */
.main-header {
  background-color: var(
    --header-bg-color
  ); /* CHANGED: From dark blue to white */
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.main-header .container {
  display: flex;
  justify-content: space-between; /* CHANGED: Logo left, Menu/CTA right */
  align-items: center;
}
.main-header .logo {
  margin-right: auto; /* Pushes menu/CTA to the right */
}
.main-header .logo img {
  width: 90px;
  height: auto;
  max-width: 100%;
  display: block;
}

.main-navigation {
  /* Ensure navigation container itself doesn't interfere with flex */
  margin-left: auto; /* Pushes nav to right next to CTA if present */
}
.main-navigation .nav-menu {
  display: flex;
  gap: 30px;
}
.main-navigation .nav-menu li a {
  color: var(--header-text-color); /* CHANGED: Text color for white header */
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}
.main-navigation .nav-menu li a:hover,
.main-navigation .nav-menu li a.current-page {
  border-bottom: 1px solid var(--eraar-gold-brown);
  /* color: var(--eraar-gold-brown); */
}
/* Underline effect on hover/active */
.main-navigation .nav-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--eraar-gold-brown);
  transition: width 0.3s ease;
}
.main-navigation .nav-menu li a:hover::after,
.main-navigation .nav-menu li a.current-page::after {
  width: 100%;
}

.header-cta {
  margin-left: 30px; /* Space from navigation */
  padding: 10px 20px;
  /* Ensure text color works with white header */
  color: white; /* Button text is white */
  background-color: var(--eraar-gold-brown); /* Button background is gold */
}
.header-cta:hover {
  background-color: var(--eraar-dark-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  width: 30px;
  height: 20px;
}
.hamburger {
  display: block;

  width: 100%;
  height: 3px;
  background-color: var(--header-text-color); /* CHANGED: Hamburger color */
  /* position: absolute;
  left: 0; */
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
}
.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--header-text-color); /* CHANGED: Hamburger color */
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease, background-color 0.3s ease;
}
.hamburger::before {
  top: -8px;
}
.hamburger::after {
  top: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- 3. Hero Section (No Changes) --- */
.hero-section {
  background-image: linear-gradient(
      rgba(26, 55, 94, 0.6),
      rgba(26, 55, 94, 0.6)
    ),
    url("path/to/hero-image.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 150px 0;
  display: flex;
  align-items: center;
  min-height: 600px;
}
.hero-content {
  max-width: 950px;
  margin: 0 auto;
}
.hero-section h1 {
  color: white;
  font-size: 6rem;
  margin-bottom: 20px;
}
.hero-section p {
  color: var(--text-light);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 40px;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.hero-buttons .cta-button {
  padding: 18px 35px;
  font-size: 1.7rem;
}
.hero-buttons .cta-button.secondary {
  border-color: white;
  color: white;
}
.hero-buttons .cta-button.secondary:hover {
  background-color: white;
  color: var(--eraar-dark-blue);
}

/* --- 4. About Us Snapshot Section (No Changes) --- */
.about-us-snapshot {
  background-color: #fff;
}
.about-us-snapshot .content-grid {
  display: flex;
  align-items: center;
  gap: 60px;
}
.about-image {
  flex: 0 0 45%;
  max-width: 45%;
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.about-text {
  flex: 0 0 55%;
  max-width: 55%;
}
.about-text h2 {
  font-size: 3.8rem;
  /* font-size: 2.2em; */
  /* margin-bottom: 10px; */
}
.about-text h3 {
  color: var(--eraar-gold-brown);
  font-size: 2.4rem;
  margin-top: 0;
  margin-bottom: 2rem;
}
.about-text ul {
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.about-text ul li {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: var(--text-dark);
}
.about-text ul li i {
  color: var(--eraar-gold-brown);
  margin-right: 1rem;
}

/* --- 5. Our Services Overview Section --- */
.services-overview {
  background-color: var(--neutral-light-grey);
  text-align: center;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 5rem;
}
.service-item {
  background-color: white;
  padding: 4rem 2.5rem;
  border-radius: 0.8rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; /* ADDED: Make service item a flex container */
  flex-direction: column; /* ADDED: Stack children vertically */
  justify-content: space-between; /* ADDED: Push content to top, button to bottom */
}
.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.service-item .service-icon {
  /* UPDATED: Styles for Font Awesome icons */
  font-size: 6.4rem; /* Make the icon large */
  color: var(--eraar-gold-brown); /* Set icon color to gold */
  margin-bottom: 2rem;
  display: block; /* Ensure it behaves like a block for centering */
  margin-left: auto;
  margin-right: auto;
}
.service-item h3 {
  font-size: 2.2rem;
  text-transform: uppercase;
}
.service-item p {
  color: var(--neutral-medium-grey);
  margin-bottom: 20px; /* Adjusted: Space before button */
  flex-grow: 1; /* ADDED: Allow paragraph to take up available space for consistent heights */
  min-height: 4em; /* Keep a minimum height for descriptions */
}

/* ADDED: New styles for the 'Request a Free Quote' button in service items */
.service-item .service-cta {
  /* New class for the service buttons */
  margin-top: auto; /* Pushes button to bottom */
  padding: 1rem 2rem; /* Smaller button than hero/main cta */
  font-size: 1.4rem;
  width: fit-content; /* Make button only as wide as its content */
  margin-left: auto; /* Center the button */
  margin-right: auto; /* Center the button */
  display: block; /* Make it a block element to allow auto margins for centering */

  /* Inherit/override from .cta-button.secondary */
  background-color: transparent;
  color: var(--eraar-dark-blue);
  border-color: var(--eraar-dark-blue);
  border-radius: 5px; /* Ensure consistent border-radius */
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.3s ease;
  border-width: 2px; /* Ensure border is visible */
  border-style: solid; /* Ensure border is solid */
}
.service-item .service-cta:hover {
  background-color: var(--eraar-dark-blue);
  color: white;
  transform: translateY(-2px);
}

/* --- 6. Featured Projects Section (No Changes) --- */
.featured-projects {
  background-color: white;
  text-align: center;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-bottom: 5rem;
}
.project-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.project-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.project-card:hover img {
  transform: scale(1.05);
}
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 55, 94, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.project-overlay h4 {
  color: white;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.project-overlay i {
  color: var(--eraar-gold-brown);
  font-size: 3.2rem;
}
.project-info {
  padding: 2rem;
  text-align: left;
}
.project-info h3 {
  font-size: 2rem;
  margin-bottom: 5px;
}
.project-info p {
  font-size: 1.4rem;
  color: var(--neutral-medium-grey);
}

/* --- 7. Testimonials Section --- */
.testimonials-section {
  background-color: var(
    --neutral-light-grey
  ); /* ENSURE this is applied correctly */
  /* color: white;  */
  text-align: center;
}
.testimonials-section h2 {
  margin-bottom: 5rem;
}
.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.testimonial-slide {
  background-color: rgba(
    255,
    255,
    255,
    0.1
  ); /* This is a subtle white overlay for the quote box itself */
  padding: 4rem;
  border-radius: 8rem;
  /* Ensure the text inside this box is white */
}
.testimonial-slide .quote-icon {
  font-size: 4.8rem;
  color: var(--eraar-gold-brown); /* Gold for the icon */
  margin-bottom: 2rem;
}
.testimonial-slide p {
  font-size: 2.1rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 20px;
}
.testimonial-slide span {
  font-weight: 600;
  font-size: 1.8rem;
  display: block;
  margin-top: 15px;
}

/* --- 8. Final Call to Action Section (No Changes) --- */
.bg-white {
  background-color: white;
}
.final-cta-section {
  /* background-color: white; */
  text-align: center;
  padding: 10rem 0;
}
.final-cta-section h2 {
  font-size: 4.5rem;
  margin-bottom: 2rem;
}
.final-cta-section p {
  font-size: 1.8rem;
  max-width: 700px;
  margin: 0 auto 4rem auto;
  color: var(--neutral-medium-grey);
}
.final-cta-section .cta-button {
  padding: 1.8rem 4rem;
  font-size: 1.8rem;
}

/* --- 9. Footer (No Changes) --- */
.main-footer {
  background-color: var(--eraar-dark-blue);
  color: var(--text-light);
  padding-top: 60px;
}
.main-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col h3 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
}
.footer-col p {
  color: var(--text-light);
}
.footer-col .footer-logo {
  height: 50px;
  margin-bottom: 20px;
}
.footer-col ul li {
  margin-bottom: 1rem;
}
.footer-col ul li a {
  color: var(--text-light);
  font-size: 0.95em;
  transition: color 0.3s ease;
}
.footer-col ul li a:hover {
  color: var(--eraar-gold-brown);
}
.footer-col i {
  color: var(--eraar-gold-brown);
  margin-right: 10px;
}
.social-links {
  margin-top: 20px;
}
.social-links a {
  color: var(--text-light);
  /* font-size: 1.5em; */
  margin-right: 15px;
}
.social-links a:hover {
  color: var(--eraar-gold-brown);
}
.footer-col a {
  color: #fff;
}
.footer-bottom {
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer-bottom p {
  margin: 5px 0;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom a:hover {
  color: var(--eraar-gold-brown);
}

/* --- Basic Responsiveness (adjust breakpoints as needed) --- */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8em;
  }
  h2 {
    font-size: 2em;
  }
  h3 {
    font-size: 1.5em;
  }

  .main-navigation .nav-menu {
    gap: 20px;
  }
  .main-header .header-cta {
    padding: 8px 15px;
    font-size: 0.85em;
  }

  .hero-section {
    padding: 100px 0;
    min-height: 500px;
  }
  .hero-section h1 {
    font-size: 2.5em;
  }
  .hero-section h2 {
    font-size: 1.4em;
  }
  .hero-buttons .cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
  }

  .about-us-snapshot .content-grid {
    flex-direction: column;
    gap: 30px;
  }
  .about-image,
  .about-text {
    flex: none;
    max-width: 100%;
    text-align: center;
  }
  .about-text ul {
    text-align: left;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .project-card img {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .utility-bar {
    display: none;
  }

  .main-header .container {
    flex-wrap: wrap;
    /* Re-adjust for mobile: Logo left, Hamburger/CTA right, Menu slides out */
    justify-content: space-between; /* New: back to space-between for mobile */
    align-items: center;
  }
  .main-header .logo {
    width: auto; /* Allow logo to take natural width */
    margin-bottom: 0; /* No margin bottom */
    text-align: left; /* Align left */
    flex-grow: 1; /* Allow logo to grow slightly if needed */
  }
  .main-header .logo img {
    height: 70px;
  }
  .main-header .main-navigation {
    width: auto; /* Let navigation take natural width */
    order: unset; /* Remove order property */
    margin-left: 0; /* Reset margin */
    text-align: left; /* Reset text align */
  }
  .main-header .header-cta {
    order: unset; /* Remove order property */
    margin: 0 15px 0 0; /* Add margin right for spacing next to hamburger */
    padding: 8px 15px; /* Smaller button on mobile */
    font-size: 0.8em; /* Smaller font on mobile */
    display: none;
  }

  /* Mobile Menu Toggle & Overlay */
  .menu-toggle {
    display: block;
    position: static; /* Position normally within flex container */
    margin-left: auto; /* Pushes to the right after CTA */
    margin-right: 0; /* Ensure no extra margin */
    order: 4; /* Place hamburger last in header flex items */
  }
  .main-navigation .nav-menu {
    display: none;
    flex-direction: column;
    background-color: var(--eraar-dark-blue);
    position: absolute; /* Full overlay or slide-in effect */
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
  }
  .main-navigation .nav-menu.active {
    display: flex;
  }
  .main-navigation .nav-menu li {
    margin: 10px 0;
    text-align: center;
  }
  .main-navigation .nav-menu li a {
    font-size: 1.2em;
    padding: 10px 0;
    display: block;
    color: var(--text-light); /* Ensure mobile menu text is light */
    cursor: pointer;
    display: inline-block;
  }
  .main-navigation .nav-menu li a::after {
    display: none;
  }
  .hamburger {
    background-color: var(
      --header-text-color
    ); /* Hamburger color for white header */
  }
  .hamburger::before,
  .hamburger::after {
    background-color: var(
      --header-text-color
    ); /* Hamburger color for white header */
  }


    .main-navigation .nav-menu li a.current-page::after {
    display: block;
    content: "";
    height: 2px;
    width: 100%;                /* matches text width because link is inline-block */
    background: var(--eraar-gold-brown);
    margin: 6px auto 0;
  }

  .hero-section {
    padding: 80px 0;
    min-height: 400px;
  }
  .hero-section h1 {
    font-size: 2em;
  }
  .hero-section h2 {
    font-size: 1.1em;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .hero-buttons .cta-button {
    /* width: 80%;
    max-width: 300px; */
  }

  section {
    padding: 60px 0;
  }
  h2 {
    font-size: 1.8em;
  }
  h3 {
    font-size: 1.3em;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col {
    margin-bottom: 30px;
  }
  .footer-col ul {
    text-align: center;
  }
  .footer-col ul li a {
    display: inline-block;
    padding: 5px 0;
  }
  .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  .social-links a {
    margin: 0;
  }
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  h1 {
    font-size: 1.8em;
  }
  h2 {
    font-size: 1.5em;
  }
  h3 {
    font-size: 1.2em;
  }

  .testimonial-slide p {
    font-size: 1.1em;
  }
  .testimonial-slide span {
    font-size: 1em;
  }
}


