@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #fcd34d;
    --secondary: #171717;
    --bg-light: #ffffff;
    --text-dark: #171717;
    --white: #FFFFFF;
    --gray-light: #E5E7EB;
    --gray-medium: #9CA3AF;
    --gray-dark: #374151;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
    --border-radius: 0px;
    --border-style: 4px solid var(--primary);
    --shadow: 5px 5px 0px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 10px 10px 0px rgba(0, 0, 0, 0.18);
    --button-transform: uppercase;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3.2rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.25rem;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--secondary);
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gray-dark);
}

/* Helper Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.text-center {
    text-align: center;
}

.text-light {
    color: var(--white);
}

.bg-primary {
    background-color: var(--primary);
    color: var(--secondary);
}

.bg-dark {
    background-color: var(--text-dark);
    color: var(--white);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-white {
    background-color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: var(--button-transform);
    padding: 12px 28px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    border: 3px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    color: var(--secondary);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--primary);
    color: var(--secondary);
    border-bottom: 4px solid var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: var(--shadow);
}

.hero-buttons .btn-primary {
    background-color: var(--white);
    color: var(--secondary);
    border: 3px solid var(--secondary);
}

.hero-buttons .btn-primary:hover {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.hero-buttons .btn-secondary {
    background-color: var(--primary);
    color: var(--secondary);
    border: 3px solid var(--primary);
}

.hero-buttons .btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary);
    border: 3px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--secondary);
}

/* Header & Navigation */
header {
    background-color: var(--white);
    border-bottom: 5px solid var(--secondary);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.flex-row-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.flex-centered-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.header-centered-mode .centered-nav ul {
    justify-content: center;
    gap: 30px;
}

.header-top {
    background-color: var(--primary);
    color: var(--secondary);
    padding: 8px 0;
    font-size: 0.9rem;
}

.header-top .container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.header-top a {
    color: var(--secondary);
}

.header-top a:hover {
    color: var(--secondary);
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo span {
    color: var(--secondary);
}

nav ul {
    list-style: none;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 25px;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

nav a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dark);
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    text-decoration: none;
}

nav a:hover,
nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Breadcrumbs */
.breadcrumb-container {
    background-color: var(--gray-light);
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-medium);
}

.breadcrumbs {
    font-size: 0.9rem;
    font-weight: 500;
}

.breadcrumbs a {
    color: var(--gray-dark);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--secondary);
}

.breadcrumbs span {
    color: var(--gray-medium);
    margin: 0 8px;
}

.breadcrumbs .current {
    color: var(--primary);
    font-weight: 700;
}

/* Hero Section (Centered Layout) */
.centered-hero-layout {
    color: var(--white);
    min-height: min(100vh, 900px);
    min-height: min(100dvh, 900px);
    padding: 120px 0;
    text-align: center;
    border-bottom: var(--border-style);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 35px auto;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 20px;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

/* Section Styling */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--white);
}

.section-title {
    margin-bottom: 50px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray-dark);
    max-width: 700px;
    margin: 10px auto 0 auto;
}

/* Grids & Cards */
.grid-3 {
    display: -webkit-grid;
    display: grid;
    -webkit-grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: -webkit-grid;
    display: grid;
    -webkit-grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.card {
    background-color: var(--white);
    border: var(--border-style);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px 30px;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.card.money-card {
    border: var(--border-style);
    border-color: var(--secondary);
    border-radius: var(--border-radius);
    background: -webkit-linear-gradient(to bottom, #FFF, var(--bg-light));
    background: linear-gradient(to bottom, #FFF, var(--bg-light));
}

.card.money-card::after {
    content: "POPULAR";
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    letter-spacing: 1px;
}

.card h3 {
    color: var(--primary);
}

.card-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    text-decoration: none;
}

.card-link:hover {
    color: var(--primary);
}

/* Feature/Why Choose Us */
.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 900;
}

/* Lead Form Section */
.site-wrapper > section.lead-section {
    background-color: var(--primary);
    color: var(--secondary);
    border-top: 5px solid var(--secondary);
    border-bottom: 5px solid var(--secondary);
}

.lead-section h2 {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.lead-grid {
    display: -webkit-grid;
    display: grid;
    -webkit-grid-template-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.lead-info h3 {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 15px;
}

.lead-info p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--gray-dark);
}

.lead-phone {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
}

.lead-form-container {
    background-color: var(--white);
    padding: 40px;
    border-top: 6px solid var(--secondary);
    box-shadow: var(--shadow-heavy);
}

.lead-form-container h3 {
    color: var(--secondary);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    font-family: var(--font-body);
    font-size: 1rem;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    border-radius: 0;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Reviews/Testimonials */
.reviews-grid {
    display: -webkit-grid;
    display: grid;
    -webkit-grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--bg-light);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-stars {
    color: #FBBF24;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.review-stars svg {
    color: var(--primary) !important;
    width: 18px;
    height: 18px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
}

.review-author {
    margin-top: auto;
    padding-top: 15px;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* FAQs */
.faq-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 20px;
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-left: 5px solid var(--primary);
    padding: 25px;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    color: var(--secondary);
    font-size: 1.25rem;
    margin-bottom: 10px;
    border: none;
    padding: 0;
    text-transform: none;
}

.faq-item.p2-faq {
    border-left: 5px solid var(--secondary);
}

/* Footer Section */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px 0;
    border-top: 6px solid var(--secondary);
}

.footer-grid {
    display: -webkit-grid;
    display: grid;
    -webkit-grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col p {
    color: var(--gray-light);
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-map-container {
    width: 100%;
    height: 200px;
    border: 3px solid var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--gray-dark);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-medium);
}

/* Pillar Content Styles */
.pillar-intro {
    padding: 60px 0;
}

.pillar-services-list {
    margin-top: 40px;
}

.service-item-block {
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    padding: 40px;
    margin-bottom: 40px;
    border-left: 6px solid var(--primary);
}

.service-item-block.p2-service {
    border-left-color: var(--secondary);
}

.service-item-block h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    border: none;
    padding: 0;
}

/* Service Detail Page Styles */
.service-intro {
    padding: 60px 0;
}

.process-steps {
    display: -webkit-grid;
    display: grid;
    -webkit-grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.step-card {
    background-color: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.step-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary);
    background-color: var(--secondary);
}

.step-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.step-card h4 {
    margin-bottom: 10px;
}

/* Success Banner */
.success-banner {
    background-color: #10B981;
    color: var(--white);
    padding: 15px 0;
    text-align: center;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    .lead-grid {
        -webkit-grid-template-columns: 1fr;
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Hamburger hidden on desktop by default; shown via media query below */
.hamburger {
    display: none;
}

@media (max-width: 768px) {
    /* Hide the top utility bar on mobile to save vertical space */
    .header-top {
        display: none;
    }

    /* Tighten the main header padding */
    .header-main {
        padding: 10px 0;
    }

    /* Row layout: logo left, hamburger right */
    .header-main .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    /* Scale down logo text on mobile */
    .logo a {
        font-size: 0.95rem !important; /* Force override inline styles */
    }

    /* Show hamburger button on mobile */
    .hamburger {
        display: flex;
        flex-shrink: 0; /* Prevent button collapse */
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px;
        z-index: 1100;
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 3px;
        background-color: var(--primary);
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    /* Animate hamburger to X when open */
    .hamburger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hide nav by default on mobile */
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        border-top: 3px solid var(--primary);
        border-bottom: 4px solid var(--secondary);
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
        z-index: 999;
        padding: 12px 0;
    }

    /* Show nav when toggled */
    nav.open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 0 20px;
    }

    nav ul li {
        border-bottom: 1px solid var(--gray-light);
    }

    nav ul li:last-child {
        border-bottom: none;
        padding: 12px 0;
    }

    nav a {
        display: block;
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: none;
    }

    nav a.btn {
        display: block;
        text-align: center;
        padding: 12px 20px;
        margin-top: 4px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    section {
        padding: 50px 0;
    }

    .grid-2 {
        -webkit-grid-template-columns: 1fr;
        grid-template-columns: 1fr;
    }
    
    .flex-centered-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .header-centered-mode .contact-info-strip {
        display: none !important;
    }
    .header-centered-mode .centered-logo {
        margin-bottom: 0 !important;
    }
}

/* Interactive Before-After Slider */
.before-after-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow);
    border-radius: 4px;
    background-color: var(--gray-light);
}

.after-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.before-panel {
    position: absolute;
    inset: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 4px solid var(--secondary);
}

.slider-control {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

/* SVG Illustration Container */
.illustration-container svg {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.illustration-container svg:hover {
    transform: scale(1.03);
}

/* --- BESPOKE SITE BUILDER EXPANSIONS --- */

/* Header Compact Mode */
.header-compact-mode {
    border-bottom: 2px solid var(--gray-light);
    box-shadow: none;
}

/* Header Glassmorphic Mode */
.header-glassmorphic-mode {
    margin-top: 15px !important;
}

@media (max-width: 768px) {
    .header-glassmorphic-mode {
        margin-top: 0 !important;
        border-radius: 0 !important;
        max-width: 100% !important;
    }
}

/* Asymmetric Grids */
.grid-70-30 {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 40px;
}
.grid-30-70 {
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: 40px;
}

.asymmetric-split-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
}

.focus-highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.focus-highlight-grid .card:nth-child(2) {
    transform: none;
    border: var(--border-style);
    z-index: 10;
    box-shadow: var(--shadow-heavy);
}

@media (max-width: 992px) {
    .grid-70-30, .grid-30-70, .asymmetric-split-grid, .focus-highlight-grid {
        grid-template-columns: 1fr !important;
    }
    .focus-highlight-grid .card:nth-child(2) {
        transform: scale(1) !important;
    }
}

/* FAQ Accordion Styles */
.accordion-item {
    border: var(--border-style);
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}
.accordion-header {
    padding: 20px;
    background-color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 1.1rem;
    transition: var(--transition);
    user-select: none;
}
.accordion-header:hover {
    background-color: var(--bg-light);
}
.accordion-header::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
    transition: transform 0.3s ease;
}
.accordion-item.active .accordion-header::after {
    content: "−";
    transform: rotate(180deg);
}
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--white);
}
.accordion-content {
    padding: 0 20px 20px 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-dark);
}

/* Service Tabs Styles */
.tab-nav-btn {
    border: none;
    border-bottom: 4px solid var(--secondary) !important;
    background: none;
    color: var(--white);
    opacity: 0.75;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
    outline: none;
}
.tab-nav-btn.active {
    background-color: var(--secondary) !important;
    color: var(--white) !important;
    border-bottom-color: var(--primary) !important;
    opacity: 1 !important;
}
.tab-panel {
    display: none;
    animation: tabFadeIn 0.4s ease;
}
.tab-panel.active {
    display: block;
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Testimonial Carousel Styles */
.carousel-item {
    display: none;
    width: 100%;
}
.carousel-item.active {
    display: block;
    animation: carouselFadeIn 0.5s ease-in-out;
}
@keyframes carouselFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* Masonry Gallery Styles */
.gallery-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-card:hover img {
    transform: scale(1.05);
}
.gallery-card-tall {
    grid-row: span 2;
}
.gallery-card-wide {
    grid-column: span 2;
}
@media (max-width: 600px) {
    .gallery-card-tall {
        grid-row: span 1;
    }
    .gallery-card-wide {
        grid-column: span 1;
    }
}

/* Hover Accent Physics */

/* 1. 3D Flip Card */
.hover-flip {
    perspective: 1000px;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    border: var(--border-style);
}
.hover-flip:hover .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.flip-card-front {
    background-color: var(--white);
    color: var(--text-dark);
}
.flip-card-back {
    background-color: var(--primary);
    color: var(--secondary);
    transform: rotateY(180deg);
}
.flip-card-back h3 {
    color: var(--secondary) !important;
}

/* 2. Slide-Up Drawer Card */
.hover-slide-up {
    position: relative;
    overflow: hidden;
}
.slide-up-drawer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -100%;
    background: linear-gradient(to top, var(--primary) 85%, transparent);
    color: var(--white);
    padding: 30px 20px 20px 20px;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    text-align: center;
    border-top: 3px solid var(--secondary);
}
.slide-up-drawer h4 {
    color: var(--white) !important;
    margin-bottom: 8px;
}
.slide-up-drawer p {
    font-size: 0.9rem;
    line-height: 1.4;
}
.hover-slide-up:hover .slide-up-drawer {
    bottom: 0;
}

/* 3. Expandable Detail Card */
.hover-expand {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 280px;
}
.hover-expand .expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    margin-top: 0;
}
.hover-expand:hover {
    max-height: 480px;
    box-shadow: var(--shadow-heavy);
}
.hover-expand:hover .expandable-content {
    max-height: 200px;
    opacity: 1;
    margin-top: 15px;
}

/* Dark Mode Theme Vibe overrides */
body.theme-dark {
    background-color: #121212 !important;
    color: #e5e7eb !important;
    --bg-light: #1e1e1e;
    --gray-light: #2d2d2d;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.4);
}
body.theme-dark .site-wrapper > section:not(.hero):not(.lead-section) {
    background-color: #121212 !important;
}
body.theme-dark .site-wrapper > section:not(.hero):not(.lead-section) p,
body.theme-dark .site-wrapper > section:not(.hero):not(.lead-section) li,
body.theme-dark .site-wrapper > section:not(.hero):not(.lead-section) span {
    color: #d1d5db !important;
}
body.theme-dark .site-wrapper > section:not(.hero):not(.lead-section) a:not(.btn) {
    color: var(--primary) !important;
}
body.theme-dark section [style*="background-color: var(--white)"] {
    background-color: #181818 !important;
    color: #e5e7eb !important;
}
body.theme-dark .card, 
body.theme-dark .review-card,
body.theme-dark .accordion-item,
body.theme-dark .interactive-tabs-widget,
body.theme-dark .review-carousel-widget,
body.theme-dark .accordion-header,
body.theme-dark .accordion-body {
    background-color: #181818 !important;
    color: #e5e7eb !important;
}
body.theme-dark .card.money-card {
    background: #181818 !important;
    border-color: var(--primary) !important;
}
body.theme-dark .card.money-card h3,
body.theme-dark .card.money-card p {
    color: #f3f4f6 !important;
}
body.theme-dark .service-item-block,
body.theme-dark .step-card {
    background: #181818 !important;
    color: #d1d5db !important;
    border-color: var(--primary) !important;
}
body.theme-dark .service-item-block h2,
body.theme-dark .service-item-block p,
body.theme-dark .step-card h4,
body.theme-dark .step-card p {
    color: #f3f4f6 !important;
}
body.theme-dark .service-item-block .card-link {
    color: var(--primary) !important;
}
body.theme-dark #sector-scope .card {
    border-top-color: var(--primary) !important;
}
body.theme-dark #related-services .btn-outline {
    color: var(--white) !important;
    border-color: var(--primary) !important;
    background-color: #181818 !important;
}
body.theme-dark #related-services .btn-outline:hover {
    color: var(--secondary) !important;
    background-color: var(--primary) !important;
}
body.theme-dark .accordion-header {
    border-bottom: 1px solid #2d2d2d;
    background-color: #181818 !important;
    color: var(--primary) !important;
}
body.theme-dark .accordion-body,
body.theme-dark .accordion-content {
    background-color: #181818 !important;
    color: #d1d5db !important;
}
body.theme-dark .faq-item {
    background-color: #181818 !important;
    color: #d1d5db !important;
}
body.theme-dark .faq-item h3 {
    color: var(--primary) !important;
}
body.theme-dark .faq-item p {
    color: #d1d5db !important;
}
body.theme-dark .faq-item.p2-faq {
    border-left-color: var(--primary) !important;
}
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4 {
    color: #f3f4f6 !important;
}
body.theme-dark header {
    background-color: #181818 !important;
    border-bottom-color: var(--secondary) !important;
}
body.theme-dark .contact-info-strip,
body.theme-dark .contact-info-strip a {
    color: var(--gray-medium) !important;
}
body.theme-dark nav ul li {
    border-bottom-color: #2d2d2d !important;
}
body.theme-dark nav {
    background-color: #181818 !important;
    border-top-color: #2d2d2d !important;
}
body.theme-dark nav a:not(.btn) {
    color: #f3f4f6 !important;
}
body.theme-dark nav a.active:not(.btn),
body.theme-dark nav a:hover:not(.btn) {
    color: var(--primary) !important;
}
body.theme-dark .lead-section,
body.theme-dark .lead-section h2,
body.theme-dark .lead-section h3,
body.theme-dark .lead-section p {
    color: var(--secondary) !important;
}
body.theme-dark .lead-form-container {
    background-color: var(--white) !important;
    color: var(--secondary) !important;
}
body.theme-dark .lead-form-container h3 {
    color: var(--secondary) !important;
}
body.theme-dark footer p,
body.theme-dark footer a,
body.theme-dark footer .footer-bottom {
    color: #d1d5db !important;
}
body.theme-dark footer h4 {
    color: #f3f4f6 !important;
}

.feature-list li::before {
    content: "\2713" !important;
    color: var(--primary) !important;
}

/* Compact desktop navigation after the visitor scrolls past the masthead. */
header.header-collapsed .header-main { padding: 8px 0; }
header.header-collapsed .header-main .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
header.header-collapsed .centered-logo { margin-bottom: 0 !important; }
header.header-collapsed .centered-logo a { font-size: 1rem !important; }
header.header-collapsed .centered-logo svg { width: 30px; height: 30px; }
header.header-collapsed .contact-info-strip { display: none !important; }
header.header-collapsed .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
header.header-collapsed .hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--primary);
}
header.header-collapsed nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px 0;
    background-color: #181818 !important;
    box-shadow: var(--shadow);
}
header.header-collapsed nav.open { display: block; }
header.header-collapsed nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 20px;
}
header.header-collapsed nav a {
    display: block;
    padding: 12px 0;
    text-align: center;
}
