/* Contact Page Styles */
:root {
    --primary-green: #4CAF50;
    --dark-green: #388e3c;
    --heading-green: #2e7d32;
    --cta-green: #5aa73f;
    --button-hover: #4a9235;
    --light-green: #c8e6c9;
    --white: #ffffff;
    --off-white: #f9f9f9;
    --light-gray: #f5f5f5;
    --lighter-gray: #f0f0f0;
    --medium-gray: #e0e0e0;
    --border-gray: #ddd;
    --text-gray: #555;
    --dark-gray: #333;
    --shadow-light: rgba(0,0,0,0.08);
    --shadow-medium: rgba(0,0,0,0.15);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--off-white);
    color: var(--dark-gray);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  
  h1, h2, h3 {
    font-family: 'Roboto Slab', serif;
    color: var(--heading-green);
    font-weight: 700;
    line-height: 1.3;
  }
  
  h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }
  
  h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
  }
  
  h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-green);
    border-radius: 2px;
  }
  
  h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }
  
  p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
  }
  
  a {
    text-decoration: none;
    color: var(--dark-green);
    transition: color 0.3s ease;
  }
  
  a:hover {
    color: var(--button-hover);
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .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;
    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: #3e8e41;
  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;
  }
  
  .header-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;
  }
  
  .header-button.contact {
    background-color: #388e3c; 
    color: white;
  }
  
  .header-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  */
  
  /* Contact Hero Section */
  .contact-hero {
    background: linear-gradient(135deg, rgba(56, 142, 60, 0.9), rgba(76, 175, 80, 0.8)), 
                url('../Assets/roofing1.jpg') no-repeat center center/cover;
    height: 350px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
  }
  
  .contact-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .contact-hero h1 {
    color: var(--white);
    text-shadow: 0 2px 4px var(--shadow-medium);
  }
  
  .contact-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    text-shadow: 0 1px 2px var(--shadow-medium);
  }
  
  /* Contact Section */
  .contact-section {
    padding: 5rem 0;
    background-color: var(--white);
  }
  
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .contact-info {
    padding: 2rem;
    background-color: var(--off-white);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-light);
  }
  
  .contact-method {
    display: flex;
    margin-bottom: 2rem;
    align-items: flex-start;
  }
  
  .contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    color: var(--dark-green);
    font-size: 1.2rem;
  }
  
  .contact-details p {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
  }
  
  .contact-details a {
    color: var(--dark-green);
    font-weight: 500;
  }
  
  .hours {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem;
    background-color: var(--off-white);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-light);
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
  }
  
  .form-group textarea {
    resize: vertical;
    min-height: 120px;
  }
  
  .submit-btn {
    background-color: var(--cta-green);
    color: var(--white);
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 3px 6px var(--shadow-light);
  }
  
  .submit-btn:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px var(--shadow-medium);
  }
  
  /* Map Section */
  .map-section {
    padding: 3rem 0 5rem;
    background-color: var(--lighter-gray);
  }
  
  .map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-light);
  }
  
  .map-container iframe {
    display: block;
  }
  
  /* Responsive Styles */
  @media (max-width: 992px) {
    .contact-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    
    .contact-info,
    .contact-form {
      padding: 1.5rem;
    }
  }
  
  @media (max-width: 768px) {
    .contact-hero {
      height: 300px;
    }
    
    h1 {
      font-size: 2.4rem;
    }
    
    h2 {
      font-size: 2rem;
    }
    
    .contact-section {
      padding: 3rem 0;
    }
  }
  
  @media (max-width: 576px) {
    .contact-hero {
      height: 250px;
      padding: 0 1.5rem;
    }
    
    h1 {
      font-size: 2rem;
    }
    
    .contact-method {
      flex-direction: column;
    }
    
    .contact-icon {
      margin-right: 0;
      margin-bottom: 1rem;
    }
    
    .map-section {
      padding: 2rem 0 3rem;
    }
  }

  /* 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;
}
