/* RunBhumi Home — fresh UI */

:root {
    --rb-navy: #0a3d48;
    --rb-navy-mid: #0d5563;
    --rb-navy-light: #148a9c;
    --rb-coral: #ff5c3a;
    --rb-coral-deep: #e84728;
    --rb-gold: #ffb703;
    --rb-mint: #e8f5f3;
    --rb-surface: #eef6f5;
    --rb-card: #ffffff;
    --rb-text: #123038;
    --rb-muted: #5a747c;
    --rb-grad: linear-gradient(135deg, #0a3d48 0%, #0d5563 45%, #148a9c 100%);
    --rb-grad-coral: linear-gradient(135deg, #ff5c3a 0%, #e84728 100%);
    --rb-shadow: 0 16px 40px rgba(10, 61, 72, 0.12);
    --rb-radius: 18px;
}

body {
    color: var(--rb-text);
    background: #fafcfc;
    font-family: "DM Sans", "Plus Jakarta Sans", system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.home-hero-title {
    font-family: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
    color: var(--rb-navy);
}

.btn-primary {
    background: var(--rb-grad) !important;
}

.btn-coral {
    background: var(--rb-grad-coral);
    color: #fff !important;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    box-shadow: 0 10px 28px rgba(255, 92, 58, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-coral:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(255, 92, 58, 0.45);
    color: #fff !important;
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    font-weight: 600;
    padding: 0.85rem 1.75rem;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff !important;
    transform: translateY(-2px);
}

.top-section {
    background: var(--rb-coral) !important;
}

.rb-topbar,
.bg-gradient-primary,
.table thead th,
.modal-header {
    background: var(--rb-grad) !important;
}

.navbar-brand {
    color: var(--rb-navy) !important;
}

/* ——— HERO (full-bleed) ——— */
.home-hero {
    position: relative;
    min-height: clamp(520px, 88vh, 720px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
}

.home-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero-media .carousel,
.home-hero-media .carousel-inner,
.home-hero-media .carousel-item {
    height: 100%;
}

.home-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    animation: homeKen 18s ease-in-out infinite alternate;
}

@keyframes homeKen {
    from { transform: scale(1.02); }
    to { transform: scale(1.08); }
}

.home-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(10, 61, 72, 0.92) 0%, rgba(10, 61, 72, 0.72) 42%, rgba(10, 61, 72, 0.35) 70%, rgba(20, 138, 156, 0.25) 100%),
        linear-gradient(to top, rgba(10, 61, 72, 0.85) 0%, transparent 45%);
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4.5rem 0 5.5rem;
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rb-gold);
    margin-bottom: 1rem;
}

.home-brand i {
    font-size: 1.1em;
}

.home-hero-title {
    color: #fff !important;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    max-width: 14ch;
    margin-bottom: 1rem;
}

.home-hero-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 36rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-hero .carousel-indicators {
    z-index: 3;
    margin-bottom: 1rem;
}

.home-hero .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    opacity: 1;
}

.home-hero .carousel-indicators .active {
    background: var(--rb-coral);
}

/* Floating stats */
.home-stats {
    position: relative;
    z-index: 3;
    margin-top: -2.75rem;
    margin-bottom: 0.5rem;
}

.home-stats-panel {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(10, 61, 72, 0.18);
    padding: 1.25rem 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.home-stat {
    text-align: center;
    padding: 0.5rem;
    border-right: 1px solid rgba(10, 61, 72, 0.08);
}

.home-stat:last-child {
    border-right: none;
}

.home-stat strong {
    display: block;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    color: var(--rb-coral);
    line-height: 1.1;
}

.home-stat span {
    font-size: 0.8rem;
    color: var(--rb-muted);
    font-weight: 500;
}

/* Sections */
.home-section {
    padding: clamp(1rem, 2vw, 3rem) 0;
}

.home-section--mint {
    background: var(--rb-surface);
}

.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 92, 58, 0.12);
    color: var(--rb-coral-deep);
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.home-heading {
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.65rem;
    color: var(--rb-navy);
}

.home-sub {
    color: var(--rb-muted);
    font-size: 1.05rem;
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.6;
}

.home-head {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Feature tiles */
.home-feature {
    background: #fff;
    border-radius: var(--rb-radius);
    padding: 1.5rem 1.35rem;
    height: 100%;
    border: 1px solid rgba(10, 61, 72, 0.06);
    box-shadow: var(--rb-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-feature::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--rb-grad-coral);
}

.home-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(10, 61, 72, 0.16);
}

.home-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rb-mint);
    color: var(--rb-navy-mid);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.home-feature h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--rb-navy);
}

.home-feature p {
    margin: 0;
    color: var(--rb-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Steps timeline */
.home-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .home-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        position: relative;
    }

    .home-steps::before {
        content: "";
        position: absolute;
        top: 36px;
        left: 12%;
        right: 12%;
        height: 3px;
        background: linear-gradient(90deg, var(--rb-coral), var(--rb-navy-light));
        z-index: 0;
        opacity: 0.35;
    }
}

.home-step {
    background: #fff;
    border-radius: var(--rb-radius);
    padding: 1.75rem 1.35rem 1.5rem;
    text-align: center;
    box-shadow: var(--rb-shadow);
    border: 1px solid rgba(10, 61, 72, 0.05);
    position: relative;
    z-index: 1;
    height: 100%;
}

.home-step-num {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--rb-grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 10px 24px rgba(10, 61, 72, 0.3);
}

.home-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.home-step p {
    margin: 0;
    color: var(--rb-muted);
    font-size: 0.92rem;
}

/* Service cards — poster + details */
.home-service-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--rb-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(10, 61, 72, 0.22);
}

.home-service-card-media {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--rb-navy);
}

.home-service-card--wide {
    flex-direction: row;
    align-items: stretch;
}

.home-service-card--wide .home-service-card-media {
    flex: 0 0 42%;
    height: auto;
    min-height: 220px;
}

.home-service-card--wide .home-service-card-body {
    flex: 1;
}

.home-service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.45s ease;
}

.home-service-card:hover .home-service-card-media img {
    transform: scale(1.06);
}

.home-service-card-body {
    padding: 1.2rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-service-tag {
    align-self: flex-start;
    background: var(--rb-coral);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.55rem;
}

.home-service-card h3 {
    color: var(--rb-navy);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.home-service-card p {
    color: var(--rb-muted);
    font-size: 0.9rem;
    margin-bottom: 0.55rem;
    line-height: 1.45;
}

.home-service-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-service-list li {
    position: relative;
    padding: 0.28rem 0 0.28rem 1.15rem;
    color: var(--rb-text);
    font-size: 0.88rem;
    line-height: 1.4;
}

.home-service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--rb-coral);
    transform: translateY(-50%);
}

/* Floating enquiry button — right side center */
.home-enquiry-float {
    position: fixed;
    right: 1.25rem;
    left: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 1040;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 0.7rem;
    border: none;
    border-radius: 18px;
    background: var(--rb-grad);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 12px 32px rgba(10, 61, 72, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    writing-mode: horizontal-tb;
    min-width: 4.5rem;
    cursor: pointer;
}

.home-enquiry-float:hover {
    color: #fff !important;
    transform: translateY(-50%) translateX(-3px) scale(1.04);
    box-shadow: 0 16px 40px rgba(10, 61, 72, 0.45);
    filter: brightness(1.08);
}

.home-enquiry-float > i {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
}

.home-enquiry-float-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.15;
}

.home-enquiry-float-text strong {
    font-family: "Sora", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
}

.home-enquiry-float-text small {
    font-size: 0.62rem;
    opacity: 0.92;
    font-weight: 500;
    max-width: 4.2rem;
}

/* Enquiry modal */
.home-enquiry-modal {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(10, 61, 72, 0.28);
}

.home-enquiry-modal-head {
    background: var(--rb-grad);
    color: #fff;
    border: none;
    padding: 1.15rem 1.25rem;
}

.home-enquiry-modal-head .modal-title {
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff !important;
}

.home-enquiry-modal-head p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.2rem;
}

.home-enquiry-modal .modal-body {
    padding: 1.25rem;
}

.home-enquiry-modal .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rb-navy);
    margin-bottom: 0.3rem;
}

.home-enquiry-modal .form-control,
.home-enquiry-modal .form-select {
    border-radius: 10px;
    border-color: rgba(10, 61, 72, 0.14);
    font-size: 0.9rem;
    padding: 0.6rem 0.85rem;
}

.home-enquiry-modal .form-control:focus,
.home-enquiry-modal .form-select:focus {
    border-color: var(--rb-navy-light);
    box-shadow: 0 0 0 3px rgba(20, 138, 156, 0.14);
}

.home-enquiry-submit {
    border-radius: 10px;
    font-weight: 700;
    padding: 0.7rem 1rem;
}

@media (max-width: 575.98px) {
    .home-enquiry-float {
        right: 0.75rem;
        padding: 0.7rem 0.55rem;
        min-width: 3.8rem;
    }

    .home-enquiry-float > i {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 1.05rem;
    }

    .home-enquiry-float-text strong {
        font-size: 0.75rem;
    }

    .home-enquiry-float-text small {
        font-size: 0.58rem;
        max-width: 3.6rem;
    }
}

/* Testimonials */
.home-quote {
    background: #fff;
    border-radius: var(--rb-radius);
    padding: 1.75rem 1.5rem;
    height: 100%;
    box-shadow: var(--rb-shadow);
    border-top: 4px solid var(--rb-coral);
}

.home-quote p {
    color: var(--rb-muted);
    font-size: 0.98rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1.1rem;
}

.home-quote strong {
    display: block;
    color: var(--rb-navy);
    font-family: "Sora", sans-serif;
    font-size: 0.98rem;
}

.home-quote small {
    color: var(--rb-muted);
    font-size: 0.8rem;
}

.home-quote .stars {
    color: var(--rb-gold);
    margin-top: 0.55rem;
    font-size: 0.85rem;
}

/* Team */
.home-team {
    background: #fff;
    border-radius: var(--rb-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--rb-shadow);
    border: 1px solid rgba(10, 61, 72, 0.05);
    transition: transform 0.25s ease;
}

.home-team:hover {
    transform: translateY(-4px);
}

.home-team img {
    width: 108px;
    height: 108px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--rb-navy-light);
    margin-bottom: 0.85rem;
}

.home-team h3 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.home-team span {
    color: var(--rb-muted);
    font-size: 0.8rem;
}

/* CTA */
.home-cta {
    position: relative;
    overflow: hidden;
    background: var(--rb-grad);
    color: #fff;
    padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.home-cta::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 92, 58, 0.22);
    top: -140px;
    right: -100px;
    pointer-events: none;
}

.home-cta::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 183, 3, 0.15);
    bottom: -100px;
    left: -60px;
    pointer-events: none;
}

.home-cta .container {
    position: relative;
    z-index: 1;
}

.home-cta-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}

.home-cta h2 {
    color: #fff !important;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.home-cta p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.home-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.home-cta-start {
    min-width: 180px;
    box-shadow: 0 10px 28px rgba(255, 92, 58, 0.35);
}

.home-cta-phones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.home-cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    padding: 0.65rem 1.1rem 0.65rem 0.65rem;
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.home-cta-phone:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 183, 3, 0.55);
    color: #fff !important;
}

.home-cta-phone-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--rb-gold);
    color: var(--rb-navy);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.home-cta-phone-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    text-align: left;
}

.home-cta-phone-text small {
    font-size: 0.68rem;
    opacity: 0.85;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.home-cta-phone-text strong {
    font-size: 0.98rem;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .home-cta-phone {
        width: 100%;
        max-width: 280px;
    }
}

/* Motion */
.home-reveal {
    animation: homeFadeUp 0.75s ease both;
}

.home-reveal-delay {
    animation: homeFadeUp 0.75s ease 0.18s both;
}

@keyframes homeFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .home-service-card--wide {
        flex-direction: column;
    }

    .home-service-card--wide .home-service-card-media {
        flex: none;
        height: 220px;
        min-height: 0;
    }
}

@media (max-width: 575.98px) {
    .home-hero {
        min-height: 480px;
    }

    .home-hero-inner {
        padding: 3rem 0 4rem;
    }

    .home-hero-title {
        max-width: none;
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .home-hero-text {
        font-size: 0.92rem;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .home-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .home-stats {
        margin-top: -1.75rem;
    }

    .home-stats-panel {
        padding: 0.85rem 0.35rem;
        border-radius: 16px;
    }

    .home-stat strong {
        font-size: 1.15rem;
    }

    .home-stat span {
        font-size: 0.68rem;
    }

    .home-section {
        padding: 2.75rem 0;
    }

    .home-heading {
        font-size: 1.45rem;
    }

    .home-service-card-media {
        height: 170px;
    }

    .home-service-card-body {
        padding: 1rem;
    }

    .home-service-card h3 {
        font-size: 1rem;
    }

    .home-cta-phones {
        width: 100%;
    }

    .home-cta-phone {
        width: 100%;
        max-width: 300px;
    }

    .rb-topbar-social {
        display: none !important;
    }
}
