/*
 * HS Contact Page template (template-contact.php). Palette matches the About page:
 * #222 ink, #f2f2f2 soft grey, logo gold. Logical properties, so Arabic mirrors without extra rules.
 */

.hs-contact {
    --hs-c-ink: #222;
    --hs-c-soft: #f2f2f2;
    --hs-c-gold: #e9b200;
    --hs-c-muted: #5f5a55;
    --hs-c-line: #e4e0dc;
    color: var(--hs-c-ink);
    line-height: 1.7;
}

body.page-template-template-contact #content.site-content {
    padding-top: 0;
}

.hs-contact *,
.hs-contact *::before,
.hs-contact *::after {
    box-sizing: border-box;
}

.hs-contact-wrap {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

.hs-contact-hero {
    background: var(--hs-c-soft);
    padding-block: clamp(2.5rem, 6vw, 5rem);
}

.hs-contact-eyebrow {
    margin: 0 0 .75rem;
    color: #8a6a00;
    font-weight: 700;
    letter-spacing: .02em;
}

.hs-contact h1 {
    max-width: 22ch;
    margin: 0;
    color: inherit;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.15;
}

.hs-contact-lead {
    max-width: 56ch;
    margin: 1.1rem 0 0;
    color: var(--hs-c-muted);
    font-size: 1.05rem;
}

.hs-contact-body {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 6vw, 5rem);
    padding-block: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}

.hs-contact h2 {
    margin: 0 0 .6rem;
    color: inherit;
    font-size: 1.15rem;
    line-height: 1.3;
}

.hs-contact-info section {
    padding-block: 1.4rem;
    border-top: 1px solid var(--hs-c-line);
}

.hs-contact-info section:first-child {
    padding-top: 0;
    border-top: 0;
}

.hs-contact address {
    margin: 0 0 .7rem;
    font-style: normal;
}

.hs-contact-link,
.hs-contact-channels a {
    color: var(--hs-c-ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--hs-c-gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.hs-contact-link:hover,
.hs-contact-channels a:hover {
    text-decoration-color: var(--hs-c-ink);
}

.hs-contact-hours {
    margin: 0;
    max-width: 24rem;
}

.hs-contact-hours > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: .45rem;
    border-bottom: 1px solid var(--hs-c-line);
}

.hs-contact-hours dt {
    font-weight: 600;
}

.hs-contact-hours dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.hs-contact-note {
    margin: .6rem 0 0;
    color: var(--hs-c-muted);
    font-size: .875rem;
}

.hs-contact .hs-contact-channels,
.hs-contact .hs-contact-social {
    margin: 0; /* beats the theme's list margin-right, which indented these lists in Arabic */
    padding: 0;
    list-style: none;
}

.hs-contact-channels li {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    padding-block: .3rem;
}

.hs-contact-channels li span {
    min-width: 6.5rem;
    color: var(--hs-c-muted);
}

.hs-contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.hs-contact-social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--hs-c-line);
    border-radius: 50%;
    color: var(--hs-c-ink);
    text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s;
}

.hs-contact-social a:hover,
.hs-contact-social a:focus-visible {
    border-color: var(--hs-c-ink);
    background: var(--hs-c-ink);
    color: #fff;
}

.hs-contact-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.hs-contact-form-panel {
    padding: clamp(1.4rem, 3vw, 2.4rem);
    border: 1px solid var(--hs-c-line);
    border-radius: 1rem;
    background: #fff;
}

.hs-contact-form-panel h2 {
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
}

.hs-contact-form-panel .hs-contact-form {
    max-width: none;
}

.hs-contact-extra {
    padding-bottom: 3rem;
}

@media (max-width: 860px) {
    .hs-contact-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .hs-contact-form-panel {
        order: -1;
    }
}

/* Cloudflare Turnstile is a fixed 300px wide; shrink it to fit the narrower panel on phones */
@media (max-width: 420px) {
    .hs-contact-form-panel .hs-turnstile {
        width: 300px;
        transform: scale(.86);
        transform-origin: right top;
        margin-bottom: 0;
    }

    [dir="ltr"] .hs-contact-form-panel .hs-turnstile {
        transform-origin: left top;
    }
}
