/* Global Styles */
html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
}

main {
  margin-bottom: 500px;
}

.container {
  max-width: 1150px;
  margin: 0 auto;
}

/* Navigation Bar and Footer Styles */
.navbar, .footer {
	background-color: var(--custom-color);
}

.navbar .nav-link,
.navbar-light .navbar-nav .nav-link {
    color: var(--header-footer-text-color) !important;
}

.navbar .nav-link:hover,
.navbar-light .navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar .btn {
  padding: .49rem .75rem;
}

.cta-info {
    display: flex;
    align-items: center;
}

.cta-info i {
    color: var(--header-footer-text-color);
    margin-right: 10px;
}

.cta-call-text {
    font-size: 0.85rem;
    color: var(--header-footer-text-color);
    display: block; /* Ensure it takes up its own line */
    margin-bottom: -5px; /* Adjust this for tighter or looser spacing */
}

.cta-phone-number {
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--header-footer-text-color);
}

.cta-phone-number:hover {
    color: var(--secondary-color) !important;
	text-decoration: none;
}

.page-content {
	margin: 25px auto;
}

.page-content h1 {
	margin: 15px auto;
}

/* Hero Section */
/*.hero {
  position: relative;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  overflow: hidden;
  padding: 30px;
}*/
.hero {
  position: relative;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh; /* Max height to avoid overflow beyond viewport */
  overflow: hidden;
  padding: 30px;
}

/* Hero Image */
.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the hero section */
  z-index: -1; /* Places the image behind the text */
}

/* Hero Content Styling */
.hero-content {
  background: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 8px;
}

.hero-content, .quote-form {
  z-index: 10;
  max-width: 100%; /* Restrict max width on smaller devices */
  padding: 20px;
}

.hero-video {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.hero h1 {
  font-size: 2.8rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Modernizing form */
/*.quote-form {
	background: white;
	padding: 30px;
	border-radius: 10px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}*/
.quote-form {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  margin-top: 20px; /* Adds some space between the form and the hero content */
}

.quote-form input,
.quote-form textarea {
	border: 1px solid #ced4da;
	padding: 12px;
	font-size: 1rem;
	margin-bottom: 15px;
	border-radius: 6px;
}

.quote-form button {
	background-color: #007bff;
	color: white;
	border-radius: 6px;
	padding: 12px;
	font-size: 1.1rem;
	transition: background-color 0.3s ease;
}

.quote-form button:hover {
    background-color: #0056b3;
}

.quote-form h5{
	color: #050505;
	font-size: 1.5rem;
}

.cta-btn {
	background-color: var(--primary-color);
	color: #f8f9fa;
	margin: 10px;
	padding: 15px 30px;
	font-size: 1.2rem;
	transition: background-color 0.3s ease;
}

.cta-contact-btn {
	color: #f8f9fa;
	border-color: #f8f9fa;
	margin: 10px;
	padding: 15px 30px;
	font-size: 1.2rem;
	transition: background-color 0.3s ease;
}

.cta-btn:hover {
	background-color: var(--secondary-color);
}

.cta-contact-btn:hover {
	background-color: var(--secondary-color);
}

.btn-outline-light:hover {
  color: #212529;
  background-color: var(--secondary-color);
  border-color: #f8f9fa;
}

/* USP Section */
.usp-section {
  background-color: #f8f9fa;
  padding: 60px 0;
}

.usp-item {
  font-size: 1.2rem;
  text-align: center;
  background: white;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
}

.usp-item i {
  font-size: 2rem;
  /*color: #007bff;*/
  color: var(--primary-color);
  margin-bottom: 15px;
}

.usp-item h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Services Section */
.service-item .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}

.service-item .card:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

.card-body i {
  color: var(--primary-color);
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(to right, #0052D4, #65C7F7); /* Fallback */
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    padding: 60px 0;
    text-align: center;
}

.testimonials-section h2 {
    color: var(--bg-color);
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 700;
}

.testimonial {
    background-color: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
}

.testimonial-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 20px;
    /*border: 3px solid var(--primary-color);*/
}

/*.testimonial blockquote {
    margin: 0 0 20px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    position: relative;
}*/
.testimonial blockquote {
  margin: 0 20px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: #555;
  text-align: center;
  position: relative;
}

/* Add both opening and closing quotes */
/*.testimonial blockquote::before {
    content: "“"; 
    font-size: 2rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: 0;
}

.testimonial blockquote::after {
    content: "”";
    font-size: 2rem;
    color: var(--primary-color);
    position: absolute;
    bottom: -10px;
    right: 0;
}*/

.testimonial footer {
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-top: 10px;
}

.testimonial footer .profession {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
}


/* Aspect Ratio for Service Images */
.card-img-top {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Call to Action Section */
#services .mt-4 h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

#services .mt-4 p {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* CTA Section Styling */
#cta {
  position: relative;
  color: white;
}

#cta h3 {
  font-size: 2.5rem;
  font-weight: bold;
}

#cta p {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

#cta .btn {
  padding: 15px 30px;
}

/* Latest Projects Section */
#latest-projects img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#latest-projects img:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

.cc-window.cc-floating {
    border-radius: 10px;
}

/* Footer */
.footer {
	padding: 30px 0;
	text-align: center;
    background-color: var(--custom-color);
}

.footer .nav-link {
    color: var(--header-footer-text-color) !important;
}

.footer .nav-link:hover {
    color: var(--secondary-color) !important;
}

.footer a {
    color: var(--header-footer-text-color) !important;
}

.footer a:hover {
    color: var(--secondary-color) !important;
}

.footer p {
    color: var(--header-footer-text-color);
}

/* Responsive Hero Section for small screens */
@media (max-width: 768px) {
  .logo {
    height: 40px;
  }
  .hero {
    padding: 20px;
  }
  
  .hero {
    padding: 20px;
    flex-direction: column; /* Stack the content vertically */
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .quote-form {
    margin-bottom: 20px; /* Add space between form and hero content */
  }
  .cta-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
  /*.hero-content {
    padding: 20px;
    margin-top: 0;
  }*/
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .hero {
    min-height: 180vh;
  }
  .hero h1 {
	  font-size: 2rem;
	  margin-bottom: 5px;
	}
  .hero p {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
	.hero {
		padding: 0;
		min-height: 110vh; 
	}
	.hero h1 {
		font-size: 1.8rem;
	}
	.quote-form {
		padding: 15px;
	}
	.service-item img {
	  margin-bottom: 15px;
	}
}