:root{
    --b3-bg:var(--b3-cream);
    --b3-card:var(--b3-card);
    --b3-text:var(--b3-text);
    --b3-muted:var(--b3-muted);
    --b3-gold:#8b641f;
    --b3-border:rgba(33,30,25,.15);
    --b3-gold-gradient:linear-gradient(
        110deg,
        #76501a 0%,
        #b6802c 28%,
        #e7c978 52%,
        #a66f20 76%,
        #d9b35c 100%
    );
}

.b3-contact,
.b3-contact *{
    box-sizing:border-box;
}

.b3-contact{
    width:100%;
    min-width:0;
    overflow-x:hidden;
    background:var(--b3-bg);
    color:var(--b3-text);
    font-family:"Manrope",sans-serif;
}

.b3-wrap{
    width:min(1320px,calc(100% - 96px));
    min-width:0;
    margin-inline:auto;
}

.b3-contact h1,
.b3-contact h2,
.b3-contact p{
    margin:0;
}

.b3-contact h1,
.b3-contact h2{
    font-family:"Cormorant Garamond",serif;
    font-weight:400;
}

.b3-contact p,
.b3-contact input,
.b3-contact select,
.b3-contact textarea{
    font-size:16px;
    line-height:1.75;
}

.b3-label{
    display:inline-block;
    color:var(--b3-gold);
    font-size:11px;
    font-weight:600;
    line-height:1;
    letter-spacing:4px;
    text-transform:uppercase;
}

/* Intro */

.b3-contact-hero{
    padding:135px 0 90px;
    border-bottom:1px solid var(--b3-border);
    background:
        radial-gradient(circle at 84% 20%,rgba(183,137,48,.12),transparent 35%),
        var(--b3-bg);
}

.b3-contact-heading{
    display:grid;
    grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);
    align-items:end;
    gap:120px;
    min-width:0;
    margin-top:38px;
}

.b3-contact-heading h1{
    min-width:0;
    font-size:clamp(90px,8vw,132px);
    line-height:.9;
    letter-spacing:-4px;
}

.b3-contact-heading h1 em{
    display:inline-block;
    padding-right:8px;
    background:var(--b3-gold-gradient);
    background-clip:text;
    -webkit-background-clip:text;
    color:transparent;
    font-weight:400;
}

.b3-contact-heading p{
    max-width:480px;
    padding-bottom:14px;
    color:var(--b3-muted);
}

/* Content */

.b3-contact-content{
    padding:125px 0 145px;
}

.b3-contact-grid{
    display:grid;
    grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr);
    align-items:start;
    gap:90px;
    min-width:0;
}

/* Form */

.b3-form{
    display:grid;
    gap:38px;
    min-width:0;
}

.b3-form-row{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:42px;
    min-width:0;
}

.b3-field{
    display:grid;
    gap:13px;
    min-width:0;
}

.b3-field > span{
    color:var(--b3-gold);
    font-size:10px;
    font-weight:600;
    letter-spacing:3px;
    text-transform:uppercase;
}

.b3-field input,
.b3-field select,
.b3-field textarea{
    width:100%;
    max-width:100%;
    min-width:0;
    border:0;
    border-bottom:1px solid var(--b3-border);
    border-radius:0;
    outline:none;
    background:transparent;
    color:var(--b3-text);
    font-family:"Manrope",sans-serif;
    transition:border-color .3s ease,padding-left .3s ease;
}

.b3-field input,
.b3-field select{
    height:58px;
    padding:0;
}

.b3-field textarea{
    min-height:180px;
    padding:12px 0;
    resize:vertical;
}

.b3-field input::placeholder,
.b3-field textarea::placeholder{
    color:#928b80;
}

.b3-field input:focus,
.b3-field select:focus,
.b3-field textarea:focus{
    padding-left:8px;
    border-color:var(--b3-gold);
}

.b3-field select{
    appearance:none;
    cursor:pointer;
    background:
        linear-gradient(45deg,transparent 50%,var(--b3-text) 50%)
        calc(100% - 15px) 26px / 5px 5px no-repeat,
        linear-gradient(135deg,var(--b3-text) 50%,transparent 50%)
        calc(100% - 10px) 26px / 5px 5px no-repeat;
}

/* Button */

.b3-button{
    position:relative;
    width:fit-content;
    min-width:210px;
    padding:20px 30px;
    overflow:hidden;
    border:0;
    background:var(--b3-gold-gradient);
    color:#20170a;
    cursor:pointer;
    font-family:"Manrope",sans-serif;
    font-size:10px;
    font-weight:600;
    letter-spacing:2.5px;
    text-transform:uppercase;
    transition:color .35s ease,transform .35s ease,box-shadow .35s ease;
}

.b3-button span{
    position:relative;
    z-index:2;
}

.b3-button::before{
    content:"";
    position:absolute;
    inset:0;
    background:var(--b3-text);
    transform:translateX(-102%);
    transition:transform .4s cubic-bezier(.7,0,.2,1);
}

.b3-button:hover{
    color:#fff;
    transform:translateY(-3px);
    box-shadow:0 18px 38px rgba(74,53,18,.15);
}

.b3-button:hover::before{
    transform:translateX(0);
}

/* Office card */

.b3-offices{
    min-width:0;
    border:1px solid var(--b3-border);
    background:
        linear-gradient(135deg,rgba(255,255,255,.65),transparent 55%),
        var(--b3-card);
    box-shadow:0 25px 70px rgba(47,36,19,.06);
}

.b3-office{
    position:relative;
    min-width:0;
    padding:38px 42px;
    overflow:hidden;
    border-bottom:1px solid var(--b3-border);
    transition:background .35s ease,padding-left .35s ease;
}

.b3-office:last-child{
    border-bottom:0;
}

.b3-office::before{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    width:3px;
    background:var(--b3-gold-gradient);
    transform:scaleY(0);
    transform-origin:bottom;
    transition:transform .35s ease;
}

.b3-office:hover{
    padding-left:50px;
    background:rgba(255,255,255,.62);
}

.b3-office:hover::before{
    transform:scaleY(1);
}

.b3-office h2{
    margin-bottom:12px;
    font-size:38px;
    line-height:1;
}

.b3-office p{
    color:var(--b3-muted);
}

.b3-office > a:not(.b3-office-button){
    display:inline-block;
    margin-top:3px;
    color:var(--b3-gold);
    font-size:15px;
    text-decoration:none;
}

.b3-office > a:not(.b3-office-button):hover{
    text-decoration:underline;
}

.b3-general{
    display:grid;
    gap:16px;
}

.b3-general .b3-label{
    font-size:10px;
}

.b3-general > a:not(.b3-office-button){
    margin:0;
    color:var(--b3-muted);
}

.b3-office-button{
    display:block;
    margin-top:8px;
    padding:17px 20px;
    border:1px solid var(--b3-border);
    color:var(--b3-gold);
    font-size:10px;
    font-weight:600;
    letter-spacing:2.2px;
    text-align:center;
    text-decoration:none;
    text-transform:uppercase;
    transition:background .3s ease,border-color .3s ease,color .3s ease;
}

.b3-office-button:hover{
    border-color:var(--b3-text);
    background:var(--b3-text);
    color:#fff;
}
.b3-reveal em{
    padding-bottom:15px;
}
/* Animation */

.b3-reveal{
    opacity:1;
    transform:translateY(28px);
    transition:opacity .75s ease,transform .75s cubic-bezier(.2,.65,.3,1);
}

.js .b3-reveal{opacity:0;transform:translateY(28px)}
.b3-reveal.b3-visible{
    opacity:1;
    transform:translateY(0);
}

/* Small laptop */

@media(max-width:1199px){
    .b3-wrap{
        width:calc(100% - 64px);
    }

    .b3-contact-hero{
        padding:110px 0 80px;
    }

    .b3-contact-heading{
        grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);
        gap:65px;
    }

    .b3-contact-heading h1{
        font-size:clamp(78px,9vw,108px);
    }

    .b3-contact-grid{
        grid-template-columns:minmax(0,1fr) minmax(360px,.75fr);
        gap:55px;
    }

    .b3-office{
        padding:34px;
    }
}

/* iPad */

@media(max-width:1024px){
    .b3-wrap{
        width:calc(100% - 48px);
    }

    .b3-contact-hero{
        padding:95px 0 72px;
    }

    .b3-contact-heading{
        grid-template-columns:1fr;
        gap:34px;
        margin-top:30px;
    }

    .b3-contact-heading h1{
        font-size:clamp(76px,12vw,106px);
        line-height:.9;
    }

    .b3-contact-heading p{
        max-width:650px;
        padding:0;
    }

    .b3-contact-content{
        padding:90px 0 110px;
    }

    .b3-contact-grid{
        grid-template-columns:1fr;
        gap:65px;
    }

    .b3-form{
        width:100%;
        gap:34px;
    }

    .b3-form-row{
        gap:30px;
    }

    .b3-offices{
        width:100%;
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .b3-office{
        min-height:190px;
        padding:34px;
        border-right:1px solid var(--b3-border);
    }

    .b3-office:nth-child(2n){
        border-right:0;
    }

    .b3-office:nth-child(3){
        border-bottom:0;
    }

    .b3-general{
        border-bottom:0;
    }

    .b3-office:hover{
        padding-left:40px;
    }
}

/* Phone */

@media(max-width:767px){
    .b3-wrap{
        width:calc(100% - 32px);
    }

    .b3-contact p,
    .b3-contact input,
    .b3-contact select,
    .b3-contact textarea{
        font-size:14px;
        line-height:1.7;
    }

    .b3-label{
        font-size:9px;
        letter-spacing:2.8px;
    }

    .b3-contact-hero{
        padding:72px 0 55px;
    }

    .b3-contact-heading{
        gap:25px;
        margin-top:22px;
    }

    .b3-contact-heading h1{
        font-size:clamp(62px,18vw,84px);
        line-height:.92;
        letter-spacing:-2px;
        white-space:normal;
    }

    .b3-contact-heading h1 em{
        padding-right:4px;
    }

    .b3-contact-content{
        padding:65px 0 78px;
    }

    .b3-contact-grid{
        gap:48px;
    }

    .b3-form{
        gap:28px;
    }

    .b3-form-row{
        grid-template-columns:1fr;
        gap:28px;
    }

    .b3-field{
        gap:9px;
    }

    .b3-field input,
    .b3-field select{
        height:52px;
    }

    .b3-field textarea{
        min-height:145px;
    }

    .b3-button{
        width:100%;
        min-width:0;
        padding:18px 22px;
    }

    .b3-offices{
        display:block;
    }

    .b3-office{
        min-height:auto;
        padding:28px 24px;
        border-right:0;
        border-bottom:1px solid var(--b3-border);
    }

    .b3-office:nth-child(3){
        border-bottom:1px solid var(--b3-border);
    }

    .b3-office:last-child{
        border-bottom:0;
    }

    .b3-office:hover{
        padding-left:30px;
    }

    .b3-office h2{
        margin-bottom:10px;
        font-size:34px;
    }

    .b3-office > a:not(.b3-office-button){
        font-size:14px;
    }

    .b3-office-button{
        margin-top:4px;
        padding:16px;
    }
}

/* Small phone */

@media(max-width:480px){
    .b3-wrap{
        width:calc(100% - 24px);
    }

    .b3-contact-hero{
        padding:60px 0 46px;
    }

    .b3-contact-heading h1{
        font-size:clamp(56px,17vw,72px);
    }

    .b3-contact-content{
        padding:55px 0 65px;
    }

    .b3-field > span{
        font-size:9px;
        letter-spacing:2.3px;
    }

    .b3-office{
        padding:25px 20px;
    }

    .b3-office:hover{
        padding-left:25px;
    }

    .b3-office h2{
        font-size:31px;
    }
}

@media(prefers-reduced-motion:reduce){
    .b3-reveal{
        opacity:1;
        transform:none;
        transition:none;
    }

    .b3-office,
    .b3-button,
    .b3-field input,
    .b3-field select,
    .b3-field textarea{
        transition:none;
    }
}

/* v1.0.6: compact sections and alternating backgrounds */
.b3-contact .b3-contact-hero,
.b3-contact .b3-contact-content{padding-top:30px!important;padding-bottom:30px!important;}
.b3-contact .b3-contact-hero{background:var(--b3-bg,#f6f1e7);}
.b3-contact .b3-contact-content{background:var(--b3-cream-2,#eee6d7);}

/* v1.0.7: comfortable section spacing */
.b3-contact .b3-contact-hero,
.b3-contact .b3-contact-content{padding-top:50px!important;padding-bottom:50px!important;}
