/* Bhala Symfony experience layer
   Adds the interactive RFQ, service/evidence surfaces and responsive states
   without mutating the legacy public_html commercial backend. */

button.quote-cart,
button.btn {
    appearance: none;
    border: 0;
    cursor: pointer;
}

button.quote-cart {
    border: 0;
}

button.quote-cart .cart-count {
    min-width: 1.55rem;
    height: 1.55rem;
    display: inline-grid;
    place-items: center;
    padding-inline: .35rem;
    border-radius: 999px;
    color: var(--bhala-navy);
    background: #fff;
    font-size: .74rem;
    font-weight: 900;
}

.services-section {
    padding: 5.7rem 0;
    color: #fff;
    background:
        radial-gradient(circle at 88% 14%, rgba(0, 200, 83, .18), transparent 30%),
        radial-gradient(circle at 12% 90%, rgba(0, 136, 196, .22), transparent 35%),
        linear-gradient(128deg, #001d2b 0%, #063e54 54%, #005175 100%);
}

.services-section .section-heading h2,
.services-section .section-heading p,
.services-section .text-link {
    color: #fff;
}

.services-section .eyebrow {
    color: #70e7a0;
}

.services-intro {
    max-width: 600px;
    margin: 0;
    color: #c9dce6;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.service-card {
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    padding: 1.55rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .045));
    box-shadow: 0 24px 50px rgba(0, 0, 0, .12);
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: auto -12% -28% 35%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 200, 83, .18), transparent 68%);
    pointer-events: none;
}

.service-index {
    position: relative;
    z-index: 1;
    width: 2.3rem;
    height: 2.3rem;
    display: grid;
    place-items: center;
    margin-bottom: 2rem;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(120deg, var(--bhala-green), var(--bhala-blue));
    font-size: .72rem;
    font-weight: 900;
}

.service-card h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.16;
}

.service-card > p {
    position: relative;
    z-index: 1;
    margin: .85rem 0 1.6rem;
    color: #c9dce6;
    font-size: .94rem;
}

.service-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: auto;
}

.service-actions .btn {
    min-height: 42px;
    padding: .65rem .85rem;
    font-size: .82rem;
}

.btn-service {
    color: #072a3a;
    background: #fff;
}

.btn-service:hover {
    background: #effafa;
}

.btn-service-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25) !important;
    background: transparent;
}

.evidence-section {
    padding: 5.7rem 0;
    background:
        radial-gradient(circle at 100% 0, rgba(0, 136, 196, .09), transparent 34%),
        #fff;
}

.evidence-grid {
    display: grid;
    grid-template-columns: 1.45fr .75fr .75fr;
    gap: 1rem;
}

.evidence-card {
    position: relative;
    min-height: 350px;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: #071c29;
    box-shadow: var(--shadow-sm);
}

.evidence-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}

.evidence-card:hover img {
    transform: scale(1.035);
}

.evidence-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 29, 43, .86));
    pointer-events: none;
}

.evidence-card figcaption {
    position: absolute;
    z-index: 2;
    left: 1.3rem;
    right: 1.3rem;
    bottom: 1.2rem;
    color: #fff;
}

.evidence-card figcaption strong,
.evidence-card figcaption span {
    display: block;
}

.evidence-card figcaption span {
    margin-top: .3rem;
    color: #d9eef6;
    font-size: .85rem;
}

.evidence-card.primary {
    min-height: 470px;
}

.workflow-strip {
    padding: 1.1rem 0;
    color: #dff7ec;
    background: #001d2b;
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.workflow-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.workflow-list div {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.workflow-list div:last-child {
    border-right: 0;
}

.workflow-list b {
    color: #72eca7;
    font-size: .7rem;
    letter-spacing: .12em;
}

.workflow-list span {
    font-size: .82rem;
    font-weight: 750;
}

.rfq-dialog {
    width: min(1040px, calc(100% - 28px));
    max-height: min(860px, calc(100dvh - 28px));
    padding: 0;
    overflow: hidden;
    color: var(--ink);
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 42px 100px rgba(0, 29, 43, .34);
}

.rfq-dialog::backdrop {
    background: rgba(0, 22, 34, .72);
    backdrop-filter: blur(8px);
}

.rfq-shell {
    display: grid;
    grid-template-columns: minmax(300px, .8fr) minmax(420px, 1.2fr);
    max-height: min(860px, calc(100dvh - 28px));
}

.rfq-basket {
    min-height: 0;
    display: flex;
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(circle at 0 0, rgba(0, 200, 83, .16), transparent 35%),
        linear-gradient(145deg, #001d2b, #005175);
}

.rfq-basket-head,
.rfq-form-head {
    padding: 1.55rem 1.55rem 1rem;
}

.rfq-basket-head p,
.rfq-form-head p,
.rfq-basket-head h2,
.rfq-form-head h2 {
    margin: 0;
}

.rfq-basket-head p,
.rfq-form-head p {
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.rfq-basket-head p {
    color: #78edaa;
}

.rfq-basket-head h2,
.rfq-form-head h2 {
    margin-top: .4rem;
    font-size: 1.55rem;
    line-height: 1.08;
}

.rfq-items {
    min-height: 160px;
    overflow: auto;
    padding: .3rem 1.1rem 1rem;
}

.rfq-empty {
    margin: .65rem .45rem;
    padding: 1.2rem;
    color: #d0e6ed;
    border: 1px dashed rgba(255, 255, 255, .22);
    border-radius: 14px;
    font-size: .9rem;
}

.rfq-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .65rem 1rem;
    padding: 1rem .45rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.rfq-line strong,
.rfq-line small {
    display: block;
}

.rfq-line small {
    margin-top: .25rem;
    color: #a9ccd8;
    font-size: .72rem;
}

.rfq-line-controls {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.rfq-line-controls label {
    color: #cce4ec;
    font-size: .72rem;
}

.rfq-line-controls input {
    width: 62px;
    height: 38px;
    padding: .45rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 9px;
    background: rgba(255, 255, 255, .08);
}

.rfq-remove {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 9px;
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.custom-requirement {
    margin: auto 1.1rem 1.1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 15px;
    background: rgba(255, 255, 255, .055);
}

.custom-requirement label {
    display: block;
    color: #d8edf3;
    font-size: .76rem;
    font-weight: 800;
}

.custom-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .55rem;
    margin-top: .55rem;
}

.custom-row input {
    min-width: 0;
    height: 42px;
    padding: .7rem .8rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 9px;
    background: rgba(255, 255, 255, .08);
}

.custom-row input::placeholder {
    color: #9abfc9;
}

.custom-row button {
    min-height: 42px;
    padding: .65rem .85rem;
    border: 0;
    border-radius: 9px;
    color: #003044;
    background: #fff;
    font-weight: 850;
    cursor: pointer;
}

.rfq-form-panel {
    min-width: 0;
    overflow: auto;
    background: #f8fbfc;
}

.rfq-form-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(248, 251, 252, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.rfq-form-head p {
    color: var(--bhala-green-dark);
}

.rfq-close {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--bhala-navy);
    background: #fff;
    font-size: 1.35rem;
    cursor: pointer;
}

.rfq-form {
    padding: 1.25rem 1.55rem 1.6rem;
}

.rfq-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.rfq-field {
    min-width: 0;
    display: grid;
    gap: .42rem;
}

.rfq-field.full {
    grid-column: 1 / -1;
}

.rfq-field label {
    color: #16364a;
    font-size: .78rem;
    font-weight: 850;
}

.rfq-field input,
.rfq-field textarea {
    width: 100%;
    padding: .78rem .85rem;
    border: 1px solid #cbdde3;
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.rfq-field input:focus,
.rfq-field textarea:focus {
    outline: none;
    border-color: var(--bhala-blue);
    box-shadow: 0 0 0 4px rgba(0, 136, 196, .11);
}

.rfq-field textarea {
    min-height: 102px;
    resize: vertical;
}

.rfq-boundary {
    margin: 1.1rem 0 0;
    padding: .85rem 1rem;
    border-left: 4px solid var(--bhala-green);
    border-radius: 7px;
    color: #34536a;
    background: #edf8f2;
    font-size: .82rem;
}

.rfq-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.15rem;
}

.rfq-submit-row small {
    max-width: 310px;
    color: #667987;
    line-height: 1.4;
}

.rfq-submit {
    min-width: 180px;
}

.rfq-submit[disabled] {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.rfq-status {
    min-height: 1.5rem;
    margin: .8rem 0 0;
    color: #34536a;
    font-size: .86rem;
}

.rfq-status.is-error {
    color: #a01919;
}

.rfq-success {
    padding: 1rem;
    border: 1px solid #b8e0c7;
    border-radius: 13px;
    color: #104b2c;
    background: #eefaf2;
}

.rfq-success strong,
.rfq-success span {
    display: block;
}

.rfq-success span {
    margin-top: .25rem;
    font-size: .86rem;
}

.rfq-toast {
    position: fixed;
    z-index: 1000;
    right: 1rem;
    bottom: 1rem;
    max-width: min(360px, calc(100% - 2rem));
    padding: .9rem 1rem;
    border-radius: 12px;
    color: #fff;
    background: #003b50;
    box-shadow: 0 18px 44px rgba(0, 29, 43, .24);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.rfq-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1040px) {
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .evidence-grid {
        grid-template-columns: 1fr 1fr;
    }

    .evidence-card.primary {
        grid-column: 1 / -1;
        min-height: 420px;
    }

    .workflow-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .workflow-list div:nth-child(3) {
        border-right: 0;
    }

    .rfq-shell {
        grid-template-columns: minmax(280px, .75fr) minmax(400px, 1.25fr);
    }
}

@media (max-width: 760px) {
    .services-section,
    .evidence-section {
        padding: 4.4rem 0;
    }

    .service-grid,
    .evidence-grid,
    .workflow-list {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 270px;
    }

    .evidence-card,
    .evidence-card.primary {
        grid-column: auto;
        min-height: 320px;
    }

    .workflow-list div,
    .workflow-list div:nth-child(3) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .workflow-list div:last-child {
        border-bottom: 0;
    }

    .rfq-dialog {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
    }

    .rfq-shell {
        display: block;
        max-height: 100dvh;
        overflow: auto;
    }

    .rfq-basket,
    .rfq-form-panel {
        overflow: visible;
    }

    .rfq-basket {
        min-height: auto;
    }

    .custom-requirement {
        margin-top: 1rem;
    }

    .rfq-form-head {
        position: static;
    }

    .rfq-fields {
        grid-template-columns: 1fr;
    }

    .rfq-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .rfq-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .evidence-card img,
    .rfq-toast {
        transition: none;
    }
}
