/* =========================================================
   E-REON RFI — Regional representatives
   Page-specific presentation only
   ========================================================= */

.representatives-page {
    --representatives-blue: #086bc7;
    --representatives-blue-dark: #075ca9;
    --representatives-navy: #09263c;
    --representatives-text: #10243a;
    --representatives-muted: #5c7088;
    --representatives-line: #d6e2ee;
    --representatives-line-strong: #bfd2e4;
    --representatives-soft: #f6fafe;
    --representatives-panel: #ffffff;
}

/* Hero */

.representatives-hero {
    padding: 72px 0 66px;
    overflow: hidden;
    border-bottom: 1px solid var(--representatives-line);
    background: #fbfdff;
}

.representatives-hero-grid {
    display: grid;
    grid-template-columns:
        minmax(330px, 0.84fr) minmax(500px, 1.16fr);
    gap: clamp(44px, 6vw, 84px);
    align-items: center;
}

.representatives-hero-content {
    max-width: 590px;
}

.representatives-hero-content .eyebrow {
    margin-bottom: 18px;
}

.representatives-hero-content h1 {
    margin: 0;
    color: var(--representatives-navy);
    font-size: clamp(3.15rem, 5.25vw, 4.9rem);
    line-height: 1.06;
    letter-spacing: -0.043em;
}

.representatives-hero-lead {
    max-width: 55ch;
    margin: 27px 0 0;
    color: var(--representatives-muted);
    font-size: clamp(1.02rem, 1.35vw, 1.16rem);
    line-height: 1.7;
}

.representatives-hero-note {
    position: relative;
    max-width: 53ch;
    margin: 26px 0 0;
    padding-left: 20px;
    color: #536d87;
    font-size: 0.88rem;
    font-weight: 640;
    line-height: 1.55;
}

.representatives-hero-note::before {
    position: absolute;
    top: 0.48em;
    left: 0;
    width: 9px;
    height: 9px;
    border: 2px solid var(--representatives-blue);
    border-radius: 50%;
    content: "";
}

/* Network illustration */

.representatives-network {
    min-width: 0;
}

.representatives-network-graphic {
    display: block;
    width: 100%;
    height: auto;
    color: #e7eff7;
}

.representatives-network-grid {
    stroke: var(--representatives-line);
}

.representatives-network-lines {
    fill: none;
    stroke: var(--representatives-blue);
    stroke-width: 2;
}

.representatives-network-nodes {
    fill: #ffffff;
    stroke: var(--representatives-blue);
    stroke-width: 2;
}

.representatives-network-nodes circle:nth-child(4),
.representatives-network-nodes circle:nth-child(5),
.representatives-network-nodes circle:nth-child(6),
.representatives-network-nodes circle:last-child {
    fill: var(--representatives-blue);
    stroke: none;
}

.representatives-network-nodes path {
    fill: none;
    stroke: var(--representatives-blue);
    stroke-width: 2;
}

.representatives-network-labels {
    fill: var(--representatives-blue);
    font-family: Inter, Arial, sans-serif;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.045em;
}

/* Directory */

.representatives-directory {
    padding: 76px 0 84px;
    background: #ffffff;
}

.representatives-directory>.container>.section-heading {
    display: grid;
    grid-template-columns: minmax(290px, 0.9fr) minmax(420px, 1.1fr);
    gap: 42px;
    margin-bottom: 46px;
    align-items: end;
}

.representatives-directory .section-heading .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -22px;
}

.representatives-directory .section-heading h2 {
    margin: 0;
    color: var(--representatives-navy);
}

.representatives-directory .section-heading>p:last-child {
    max-width: 62ch;
    margin: 0;
    color: var(--representatives-muted);
}

.representatives-regions {
    border-top: 1px solid var(--representatives-line-strong);
}

.representatives-region {
    display: grid;
    grid-template-columns: minmax(210px, 0.62fr) minmax(0, 1.38fr);
    gap: clamp(28px, 4.5vw, 64px);
    padding: 42px 0 48px;
    border-bottom: 1px solid var(--representatives-line);
}

.representatives-region-heading {
    align-self: start;
}

.representatives-region-number {
    margin: 0 0 15px;
    color: var(--representatives-blue);
    font-family: Manrope, Arial, sans-serif;
    font-size: 2rem;
    font-weight: 430;
    letter-spacing: -0.045em;
    line-height: 1;
}

.representatives-region-heading h2 {
    margin: 0 0 13px;
    color: var(--representatives-navy);
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
}

.representatives-region-heading>p:last-child {
    max-width: 29ch;
    margin: 0;
    color: var(--representatives-muted);
    font-size: 0.87rem;
    line-height: 1.6;
}

.representatives-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,
            minmax(min(100%, 270px), 1fr));
    gap: 18px;
}

/* Individual local contact */

.representative-contact {
    display: flex;
    min-width: 0;
    min-height: 310px;
    flex-direction: column;
    padding: 25px;
    border: 1px solid var(--representatives-line);
    border-radius: 11px;
    background: var(--representatives-panel);
    box-shadow:
        0 1px 2px rgba(9, 38, 60, 0.025),
        0 10px 28px rgba(9, 38, 60, 0.04);
}

.representative-contact-heading {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--representatives-line);
}

.representative-territory {
    margin: 0 0 9px;
    color: var(--representatives-blue);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.representative-contact-heading h3 {
    margin: 0;
    color: var(--representatives-navy);
    font-size: 1.08rem;
    line-height: 1.38;
}

.representative-person {
    display: grid;
    gap: 2px;
    margin: 15px 0 0;
    color: var(--representatives-text);
    font-size: 0.9rem;
}

.representative-person span {
    color: var(--representatives-muted);
    font-size: 0.82rem;
}

.representative-address {
    margin: 18px 0 0;
    color: var(--representatives-muted);
    font-size: 0.86rem;
    font-style: normal;
    line-height: 1.65;
}

.representative-contact-details {
    display: grid;
    gap: 12px;
    margin: auto 0 0;
    padding-top: 22px;
}

.representative-contact-details>div {
    min-width: 0;
}

.representative-contact-details dt {
    margin-bottom: 3px;
    color: #60778e;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.representative-contact-details dd {
    min-width: 0;
    margin: 0;
    color: var(--representatives-text);
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.representative-contact-details a {
    color: var(--representatives-blue-dark);
    font-weight: 680;
    text-decoration: none;
}

.representative-contact-details a:hover {
    color: var(--representatives-blue);
    text-decoration: underline;
}

/* Direct E-REON route */

.representatives-direct {
    padding: 64px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--representatives-navy);
    color: #ffffff;
}

.representatives-direct-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 44px;
    align-items: center;
}

.representatives-direct .eyebrow {
    margin-bottom: 12px;
    color: #68d1f5;
}

.representatives-direct h2 {
    margin: 0 0 11px;
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.representatives-direct p:last-child {
    max-width: 65ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.representatives-direct-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.representatives-direct .button-secondary {
    border-color: rgba(255, 255, 255, 0.38);
    background: transparent;
    color: #ffffff;
}

.representatives-direct .button-secondary:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Responsive */

@media (max-width: 1000px) {
    .representatives-hero-grid {
        grid-template-columns:
            minmax(300px, 0.86fr) minmax(420px, 1.14fr);
        gap: 36px;
    }

    .representatives-region {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .representatives-direct-grid {
        grid-template-columns: 1fr;
    }

    .representatives-direct-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 820px) {
    .representatives-hero {
        padding: 58px 0 50px;
    }

    .representatives-hero-grid {
        grid-template-columns: 1fr;
    }

    .representatives-hero-content {
        max-width: 660px;
    }

    .representatives-network {
        max-width: 760px;
    }

    .representatives-directory {
        padding: 62px 0 68px;
    }

    .representatives-directory>.container>.section-heading {
        display: block;
    }

    .representatives-directory .section-heading .eyebrow {
        margin-bottom: 12px;
    }

    .representatives-directory .section-heading h2 {
        margin-bottom: 13px;
    }

    .representatives-region {
        grid-template-columns: 1fr;
    }

    .representatives-region-heading>p:last-child {
        max-width: 55ch;
    }
}

@media (max-width: 640px) {
    .representatives-hero {
        padding: 46px 0 40px;
    }

    .representatives-hero-content h1 {
        font-size: clamp(2.65rem, 13vw, 3.6rem);
    }

    .representatives-network {
        margin-inline: -8px;
    }

    .representatives-contact-grid {
        grid-template-columns: 1fr;
    }

    .representative-contact {
        min-height: auto;
        padding: 22px 19px;
    }

    .representatives-direct {
        padding: 52px 0;
    }

    .representatives-direct-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .representatives-direct-actions .button {
        width: 100%;
    }
}