:root {
    --brand-green: #69d618; /* Your MegaPro Green */
}

body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.25;
  color: #333;
}

/* Hero */
.main-header {
    background: black;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes Logo, Nav, and Button apart */
    padding: 0 20px;
}

.logo img {
    height: 50px; /* Adjust based on your logo shape */
    width: auto;
}

#nav-menu-mobile, .nav-sm-links {
  display: none;
  color: white;
}

#menu-close-icon{
	display:none;
}

#nav-menu-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    transition: color 0.3s;
    font-weight: lighter;
    letter-spacing: 0.75px;
    font-size: 14px;
    text-transform: uppercase;
}

.nav-menu a:hover { color: var(--brand-green);}

/* The Green Call Button */
.btn-call {
    background-color: #2e7d32; /* Professional Forest Green */
    color: white !important;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
}

.btn-call:hover {
    background-color: #1b5e20;
    transform: scale(1.05);
}

@media (max-width: 1050px) {
  #nav-call-btn { display: none; }
}

/* Modified Styles for the Slide-in Menu */
@media (max-width: 850px) {
    #logo { order: 0; }
    #nav-call-btn { order: 1; }
    #nav-menu { order: 2; }

    #nav-menu-mobile {
      display: block;
      font-size: 28px;
      cursor: pointer;
      z-index: 1001; /* Above the slide-in menu */
    }

    #nav-menu-mobile a {
      font-size: 22pt;
      color: var(--brand-green);
    }

    .nav-sm-links {
      display: inline-flex;
      gap: 10px;
      padding: 10px 20px;
    }

    #nav-menu-links {
      /* Mobile Layout */
      display: flex; 
      flex-direction: column;
      gap: 0;
      
      /* Positioning */
      position: fixed;
      top: 80px; /* Adjust this to match your header's actual height */
      right: 0;
      width: 250px;
      height: calc(100vh - 80px);
      background: #111; /* Darker to contrast with header */
      padding: 20px 0;
      
      /* The "Slide" Animation */
      transform: translateX(100%); 
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 999;
    }

    /* This class is toggled by JS */
    #nav-menu-links.open {
        transform: translateX(0);
    }

    .nav-link {
        width: 100%;
        border-bottom: 1px solid #222;
    }

    .nav-link a {
        display: block;
        padding: 20px;
        width: 100%;
    }
}

@media (max-width: 500px) {
    .header-cta {
      display: none;
    }
}

/* Sections */
section {
  padding: 2rem;
  text-align: center;
  padding: 40px 5%;
  text-align: center;
  color: white;
}

.section-header {
  font-family: Arial;
  font-size: 24pt;
  font-weight: normal;
  padding: 20px 0;
  font-weight: bold;
  margin: 0;
}

.section-header-text {
  margin: auto; 
  max-width: 600px;
}

.section-header-text p {
  font-size: 20px;
  font-weight: normal;
  letter-spacing: .25px;
  font-weight: lighter;
}


@media (max-width: 450px) {

  .section-header {
    font-family: Arial;
    font-size: 20pt;
  }

  .section-header-text p{
    font-size: 14px;
  }

}


#contact-us, #reviews{
  background-color: #f4f4f4;
}

#projects, #materials {
  background-color: #1a1a1a;
}

#guarantee {
  background-color: black;
}

#projects .section-header,
#materials .section-header,
#guarantee .section-header {
  color: var(--brand-green);
}

#services .section-header, 
#reviews .section-header,
#certifications .section-header,
#certifications .section-header-text,
#contact-us .section-header {
  color: black;
}

#welcome, #reviews, #projects, #contact-us, #services, #guarantee, #certifications,
#residential-roofing, #commercial-roofing, #siding-repair-installation,
#windows-and-doors, #custom-masonry, #exterior-renovations {
  scroll-margin-top: 80px; 
  scroll-behavior: smooth;
}

/* Layout Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 450px) {
  .grid-container {
    grid-template-columns: unset;
    padding: 20px 0;
  }
}

/* Individual Project Cards */
.reviews-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.reviews-card:hover {
    transform: translateY(-5px);
}

/* Image Handling */
.reviews-card img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Keeps roofing photos from looking squashed */
    display: block;
}

/* Text Padding */
.reviews-info {
    padding: 1.5rem;
    flex-grow: 1;
}

.reviews-info h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #333;
}

.reviews-info p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* --- Hero Section Container --- */
.hero-section {
    /* Replace with your actual roofing image path */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('images/splash.webp') no-repeat center center/cover;
    min-height: 85vh; /* Adjusted for better visibility */
    align-items: center;
    position: relative;
}
.hero-overlay {
  margin: auto;
}
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    display: flex;
    justify-content: space-between; /* Pushes text left, form right */
    align-items: center;
    padding: 40px 20px;
}

/* --- Left Side: Dynamic Text Area --- */
.hero-text {
    flex: 1;
    color: #ffffff;
    max-width: 650px;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font sizing */
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-text p {
    font-size: 1.25rem;
    line-height: 1.6;
}

/* --- Right Side: The Floating Form Card --- */
.hero-form-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 400px; /* Limits width on large screens */
    margin: auto;
}

.hero-form-card h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
    text-align: center;
}

/* --- Form Internal Layout (The "One Line" Fix) --- */
.lead-form {
    display: flex;
    flex-direction: column; /* Forces vertical stack */
    gap: 15px; /* Spacing between inputs */
}

.lead-form input, 
.lead-form select, 
.lead-form textarea {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.lead-form select:disabled, .lead-form select:invalid {
  color: gray; /* Grey color for the placeholder */
}

.lead-form select:valid {
  color: black; /* Normal color after a valid selection */
}

.lead-form button {
  width: 100%;
  padding: 16px;
  background-color: #2e7d32; /* Your Green Call Color */
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
}

.lead-form button:hover {
  background-color: #1b5e20;
  transform: translateY(-2px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1000px) {
  .hero-container {
    display: block;
    width: 100%;
    padding: 0 0;
  }

  .hero-text {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .hero-form-card {
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    .hero-form-card {
        padding: 20px;
        width: unset;
    }
}

/* SITE FOOTER*/
.site-footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 60px 20px 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.5fr; /* Gives more room to the area list */
    gap: 40px;
}

.footer-section h3 {
    color: var(--brand-green);
    font-size: 1.3rem;
    margin-bottom: 20px;#f39c12
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo {
    font-size: 1.6rem !important;
    font-weight: bold;
}

.license-info {
    margin-top: 15px;
    font-weight: bold;
    color: #f39c12;
}

/* Layout for the icons under the logo */
.footer-contact-strip {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* The Mini Round Badge */
.badge-circle-mini {
    width: 30px;
    height: 30px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

.badge-circle-mini img {
    width: 20px;
    height: 20px;
    /* This makes the icon lines black */
    filter: brightness(0); 
}

.footer-section p {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.service-list a {
  text-decoration: none;
  color: white;
}

.county-group {
    margin-bottom: 15px;
}

.county-group h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1rem;
}

.county-group p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #999;
}

.county-group a {
  text-decoration: none;
  color: #ccc;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: #666;
}




/* Responsive for Mobile */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

.sm-icon {
  width: 50px;
  height: 50px;
}

/* Container & Section */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px;
}

/* Left Column Styling */
.contact-text-side h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.contact-text-side p {
    color: #555;
    margin: auto;
}

@media (max-width: 850px) {
  .contact-container {
    display: inline-block;
    padding: 0 0;
  }

  .contact-text-side, .contact-form-side {
    padding-bottom: 40px;
    max-width: 400px;
  }

}

.contact-list {
  padding: 0 20px;
  justify-items: left;
}

.contact-item-block {
  width: 100%;
  padding-top: 20px;
  justify-self: left;
  justify-items: left;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

/* Round White Badges */
.badge-circle {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.badge-circle img {
    width: 28px;
    height: 28px;
    filter: brightness(0); /* Forces icons to be black if they are SVGs */
}

.item-label {
  text-align: left;
}

.item-label span {
    display: block;
    text-align: left;
    color: black;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.item-label strong {
    color: #1a1a1a;
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden; /* Clips the image to the border radius */
    border: 1px solid #c0c0c0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #69d618;
}

.service-image-box {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the area without stretching */
    transition: transform 0.5s ease;
}

.service-card:hover .service-image-box img {
    transform: scale(1.1); /* Subtle zoom effect on hover */
}

.service-content {
    padding: 25px;
    text-align: left;
}

.service-content h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: #1a1a1a;
    border-left: 4px solid #69d618; /* Brand accent next to the title */
    padding-left: 12px;
}

.service-content p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Brands & Materials Section */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    justify-items: center;
    padding: 30px 10px;
}

.brand-item {
    text-align: center;
    justify-items: center;
}

.brand-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.brand-item img {
    width: 140px;
    height: 140px;
    margin-bottom: 10px;
    display: block;
}

.brand-item span {
    font-size: 0.75rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .brand-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on mobile */
        gap: 30px;
        padding: 20px 0px;
    }
}


/** GUARANTEE **/
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 50px auto 0;
}

.dark-card {
    background: #1a1a1a; /* Deep black cards */
    color: #ffffff;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.dark-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-color: #69d618; /* Border turns green on hover */
}

.card-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(105, 214, 24, 0.3));
}

.dark-card h3 {
    font-size: 1.6rem;
    color: var(--brand-green);
    margin-bottom: 15px;
}

.dark-card p {
    color: #ccc;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 20px;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list div {
    font-size: 0.9rem;
    margin-bottom: 10px;
    position: relative;
    color: #eee;
}

.checkmark {
  color: var(--brand-green);
  font-weight: bold;
  padding: 0 10px 0 0;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .guarantee-grid {
        grid-template-columns: 1fr;
    }
}


/* PROJECTS */
.project-list-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px; /* Large gap between projects */
    margin-top: 40px;
}

.project-row {
  border: 1px silver solid;
  padding: 20px;
  border-radius: 20px;
  background-color: #f4f4f4;
}

/* Description on top */
.project-info {
    text-align: center;
    justify-items: center;
    display: inline-block;
    padding-bottom: 20px;
}

.project-info h3 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.project-info p {
    color: #555;
    line-height: 1.6;
    max-width: 600px;
}

.project-divider {
    position: relative;
    height: 1px;
    background-color: #e0e0e0; /* Light gray line */
    width: 60%;                /* Doesn't span the whole width, looks cleaner */
    margin: auto;         /* Centered with space above and below */
}

.project-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #69d618; /* Your Brand Green */
    border: 3px solid #f9f9f9; /* Matches background to "cut" the line */
    border-radius: 2px;
}

/* The Side-by-Side Comparison */
.comparison-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.photo-box {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 6px;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Overlays */
.photo-tag {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 10;
}

.tag-before {
    left: 20px;
    background-color: rgba(220, 53, 69, 0.9); /* Red for Before */
}

.tag-after {
    right: 20px;
    background-color: rgba(105, 214, 24, 0.9); /* MegaPro Green for After */
}

/* Responsive Mobile Handling */
@media (max-width: 768px) {
    .comparison-display {
        grid-template-columns: 1fr; /* Stack images on mobile */
    }
    .photo-box {
        height: 250px;
    }
    .project-info h3 {
        font-size: 1.4rem;
    }
}


/* --- CERTIFICATIONS SECTION --- */
.cert-section {
    padding: 40px 20px;
    background-color: #f9f9f9; /* Light grey to separate from white sections */
    text-align: center;
}

.cert-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    color: #222;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Grid Logic: Stacked on mobile, 2 columns on tablet, 4 on desktop */
.cert-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stacked by default */
    gap: 20px;
    padding: 20px;
}

.cert-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

/* Hover Effect */
.cert-item:hover {
    transform: translateY(-10px); /* Lift up effect */
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.cert-item img {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    filter: grayscale(20%); /* Modern look, turns full color on hover if you like */
}

.cert-item h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: #333;
}

.cert-item p {
    font-weight: bold;
    color: #d32f2f; /* Red tone for importance */
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.cert-benefit {
    display: block;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

/* Responsive Breakpoints */
@media (min-width: 600px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row */
    }
}

@media (min-width: 1024px) {
    .cert-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 per row */
    }
}

/* Cloudflare Turnstile Widget */
/* Ensure the widget is centered and doesn't push content abruptly */
.cf-turnstile {
    margin: 10px 0;
    min-height: 65px; /* Prevents layout shift during loading */
}

/* Optional: Hide the widget container if you want it truly invisible 
   (only works if dashboard is set to 'Invisible') */
.cf-turnstile:empty {
    display: none;
}