/* Custom CSS for SSR Elite Home Builders - Exact Match */
:root {
    --theme-color: #ffc107; /* Brighter yellow closer to MCG screenshot */
    --theme-dark: #000000; /* Black */
    --text-color: #ffffff; /* Default text white for dark sections */
    --topbar-bg: #f5ebe1; /* Exact beige from original */
}

body {
    font-family: 'Poppins', sans-serif;
    color: #555555;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.theme-color {
    color: var(--theme-color) !important;
}

/* Header Top */
.header-top {
    background-color: var(--topbar-bg);
    color: #333;
    font-size: 14px;
    height: 45px;
}

.header-top a.text-dark {
    color: #333 !important;
    font-weight: 500;
}

.header-top a.text-dark:hover {
    color: var(--theme-color) !important;
}

.social-links {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--theme-color);
}

.social-links a {
    color: #000 !important;
    width: 45px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(0,0,0,0.1);
}

.social-links a:hover {
    background-color: rgba(0,0,0,0.1);
}

/* Navbar */
.navbar {
    background-color: var(--theme-dark) !important;
    padding: 15px 0;
}

.navbar-brand h2 {
    color: #ffffff !important; /* Force white text */
    letter-spacing: 1px;
    font-size: 34px;
    font-weight: 700;
}

.navbar-brand span {
    color: #aaaaaa !important;
    display: block;
    margin-top: -5px;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    margin: 0 10px;
    padding: 10px 0;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--theme-color) !important;
}

.dropdown-menu {
    background-color: #111;
    border: none;
    border-top: 3px solid var(--theme-color);
}

.dropdown-item {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    padding: 10px 20px;
    border-bottom: 1px solid #222;
}

.dropdown-item:hover {
    background-color: var(--theme-color);
    color: #000;
}

/* Buttons */
.theme-btn {
    background-color: var(--theme-color);
    color: #000000 !important;
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0;
    font-size: 14px;
}

.theme-btn:hover {
    background-color: #e5b001;
}

.btn-outline-theme {
    border: 1px solid var(--theme-color);
    color: var(--theme-color) !important;
    padding: 11px 30px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0;
    font-size: 14px;
    background: transparent;
}

.btn-outline-theme:hover {
    background-color: var(--theme-color);
    color: #000 !important;
}

/* Banner Section */
.banner-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    padding: 100px 0;
    position: relative;
    display: flex;
    align-items: center;
}

.banner-content {
    max-width: 900px;
}

.banner-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    color: #ffffff !important; /* CRITICAL FIX: The H1 was black previously */
    margin-bottom: 10px;
}

.divider-left {
    width: 70px;
    height: 4px;
    background-color: var(--theme-color);
    margin: 20px 0; /* Closer to text like original */
}

.banner-content p {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 40px;
}

/* Contact Form Panel */
.contact-panel {
    background-color: #000000;
    padding: 50px 0 80px 0;
    margin-top: 0; 
}

.contact-panel .form-label {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 15px;
}

.contact-panel .form-label span {
    color: red;
}

.contact-panel .form-control, .contact-panel .form-select {
    border-radius: 0;
    border: none;
    padding: 15px;
    background-color: #ffffff;
    font-size: 14px;
}

/* Services Section */
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #000;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--theme-color);
}

.services-intro {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 58px);
    background: linear-gradient(135deg, #faf9f6 0%, #f3f1ec 100%);
    border: 1px solid #ece9e2;
    border-radius: 18px;
}

.services-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--theme-color);
}

.services-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #987000;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.services-intro .section-title {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.16;
}

.services-intro .section-title span {
    color: #987000;
}

.services-intro .section-title::after {
    display: none;
}

.services-intro p {
    color: #5d5b56;
    font-size: 1rem;
    line-height: 1.8;
}

.services-intro .services-intro-lead {
    color: #34332f;
    font-size: 1.1rem;
}

.service-shortcuts {
    padding: clamp(24px, 4vw, 42px);
    border-radius: 18px;
    background: #f7f5f1;
}

.service-shortcuts-heading {
    margin-bottom: 22px;
}

.service-shortcuts-heading > span {
    display: inline-block;
    margin-bottom: 8px;
    color: #9b171b;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.service-shortcuts-heading h2 {
    margin: 0;
    color: #151515;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 800;
}

.service-shortcut {
    display: flex;
    min-height: 112px;
    align-items: center;
    gap: 16px;
    padding: 19px 22px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: #d71920;
    color: #fff;
    box-shadow: 0 8px 18px rgba(115, 15, 20, .14);
    transition: transform .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.service-shortcut:hover,
.service-shortcut:focus-visible {
    transform: translateY(-3px);
    background: #bd151b;
    color: #fff;
    box-shadow: 0 13px 24px rgba(115, 15, 20, .23);
}

.service-shortcut:focus-visible {
    outline: 3px solid #222;
    outline-offset: 3px;
}

.service-shortcut-icon {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #d71920;
    font-size: 1.2rem;
}

.service-shortcut-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.service-shortcut-copy small {
    margin-bottom: 3px;
    color: rgba(255, 255, 255, .78);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .13em;
}

.service-shortcut-copy strong {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.service-shortcut-arrow {
    color: #fff;
    font-size: .95rem;
    transition: transform .22s ease;
}

.service-shortcut:hover .service-shortcut-arrow {
    transform: translateX(4px);
}

.service-item[id] {
    scroll-margin-top: 96px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.service-item h3 {
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 700;
}

.service-item h2 {
    font-size: 32px;
    font-weight: 800;
}

.service-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
    box-shadow: 0 12px 28px rgba(25, 24, 20, 0.12) !important;
}

.service-img:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 18px 36px rgba(25, 24, 20, 0.17) !important;
}

.service-item > div:last-child > a {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #f3f1ec;
    box-shadow: 0 12px 28px rgba(25, 24, 20, 0.1);
}

/* FAQ Section */
.faq-section {
    background: #f6f5f1;
}

.faq-heading .faq-eyebrow,
.faq-contact-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #987000;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.faq-heading .section-title {
    margin-bottom: 0;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.faq-heading > p {
    max-width: 620px;
    color: #696761;
}

.faq-accordion {
    display: grid;
    gap: 14px;
}

.faq-item {
    overflow: hidden;
    margin: 0;
    border: 1px solid #e8e5dd !important;
    border-radius: 12px !important;
    background: #fff;
    box-shadow: 0 5px 16px rgba(25, 24, 20, .045);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item:has(.accordion-button:not(.collapsed)) {
    border-color: rgba(255, 193, 7, .75) !important;
    box-shadow: 0 9px 24px rgba(25, 24, 20, .08);
}

.faq-item .accordion-button {
    gap: 14px;
    padding: 21px 22px;
    color: #222;
    background: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    box-shadow: none;
}

.faq-item .accordion-button:not(.collapsed) {
    color: #171717;
}

.faq-item .accordion-button::after {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    background-size: 1rem;
}

.faq-item .accordion-button:focus-visible {
    outline: 3px solid rgba(255, 193, 7, .55);
    outline-offset: -4px;
}

.faq-item .accordion-body {
    padding: 0 22px 22px;
    color: #62615d;
    font-size: .95rem;
    line-height: 1.75;
}

.faq-contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(28px, 4vw, 42px);
    border-radius: 16px;
    border-top: 5px solid var(--theme-color);
    background: #111;
    box-shadow: 0 14px 32px rgba(25, 24, 20, .12);
    color: #fff;
}

.faq-contact-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 26px;
    place-items: center;
    border-radius: 50%;
    background: var(--theme-color);
    color: #111;
    font-size: 1.2rem;
}

.faq-contact-card .faq-contact-eyebrow {
    margin-bottom: 10px;
    color: var(--theme-color);
    font-size: .68rem;
    letter-spacing: .12em;
}

.faq-contact-card h3 {
    margin-bottom: 12px;
    color: #fff;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.faq-contact-card p {
    margin-bottom: 24px;
    color: #c8c8c8;
    line-height: 1.75;
}

.faq-contact-card .theme-btn {
    width: 100%;
    padding: 14px 16px;
    text-align: center;
}

.faq-phone {
    margin-top: 18px;
    color: #fff;
    font-weight: 600;
}

.faq-phone:hover {
    color: var(--theme-color);
}

/* Footer */
.main-footer {
    background-color: #000000;
    color: #a0a0a0;
}

.main-footer h4 {
    color: #fff;
    font-weight: 700;
}

.footer-links a, .footer-contact a {
    color: #a0a0a0;
    display: inline-block;
    padding: 5px 0;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--theme-color);
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 15px;
}

.main-footer .social-links {
    background-color: transparent;
}

.main-footer .social-links a {
    background: #222;
    color: #fff !important;
    border: none;
    margin-right: 10px;
}

.main-footer .social-links a:hover {
    background: var(--theme-color);
    color: #000 !important;
}

/* Homepage mobile refinements */
@media (max-width: 767.98px) {
    .navbar {
        padding: 10px 0;
    }

    .navbar-brand h2 {
        font-size: 29px;
    }

    .navbar-brand span {
        font-size: 11px !important;
        letter-spacing: 1.2px !important;
    }

    .navbar-collapse {
        padding: 10px 0 4px;
    }

    .navbar-nav .nav-link {
        margin: 0;
        padding: 11px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .navbar-nav .dropdown-menu {
        margin: 0 0 8px;
    }

    .banner-section {
        min-height: 0;
        padding: 64px 0 58px;
        background-position: 58% center;
    }

    .banner-content {
        max-width: 100%;
    }

    .banner-content h1 {
        font-size: clamp(2rem, 9vw, 2.7rem);
        line-height: 1.12;
        letter-spacing: -.5px;
    }

    .banner-content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 26px !important;
    }

    .banner-content .btn-box .btn {
        width: 100%;
        padding: 13px 16px;
    }

    .contact-panel {
        padding: 30px 0 42px;
    }

    .contact-panel .form-control,
    .contact-panel .form-select {
        padding: 12px;
    }

    .services-section {
        margin-top: 2.5rem !important;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .services-intro {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .services-intro .section-title {
        font-size: 1.8rem;
    }

    .services-intro .services-intro-lead {
        font-size: 1.02rem;
    }

    .service-item h2 {
        font-size: 1.75rem;
    }

    .service-shortcuts {
        padding: 22px 16px;
        border-radius: 14px;
    }

    .service-shortcut {
        min-height: 94px;
        gap: 12px;
        padding: 15px;
    }

    .service-shortcut-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .service-img {
        height: 280px;
        border-radius: 12px;
    }

    .faq-section .accordion-button {
        padding: 17px 16px;
        line-height: 1.4;
    }

    .faq-item .accordion-body {
        padding: 0 16px 18px;
    }

    .faq-contact-card {
        padding: 28px 24px;
    }
}
