/* Project: Roof Reach - Real Estate Digital Marketing
    Theme: Professional Blueprint / Modern Corporate
*/

:root {
    --navy-dark: #0f172a;    /* Deep navy for footer/dark sections */
    --navy-light: #1e293b;   /* Main text and headings */
    --red: #b91c1c;          /* Primary Brand Red */
    --red-hover: #991b1b;
    --light-bg: #f8fafc;     /* Page background */
    --white: #ffffff;
    --text-gray: #475569;
    --border-color: #e2e8f0;
    --grid-color: rgba(203, 213, 225, 0.35); /* For the blueprint effect */
}

/* 1. Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-bg);
    color: var(--navy-light);
    line-height: 1.6;
    /* The Blueprint Grid */
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 30px 30px;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    color: var(--navy-light);
    font-weight: 800;
    line-height: 1.2;
}

.text-red { color: var(--red); }
.text-center { text-align: center; }

/* 2. Reusable Components */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.sub-heading {
    color: var(--red);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.btn {
    padding: 10px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-red {
    background-color: var(--red);
    color: var(--white);
}

.btn-red:hover {
    background-color: var(--red-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--red);
    color: var(--red);
    background: transparent;
}

.btn-outline:hover {
    background: var(--red);
    color: var(--white);
}

/* 3. Navbar */
.navbar {
    background: rgba(241, 245, 249, 0.85); 
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(6px); 
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
}

.flex-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 50px; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy-light);
    font-weight: 600;
    transition: 0.3s;
    font-size: 1.2rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--red);
    letter-spacing: 1px;
}

.menu-toggle {
    display: none!important;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy-light);
}

/* Dropdown Container */
.dropdown {
    position: relative;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Dropdown Menu Box */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    border-top: 3px solid var(--red); /* Adds that branded touch */
}

/* Show on Hover (Desktop) */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .dropdown:hover .dropdown-toggle i {
        transform: rotate(180deg);
    }
}

.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    color: var(--navy-light) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    transition: 0.2s;
}

.dropdown-menu li a:hover {
    background: rgba(179, 45, 29, 0.05);
    color: var(--red) !important;
    padding-left: 25px; /* Subtle slide effect */
}

/* Mobile Dropdown Styling (inside your responsive menu) */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        display: none; /* Controlled by JS toggle */
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li a {
        padding: 10px 0;
        font-size: 1.1rem !important;
    }
}

/* 4. Hero Banner */
.hero-banner {
    padding-top: 50px;
    padding-bottom: 45px;
    text-align: left;
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 125px;
}

.zoom-pulse-container {
    position: relative;
    display: inline-block;
    padding-top: 15px;
}

.logo-arrow {
    position: absolute;
    top: -21px; /* Adjusted to fit the new sharp tip */
    left: 0;
    width: 110%; /* Slightly wider to let the arrow tip breathe */
    height: 50px;
    z-index: 2;
}

.logo-arrow path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    /* Slowed down to 5s for a more graceful feel */
    animation: drawArrowSlow 5s infinite ease-in-out;
}

@keyframes drawArrowSlow {
    0% {
        stroke-dashoffset: 300;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        stroke-dashoffset: 0;
    }
}

/* Apply this to the rect inside your SVG */
.logo-arrow rect {
    /* We use the same 5s duration to stay in sync with the lines */
    animation: fillChimney 5s infinite ease-in-out;
}

@keyframes fillChimney {
    0% {
        opacity: 0; /* Hidden while the arrow starts drawing */
    }
    15% {
        opacity: 0; /* Still hidden while the pen moves to the chimney */
    }
    30% {
        opacity: 1; /* Fades in solid as the chimney lines appear */
    }
    80% {
        opacity: 1; /* Stays visible while the full logo is shown */
    }
    100% {
        opacity: 0; /* Fades out with the rest of the arrow */
    }
}

/* Sync the pulse with the slower arrow */
.zoom-pulse {
    display: inline-block;
    animation: singleWordPulse 5s infinite ease-in-out;
    transform-origin: center;
}

.hero-content {
    flex: 1.2; /* Gives text a bit more width */
}

.hero-video {
    flex: 1;
    position: relative;
}

.hero-content h1 {
    font-size: 3.2rem; /* Slightly smaller to fit 2-column layout */
    margin: 0 0 25px;
    line-height: 1.2;
    text-align: left;
}

.hero-content p {
    font-size: 1.1rem;
    margin: 0 0 35px;
    max-width: 100%; /* Removes the auto margin */
}

.hero-btns { 
    display: flex; 
    justify-content: flex-start; /* Aligns buttons to the left */
    gap: 15px; 
}

/* Video Styling */
.video-wrapper {
    position: relative;
    width: 100%;
    padding: 9px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background: var(--light-bg);
    /*border: 1px solid rgba(0,0,0,0.05);*/
}

.video-wrapper::before {
    content: '';
    position: absolute;
    width: 160%;
    height: 160%;
    /* Uses Roof Reach's deep crimson/red tones fading cleanly to white/transparent */
    background: conic-gradient(
        transparent 20%, 
        #b91c1c 40%, 
        #b91c1c 60%, 
        transparent 80%
    );
    animation: spinHeroBorder 4s linear infinite;
    z-index: -2;
}

.video-wrapper::after {
    content: '';
    position: absolute;
    inset: 9px; /* Matches the padding size above to act as a solid cutout guide */
    background: #ffffff; 
    border-radius: 14px;
    z-index: -1;
}
.video-wrapper video {
    width: 100%;
    display: block;
    transform: scale(1.02); /* Slight scale to hide edge artifacts */
    border-radius: 30px;
    z-index: 2;
}

/* Decorative Frame (The geometric look Roof Reach uses) */
.video-frame {
    position: absolute;
    top: 15px;
    right: -15px;
    width: 100%;
    height: 100%;
    /*border: 3px solid var(--red);*/
    border-radius: 20px;
    z-index: -3; /* Behind the video */
}

/* Smooth Infinite Rotation Keyframe */
@keyframes spinHeroBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Container to manage the vehicles and the road */
.construction-road {
    position: relative;
    width: 100%;
    /*margin-top: 60px;*/
}

/* Base vehicle styling */
.vehicle-icon {
    position: absolute;
    z-index: 100;
    pointer-events: none;
    bottom: 55px; 
    left: -200px;
}
/* Individual movement speeds */
.crane-move {
    height: 100px;
    animation: driveAcross 20s linear infinite;
}

.jcb-move {
    height: 75px;
    animation: driveAcross 14s linear infinite;
    animation-delay: 5s;
}

/* The Driving Animation */
@keyframes driveAcross {
    from { left: -200px; }
    to { left: 100%; }
}


/* Marquee Ribbon Styles */
.marquee-ribbon {
    width: 100%;
    background-color: #1f2937;
    background-image: linear-gradient(rgba(249, 250, 251, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(249, 250, 251, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    color: #ffffff;
    padding: 15px 0;
    overflow: hidden;
    position: relative;
    margin-top: 40px;
    border-top: 1px solid #334155;
    z-index: 5;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    gap: 50px;
    animation: marquee-slide 10s linear infinite;
}

.marquee-content span {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.marquee-content i {
    font-size: 1rem;
    color: var(--red);
}

/* The Smooth Animation */
@keyframes marquee-slide {
    from { transform: translateX(5%); }
    to { transform: translateX(-50%); }
}

/* Optional: Pause on hover so people can read the offer */
.marquee-ribbon:hover .marquee-content {
    animation-play-state: paused;
}

/* 5. Section Layouts (Grid-2) */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    /*padding: 100px 0;*/
    padding: 40px 0 80px 0;
    align-items: center;
}

/* Who We Are & Counters */
.counters {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.counter-box h3 { font-size: 2.5rem; color: var(--red); }

.pointer-card {
    background: var(--white);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
    box-shadow: 10px 10px 0px var(--border-color); /* Geometric design shadow */
    border: 1px solid var(--border-color);
}

.pointer-card i {
    font-size: 3rem;
    color: var(--red);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

/* Enhanced Who We Are Layout */
.who-left p {
    margin-bottom: 20px;
    color: var(--text-gray);
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.counter-box {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.counter-box h3 {
    font-size: 2rem;
    color: var(--red);
    display: inline-block;
}

.counter-box p {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy-light);
}

/* Pointer Grid (Right Side) */
.pointer-grid {
    display: grid;
    gap: 20px;
}

.pointer-card:hover {
    border-color: var(--red);
    transform: translateY(-10px)!important;
    transition: 0.3s ease !important;
}
.pointer-card:hover i{
    animation: iconFlip 0.8s ease-in-out;
    backface-visibility: hidden;
}
@keyframes iconFlip {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}


/* 6. Growth Section & Form - Updated */
.growth-section { 
    background-color: #1f2937;
    background-image: linear-gradient(rgba(249, 250, 251, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(249, 250, 251, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 40px 0 0 0; 
}
.growth-section h6{
    color: #ff2a2a;
}

.growth-section h2{
    color: #fff;
}
.growth-section h2 span{
    color: #ff2a2a;
}
.growth-section p{
    color: #bdbdbd;
}
.growth-features {
    list-style: none;
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* This creates a nice 2-column list */
    gap: 15px;
}

.growth-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.growth-features li i {
    color: #ff2a2a;
    font-size: 1.1rem;
}

/* Form Container Styling */
.form-container {
    background: var(--light-bg);
    padding: 45px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-container h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.form-container p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 25px;
}

/* Styled Input Groups */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 18px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.main-form input, 
.main-form textarea {
    width: 100%;
    padding: 15px 15px 15px 45px; /* Extra left padding for the icon */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    font-size: 1rem;
    transition: 0.3s;
}

.main-form textarea {
    height: 100px;
    resize: none;
}

.main-form input:focus, 
.main-form textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

/* Align Center Utility */
.align-center {
    align-items: center;
}


/* 7. Services Section */
.services-section { padding: 100px 0; }
.services-section h2 span{
    color: var(--red);
}
/* 4-Column Services Grid */
.services-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card i {
    font-size: 2.5rem;
    color: var(--red);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--navy-light);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Small Button Styling */
.btn-sm {
    text-decoration: none;
    color: var(--red);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.btn-sm:hover {
    gap: 20px;
}
/* Service Card Hover Effect */
.service-card:hover {
    transform: translateY(-10px)!important;
    border-color: var(--red);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s ease!important;
}

.section-desc {
    max-width: 700px;
    margin: 10px auto 0;
    color: var(--text-gray);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--red);
    color: white;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 20px;
}

/* 8. Reviews & FAQ */
.why-choose-us {
    padding: 100px 0;
    background-color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}
/* 5. Why Choose Us - Dark Version */
.dark-section {
    background-color: #1f2937;
    background-image: linear-gradient(rgba(249, 250, 251, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(249, 250, 251, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 100px 0;
    position: relative;
}

/* Blueprint grid for dark section (subtle) */
.dark-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.text-white { color: #ffffff !important; }
.text-light { color: #cbd5e1 !important; }

.why-card-dark {
    padding: 40px 25px;
    background: #fff; /* Slightly lighter navy for cards */
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    z-index: 1;
}

.why-card-dark:hover {
    transform: translateY(-10px)!important;
    border-color: var(--red);
    box-shadow: 0 10px 30px rgba(185, 28, 28, 0.2);
}

.why-card-dark .why-icon-box {
    width: 65px;
    height: 65px;
    background: rgba(185, 28, 28, 0.1);
    color: var(--red);
    border-radius: 10px; /* Squircle shape for a tech look */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.6rem;
    border: 1px solid rgba(185, 28, 28, 0.3);
}

.why-card-dark h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #b91c1c;
}

.why-card-dark p {
    font-size: 0.9rem;
    color: #44474b; /* Slate grey for readability */
    line-height: 1.6;
}

/* Keep the sub-heading consistent */
.dark-section .sub-heading {
    color: var(--red);
    margin-bottom: 15px;
}
.faq-section { padding: 80px 0;}
.faq-container {
    max-width: 900px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Adds space between the boxes */
}

.faq-item {
    background: #ffffff; /* White background to make it pop against the grid */
    border: 1px solid var(--border-color);
    border-radius: 12px; /* Rounded corners for a modern look */
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.faq-item:hover {
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Stronger shadow on hover */
    border-color: var(--red);
}

.faq-btn {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 30px; /* More padding inside the box */
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-light);
    cursor: pointer;
    text-align: left;
}

/* When the box is active/open */
.faq-item.active {
    border-color: var(--red);
    box-shadow: 0 10px 25px rgba(185, 28, 28, 0.1);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #fdfdfd; /* Slightly different color for the answer area */
}

.faq-content p {
    padding: 0 30px 25px 30px; /* Aligning text with the button padding */
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}
/* ADD THIS: Tells the content to expand when the active class is present */
.faq-item.active .faq-content {
    max-height: 500px; /* Needs to be larger than your text content */
    transition: max-height 0.5s ease-in;
}

/* ADD THIS: Rotates the arrow when open */
.faq-item.active .faq-btn i {
    transform: rotate(180deg);
    color: var(--red);
}

/* 9. Footer */
.footer {
    background: var(--navy-dark);
    color: #cbd5e1;
    padding: 80px 0 20px;
    border-top: 3px solid var(--red); /* Adds that "Roof Reach" signature line */
}

.footer h4 { color: var(--white); margin-bottom: 20px; }
/* Update your existing grid-3 rule */
.grid-3 { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr; /* Gives the description slightly more room */
    gap: 80px; /* Increases gap for a cleaner look */
    align-items: start;
}

.footer-middle ul { list-style: none; }
.footer-middle ul li { margin-bottom: 10px; }
.footer-middle a { color: #cbd5e1; text-decoration: none; }
.footer-middle a:hover { color: var(--red); }

.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a { 
    color: white; 
    font-size: 1.2rem; 
    width: 40px; 
    height: 40px; 
    background: rgba(255,255,255,0.1); 
    display: grid; 
    place-items: center; 
    border-radius: 50%; 
    text-decoration: none;
    transition: 0.3s ease;
}
.social-icons a:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-5px);
    transition: 0.3s ease;
} 
.footer-right p{
    margin-bottom: 10px;
}
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-left img {
    max-width: 180px; /* Limits the width */
    height: auto;
    margin-bottom: 25px; /* Adds space between logo and text */
    display: block;
}

.footer-left p {
    line-height: 1.6;
    font-size: 0.95rem;
    color: #94a3b8; /* Softens the text color for a more premium feel */
}
/* Footer Dropdown Logic */
.footer-dropdown {
    position: relative;
    display: block;
}

.footer-dropdown-toggle i {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Menu Box - Positioned to pop UP */
.footer-dropdown-menu {
    position: absolute;
    bottom: 100%; /* Positions it above the link */
    left: 0;
    background: #1e293b; /* Slightly lighter than navy-dark */
    min-width: 220px;
    padding: 15px 0;
    list-style: none;
    border-radius: 8px;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--red);
    
    /* Hide state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

/* Show on Hover */
.footer-dropdown:hover .footer-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(-10px); /* Slides up into view */
}

.footer-dropdown:hover .footer-dropdown-toggle i {
    transform: rotate(180deg);
}

/* Sub-links styling */
.footer-dropdown-menu li {
    margin-bottom: 0 !important; /* Reset footer li margin */
}

.footer-dropdown-menu li a {
    padding: 8px 20px;
    display: block;
    font-size: 0.85rem !important;
    color: #cbd5e1 !important;
    transition: 0.3s;
}

.footer-dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--red) !important;
    padding-left: 25px;
}
/* 1. Desktop Hover (Only applies to devices that can actually hover) */
@media (min-width: 769px) {
    .footer-dropdown:hover .footer-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(-10px);
    }
    .footer-dropdown:hover .footer-dropdown-toggle i {
        transform: rotate(180deg);
    }
}
/* 2. Mobile Logic (Toggled via JavaScript class '.show') */
@media (max-width: 768px) {
    .footer-dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        border-left: 1px solid rgba(255,255,255,0.1);
        padding-left: 15px;
        /* Hide state */
        display: none; 
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    /* This class is what the JS will toggle */
    .footer-dropdown.show .footer-dropdown-menu {
        display: block;
    }

    .footer-dropdown.show .footer-dropdown-toggle i {
        transform: rotate(180deg);
    }
}

.dropdown-toggle, .footer-dropdown-toggle {
    cursor: pointer;
}
/*-----------------whtaspp icon sitcky----------*/
/* --- WhatsApp Sticky Button --- */
.whatsapp-sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366; /* WhatsApp Green */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999; /* Ensures it stays on top of everything */
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Pulse Effect */
.whatsapp-sticky::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: waPulse 2s infinite;
}

@keyframes waPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-sticky:hover {
    transform: scale(1.1);
    background-color: #128c7e; /* Darker WhatsApp Green */
    color: #fff;
}

/* Tooltip Text */
.tooltip-text {
    position: absolute;
    right: 75px;
    background: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.whatsapp-sticky:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}
/*------------------------------------------------------homepage css-------------------------------------------*/
/* --- About Banner --- */
.about-banner {
    padding: 130px 0 100px;
    text-align: center;
}
.about-banner h1 { font-size: 3.5rem; margin-bottom: 20px; }
.about-banner p { max-width: 800px; margin: 0 auto 30px; font-size: 1.2rem; color: var(--text-gray); }

/* --- Intro Section --- */
.about-intro h2{
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.about-intro p{
    color: #bdbdbd;
    margin-bottom: 10px;
}
.img-frame {
    position: relative;
    padding-right: 20px;
    padding-bottom: 20px;
}
.img-frame::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 80%; height: 80%;
    border: 3px solid var(--red);
    z-index: -1;
}
.img-frame img { border-radius: 10px; width: 100%; }

/* Custom Grid Layout */
.grid-70-30 {
    display: grid;
    grid-template-columns: 1.6fr 1fr; 
    gap: 60px;
    align-items: center;
}

/* --- Mission Grid (30/70) --- */
.grid-30-70 {
    display: grid;
    grid-template-columns: 1fr 1.6fr; 
    gap: 60px;
    align-items: center;
}

.vm-detailed-section {
    padding: 100px 0;
    overflow: hidden; /* Keeps animations clean */
}
.our-vision{
    padding-top: 100px;
    padding-bottom: 50px;
    padding-left: 0px;
    padding-right: 0px;
}
.our-mission{
    padding-top: 50px;
    padding-bottom: 100px;
    padding-left: 0px;
    padding-right: 0px;
}
.vm-main-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 20px;
}

.vm-main-content p {
    margin-bottom: 20px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Common Card Styling */
.vm-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.vm-mini-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}

.vm-mini-card:hover {
    border-color: var(--red);
    transform: translateY(-5px);
}

.vm-mini-card h4 {
    color: var(--red);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.vm-mini-card p {
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-gray);
}

/* The 2nd Row Long Card */
.colspan-2 {
    grid-column: span 2;
}

@media (max-width: 992px) {
    /* For both grids, stack them and put text on TOP on mobile */
    .grid-70-30, .grid-30-70 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* On Mission section (30/70), visually move cards BELOW text for mobile flow */
    .grid-30-70 .vm-cards-grid {
        order: 2;
    }
    .grid-30-70 .vm-main-content {
        order: 1;
        text-align: center;
    }
    
    .vm-main-content {
        text-align: center;
    }
}
/* --- Values & Ethics --- */
.values-section{
    padding: 100px 0px;
    background-color: #1f2937;
    background-image: linear-gradient(rgba(249, 250, 251, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(249, 250, 251, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
}
.values-section h2{
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 5%;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px; /* Sharp, architectural edges */
    border: 1px solid #eee;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 5px; height: 0;
    background: var(--red);
    transition: 0.7s;
}

.value-card:hover::before {
    height: 100%;
}

.value-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transform: translateY(-10px)!important;
    transition: 0.4s ease!important;
}

.value-icon-box {
    width: 80px;
    height: 80px;
    background: rgba(225, 29, 72, 0.05);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
    border-radius: 8px;
}

.value-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--navy-dark);
}

.value-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-gray);
}

/* --- Why Choose Us Form --- */
.why-choose-form{
    padding: 100px 0;
}
.why-choose-form h2{
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.why-choose-form p{
    margin-bottom: 10px;
}
.intro-p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 40px;
    border-left: 4px solid var(--red);
    padding-left: 20px;
}
.why-features-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.why-feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: rgba(225, 29, 72, 0.1); /* Subtle red bg */
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
}

.feature-info h4 {
    font-size: 1.15rem;
    color: var(--navy-dark);
    margin-bottom: 5px;
}

.feature-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-gray);
    margin: 0;
}

/* Sticky Form Adjustment */
.form-container {
    position: sticky;
    top: 100px; /* Keeps the form visible as they read the long list */
    height: fit-content;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

@media (max-width: 992px) {
    .form-container {
        position: relative;
        top: 0;
        margin-top: 50px;
    }
}
.why-list { list-style: none; margin-top: 30px; }
.why-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; color: var(--navy-dark); }
.why-list i { color: var(--red); }
.why-form-container { background: white; padding: 40px; border-radius: 20px; }
.why-form-container h3 { color: var(--navy-dark); margin-bottom: 25px; }
/*----------------------------------------------------------about page css----------------------------------------------------------------------*/

/* --- Contact Hero --- */
.contact-hero {
    padding: 160px 0 80px;
}
.contact-hero h1 { font-size: 3.5rem; }

.contact-page-wrapper {
    background: var(--light-bg);
    position: relative;
    /*z-index: 1;*/
    padding: 100px 0px;
}
/* --- Contact Sidebar Cards --- */
.info-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.contact-card-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.contact-card-item:hover {
    transform: translateX(10px);
    border-color: var(--red);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(225, 29, 72, 0.05);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.card-body h5 {
    font-size: 1.1rem;
    color: var(--navy-dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.card-body p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.availability {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

/* Social Card Specifics */
.social-card {
    background: var(--navy-dark);
    border: none;
}

.social-card h5 { color: #fff; }

.s-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.s-links a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s;
    text-decoration: none;
}

.s-links a:hover {
    background: var(--red);
    transform: translateY(-3px);
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}
/* Sidebar Styling */
.sidebar-intro {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}
/* --- Info Cards --- */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.info-stack {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.c-icon {
    font-size: 1.5rem;
    color: var(--red);
    margin-top: 5px;
}

.c-details h5 {
    font-size: 1.1rem;
    color: var(--navy-dark);
    margin-bottom: 5px;
}

.c-details p {
    margin-bottom: 3px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Form Card Styling */
.contact-form-card {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.form-header {
    margin-bottom: 30px;
    text-align: left;
}

.form-header h3 { font-size: 1.8rem; color: var(--navy-dark); }

.modern-form .form-group {
    margin-bottom: 20px;
}

.modern-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--navy-dark);
}

.modern-form input, 
.modern-form select, 
.modern-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-family: inherit;
    transition: 0.3s;
}

.modern-form input:focus {
    border-color: var(--red);
    outline: none;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
/*--------------------------------------------------------------contact us------------------------------------------*/

.career-hero{
    padding: 80px 0;
}
.career-hero h1{
    font-size: 3.5rem;
}
.career-hero p{
    font-size: 1.3rem;
}
.blueprint-continuous, .blueprint-icon-paths, .blueprint-scanner-line{
    color: var(--red);
}

.blueprint-scanner-line {
    animation: scanAnimation 4s ease-in-out infinite;
}

@keyframes scanAnimation {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    50% {
        transform: translateY(80px); /* Moves it down across the icon */
        opacity: 0.8;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

/* 3. Bonus: Adding a subtle pulse to the nodes (points) */
.blueprint-node {
    color: var(--red);
}
/* Target the groups to ensure a stable center pivot */
.dotted-group, .solid-group {
    transform-origin: center;
    transform-box: fill-box;
}

.blueprint-rotator-1 {
    animation: rotateInner 15s linear infinite;
    transform-origin: center;
    transform-box: fill-box;
}

.blueprint-rotator-2 {
    animation: rotateOuter 25s linear reverse infinite;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes rotateInner {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateOuter {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.openings-section{
    background-color: #1f2937;
    background-image: linear-gradient(rgba(249, 250, 251, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(249, 250, 251, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 100px 0;
}
.openings-section h2{
    font-size: 2.5rem;
    color: var(--white);
}
.openings-section h2 span{
    color: var(--red);
}
/* Orbit Layout */
.openings-orbit {
    position: relative;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fix SVG Visibility & Core Positioning */
.orbit-center {
    position: absolute;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-center svg {
    width: 300px; /* Force size */
    height: 300px;
    overflow: visible;
    color: #00ff96; /* Defining the Growth Green color */
}

/* --- SVG ANIMATIONS --- */
.core-rotator-1 {
    transform-origin: center;
    transform-box: fill-box;
    animation: rotateClockwise 20s linear infinite;
}

.core-rotator-2 {
    transform-origin: center;
    transform-box: fill-box;
    animation: rotateCounter 15s linear infinite;
}

.core-rotator-3 {
    transform-origin: center;
    transform-box: fill-box;
    animation: rotateClockwise 10s linear infinite;
}

.core-pulsar {
    transform-origin: center;
    transform-box: fill-box;
    animation: corePulse 3s ease-in-out infinite;
}

@keyframes rotateClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCounter {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes corePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* --- JOB NODE STYLING (Premium Card Look) --- */
.job-node {
    position: absolute;
    width: 140px;
    background: #ffffff;
    padding: 15px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    z-index: 10;
}

.job-node:hover {
    z-index: 100; /* Ensure the hovered card is always on top */
    box-shadow: 0 0 30px rgba(0, 255, 150, 0.4);
    border: 1px solid #00ff96;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.node-icon {
    width: 50px;
    height: 50px;
    background: rgba(225, 29, 72, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.job-node span {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--navy-dark);
    text-align: center;
    line-height: 1.2;
}

.social-media { transform: rotate(0deg) translateY(-260px) rotate(0deg) scale(1.1); }
.graphic      { transform: rotate(60deg) translateY(-260px) rotate(-60deg) scale(1.1); }
.sales-head   { transform: rotate(120deg) translateY(-260px) rotate(-120deg) scale(1.1); }
.tele         { transform: rotate(180deg) translateY(-260px) rotate(-180deg) scale(1.1); }
.crm          { transform: rotate(240deg) translateY(-260px) rotate(-240deg) scale(1.1); }
.sales-exec   { transform: rotate(300deg) translateY(-260px) rotate(-300deg) scale(1.1); }

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 550px;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 255, 150, 0.2);
    border: 2px solid #00ff96; /* The green glow border */
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #667085;
    transition: color 0.3s;
}

.close-modal:hover { color: #ff3b30; }

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #101828;
    margin-bottom: 8px;
}

.location-tag {
    color: #b32d1d;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 25px;
}

.section-subtitle {
    display: flex;
    align-items: center;
    color: #b32d1d;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.jd-points {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.jd-points li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: #475467;
    line-height: 1.5;
}

.jd-points li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #101828;
    font-weight: bold;
}

.requirements-note {
    font-style: italic;
    color: #667085;
    font-size: 14px;
    margin-bottom: 30px;
}

.apply-btn {
    background: #b32d1d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}


.ready-apply-section {
    padding: 100px 0;
}

.ready-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    color: var(--navy-dark);
    margin-bottom: 20px;
    font-weight: 800;
}

.cta-desc {
    font-size: 1.2rem;
    color: #9ca3af;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-lg {
    padding: 18px 45px;
    font-size: 1.1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(179, 45, 29, 0.3);
    transition: 0.3s;
}

.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(179, 45, 29, 0.5);
}
.career-form .form-group {
    margin-bottom: 15px;
}

.career-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
}

.career-form input:focus {
    border-color: #00ff96;
    box-shadow: 0 0 5px rgba(0, 255, 150, 0.2);
}

.career-form label {
    font-weight: 600;
}

#formJobTitle {
    color: #b32d1d;
}
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit; /* Ensures the font matches your inputs */
    font-size: 14px;
    outline: none;
    resize: vertical; /* Allows the user to expand height, but not width */
    min-height: 100px;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    border-color: #00ff96; /* Matches your green glow theme */
    box-shadow: 0 0 5px rgba(0, 255, 150, 0.2);
}
/*----------------------------career page ----------------------------------*/

/* Service Hero Section */
.service-hero {
    padding: 50px 0 0;
    position: relative;
    overflow: hidden;
}
.service-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* 60/40 Split */
    gap: 50px;
    align-items: center;
    padding-bottom: 80px;
}

.category-tag {
    display: inline-block;
    background: rgba(179, 45, 29, 0.1);
    color: var(--red);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.service-hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--navy-dark);
    max-width: 900px;
    margin-bottom: 25px;
}

.text-red { color: var(--red); }

.service-hero-subheading {
    font-size: 1.25rem;
    color: var(--navy-light);
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 20px;
}

.trust-statement {
    font-weight: 600;
    color: #475569;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-statement i { color: #10b981; }

.benefit-bullets {
    list-style: none;
    margin-bottom: 40px;
}

.benefit-bullets li {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--navy-dark);
}

.benefit-bullets i {
    color: var(--red);
    margin-top: 5px;
}

/* Buttons */
.service-hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    /*margin-bottom: 80px;*/
}

.btn {
    padding: 18px 35px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--red);
    color: white;
    box-shadow: 0 10px 20px rgba(179, 45, 29, 0.2);
}

.btn-primary:hover {
    background: #8e2418;
    transform: translateY(-3px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--navy-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: #f1f5f9;
}

/* Trust Signals Strip */
.trust-signals-strip {
    background-color: #1f2937;
    background-image: linear-gradient(rgba(249, 250, 251, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(249, 250, 251, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 40px 0;
    color: white;
}

.flex-strip {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.signal-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 5px;
}

.signal-item p {
    font-size: 1.2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.signal-divider {
    width: 5px;
    height: 85px;
    background: rgb(255 0 0 / 45%);
    border-radius: 10px;
}
/* Image Styling */
.service-hero-image-container {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: visible; /* To allow floating card to peek out */
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
    border: 8px solid #b91c1c; /* Polaroid/Modern feel */
}

/* Floating "Result" Card */
.floating-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    color: #10b981;
    font-size: 1.5rem;
}

.floating-card span {
    font-weight: 800;
    color: var(--navy-dark);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Section 2: SEO Definition & Value */
.seo-definition-section {
    padding: 100px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.sub-tag {
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.intro-text h2 {
    font-size: 2.5rem;
    color: var(--navy-dark);
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--navy-light);
    margin-bottom: 15px;
}

.intro-highlight {
    background: #f8fafc;
    padding: 40px;
    border-radius: 20px;
    border-left: 5px solid var(--red);
    box-shadow: 10px 15px 10px rgba(0, 0, 0, 0.07);
}

.keyword-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.keyword-tags li {
    background: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--navy-dark);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Why Matters Grid */
.why-matters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 80px;
}

.why-box {
    background: white;
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.why-box:hover {
    transform: translateY(-10px)!important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--red);
    color: white;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    border-radius: 12px;
    margin-bottom: 25px;
}

.why-box h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--navy-dark);
}

/* Mid-Section CTA */
.mid-section-cta {
    background-color: #1f2937;
    background-image: linear-gradient(rgba(249, 250, 251, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(249, 250, 251, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 60px;
    border-radius: 24px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.mid-section-cta::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 200px; height: 200px;
    background: var(--red);
    filter: blur(150px);
    opacity: 0.3;
    z-index: -1;
}

.cta-inner h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--white);
}

.cta-inner p {
    color: #94a3b8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.shadow-red {
    box-shadow: 0 10px 25px rgba(179, 45, 29, 0.4);
}
/* Section 3: 6 Reasons */
.reasons-section {
    padding: 100px 0;
    background-color: #1f2937;
    background-image: linear-gradient(rgba(249, 250, 251, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(249, 250, 251, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
}

.section-header {
    text-align: center;
    max-width: 100%;
    margin: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

/* The Grid Logic: 4 columns */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.reason-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.reason-card:hover {
    transform: translateY(-10px)!important;
    border-color: var(--red);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.reason-icon {
    font-size: 2rem;
    color: var(--red);
    margin-bottom: 20px;
}

.reason-card h3 {
    font-size: 1.2rem;
    color: var(--navy-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.reason-card p {
    font-size: 0.95rem;
    color: var(--navy-light);
    line-height: 1.6;
}

/* Centering the bottom two cards */
.bottom-row {
    grid-column: span 1; /* Default */
}

/* Inline CTA Styling */
.inline-cta {
    text-align: center;
    padding-top: 30px;
    border-top: 1px dashed var(--border-color);
}

.inline-cta p {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 20px;
}
/* SEO Roadmap Section */
.seo-roadmap {
    padding: 100px 0;
    background-color: #1f2937;
    background-image: linear-gradient(rgba(249, 250, 251, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(249, 250, 251, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
}

.roadmap-container {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
    padding-left: 50px; /* Space for the line */
}

/* The Vertical Line (The Road) */
.roadmap-line {
    position: absolute;
    left: 20px;
    top: 0;
    width: 4px;
    height: 100%;
    background: #e2e8f0; /* Grey track */
    border-radius: 10px;
    overflow: hidden; 
}

/* The Moving Pointer (The animated progress) */
.roadmap-pointer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0; /* Start at zero height */
    background: var(--red);
    /* This handles the vertical growth animation */
    transition: height 3s ease-in-out; 
}
.roadmap-container.active .roadmap-pointer {
    height: 100%;
}

/* Each Step Wrapper */
.roadmap-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 40px;
}

/* The Numbered Circle */
.roadmap-dot {
    position: absolute;
    left: -44px;
    top: 0;
    width: 32px;
    height: 32px;
    background: white;
    border: 3px solid #e2e8f0;
    color: var(--navy-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    z-index: 2;
    transition: 0.3s;
}

.roadmap-item:hover .roadmap-dot {
    background: var(--red);
    border-color: var(--red);
    color: white;
    transform: scale(1.2);
}

.roadmap-content {
    background: white;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
    transition: 0.3s;
}

.roadmap-content:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-10px);
}

.roadmap-content h4 {
    color: var(--red);
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.roadmap-content p {
    color: var(--navy-light);
    line-height: 1.6;
    margin: 0;
}
/* Final CTA Section */
.final-cta-section {
    padding: 100px 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
}
.cta-content h2 span{
    color: var(--red);
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 850px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--navy-dark);
}

/* The White Button Styling */
.btn-white {
    background: #ffffff;
    color: var(--red);
    padding: 20px 45px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px; /* Pill shape like the screenshot */
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    background: var(--navy-dark);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
/*==========================================================================================================================================*/

/* ==========================================================================
   ROOF REACH BLOG STYLING
   ========================================================================== */

/* Banner Section */
.blog-banner-section {
    padding: 80px 0 60px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.blog-subtitle {
    display: inline-block;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.blog-main-title {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a; /* Deep corporate navy/black */
    margin-bottom: 16px;
    line-height: 1.2;
}
.blog-banner-desc {
    max-width: 700px;
    margin: 0 auto;
    font-size: 17px;
    color: #64748b;
    line-height: 1.6;
}

/* Blog Grid Container Layout */
.blog-grid-section {
    padding: 80px 0;
    background-color: #1f2937;
    background-image: linear-gradient(rgba(249, 250, 251, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(249, 250, 251, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
}
.blog-container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Individual Blog Cards */
.blog-post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(185, 28, 28, 0.08); /* Soft red shadow tint */
}

/* Card Images */
.blog-img-box {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.blog-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-post-card:hover .blog-img-box img {
    transform: scale(1.05);
}
.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #b91c1c;
    color: #ffffff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 30px;
}

/* Card Content Details */
.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 12px;
}
.blog-meta i {
    color: #b91c1c;
    margin-right: 4px;
}
.blog-card-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}
.blog-card-body h3 a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}
.blog-card-body h3 a:hover {
    color: #b91c1c;
}
.blog-card-body p {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.blog-read-more {
    margin-top: auto;
    color: #b91c1c;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}
.blog-read-more:hover {
    gap: 12px; /* Smooth arrowhead slide forward */
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .blog-main-title { font-size: 2.2rem; }
    .blog-container-grid { grid-template-columns: 1fr; }
}
/* ==========================================================================
   ROOF REACH SINGLE POST VIEWPORT STYLING
   ========================================================================== */
.single-post-wrapper {
    padding: 80px 0;
    background: #ffffff;
}

/* Restricts read column width to prevent eye strain on wide desktop layouts */
.small-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-header {
    margin-bottom: 40px;
}

.post-category-tag {
    display: inline-block;
    background: #b91c1c;
    color: #fff;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.post-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 20px;
}

.post-meta-strip {
    font-size: 14px;
    color: #64748b;
}
.post-meta-strip span {
    margin: 0 10px;
}
.post-meta-strip i {
    color: #b91c1c;
}

.post-hero-image {
    width: 100%;
    max-height: 450px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}
.post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Readable Paragraph Typography Settings */
.post-body-content {
    font-size: 18px;
    line-height: 1.8;
    color: #334155;
}
.post-body-content p {
    margin-bottom: 25px;
}
.post-body-content h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin: 40px 0 15px 0;
}












/* --- Core Animation Settings --- */
.animate {
    opacity: 0;
    visibility: hidden; 
    transition: opacity 0.6s ease-out; /* Fallback */
}
.animate.show {
    opacity: 1;
    visibility: visible;
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-timing-function: ease-out;
}

/* 3. Define the Names ONLY for the show state */
.animate.show.zoom-in { animation-name: zoomIn; }
.animate.show.slide-up { animation-name: slideUp; }
.animate.show.slide-down { animation-name: slideDown; }
.animate.show.slide-left { animation-name: slideLeft; }
.animate.show.slide-right { animation-name: slideRight; }

/* --- Animation Keyframes --- */
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Optional: Delays so elements don't all pop at once */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1.0s; }
.delay-6 { animation-delay: 1.2s; }
.delay-7 { animation-delay: 1.4s; }