/* Global Styles */
:root {
  --primary-green: #4CAF50;
  --dark-green: #388e3c;
  --heading-green: #388c30;
  --cta-green: #5aa73f;
  --button-hover: #4a9235;
  --about-bg: #6CC24A;
  --showcase-bg: #66bb6a;
  --nav-arrows: #2e7d32;
  --testimonial-subtext: #81C784;
  --inactive-dots: #c8e6c9;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --lighter-gray: #f0f0f0;
  --border-gray: #ddd;
  --placeholder-gray: #eee;
  --shadow-light: rgba(0,0,0,0.1);
  --shadow-medium: rgba(0,0,0,0.2);
  --black: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

@font-face {
  font-family: slab;
  src: url(fonts/Sancoale\ Slab\ W01\ Cond\ Medium.ttf);
}

body {
  background-color: var(--white);
  color: #333;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Roboto Slab', serif;
  color: var(--heading-green);
}

a {
  text-decoration: none;
  color: var(--dark-green);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.call-btn {
  background-color: var(--cta-green);
  color: var(--white);
}

.call-btn:hover {
  background-color: var(--button-hover);
}

.quote-btn {
  background-color: transparent;
  color: var(--cta-green);
  border: 2px solid var(--cta-green);
  margin-left: 15px;
}

.quote-btn:hover {
  background-color: var(--cta-green);
  color: var(--white);
}

/* Header Styles */
.header {
  width: 100%;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  position: sticky;
  top: 0;
  z-index: 2000;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 40px; /* space between logo and menu */
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 8rem; 
  margin-right: 10px;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar a {
  text-decoration: none;
  color: black;
  font-size: 15px;
  position: relative;
  font-weight: 100;
  padding: 5px 0;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Roboto Slab';
}

/* Main hover animation for navbar links */
.navbar > a:not(.dropdown > a):hover {
  color: #3e8e41; /* Slightly darker green on hover */
}

.navbar > a:not(.dropdown > a)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #3e8e41;
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar > a:not(.dropdown > a):hover::after {
  width: 100%;
  left: 0;
}

/* Dropdown specific styles */
.dropdown {
  position: relative;
}

.navbar .dropdown i {
  font-size: 12px;
  margin-left: 2px;
  position: relative;
  top: 0px;
  transition: transform 0.3s ease;
}

.dropdown:hover i {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
  min-width: 150px;
  z-index: 1000;
  border-radius: 4px;
  overflow: hidden;
  transform-origin: top center;
  animation: dropdownFadeIn 0.3s ease forwards;
}

@keyframes dropdownFadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.dropdown-content a {
  color: #4CAF50;
  padding: 10px 15px;
  display: block;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

/* Dropdown link hover animation */
.dropdown-content a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(76, 175, 80, 0.1);
  transition: width 0.3s ease;
  z-index: -1;
}

.dropdown-content a:hover {
  color: #388c30;
  padding-left: 20px;
}

.dropdown-content a:hover::after {
  width: 100%;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Active link style (optional) */
.navbar a.active {
color: #07ff0f;
font-weight: 500;
position: relative; /* Required for the pseudo-element */
}

/* Underline for active item */
.navbar a.active::after {
content: '';
position: absolute;
width: 100%;
height: 2px;
bottom: 0;
left: 0;
background-color: #6CC24A;
transform: scaleX(1); /* Fully visible */
transition: transform 0.3s ease; /* Smooth transition if you want hover effects */
}
.navbar a.active::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #3e8e41;
}

.button-wrapper {
  margin-left: auto; 
  display: flex;
  gap: 10px;
}

.button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px; 
  background-color: #f5f5f5; 
  color: black; 
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
  cursor: pointer;
  transition: all 0.3s ease;
}

.button.contact {
  background-color: #388e3c; 
  color: white;
}

.button:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
  transform: translateY(-2px);
}


.menu-icon {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #4CAF50;
}

.button-wrapper-mobile{
  display: none;
}

/* Responsive */
@media (max-width: 768px) {

  .button-wrapper-mobile{
    display: flex;
    gap: 15px;
  }

  .button-wrapper-mobile button{
   padding: 10px 20px;
   border: none;
   border-radius: 4px;
  }

  .header-button-mobile-call{
    background-color: #f5f5f5; 
    color: black; 
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    cursor: pointer;
  }

  .header-button-mobile-contact{
    background-color: #388e3c; 
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    cursor: pointer;
  }


  .left-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar, .header-buttons {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
  }

  .navbar.active, .header-buttons.active {
    display: flex;
  }

  .menu-icon {
    display: block;
    margin-left: auto;
  }

  .button-wrapper{
      display: none;
  }
}

/* header styling end  */

/* About Hero Section */
.about-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Assets/roofing2.jpg') no-repeat center center/cover;
  height: 400px;
  display: flex;
  align-items: center;
  color: var(--white);
  text-align: center;
  padding: 0 20px;
}

.about-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--white);
}

.about-hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* History Section */
.history-section {
  padding: 80px 5%;
}

.history-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 50px;
}

.history-image {
  flex: 1;
}

.history-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow-medium);
}

.history-content {
  flex: 1;
}

.history-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--heading-green);
}

.history-content p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .history-container{
    display: flex;
    flex-direction: column;
  }
}

/* Mission Section */
.mission-section {
  background-color: var(--lighter-gray);
  padding: 80px 5%;
}

.mission-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 50px;
}

.mission-content {
  flex: 1;
}

.mission-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--heading-green);
}

.mission-content p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.mission-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.value-card {
  background-color: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow-light);
  text-align: center;
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-card i {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 15px;
}

.value-card h3 {
  margin-bottom: 10px;
  color: var(--dark-green);
}

.mission-image {
  flex: 1;
}

.mission-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow-medium);
}

@media (max-width: 768px) {
  .mission-container{
    display: flex;
    flex-direction: column-reverse;
  }
}

/* Team Section */
.team-section {
  padding: 80px 5%;
  text-align: center;
}

.team-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.team-header p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 40px;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.member-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-light);
  transition: transform 0.3s ease;
}

.member-card:hover {
  transform: translateY(-10px);
}

.member-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.member-card h3 {
  margin: 20px 0 5px;
  color: var(--dark-green);
}

.position {
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: 15px;
}

.bio {
  padding: 0 20px 20px;
  color: #666;
}

/* Commitment Section */
.commitment-section {
  padding: 80px 5%;
  background-color: var(--about-bg);
  color: var(--white);
}

.commitment-container {
  max-width: 1200px;
  margin: 0 auto;
}

.commitment-container h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--white);
}

.commitment-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.commitment-text {
  flex: 1;
}

.commitment-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.commitment-text ul {
  list-style: none;
  margin: 30px 0;
}

.commitment-text li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  display: flex;
  align-items: flex-start;
}

.commitment-text li i {
  margin-right: 10px;
  color: var(--white);
}

.commitment-image {
  flex: 1;
}

.commitment-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow-medium);
}

@media (max-width: 768px) {
  .commitment-content{
    display: flex;
    flex-direction: column;
  }
}

/* CTA Section */
.cta-section {
  padding: 80px 5%;
  text-align: center;
  background-color: var(--white);
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-container h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--heading-green);
}

.cta-container p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* footer section start  */

footer {
  background-color: #72b85f;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-logo img {
  width: 120px;
  height: auto;
}

.footer-nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  font-weight: 100;
  font-size: 1rem;
  transition: color 0.3s ease;
  font-family: Arial, Helvetica, sans-serif;
}

.footer-nav a:hover {
  color: #dfffe0;
}

.footer-socials {
  display: flex;
  gap: 15px;
  align-items: center;
}

.footer-socials a {
  color: white;
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #dfffe0;
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
} 

/* Animation Keyframes */
@keyframes slideUp {
0% {
  opacity: 0;
  transform: translateY(50px);
}
100% {
  opacity: 1;
  transform: translateY(0);
}
}

/* Class to trigger animation */
.animate-on-scroll {
opacity: 0;
transform: translateY(50px);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
animation: slideUp 0.6s ease-out forwards;
}
