/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Poppins:wght@300&display=swap');

/* =====================
   AGGRESSIVE DESKTOP HIDE RULES
   ===================== */
/* Place this at the very top to ensure maximum priority */
.hero-logo-container {
    display: none !important; /* Extremely aggressive hide by default */
    visibility: hidden !important; /* Double protection */
    opacity: 0 !important; /* Triple protection */
    position: absolute !important; /* Keep positioning for when it's displayed on mobile */
    top: 1.5rem !important; /* Adjust as needed for mobile */
    left: 1rem !important; /* Adjust as needed for mobile */
    z-index: 4 !important; /* Ensure it's above other hero elements when shown */
}

/* Ensure the desktop header logo is correctly sized on desktop */
.company-logo {
    display: block; /* Visible on desktop by default */
    height: 50px; /* Set to your desired desktop header logo height */
    width: auto; /* Maintain aspect ratio */
}

/* Hamburger should also be hidden globally (on desktop) */
.hamburger {
    display: none !important; /* Hide hamburger on desktop */
    visibility: hidden !important; /* Double protection */
    opacity: 0 !important; /* Triple protection */
}

/* GLOBAL: Ensure mobile nav is hidden by default on desktop */
.mobile-nav {
    display: none; /* Hide it completely on desktop. This is crucial. */
}

/* Global styles for hero logo image */
.hero-logo {
    width: 100px; /* Default size for mobile */
    height: auto;
    display: block; /* Ensure it's a block element */
}

/* =====================

   Variables & Base

   ===================== */

:root {

  --green: #4A6B3D;

  --white: #fff;

  --dark: #222;

  --light-grey: #f8f8f8;

  --shadow: 0 2px 8px rgba(0,0,0,0.06);

  --transition: 0.3s cubic-bezier(.4,0,.2,1);

  --top-bar-height: 40px; /* Approximate height of your top-bar */

  --header-container-height: 85px; /* Approximate height of your white header container */

}

html {

  scroll-behavior: smooth;

}

body {

  margin: 0;

  font-family: 'Segoe UI', Arial, sans-serif;

  color: var(--dark);

  background: var(--light-grey);

}

/* Container Rules for Different Sections */
.top-bar-content {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  background: transparent !important;
}

/* ====================================
   FINAL HEADER FIX (Desktop & Mobile)
   ==================================== */
   .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    padding: 0.7rem 0;
    max-width: 1500px;
}

.desktop-nav-group {
    display: flex;
    align-items: center;
    gap: 1.5em; /* Keep your existing gap */
    /* Allow items to shrink if space is constrained */
    flex-shrink: 1; /* Allow the group to shrink if needed */
    min-width: 0; /* Important for flex items to shrink correctly */
}

/* Hide desktop-specific elements on small screens */
@media (max-width: 900px) { /* Keeping your existing breakpoint for hiding desktop nav */
  .desktop-nav-group {
      display: none !important; /* Ensure desktop nav is hidden */
  }
}

@media (max-width: 900px) {

  /* Style for the logo image */
  .company-logo {
      height: 48px; /* Adjust this value to change the logo size */
      width: auto;
  }
}

/* --- FIX for Horizontal Scroll Bar & Top Bar on Mobile --- */
/* This block addresses the critical global issues identified for mobile resolution. */

@media (max-width: 900px) {
  /* This is the core fix. It prevents any content from
  overflowing the horizontal viewport, which is what
  causes the horizontal scroll bar.
  */
  body, html {
      overflow-x: hidden;
  }

  /*
  As requested, this rule completely removes the top-most bar
  containing the email and phone number on mobile.
  */
  .top-bar {
      display: none;
  }
  
  /* Hide the entire header on mobile */
  .main-header {
      display: none !important;
  }

  /* --- Hamburger Icon Styles on Mobile --- */
  .hamburger {
      display: flex !important; /* Make hamburger visible on mobile, overriding global none */
      visibility: visible !important;
      opacity: 1 !important;
      position: fixed;
      top: 1.5rem;
      right: 1rem;
      z-index: 10000;
      background: none;
      border: none;
      font-size: 2rem;
      color: #7ac09a;
      cursor: pointer;
      width: 40px;
      height: 40px;
      align-items: center;
      justify-content: center;
  }

  .hamburger.open {
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
      z-index: 1 !important;
  }

  /* Ensure the icon INSIDE the hamburger also hides */
  .hamburger.open .fa-bars {
      display: none;
  }

  /* Make .mobile-nav appear on mobile and define its hidden state */
  .mobile-nav {
      display: flex; /* Override global display: none only on mobile */
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.9);
      z-index: 100000;
      flex-direction: column;
      align-items: center;
      justify-content: center;

      /* Control visibility with opacity/visibility for transition */
      opacity: 0;
      visibility: hidden;
      pointer-events: none; /* Unclickable when hidden */
      transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;  
      padding-bottom: 2rem;
      gap: 1.5rem; /* Maintain space between main direct children of mobile-nav */

      /* Add internal padding to the mobile nav itself to create space from the sides */
      padding-left: 1.5rem; /* Added: Slight margin from the left edge for the aligned links */
      padding-right: 1.5rem; /* Added: Symmetrical padding on the right */
      box-sizing: border-box; /* Crucial to include padding in width/height calculation */
  }

  /* Ensure the nav-button is centered */
  .mobile-nav .nav-button {
      width: 90%;
      max-width: 300px; /* Keep this max width to prevent it from becoming too wide */
      text-align: center;
      /* To center a block-level element within a flex container (mobile-nav) */
      margin-left: auto; /* Pushes element to the right as much as possible */
      margin-right: auto; /* Pushes element to the left as much as possible */
      /* Ensure its own padding/font-size are appropriate if needed */
      padding: 1rem 1.5rem; /* Adjust button padding as needed */
      font-size: 1.4rem; /* Adjusted font size to minimize it */
      line-height: 1; /* Helps with vertical centering if button has flex/inline-flex */
  }

  /* NEW: Styling for the mobile navigation links wrapper */
  .mobile-nav-links-wrapper {
      width: 100%; /* Ensure it takes full available width within mobile-nav's padding */
      display: flex;
      flex-direction: column;
      align-items: flex-start; /* CRUCIAL: Align items to the start (left) */
      gap: 0.8rem; /* Adjusted space between these specific links */

      /* No need for padding-left here if .mobile-nav already has padding */
      /* Remove this if it exists and let .mobile-nav's padding handle it: padding-left: 1rem; */
      box-sizing: border-box;
  }

  /* Styles for links inside the mobile nav */
  .mobile-nav a {
      color: var(--white);
      text-decoration: none;
      font-size: 1.8rem;
      padding: 1rem 0;
      margin: 0.5rem 0;
      transition: color 0.2s ease-in-out;
  }

  .mobile-nav a:hover {
      color: var(--green); /* Or a different hover color */
  }

  /* Wrapper for mobile nav links to control their layout */
  .mobile-nav-links-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2rem; /* Space between links */
  }

  /* Styles for individual links inside the mobile-nav-links-wrapper */
  .mobile-nav-links-wrapper a {
      color: var(--white);
      text-decoration: none;
      font-size: 1.6rem; /* Reduced font size for links */
      /* padding: 0.8rem 0; Adjust vertical padding for individual links */
      padding: 0; /* Keep existing padding, or adjust if you want space above border */
      margin: 0.2% 0 0.2% 5%;
      transition: color 0.2s ease-in-out;
      width: 100%; /* Ensure links stretch to wrapper width for consistent click area */
      text-align: left; /* Explicitly left-align text within the link */

      /* ADDED: Bottom border for the links */
      border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Subtle white border */
      padding-bottom: 0.5rem; /* Space between text and border */
      
      /* Ensure a consistent width for the border if text length varies */
      display: inline-block; /* Or block, depending on desired behavior. Inline-block allows text-align:left */
  }

  .mobile-nav-links-wrapper a:hover {
      color: var(--green);
  }

  /* This rule will override the global display: none for mobile screens */
  .hero-logo-container {
      display: block !important; /* SHOW ONLY ON MOBILE - use !important to override global rule */
      visibility: visible !important; /* Override global visibility */
      opacity: 1 !important; /* Override global opacity */
      /* Ensure mobile-specific positioning is here or inherited correctly */
      top: 1.5rem;
      left: 1rem;
  }

  /* Further mobile adjustments for the logo image itself */
  .hero-logo {
      width: 100px; /* Size for mobile logo */
      height: auto;
  }

  /* Hide the original company logo (if somehow visible due to other rules)
     This might be redundant if .main-header is display:none, but good for safety */
  .main-header .company-logo {
      display: none;
  }

  /* Adjust hero-content padding to make space for the logo */
  .hero-content {
      padding: 6rem 1rem 3rem 1rem; /* Increased top padding for mobile logo */
  }

  /* Further adjust for very small screens if needed */
  @media (max-width: 700px) {
      .hero-content {
          padding: 5rem 0.5rem 2rem 0.5rem; /* Adjust for smaller screen content */
      }
      .hero-logo-container { /* Adjust logo position for very small screens */
          top: 1.5rem;
          left: 1.5rem;
      }
      .hero-logo {
          width: 90px; /* Slightly smaller logo for very small screens */
      }
  }

  /* As requested, this ensures the main "Contact Us" button
  (on the top bar) is hidden on mobile, as the top bar itself is now hidden.
  */
  .top-bar-contact-btn {
      display: none !important;
  }
  /* State when the mobile menu is OPEN */
  .mobile-nav.open {
      opacity: 1 !important;
      visibility: visible !important;
      pointer-events: auto !important; /* Make clickable when open */
      display: flex !important; /* Ensure it's displayed when open */
  }

  /* Prevent body scroll when mobile menu is open */
  body.no-scroll {
      overflow: hidden !important;
  }
}

/* This rule makes the button clickable by ensuring it is on top of other elements */
.nav-button, .desktop-nav .nav-button {
  text-decoration: none !important;
  z-index: 30 !important;
}

/* Mobile nav styles are now handled in the mobile media query above */

/* Additional mobile menu fixes for very small screens */
@media (max-width: 575px) {
    .hamburger {
        z-index: 10000; /* Ensure hamburger stays on top */
        position: fixed; /* Keep fixed positioning */
    }
    
    .hamburger.open {
        opacity: 0; /* Hide when menu is open */
        pointer-events: none;
        z-index: 1;
    }
    
    /* --- Close Button Styles on Mobile --- */
    .close-mobile-nav {
        position: fixed;
        top: 0.5rem;
        right: 0.5rem;
        z-index: 10001;
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--white);
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: none; /* Hidden by default, shown when mobile-nav is open */
        align-items: center;
        justify-content: center;
    }
    
    .mobile-nav.open .close-mobile-nav {
        display: flex; /* Show close button when menu is open */
    }

    /* Fix mobile nav/modal vertical alignment */
    #mobileNav {
        top: 0 !important;
        margin-top: 0 !important;
        padding-top: 20px !important;
        justify-content: flex-start !important;
    }
    .mobile-nav-links-wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}


/* =====================

   Top Bar

   ===================== */

.top-bar {

  background: var(--green);

  color: var(--white);

  font-size: 0.85rem;

  padding: 6px 0 6px 0;

  font-family: 'Poppins', Arial, sans-serif;

  border: none;

  box-shadow: none;

  box-shadow: 0 12px 32px -8px rgba(34,34,34,0.22);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  z-index: 10;
  overflow: visible;
}

.top-bar-content {

  display: flex;

  flex-wrap: nowrap;

  gap: 2rem;

  align-items: center;

  justify-content: flex-end;

  flex-direction: row;

  border: none;

}

/* Top Bar Icon Circle */

.top-bar-icon-circle {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  background: #d6ea9a;

  border-radius: 50%;

  width: 20px;

  height: 20px;

  font-size: 0.95rem;

  margin-right: 0.05em;

  flex-shrink: 0;

  vertical-align: middle;

  padding: 0;

}

.top-bar-icon-circle i {

  color: #222 !important;

  font-size: 0.75em;

  line-height: 1;

  padding: 0;

  margin: 0;

  display: flex;

  align-items: center;

  justify-content: center;

}

.top-bar i {

  color: inherit;

  margin: 0;

}

.top-bar span {

  display: flex;

  align-items: center;

  gap: 0.3em;

  color: var(--white);

  margin-right: 1.5rem;

  font-family: 'Poppins', Arial, sans-serif;

  font-weight: 300;

  border: none;

  padding: 0;

}

.top-bar a {
  color: var(--black) !important; 
  text-decoration: none;
  transition: color 0.2s ease;
}
.top-bar a:hover {
  color:#000000 !important;
  text-decoration: underline;
}

/* =====================

   Main Header & Nav

   ===================== */

.main-header {
  background: none; /* Make background transparent to see hero image */
  box-shadow: none;
  transition: background 0.3s;
  /* New styles for overlay and proper positioning */
  position: absolute; /* Position over the hero section */
  top: var(--top-bar-height); /* Position *below* the top bar */
  left: 0;
  width: 100%;
  z-index: 100; /* Ensure it's above the hero image and overlay */
  box-sizing: border-box; /* Include padding in width calculation */
}

/* Ensure these absolute properties are *only* for desktop */
@media (max-width: 900px) { /* Your existing mobile breakpoint */
  .main-header {
    position: static; /* Revert to static for mobile */
    top: auto;
    background: #ffffff; /* Restore background for mobile header */
  }
}


.logo-area {

  display: flex;

  align-items: center;

  gap: 0.7rem;

}

.company-logo {
  height: 45px;
  width: auto;
}


/* Desktop Navigation */

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1em; /* Adjust spacing between nav links */
  /* Allow the desktop nav itself to shrink */
  flex-shrink: 1;
  min-width: 0;
}

/* Introduce/Modify .main-header .container for Rounded Appearance (Desktop Specific) */
.main-header .container.header-content {
  /* Targeting specifically 'header-content' */
  background-color: #ffffff; /* White background for the header content itself */
  border-radius: 50px; /* Adjust for desired roundness */
  padding: 0.7rem 2rem; /* Adjust internal padding as needed */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Optional: add a subtle shadow */
  width: calc(90% - 4rem); /* Adjust width to account for padding, or use max-width */
  max-width: 1400px; /* Limit max width */
  margin: 15px auto; /* Center the rounded container and push it down a bit from the top of the *main-header* */
}

/* Ensure these styles are *only* for desktop */
@media (max-width: 900px) { /* Your existing mobile breakpoint */
  .main-header .container.header-content {
    background-color: transparent; /* Mobile header background is controlled by main-header */
    border-radius: 0;
    padding: 0.7rem 0; /* Revert to original padding */
    box-shadow: none;
    width: 90%; /* Revert to original width */
    max-width: 1500px; /* Revert to original max-width */
    margin: 0 auto; /* Revert to original margin */
  }
}

.desktop-nav a {
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color var(--transition), border-bottom 0.2s;
  padding: 0.3em 0.7em;
  border-radius: 4px;
  border-bottom: 2px solid transparent;
  background: none;
  vertical-align: middle;
  line-height: 1;
}
.desktop-nav a:hover {
  color: #b6e388;
  background: none;
  border-bottom: 2px solid #b6e388;
  box-shadow: none;
}

/* Define New .nav-link-item Class for Specific Navigation Links (Desktop Specific) */
/* NEW/CORRECTED: Style for the 'Services', 'Map', 'About Us' navigation links */
/* This ensures it applies only when the class is present and overrides general 'a' styles */
.desktop-nav .nav-link-item {
  display: inline-flex; /* Required for align-items/justify-content to work */
  align-items: center; /* Vertically center text */
  justify-content: center; /* Horizontally center text */
  padding: 0.7em 1.5em; /* Ample padding for a button-like appearance */
  border-radius: 999px; /* Ensures fully rounded pill shape */
  background-color: #f0f0f0; /* Light grey background */
  color: #333; /* Dark text color for contrast */
  text-decoration: none; /* Remove underline */
  font-weight: 500;
  font-size: 1rem;
  transition: background-color 0.2s, color 0.2s; /* Smooth transition for hover effects */
  /* Override any conflicting styles from .desktop-nav a */
  border-bottom: none; 
  box-shadow: none;
  white-space: nowrap; /* Prevent individual links from wrapping */
  flex-shrink: 0; /* Prevent individual links from shrinking unless necessary */
}

.desktop-nav .nav-link-item:hover {
  background-color: #e0e0e0; /* Slightly darker grey on hover */
  color: #000; /* Darker text on hover */
}

/* Ensure these styles are *only* for desktop by wrapping in a media query if they interfere with mobile */
@media (max-width: 900px) {
  .desktop-nav .nav-link-item { /* Target specifically the desktop nav links that become hidden or restyled on mobile */
    display: none; /* Hide the desktop style */
  }
}

.nav-button, .hero-button, .desktop-nav .nav-button {
  background: #e6f98a;
  color: #222 !important;
  border-radius: 999px;
  padding: 0.5em 1.8em; /* ADJUSTED: Reduced horizontal padding */
  font-weight: 600;
  font-size: 1.1rem;
  border: none !important;
  box-shadow: none !important;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: visible;
  background-image: none;
  white-space: nowrap; /* Prevent text from wrapping */
  max-width: 100%; /* Ensure it doesn't exceed its parent's width */
  box-sizing: border-box; /* Include padding/border in element's total width */
}

.nav-button, .hero-button, .desktop-nav .nav-button, .about-know-more {
  background: #ceec3c !important; /* Light green default */
  color: #222 !important;
  border: 1.5px solid #ceec3c !important;
  box-shadow: none !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 999px !important;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.nav-button:hover, .hero-button:hover, .desktop-nav .nav-button:hover, .about-know-more:hover {
  background: #7ac09a !important;
  color: #222 !important;
  border: 1.5px solid #b6e388 !important;
}

.logo-area, .company-name, .desktop-nav {

  flex-shrink: 0;

}


/* Removed problematic global overflow and width rules that were causing horizontal scroll issues */
 



/* =====================

   Hero Section

   ===================== */

.hero-section {

  position: relative;

  width: 100vw;

  min-height: 70vh;

  /* Consider increasing if needed to avoid man's head issue */

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

  /* Calculate top offset based on top-bar and header */

  padding-top: calc(var(--top-bar-height) + var(--header-container-height) + 20px); /* Add extra buffer for man's head */

  z-index: 1; /* Ensure hero section is behind the absolute header */

}

/* Keep hero-image height 100% within the hero-section for object-fit behavior */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Maintain 100% height relative to hero-section */
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  display: block;
}

/* Ensure hero-section padding-top is only for desktop */
@media (max-width: 900px) {
  .hero-section {
    padding-top: 0; /* Remove padding-top for mobile, as header will be in flow */
    min-height: auto; /* Allow height to adjust naturally on mobile if needed */
  }
}

.hero-overlay {

  position: absolute;

  top: 0; left: 0; right: 0; bottom: 0;

  background-color: rgba(0, 0, 0, 0.3); /* Black with 30% opacity for darkening */
  
  z-index: 1; /* Place it above the background image but below the content */

}

.hero-content {

  position: relative;

  z-index: 3;

  text-align: center;

  color: var(--white);

  width: 100%;

  max-width: 700px;

  margin: 0 auto;

  padding: 4rem 1rem 3rem 1rem;

}

.hero-content h1 {

  font-size: 2.7rem;

  font-weight: 800;

  margin-bottom: 1.2rem;

  letter-spacing: 1px;

  line-height: 1.15;

}

.hero-content p {

  font-size: 1.25rem;

  font-weight: 400;

  margin-bottom: 2.2rem;

  color: #e6e6e6;

}

.hero-button {

  display: inline-block;

  background: var(--green);

  color: var(--white);

  font-size: 1.1rem;

  font-weight: 600;

  padding: 0.8em 2.2em;

  border-radius: 30px;

  text-decoration: none;

  box-shadow: 0 2px 8px rgba(74,107,61,0.13);

  transition: background var(--transition), color var(--transition), box-shadow 0.2s, transform 0.2s;

}

.hero-button:hover {

  background: #38522d;

  color: var(--white);

  box-shadow: 0 4px 16px 0 rgba(74,107,61,0.25), 0 0 0 4px rgba(74,107,61,0.10);

  transform: translateY(-2px) scale(1.03);

}


/* =====================

   Responsive Adjustments

   ===================== */

@media (max-width: 700px) {

  .top-bar-content {

    flex-direction: column;

    gap: 0.5rem;

    align-items: flex-start;

  }

  

  .company-name {

    font-size: 1.1rem;

  }

  .logo {

    height: 34px;

  }

  .hero-content h1 {

    font-size: 1.5rem;

  }

  .hero-content p {

    font-size: 1rem;

  }

  .hero-content {
    padding: 6rem 0.5rem 2rem 0.5rem; /* ADJUSTED: Increased top padding to account for logo */
  }

  /* Adjust Responsive Styles for Header Container on Mobile */
  .main-header .container.header-content { /* Target the specific container */
    border-radius: 0; /* Remove rounding for mobile */
    padding: 0.7rem 0; /* Revert to original padding */
    margin: 0 auto; /* Revert to original margin */
    width: 90%; /* Revert to original width */
    max-width: 1500px; /* Revert to original max-width */
    box-shadow: none; /* Remove shadow */
    background: transparent; /* Ensure transparent for mobile header which is white itself */
  }
  .company-logo {
    height: 45px; /* Adjust logo size for mobile header */
  }
}


.desktop-nav .nav-button {

  background: #e6f98a;

  color: #222 !important;

  border-radius: 999px;

  padding: 0.4em 1.5em;

  font-weight: 600;

  font-size: 1.1rem;

  border: none;

  box-shadow: none;

  display: inline-block;

  text-align: center;

  position: relative;

  overflow: visible;

}

.desktop-nav .nav-button:hover {

  background: #fff;

  color: #222 !important;

}


.desktop-nav .nav-button, .desktop-nav a {

  vertical-align: middle;

  line-height: 1;

} 

.top-bar-contacts {
  display: flex;
  gap: 2rem;
}
.top-bar-contact-btn {
  display: none;
  background: #e6f98a;
  color: #222 !important;
  border-radius: 999px;
  padding: 0.7em 2.2em;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  box-shadow: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: visible;
  font-family: 'Poppins', Arial, sans-serif;
  transition: background var(--transition, 0.2s), color var(--transition, 0.2s), box-shadow 0.2s;
  box-shadow: 0 4px 16px 0 rgba(74,107,61,0.18), 0 2px 8px 0 rgba(74,107,61,0.10);
}
.top-bar-contact-btn:hover {
  background: #fff;
  color: #222 !important;
}

@media (max-width: 1100px) {
  .top-bar {
    padding-bottom: 24px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: visible;
  }
  .top-bar-content {
    align-items: flex-start;
    min-height: 70px;
    overflow: visible;
  }
  .top-bar-contacts {
    display: none !important;
  }
  .top-bar-contact-btn {
    display: block !important;
    margin: 0 auto;
  }
  .top-bar-content {
    justify-content: center !important;
    gap: 0 !important;
  }

} 

/* =====================
   About Us Section
   ===================== */

.about-section {
  padding: 100px 0;
  background: var(--white, #fff);
}
.about-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  box-sizing: border-box;
  background: transparent !important;
}
.about-text-content {
  flex: 1;
  min-width: 288px;
  max-width: 600px;
  padding: 20px;
  box-sizing: border-box;
  margin: 0 auto;
}
.about-eyebrow {
  font-size: 0.9rem;
  color: var(--green, #4A6B3D);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
  font-weight: 600;
}
.about-text-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark, #191a18);
  line-height: 1.2;
  margin-bottom: 20px;
}
.about-text-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;  
}
.about-services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 30px;
}
.about-service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--dark, #191a18);
  font-weight: 500;
}
.about-service-item .fa-check {
  color: var(--green, #4A6B3D);
  font-size: 1.1em;
}
.about-buttons {
  display: block;
  margin-top: 20px;
  margin-bottom: 10px;
}
.about-know-more {
  background: #e6f98a;
  color: #222 !important;
  border-radius: 999px;
  padding: 0.7em 2.2em;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  box-shadow: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: visible;
  font-family: 'Poppins', Arial, sans-serif;
  transition: background var(--transition, 0.2s), color var(--transition, 0.2s), box-shadow 0.2s;
  text-decoration: none;
}
.about-know-more:hover {
  background: #191a18;
  color: #222 !important;
  text-decoration: none;
}
.about-buttons-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 20px;
  margin-bottom: 10px;
}
.about-expert-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 0;
  margin-left: 32px;
}
.about-expert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6f98a;
  border-radius: 50%;
  width: 84px;
  height: 84px;
  font-size: 2.2em;
  color: #4A6B3D;
  margin-top: 0;
}
.about-expert-icon i {
  color: #4A6B3D;
  font-size: 1.3em;
}
.about-expert-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.about-expert-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: #191a18;
  margin-bottom: 0;
  font-family: Georgia, 'Times New Roman', Times, serif;
}
.about-expert-phone {
  font-size: 1.05rem;
  color: #191a18 !important;
  font-weight: 400;
  margin-top: 2px;
  font-family: 'Poppins', Arial, sans-serif;
}
.about-expert-phone a {
  color: inherit !important;
  text-decoration: none;
  transition: color 0.2s ease;
}
.about-expert-phone a:hover {
  color: var(--green, #4A6B3D) !important;
  text-decoration: underline;
}
.about-expert-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #4A6B3D;
  color: #fff;
  border-radius: 999px;
  padding: 0.7em 1.5em;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  box-shadow: 0 2px 8px rgba(74,107,61,0.13);
  text-decoration: none;
  font-family: 'Poppins', Arial, sans-serif;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.about-expert-btn:hover {
  background: #38522d;
  color: #fff;
}
.about-expert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6f98a;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1.1em;
  color: #222;
}
.about-expert-icon i {
  color: #222;
}
.about-expert-phone {
  font-size: 1rem;
  color: #fff;
  font-weight: 400;
}
.about-stats-gallery {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  padding: 20px;
  height: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}
.about-collage-image {
  flex: 1 1 60%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 24px;
}
.about-collage-image img {
  width: 85%;
  max-width: 600px;
  height: 475px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(34,34,34,0.07);
}
.about-collage-info-row {
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: center;
}
.about-stat-block {
  background: #4A6B3D;
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(34,34,34,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  color: #fff;
  min-width: 140px;
}
.about-stat-number {
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}
.about-stat-label {
  font-size: 1rem;
  color: #e6e6e6;
}
/* Responsive About Section */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    gap: 20px;
  }
  .about-text-content {
    width: 100% !important;
    max-width: 600px !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
    text-align: center !important;
    margin: 0 auto !important;
  }
  .about-text-content p {
    text-align: justify !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .about-text-content h2,
  .about-eyebrow {
    text-align: center !important;
  }
  .about-services-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto 20px auto !important;
    box-sizing: border-box !important;
  }
  .about-service-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 1rem !important;
    color: var(--dark, #191a18) !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    margin: 0 8px 0 0 !important;
  }
  .about-stats-gallery {
    height: auto !important;
    padding: 10px !important;
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }
  .about-collage-image {
    display: none !important; /* Hide the axe image on mobile devices */
  }
  .about-collage-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: cover !important;
    box-shadow: 0 2px 8px rgba(34, 34, 34, 0.07) !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }
  .about-collage-info-row {
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
    align-items: center !important;
  }
  .about-buttons-row.mobile-cta-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 400px !important;
    margin: 30px auto 10px auto !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
  }
  .about-know-more.know-more-btn,
  .about-expert-row.ask-expert-group {
    flex: 1 1 160px !important;
    min-width: 140px !important;
    max-width: 200px !important;
    margin: 0 auto !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }
}
@media (max-width: 575px) {
  .about-section {
    padding: 40px 0 !important;
  }
  .about-text-content {
    padding: 0 0.8rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    margin: 0 auto !important;
  }
  .about-text-content p {
    text-align: justify !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .about-text-content h2,
  .about-eyebrow {
    text-align: center !important;
  }
  .about-services-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: initial !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto 18px auto !important;
    box-sizing: border-box !important;
  }
  .about-service-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.98rem !important;
    color: var(--dark, #191a18) !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    margin: 0 6px 0 0 !important;
  }
  .about-stats-gallery {
    padding: 0 0.8rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }
  .about-collage-image {
    display: none !important; /* Hide the axe image on mobile devices */
  }
  .about-collage-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }
  .about-collage-info-row {
    flex-direction: row !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 250px !important;
    margin: 0 auto !important;
    align-items: center !important;
  }
  .about-stat-block {
    padding: 15px 10px !important;
    border-radius: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }
  .about-stat-number {
    font-size: 1.6rem !important;
  }
  .about-stat-label {
    font-size: 0.85rem !important;
  }
  .about-buttons-row.mobile-cta-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important; /* Consistent spacing */
    width: 100% !important;
    max-width: 400px !important; /* Increased max-width for better spacing */
    padding: 0 1rem !important; /* Increased padding */
    box-sizing: border-box !important;
  }
  .about-know-more.know-more-btn,
  .about-expert-row.ask-expert-group {
    flex: 2 !important; /* Increased flex basis for better sizing */
    min-width: 140px !important; /* Increased minimum width */
    max-width: 200px !important; /* Increased maximum width */
    max-height: 25px !important;
    margin: 0 auto !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 5px 0 !important;
  }

  /* Additional styling for the expert group to ensure proper side-by-side layout */
  .about-expert-row.ask-expert-group {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important; /* Space between icon, text, and number */
    flex-shrink: 0 !important; /* Prevent it from shrinking too much */
    padding: 0.5rem !important; /* Add internal padding for appearance */
  }

  .about-expert-row.ask-expert-group .fa-phone {
    font-size: 1.2rem !important; /* Adjust icon size */
  }

  .about-expert-row.ask-expert-group span {
    font-size: 0.9rem !important; /* Adjust font size */
    white-space: nowrap !important; /* Prevent text from wrapping */
  }

  .about-expert-row.ask-expert-group a {
    font-size: 1em !important; /* Adjust font size */
    white-space: nowrap !important; /* Prevent number from wrapping */
    color: var(--green) !important; /* Or your desired color */
    text-decoration: none !important;
  }
}
@media (max-width: 700px) {
  .about-buttons-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* Adjustments for very small screens to ensure they don't break */
@media (max-width: 480px) {
  .about-buttons-row.mobile-cta-row {
    flex-direction: row !important; /* Revert to column on very small screens if needed */
    gap: 0.8rem !important;
  }
}
/* More mobile About section tweaks */
@media (max-width: 480px) {
  .about-section {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .about-section .about-description,
  .about-section p {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
  }
  .about-section .about-collage-info-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    margin: 1.5rem auto;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
  }
  .about-section .about-stat-block {
    width: 100%;
    max-width: 250px;
    padding: 1.2rem;
    box-sizing: border-box;
    text-align: center;
    flex-shrink: 0;
  }
  .about-section .about-stat-block:last-child {
    margin-bottom: 0;
  }
  .about-section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    box-sizing: border-box;
  }
  .mobile-cta-row {
    max-width: 300px;
    margin: 1.2rem auto;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }
}

/* =====================
   Services Section
   ===================== */

.services-section {
  padding: 10px 0 200px 0;
  background: #f9f9f6;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.services-headline,
.services-tagline {
  text-align: center;
}
.services-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 5rem;
  max-width: 100%;
  margin-top: 2.5rem;
}
.service-card {
  position: relative !important;
  overflow: hidden !important;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(34,34,34,0.07);
  border: 1.5px solid #e6e6e6;
  width: 150px;
  height: 150px;
  padding: 20px 8px 18px 8px;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.18s;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 6px 16px 6px;
}
.service-card .service-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px !important;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}
.service-card:hover .service-image-placeholder,
.service-card:focus .service-image-placeholder {
  opacity: 1;
}
.service-card .service-icon,
.service-card .service-title {
  transition: opacity 0.2s, visibility 0.2s;
  opacity: 1;
  visibility: visible;
}
.service-card:hover .service-icon,
.service-card:hover .service-title,
.service-card:focus .service-icon,
.service-card:focus .service-title {
  opacity: 0;
  visibility: hidden;
}
.service-card i {
  font-size: 2.5rem;
  color: var(--green, #4A6B3D);
  margin-bottom: 1.1rem;
  transition: color 0.2s;
}
.service-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #222;
  margin: 0;
  letter-spacing: 0.5px;
}
.service-card:hover, .service-card:focus {
  box-shadow: 0 6px 24px 0 rgba(74,107,61,0.13);
  border-color: #b6e388;
  transform: translateY(-6px) scale(1.03);
  z-index: 2;
}
.service-card:hover i, .service-card:focus i {
  color: #b6e388;
}
/* Responsive grid */
@media (max-width: 1100px) {
  .service-card {
    width: 120px;
    height: 120px;
    padding: 12px 4px 10px 4px;
    margin: 0 4px 12px 4px;
  }
  .services-grid {
    gap: 0.7rem;
  }
  .service-card .service-image-placeholder {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    border-radius: 16px !important;
    margin: 0 !important;
  }
}
@media (max-width: 900px) {
  .services-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.5rem !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 1em 1rem !important;
    box-sizing: border-box !important;
  }
  .service-card {
    max-width: 200px !important;
    height: 120px !important;
    padding: 12px 4px 10px 4px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }
  .service-card .service-image-placeholder {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 16px !important;
    margin: 0 !important;
  }
  .service-card i {
    font-size: 2rem !important;
    margin-bottom: 0.8rem !important;
  }
  .service-card h3 {
    font-size: 1rem !important;
  }
  
  /* Mobile active state for service cards */
  .service-card.active .service-image-placeholder {
    opacity: 1 !important;
  }
  
  .service-card.active .service-icon,
  .service-card.active .service-title {
    opacity: 0 !important;
    visibility: hidden !important;
  }
  
  .service-card.active {
    border-color: #b6e388 !important;
    box-shadow: 0 6px 24px 0 rgba(74,107,61,0.13) !important;
    transform: translateY(-6px) scale(1.03) !important;
    z-index: 2 !important;
  }
  
  /* Mobile services section - copy of desktop with mobile padding */
  .services-section {
    padding: 10px 0 20px 0; /* Mobile padding: 50px top and bottom */
    background: #f9f9f6;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
  }
}
@media (max-width: 575px) {
  .services-grid {
      grid-template-columns: repeat(4, 1fr) !important;
      gap: 8px;
      padding: 0 5px;
      /* justify-content: center; -- Remove this, it's not effective with 1fr units for this goal */
  }



  /* Adjustments for individual cards on mobile within the grid. */
  .service-cards-grid .service-card {
      padding: 6px 2px;
      min-height: 65px;
      max-width: none !important; /* Keep this !important from previous step */
      width: auto;
      height: auto;
      margin: 0;
      flex-shrink: 1;
  }

  /* Adjustments for icon size on mobile */
  .service-cards-grid .service-card .service-icon {
      font-size: 20px;
      margin-bottom: 4px;
  }

  /* Adjustments for text size and line height on mobile */
  .service-cards-grid .service-card span {
      font-size: 0.7rem;
      line-height: 1.1;
      word-break: break-word;
      hyphens: auto;
  }

  /* --- NESTED MOBILE STYLES (for screens up to 380px) --- */
  @media (max-width: 380px) {
      .service-cards-grid {
          grid-template-columns: repeat(3, 1fr) !important;
      }
      /* Optionally, slightly reduce text size further for 3 columns if needed */
      .service-cards-grid .service-card span {
          font-size: 0.65rem;
      }
  }
}

.services-grid .service-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.services-grid .service-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.services-grid .service-card:nth-child(3) { grid-column: 3; grid-row: 1; }
.services-grid .service-card:nth-child(4) { grid-column: 4; grid-row: 1; }
.services-grid .service-card:nth-child(5) { grid-column: 5; grid-row: 1; }
.services-grid .service-card:nth-child(6) { grid-column: 6; grid-row: 1; }
.services-grid .service-card:nth-child(7) { grid-column: 7; grid-row: 1; }

/* Service details display */
.service-details-display {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(34,34,34,0.10);
  border: 1.5px solid #e6e6e6;
  margin: 0 auto;
  margin-bottom: 1.5rem;
  padding: 2.5rem 2.2rem;
  max-width: 700px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-align: center;
}
.placeholder-message {
  color: #888;
  font-size: 1.1rem;
  text-align: center;
  margin: 0;
}
.service-details-display img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(34,34,34,0.07);
}
.service-details-display h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green, #4A6B3D);
  margin-bottom: 0.7rem;
  margin-top: 0;
  text-align: center;
}
.service-details-display p {
  font-size: 0.8rem;
  color: #222;
  line-height: 1.6;
  text-align: center;
  margin: 0 0 2% 0;
}
.service-details-close {
  display: none;
  position: absolute;
  top: 12px;
  right: 16px;
  background: #e6e6e6;
  color: #222;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.7rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
}
.service-details-close:hover {
  background: #b6e388;
  color: #191a18;
}
@media (max-width: 900px) {
  .service-details-display {
    padding: 1.2rem 0.7rem;
    max-width: 98vw;
  }
}
@media (max-width: 700px) {
  .service-details-close {
    display: block !important;
    background: transparent !important;
    border-radius: 4px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 1.4rem !important;
    top: 8px !important;
    left: 8px !important;
    color: #888 !important;
  }
  .service-details-close:hover {
    background: rgba(182, 227, 136, 0.2) !important;
    color: var(--green, #4A6B3D) !important;
  }
}
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 1rem;
  z-index: 1000;
  background: var(--green, #4A6B3D);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  box-shadow: 0 2px 8px rgba(34,34,34,0.13);
  cursor: pointer;
  opacity: 0;
  pointer-events: none ;
  transition: opacity 0.3s, background 0.2s;
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: #38522d;
  color: #fff;
}

/* =====================
   Contact Section
   ===================== */

.contact-section {
  padding: 0 0 80px 0;
  background: #f9f9f6;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-section .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}


.contact-form-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  padding: 40px;
  background: #f9f9f6;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(34,34,34,0.06);
}

.form-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green, #4A6B3D);
  margin-bottom: 0.5rem;
  text-align: center;
}

.form-subheading {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  text-align: center;
}

/* Form label styling */
.form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  font-size: 1rem;
  font-family: 'Poppins', Arial, sans-serif;
}

/* Hide screen-reader-only labels */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- FRESH DESKTOP BASE STYLES FOR SERVICE CARDS --- */
/* This block defines the default desktop layout and styling.
   It should NOT be inside any @media query and should NOT contain !important flags. */

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* Desktop: 7 cards in a single row */
    gap: 15px;
    margin-top: 8px;
    margin-bottom: 1.5rem;
    justify-items: center;
    justify-content: center;
    width: 100%; /* Ensure grid takes full width */
    max-width: none; /* Remove any max-width that could cause wrapping */
    box-sizing: border-box;
}

.service-cards-grid .service-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 4px; /* Desktop padding for card content */
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90px; /* Desktop minimum height for cards */
    width: 100%; /* Card takes full width of its grid cell */
    max-width: 150px; /* Desktop specific maximum width for individual cards */
    box-sizing: border-box; /* Include padding and border in width/height */
    position: relative; /* Default position, no !important */
    overflow: hidden; /* Default overflow, no !important */
}

.service-cards-grid .service-card .service-icon {
    font-size: 28px; /* Desktop icon size */
    color: #4A6B3D;
    margin-bottom: 6px;
    transition: color 0.2s ease-in-out;
}

.service-cards-grid .service-card span {
    font-size: 0.9rem; /* Desktop text size */
    color: #444;
    line-height: 1.2;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

/* Desktop Hover States */
.service-cards-grid .service-card:hover {
    border-color: #4A6B3D;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
.service-cards-grid .service-card:hover .service-icon {
    color: #3B5431;
}
.service-cards-grid .service-card:hover span {
    color: #3B5431;
}
/* --- END OF FRESH DESKTOP BASE STYLES --- */


/* --- MOBILE STYLES (for screens up to 575px) --- */
@media (max-width: 575px) {
  /* Define the grid structure for mobile. This applies to the .service-cards-grid container. */
  .service-cards-grid {
      grid-template-columns: repeat(3, 1fr) !important; /* 3 cards per row for mobile screens */
      gap: 8px; /* Smaller gap for mobile cards */
      padding: 0 5px; /* Slight horizontal padding for the grid container itself */
  }

  /* NEW RULE: Center the 7th service card (single item in the last row) */
  .service-cards-grid .service-card:nth-child(7) {
      grid-column-start: 2; /* Force the 7th item to start at the 2nd column line for centering */
  }

  /* Adjustments for individual cards on mobile within the grid.
     These properties will override the desktop defaults set previously. */
  .service-cards-grid .service-card {
      padding: 6px 2px; /* Reduced padding for card content on mobile */
      min-height: 65px; /* Reduced minimum height for mobile cards */
      max-width: none !important; /* ADDED !important here */
      width: auto; /* Ensures the card's width adapts to its grid column */
      height: auto; /* Ensures the card's height adapts to its content */
      margin: 0; /* Ensures no external margins are pushing them around */
      flex-shrink: 1; /* Allows cards to shrink if needed to fit the grid */
  }

  /* Adjustments for icon size on mobile */
  .service-cards-grid .service-card .service-icon {
      font-size: 20px; /* Smaller icon size for mobile */
      margin-bottom: 4px;
  }

  /* Adjustments for text size and line height on mobile */
  .service-cards-grid .service-card span {
      font-size: 0.7rem; /* Smaller text size for readability on mobile */
      line-height: 1.1; /* Adjust line height for smaller text */
      word-break: break-word; /* Allows long words to break to the next line */
      hyphens: auto; /* Enables hyphenation for better text wrapping */
  }

  /* --- NESTED MOBILE STYLES (for screens up to 380px) --- */
  @media (max-width: 380px) {
      /* Further adjust the grid structure for very small screens */
      .service-cards-grid {
          grid-template-columns: repeat(3, 1fr) !important; /* 3 cards per row for very small screens */
      }
      /* Optionally, slightly reduce text size further for 3 columns if needed */
      .service-cards-grid .service-card span {
          font-size: 0.65rem;
      }
  }
}

/* Individual Service Card Styling */
.service-cards-grid .service-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  width: 100%;
  max-width: 120px;
}

/* Service Card Icon Styling */
.service-cards-grid .service-card .service-icon {
  font-size: 20px;
  color: #4A6B3D;
  margin-bottom: 6px;
  transition: color 0.2s ease-in-out;
}

/* Service Card Text Styling */
.service-cards-grid .service-card span {
  font-size: 0.7rem;
  color: #444;
  line-height: 1.2;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

/* Service Card Hover State */
.service-cards-grid .service-card:hover {
  border-color: #90EE90;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Override the conflicting hover rules that hide icons */
.service-cards-grid .service-card:hover .service-icon,
.service-cards-grid .service-card:hover span {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Service Card Selected State */
.service-cards-grid .service-card.selected {
  border-color: #28a745 !important;
  background-color: #e6ffe6 !important;
  box-shadow: 0 0 0 2px #28a745 !important;
}

.service-cards-grid .service-card.selected .service-icon {
  color: #28a745 !important;
}

.service-cards-grid .service-card.selected span {
  color: #28a745 !important;
  font-weight: 600;
}

/* Hover state for selected cards */
.service-cards-grid .service-card.selected:hover {
  border-color: #20c997 !important;
  background-color: #d4edda !important;
  box-shadow: 0 0 0 2px #20c997 !important;
}

.service-cards-grid .service-card.selected:hover .service-icon {
  color: #20c997 !important;
}

.service-cards-grid .service-card.selected:hover span {
  color: #20c997 !important;
}

/* Name and email group layout */
.name-email-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.name-field,
.email-field {
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e6e6e6;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Poppins', Arial, sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green, #4A6B3D);
  box-shadow: 0 0 0 3px rgba(74,107,61,0.1);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  height: 48px;
}

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

.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

.checkbox-phone-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.checkbox-phone-group label {
  font-size: 1rem;
  color: #333;
  cursor: pointer;
}

.info-icon {
  color: #666;
  cursor: help;
  margin-left: 4px;
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.phone-prefix {
  color: #666;
  font-size: 1rem;
  font-weight: 500;
}

.phone-input-wrapper input {
  flex: 1;
}



/* File Upload Styling */
.file-upload-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green, #4A6B3D);
  font-weight: 500;
  cursor: pointer;
  padding: 12px 16px;
  border: 2px dashed #e6e6e6;
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.file-upload-label:hover {
  border-color: var(--green, #4A6B3D);
  background: rgba(74,107,61,0.05);
}

.file-size-info {
  font-size: 0.9rem;
  color: #666;
  margin-left: 16px;
}

/* Attached Files Container */
.attached-files-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; /* Uniform gap for rows and columns */
  align-items: flex-start; /* Align items to the start of the cross axis (top) */
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  /* NEW/MODIFIED: Precise max-height for exactly two rows + padding */
  /* Calculation: (Tag Height * 2) + (Gap between rows) + (Container Padding Top + Bottom) */
  /* Using tag height 30px, gap 8px, padding 10px top/bottom: */
  max-height: calc(30px * 2 + 8px + 10px + 10px); /* 60px + 8px + 20px = 88px */
  /* If your tags become taller, adjust 30px accordingly. */
  overflow: hidden; /* Hide both horizontal and vertical overflow */
  margin-top: 10px;
  position: relative; /* Keep for '...' absolute positioning if needed */
  box-sizing: border-box; /* Important for accurate height calculation */
}

/* Individual File Tags - Make them uniformly sized for better layout */
.file-tag {
  display: inline-flex;
  align-items: center;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 4px 8px; /* ADJUSTED: Reduced horizontal padding for more compact tags */
  /* Removed margin-right: 5px; will use gap on container */
  font-size: 0.74em;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  height: 30px; /* FIXED HEIGHT for consistency */
  line-height: 1; /* Adjust line-height to center text vertically within fixed height */
  flex-shrink: 0;
  /* Enforce a specific width for consistent fitting, e.g., for 4 items per row */
  /* (Total width - (3 * gap)) / 4, assuming container has padding */
  /* Let's estimate and adjust. If container is 100% width, say 300px per row */
  width: calc(20% - 8px); /* Attempt to fit 4 per row, accounting for gap */
  min-width: 100px; /* Ensure they don't get too small */
  box-sizing: border-box; /* Crucial for width calculation */
}

.file-tag i {
  margin-left: 6px; /* ADJUSTED: Reduced space between text and 'X' button */
  color: #888;
  cursor: pointer;
  font-size: 0.85em;
  transition: color 0.2s ease-in-out;
  /* Ensure the icon is vertically centered within the fixed height tag */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.file-tag i:hover {
  color: #dc3545;
}

/* Error File Tags */
.file-tag.error {
  background-color: #fdd;
  border-color: #f00;
  color: #c00;
}

.file-tag.error .remove-file {
  margin-left: 5px;
  cursor: pointer;
  color: #c00;
  font-weight: bold;
  font-size: 0.9em;
}

/* More Files Indicator - Ensure it's always visible and not covered */
.more-files-indicator {
  position: absolute; /* Position relative to .attached-files-container */
  bottom: 13.5px; /* Align with bottom padding of container */
  right: -1px; /* Align with right padding of container */
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 0 4px;
  cursor: pointer;
  font-size: 0.8em;
  font-weight: bold;
  color: #555;
  z-index: 2; /* Ensure it's above overflowing tags */
  /* Initially hidden, JS will control display */
  display: none;
}

/* Responsive adjustments for file tags */
@media (max-width: 575px) {
  .attached-files-container {
    grid-template-columns: repeat(auto-fit, minmax(calc(50% - 4px), 1fr)) !important; /* Ensure minimum 2 items per row */
    gap: 8px !important; /* Consistent gap */
    
    /* Enforce maximum of 2 rows and fixed height */
    max-height: 88px !important; /* 2 rows: (30px * 2) + gap(8px) + padding(10px * 2) = 88px */
    overflow-x: hidden !important; /* Prevent horizontal scrollbar */
    padding: 10px !important; /* Maintain padding */
  }
  
  .file-tag {
    width: 100% !important; /* Let grid handle the width */
    min-width: unset !important; /* Remove min-width constraint */
    max-width: 100% !important; /* Ensure they don't break grid layout */
    font-size: 0.75em !important; /* Slightly smaller font */
    height: 30px !important; /* Maintain fixed height */
    word-break: break-all !important; /* Handle long filenames */
    white-space: nowrap !important; /* Keep text on one line */
    overflow: hidden !important; /* Hide overflow */
    text-overflow: ellipsis !important; /* Show ellipsis for long text */
  }
}

@media (max-width: 400px) {
  .attached-files-container {
    grid-template-columns: repeat(auto-fit, minmax(calc(50% - 4px), 1fr)) !important; /* Maintain 2 items per row even on very small screens */
  }
  
  .file-tag {
    font-size: 0.7em !important; /* Even smaller font for very small screens */
    padding: 4px 6px !important; /* Reduce padding slightly */
  }
}

/* All Files Tooltip */
.all-files-tooltip {
  display: none; /* Keep it hidden initially */
  opacity: 0;
  position: fixed; /* Crucial for positioning relative to viewport */
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow for visibility */
  z-index: 100000; /* EVEN HIGHER Z-INDEX: Try to ensure it's on top of EVERYTHING */
  max-width: 280px;
  max-height: 200px;
  overflow-y: auto; /* Enable scrolling for long lists */
  font-size: 0.8em;
  line-height: 1.4;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; /* Add transform transition for smoothness */
  pointer-events: auto !important; /* Force pointer events to be enabled */

  /* DEBUGGING VISIBILITY - REMOVE AFTER FIX */
  outline: 2px solid #ceec3c !important; /* Visible border to see its exact boundaries */
  background-color: rgb(255, 255, 255) !important; /* Semi-transparent yellow to see if something is under it */
}

/* Responsive tooltip adjustments */
@media (max-width: 575px) {
  .all-files-tooltip {
    max-width: 250px; /* Slightly smaller on mobile */
    font-size: 0.75em; /* Smaller font on mobile */
  }
}

@media (max-width: 400px) {
  .all-files-tooltip {
    max-width: 200px; /* Even smaller on very small screens */
    padding: 8px 12px; /* Reduced padding */
  }
}

/* Styling for individual file items within the tooltip */
.all-files-tooltip > div {
  padding: 2px 0; /* Small padding for each item */
  color: #333; /* Darker text */
  white-space: nowrap; /* Prevent individual file names from wrapping */
  overflow: hidden; /* Hide overflow within item */
  text-overflow: ellipsis; /* Show ellipsis if individual name is too long */
}

/* Main container for all messages - positioning */
#floatingMessagesContainer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex; /* Use flexbox for stacking */
  flex-direction: column; /* Stack vertically */
  align-items: center; /* Center messages horizontally within the container */
  gap: 10px; /* Space between stacked messages */
  /* Initially hidden. JS will control display. */
}

/* Styles for each individual floating message */
.floating-message {
  /* No longer fixed position here, as the container handles it */
  background-color: #dc3545; /* Red background for error */
  color: #fff;             /* White text */
  padding: 12px 20px;      /* Comfortable padding */
  border-radius: 8px;      /* Slightly rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  font-size: 1em;          /* Standard font size */
  text-align: center;      /* Center the text */
  white-space: nowrap;     /* Prevent text from wrapping if possible */

  /* Animation/Visibility - now applied to each dynamically created message */
  opacity: 0;
  transform: translateY(10px); /* Start slightly below final position */
  transition: opacity 0.3s ease-out, transform 0.3s ease-out; /* Smooth slide-up fade-in */
}

.floating-message.show {
  opacity: 1;
  transform: translateY(0); /* Slide up to final position */
}

.submit-and-files-row {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

#send-message-button {
  background: var(--green, #4A6B3D);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-family: 'Poppins', Arial, sans-serif;
}

#send-message-button:hover {
  background: #38522d;
  transform: translateY(-2px);
}

#send-message-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.honeypot-field {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Contact Section */
@media (max-width: 900px) {
  .contact-section .container {
    flex-direction: column;
    gap: 30px;
  }
  
  .contact-image-wrapper {
    order: 2;
    min-width: unset;
    max-width: 400px;
  }
  
  .contact-form-wrapper {
    order: 1;
    min-width: unset;
    max-width: 100%;
    padding: 30px 20px;
  }
  
  .form-heading {
    font-size: 1.8rem;
  }
  
  .form-subheading {
    font-size: 1rem;
  }
}

@media (max-width: 575px) {
  .contact-section {
    padding: 40px 0;
  }
  
  .contact-form-wrapper {
    padding: 20px 16px;
  }
  
  .form-heading {
    font-size: 1.6rem;
  }
  
  .form-group input,
  .form-group textarea {
    font-size: 0.95rem;
  }
  
  .checkbox-phone-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
  .checkbox-phone-group input {
    margin: 0px !important;
    align-self: center;
  }
  
  .phone-input-wrapper {
    width: 100%;
    margin: 0px !important;
  }

  /* Hide the info icon on mobile */
  .info-icon {
    display: none !important;
  }

  /* Stack name and email fields vertically on mobile */
  .name-email-group {
    grid-template-columns: 1fr;
    gap: 0px;
  }


  .service-cards-grid .service-card .service-icon {
    font-size: 18px;
    margin-bottom: 4px;
  }

  /* Ensure selected state icons are visible on mobile */
  .service-cards-grid .service-card.selected .service-icon {
    color: #28a745 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .service-cards-grid .service-card span {
    font-size: 0.65rem;
  }

  /* Reduce the size of floating error messages on mobile */
  .floating-message {
    font-size: 0.8rem !important;
    padding: 8px 12px !important;
    line-height: 1.2 !important;
    white-space: normal !important; /* Allow text to wrap on mobile */
  }

  /* Hide the old desktop hover-over file list on mobile */
  .all-files-tooltip {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Remove hover effect from the '...' indicator on mobile */
  .more-files-indicator:hover {
    color: initial !important;
    background: initial !important;
  }
}

/* =====================
   Footer Section
   ===================== */

footer {
  background: #191a18;
  color: #fff;
  padding: 60px 0 0 0;
}

.footer-content {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.coverage-map-section {
  margin-bottom: 40px;
}

.coverage-map-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 1.5rem;
}

#map-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(34,34,34,0.1);
}

#map {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.map-buttons-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 12px;
  z-index: 1000;
}

.footer-state-btn {
  background-color: rgba(var(--green-rgb), 0.7); 
  -webkit-backdrop-filter: blur(5px); 
  backdrop-filter: blur(5px); 
  border: 1px solid rgba(255, 255, 255, 0.3); 
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px; 
  cursor: pointer;
  font-size: 1.0rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
  flex-grow: 1; 
  text-align: center;
}

.footer-state-btn:hover {
  background-color: rgba(var(--green-rgb), 0.9); 
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.05); 
}


.footer-bottom-info {
  background-color: #1a1a1a; 
  
}

.footer-bottom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 40px;
  padding: 40px 0 0 0;
  text-align: center; 
  align-items: flex-start;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  background: transparent !important;
}


.footer-brand {
  text-align: center; 
}

.footer-logo {
  max-width: 210px; 
  height: auto;
  display: block; 
  margin-left: auto; 
  margin-right: auto; 
}

.footer-brand .company-name {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: #fff;
}

.footer-brand .tagline {
  font-style: italic;
  color: #c8c3bc;
  margin-bottom: 0;
  font-size: 0.95rem;
}


.footer-contact h2 {
  color: var(--green, #4A6B3D);
  font-size: 2rem;
}

.footer-contact p {
  color: #ddd;
  margin-bottom: 15px;
  font-size: 1.05rem;
  line-height: 2;
}

.footer-contact p i {
  margin-right: 10px;
  color: var(--green, #4A6B3D);
  font-size: 1.15rem; 
}

.footer-contact p a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact p a:hover {
  color: var(--light-green, #b6e388); 
  text-decoration: underline;
}

.footer-contact .availability-text {
  font-weight: bold;
  color: var(--green, #4A6B3D);
  margin-bottom: 15px;
  font-size: 1.1rem;
}


.copyright-section {
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 1px solid #333; 
  margin-top: 30px; 
  text-align: center;
  border-top-color: #7b7265;
}

.copyright-section .copyright {
  font-size: 0.85rem;
  color: #c8c3bc;
  margin: 0;
}


@media (max-width: 768px) {
  .footer-bottom-grid {
      grid-template-columns: 1fr; 
      text-align: center; 
  }
  .footer-brand, .footer-contact {
      padding-top: 0; 
  }
  .map-buttons-overlay {
      flex-direction: column; 
      gap: 10px;
      width: 80%; 
  }
}

/* --- Overlay for attached files modal --- */
.file-list-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000;
}

.file-list-modal {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    max-width: 90vw; width: 300px; max-height: 80vh;
    overflow-y: auto;
    position: relative;
    display: flex; flex-direction: column;
}

.file-list-modal h3 {
    margin: 0 0 15px 0;
    text-align: center;
    color: #333;
}

.modal-file-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.close-modal-btn {
    position: absolute; top: 10px; right: 10px;
    background: none; border: none;
    font-size: 1.5rem; font-weight: bold;
    cursor: pointer; color: #333;
    padding: 5px; line-height: 1;
}

.modal-file-list .file-tag {
    height: auto; font-size: 0.95rem; padding: 8px 12px;
}