.top-header {
  background-color: maroon;
  padding: 0.625em;
  text-align: center;
  font-size: 1.07em;
  color: white;
}

.top-header a {
  color: white;
  text-decoration: none;
}

.main-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.625em 1.25em;
  background-color: white;
  box-shadow: 0 0.125em 0.25em rgba(0, 0, 0, 0.1);
}

.nav-links {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  gap: 0; 
  align-items: center;
}

.nav-links li {
  margin-right: 1.5625em;
  position: relative;
}

.nav-links li:last-child {
  margin-right: 0;
}

.nav-links > li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -0.9375em;     
  top: 50%;
  transform: translateY(-50%);
  color: maroon;
  font-weight: bold;
}

.main-header a {
  color: maroon;
  text-decoration: none;
  padding: 0.3125em 0.5em;
  font-size: .9em;
  display: block; 
}

.main-header a:hover {
  background-color: maroon;
  color: white;
  border-radius: 0.25em;
}

h1 {
  text-align: center;
  font-size: 2.3em !important;
  color: maroon !important;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0.125em 0.25em rgba(0,0,0,0.25);
  margin-bottom: 0.2em;
}

h3, h4 {
  text-align: center;
  color: #222;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h3 {
  font-size: 1.3em !important;
  font-weight: 600;
  letter-spacing: 0.03em;
}

h4 {
  font-size: 1.1em !important;
  font-weight: 400;
  color: #444;
}

.quote-section {
  max-width: 37.5em;
  margin: 2em auto;
  padding: 2em;
  background: #f7f2f2;
  border-radius: 0.625em;
  box-shadow: 0 0.25em 0.75em rgba(0,0,0,0.08);
}

.quote-section h2 {
  text-align: center;
  margin-bottom: 1em;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}

.quote-form label {
  font-weight: 600;
}

.quote-form input,
.quote-form textarea {
  padding: 0.6em 0.8em;
  border-radius: 0.375em;
  border: 1px solid #ccc;
  font-size: 1em;
}

.quote-form button {
  margin-top: 0.5em;
  padding: 0.8em 1em;
  background: maroon;
  color: white;
  border: none;
  border-radius: 0.375em;
  font-size: 1em;
  cursor: pointer;
}

.quote-form button:hover {
  background: #8b0000;
}

#homeCarousel .carousel-control-prev {
  left: -3.125em;
  width: 5%;
}

#homeCarousel .carousel-control-next {
  right: -3.125em;
  width: 5%;
}

#homeCarousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23800'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

#homeCarousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23800'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

@media (max-width: 48em) {
  #homeCarousel .carousel-control-prev { left: -1.25em; }
  #homeCarousel .carousel-control-next { right: -1.25em; }
}

.services-hero {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 6.25em 1.25em 5em;
  margin-bottom: 3.75em;
}

.services-hero h1 {
  font-size: 3.5em;
  margin: 0 0 0.625em;
  font-weight: 800;
  letter-spacing: 0.125em;
}

.hero-subtitle {
  font-size: 1.8em;
  opacity: 0.9;
  margin-bottom: 0.9375em;
  font-weight: 300;
}

.hero-text {
  max-width: 43.75em;
  margin: 0 auto;
  font-size: 1.2em;
  opacity: 0.95;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 75em;
  margin: 0 auto;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.875em;
  justify-content: center;
}

.service-card {
  flex: 0 1 20em;
  max-width: 20em;
  background: var(--white);
  border-radius: 1em;
  padding: 2.5em 1.875em;
  text-align: center;
  box-shadow: 0 0.625em 1.875em rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #eee;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.3125em;
  background: var(--maroon);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-0.75em);
  box-shadow: 0 1.25em 2.5em rgba(134, 31, 44, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 3.5em;
  margin-bottom: 1.25em;
  display: block;
}

.service-card h3 {
  color: var(--maroon);
  font-size: 1.5em;
  margin: 0 0 1em;
  font-weight: 700;
}

.service-card p {
  color: var(--text-gray);
  line-height: 1.7;
  font-size: 1.05em;
}

@media (max-width: 48em) {
  .services-hero {
    padding: 5em 1.25em 3.75em;
  }
  .services-hero h1 {
    font-size: 2.8em;
  }
  .hero-subtitle {
    font-size: 1.5em;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }
  .service-card {
    padding: 2.1875em 1.5625em;
  }
}

.contact-section {
  padding: 5em 0;
  background-color: #f9f9f9;
}

.contact-section .page-title {
  text-align: center;
  margin-bottom: 1.25em;
  font-size: 2.5em;
  color: #333;
}

.section-intro {
  text-align: center;
  max-width: 50em;
  margin: 0 auto 3.125em;
  font-size: 1.1em;
  color: #666;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3.75em;
  align-items: start;
}

@media (max-width: 62em) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5em;
  }
}

.contact-form-wrapper h2,
.map-wrapper h2 {
  margin-bottom: 1.25em;
  font-size: 1.8em;
  color: #333;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25em;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5em;
  font-weight: 600;
  color: #444;
}

.form-group input,
.form-group textarea {
  padding: 0.75em 0.9375em;
  border: 1px solid #ddd;
  border-radius: 0.375em;
  font-size: 1em;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.1875em rgba(0,123,255,0.1);
}

.submit-btn {
  align-self: flex-start;
  padding: 0.75em 1.875em;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 0.375em;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #0056b3;
}

.map-placeholder {
  margin: 1.875em 0;
  border-radius: 0.5em;
  overflow: hidden;
  box-shadow: 0 0.25em 0.75em rgba(0,0,0,0.1);
}

.map-placeholder iframe {
  display: block;
  width: 100%;
  border: 0;
}

.about-section {
  padding: 3.75em 0 5em;
  background-color: #f9f9f9;
}

.about-container {
  width: 90%;
  max-width: 75em;
  margin: 0 auto;
  padding: 0 1.5em;
}

.about-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #333;
  margin-bottom: 3em;
  text-align: center;
}

@media (min-width: 48em) {
  .about-title {
    font-size: 3.125em;
    text-align: left;
  }
}

.about-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  align-items: center;
}

.about-col {
  flex: 1 1 100%;
}

@media (min-width: 62em) {
  .about-col {
    flex: 0 0 calc(50% - 1em);
  }
}

.about-carousel {
  box-shadow: 0 1.25em 2.5em rgba(0,0,0,0.15);
  border-radius: 1.875em;
  overflow: hidden;
}

.about-carousel .carousel-item img {
  height: 23.75em;
  object-fit: cover;
}

.about-text {
  font-size: 1.125em;
  color: #444;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 1.25em;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.carousel-container {
  padding: 0;
  margin: 2em auto;
}

.carousel-centered {
  max-width: 50em;
  margin: 0 auto;
}

.inline-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 1em 0;
}

.inline-contact h3 {
  margin: 0 0 0.25em 0;
  font-size: 1.2em;
  color: #222;
}

.inline-contact a {
  color: #007bff;      
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05em;
}

.inline-contact a:hover {
  text-decoration: underline;
}

.inline-contact span {   
  color: black !important;
  font-weight: normal;
  font-size: 1.05em;
}

@media (max-width: 62em) {
  .inline-contact {
    margin: 0.75em 0;
  }
}
