@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
    --brand-dark: #0f172a;
    --brand-slate: #1e293b;
    --brand-card: #ffffff;
    --brand-red: #ff0009;
    --brand-red-hover: #b91c1c;
    --brand-red-subtle: #fef2f2;
    --surface-light: #f8fafc;
    --border-light: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(220, 38, 38, 0.15);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}


.text-brand-red {
    color: var(--brand-red)
}

.bg-brand-red {
    background-color: var(--brand-red) !important;
}

/* --- Top Utility Bar --- */
.top-bar {
    background-color: var(--brand-dark);
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

    .top-bar a {
        color: #cbd5e1;
        text-decoration: none;
        transition: color 0.2s;
    }

        .top-bar a:hover {
            color: var(--brand-red);
        }

/* --- Navbar --- */
.navbar-custom {
    background: linear-gradient( 180deg, rgba(22, 22, 22, 0.70) 0%, rgba(22, 22, 22, 1.96) 61%, rgba(0, 0, 0, 0.98) 100% ) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid #e72128;
    padding: 0.65rem 0;
}

    /* Ensure nav links remain high-contrast on dark slate */
    .navbar-custom .nav-link {
        color: #e2e8f0 !important;
    }

        .navbar-custom .nav-link:hover {
            color: var(--brand-red) !important;
        }



.nav-logo {
    height: 130px; /* Restricts height to keep the navbar compact */
    max-height: 150px;
    width: auto;
    object-fit: contain;
    display: block;
}

.navbar-brand {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--brand-dark) !important;
}

    .navbar-brand .sb-badge {
        background: var(--brand-red);
        color: #fff;
        padding: 0.2rem 0.55rem;
        border-radius: var(--radius-sm);
        margin-right: 0.35rem;
        font-weight: 800;
    }

    .navbar-brand span.highlight {
        color: var(--brand-red);
    }

.nav-link {
    font-weight: 600;
    color: var(--brand-slate) !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem;
}

    .nav-link:hover {
        color: var(--brand-red) !important;
    }

/* --- Buttons --- */
.btn-brand-red {
    background-color: var(--brand-red);
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
    transition: all 0.25s ease;
}

    .btn-brand-red:hover {
        background-color: var(--brand-red-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
    }

.btn-brand-outline {
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
}

    .btn-brand-outline:hover {
        background: #ffffff;
        color: var(--brand-dark);
        border-color: #ffffff;
    }

/* --- Hero Section --- */
.hero-wrapper {
    position: relative;
    min-height: 85vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.5) 100%), url('../images/bannerimage.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
    padding: 6rem 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(220, 0, 9, 1);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

    .hero-headline span {
        color: var(--brand-red);
    }

.hero-lead {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* --- Floating Hero Card --- */
.hero-stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    color: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-stat-pill {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- Trust Bar --- */
.trust-bar {
    background-color: var(--brand-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.75rem 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

    .trust-item i {
        color: var(--brand-red);
        font-size: 1.4rem;
        width: 1.5rem;
        text-align: center;
        flex-shrink: 0;
    }

/* --- Service Cards --- */
.service-card-modern {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .service-card-modern:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-hover);
        border-color: rgba(220, 38, 38, 0.25);
    }

.service-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

    .service-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.service-card-modern:hover .service-img-wrapper img {
    transform: scale(1.07);
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
}

.service-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--brand-dark);
}

/* --- Project Portfolio Showcase --- */
.portfolio-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 320px;
    box-shadow: var(--shadow-soft);
}

    .portfolio-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #ffffff;
    opacity: 0.95;
    transition: opacity 0.3s;
}

.portfolio-card:hover img {
    transform: scale(1.08);
}

/* --- Quote Form Section --- */
.quote-section {
    background-color: var(--brand-dark);
    color: #fff;
    padding: 6rem 0;
}

.form-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.form-control, .form-select {
    padding: 0.8rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    font-size: 0.95rem;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--brand-red);
        box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
    }


.rounded-circle {
    background-color: var(--brand-red)
}

/* --- Footer --- */
.footer-dark {
    background-color: #090d16;
    color: #94a3b8;
    padding: 4.5rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

    .footer-dark h5 {
        color: #ffffff;
        font-weight: 700;
        margin-bottom: 1.4rem;
    }

    .footer-dark a {
        color: #94a3b8;
        text-decoration: none;
        transition: color 0.2s;
    }

        .footer-dark a:hover {
            color: var(--brand-red);
        }

.footer-image {
    max-height: 100px;
}


.bi-shield-check::before {
    color: #00ff00;
}




/*Services*/
/* --- Inner Pages (Additive) --- */
.inner-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.85) 100%), url('../images/bannerimage.jpg') center/cover no-repeat;
    padding: 4.5rem 0;
    border-bottom: 2px solid var(--brand-red);
}

.subservice-box {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--brand-red);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}



/*About*/
/* --- About Us & Areas Covered (Additive) --- */
.est-floating-badge {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    background-color: var(--brand-red);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
    text-align: center;
    line-height: 1.1;
}

.about-pillar-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    height: 100%;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease;
}

    .about-pillar-card:hover {
        transform: translateY(-5px);
    }

.about-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: var(--brand-red);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.area-region-card {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--brand-red);
    border-radius: var(--radius-md);
    padding: 1.75rem;
}

.area-town-pill {
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
}


/*Projects*/
/* --- Projects Gallery & Lightbox (Additive) --- */
.filter-pill-btn {
    background-color: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    transition: all 0.2s ease;
}

    .filter-pill-btn:hover {
        border-color: var(--brand-red);
        color: var(--brand-red);
    }

    .filter-pill-btn.active {
        background-color: var(--brand-red);
        border-color: var(--brand-red);
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(255, 0, 9, 0.28);
    }

.project-clickable {
    cursor: pointer;
}

.project-expand-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.project-clickable:hover .project-expand-badge {
    background-color: var(--brand-red);
    transform: scale(1.08);
}


/* --- Before & After Comparison Panels (Additive) --- */
.before-after-box {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--border-light);
    background-color: var(--brand-dark);
    box-shadow: var(--shadow-soft);
}

    .before-after-box.after-highlight {
        border-color: var(--brand-red);
    }

.before-after-img-wrap {
    height: 300px;
    width: 100%;
    overflow: hidden;
}

    .before-after-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.badge-before,
.badge-after {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 2;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.badge-before {
    background-color: rgba(15, 23, 42, 0.9);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-after {
    background-color: var(--brand-red);
    color: #ffffff;
}



/*Admin*/

/* --- Admin Control Panel Cards (Additive) --- */
.admin-panel-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--brand-red);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}

.admin-panel-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: var(--brand-red);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}



/* --- Branded Admin Login Page (Additive) --- */
.admin-login-section {
    background: linear-gradient(135deg, var(--surface-light) 0%, #e2e8f0 100%);
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 4.5rem 0;
}

.admin-login-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
}

.admin-login-header {
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.96) 0%, rgba(0, 0, 0, 0.98) 100%);
    padding: 2.25rem 2rem;
    border-bottom: 3px solid var(--brand-red);
}

.admin-login-badge {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: var(--brand-red);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 0, 9, 0.4);
}

/* --- Admin Outline Buttons (Additive) --- */
.btn-admin-outline {
    background-color: #ffffff;
    color: var(--text-primary);
    border: 1.5px solid #cbd5e1;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .btn-admin-outline:hover {
        border-color: var(--brand-red);
        color: var(--brand-red);
        background-color: #fff5f5;
    }

    .btn-admin-outline.btn-sm {
        padding: 0.35rem 0.85rem;
        font-size: 0.85rem;
    }

/* --- Drag-and-Drop Project Photo Storyboard (Additive) --- */
.photo-zone-wrapper {
    border-radius: var(--radius-md);
    padding: 1rem;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
}

    .photo-zone-wrapper.zone-before {
        border-color: #f59e0b;
        background-color: #fffbeb;
    }

    .photo-zone-wrapper.zone-after {
        border-color: #16a34a;
        background-color: #f0fdf4;
    }

.photo-drop-slot.single-slot {
    min-height: 220px;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

    .photo-drop-slot.single-slot .photo-board-card {
        width: 100%;
    }

.photo-drop-slot.progress-grid-slot {
    min-height: 220px;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    padding: 0.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.photo-drop-slot:empty::after {
    content: attr(data-placeholder);
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    padding: 2rem 1rem;
    grid-column: 1 / -1;
}

/* --- Centered Single-Slot Hero Drop Zone (Additive) --- */
.photo-drop-slot.single-slot.single-slot-hero .photo-board-card {
    max-width: 420px;
    width: 100%;
}

.photo-board-card {
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .photo-board-card .drag-handle {
        cursor: grab;
    }

        .photo-board-card .drag-handle:active {
            cursor: grabbing;
        }

.photo-drag-ghost {
    opacity: 0.45;
    border: 2px dashed var(--brand-red);
}

/* --- Floating Unsaved Changes Action Bar (Additive) --- */
.floating-save-bar {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translate(-50%, 140%);
    opacity: 0;
    pointer-events: none;
    z-index: 1080;
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 4px solid var(--brand-red);
    border-radius: 999px;
    padding: 0.7rem 1.25rem 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    max-width: calc(100vw - 2rem);
}

    .floating-save-bar.is-visible {
        transform: translate(-50%, 0);
        opacity: 1;
        pointer-events: auto;
    }

.unsaved-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #f59e0b;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

/* --- Mobile Responsiveness & Word-Wrap Polish (Additive) --- */
html, body {
    max-width: 100%;
    overflow-x: clip;
}

.text-break {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

@media (max-width: 991.98px) {
    .nav-logo {
        height: 76px;
        max-height: 76px;
    }

    .navbar-custom .navbar-collapse {
        padding-top: 0.75rem;
        padding-bottom: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0.65rem;
    }

    .navbar-custom .dropdown-menu {
        background-color: rgba(15, 23, 42, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .navbar-custom .dropdown-item {
        color: #e2e8f0;
        padding: 0.55rem 1rem;
    }

        .navbar-custom .dropdown-item:hover,
        .navbar-custom .dropdown-item:focus {
            background-color: rgba(255, 0, 9, 0.18);
            color: #ffffff;
        }

    .navbar-custom .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 767.98px) {
    .container {
        padding-left: 1.35rem;
        padding-right: 1.35rem;
    }

    .hero-wrapper {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.74) 100%), url('../images/bannerimage.jpg') center/cover no-repeat;
        padding: 3.25rem 0 3.75rem;
        min-height: auto;
    }

    .hero-headline {
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
    }

    .hero-lead {
        color: #f1f5f9;
        font-size: 1.05rem;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    }

    .trust-item {
        justify-content: flex-start !important;
        font-size: 0.88rem;
    }

    .inner-hero {
        padding: 3rem 0;
    }

    .quote-section {
        padding: 3.5rem 0;
    }

    .footer-dark {
        padding: 3.25rem 0 2rem;
    }
}

@media (max-width: 575.98px) {
    .nav-logo {
        height: 160px;
        max-height: 150px;
        max-width: 380px;
    }

    .footer-image {
        max-height: 60px;
    }

    .hero-tag {
        font-size: 0.78rem;
        padding: 0.4rem 0.85rem;
        border-radius: 12px;
        line-height: 1.35;
    }

    .hero-headline {
        font-size: 2.2rem;
    }

    .hero-wrapper .btn-brand-red,
    .hero-wrapper .btn-brand-outline {
        width: 100%;
        justify-content: center;
    }

    .trust-bar {
        padding: 1.25rem 0;
    }

    .service-content {
        padding: 1.35rem;
    }

    .form-card,
    .hero-stat-card {
        padding: 1.35rem;
    }
}
