:root {
  /* Color Scheme - Concrete Construction Theme */
  --primary: #2E8B57;         /* Sea Green - Conveys strength and reliability */
  --primaryLight: #3DAA6D;    /* Lighter Green for hover states */
  --secondary: #4A6572;       /* Slate Blue-Gray - Suggests professionalism and stability */
  --secondaryLight: #607D8B;  /* Lighter Blue-Gray for hover states */
  --accent: #F9A826;          /* Amber - For CTAs and highlighting important elements */
  --accentLight: #FFBC44;     /* Lighter Amber for hover states */
  
  /* Neutral Colors */
  --headerColor: #1A1A1A;     /* Almost black for headings */
  --bodyTextColor: #4E4B66;   /* Dark gray for body text */
  --bodyTextColorWhite: #FAFBFC; /* Off-white for text on dark backgrounds */
  --lightBg: #F5F7F9;         /* Very light gray-blue for backgrounds */
  --borderColor: #E9ECEF;     /* Light gray for borders */
  --darkBg: #2A3B47;          /* Dark gray-blue for dark sections */
  
  /* Typography */
  --headingFont: 'Montserrat', sans-serif;
  --bodyFont: 'Open Sans', sans-serif;
  
  /* Font Sizes - Responsive */
  --topperFontSize: clamp(0.8125rem, 1.5vw, 0.9375rem);
  --headerFontSize: clamp(1.9375rem, 3.5vw, 2.8125rem);
  --subheaderFontSize: clamp(1.5rem, 2.5vw, 2rem);
  --bodyFontSize: 1rem;
  
  /* Spacing */
  --sectionPadding: clamp(3.75rem, 7vw, 5.5rem) 1rem;
  --cardPadding: clamp(1.5rem, 3vw, 2rem);
  --elementGap: clamp(1.25rem, 2.5vw, 2rem);
  
  /* Effects */
  --cardShadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --hoverShadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  --buttonShadow: 0 4px 10px rgba(46, 139, 87, 0.2);
  --transition: all 0.3s ease;
}

/* Base Reset & Global Styles */
*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--bodyFont);
  color: var(--bodyTextColor);
  font-size: var(--bodyFontSize);
  line-height: 1.6;
  background-color: #fff;
  padding-top: 4.5rem;
  overflow-x: hidden;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Base Styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--headingFont);
  color: var(--headerColor);
  margin-top: 0;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primaryLight);
}

/* Common Element Styles */
.cs-topper {
  font-size: var(--topperFontSize);
  line-height: 1.2em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
  font-family: var(--headingFont);
  text-align: center;
}

.cs-title {
  font-size: var(--headerFontSize);
  font-weight: 700;
  line-height: 1.2em;
  text-align: center;
  max-width: 43.75rem;
  margin: 0 auto 1.5rem;
  color: var(--headerColor);
  position: relative;
  font-family: var(--headingFont);
}

.cs-text {
  font-size: var(--bodyFontSize);
  line-height: 1.6em;
  text-align: center;
  width: 100%;
  max-width: 40.625rem;
  margin: 0 auto 1.5rem;
  color: var(--bodyTextColor);
}

.cs-button-solid {
  font-size: 1rem;
  font-weight: 700;
  line-height: 3.25em;
  text-align: center;
  text-decoration: none;
  min-width: 9.375rem;
  margin: 0;
  padding: 0 1.75rem;
  color: #fff;
  background-color: var(--accent);
  border-radius: 0.25rem;
  display: inline-block;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  box-shadow: var(--buttonShadow);
  transition: var(--transition);
  font-family: var(--headingFont);
  border: none;
  cursor: pointer;
  overflow: hidden;
}

.cs-button-solid:before {
  content: "";
  width: 0%;
  height: 100%;
  background: var(--accentLight);
  opacity: 1;
  border-radius: 0.25rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: width 0.3s;
}

.cs-button-solid:hover:before {
  width: 100%;
}

.cs-button-solid:hover {
  box-shadow: var(--hoverShadow);
  transform: translateY(-2px);
}

.cs-button-transparent {
  font-size: 1rem;
  font-weight: 700;
  line-height: 3.25em;
  text-align: center;
  text-decoration: none;
  min-width: 9.375rem;
  margin: 0;
  padding: 0 1.75rem;
  color: #fff;
  background-color: transparent;
  border: 2px solid #fff;
  border-radius: 0.25rem;
  display: inline-block;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  transition: var(--transition);
  font-family: var(--headingFont);
  overflow: hidden;
}

.cs-button-transparent:hover {
  color: var(--primary);
  background-color: #fff;
  transform: translateY(-2px);
}

.cs-container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Enhanced Navigation Styles */
#cs-navigation {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 1rem;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  z-index: 10000;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

#cs-navigation.scrolled {
  padding: 0.25rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

#cs-navigation .cs-container {
  max-width: 80rem;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

#cs-navigation .cs-logo {
  width: auto;
  max-width: 25rem;
  height: 4.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

#cs-navigation.scrolled .cs-logo {
  height: 3.5rem;
}

#cs-navigation .cs-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}

#cs-navigation .cs-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#cs-navigation .cs-ul {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.25rem);
}

#cs-navigation .cs-li {
  list-style: none;
  padding: 1.5rem 0;
  flex: none;
  transition: padding 0.3s ease;
}

#cs-navigation.scrolled .cs-li {
  padding: 1rem 0;
}

#cs-navigation .cs-li-link {
  font-size: clamp(0.875rem, 1vw, 1rem);
  line-height: 1.5em;
  text-decoration: none;
  margin: 0;
  color: var(--bodyTextColor);
  display: block;
  position: relative;
  font-weight: 600;
  font-family: var(--headingFont);
  transition: color 0.3s ease;
}

#cs-navigation .cs-li-link:hover {
  color: var(--primary);
}

#cs-navigation .cs-li-link:hover:before {
  width: 100%;
}

#cs-navigation .cs-li-link.cs-active {
  color: var(--primary);
}

#cs-navigation .cs-li-link.cs-active:before {
  width: 100%;
}

#cs-navigation .cs-li-link:before {
  content: "";
  width: 0%;
  height: 2px;
  background: var(--accent);
  opacity: 1;
  display: block;
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  transition: width 0.3s;
}

#cs-navigation .cs-nav-button {
  display: inline-block;
  margin-left: 1rem;
  font-size: 0.9375rem;
  padding: 0 1.25rem;
}

/* Mobile Navigation */
#cs-navigation .cs-toggle {
  display: none;
}

.cs-dropdown {
  position: relative;
}

.cs-dropdown:hover .cs-drop-ul,
.cs-dropdown:focus-within .cs-drop-ul {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
}

.cs-dropdown .cs-drop-icon {
  width: 0.9375rem;
  height: auto;
  display: inline-block;
  margin-left: 0.25rem;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.cs-dropdown:hover .cs-drop-icon,
.cs-dropdown:focus-within .cs-drop-icon {
  transform: rotate(180deg);
}

.cs-drop-ul {
  min-width: 12.5rem;
  margin: 0;
  padding: 0.5rem 0;
  background-color: #fff;
  box-shadow: var(--cardShadow);
  opacity: 0;
  border-bottom: 3px solid var(--accent);
  visibility: hidden;
  position: absolute;
  top: 100%;
  z-index: -100;
  overflow: hidden;
  transform: scaleY(0);
  transition: transform 0.3s, visibility 0.3s, opacity 0.3s;
  transform-origin: top;
  border-radius: 0.25rem;
}

.cs-drop-li {
  font-size: 1rem;
  text-decoration: none;
  list-style: none;
  width: 100%;
  height: auto;
  color: var(--bodyTextColor);
  opacity: 0;
  display: block;
  transform: translateY(-0.625rem);
  transition: opacity 0.4s, transform 0.4s;
}

.cs-dropdown:hover .cs-drop-li,
.cs-dropdown:focus-within .cs-drop-li {
  opacity: 1;
  transform: translateY(0);
}

.cs-drop-li:nth-of-type(1) {
  transition-delay: 0.05s;
}

.cs-drop-li:nth-of-type(2) {
  transition-delay: 0.1s;
}

.cs-drop-li:nth-of-type(3) {
  transition-delay: 0.15s;
}

.cs-drop-li:nth-of-type(4) {
  transition-delay: 0.2s;
}

.cs-li-link.cs-drop-link {
  font-size: 1rem;
  line-height: 1.5em;
  text-decoration: none;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  color: var(--bodyTextColor);
  display: block;
  transition: color 0.3s, background-color 0.3s;
}

.cs-li-link.cs-drop-link:hover,
.cs-li-link.cs-drop-link:focus {
  background-color: var(--lightBg);
  color: var(--primary);
  outline: none;
}

.cs-li-link.cs-drop-link:before {
  display: none;
}

/* Enhanced Mobile Navigation */
@media only screen and (max-width: 64rem) {
  body.cs-nav-active {
    overflow: hidden;
  }
  
  #cs-navigation {
    padding: 0.75rem 1rem;
  }
  
  #cs-navigation .cs-logo {
    width: auto;
    max-width: 20.125rem;
    height: 3.5rem;
    margin: 0 auto 0 0;
  }
  
  #cs-navigation .cs-logo-text {
    font-size: 1.5rem;
  }
  
  #cs-navigation .cs-toggle {
    display: block;
    width: 3rem;
    height: 3rem;
    margin: 0 0 0 auto;
    background-color: transparent;
    border: none;
    border-radius: 0.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  #cs-navigation .cs-toggle:hover {
    background-color: rgba(46, 139, 87, 0.05);
  }
  
  #cs-navigation .cs-box {
    width: 1.75rem;
    height: 1rem;
    position: relative;
  }
  
  #cs-navigation .cs-line {
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
  }
  
  #cs-navigation .cs-line1 {
    top: 0;
    transition: transform 0.5s, top 0.3s, left 0.3s;
  }
  
  #cs-navigation .cs-line2 {
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    transition: top 0.3s, left 0.3s, transform 0.5s;
  }
  
  #cs-navigation .cs-line3 {
    bottom: 0;
    transition: bottom 0.3s, opacity 0.3s;
  }

  #cs-navigation.cs-active .cs-toggle {
    background-color: rgba(46, 139, 87, 0.1);
  }
  
  #cs-navigation.cs-active .cs-line1 {
    top: 50%;
    transform: translate(-50%, -50%) rotate(225deg);
    transition: transform 0.5s ease 0.1s, top 0.3s ease;
  }
  
  #cs-navigation.cs-active .cs-line2 {
    top: 50%;
    transform: translate(-50%, -50%) translateY(0) rotate(-225deg);
    transform-origin: center;
    transition: transform 0.5s ease 0.1s, top 0.3s ease;
  }
  
  #cs-navigation.cs-active .cs-line3 {
    opacity: 0;
    bottom: 100%;
    transition: bottom 0.3s ease, opacity 0.3s ease;
  }
  
  #cs-navigation .cs-ul-wrapper {
    width: 100%;
    height: auto;
    padding-bottom: 2.4em;
    background-color: #fff;
    box-shadow: inset rgba(0, 0, 0, 0.1) 0px 8px 24px;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: -1;
    overflow: hidden;
    transform: scaleY(0);
    transition: transform 0.4s, opacity 0.3s;
    transform-origin: top;
    max-height: 0;
  }
  
  #cs-navigation.cs-active .cs-ul-wrapper {
    opacity: 1;
    transform: scaleY(1);
    max-height: 100vh;
    overflow-y: auto;
  }
  
  #cs-navigation .cs-ul {
    width: 100%;
    height: auto;
    max-height: 65vh;
    margin: 0;
    padding: 3rem 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.25rem;
    overflow: auto;
  }
  
  #cs-navigation .cs-li {
    text-align: center;
    list-style: none;
    width: 100%;
    margin-right: 0;
    padding: 0;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }
  
  #cs-navigation.cs-active .cs-li {
    transform: translateY(0);
    opacity: 1;
  }
  
  #cs-navigation.cs-active .cs-li:nth-child(1) {
    transition-delay: 0.1s;
  }
  
  #cs-navigation.cs-active .cs-li:nth-child(2) {
    transition-delay: 0.15s;
  }
  
  #cs-navigation.cs-active .cs-li:nth-child(3) {
    transition-delay: 0.2s;
  }
  
  #cs-navigation.cs-active .cs-li:nth-child(4) {
    transition-delay: 0.25s;
  }
  
  #cs-navigation .cs-li-link {
    font-size: 1.25rem;
    line-height: 1.2em;
    text-decoration: none;
    margin: 0;
    color: var(--headerColor);
    display: inline-block;
    position: relative;
    font-weight: 600;
    padding: 0.75rem 1rem;
  }
  
  #cs-navigation .cs-li-link:before {
    display: none;
  }
  
  #cs-navigation .cs-li-link.cs-active {
    color: var(--primary);
  }
  
  #cs-navigation .cs-nav-button {
    display: none;
  }
  
  #cs-navigation .cs-dropdown {
    position: relative;
  }
  
  #cs-navigation .cs-dropdown .cs-drop-icon {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
  }
  
  #cs-navigation .cs-dropdown.cs-active .cs-drop-icon {
    transform: rotate(180deg);
  }
  
  #cs-navigation .cs-dropdown.cs-active .cs-drop-ul {
    height: auto;
    margin: 0.75rem 0 0 0;
    padding: 0.75rem 0;
    opacity: 1;
    visibility: visible;
    max-height: 500px;
  }
  
  #cs-navigation .cs-drop-ul {
    width: 100%;
    height: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
    background-color: var(--lightBg);
    opacity: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
    position: static;
    transform: none;
    transition: height 0.3s, max-height 0.5s ease, opacity 0.3s, visibility 0.3s, padding 0.3s, margin 0.3s;
    border-radius: 0.5rem;
  }
  
  #cs-navigation .cs-drop-li {
    opacity: 1;
    transform: none;
  }
  
  #cs-navigation .cs-li-link.cs-drop-link {
    font-size: 1.125rem;
    padding: 0.5rem 1rem;
  }
}

/* Hero Section - Concrete Construction Themed */
#hero {
  text-align: center;
  padding: clamp(9rem, 25vw, 12rem) 1rem clamp(8rem, 12vw, 10rem);
  position: relative;
  z-index: 1;
}

#hero .cs-background {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
}

#hero .cs-background:before {
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(46, 139, 87, 0.85), rgba(46, 139, 87, 0.85));
  opacity: 1;
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

#hero .cs-background img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

#hero .cs-container {
  width: 100%;
  max-width: 67.5rem;
  margin: auto;
}

#hero .cs-title {
  font-size: clamp(2.4375rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2em;
  text-align: center;
  max-width: 52rem;
  margin: 0 auto clamp(1rem, 4vw, 1.5rem);
  color: #fff;
  position: relative;
}

#hero .cs-title:after {
  content: "";
  width: 6.25rem;
  height: 0.5rem;
  margin: clamp(1rem, 4vw, 1.5rem) auto clamp(1rem, 4vw, 1.5rem);
  background: var(--accent);
  opacity: 1;
  position: relative;
  display: block;
  border-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(249, 168, 38, 0.3);
}

#hero .cs-text {
  font-size: clamp(1rem, 1.8vw, 1.375rem);
  line-height: 1.5em;
  text-align: center;
  width: 100%;
  max-width: clamp(29rem, 60vw, 50rem);
  margin: 0 auto;
  margin-bottom: clamp(2.5rem, 4vw, 3rem);
  color: #fff;
}

#hero .cs-button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

#hero .cs-button-solid {
  position: relative;
  overflow: hidden;
}

#hero .cs-button-solid:after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  z-index: -1;
  transition: left 0.5s ease;
}

#hero .cs-button-solid:hover:after {
  left: 100%;
}

#hero .cs-button-transparent {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  position: relative;
  overflow: hidden;
}

#hero .cs-button-transparent:after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  z-index: -1;
  transition: left 0.5s ease;
}

#hero .cs-button-transparent:hover:after {
  left: 100%;
}

#hero .cs-button-transparent:hover {
  background-color: #fff;
  color: var(--primary);
}

/* Main Services Section */
#main-services {
  padding: var(--sectionPadding);
  background-color: var(--lightBg);
}

#main-services .cs-container {
  width: 100%;
  max-width: 80rem;
  margin: auto;
}

#main-services .cs-content {
  text-align: center;
  width: 100%;
  max-width: 50rem;
  margin: 0 auto 3.5rem;
}

#main-services .cs-service-cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
}

#main-services .cs-service-card {
  grid-column: span 12;
  padding: 2.5rem;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: var(--cardShadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 4px solid transparent;
}

#main-services .cs-service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hoverShadow);
  border-bottom-color: var(--accent);
}

#main-services .cs-service-icon {
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(46, 139, 87, 0.1);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

#main-services .cs-service-card:hover .cs-service-icon {
  transform: scale(1.1);
  background-color: rgba(46, 139, 87, 0.15);
}

#main-services .cs-service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--headerColor);
}

#main-services .cs-service-description {
  margin-bottom: 1.5rem;
  color: var(--bodyTextColor);
}

#main-services .cs-service-benefits {
  margin: 0 0 2rem 0;
  padding: 0;
  list-style-position: inside;
}

#main-services .cs-service-benefits li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
  list-style: none;
}

#main-services .cs-service-benefits li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--accent);
  border-radius: 50%;
}

#main-services .cs-service-button {
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  text-align: center;
  color: #fff;
  background-color: var(--accent);
  border-radius: 0.25rem;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: var(--buttonShadow);
  position: relative;
  overflow: hidden;
}

#main-services .cs-service-button:hover {
  background-color: var(--accentLight);
  transform: translateY(-3px);
  box-shadow: var(--hoverShadow);
}

#main-services .cs-service-button:after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
  transition: left 0.5s ease;
}

#main-services .cs-service-button:hover:after {
  left: 100%;
}

@media (min-width: 48rem) {
  #main-services .cs-service-card {
    grid-column: span 6;
  }
}

@media (min-width: 64rem) {
  #main-services .cs-service-card {
    grid-column: span 3;
  }
}

/* Foundation Details Section - Fixed for Mobile */
#foundation-details {
  padding: var(--sectionPadding);
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

#foundation-details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/patterns/concrete-pattern-light.png');
  background-size: 200px;
  background-repeat: repeat;
  opacity: 0.05;
  z-index: 0;
}

#foundation-details .cs-container {
  width: 100%;
  max-width: 80rem;
  margin: auto;
  position: relative;
  z-index: 1;
}

#foundation-details .cs-content {
  text-align: center;
  max-width: 50rem;
  margin: 0 auto 3rem;
}

#foundation-details .cs-underpinning-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: flex-start; /* Changed from center to prevent stretching */
}

#foundation-details .cs-underpinning-image {
  grid-column: span 12;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--cardShadow);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 6px solid #fff;
  height: auto; /* Allow height to be determined by content */
}

#foundation-details .cs-underpinning-image:hover {
  transform: translateY(-8px);
  box-shadow: var(--hoverShadow);
}

#foundation-details .cs-underpinning-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

#foundation-details .cs-underpinning-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  aspect-ratio: 16/9; /* Add aspect ratio to maintain consistent image dimensions */
}

#foundation-details .cs-underpinning-image:hover img {
  transform: scale(1.05);
}

#foundation-details .cs-underpinning-content {
  grid-column: span 12;
  position: relative;
}

#foundation-details .cs-subtitle {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

#foundation-details .cs-subtitle::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 3rem;
  height: 3px;
  background-color: var(--accent);
  border-radius: 1.5px;
}

#foundation-details .cs-process-list {
  margin: 0 0 2rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#foundation-details .cs-process-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background-color: var(--lightBg);
  border-radius: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

#foundation-details .cs-process-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.03);
  transition: width 0.3s ease;
  z-index: 0;
}

#foundation-details .cs-process-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--cardShadow);
  border-left-color: var(--accent);
}

#foundation-details .cs-process-item:hover::before {
  width: 100%;
}

#foundation-details .cs-process-number {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem; /* Add min-width to prevent shrinking */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.3s ease, background-color 0.3s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#foundation-details .cs-process-item:hover .cs-process-number {
  transform: scale(1.1);
  background-color: var(--accent);
}

#foundation-details .cs-process-text {
  flex: 1;
  position: relative;
  z-index: 1;
}

#foundation-details .cs-process-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--headerColor);
  transition: color 0.3s ease;
}

#foundation-details .cs-process-item:hover .cs-process-text strong {
  color: var(--primary);
}

#foundation-details .cs-underpinning-benefits {
  background-color: var(--primary);
  color: #fff;
  padding: 1.75rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(46, 139, 87, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#foundation-details .cs-underpinning-benefits:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(46, 139, 87, 0.2);
}

#foundation-details .cs-benefits-list {
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  list-style-type: none;
}

#foundation-details .cs-benefits-list li {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding-left: 1.75rem;
}

#foundation-details .cs-benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: bold;
}

#foundation-details .cs-button-solid {
  margin: 0 auto;
  display: block;
  max-width: 20rem;
  position: relative;
  overflow: hidden;
}

/* Tablet and desktop view */
@media (min-width: 64rem) {
  #foundation-details .cs-underpinning-grid {
    align-items: center;
  }
  
  #foundation-details .cs-underpinning-image {
    grid-column: span 5;
  }
  
  #foundation-details .cs-underpinning-content {
    grid-column: span 7;
  }
  
  #foundation-details .cs-button-solid {
    margin: 0;
  }
}

/* Small mobile devices */
@media (max-width: 30rem) {
  #foundation-details .cs-process-item {
    padding: 1rem;
  }
  
  #foundation-details .cs-process-number {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    font-size: 0.9rem;
  }
  
  #foundation-details .cs-underpinning-benefits {
    padding: 1.25rem;
  }
}

/* Technical Excellence Section - Fixed for Mobile */
#technical-excellence {
  padding: var(--sectionPadding);
  background-color: var(--lightBg);
  position: relative;
  overflow: hidden;
}

#technical-excellence .cs-container {
  width: 100%;
  max-width: 80rem;
  margin: auto;
  position: relative;
  z-index: 1;
}

#technical-excellence .cs-content {
  text-align: center;
  max-width: 50rem;
  margin: 0 auto 3rem;
}

#technical-excellence .cs-systems-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

#technical-excellence .cs-system-item {
  grid-column: span 12;
  background-color: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--cardShadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 4px solid transparent;
  display: flex;
  flex-direction: column; /* Use column layout for mobile */
}

#technical-excellence .cs-system-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--hoverShadow);
  border-bottom-color: var(--accent);
}

#technical-excellence .cs-system-title {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1.5rem;
  margin: 0;
  color: #fff;
  background-color: var(--primary);
  position: relative;
  z-index: 1; /* Ensure the title is above other elements */
}

#technical-excellence .cs-system-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  width: 5rem;
  height: 3px;
  background-color: var(--accent);
}

#technical-excellence .cs-system-content {
  display: flex;
  flex-direction: column;
}

#technical-excellence .cs-system-image {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

#technical-excellence .cs-system-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

#technical-excellence .cs-system-item:hover .cs-system-image img {
  transform: scale(1.05);
}

#technical-excellence .cs-system-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  z-index: 2;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

#technical-excellence .cs-system-details {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#technical-excellence .cs-system-description {
  margin-bottom: 1.25rem;
  font-weight: 600;
  color: var(--headerColor);
  font-size: 1.1rem;
  line-height: 1.5;
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  background-color: rgba(46, 139, 87, 0.05);
  padding: 1rem;
  border-radius: 0 0.25rem 0.25rem 0;
}

#technical-excellence .cs-system-specs {
  margin: 0 0 1.5rem 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr; /* Single column for mobile */
  gap: 0.75rem;
}

#technical-excellence .cs-system-specs li {
  margin-bottom: 0.5rem;
  padding-left: 1.75rem;
  position: relative;
}

#technical-excellence .cs-system-specs li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: bold;
}

#technical-excellence .cs-system-note {
  font-size: 0.95rem;
  font-style: italic;
  background-color: rgba(74, 101, 114, 0.1);
  padding: 1rem;
  border-left: 3px solid var(--secondary);
  border-radius: 0 0.25rem 0.25rem 0;
  position: relative;
  margin-top: auto; /* Push to bottom of container */
}

/* Tablet devices */
@media (min-width: 48rem) {
  #technical-excellence .cs-system-specs {
    grid-template-columns: repeat(2, 1fr); /* Two columns for tablets */
  }
}

/* Desktop devices */
@media (min-width: 64rem) {
  #technical-excellence .cs-system-item {
    grid-column: span 6;
  }
  
  #technical-excellence .cs-system-content {
    flex-direction: row;
    min-height: auto; /* Remove fixed height */
  }
  
  #technical-excellence .cs-system-image {
    width: 40%;
    padding-bottom: 0;
    height: auto;
    min-height: 100%; /* Ensure image takes full height */
  }
  
  #technical-excellence .cs-system-image img {
    position: absolute;
    height: 100%;
  }
  
  #technical-excellence .cs-system-details {
    width: 60%;
  }
  
  #technical-excellence .cs-system-specs {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Small mobile devices */
@media (max-width: 30rem) {
  #technical-excellence .cs-system-title {
    font-size: 1.25rem;
    padding: 1.25rem;
  }
  
  #technical-excellence .cs-system-details {
    padding: 1.25rem;
  }
  
  #technical-excellence .cs-system-description {
    font-size: 1rem;
    padding: 0.75rem;
  }
  
  #technical-excellence .cs-system-note {
    padding: 0.75rem;
  }
}
/* Case Studies Section */
#case-studies {
  padding: var(--sectionPadding);
  background-color: #fff;
  position: relative;
}

#case-studies .cs-container {
  width: 100%;
  max-width: 80rem;
  margin: auto;
}

#case-studies .cs-content {
  text-align: center;
  max-width: 50rem;
  margin: 0 auto 3.5rem;
}

#case-studies .cs-case-studies {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem;
}

#case-studies .cs-case-study {
  grid-column: span 12;
  background-color: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--cardShadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#case-studies .cs-case-study:hover {
  transform: translateY(-8px);
  box-shadow: var(--hoverShadow);
}

#case-studies .cs-before-after {
  position: relative;
  height: 15rem;
  display: flex;
  flex-direction: column;
}

#case-studies .cs-before,
#case-studies .cs-after {
  position: relative;
  height: 50%;
  overflow: hidden;
}

#case-studies .cs-before img,
#case-studies .cs-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

#case-studies .cs-case-study:hover .cs-before img,
#case-studies .cs-case-study:hover .cs-after img {
  transform: scale(1.05);
}

#case-studies .cs-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background-color: var(--primary);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 1;
}

#case-studies .cs-after .cs-tag {
  background-color: var(--accent);
}

#case-studies .cs-case-content {
  padding: 1.75rem;
}

#case-studies .cs-case-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--headerColor);
}

#case-studies .cs-case-details {
  margin: 0 0 1.5rem 0;
  padding: 0;
  list-style: none;
}

#case-studies .cs-case-details li {
  margin-bottom: 0.75rem;
  padding-left: 0;
}

#case-studies .cs-case-details li strong {
  display: inline-block;
  width: 6rem;
  color: var(--primary);
}

#case-studies .cs-case-link {
  display: inline-flex;
  align-items: center;
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

#case-studies .cs-case-link:hover {
  color: var(--accent);
}

@media (min-width: 48rem) {
  #case-studies .cs-case-study {
    grid-column: span 6;
  }
  
  #case-studies .cs-before-after {
    flex-direction: row;
    height: 12rem;
  }
  
  #case-studies .cs-before,
  #case-studies .cs-after {
    width: 50%;
    height: 100%;
  }
}

/* Testimonials Section */
#testimonials {
  padding: var(--sectionPadding);
  background-color: var(--lightBg);
  position: relative;
  overflow: hidden;
}

#testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/patterns/quote-pattern.png');
  background-size: 300px;
  background-repeat: repeat;
  opacity: 0.03;
  z-index: 0;
}

#testimonials .cs-container {
  width: 100%;
  max-width: 80rem;
  margin: auto;
  position: relative;
  z-index: 1;
}

#testimonials .cs-content {
  text-align: center;
  max-width: 50rem;
  margin: 0 auto 3.5rem;
}

#testimonials .cs-testimonial-slider {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

#testimonials .cs-testimonial {
  grid-column: span 12;
  padding: 2.5rem;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: var(--cardShadow);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid transparent;
  overflow: hidden;
}

#testimonials .cs-testimonial::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(46, 139, 87, 0.03);
  transition: width 0.3s ease;
  z-index: 0;
}

#testimonials .cs-testimonial:hover {
  transform: translateY(-8px);
  box-shadow: var(--hoverShadow);
  border-top-color: var(--accent);
}

#testimonials .cs-testimonial:hover::before {
  width: 100%;
}

#testimonials .cs-testimonial-content {
  position: relative;
  z-index: 1;
}

#testimonials .cs-quote {
  font-size: 6rem;
  line-height: 1;
  font-family: Georgia, serif;
  position: absolute;
  top: -2.5rem;
  left: -1rem;
  opacity: 0.1;
  color: var(--primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#testimonials .cs-testimonial:hover .cs-quote {
  transform: scale(1.1);
  opacity: 0.15;
}

#testimonials .cs-testimonial-text {
  font-size: 1.125rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--bodyTextColor);
  position: relative;
  z-index: 1;
}

#testimonials .cs-author {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

#testimonials .cs-author::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3rem;
  height: 3px;
  background-color: var(--accent);
}

#testimonials .cs-author-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

#testimonials .cs-author-location {
  font-size: 0.875rem;
  color: var(--bodyTextColor);
  display: flex;
  align-items: center;
}

#testimonials .cs-author-location::before {
  content: "📍";
  margin-right: 0.5rem;
  font-size: 1rem;
}

@media (min-width: 48rem) {
  #testimonials .cs-testimonial {
    grid-column: span 6;
  }
}

@media (min-width: 64rem) {
  #testimonials .cs-testimonial {
    grid-column: span 4;
  }
}

/* Why Choose Us Section */
#why-choose {
  padding: var(--sectionPadding);
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

#why-choose::after {
  content: "";
  position: absolute;
  bottom: -10rem;
  right: -10rem;
  width: 20rem;
  height: 20rem;
  background-color: var(--primary);
  opacity: 0.03;
  border-radius: 50%;
  z-index: 0;
}

#why-choose::before {
  content: "";
  position: absolute;
  top: -5rem;
  left: -5rem;
  width: 10rem;
  height: 10rem;
  background-color: var(--accent);
  opacity: 0.03;
  border-radius: 50%;
  z-index: 0;
}

#why-choose .cs-container {
  width: 100%;
  max-width: 80rem;
  margin: auto;
  position: relative;
  z-index: 1;
}

#why-choose .cs-content {
  text-align: center;
  max-width: 50rem;
  margin: 0 auto 3.5rem;
}

#why-choose .cs-advantages {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

#why-choose .cs-advantage {
  grid-column: span 12;
  padding: 2.5rem;
  background-color: var(--lightBg);
  border-radius: 0.5rem;
  box-shadow: var(--cardShadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  border-top: 3px solid transparent;
}

#why-choose .cs-advantage:hover {
  transform: translateY(-5px);
  box-shadow: var(--hoverShadow);
  border-top-color: var(--accent);
}

#why-choose .cs-advantage-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(46, 139, 87, 0.1);
  border-radius: 50%;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

#why-choose .cs-advantage:hover .cs-advantage-icon {
  transform: scale(1.1);
  background-color: rgba(46, 139, 87, 0.15);
}

#why-choose .cs-advantage-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--headerColor);
}

#why-choose .cs-advantage-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bodyTextColor);
  margin: 0;
}

@media (min-width: 48rem) {
  #why-choose .cs-advantage {
    grid-column: span 6;
  }
}

@media (min-width: 64rem) {
  #why-choose .cs-advantage {
    grid-column: span 3;
  }
}

/* FAQ Section */
#faq {
  padding: var(--sectionPadding);
  background-color: var(--darkBg);
  color: #fff;
  position: relative;
}

#faq .cs-container {
  width: 100%;
  max-width: 80rem;
  margin: auto;
}

#faq .cs-content {
  text-align: center;
  max-width: 50rem;
  margin: 0 auto 3.5rem;
}

#faq .cs-title {
  color: #fff;
}

#faq .cs-text {
  color: rgba(255, 255, 255, 0.8);
}

#faq .cs-faq-list {
  max-width: 50rem;
  margin: 0 auto;
}

#faq .cs-faq-item {
  margin-bottom: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border-left: 3px solid transparent;
}

#faq .cs-faq-item:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.08);
  border-left-color: var(--accent);
}

#faq .cs-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  transition: color 0.3s ease;
}

#faq .cs-faq-question:hover {
  color: var(--accent);
}

#faq .cs-faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
  transition: transform 0.3s ease;
}

#faq .cs-faq-item:hover .cs-faq-icon {
  transform: rotate(45deg);
}

#faq .cs-faq-item.active .cs-faq-icon {
  transform: rotate(180deg);
}

#faq .cs-faq-icon::before,
#faq .cs-faq-icon::after {
  content: "";
  position: absolute;
  background-color: var(--accent);
  transition: all 0.3s ease;
}

#faq .cs-faq-icon::before {
  width: 1rem;
  height: 0.125rem;
}

#faq .cs-faq-icon::after {
  width: 0.125rem;
  height: 1rem;
}

#faq .cs-faq-item.active .cs-faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

#faq .cs-faq-answer {
  padding: 0 1.5rem;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.3s, opacity 0.3s, padding 0.3s;
}

#faq .cs-faq-item.active .cs-faq-answer {
  padding: 0 1.5rem 1.5rem;
  height: auto;
  opacity: 1;
}

#faq .cs-faq-answer-text {
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

#faq .cs-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  fill: #fff;
  height: 3rem;
}

/* CTA Section */
#cta {
  padding: 4rem 1rem;
  background-color: var(--primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/patterns/concrete-pattern-light.png');
  background-size: 300px;
  background-repeat: repeat;
  opacity: 0.05;
}

#cta .cs-container {
  width: 100%;
  max-width: 80rem;
  margin: auto;
  position: relative;
  z-index: 1;
}

#cta .cs-cta-content {
  text-align: center;
  max-width: 50rem;
  margin: 0 auto;
}

#cta .cs-cta-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: 1.25rem;
}

#cta .cs-cta-text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

#cta .cs-cta-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

#cta .cs-cta-benefit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

#cta .cs-cta-benefit svg {
  flex-shrink: 0;
}

#cta .cs-cta-benefit:hover {
  transform: translateY(-3px);
  background-color: var(--accent);
}

#cta .cs-cta-button {
  display: inline-block;
  background-color: #fff;
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 0.25rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

#cta .cs-cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(46, 139, 87, 0.1);
  transition: left 0.5s ease;
  z-index: 1;
}

#cta .cs-cta-button:hover::before {
  left: 100%;
}

#cta .cs-cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
#contact {
  padding: var(--sectionPadding);
  background-color: #fff;
}

#contact .cs-container {
  width: 100%;
  max-width: 80rem;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

#contact .cs-content {
  text-align: left;
  max-width: 100%;
  width: 100%;
}

#contact .cs-title {
  text-align: center;
  margin: 0 auto 1rem;
}

#contact .cs-text {
  text-align: center;
  margin: 0 auto 2rem;
}

#contact .cs-form {
  width: 100%;
  padding: 2.5rem;
  background-color: var(--lightBg);
  border-radius: 0.5rem;
  box-shadow: var(--cardShadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contact .cs-form:hover {
  transform: translateY(-5px);
  box-shadow: var(--hoverShadow);
}

#contact .cs-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--headerColor);
}

#contact .cs-form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

#contact .cs-label {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  color: var(--bodyTextColor);
  pointer-events: none;
  transition: all 0.3s ease;
  background-color: var(--lightBg);
  padding: 0 0.25rem;
  z-index: 1;
}

#contact input:focus + .cs-label,
#contact textarea:focus + .cs-label,
#contact select:focus + .cs-label,
#contact input:not(:placeholder-shown) + .cs-label,
#contact textarea:not(:placeholder-shown) + .cs-label,
#contact select:not([value=""]) + .cs-label {
  transform: translateY(-1.25rem) scale(0.85);
  color: var(--primary);
}

#contact .cs-input,
#contact .cs-textarea,
#contact .cs-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #fff;
  border: 1px solid var(--borderColor);
  border-radius: 0.25rem;
  font-size: 1rem;
  font-family: var(--bodyFont);
  color: var(--bodyTextColor);
  transition: all 0.3s ease;
  position: relative;
  z-index: 0;
}

#contact .cs-input:focus,
#contact .cs-textarea:focus,
#contact .cs-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

#contact .cs-textarea {
  resize: vertical;
  min-height: 8rem;
}

#contact .cs-button {
  width: 100%;
  padding: 1rem;
  background-color: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#contact .cs-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
  transition: left 0.5s ease;
}

#contact .cs-button:hover::after {
  left: 100%;
}

#contact .cs-button:hover {
  background-color: var(--accentLight);
  transform: translateY(-2px);
  box-shadow: var(--buttonShadow);
}

#contact .cs-contact-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--borderColor);
}

#contact .cs-contact-header {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--primary);
  letter-spacing: 0.05em;
}

#contact .cs-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

#contact .cs-contact-item:hover {
  transform: translateX(5px);
}

#contact .cs-contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(46, 139, 87, 0.1);
  border-radius: 50%;
  color: var(--primary);
  transition: background-color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

#contact .cs-contact-item:hover .cs-contact-icon {
  background-color: rgba(46, 139, 87, 0.2);
  transform: scale(1.1);
}

#contact .cs-contact-link {
  color: var(--bodyTextColor);
  transition: color 0.3s ease;
  word-break: break-word;
}

#contact .cs-contact-link:hover {
  color: var(--primary);
}

/* Media Queries for Contact Section */
@media (min-width: 48rem) {
  #contact .cs-container {
    flex-direction: row;
    flex-wrap: wrap;
  }

  #contact .cs-content {
    flex: 1;
    min-width: 300px;
    max-width: 40%;
  }
  
  #contact .cs-form {
    flex: 1;
    min-width: 300px;
  }
}

@media (max-width: 48rem) {
  #contact .cs-content {
    width: 100%;
  }
  
  #contact .cs-form {
    width: 100%;
  }
}

@media (max-width: 30rem) {
  #contact .cs-form {
    padding: 1.5rem;
  }
}

/* Footer */
#footer {
  padding: 4rem 1rem 1.5rem;
  background-color: var(--darkBg);
  color: #fff;
  position: relative;
  overflow: hidden;
}

#footer::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: var(--primary);
  opacity: 0.03;
  border-radius: 50%;
  transform: translate(50%, 50%);
}

#footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: var(--accent);
  opacity: 0.03;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

#footer .cs-container {
  width: 100%;
  max-width: 80rem;
  margin: auto;
  position: relative;
  z-index: 1;
}

#footer .cs-footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

#footer .cs-footer-brand {
  grid-column: span 12;
}

#footer .cs-logo {
  display: block;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

#footer .cs-logo:hover {
  transform: translateY(-3px);
}

#footer .cs-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

#footer .cs-footer-text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 25rem;
}

#footer .cs-footer-nav {
  grid-column: span 6;
}

#footer .cs-footer-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
  position: relative;
  display: inline-block;
}

#footer .cs-footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 2rem;
  height: 2px;
  background-color: var(--accent);
}

#footer .cs-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .cs-footer-link {
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}

#footer .cs-footer-link:hover {
  transform: translateX(5px);
}

#footer .cs-footer-link a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

#footer .cs-footer-link a:hover {
  color: #fff;
}

#footer .cs-footer-link a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -3px;
  left: 0;
  background-color: var(--accent);
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

#footer .cs-footer-link a:hover::before {
  visibility: visible;
  width: 100%;
}

#footer .cs-copyright {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

@media (min-width: 48rem) {
  #footer .cs-footer-brand {
    grid-column: span 6;
  }
  
  #footer .cs-footer-nav {
    grid-column: span 3;
  }
}

@media (min-width: 64rem) {
  #footer .cs-footer-brand {
    grid-column: span 6;
  }
  
  #footer .cs-footer-nav {
    grid-column: span 2;
  }
}

/* Quick Call Button */
.cs-quick-call {
  position: fixed;
  bottom: 2rem;
  right: 1rem;
  z-index: 9999;
  transition: all 0.3s ease;
}

.cs-quick-call-button {
  width: 3.75rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(249, 168, 38, 0.5);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.cs-quick-call-button:hover, 
.cs-quick-call-button:focus, 
.cs-quick-call-button:active {
  background-color: var(--accentLight);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(249, 168, 38, 0.6);
}

.cs-quick-call-button svg {
  width: 1.75rem;
  height: 1.75rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Call button text tooltip */
.cs-quick-call-button::before {
  content: "Free Quote";
  position: absolute;
  top: -3.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(46, 139, 87, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Arrow for tooltip */
.cs-quick-call-button::after {
  content: "";
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(46, 139, 87, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cs-quick-call-button:hover::before,
.cs-quick-call-button:hover::after {
  opacity: 1;
}

/* Vibrate effect when hovered */
@keyframes vibrate {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(-2deg); }
  20% { transform: rotate(2deg); }
  30% { transform: rotate(0deg); }
  40% { transform: rotate(2deg); }
  50% { transform: rotate(-2deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.cs-quick-call-button:hover svg {
  animation: vibrate 0.5s ease;
}

/* Improved pulse animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 6px 16px rgba(249, 168, 38, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(249, 168, 38, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 6px 16px rgba(249, 168, 38, 0.5);
  }
}

/* Make button only visible on mobile/tablet */
@media (min-width: 64rem) {
  .cs-quick-call {
    display: none;
  }
}

/* Adjust size for very small screens */
@media (max-width: 340px) {
  .cs-quick-call-button {
    width: 3.25rem;
    height: 3.25rem;
  }
  
  .cs-quick-call-button svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* Logo Text */
.cs-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}

#cs-navigation .cs-logo-text {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin: 0;
  position: relative;
}

#cs-navigation .cs-logo-text:after {
  content: "CONCRETE SPECIALISTS";
  display: block;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  margin-top: -0.3rem;
}

@media (max-width: 768px) {
  .cs-logo-text {
    font-size: 1.5rem;
  }
  
  #cs-navigation .cs-logo-text:after {
    font-size: 0.4rem;
    margin-top: -0.4rem;
  }
}

/* Utility Classes */
.cs-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 1rem;
}

.cs-text-center {
  text-align: center;
}

.cs-text-primary {
  color: var(--primary);
}

.cs-text-secondary {
  color: var(--secondary);
}

.cs-text-accent {
  color: var(--accent);
}

.cs-bg-light {
  background-color: var(--lightBg);
}

.cs-mb-1 {
  margin-bottom: 0.5rem;
}

.cs-mb-2 {
  margin-bottom: 1rem;
}

.cs-mb-3 {
  margin-bottom: 1.5rem;
}

.cs-mb-4 {
  margin-bottom: 2rem;
}

.cs-mb-5 {
  margin-bottom: 3rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* JavaScript Interaction Styles */
body.cs-nav-active {
  overflow: hidden;
}

/* Process item stagger animation */
#foundation-details .cs-process-item {
  opacity: 1; /* Make items visible by default */
  transform: translateY(0); /* Reset transform by default */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}
.animate-on-scroll #foundation-details .cs-process-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.animate-on-scroll #foundation-details .cs-process-item.cs-active {
  opacity: 1;
  transform: translateY(0);
}
#foundation-details .cs-process-item.cs-active {
  opacity: 1;
  transform: translateY(0);
}

#foundation-details .cs-process-item:nth-child(1).cs-active {
  transition-delay: 0.1s;
}

#foundation-details .cs-process-item:nth-child(2).cs-active {
  transition-delay: 0.2s;
}

#foundation-details .cs-process-item:nth-child(3).cs-active {
  transition-delay: 0.3s;
}

#foundation-details .cs-process-item:nth-child(4).cs-active {
  transition-delay: 0.4s;
}

#foundation-details .cs-process-item:nth-child(5).cs-active {
  transition-delay: 0.5s;
}

/* Animation for system items */
#technical-excellence .cs-system-item {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll #technical-excellence .cs-system-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll #technical-excellence .cs-system-item.cs-active {
  opacity: 1;
  transform: translateY(0);
}

#technical-excellence .cs-system-item.cs-active {
  opacity: 1;
  transform: translateY(0);
}

#technical-excellence .cs-system-item:nth-child(2).cs-active {
  transition-delay: 0.2s;
}

/* Quote animation */
@keyframes floatQuote {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(3deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

#testimonials .cs-testimonial:hover .cs-quote {
  animation: floatQuote 3s ease-in-out infinite;
}

/* Image hover effect */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 139, 87, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(46, 139, 87, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 139, 87, 0);
  }
}

#foundation-details .cs-underpinning-image:hover {
  animation: pulseGlow 2s infinite;
}