@media (max-width: 991.98px) and (min-width: 768px) {
    .story-img-no-bg {
        max-width: 420px;
    }
}
@media (max-width: 991.98px) {
    .story-img-no-bg {
        max-width: 320px;
        width: 100%;
        height: auto;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}
@media (max-width: 991.98px) {
    .navbar .logo-img {
        filter: none !important;
    }
}
/* --------------------------------- */
/* 0. Root Variables & Global Styles */
/* --------------------------------- */
:root {
    --color-primary: #8B0000;       /* Rosewood Red */
    --color-secondary: #CC7722;     /* Golden Ochre */
    --color-neutral: #F8F8F8;       /* Warm Linen */
    --color-text: #333333;          /* Charcoal Gray */
    --color-white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    background-color: var(--color-white);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
}

/* --------------------------------- */
/* 1. Typography & Buttons           */
/* --------------------------------- */
.navbar-brand {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

.navbar .nav-link.active,
.footer-link.active {
    color: var(--color-secondary) !important;
    font-weight: 700;
    border-bottom: 3px solid var(--color-secondary);
    text-decoration: none !important;
    padding-bottom: 2px;
}


/* Navbar logo color swap: white when transparent, colored when scrolled */
.navbar .logo-img {
    filter: brightness(0) invert(1) grayscale(1) contrast(1.2);
    transition: filter 0.3s;
}
.navbar.scrolled .logo-img {
    filter: none;
}
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 400 !important;
}
.section-title { font-size: 3rem; }

.btn {
    font-family: var(--font-body);
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}
.btn-primary:hover {
    background-color: #6e0000;
    border-color: #6e0000;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.2);
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
}
.btn-secondary:hover {
    background-color: #a95e1b;
    border-color: #a95e1b;
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(204, 119, 34, 0.15);
}
    .btn-secondary {
        background-color: var(--color-secondary);
        border: none;
        color: var(--color-white);
    }
    .btn-secondary:hover {
        background-color: var(--color-white);
        color: var(--color-secondary);
    }

/* --------------------------------- */
/* 2. Navigation Bar                 */
/* --------------------------------- */
.navbar {
    padding: 1rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
    background-color: var(--color-white);
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}
.navbar-brand .logo-img { height: 40px; transition: height 0.4s ease; }
.navbar.scrolled .navbar-brand .logo-img { height: 35px; }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }
.nav-link { color: var(--color-white); font-weight: 600; }
.navbar.scrolled .nav-link { color: var(--color-text); }
.navbar.scrolled .nav-link:hover { color: var(--color-primary); }

/* --------------------------------- */
/* 3. Hero Section                   */
/* --------------------------------- */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding-top: 8rem;
    padding-bottom: 8rem;
    background: url('https://images.pexels.com/photos/3958958/pexels-photo-3958958.jpeg') no-repeat center center/cover;
    color: var(--color-white);
}
.hero-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(20, 20, 20, 0.4); /* lighter transparent overlay */
}
.hero-logo-img { height: 60px; }
.hero-section h1 { color: var(--color-white); text-shadow: 1px 1px 5px rgba(0,0,0,0.3); }
.hero-section .lead { font-size: 1.375rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.2); }


/* Story Section Customization */
#story {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}
#story > .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------- */
/* 4. Other Sections                 */
/* --------------------------------- */
.bg-neutral { background-color: var(--color-neutral); }

.service-card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    /* Updated service card styles for hover effect */
    .service-card,
    .service-card-minimal {
        border: 0;
        border-radius: 12px;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .service-card:hover { transform: translateY(-5px); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1); }
    .service-card:hover,
    .service-card-minimal:hover {
        transform: translateY(-18px) scale(1.03);
        box-shadow: 0 16px 48px rgba(139, 0, 0, 0.13), 0 2px 12px rgba(0,0,0,0.06);
    }
/* Services Section Icon Customization */
#services .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 16px;
    margin: 0 0 1.25rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
#services .icon-box i {
    font-size: 1.7rem;
    color: var(--color-primary);
    line-height: 1;
}
#story {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}
/* Services Section Height & Centering */
#services {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1); }
.service-card .card-img-top { border-radius: 12px 12px 0 0; height: 200px; object-fit: cover; }
.service-card .card-title { font-size: 1.5rem; }

.parallax-section {
    position: relative;
    padding: 6rem 0;
    background: url('https://images.pexels.com/photos/1134176/pexels-photo-1134176.jpeg') no-repeat center center/cover;
    background-attachment: fixed;
}
.parallax-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(139, 0, 0, 0.7); /* Rosewood Red Overlay */
}
.feature-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    color: var(--color-white);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}
.feature-box h3 { color: var(--color-white); }

/* Section: Why Us (Modernized) */

#why-us .section-title {
    color: var(--color-white) !important;
}

#why-us {
    background:
        linear-gradient(to bottom, rgba(51,51,51,0.95) 0%, rgba(51,51,51,0.7) 60%, rgba(51,51,51,0.5) 100%),
        url('/media/row-houses-bristol-england.jpg') center center/cover no-repeat;
    background-color: var(--color-text); /* Dark background */
    padding: 8rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
#why-us {
    background-color: var(--color-text); /* Dark background */
    padding: 8rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-feature-point {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    background: #fff;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.modern-feature-point h3 {
    font-family: var(--font-body); /* Use Montserrat for subheadings here for modern feel */
    font-weight: 600;
    font-size: 1.6rem; /* Slightly larger for emphasis */
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.modern-feature-point p {
    font-size: 1rem; /* Slightly smaller for points, easy to digest */
    line-height: 1.6;
}

.modern-feature-point .icon-circle {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(139,0,0,0.07);
    font-size: 2rem;
    color: var(--color-primary);
}

.icon-circle {
    min-width: 60px; /* Fixed width for consistent alignment */
    height: 60px;
    background-color: var(--color-secondary); /* Golden Ochre background for icons */
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(204, 119, 34, 0.2); /* Subtle shadow for depth */
}

.modern-statistic-box {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); /* More prominent shadow */
    text-align: center;
    position: relative;
    overflow: hidden; /* For the graphic */
    border: 1px solid rgba(0,0,0,0.05); /* Subtle border */
}

.statistic-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.8rem; /* Larger, more impactful quote */
    color: var(--color-text);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2; /* Ensure text is above graphic */
}

.statistic-source {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-primary); /* Emphasize with primary color */
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.statistic-graphic {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Height for the graphic */
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0 2rem;
    opacity: 0.15; /* Make it very subtle */
    z-index: 1; /* Keep it behind text */
}

.chart-bar {
    width: 20%; /* Width of each bar */
    background: linear-gradient(to top, var(--color-primary), var(--color-secondary)); /* Gradient bars */
    border-radius: 5px 5px 0 0;
    transition: all 0.5s ease-out; /* Smooth animation */
}
/* Bar heights to give a sense of data visualization */
.bar-1 { height: 60px; }
.bar-2 { height: 90px; }
.bar-3 { height: 75px; }


.testimonials-section { background-color: var(--color-secondary); }
.quote-icon { font-size: 5rem; color: var(--color-primary); line-height: 1; }
.testimonial-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.testimonial-text { font-style: italic; font-size: 1.25rem; }
.testimonial-author { font-weight: 600; margin-top: 1.5rem; color: var(--color-primary); }

.contact-list { list-style: none; padding-left: 0; }
.contact-list li { font-size: 1.25rem; margin-bottom: 1rem; font-weight: 600; }
.contact-list i { color: var(--color-primary); margin-right: 1rem; }
.map-container { border-radius: 0; overflow: hidden; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); }


/* Contact Section CTA Row Styling */
#contact .row.justify-content-center {
    background-color: var(--color-text);
    color: var(--color-white);
}

/* Contact Section Heading and Icon Color Adjustments */
#contact .section-title {
    color: var(--color-white) !important;
}
#contact .contact-list i {
    color: var(--color-secondary) !important;
}

/* Contact CTA Row Background Image and Overlay */
.contact-cta-bg {
    background: url('/media/front-view-city-with-building-sunset.jpg') center center/cover no-repeat;
    position: relative;
    z-index: 1;
}
.contact-cta-bg > * {
    position: relative;
    z-index: 2;
}
.contact-cta-overlay {
    background: rgba(51,51,51,0.75); /* darker grey transparent overlay */
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
}

/* --------------------------------- */
/* 5. Footer                         */
/* --------------------------------- */
.footer-section { background-color: var(--color-text);}
/* Footer Sitemap and Contact Section Colors */
.footer-section .fw-bold,
.footer-section .bi {
    color: var(--color-secondary) !important;
}
/* Footer link styles */
.footer-link {
    color: var(--color-white) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}
.footer-link:hover, .footer-link:focus {
    color: var(--color-secondary) !important;
    text-decoration: underline;
}
.footer-section .navbar-brand { filter: brightness(0) invert(1); }

/* Larger logo in the footer */
.footer-logo {
    height: 64px !important;
    max-width: 180px;
}
.footer-tagline {
    font-size: 1.1rem;
    color: var(--color-neutral);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* --------------------------------- */
/* 6. Responsive Adjustments         */
/* --------------------------------- */
@media (max-width: 991.98px) {
    .navbar { background-color: var(--color-white); }
    .nav-link { color: var(--color-text); }
    .navbar.scrolled { padding: 1rem 0; }
    .section-title { font-size: 2.5rem; }
}

/* Responsive Adjustments for Why Us */
@media (max-width: 991.98px) {
    .modern-statistic-box {
        margin-top: 3rem; /* Add space between columns on mobile */
    }
}

/* Navbar dropdown on hover */
.navbar .dropdown:hover .dropdown-menu {
    display: block;
}
