:root {
    --navy: #0b2340;
    --navy-deep: #071629;
    --gold: #b88b2f;
    --ink: #0f1724;
    --muted: #6b7280;
    --bg: #f6f7fb;
    --card-border: #e6ebf2;
    --surface: #ffffff;
    --soft: #eef2f7;
    --shadow: 0 14px 30px rgba(11, 34, 64, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background: var(--bg);
    color: var(--ink);
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

a {
    color: inherit;
}

a:hover {
    color: var(--navy);
}

.navbar-brand {
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
}

.navbar-brand img {
    height: 44px;
}

body.contact-page .navbar-brand img {
    height: 32px;
}

.btn-primary {
    background: var(--navy);
    border-color: var(--navy);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #091b33;
    border-color: #091b33;
}

.btn-outline-primary {
    border-color: var(--navy);
    color: var(--navy);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.section-pad {
    padding: 64px 0;
    scroll-margin-top: 90px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--navy);
}

.hero-section {
    padding: 72px 0 48px;
    background: radial-gradient(circle at top left, rgba(184, 139, 47, 0.12), transparent 45%),
        linear-gradient(180deg, rgba(11, 35, 64, 0.06), rgba(11, 35, 64, 0));
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: center;
}

.hero-copy {
    grid-column: span 5;
}

.hero-copy h1 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 3vw, 3.1rem);
    margin: 12px 0 16px;
}

.hero-copy p {
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-carousel {
    grid-column: span 7;
    position: relative;
}

.hero-carousel .carousel {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(11, 35, 64, 0.1);
}

.hero-carousel img {
    height: 360px;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(11, 35, 64, 0.85);
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.why-card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 22px rgba(11, 34, 64, 0.06);
}

.why-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
}

.service-tile {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.service-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--navy);
    font-weight: 700;
}

.projects-section {
    background: linear-gradient(180deg, var(--navy), var(--navy-deep));
    color: #fff;
}

.project-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: #fff;
    color: var(--navy);
}

.project-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.project-card {
    background: #fff;
    color: var(--ink);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-card .card-body {
    padding: 16px;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 8px;
}

.project-tags span {
    background: var(--soft);
    color: var(--navy);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.package-card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(11, 34, 64, 0.06);
    position: relative;
}

.package-card.featured {
    border-color: rgba(184, 139, 47, 0.4);
    box-shadow: 0 18px 36px rgba(184, 139, 47, 0.2);
}

.package-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}

.quote-section {
    background: linear-gradient(135deg, var(--navy), #0f2d52);
    color: #fff;
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: start;
}

.quote-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 6px 6px 0 0;
    font-size: 0.85rem;
}

.quote-form-card {
    background: #fff;
    color: var(--ink);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-control,
.form-select {
    background-color: var(--surface);
    border: 1px solid var(--card-border);
    color: var(--ink);
    box-shadow: none;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    align-items: start;
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(11, 34, 64, 0.06);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.contact-item {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 16px;
}

/* Contact section – Contact Details + Quick Inquiry (mobile-first design) */
.contact-section {
    background: var(--bg);
}

.contact-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

.contact-details-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 14px;
}

.contact-icon {
    flex-shrink: 0;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 2px;
}

.contact-value {
    font-weight: 600;
    color: var(--ink);
}

.contact-value a {
    color: inherit;
    text-decoration: none;
}

.contact-value a:hover {
    color: var(--navy);
}

.contact-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.contact-actions-row .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-actions-row .btn-icon {
    display: inline-flex;
}

.quick-inquiry-block {
    margin-top: 0.5rem;
}

.quick-inquiry-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1rem;
}

.quick-inquiry-card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 24px rgba(11, 34, 64, 0.06);
}

.form-label-upper {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.site-footer {
    background: var(--navy);
    color: #fff;
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-brand {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.75);
    margin-top: 8px;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact {
    display: grid;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Services page refinements */
.service-card {
    box-shadow: 0 10px 30px rgba(11, 35, 64, 0.06);
    border: 1px solid #eef2f7;
    border-radius: 8px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-deps .badge {
    margin-right: 6px;
    margin-bottom: 4px;
    background: #f8fafc;
}

.service-timeline {
    font-size: 0.9rem;
}

/* Contacts bar at bottom of contact page */
.contacts-bar {
    background: linear-gradient(180deg, var(--navy), #06152a);
    color: #fff;
}

.contacts-bar a {
    color: #fff;
    text-decoration: underline;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 6px;
}

.contact-card a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-card svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

.contact-actions {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Service detail page (scalable: one template, content from JSON) */
.service-detail-page {
    min-height: 60vh;
}

.service-detail-title {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--ink);
}

.service-detail-carousel-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(11, 34, 64, 0.12);
    border: 1px solid var(--card-border);
}

.service-detail-carousel .carousel-inner {
    border-radius: 16px;
}

.service-detail-carousel-img {
    height: 320px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .service-detail-carousel-img {
        height: 420px;
    }
}

.service-detail-body {
    max-width: 720px;
}

.service-detail-desc {
    margin-bottom: 1.25rem;
}

.service-detail-timeline {
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.service-detail-block {
    margin-bottom: 1.5rem;
}

.service-detail-block .letter-spacing {
    letter-spacing: 0.08em;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-detail-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--muted);
}

.service-detail-list li {
    margin-bottom: 0.25rem;
}

.service-detail-deps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.service-detail-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-card .service-detail-link {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Lavish submit overlay: loading + success */
.submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.submit-overlay.submit-overlay-visible {
    opacity: 1;
    visibility: visible;
}

.submit-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(11, 35, 64, 0.92) 0%, rgba(7, 22, 41, 0.96) 50%, rgba(15, 45, 82, 0.94) 100%);
    backdrop-filter: blur(12px);
}

.submit-overlay-panel {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.submit-overlay-loading {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 48px 36px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.submit-overlay-spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    border: 4px solid var(--soft);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: submit-overlay-spin 0.9s linear infinite;
}

@keyframes submit-overlay-spin {
    to {
        transform: rotate(360deg);
    }
}

.submit-overlay-loading-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
}

.submit-overlay-loading-sub {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

.submit-overlay-success {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 28px;
    padding: 52px 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.submit-overlay-success.submit-overlay-success-visible {
    opacity: 1;
    transform: scale(1);
}

.submit-overlay-success-icon-wrap {
    width: 88px;
    height: 88px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-overlay-success-icon {
    width: 100%;
    height: 100%;
}

.submit-overlay-success-circle {
    stroke: var(--navy);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: submit-overlay-circle 0.6s ease-out forwards;
}

.submit-overlay-success-check {
    stroke: var(--navy);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: submit-overlay-check 0.4s ease-out 0.35s forwards;
}

@keyframes submit-overlay-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes submit-overlay-check {
    to {
        stroke-dashoffset: 0;
    }
}

.submit-overlay-success-title {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 12px;
}

.submit-overlay-success-message {
    font-size: 1.05rem;
    color: var(--muted);
    margin: 0 0 28px;
    line-height: 1.5;
}

.submit-overlay-close-btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(11, 35, 64, 0.25);
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .hero-carousel {
        grid-column: span 12;
    }

    .hero-carousel img {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 56px 0 36px;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card.active {
    border: 2px solid #007bff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
}

.carousel-img {
    height: 280px;
    object-fit: cover;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}


/* Modal Css */
.service-modal .modal-dialog {
    max-width: 1100px !important;
}

.service-modal .modal-body {
    padding: 0 !important;
    height: 60vh;
    overflow: hidden;
}

.split-layout {
    display: flex;
    height: 100%;
}

.image-col {
    flex: 0 0 42%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.details-col {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
}

/* Stats */
.stats-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 16px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-value.primary {
    color: #007bff;
}

.stat-value.success {
    color: #28a745;
}

/* Sections */
.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Options */
.options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.option-chip {
    background: #f8f9fa;
    color: #495057;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    user-select: none;
}

.option-chip:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-1px);
}

.option-chip.selected {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    border-color: #007bff !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.option-label {
    cursor: pointer;
    width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
    .option-chip {
        padding: 0.85rem 1.35rem;
        font-size: 0.95rem;
    }
}

.modal .bg-primary {
    background-color: var(--navy) !important;
    border-color: white !important;
}

/* Lists */
.deliverables-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deliverables-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.95rem;
}

.deliverables-list li:last-child {
    border-bottom: none;
}

/* Mobile */
@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
    }

    .image-col {
        flex: none;
        height: 35vh;
        order: -1;
    }

    .details-col {
        padding: 1.5rem;
    }

    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }
}

/* MOBILE - Complete overhaul */
@media (max-width: 768px) {
    .service-modal .modal-dialog {
        max-width: 95vw !important;
        margin: 1rem auto;
    }

    .service-modal .modal-body {
        height: 85vh !important;
        padding: 0 !important;
    }

    .split-layout {
        flex-direction: column !important;
        height: 100%;
    }

    .image-col {
        flex: none !important;
        height: 40vh !important;
        /* Taller image */
        order: -1 !important;
        /* Images first */
        min-height: 280px;
    }

    .carousel-inner img {
        height: 100% !important;
        object-fit: cover !important;
    }

    .details-col {
        flex: 1 !important;
        padding: 2rem 1.5rem !important;
        overflow-y: auto;
    }

    /* Stack stats vertically */
    .stats-row {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .stat-item {
        padding: 1.25rem !important;
    }

    /* Better spacing for sections */
    .section {
        margin-bottom: 2rem !important;
    }

    /* Larger touch targets */
    .option-chip {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.95rem !important;
    }

    .section-title {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 576px) {

    /* Modal shell */
    .service-modal .modal-dialog {
        margin: 0;
        height: 100vh;
    }

    .service-modal .modal-content {
        height: 100vh;
        border-radius: 0;
    }

    /* Header */
    .service-modal .modal-header {
        position: sticky;
        top: 0;
        z-index: 10;
        background: #0b2a4a;
        color: #fff;
        padding: 0.75rem 1rem;
    }

    /* Image / carousel */
    .service-modal .carousel {
        max-height: 45vh;
        overflow: hidden;
    }

    .service-modal .carousel-item img,
    .service-modal .carousel-item video {
        height: 45vh;
        width: 100%;
        object-fit: cover;
    }

    /* Controls – easier taps */
    .service-modal .carousel-control-prev,
    .service-modal .carousel-control-next {
        width: 15%;
    }

    /* Body */
    .service-modal .modal-body {
        padding: 1rem;
        overflow-y: auto;
        max-height: calc(100vh - 45vh - 120px);
    }

    /* Footer */
    .service-modal .modal-footer {
        position: sticky;
        bottom: 0;
        background: #fff;
        border-top: 1px solid #eee;
        padding: 0.75rem;
        display: flex;
        gap: 0.75rem;
    }

    .service-modal .modal-footer .btn {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .service-modal .modal-content {
        animation: slideUp 0.25s ease;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }
}

/* MOBILE FIX */
@media (max-width: 768px) {

    .service-modal .split-layout {
        display: flex !important;
        flex-direction: column;
        height: auto;
    }

    .service-modal .image-col {
        width: 100%;
        max-height: 40vh;
        flex: none;
    }

    .service-modal .details-col {
        width: 100%;
        flex: none;
        padding-top: 1rem;
    }
}

@media (max-width: 768px) {
    .service-modal .service-carousel {
        height: 40vh !important;
    }
}

@media (max-width: 768px) {

    .service-modal .modal-body {
        display: block !important;
        overflow-y: auto !important;
        max-height: calc(100vh - 120px);
    }

}

.service-modal .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-item {
    /* height: 80vh; */
    background: #edebeb;
    /* optional black background */
}

.carousel-item-hero {
    height: 70vh;
    background: #edebeb;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* 👈 key change */
}

@media (max-width: 768px) {
    .hero-carousel .carousel-item img {
        height: 60vh !important;
        /* smaller height for mobile */
    }
}

.service-modal .modal-content {
    border-radius: 16px;
    overflow: hidden;
}

/* Desktop split height */
.service-modal-layout {
    min-height: 500px;
}

/* Image column */
.service-image-col {
    background: #000;
}

.service-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel full height */
#serviceHeroCarousel,
#serviceHeroCarousel .carousel-inner,
#serviceHeroCarousel .carousel-item {
    height: 100%;
}

/* Content scroll if long */
.service-content-col {
    max-height: 80vh;
    overflow-y: auto;
}

.service-modal .modal-content {
    backdrop-filter: blur(10px);
}

/* Mobile layout fix */
@media (max-width: 991px) {
    .service-modal-layout {
        flex-direction: column;
    }

    .service-image-col {
        height: 250px;
    }

    .service-content-col {
        max-height: unset;
    }
}

@media (max-width: 768px) {

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

/* Container */
.stats-row {
    display: flex;
    gap: 16px;
}

/* Each stat */
.stat-item {
    flex: 1;
    background: #f8f9fb;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    transition: all 0.2s ease;
}

/* Hover (desktop only) */
@media (hover: hover) {
    .stat-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }
}

/* Label */
.stat-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 6px;
}

/* Value */
.stat-value {
    font-size: 20px;
    font-weight: 700;
}

/* Colors */
.stat-value.primary {
    color: #0d6efd;
}

.stat-value.success {
    color: #198754;
}

/* 🔥 Mobile polish */
@media (max-width: 768px) {
    .stats-row {
        gap: 12px;
    }

    .stat-item {
        padding: 14px;
        border-radius: 12px;
    }

    .stat-value {
        font-size: 18px;
    }
}

.stat-item {
    background: linear-gradient(145deg, #ffffff, #f1f3f7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Desktop default */
.service-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 🔥 Mobile override */
@media (max-width: 768px) {
    .service-image-col img {
        object-fit: contain;
        background: #000;
        /* prevents white gaps */
    }

    .service-image-col {
        height: 240px;
        /* fixed mobile hero height */
    }
}

/* Default (Desktop) */
.carousel-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Ensure carousel takes full height */
#serviceHeroCarousel,
#serviceHeroCarousel .carousel-inner,
#serviceHeroCarousel .carousel-item {
    height: 100%;
}

/* 🔥 Mobile Fix */
@media (max-width: 768px) {

    .image-col {
        height: 240px;
        background: #000;
        /* prevents white gaps */
    }

    .carousel-img {
        object-fit: contain;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-member {
    background: linear-gradient(135deg, #001f3f, #003366);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 1.5rem;
    color: #ffffff;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #007bff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.team-member h3 {
    margin: 0.5rem 0;
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 600;
}

.team-member p {
    margin: 0.5rem 0;
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.4;
}

.team-member a {
    color: #1da1f2;
    text-decoration: none;
    font-weight: 500;
}

.team-member a:hover {
    text-decoration: underline;
}

.team-contact {
    margin-top: 15px;
    font-size: 15px;
}

.team-contact a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin: 6px 0;
    transition: all 0.3s ease;
}

.team-contact a:hover {
    color: #dbeafe;
    text-decoration: underline;
}

.team-contact i {
    color: #ffffff;
    margin-right: 6px;
}