/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Color Scheme */
:root {
  --primary: #181a1d;
  --primary-dark: #3a3f39;
  --secondary: #3aa749;
  --accent: #f8f9fa;
  --dark: #212529;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--primary);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.logo span {
  color: #e3f2fd;
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary);
  list-style: none;
  min-width: 180px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 200;
  padding: 0.5rem 0;
  flex-direction: column;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.2rem;
  white-space: nowrap;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s;
}

.dropdown-menu li a:hover {
  background-color: var(--primary-dark);
  color: var(--secondary);
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
#hero-section {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 0;
  height: calc(100vh - 72px); /* 72px = header height (adjust if needed) */
  margin-top: 72px; /* offset for fixed header */
  background: var(--primary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 2;
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.5rem;
  margin: 1rem 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.btn, .hero button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1.25rem;
  background-color: #16a34a;
  color: white;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover, .hero button:hover {
  background-color: #15803d;
  transform: translateY(-3px);
}

.hero canvas {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
  display: block;
  pointer-events: none;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: var(--accent);
}

.learn-more {
    display: block;
    margin-top: 3rem; /* <--- Just change this number to make the gap bigger */
    color: var(--secondary);
    /* ... rest of styles */
}

/* Fix for turning cards into links */
a.service-card {
  display: block;        /* Makes the link behave like a box */
  text-decoration: none; /* Kills the blue underline */
  color: inherit;        /* Forces text to use your card colors, not blue link color */
  cursor: pointer;
}

/* Ensure the headings inside the link don't turn blue */
a.service-card h3 {
  color: var(--dark);
}



section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--dark);
}

/* About Section */
.about {
  padding: 5rem 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
  font-size: 1.3rem; /* Increases text size by about 10% */
}

/* --- Added Styles for Text and Lists --- */
.about-text p {
  margin-bottom: 1.5rem; /* Adds breathing room between paragraphs */
}

.about-text ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;    /* Adds the indentation back */
  list-style-type: disc; /* Ensures bullet points are visible */
}

.about-text li {
  margin-bottom: 0.5rem; /* Space between list items */
}

.about-text strong {
  color: var(--primary); /* Uses your site's main dark color for emphasis */
}
/* --------------------------------------- */

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background-color: var(--accent);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  text-align: center;
  padding: 2rem;
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: bold;
  color: var(--primary-dark);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.testimonial-nav button {
  background-color: transparent;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  margin: 0 1rem;
  transition: color 0.3s;
}

.testimonial-nav button:hover {
  color: var(--primary-dark);
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-info, .contact-form {
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info {
  background-color: var(--secondary);
  color: white;
}

.contact-info h3, .contact-form h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-icon {
  margin-right: 1rem;
  font-size: 1.2rem;
}

.contact-form {
  background-color: white;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button[type="submit"] {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

button[type="submit"]:hover {
  background-color: var(--primary-dark);
}

/* Team Section */
.team {
  padding: 5rem 0;
  background-color: #f9f9f9;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.team-member2 img {
  width: 100%;
  height: 350px; /* Uniform height for all photos */
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-member img:hover {
  transform: translateY(-5px);
}

.team-group-photo {
    margin-top: 3rem; /* Adds space between the headshots and the big photo */
    width: 100%;
    text-align: center;
}

.team-member img {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  max-width: 300px;
  object-fit: cover; /* Prevents stretching if the original image isn't square */
  object-position: top center;
}
.team-group-photo img {
    width: 100%;
    height: auto; /* Keeps the photo natural (not cropped) */
    max-height: 600px; /* Optional: Prevents it from getting too tall on huge screens */
    object-fit: cover; /* Ensures it fills the space nicely if max-height is hit */
    object-position: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 2rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--secondary);
}

.copyright {
  font-size: 0.9rem;
  color: #adb5bd;
  margin-top: 2rem;
}

/* Location Section */
.locations {
  padding: 5rem 0;
  text-align: center;
}

.locations p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.locations-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Helper Classes */
.text-center {
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content {
      flex-direction: column;
  }

  .about-text, .about-image {
      flex: none;
      width: 100%;
  }
}

@media (max-width: 768px) {
  nav ul {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background-color: var(--primary);
      flex-direction: column;
      padding: 1rem 0;
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul.show {
      display: flex;
  }

  nav li {
      margin: 0;
      text-align: center;
      padding: 0.8rem 0;
  }

  .dropdown-menu {
      position: static;
      box-shadow: none;
      border-radius: 0;
      min-width: 0;
      background-color: rgba(0, 0, 0, 0.15);
  }

  .dropdown-menu li a {
      padding: 0.5rem 1.2rem;
      font-size: 0.9rem;
  }

  .dropdown.open .dropdown-menu {
      display: flex;
  }

  .mobile-menu {
      display: block;
  }

  .hero {
      height: calc(100vh - 60px); /* adjust for smaller header on mobile */
      margin-top: 60px;
  }

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

@media (max-width: 576px) {
  .hero h1 {
      font-size: 2rem;
  }

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

  section h2 {
      font-size: 2rem;
  }
}

/* --- NEW SPLIT LAYOUT STYLES --- */

.service-split {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #ddd;
}

.service-split:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-text {
    flex: 1;
}

.service-image {
    flex: 1;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- LOCATION BUTTON TWEAKS --- */
/* We keep your green .btn style, we just add spacing here */
.location-btn {
    margin: 0.5rem; /* Adds a little gap between the buttons */
    min-width: 150px; /* Optional: Makes them all the same width for neatness */
    text-align: center;
}

/* Center the 7th service card on desktop */
@media (min-width: 992px) { 
    .services-grid .service-card:last-child:nth-child(7) {
        grid-column: 2;
    }
}

/* MOBILE RESPONSIVENESS (Crucial for the split layout) */
@media (max-width: 768px) {
    .service-split {
        flex-direction: column; /* Stacks image/text vertically */
        gap: 2rem;
        text-align: left;
    }

    .service-image {
        width: 100%;
        height: 250px; 
        order: -1; /* Puts image ABOVE text on mobile */
    }
}