@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    background: #fff;
    color: #333;
}
a {
    color: #fd0200;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
ul {
    list-style: none;
}
img.mail {
    margin-right: 5px;
}

/* Top Bar */
.top-bar {
  display: flex;
  gap: 30px; /* space between phone and email */
  background: #1a1a1a;
  padding: 10px 20px 10px 400px;
  color: white;

}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon img {
  height: 18px;
  width: auto;
  display: block;
}

.text {
  font-size: 16px;
}
.white {
  color:#fff !important;
}
hr {
    margin: 0px 15px 10px 18px;
}

/* Navigation */
ul li a {
    text-decoration: none;
    color: #000;
}

ul li a::after {
    content: " +";
    font-weight: bold;
    color: #888;
    margin-left: 5px;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
nav ul {
    display: flex;
    gap: 20px;
}
nav ul li a {
    font-weight: 600;
    color: #333;
}
nav .btn {
    background: #0c1970;
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    border-radius:8px;
}
nav .btn:hover {
    background: #007c3a;
}
.logo {
    width: 173px;
    margin-top: 7px;
}
.logo-area {
    background: #CCD6D9;
    position: absolute;
    top: -11px;
    left: -1px;
    padding: 8px 100px 8px 130px;
    border-radius: 0px 0px 0px 0px;
    clip-path: polygon(0 0, 86% 0, 88% 14%, 99% 101%, -1% 100%);
}

nav {
    margin-left: 499px;
}
.social-icons {
    margin-left: 545px;
}
.social-icons i {
    margin-right: 12px;
    font-size: 18px;
}
i.fab.fa-facebook-f {
    color: #fd0200;
}


.top-bar a {
    color: #fff;
    text-decoration: none;
}

/* Hero Section */
.hero {
  position: relative;
  background: url('/images/hero.png') center / cover no-repeat;
  color: white;
  text-align: left;
  padding: 0px;
  z-index: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  max-height:500px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    width: 80%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    clip-path: polygon(0 0, 45% 0, 100% 100%, 0% 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px 0px 0px 15px;
    box-sizing: border-box;
}

.hero-content {
    width: 500px;
    margin-left: 200px;
    padding-top: 175px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 500px;
}

.btn-primary {
  background: #0c1970;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 16px;
  text-decoration: none;
  margin-right: 15px;
  display: inline-block;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #007c3a;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 12px 25px;
}


/* About Section */
.about {
    background: #fff;
    padding: 60px 20px;
    text-align: center;
}
.about h2 {
    font-size: 32px;
    margin-bottom: 20px;
}
.about ul {
    margin-top: 20px;
}
.about ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

/* Services Section */
.services {
    background: #f1f1f1;
    padding: 60px 20px;
    text-align: center;
}
.services h2 {
    font-size: 32px;
    margin-bottom: 40px;
}
.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.dark {
  background:#141422 !important;
  color:#fff !important;
}
.dark p {
  color:#dfdfdf !important;
}

.service-card {
    position:relative;
    background: #dfdfdf;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
}
.service-card img {
    width: 50px;
    height: 44px;
    margin-left: 0px;
    margin-top: 20px;
}
.service-card h3 {
    margin: 15px;
    font-size: 20px;
}
.service-card p {
    margin: 0 15px 15px;
    font-size: 15px;
    color: #555;
}
.service-card a {
    display: inline-block;
    margin: 0 15px 15px;
    color: #fd0200;
    font-weight: bold;
}

/* Our Roofing Service */
i.fa-solid.fa-arrow-up-right-from-square {
    margin-left: 5px;
}
.blue {
  color: #104664 !important;
}

/* CTA Form */
.cta-form {
    background-color: #0c1970;
    color: #fff;
    padding: 3rem 1.5rem; /* Adjust padding */
    text-align: center;
}

.cta-form h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.cta-form form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-form input,
.cta-form select,
.cta-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--ff-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
    border-color: var(--clr-accent-red);
}

/* Ensure select option colors are visible */
.cta-form select option {
    background-color: #0c1970;
    color: #fff;
}
.cta-form button {
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 15px 30px;
    background: var(--clr-accent-red);
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    border-radius: 30px;
}
/* Team Section */
.team {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
}
.team h2 {
    font-size: 32px;
    margin-bottom: 40px;
}
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.team-member {
    width: 200px;
}
.team-member img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.team-member p {
    margin-top: 10px;
    font-weight: 600;
}

/* Footer */
footer {
    background: #141422;
    color: #ccc;
    text-align: center;
    padding: 30px 20px;
}
footer a {
    color: #fd0200;
    font-weight: bold;
}
footer a:hover {
    color: #fff;
}
.roofing-bg {
    width: 100px;
    height: 70px;
    background: url('/images/bg.png');
    background-size: cover;
    margin-left: 95px;
    margin-top: 19px;
}
img.ghost-image {
    width: 800px;
    margin-top: -100px;
    z-index: -3;
}

/* Responsive */
@media (max-width: 768px) {

  div#mobile-menu {
    float: right;
    margin-top: 40px;
    font-size: 30px;
    margin-right: -37px;
}

  .logo-area {
    background: #CCD6D9;
    position: absolute;
    top: -11px;
    left: -1px;
    border-radius: 0px 0px 0px 0px;
    clip-path: none;
    width:100%
}
.hero-content {
    width: 100%;
    margin-left: 35px;
    padding-top: 20px;
}
.hero-overlay {
  clip-path:none;
  width:100%;
}
  .text {
    font-size: 13px !important;
}
.top-bar {
    padding: 10px 30px !important;
    margin-top: 122px;
}
  nav {
    margin-left: 0px !important;
}
.social-icons {
  display:none;
}
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .service-grid, .team-grid {
        flex-direction: column;
        align-items: center;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
}
/* --- Media Queries for Responsiveness --- */

/* Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 1rem; }
    .hero-content .btn-primary, .hero-content .btn-secondary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Import Google Font - Inter for a modern look if not already imported */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Basic Reset & Box Sizing (ensure these are at the top of your main CSS file) */
/*
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
*/

/* Define primary brand colors and font stack (from previous responsive-css) */
:root {
    --clr-primary-blue: #1A1D54; /* From NextRidge text */
    --clr-accent-red: #DC352D; /* From ROOFING text */
    --clr-light-gray: #f8f8f8; /* Used for general backgrounds */
    --clr-dark-footer-bg: #11142F; /* A darker blue/gray for the footer background, similar to the image */
    --clr-dark-footer-text: #B0B5D8; /* Lighter text color for contrast on dark footer */
    --clr-dark-footer-link-hover: var(--clr-accent-red); /* Red for hover on dark footer */
    --clr-white: #ffffff;

    /* Font stack */
    --ff-primary: 'Inter', sans-serif;
}

/* Base Body Styles (ensure these are in your main CSS file) */
/*
body {
    font-family: var(--ff-primary);
    line-height: 1.6;
    color: var(--clr-text-dark); // Assuming a --clr-text-dark is defined in your main css
    background-color: var(--clr-white);
    overflow-x: hidden;
}
*/

/* Reusable Container (ensure this is in your main CSS file) */
/*
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
*/

/* --- Main Footer Styles --- */
.main-footer {
    background-color: var(--clr-dark-footer-bg);
    color: var(--clr-dark-footer-text);
    font-family: var(--ff-primary);
    padding-top: 3rem; /* Adjust as needed */

}

.main-footer a {
    color: var(--clr-dark-footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer a:hover {
    color: var(--clr-dark-footer-link-hover);
}



.footer-grid {
    display: grid;
    /* Default: Stack columns on small screens */
    grid-template-columns: 1fr;
    gap: 2rem; /* Space between columns */
    padding: 0px 130px;

}

.footer-col {
    padding: 1rem; /* Padding within each column */
    text-align:left;
}

/* Column Headers */
.footer-col h3 {
    color: var(--clr-white); /* White text for headings on dark background */
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative; /* For underline effect */
    display: inline-block; /* To make underline fit content */
}

/* Underline effect for footer headings */
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px; /* Position below text */
    width: 120px; /* Length of the underline */
    height: 3px; /* Thickness of the underline */
    background-color: var(--clr-accent-red); /* Red underline */
    border-radius: 2px;
}

/* --- Column 1: Company Info --- */
.footer-info .footer-logo img {
    max-width: 180px; /* Adjust logo size */
    height: auto;
    margin-bottom: 1rem;
}

.footer-info .company-tagline {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--clr-white); /* Keep tagline white for prominence */
}

.footer-info .company-description {
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social-icons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.footer-social-icons .social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%; /* Circular icons */
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent background */
    color: var(--clr-white);
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-social-icons .social-icon:hover {
    background-color: var(--clr-accent-red);
    color: var(--clr-white);
}

/* --- Column 2: Our Services & Other Links --- */
.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
}

.footer-links ul li a {
    font-size: 0.9rem;
    display: flex; /* For icon and text alignment */
    align-items: center;
}

.footer-links ul li .fas.fa-chevron-right {
    font-size: 0.7rem;
    margin-right: 8px;
    color: var(--clr-accent-red); /* Red chevron icon */
    transition: transform 0.3s ease;
}

.footer-links ul li a:hover .fas.fa-chevron-right {
    transform: translateX(5px); /* Subtle hover effect */
}


/* --- Column 3: Recent Post --- */
.footer-recent-posts .post-item {
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Separator */
}

.footer-recent-posts .post-item:last-child {
    border-bottom: none; /* No border for the last item */
}

.footer-recent-posts .post-meta .post-date {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.3rem;
}

.footer-recent-posts .post-title {
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--clr-white); /* Post titles white */
}
.footer-recent-posts .post-title:hover {
    color: var(--clr-accent-red); /* Post titles white */
}


/* --- Column 4: Subscribe Now --- */
.footer-subscribe p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.subscribe-form {
    display: flex;
    border-radius: 8px; /* Rounded form container */
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent background */
}

.subscribe-form input[type="email"] {
    flex-grow: 1; /* Input takes most space */
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    background: transparent; /* Transparent input background */
    color: var(--clr-white);
    font-family: var(--ff-primary);
    font-size: 0.9rem;
}

.subscribe-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.subscribe-form .send-btn {
    background-color: var(--clr-accent-red);
    border: none;
    padding: 0.75rem 1rem;
    color: var(--clr-white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscribe-form .send-btn:hover {
    background-color: #c02d26; /* Darker red on hover */
}


/* --- Footer Bottom Bar --- */
.footer-bottom {
    background-color: #0E1026; /* Even darker shade for the very bottom bar */
    padding: 1rem 9rem;
    font-size: 0.8rem;
    margin-top: 2rem; /* Space between top content and bottom bar */
    border-bottom-left-radius: 8px; /* Match main footer radius */
    border-bottom-right-radius: 8px; /* Match main footer radius */
}

.footer-bottom .container {
    display: flex;
    flex-direction: column; /* Stack items on mobile */
    align-items: center;
    text-align: center;
    gap: 0.8rem;
}

.footer-bottom .copyright {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.back-to-top {
    order: -1; /* Move to top on mobile for better visibility */
    margin-bottom: 1rem; /* Space from other elements on mobile */
}

.back-to-top a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--clr-primary-blue); /* Blue background for button */
    color: var(--clr-white);
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-to-top a:hover {
    background-color: var(--clr-accent-red); /* Red on hover */
}

.footer-links-bottom {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
}

.footer-links-bottom .separator {
    color: rgba(255, 255, 255, 0.4);
}


/* --- Media Queries for Responsiveness --- */

/* Tablets and larger (adjust grid to 2 columns) */
@media (min-width: 576px) {
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* At least 200px wide, 2-4 columns */
    }

    /* Adjust specific column widths if needed, or let auto-fit handle */
    .footer-col {
        padding: 1rem;
    }

    .back-to-top {
        order: 0; /* Reset order on larger screens */
        margin-bottom: 0;
    }
}

/* Larger tablets and desktops (adjust grid to 4 columns) */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr; /* Custom column widths for better flow */
        gap: 2.5rem;
    }

    .footer-bottom .container {
        flex-direction: row; /* Layout horizontally */
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .footer-bottom .copyright {
        text-align: left;
    }

    .footer-links-bottom {
        justify-content: flex-end; /* Align links to the right */
        gap: 1rem;
    }
}

/* Large desktops (adjust spacing) */
@media (min-width: 992px) {
    .footer-grid {
        gap: 0rem;
    }
    .footer-col h3 {
        font-size: 1.35rem;
    }
    .footer-links ul li a,
    .footer-recent-posts .post-title,
    .footer-subscribe p {
        font-size: 0.95rem;
    }
}

/* Max width container (ensure this is in your main CSS file) */
/*
@media (min-width: 1200px) {
    .container {
        padding: 0;
    }
}
*/
:root {
--clr-light-bg-about: #F8F8F8; /* Light background for this section */
--clr-experience-block-bg: #1A1D54; /* Dark blue for the experience block */
--clr-experience-block-text: #fff;
--clr-feature-icon-bg: #E1E2E9; /* Light gray background for feature icons */
--clr-feature-icon-color: var(--clr-primary-blue); /* Blue icon color */
--clr-read-more-btn-bg: var(--clr-primary-blue);
--clr-read-more-btn-text: var(--clr-white);
--clr-read-more-btn-hover-bg: var(--clr-accent-red);

/* Ensure these are already defined in your global CSS */
/*
--clr-primary-blue: #1A1D54;
--clr-accent-red: #DC352D;
--clr-white: #ffffff;
--clr-text-dark: #333;
--ff-primary: 'Inter', sans-serif;
*/
}

/* --- About Section Redesigned Styles --- */
.about-redesigned {
background-color: var(--clr-light-bg-about);
padding: 2rem 0; /* Consistent padding */
border-radius: 12px; /* Maintain rounded corners for sections */
overflow: hidden; /* Contains floated/positioned elements */
}

.about-grid-container {
display: grid;
grid-template-columns: 1fr; /* Stack columns on mobile */
gap: 3rem; /* Space between columns */
align-items: center; /* Vertically align content */
}

/* Left Column: Images and Experience Block */
.about-left-col {
position: relative;
padding: 0 1rem; /* Add padding to prevent images from touching edges on small screens */
}

.image-stack {
display: grid; /* Use grid for overlapping images */
grid-template-columns: 1fr;
grid-template-rows: auto; /* Content-based row height */
position: relative; /* For z-index and absolute positioning within the stack */
width: 100%;
max-width: 500px; /* Limit max width for image column */
margin: 0 auto; /* Center on mobile */
}

.image-stack > img,
.image-stack > .experience-block {
grid-area: 1 / 1 / 2 / 2; /* All items occupy the same grid cell for stacking */
width: 100%;
height: auto;
object-fit: cover;
z-index: 1; /* Base z-index for images */
}

.image-stack .img-large {
width: 100%;
min-height: 280px; /* Ensure a minimum height for the main image */
max-height: 400px; /* Max height for the main image */
object-position: center top; /* Focus on the roofer */
position: relative;
z-index: 1;
border-radius: 8px; /* Consistent rounded corners */
}

.image-stack .img-small {
width: 150px; /* Smaller specific width for the bottom right image */
height: 150px;
position: absolute;
bottom: -20px; /* Overlap from the bottom */
right: -10px; /* Overlap from the right */
z-index: 3; /* Bring to front */
border: 5px solid var(--clr-light-bg-about); /* Border matches section background */
border-radius: 8px;
}

.experience-block {
position: absolute;
top: 0;
left: 0; /* Adjusted for mobile view */
width: 180px; /* Fixed width as per Figma */
background-color: var(--clr-experience-block-bg);
color: var(--clr-experience-block-text);
padding: 1rem;
text-align: center;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
z-index: 2; /* Between large image and small image */
transform: translate(-10%, 10%); /* Slight offset to match Figma */
}

.experience-block .experience-years {
font-size: 2.5rem;
font-weight: 700;
line-height: 1;
margin-bottom: 0.25rem;
color: var(--clr-accent-red); /* Red years text */
}

.experience-block .experience-text {
font-size: 0.9rem;
margin-bottom: 0.5rem;
font-weight: 500;
}

.experience-block .client-avatars {
display: flex;
justify-content: center;
margin-bottom: 0.5rem;
}

.experience-block .client-avatars .avatar {
width: 25px; /* Smaller avatars */
height: 25px;
border-radius: 50%;
border: 2px solid var(--clr-experience-block-bg); /* Matches block background */
margin: 0 -5px; /* Overlap avatars */
background-color: #626593; /* Example fallback color for placeholders */
object-fit: cover;
}

.experience-block .globally-clients {
font-size: 0.75rem;
color: rgba(255, 255, 255, 0.7);
}


/* Right Column: Text Content and Features */
.about-right-col {
padding: 0 1rem; /* Add padding to prevent text from touching edges on small screens */
text-align: center; /* Center text on mobile */
}

.about-right-col .about-eyebrow {
color: var(--clr-accent-red); /* Red text */
font-size: 0.9rem;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
margin-bottom: 0.5rem;
}

.about-right-col h2 {
font-size: 2rem; /* Adjusted for mobile */
color: var(--clr-primary-blue);
margin-bottom: 1.5rem;
line-height: 1.3;
}

.about-right-col .about-description {
font-size: 1rem;
line-height: 1.6;
color: var(--clr-text-dark);
margin-bottom: 2rem;
}

.feature-item {
display: flex;
align-items: flex-start; /* Align icon to top of text */
gap: 1rem;
margin-bottom: 1.5rem;
text-align: left; /* Align feature text left */
}

.feature-item .feature-icon {
flex-shrink: 0; /* Prevent icon from shrinking */
width: 50px; /* Icon container size */
height: 50px;
background-color: var(--clr-feature-icon-bg);
border-radius: 8px; /* Rounded corners for icon background */
display: flex;
justify-content: center;
align-items: center;
font-size: 1.5rem;
color: var(--clr-feature-icon-color);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-item h4 {
font-size: 1.15rem;
color: var(--clr-primary-blue);
margin-bottom: 0.25rem;
}

.feature-item p {
font-size: 0.9rem;
color: var(--clr-text-dark);
line-height: 1.5;
margin: 0; /* Remove default paragraph margin */
}

.btn-read-more {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
background-color: var(--clr-read-more-btn-bg);
color: var(--clr-read-more-btn-text);
border-radius: 8px;
font-weight: 600;
margin-top: 1.5rem; /* Space from features */
transition: background-color 0.3s ease;
}

.btn-read-more:hover {
background-color: var(--clr-read-more-btn-hover-bg);
}

/* --- Media Queries for Responsiveness --- */

/* Tablets (min-width: 768px) - Adjust to two columns */
@media (min-width: 768px) {
.about-grid-container {
    grid-template-columns: 1fr 1.2fr; /* Left column slightly smaller than right */
    gap: 4rem;
    padding: 0 2rem; /* Wider padding for larger screens */
}

.about-left-col {
    padding: 0; /* Remove padding if grid handles spacing well */
    display: flex; /* Use flex to center image stack vertically */
    justify-content: center;
    align-items: center;
}

.image-stack {
    max-width: none; /* Allow image stack to expand */
    position: relative;
    /* Adjust positioning for the specific overlap from Figma */
    width: 100%;
    max-height: 500px; /* Constrain height */
}

.image-stack .img-large {
    width: 100%;
    min-height: 350px;
    max-height: 500px;
    border-radius: 12px; /* Slightly larger radius */
}

.image-stack .img-small {
    width: 180px; /* Larger smaller image */
    height: 180px;
    bottom: -30px;
    right: -30px;
    border: 8px solid var(--clr-light-bg-about); /* Thicker border */
    border-radius: 12px;
}

.experience-block {
    width: 200px; /* Slightly larger experience block */
    padding: 1.25rem;
    top: 15%; /* Adjust vertical positioning */
    left: -15%; /* Adjust horizontal positioning for overlap */
    transform: translate(0,0); /* Remove mobile specific transform */
    border-radius: 12px;
}
.experience-block .experience-years {
    font-size: 3rem;
}
.experience-block .experience-text {
    font-size: 1rem;
}
.experience-block .client-avatars .avatar {
    width: 30px;
    height: 30px;
}
.experience-block .globally-clients {
    font-size: 0.85rem;
}


.about-right-col {
    padding: 0; /* Remove padding if grid handles spacing well */
    text-align: left; /* Align text left on larger screens */
}
.about-right-col .about-eyebrow {
    font-size: 1rem;
}
.about-right-col h2 {
    font-size: 2.5rem;
}
.about-right-col .about-description {
    font-size: 1.05rem;
}
.feature-item {
    gap: 1.5rem;
}
.feature-item .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    border-radius: 10px;
}
.feature-item h4 {
    font-size: 1.25rem;
}
.feature-item p {
    font-size: 0.95rem;
}
.btn-read-more {
    margin-top: 2rem;
}
}

/* Desktops (min-width: 992px) */
@media (min-width: 992px) {
.about-redesigned {
    padding: 3rem 6rem;
}
.about-grid-container {
    gap: 5rem;
}
.about-left-col {
    /* Further adjust image and block positioning if needed for larger screens */
}
.about-right-col h2 {
    font-size: 2.6rem;
}
.about-right-col .about-description {
    font-size: 1.1rem;
}
.feature-item h4 {
    font-size: 1.3rem;
}
.feature-item p {
    font-size: 1rem;
}
}

/* Large Desktops (min-width: 1200px) */
@media (min-width: 1200px) {
.about-grid-container {
    padding: 0; /* Remove container padding if max-width is hit */
}
.about-left-col {
    /* Final adjustments for very large screens */
}
.about-right-col h2 {
    font-size: 2.5rem;
}
i.fas.fa-bars {
  display:none;
  }
}

.experience-block.rounded-lg.shadow-lg {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
}
img.vector {
    position: absolute;
    width: 280px;
    height: 108px;
    top: -30px;
    right: 0px;
}

/* Define primary brand colors and font stack for this standalone section */
        :root {
            --clr-primary-blue: #1A1D54; /* From NextRidge text */
            --clr-accent-red: #DC352D; /* From ROOFING text */
            --clr-light-gray: #f8f8f8; /* Used for general backgrounds */
            --clr-white: #ffffff;
            --clr-text-dark: #333; /* Dark text color */

            /* Font stack */
            --ff-primary: 'Inter', sans-serif;
        }

        /* Basic Reset & Box Sizing */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }



        /* --- NextRidge Roofing Features Section --- */
        .nextridge-roofing-features {
            padding: 2rem 13rem;
            background-color: var(--clr-light-gray); /* Example background */
            border-radius: 12px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Subtle shadow */
        }

        .nextridge-roofing-features h2 {
            font-size: 2rem;
            margin-bottom: 2rem;
            padding: 0 1rem; /* Padding for the title */
            text-align:center;
        }

        .team-grid {
            display: grid;
            grid-template-columns: 1fr; /* Single column on mobile */
            gap: 1.5rem;
            padding: 0 1rem; /* Padding inside the grid */
            max-width: 900px; /* Limit grid width for better aesthetics on large screens */
            margin: 0 auto; /* Center the grid */
        }

        .team-member {
            background-color: var(--clr-white);
            border-radius: 12px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            padding: 1.5rem;
            text-align: center;
            display: flex; /* Use flex for icon and text alignment */
            flex-direction: column; /* Stack icon and text */
            align-items: center;
            justify-content: center;
        }

        .team-member .team-icon {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 60px; /* Icon container size */
            height: 60px;
            background-color: var(--clr-primary-blue); /* Blue background for icon */
            color: var(--clr-white);
            font-size: 2.2rem; /* Icon size */
            border-radius: 50%; /* Circular background */
            margin-bottom: 1rem; /* Space between icon and text */
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            transition: background-color 0.3s ease;
        }

        .team-member:hover .team-icon {
            background-color: var(--clr-accent-red); /* Red on hover */
        }

        .team-member p {
            font-weight: 500;
            color: var(--clr-primary-blue);
            margin: 0;
            font-size: 1.1rem;
            line-height: 1.4;
        }


        /* --- Media Queries for Responsiveness --- */

        /* Medium devices (landscape phones, 576px and up) */
        @media (min-width: 576px) {
            .team-grid {
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Allow two columns on wider mobile/tablet screens */
                padding: 0 2rem;
            }
            .nextridge-roofing-features h2 {
                font-size: 2.2rem;
            }
        }

        /* Large devices (tablets, 768px and up) */
        @media (min-width: 768px) {
          .team-grid {
            grid-template-columns: repeat(4, 1fr);
            gap: 0rem;
            margin-left: 340px;
          }
            .nextridge-roofing-features h2 {
                font-size: 2.5rem;
            }
        }

        /* Extra large devices (desktops, 992px and up) */
        @media (min-width: 992px) {
            .nextridge-roofing-features {
                padding: 3rem 0;
            }
            .nextridge-roofing-features h2 {
                font-size: 2.8rem;
            }
            .team-grid {
                gap: 2.5rem;
            }
            .team-member .team-icon {
                width: 70px;
                height: 70px;
                font-size: 2.5rem;
            }
            .team-member p {
                font-size: 1.2rem;
            }
        }

        /* Very large devices (large desktops, 1200px and up) */
        @media (min-width: 1200px) {
            .team-grid {
                max-width: 1100px; /* Wider grid on very large screens */
            }
            .nextridge-roofing-features h2 {
                font-size: 3rem;
            }
        }
