/* =========================================================
   BYALL GROUP — CONTACT PAGE
========================================================= */


/* =========================================================
   01. FULL-PAGE BACKGROUND
========================================================= */

body.contact-page {
    position: relative;
    isolation: isolate;
    background: #17232c;
}

body.contact-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(10, 18, 25, 0.85) 0%,
            rgba(10, 18, 25, 0.65) 55%,
            rgba(10, 18, 25, 0.40) 100%
        ),
        url("/assets/images/contact-background.png")
        center / cover no-repeat;
}

body.contact-page > main {
    background: transparent;
}


/* =========================================================
   02. HERO
========================================================= */

.contact-hero {
    position: relative;
    display: block;
    min-height: 560px;
    padding: 90px 0;
    overflow: hidden;

    background: transparent;
    color: #ffffff;
    text-align: left;
}

.contact-hero::before,
.contact-hero::after {
    content: none;
}

.contact-hero > .container {
    position: relative;
    inset: auto;
    transform: none;
    display: block;

    width: min(1200px, calc(100% - 48px));
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;

    text-align: left;
}

.contact-hero .contact-label,
.contact-hero .contact-eyebrow {
    display: block;
    margin-bottom: 24px;

    color: var(--byall-gold, #e5b51b);

    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.contact-hero h1 {
    position: static;
    transform: none;
    max-width: 900px;
    margin: 0;

    color: #ffffff;
    text-align: left;

    font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.contact-hero > .container > p,
.contact-hero-content > p {
    position: static;
    transform: none;
    max-width: 590px;
    margin: 26px 0 0;

    color: #e0e6ea;
    text-align: left;

    font-size: 18px;
    line-height: 1.75;
}


/* =========================================================
   03. CONTACT INFORMATION
========================================================= */

.contact-main {
    padding: 100px 0;
    background: transparent;
}

.contact-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(0, 1.15fr);
    align-items: start;
    gap: 80px;
}

.contact-info {
    min-width: 0;
}

.contact-info .section-label {
    display: block;
    margin-bottom: 22px;

    color: var(--byall-gold, #e5b51b);

    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.contact-info h2 {
    max-width: 460px;
    margin: 0;

    color: #ffffff;

    font-size: clamp(38px, 3.8vw, 54px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.contact-lead {
    max-width: 460px;
    margin: 26px 0 0;

    color: #e0e6ea;

    font-size: 16px;
    line-height: 1.85;
}

.contact-details {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.contact-detail {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.contact-detail-label {
    display: block;
    margin-bottom: 10px;

    color: var(--byall-gold, #e5b51b);

    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-detail a {
    display: inline-block;
    color: #ffffff;

    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;

    transition: color 0.2s ease;
}

.contact-detail a:hover {
    color: var(--byall-gold, #e5b51b);
}

.contact-detail p {
    margin: 0;
    color: #e0e6ea;

    font-size: 15px;
    line-height: 1.9;
}

.contact-note {
    margin-top: 35px;
    padding: 25px;

    border-left: 3px solid var(--byall-gold, #e5b51b);
    background: #ffffff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.contact-note > span {
    display: block;
    margin-bottom: 10px;
    color: #151b20;

    font-size: 13px;
    font-weight: 700;
}

.contact-note p {
    margin: 0;
    color: #626b70;

    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   04. PROJECT FORM
========================================================= */

.contact-form-wrap {
    min-width: 0;
    padding: 45px;

    border-top: 3px solid var(--byall-blue, #087baa);
    background: #ffffff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.form-heading {
    margin-bottom: 32px;
}

.form-heading > span {
    display: block;
    margin-bottom: 14px;
    color: #087baa;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.form-heading h3 {
    margin: 0 0 15px;
    color: #111111;

    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.form-heading p {
    margin: 0;
    color: #626b70;

    font-size: 14px;
    line-height: 1.8;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.contact-form .form-group {
    min-width: 0;
    margin-bottom: 22px;
}

.contact-form label {
    display: block;
    margin-bottom: 9px;
    color: #252d32;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.contact-form label > span {
    margin-left: 3px;
    color: #087baa;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 13px 14px;

    border: 1px solid #cfd8d3;
    border-radius: 0;

    background: #f7f9f8;
    color: #151b20;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.contact-form select {
    cursor: pointer;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #6f7478;
    opacity: 1;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #087baa;
    background: #ffffff;
    outline: 2px solid #087baa;
    outline-offset: 2px;
}

.form-submit {
    margin-top: 8px;
}

.contact-submit {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    width: 100%;
    min-height: 56px;
    padding: 18px 24px;
    border: 0;

    background: var(--byall-gold, #e5b51b);
    color: #111111;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact-submit > span {
    font-size: 20px;
    line-height: 1;
}

.contact-submit:hover {
    background: #f2bc32;
}

.contact-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.form-submit > p {
    margin: 16px 0 0;
    color: #626b70;

    font-size: 12px;
    line-height: 1.8;
}


/* =========================================================
   05. SERVICE AREA
========================================================= */

.contact-regions {
    padding: 90px 0;
    background: transparent;
    color: #ffffff;
}

.contact-regions-inner {
    display: grid;
    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1.05fr);
    align-items: start;
    gap: 80px;
}

.regions-heading .section-label {
    display: block;
    margin-bottom: 22px;
    color: var(--byall-gold, #e5b51b);

    font-size: 10px;
    letter-spacing: 0.17em;
}

.regions-heading h2 {
    margin: 0;
    color: #ffffff;

    font-size: clamp(36px, 3.5vw, 48px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.region-list {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.region-item {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 23px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.region-item > span {
    color: var(--byall-gold, #e5b51b);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.region-item h3 {
    margin: 0;
    color: #ffffff;

    font-size: 23px;
    font-weight: 600;
    line-height: 1.3;
}


/* =========================================================
   06. DIRECT CONTACT
========================================================= */

.contact-bottom {
    padding: 75px 0;
    background: transparent;
    color: #ffffff;
}

.contact-bottom-inner {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 0.65fr);
    align-items: center;
    gap: 60px;
}

.contact-bottom-inner > div > span {
    display: block;
    margin-bottom: 18px;
    color: var(--byall-gold, #e5b51b);

    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-bottom h2 {
    max-width: 600px;
    margin: 0;
    color: #ffffff;

    font-size: clamp(34px, 3.5vw, 48px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.contact-bottom-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding-bottom: 8px;

    border-bottom: 2px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;

    font-size: clamp(23px, 2.4vw, 30px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;

    transition: color 0.2s ease;
}

.contact-phone > span {
    font-size: 24px;
}

.contact-email {
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    overflow-wrap: anywhere;

    transition: color 0.2s ease;
}

.contact-phone:hover,
.contact-email:hover {
    color: var(--byall-gold, #e5b51b);
}

.contact-email:hover {
    text-decoration: underline;
}


/* =========================================================
   07. KEYBOARD FOCUS
========================================================= */

.contact-submit:focus-visible {
    outline: 2px solid #151b20;
    outline-offset: 5px;
}

.contact-detail a:focus-visible,
.contact-bottom a:focus-visible {
    outline: 2px solid var(--byall-gold, #e5b51b);
    outline-offset: 5px;
}


/* =========================================================
   08. TABLET
========================================================= */

@media (max-width: 900px) {
    .contact-hero {
        padding: 90px 0 75px;
    }

    .contact-main {
        padding: 80px 0;
    }

    .contact-grid,
    .contact-regions-inner,
    .contact-bottom-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 45px;
    }

    .contact-info h2,
    .contact-lead {
        max-width: 650px;
    }

    .contact-regions {
        padding: 80px 0;
    }
}


/* =========================================================
   09. MOBILE
========================================================= */

@media (max-width: 768px) {
    body.contact-page::before {
        background-position: 65% center;
    }

    .contact-hero {
        min-height: 480px;
        padding: 64px 0;
    }

    .contact-hero > .container > p,
    .contact-hero-content > p {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .contact-hero {
        padding: 70px 0 65px;
    }

    .contact-hero .contact-label,
    .contact-hero .contact-eyebrow {
        font-size: 9px;
    }

    .contact-hero h1 {
        font-size: clamp(34px, 8.5vw, 46px);
        line-height: 1.12;
        letter-spacing: -0.035em;
    }

    .contact-hero > .container > p,
    .contact-hero-content > p {
        margin-top: 24px;
        font-size: 15px;
    }

    .contact-main {
        padding: 65px 0;
    }

    .contact-info h2 {
        font-size: clamp(30px, 8vw, 38px);
    }

    .contact-lead {
        font-size: 15px;
    }

    .contact-detail a {
        font-size: 18px;
    }

    .contact-form-wrap {
        padding: 30px 22px;
    }

    .form-heading h3 {
        font-size: 27px;
    }

    .contact-form .form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .contact-submit {
        padding: 18px;
        gap: 14px;
        font-size: 10px;
    }

    .contact-regions,
    .contact-bottom {
        padding: 65px 0;
    }

    .regions-heading h2,
    .contact-bottom h2 {
        font-size: clamp(30px, 8vw, 38px);
    }

    .region-item h3 {
        font-size: 21px;
    }
}


/* =========================================================
   10. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .contact-detail a,
    .contact-form input,
    .contact-form select,
    .contact-form textarea,
    .contact-submit,
    .contact-phone,
    .contact-email {
        transition: none;
    }
}