/* --- VARIABLES & RESET --- */
:root {
    --primary-blue: #0a2540;
    --secondary-blue: #00509d;
    --accent-cyan: #4cc9f0;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-light: #9ca3af;
    --gradient-blue: linear-gradient(135deg, #0a2540 0%, #1e3a8a 100%);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
    --glow: 0 0 15px rgba(76, 201, 240, 0.4);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
}
h5{
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-LightGray);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---Logo--- */
.logo img {
    height: 70px; /* Adjust this number to fit your navbar height */
    width: auto;  /* Keeps the aspect ratio correct */
    vertical-align: middle; /* Aligns it nicely with other navbar items */
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-blue);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.section-padding { padding: 80px 0; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { font-size: 1.1rem; color: #555; }

/* --- ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- HEADER --- */
.top-bar {
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i { color: var(--secondary-blue); }

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-item {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-blue);
    position: relative;
}

.nav-item:hover { color: var(--secondary-blue); }

.header-right {
    display: flex; 
    align-items: center; 
    gap: 20px;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-card);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 3px solid var(--secondary-blue);
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background: var(--light-bg);
    color: var(--secondary-blue);
}

.nav-cta {
    background: var(--primary-blue);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
}

.nav-cta:hover { box-shadow: var(--glow); }

.mobile-toggle { display: none; font-size: 1.5rem; color: var(--primary-blue); cursor: pointer; }

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 85vh;
    background: linear-gradient(rgba(10, 37, 64, 0.75), rgba(10, 37, 64, 0.6)), url('/assets/TPO-hero.jpg');
    background-size: cover;
    background-position: center bottom;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.hero-content { 
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Or center, depending on your design */
    justify-content: center;
    max-width: 800px;
    padding: 0 20px;
    
    /* Adds a soft shadow behind the text for readability over light parts of the image */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); 
    z-index: 2; /* Keeps text above the background */
}
.hero h1 { color: var(--white); font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; }
.hero-tagline { font-size: 1.25rem; margin-bottom: 40px; font-weight: 400; text-shadow: 0 0 5px; }
.hero-btns { display: flex; gap: 20px; flex-wrap: wrap; }


/* --- Trust Bar --- */
.trust-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
}

/* Layout */
.trust-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 14px 24px;
}

/* Title */
.trust-bar-title {
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 10px #b3bdc0;
}

/* Carousel viewport */
.trust-carousel {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Moving track */
.trust-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: scroll 90s linear infinite;
}

/* Items */
.trust-item {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0.85;
}

.trust-item:hover { opacity: 1; }

/* Pause on hover */
.trust-carousel:hover .trust-track {
  animation-play-state: paused;
}

/* Animation */
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Mobile Optimization --- */
@media (max-width: 768px) {

  .hero {
    position: relative; 
    min-height: 85vh;
    padding-bottom: 110px;
    text-align: center; 
    height: auto; 
    padding: 100px 0;
    overflow: hidden;
  }  
  .hero-content h1 {
        font-size: 2.5rem; /* Scales down the massive text */
        br { display: none; } /* Optional: hides the hard line break on mobile so it flows naturally */
  }

  .hero-tagline {
        font-size: 1.1rem;
        margin-bottom: 25px;
  }

  .hero-btns { 
    justify-content: center; 
  }

  .trust-bar {
    position: absolute;
    bottom: 0;
    left: 0;
  }

  .trust-inner {
    gap: 16px;
    padding: 12px 14px;
  }

  .trust-bar-title {
    font-size: 1.2rem;
  }

  .trust-item {
    font-size: 1rem;
  }

  .trust-track {
    gap: 24px;
    animation-duration: 35s;
  }

}
/* --- WHY CHOOSE US --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    border-left: 4px solid var(--secondary-blue);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.feature-card:hover { transform: translateY(-5px); }
.feature-card i { font-size: 2rem; color: var(--secondary-blue); margin-bottom: 20px; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 15px; }

/* --- SERVICES --- */
.services { background: var(--light-bg); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(114, 118, 122, 0.15);
}

.service-img { height: 220px; width: 100%; object-fit: cover; }
.service-content { padding: 30px; }
.service-content h3 { margin-bottom: 10px; font-size: 1.4rem; }
.service-content p { color: #666; font-size: 0.95rem; margin-bottom: 20px; }
.service-link {
    color: var(--secondary-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- PROJECTS GRID --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-item {
    position: relative;
    height: 300px;
    border-radius: 8px; /* Adds a modern, soft edge */
    overflow: hidden; /* Keeps the hover scale inside the box */
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(10, 37, 64, 0.568), rgba(10,37,64,0.1));
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: #ffffff; /* Replaced var for safety, change back if needed */
    transition: opacity 0.4s ease;
}

.project-item:hover img { transform: scale(1.08); }
.project-item:hover .project-overlay { opacity: 1; }

/* Mobile Slider Fixes */
@media (max-width: 768px) {
    .project-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px; /* Space for scrollbar */
        -webkit-overflow-scrolling: touch;
        gap: 15px;
    }
    .project-item {
        flex: 0 0 85%; /* Shows 85% of image so user knows they can swipe */
        scroll-snap-align: center;
    }
    .project-overlay {
        opacity: 1; /* Always show text on mobile since there is no hover */
        background: linear-gradient(to top, rgba(10,37,64,0.9), transparent);
    }
}

/* --- LIGHTBOX MODAL --- */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
    text-align: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

#lightbox-caption {
    color: #fff;
    margin-top: 15px;
    font-size: 1.2rem;
}

.close-lightbox {
    position: absolute;
    top: 20px; right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 4px;
}

.lightbox-prev { left: 5%; }
.lightbox-next { right: 5%; }
.lightbox-prev:hover, .lightbox-next:hover, .close-lightbox:hover { background-color: rgba(255,255,255,0.2); }

/* --- TESTIMONIALS --- */
.testimonials { background: var(--primary-blue); color: var(--white); }
.testimonials h2 { color: var(--white); }
.testimonials p { color: rgba(255,255,255,0.8); }

.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.testimonial-card {
    min-width: 500px;
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.stars { color: #facc15; margin-bottom: 15px; }

/* --- FOOTER --- */
footer {
    background: #051626;
    color: #d1d5db;
    padding: 80px 0 30px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 { color: var(--white); margin-bottom: 25px; font-size: 1.1rem; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--accent-cyan); text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 15px; }
.footer-contact i { color: var(--accent-cyan); margin-top: 4px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* Hidden by default on mobile */
    }
    
    /* State: Mobile Menu Active */
    .nav-links.nav-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .mobile-toggle { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .top-bar .container { justify-content: center; }
    .license-info { display: none; }
}


/* --- INNER PAGE STYLES (Add to css/style.css) --- */

/* Page Hero (Smaller than Home Hero) */
.page-hero {
    background: linear-gradient(rgba(10, 37, 64, 0.85), rgba(10, 37, 64, 0.75)), url('/assets/TPO-layover/37-Jun\ 16\,\ 2024\ 18-46-24-krbF.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px;
    color: var(--white);
    text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 10px; }

/* --- Map Hero Specific Styles (SEO Image Fix) --- */
.map-hero {
    position: relative;
    overflow: hidden;
    background: none !important; /* Overrides the default .page-hero background */
    padding: 120px 0 60px;
}

.hero-background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(10, 37, 64, 0.493), rgba(10, 37, 64, 0.651));
    z-index: 2;
}

.hero-content-wrapper { 
    position: relative; 
    z-index: 3; 
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f3f4f6;
    padding: 15px 0;
    font-size: 0.9rem;
    margin-bottom: 40px;
}
.breadcrumbs a { color: var(--secondary-blue); font-weight: 600; }
.breadcrumbs span { color: #6b7280; margin: 0 5px; }

/* Sidebar Layout */
.content-wrapper {
    display: flex;
    gap: 50px;
    margin-bottom: 80px;
}

.main-content { flex: 2; }
.sidebar { flex: 1; }

.main-content h2 { margin-bottom: 20px; color: var(--primary-blue); }
.main-content p { margin-bottom: 20px; color: #4b5563; }
.main-content ul { margin-bottom: 20px; list-style: disc; padding-left: 20px; }
.main-content li { margin-bottom: 10px; color: #4b5563; }

/* Sidebar Widgets */
.widget {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-top: 4px solid var(--secondary-blue);
}
.widget h3 { margin-bottom: 15px; font-size: 1.2rem; }
.widget-links li { border-bottom: 1px solid #e5e7eb; padding: 10px 0; }
.widget-links li:last-child { border: none; }
.widget-links a:hover { color: var(--secondary-blue); padding-left: 5px; }

/* Contact Form */
.contact-form {
    display: grid;
    gap: 20px;
}
.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
}
.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: inherit;
    /* CRITICAL FIX: Forces padding to stay inside the 100% width, stopping horizontal overflow */
    box-sizing: border-box; 
}
.form-group input:focus, 
.form-group textarea:focus {
    outline: 2px solid var(--secondary-blue);
    border-color: transparent;
}

/* Responsive Inner Pages */
@media (max-width: 768px) {
    .content-wrapper { 
        flex-direction: column; 
        /* Adds breathing room on the left and right sides of the screen */
        padding: 0 15px; 
    }
    .sidebar { 
        order: 2; 
    }
    /* Forces the First Name & Last Name grid to stack into a single column on mobile */
    .contact-form > div {
        grid-template-columns: 1fr !important; 
    }
}
/* --- Container Setup --- */
/* --- Container --- */
.service-area-wrap {
  position: relative; /* Allows us to place the card "on top" */
  width: 100%;
  overflow: hidden;
  background-color: #f0f8ff; /* Matches the ocean color just in case */
}

/* --- The Map Image --- */
.map-bg {
  width: 100%;
  height: auto; /* This guarantees the image is NEVER cropped */
  display: block;
  object-fit: cover; /* Ensures it fills the width cleanly */
}

/* --- The "Glass" Card --- */
.glass-card {
  /* Positioning: Floats on top of the image */
  position: absolute; 
  top: 50%; 
  left: 5%; /* Anchors card to the left side */
  transform: translateY(-50%); /* Perfectly centers it vertically */
  z-index: 2; /* Ensures it stays on top of the map */
  
  /* Styling */
  background: rgba(255, 255, 255, 0.90); /* Slightly less transparent for readability */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  max-width: 450px;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* --- Typography & Elements (Same as before) --- */
.glass-card h2 { margin-top: 0.5rem; margin-bottom: 1rem; color: #1a1a1a; font-size: 2rem; font-family: sans-serif; }
.glass-card p { color: #4a4a4a; line-height: 1.6; margin-bottom: 1.5rem; font-size: 1rem; font-family: sans-serif; }
.tag { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; font-weight: bold; color: #0066cc; background: rgba(0, 102, 204, 0.1); padding: 4px 8px; border-radius: 4px; }
.location-list { list-style: none; padding: 0; margin-bottom: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.location-list li { font-size: 0.95rem; color: #333; font-weight: 500; font-family: sans-serif; }
.service-btn { display: inline-block; background-color: #0066cc; color: white; text-decoration: none; padding: 12px 24px; border-radius: 6px; font-weight: bold; font-family: sans-serif; transition: all 0.3s ease; }
.service-btn:hover { background-color: #004c99; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3); }

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
  .service-area-wrap {
    display: flex;
    flex-direction: column; /* Stacks items vertically */
  }

  .map-bg {
    position: relative;
    height: 300px; /* Force a specific height on mobile */
    object-fit: cover; /* Crops sides on mobile to keep map filled */
    object-position: 75% center; /* Focuses on Florida (Right side) */
  }

  .glass-card {
    position: relative; /* Stops floating */
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0; /* Flattens corners for full width */
    margin: 0;
    box-shadow: none;
    border-top: 1px solid #eee;
  }
}

/* Social Media Footer Styles */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap; /* Ensures they drop down on small mobile screens if needed */
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #374151; /* Dark gray to match your existing subtle tones */
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    font-family: Arial, sans-serif; /* Clean font for the Nextdoor/BBB text */
}

/* Hover Animations and Brand Colors */
.social-icon:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

.social-icon.facebook:hover { background-color: #1877F2; }
.social-icon.instagram:hover { background-color: #E1306C; }
.social-icon.twitter:hover { background-color: #000000; }
.social-icon.nextdoor:hover { background-color: #8ED081; } /* Nextdoor Green */
.social-icon.bbb:hover { background-color: #005A9C; } /* BBB Blue */

/* Force Font Awesome icons inside social links to be white */
.social-icon i {
    color: #ffffff !important;
}

/* Review Page Grid & Cards */
/* --- Review Page - Clean Grid Update --- */

/* 1. Add this wrapper in your HTML around the review grid */
.review-page-container {
    max-width: 1100px; /* Limits overall width for a cleaner look on desktops */
    margin: 0 auto; /* Centers the whole section */
    padding: 0 20px; /* Essential: creates inner side padding on mobile */
    box-sizing: border-box;
}

.review-grid {
    display: grid;
    /* Forces exactly 2 equal columns, which naturally creates 2 rows for your 4 cards */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px; 
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

.review-card {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 40px 25px; /* More padding for a cleaner feel */
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    
    /* Fix: Ensures border doesn't add to width */
    box-sizing: border-box; 
    position: relative;
    z-index: 1; /* Keeps card interaction clean */
}

/* Subtly lifts card on hover without crowding neighbors */
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 2; /* Lifts it visually above the grid plane */
}

/* Fix for icons to ensure they align properly within the card */
.review-card .icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px; /* Clean size for Font Awesome icons */
    color: #ffffff;
    margin-bottom: 25px;
    
    /* Added Safetynet: forces circle shape and prevents flex stretching */
    flex-shrink: 0; 
}

/* Text styles remain clean and aligned */
.review-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.25em;
    color: #111827;
}

.review-card p {
    font-size: 0.95em;
    color: #6b7280;
    margin: 0;
    line-height: 1.5; /* Improves readability */
}

/* Brand Colors (Keep these from previous Turn) */
.review-card.google:hover { border-color: #4285F4; }
.review-card.google .icon-wrapper { background-color: #4285F4; }

.review-card.facebook:hover { border-color: #1877F2; }
.review-card.facebook .icon-wrapper { background-color: #1877F2; }

.review-card.nextdoor:hover { border-color: #8ED081; }
.review-card.nextdoor .icon-wrapper { background-color: #8ED081; }

.review-card.bbb:hover { border-color: #005A9C; }
.review-card.bbb .icon-wrapper { background-color: #005A9C; }

/* Mobile Responsiveness: Stacks cards into 1 column on smaller screens */
/* Mobile Responsiveness: Stacks cards into 1 column on smaller screens */
@media (max-width: 768px) {
    .review-grid {
        grid-template-columns: 1fr;
        gap: 20px; /* Slightly reduces the massive gap between stacked cards on mobile */
    }
    
    .review-page-container {
        padding: 0 15px; /* Ensures the container has breathing room on the left/right */
    }
}

/* --- NEW LAYOUT UTILITIES --- */
.bg-light {
    background-color: var(--light-bg);
}

/* --- 4-COLUMN PROJECTS GRID --- */
.projects-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .projects-4-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-4-col {
        /* On mobile, falls back to horizontal scrolling just like the rest of your projects */
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px; 
        -webkit-overflow-scrolling: touch;
        gap: 15px;
    }
    .projects-4-col .project-item {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
}

/* --- LOCAL RESOURCES & SEO --- */
.local-seo-resources {
    background-color: var(--light-bg);
    border-top: 1px solid #e5e7eb;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
    padding: 20px 0;
}

.resource-card {
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-blue);
}

.resource-icon {
    width: 75px;
    height: 75px;
    background: var(--gradient-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.resource-card:hover .resource-icon {
    transform: scale(1.1);
    box-shadow: var(--glow);
}

.resource-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.resource-card p {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* --- INNER PAGE TRUST BAR --- */
.inner-trust-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px solid #e5e7eb; /* Adds a subtle dividing line from the text */
    flex-wrap: nowrap; /* Forces a single line on desktop */
    gap: 15px;
}

.trust-logo {
    max-width: 30%; /* Ensures 5 logos fit perfectly with gaps */
    height: auto;
    max-height: 90px; /* Prevents logos from getting excessively tall */
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6); /* Modern desaturated look */
    transition: var(--transition);
}

.trust-logo:hover {
    filter: grayscale(0%) opacity(1); /* Returns to full color on hover */
    transform: translateY(-2px);
}

/* Mobile Responsiveness for Trust Bar */
@media (max-width: 768px) {
    .inner-trust-bar {
        flex-wrap: wrap; /* Allows logos to drop to the next line */
        justify-content: center;
        gap: 25px 30px; /* Adds breathing room between stacked logos */
    }
    
    .trust-logo {
        max-width: 25%; /* Slightly larger on mobile for readability */
        max-height: 45px;
    }
}

@media (max-width: 480px) {
    .trust-logo {
        max-width: 40%; /* Creates a neat 2-column grid look on very small screens */
    }
}

/* --- ROOF TYPES GRID (Inner Pages) --- */
.roof-types-wrapper {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px solid #e5e7eb; /* Divides the trust bar from this section */
}

.roof-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
    gap: 20px;
}

.roof-type-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.roof-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-blue);
}

.roof-type-card img {
    width: 100%;
    height: 160px; /* Locks all images to the exact same height */
    object-fit: cover; /* Ensures images crop nicely instead of stretching */
    display: block;
}

.roof-type-info {
    padding: 20px;
}

.roof-type-info h4 {
    margin-bottom: 8px;
    font-size: 1.15rem;
    color: var(--primary-blue);
}

.learn-more-link {
    color: var(--secondary-blue);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

/* Animates the arrow specifically on hover */
.learn-more-link:hover {
    color: var(--primary-blue);
    gap: 12px; 
}

/* Mobile Responsiveness for Grid */
@media (max-width: 600px) {
    .roof-types-grid {
        grid-template-columns: 1fr; /* Stacks cards into 1 column on small phones */
    }
    
    .roof-type-card img {
        height: 200px; /* Gives the image a bit more height on mobile so it doesn't look squished */
    }
}