/* =====================================================
   Bera Software — Contact Page
   ===================================================== */

.bs-contact-page,
.bs-contact-page * {
    box-sizing: border-box;
}

.bs-contact-page {
    --bs-contact-yellow: #ffc43d;
    --bs-contact-black: #0b0d10;
    --bs-contact-text: #11151a;
    --bs-contact-muted: #67707b;
    --bs-contact-surface: #f7f5ef;
    --bs-contact-border: #e5e0d5;

    color: var(--bs-contact-text);
    background: var(--bs-contact-surface);

    font-family: inherit;
}

.bs-contact-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}


/* Hero */

.bs-contact-hero {
    position: relative;
    overflow: hidden;

    padding: 182px 0 66px;

    color: #ffffff;
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(255, 196, 61, 0.17),
            transparent 28%
        ),
        #0b0e12;
}

.bs-contact-hero::after {
    content: "LET’S TALK";

    position: absolute;
    right: -20px;
    bottom: -35px;

    color: rgba(255, 255, 255, 0.025);

    font-size: clamp(100px, 15vw, 240px);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.07em;

    pointer-events: none;
}

.bs-contact-eyebrow {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 17px;

    color: var(--bs-contact-yellow);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.bs-contact-eyebrow::before {
    content: "";

    width: 32px;
    height: 2px;

    background: var(--bs-contact-yellow);
}

.bs-contact-hero h1 {
    position: relative;
    z-index: 1;

    max-width: 820px;
    margin: 0;

    font-size: clamp(48px, 6vw, 82px);
    font-weight: 680;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.bs-contact-hero h1 span {
    display: block;

    color: var(--bs-contact-yellow);
}

.bs-contact-hero > .bs-contact-container > p {
    position: relative;
    z-index: 1;

    max-width: 675px;
    margin: 23px 0 0;

    color: #aeb4bd;

    font-size: 16px;
    line-height: 1.7;
}

.bs-contact-hero-actions {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;

    margin-top: 28px;
}

.bs-contact-primary-button,
.bs-contact-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 49px;
    padding: 13px 19px;

    border-radius: 50px;

    font-size: 13px;
    font-weight: 800;
    text-decoration: none;

    transition:
        transform 180ms ease,
        background 180ms ease,
        color 180ms ease;
}

.bs-contact-primary-button {
    color: #0b0d10;
    background: var(--bs-contact-yellow);
}

.bs-contact-primary-button:hover {
    color: #0b0d10;
    background: #ffd36c;

    transform: translateY(-2px);
}

.bs-contact-primary-button svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bs-contact-secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.18);

    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.bs-contact-secondary-button:hover {
    border-color: rgba(255, 255, 255, 0.4);

    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}


/* Main Content */

.bs-contact-content {
    padding: 70px 0 100px;
}

.bs-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 25px;
    align-items: stretch;
}

.bs-contact-details,
.bs-contact-location {
    padding: 28px;

    border: 1px solid var(--bs-contact-border);
    border-radius: 23px;

    background: #ffffff;

    box-shadow: 0 20px 55px rgba(31, 29, 24, 0.07);
}


/* Section Heading */

.bs-contact-section-heading > span {
    display: block;

    margin-bottom: 9px;

    color: #a16e00;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bs-contact-section-heading h2 {
    margin: 0;

    color: var(--bs-contact-text);

    font-size: clamp(30px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.bs-contact-section-heading p {
    margin: 13px 0 0;

    color: var(--bs-contact-muted);

    font-size: 13px;
    line-height: 1.65;
}


/* Contact Methods */

.bs-contact-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    margin-top: 22px;
}

.bs-contact-method {
    display: flex;
    align-items: center;
    gap: 11px;

    min-width: 0;
    padding: 12px;

    border: 1px solid var(--bs-contact-border);
    border-radius: 12px;

    color: var(--bs-contact-text);
    background: #fbfaf7;

    text-decoration: none;

    transition:
        border-color 180ms ease,
        transform 180ms ease;
}

.bs-contact-method:hover {
    border-color: #e1af36;

    color: var(--bs-contact-text);

    transform: translateY(-2px);
}

.bs-contact-method-icon {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 37px;
    height: 37px;

    border-radius: 10px;

    color: #11151a;
    background: var(--bs-contact-yellow);
}

.bs-contact-method-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bs-contact-method small,
.bs-contact-method strong {
    display: block;
}

.bs-contact-method small {
    margin-bottom: 3px;

    color: var(--bs-contact-muted);

    font-size: 9px;
}

.bs-contact-method strong {
    overflow: hidden;

    max-width: 175px;

    font-size: 11px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Contact Form */

.bs-contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;

    margin-top: 24px;
}

.bs-contact-field {
    display: grid;
    gap: 7px;
}

.bs-contact-field-full {
    grid-column: 1 / -1;
}

.bs-contact-field label {
    color: #303740;

    font-size: 10px;
    font-weight: 750;
}

.bs-contact-field label span {
    margin-left: 4px;

    color: #9198a0;

    font-weight: 500;
}

.bs-contact-field input,
.bs-contact-field select,
.bs-contact-field textarea {
    width: 100%;
    padding: 13px 14px;

    border: 1px solid var(--bs-contact-border);
    border-radius: 10px;
    outline: none;

    color: #161a20;
    background: #fbfaf7;

    font-family: inherit;
    font-size: 12px;

    transition:
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.bs-contact-field input,
.bs-contact-field select {
    min-height: 45px;
}

.bs-contact-field textarea {
    min-height: 90px;

    line-height: 1.55;
    resize: vertical;
}

.bs-contact-field input:focus,
.bs-contact-field select:focus,
.bs-contact-field textarea:focus {
    border-color: #d69d16;

    background: #ffffff;

    box-shadow: 0 0 0 3px rgba(255, 196, 61, 0.14);
}

.bs-contact-field input::placeholder,
.bs-contact-field textarea::placeholder {
    color: #9aa0a8;
}

.bs-contact-form-bottom {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 17px;

    margin-top: 2px;
}

.bs-contact-form-bottom p {
    max-width: 220px;
    margin: 0;

    color: var(--bs-contact-muted);

    font-size: 9px;
    line-height: 1.5;
}

.bs-contact-form-bottom button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 46px;
    padding: 12px 18px;

    border: 0;
    border-radius: 50px;

    color: #ffffff;
    background: #168c45;

    font-family: inherit;
    font-size: 11px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 180ms ease,
        transform 180ms ease;
}

.bs-contact-form-bottom button:hover {
    background: #20a955;

    transform: translateY(-2px);
}

.bs-contact-form-bottom button svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bs-contact-form-status {
    grid-column: 1 / -1;

    min-height: 15px;
    margin: 0;

    color: #168c45;

    font-size: 10px;
    font-weight: 650;
}


/* Location */

.bs-contact-location {
    display: flex;
    flex-direction: column;
}

.bs-contact-map-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 15px;
}

.bs-contact-map-heading > div {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #20262d;

    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bs-contact-live-dot {
    position: relative;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #25d366;
}

.bs-contact-live-dot::after {
    content: "";

    position: absolute;
    inset: -4px;

    border: 1px solid rgba(37, 211, 102, 0.5);
    border-radius: 50%;

    animation: bsContactLivePulse 1.8s ease-out infinite;
}

@keyframes bsContactLivePulse {
    0% {
        opacity: 0.8;
        transform: scale(0.55);
    }

    75%,
    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

.bs-contact-map-heading a {
    color: #8c6200;

    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
}

.bs-contact-map {
    position: relative;
    overflow: hidden;

    width: 100%;
    height: 425px;

    border-radius: 15px;

    background: #e9e6df;
}

.bs-contact-map iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}

.bs-contact-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 16px;
    padding: 15px;

    border: 1px solid var(--bs-contact-border);
    border-radius: 12px;

    background: #fbfaf7;
}

.bs-contact-address-icon {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;

    border-radius: 10px;

    color: #11151a;
    background: var(--bs-contact-yellow);
}

.bs-contact-address-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bs-contact-address small {
    display: block;

    margin-bottom: 5px;

    color: var(--bs-contact-muted);

    font-size: 9px;
    font-weight: 650;
}

.bs-contact-address address {
    margin: 0;

    color: #2c333b;

    font-size: 11px;
    font-style: normal;
    line-height: 1.55;
}


/* Accessibility */

.bs-contact-page a:focus-visible,
.bs-contact-page button:focus-visible,
.bs-contact-page input:focus-visible,
.bs-contact-page select:focus-visible,
.bs-contact-page textarea:focus-visible {
    outline: 2px solid var(--bs-contact-yellow);
    outline-offset: 3px;
}


/* Tablet */

@media (max-width: 950px) {

    .bs-contact-grid {
        grid-template-columns: 1fr;
    }

    .bs-contact-map {
        height: 420px;
    }

}


/* Mobile */

@media (max-width: 650px) {

    .bs-contact-container {
        width: min(100% - 28px, 1200px);
    }

    .bs-contact-hero {
        padding: 160px 0 52px;
    }

    .bs-contact-hero h1 {
        font-size: 48px;
    }

    .bs-contact-hero > .bs-contact-container > p {
        font-size: 14px;
    }

    .bs-contact-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bs-contact-primary-button,
    .bs-contact-secondary-button {
        width: 100%;
    }

    .bs-contact-content {
        padding: 42px 0 80px;
    }

    .bs-contact-details,
    .bs-contact-location {
        padding: 20px;

        border-radius: 18px;
    }

    .bs-contact-methods,
    .bs-contact-form {
        grid-template-columns: 1fr;
    }

    .bs-contact-field-full,
    .bs-contact-form-bottom,
    .bs-contact-form-status {
        grid-column: auto;
    }

    .bs-contact-form-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .bs-contact-form-bottom p {
        max-width: none;
    }

    .bs-contact-form-bottom button {
        width: 100%;
    }

    .bs-contact-map-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .bs-contact-map {
        height: 340px;
    }

}


/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {

    .bs-contact-live-dot::after {
        animation: none;
    }

    .bs-contact-page a,
    .bs-contact-page button,
    .bs-contact-page input,
    .bs-contact-page select,
    .bs-contact-page textarea {
        transition: none;
    }

}