/* ==========================================================================
   Robo Co-op — Contact (/contact/)
   --------------------------------------------------------------------------
   The Contact page is built on the home page's design system: it loads
   assets/css/home.css and assets/js/home.js unchanged (body.rc-hp) and
   uses their tokens and components. This file only adds the layouts no
   home page section has, scoped to body.rc-contact under a ct- prefix, so
   no other page is touched. Mobile first, like home.css.

   Contents
     01  Hero and the message card
     02  Find the right team
     03  Other ways to connect
   ========================================================================== */


/* ==========================================================================
   01  HERO AND THE MESSAGE CARD
   The home page's hero shell, made compact: content height, not a screen
   height, so the routes below start close to the fold.
   ========================================================================== */

.rc-contact .ct-hero {
    min-height: 0;
    padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 88px);
}

.rc-contact .ct-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 4vw, 40px);
    align-items: center;
}

.rc-contact .ct-hero__title {
    font-size: clamp(2.1rem, 1.2rem + 3.5vw, 3.9rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.04em;
    color: #fff;
    text-wrap: balance;
}

.rc-contact .ct-hero__title-soft {
    display: block;
    margin-top: .12em;
    font-weight: 300;
    color: var(--hp-accent-pale);
}

.rc-contact .ct-hero__email {
    margin-top: clamp(20px, 2.6vw, 28px);
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .76);
}

.rc-contact .ct-hero__email a {
    font-weight: 700;
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .25em;
    text-decoration-color: rgba(103, 232, 249, .6);
    transition: text-decoration-color .2s ease, color .2s ease;
}

.rc-contact .ct-hero__email a:hover {
    color: var(--hp-accent-pale);
    text-decoration-color: currentColor;
}

/* The way to write to us: a white card on the navy band, with the home
   page's gold-to-cyan cap. */
.rc-contact .ct-card {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 3.2vw, 40px);
    border-radius: var(--hp-r-lg);
    background: var(--hp-white);
    color: var(--hp-ink);
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .08);
}

.rc-contact .ct-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hp-gold), var(--hp-accent));
}

.rc-contact .ct-card .hp-eyebrow {
    margin-bottom: 12px;
}

.rc-contact .ct-card__title {
    font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--hp-ink);
}

.rc-contact .ct-card__text {
    margin-top: 12px;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--hp-body);
}

.rc-contact .ct-card__asks {
    display: grid;
    gap: 8px;
    margin: 20px 0 0;
    padding: 18px 0 0;
    list-style: none;
    border-top: 1px solid var(--hp-line);
}

.rc-contact .ct-card__asks li {
    position: relative;
    padding-left: 26px;
    font-size: .95rem;
    line-height: 1.5;
    color: var(--hp-ink);
}

/* a small check, drawn rather than typed */
.rc-contact .ct-card__asks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(6, 182, 212, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.6l4.5-5' fill='none' stroke='%230E7490' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.rc-contact .ct-card__btn {
    width: 100%;
    margin-top: 24px;
}

/* The card is light, though it sits in the navy hero: give its focus ring
   the dark colour the light bands use, not the hero's bright cyan, which
   would be too faint on white. */
.rc-contact .ct-card a:focus-visible {
    outline-color: var(--hp-accent-ink);
}

.rc-contact .ct-card__btn .ct-out {
    flex-shrink: 0;
    transition: transform .25s var(--hp-ease);
}

.rc-contact .ct-card__btn:hover .ct-out {
    transform: translate(2px, -2px);
}

.rc-contact .ct-card__note {
    margin-top: 12px;
    font-size: .86rem;
    line-height: 1.5;
    text-align: center;
    color: var(--hp-muted);
}

@media (min-width: 960px) {
    .rc-contact .ct-hero__grid {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
        column-gap: clamp(48px, 6vw, 96px);
    }
}


/* ==========================================================================
   02  FIND THE RIGHT TEAM
   ========================================================================== */

.rc-contact .ct-routes {
    background: var(--hp-paper-2);
}

.rc-contact .ct-route-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: clamp(28px, 3.5vw, 48px) 0 0;
    padding: 0;
    list-style: none;
}

.rc-contact .ct-route {
    --c: var(--hp-accent);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 0 28px;
    border-top: 1px solid var(--hp-line-2);
}

.rc-contact .ct-route--lab     { --c: #007DD1; }
.rc-contact .ct-route--partner { --c: var(--hp-gold); }
.rc-contact .ct-route--uni     { --c: #6EC207; }
.rc-contact .ct-route--join    { --c: var(--hp-accent); }

/* the colour cap sits on the hairline */
.rc-contact .ct-route::before {
    content: "";
    position: absolute;
    left: 0;
    top: -2px;
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: var(--c);
}

/* No route numbers: they would run straight into the section numbers
   (route 04 above section 04). The colour caps tell the routes apart. */
.rc-contact .ct-route__title {
    font-size: clamp(1.2rem, 1.1rem + .4vw, 1.35rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
    color: var(--hp-ink);
}

.rc-contact .ct-route__text {
    margin-top: 8px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--hp-body);
}

.rc-contact .ct-route__hint {
    margin-top: 10px;
    font-size: .86rem;
    line-height: 1.5;
    color: var(--hp-muted);
}

.rc-contact .ct-route__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin-top: auto;
    padding-top: 16px;
}

.rc-contact .ct-route__links .hp-link {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    min-height: 32px;
}

.rc-contact .ct-route__links .hp-link__arrow {
    margin-left: 0;
}

.rc-contact .ct-out {
    flex-shrink: 0;
    transition: transform .25s var(--hp-ease);
}

.rc-contact .hp-link:hover .ct-out {
    transform: translate(2px, -2px);
}

/* the #join target (the home page's "Volunteer with us"): home.css already
   pads anchors by the sticky header's height, so only a little air here */
.rc-contact #join {
    scroll-margin-top: 16px;
}

@media (min-width: 640px) {
    .rc-contact .ct-route-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: clamp(28px, 4vw, 48px);
    }
}

@media (min-width: 1100px) {
    .rc-contact .ct-route-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: clamp(24px, 2.6vw, 36px);
    }
}


/* ==========================================================================
   03  OTHER WAYS TO CONNECT
   The address is the focal point; the channels are a short list, not
   another set of cards.
   ========================================================================== */

.rc-contact .ct-connect {
    background: var(--hp-white);
}

.rc-contact .ct-connect__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 3.5vw, 40px);
}

.rc-contact .ct-connect__label {
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--hp-muted);
}

.rc-contact .ct-connect__email {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 8px;
}

.rc-contact .ct-connect__email a {
    font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
    color: var(--hp-ink);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .18em;
    text-decoration-color: rgba(6, 182, 212, .55);
    transition: text-decoration-color .2s ease, color .2s ease;
}

.rc-contact .ct-connect__email a:hover {
    color: var(--hp-accent-ink);
    text-decoration-color: currentColor;
}

.rc-contact .ct-copy {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--hp-line-2);
    border-radius: 999px;
    background: var(--hp-white);
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    color: var(--hp-ink);
    cursor: pointer;
    transition: border-color .2s ease;
}

.rc-contact .ct-copy:hover {
    border-color: var(--hp-ink);
}

.rc-contact .ct-copy:focus-visible {
    outline: 3px solid var(--hp-accent-ink);
    outline-offset: 3px;
}

.rc-contact .ct-copy__status {
    font-size: .9rem;
    color: var(--hp-accent-ink);
}

.rc-contact .ct-channels {
    margin: clamp(24px, 3vw, 32px) 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--hp-line-2);
}

.rc-contact .ct-channel {
    border-bottom: 1px solid var(--hp-line);
}

.rc-contact .ct-channel a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "name icon"
        "text icon";
    column-gap: 16px;
    align-items: center;
    padding: 16px 0;
    color: var(--hp-ink);
    text-decoration: none;
}

.rc-contact .ct-channel__name {
    grid-area: name;
    font-size: 1.05rem;
    font-weight: 700;
}

.rc-contact .ct-channel__text {
    grid-area: text;
    margin-top: 2px;
    font-size: .92rem;
    color: var(--hp-muted);
}

.rc-contact .ct-channel svg {
    grid-area: icon;
    color: var(--hp-accent-ink);
    transition: transform .25s var(--hp-ease);
}

.rc-contact .ct-channel a:hover .ct-channel__name {
    color: var(--hp-accent-ink);
}

.rc-contact .ct-channel a:hover svg {
    transform: translateX(3px);
}

.rc-contact .ct-channel a:hover .ct-out {
    transform: translate(2px, -2px);
}

@media (min-width: 900px) {
    .rc-contact .ct-connect__grid {
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
        column-gap: clamp(56px, 7vw, 104px);
        align-items: start;
    }
}
