/* 1. General Reset & Smooth Scrolling */
html {
    scroll-behavior: smooth;
    background-color: #1b3d17; 
    /* This ensures sections stop perfectly below your sticky header */
 
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* This keeps the main content area white while the outer bounds stay green */
    background-color: #ffffff; 
    color: #333;
    line-height: 1.6;
  
}

.content-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. Sticky Header */
.main-header {
    background-color: #1b3d17;
    padding: 10px 0;
    border-bottom: 5px solid #d32f2f;
    position: -webkit-sticky;
    position: sticky;
    top: 0; /* Changed from 35px to 0 */
    z-index: 1000;
    width: 100%;
    margin-top: 0; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-wrapper { display: flex; align-items: center; gap: 15px; }
.header-icon { height: 58px; width: auto; }
.logo { font-size: 28px; font-weight: 800; margin: 0; color: #ffffff; }

.nav-links { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; align-items: center; }
.nav-links a { text-decoration: none; color: #ffffff; font-weight: bold; font-size: 17px; }

.quote-nav-btn {
    background-color: #ffffff;
    color: #1b3d17 !important;
    padding: 8px 15px;
    border-radius: 5px;
}

/* 3. Photos & Hover Effect */
.photo-grid { display: flex; gap: 20px; margin-bottom: 60px; margin-top: 40px; }
.photo-item { flex: 1; text-align: center; }
.photo-item img, .side img {
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-radius: 10px;
    object-fit: cover;
}
.photo-item img { height: 300px; }
.photo-item img:hover, .side img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.photo-item p { margin-top: 12px; font-weight: bold; font-size: 18px; color: #1b3d17; }

/* 4. About Section (Uniform Left Alignment) */
.about-content {
    text-align: center;
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
   
    scroll-margin-top: 120px; /* Offset for sticky header */
}

.section-title { font-size: 36px; margin-bottom: 30px; font-weight: bold; color: #1b3d17; }

.about-text-wrapper p {
    font-size: 20px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: left; /* Crisp left edge */
}

/* 5. Transformations */
.transformation-section { margin-bottom: 80px;  text-align: center;}
.comparison-card { display: flex; gap: 15px; padding: 15px; border: 1px solid #eee; border-radius: 12px; }
.side { flex: 1; position: relative; }
.side img { height: 450px; }
.label { position: absolute; bottom: 20px; left: 20px; background: rgba(0,0,0,0.85); color: white; padding: 8px 16px; font-weight: bold; border-radius: 4px; font-size: 14px; }

/* 6. Split Container (Level Headers) */
.split-container {
    display: flex;
    gap: 60px;
    margin-bottom: 80px;
    align-items: flex-start; /* Aligns tops of columns */
    scroll-margin-top: 120px; /* Offset for sticky header */
}

.form-side { flex: 1; max-width: 480px; }
.info-side { flex: 1; }

.column-header {
    font-size: 38px;
    font-weight: bold;
    color: #1b3d17;
    margin-top: 0; /* Important for alignment */
    margin-bottom: 30px;
    line-height: 1.2;
}

.form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.form-group { flex: 1; display: flex; flex-direction: column; margin-bottom: 15px; }
label { font-weight: bold; margin-bottom: 8px; font-size: 14px; }
input, textarea { padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 15px; width: 100%; box-sizing: border-box; }
.red-border { border: 2px solid #d32f2f !important; }

.services-title { font-weight: bold; margin: 25px 0 15px 0; font-size: 18px; }
.check-item { display: flex; align-items: center; margin-bottom: 12px; font-size: 16px; cursor: pointer; }
input[type="checkbox"] { width: 18px; height: 18px; margin-right: 12px; }

.submit-btn { width: 100%; background: #000; color: #fff; padding: 18px; border: none; font-size: 18px; font-weight: bold; cursor: pointer; border-radius: 4px; }

.sub-header { font-size: 28px; color: #1b3d17; margin: 30px 0 15px 0; font-weight: bold; }
.license-card { background: #f9f9f9; padding: 25px; border-left: 6px solid #1b3d17; border-radius: 4px; margin: 25px 0; }
.coming-soon {
    color: #333; /* Matches your main body text color */
    font-weight: normal; /* Keeps it from being too bold if you prefer the 'thin' look */
}
/* --- 7. 3-Column Footer (Swapped) --- */
.main-footer {
    background-color: #1b3d17;
    border-top: 5px solid #d32f2f;
    padding: 30px 20px;
    color: #ffffff;
    margin-bottom: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-left, .footer-middle, .footer-right {
    flex: 1;
}

/* Left: Contact Info */
.footer-left {
    text-align: left;
}

.footer-left p {
    margin: 5px 0;
    font-size: 15px;
    font-weight: bold;
}

.footer-left a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-left a:hover {
    opacity: 0.7;
}

/* Middle: Copyright */
.footer-middle {
    text-align: center;
}

.footer-middle p {
    margin: 0;
    font-size: 15px;
}

/* Right: Social Icons */
.footer-right {
    display: flex;
    gap: 20px;
    justify-content: flex-end; /* Pushes icons to the far right */
}

.footer-right a {
    color: #ffffff;
    font-size: 22px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-right a:hover {
    opacity: 0.7;
}
#estimate-start {
    scroll-margin-top: 120px;
}

/* 8. Mobile Responsiveness */
@media (max-width: 850px) {
    .photo-grid, .comparison-card, .split-container, .header-container { flex-direction: column; text-align: center; }
    .logo-wrapper { margin-bottom: 15px; }
    .form-side { max-width: 100%; }
    .side img { height: 300px; }
    .info-side { order: -1; margin-bottom: 40px; }
    /* Fix the anchor link jump for the taller mobile header */
    .about-content,
    .split-container,
    #estimate-start,
    .faq-content,
    #faq-section {
        scroll-margin-top: 10px !important; 
    }
    /* Stack footer elements on mobile */
/* Stack footer elements on mobile */
   /* Stack footer elements on mobile */
    .footer-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .footer-left {
        text-align: center; /* Centers the phone and email text */
    }

    .footer-right {
        justify-content: center; /* Centers the flexbox social icons */
    }
}
/* --- Dropdown Checkbox Menu --- */

.extra-services {
    margin-top: 15px;
    margin-bottom: 15px; /* This adds the space you want above the button */
    cursor: pointer;
}

/* Ensure the space remains even when the menu is open */
.extra-services[open] {
    margin-bottom: 15px;
}
.extra-services summary {
    font-weight: bold;
    font-size: 16px;
    color: #1b3d17; /* Matches your header green */
    list-style: none; /* Removes default arrow */
    padding: 10px;
    background: #f4f4f4;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    
}

/* Adds a custom plus sign that changes to a minus when open */
.extra-services summary::after {
    content: "+";
    font-size: 20px;
    
}

.extra-services[open] summary::after {
    content: "-";
}

.dropdown-content {
    padding: 15px 10px 0 10px;
    border-left: 2px solid #1b3d17;
    margin-left: 5px;
}

.extra-services[open] {
    margin-bottom: 20px;
}
/* --- NEW FAQ Section Styling (Interactive Dropdown) --- */
.faq-section {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    scroll-margin-top: 120px; /* Offset for your sticky header */
}

.faq-section .section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 36px; /* Matched to your other section titles */
    color: #1b3d17;
}

/* Individual FAQ Items */
.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

/* The Question (Summary) */
.faq-item summary {
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* Hides default arrow in Firefox */
    display: flex;
    justify-content: space-between; /* Pushes the + to the right */
    align-items: center;
    color: #333;
    padding-right: 10px;
}

/* Hides default arrow in Chrome/Safari */
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* The Green Plus Sign (+) */
.faq-item summary::after {
    content: '+';
    color: #28a745; /* Clean landscaping green */
    font-size: 1.8rem;
    font-weight: normal;
    transition: transform 0.2s ease-in-out;
}

/* The Minus Sign (-) When Open */
.faq-item[open] summary::after {
    content: '−'; /* Using a true minus sign */
    color: #333; /* Dark gray for contrast when open */
}

/* Hover effect */
.faq-item summary:hover {
    color: #1b3d17;
}

/* The Answer Text */
.faq-answer {
    padding-top: 15px;
    padding-bottom: 10px;
    color: #555;
    line-height: 1.6;
    font-size: 18px;
}
/* --- Premium FAQ Animation (Smooth Slide Down) --- */

/* 1. Animate the container pushing open */
.faq-item[open] .faq-answer {
    /* The cubic-bezier gives it that smooth, fast-start / soft-landing feel */
    animation: slideDown 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    overflow: hidden; /* Keeps text inside the box while it grows */
}

@keyframes slideDown {
    0% {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
    }
    100% {
        opacity: 1;
        max-height: 400px; /* A safe limit taller than your longest answer */
        padding-top: 15px;
    }
}

/* 2. Keep the Plus/Minus symbol spin */
.faq-item summary::after {
    transition: transform 0.3s ease-in-out;
    display: inline-block;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}
/* --- Smooth Close Animation --- */

/* When the JS adds the 'closing' class, run this */
.faq-item.closing .faq-answer {
    animation: slideUp 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideUp {
    0% {
        opacity: 1;
        max-height: 400px;
        padding-top: 15px;
    }
    100% {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
    }
}

/* Optional: Make the plus sign spin back when closing */
.faq-item.closing summary::after {
    transform: rotate(0deg);
}
/* --- Header Button Updates --- */
.nav-links {
    gap: 15px; /* Slightly tighter gap to fit new buttons */
}

/* Styled Contact Buttons (Phone/Email) */
.contact-nav-btn {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 15px !important;
    transition: background-color 0.2s, color 0.2s;
}

.contact-nav-btn:hover {
    background-color: #ffffff;
    color: #1b3d17 !important;
}

/* Offset for the FAQ section so the sticky header doesn't cover it */
#faq-section {
    scroll-margin-top: 100px;
    margin-bottom: 80px;
}

/* Small UI tweak for FAQ text alignment */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}
.submit-btn {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 18px;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    /* This makes the color change look premium */
    transition: all 0.3s ease; 
}

@media (max-width: 850px) {
  /* 1. Stack the new Top Contact Bar so it doesn't smush */
  .bar-flex {
    flex-direction: column;
    gap: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
    justify-content: center;
  }

  /* Make the contact text slightly smaller to fit mobile screens */
  .top-bar-left a {
    margin-right: 10px;
    font-size: 0.9rem;
  }
  .top-bar-right a {
    margin-left: 10px;
  }


  /* 3. Fix the Anchor Link Jump (Stops the titles from hiding behind the header) */
  html {
    scroll-padding-top: 220px; 
  }

  /* --- YOUR ORIGINAL MOBILE CSS BELOW --- */
  .header-container {
    flex-direction: column;
    gap: 15px;
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .nav-links {
    flex-wrap: wrap;        
    justify-content: center; 
    gap: 10px;               
  }
  .nav-links a {
    white-space: nowrap;    
    font-size: 15px !important;      
  }
  img {
    max-width: 100%;
    height: auto;
  }
  .logo {
    font-size: 24px;
  }
}
#user-phone {
    letter-spacing: normal; /* Reset to normal to prevent overlaps */
    padding-left: 10px;
    font-family: inherit;
    color: black; 
}

#user-phone::placeholder {
    color: #b0b0b0; /* Grey placeholder remains */
    letter-spacing: normal;
}


