:root {
    --hope-blue: #046EB3;
    --hope-blue-dark: #034F82;
    --hope-gold: #EFB61E;
    --hope-white: #FFFFFF;
    --hope-dark: #102A3D;
    --hope-text: #2F4354;
    --hope-muted: #697987;
    --hope-light: #F5F8FA;
    --hope-soft-blue: #EAF4FA;
    --hope-border: #D9E4EC;
    --hope-border-strong: #B9CCD9;
    --hope-shadow: none;
    --hope-radius: 10px;
    --hope-radius-sm: 6px;
    --hope-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--hope-text);
    background: var(--hope-white);
    font-family: var(--hope-font);
    font-size: 16px;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.rgpro-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}
.rgpro-skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.rgpro-skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    z-index: 9999;
    background: var(--hope-gold);
    color: var(--hope-dark);
    padding: 10px 14px;
    border-radius: 4px;
}
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rgpro-topbar {
    background: var(--hope-blue);
    color: var(--hope-white);
    font-size: 13px;
}
.rgpro-topbar__inner {
    min-height: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
.rgpro-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--hope-white);
    border-bottom: 1px solid var(--hope-border);
}
.rgpro-header__inner {
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
}
.rgpro-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.rgpro-brand__logo,
.custom-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 8px;
}
.rgpro-brand__text strong {
    display: block;
    color: var(--hope-dark);
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -.01em;
    line-height: 1.15;
}
.rgpro-brand__text small {
    display: block;
    color: var(--hope-muted);
    font-size: 12px;
    line-height: 1.3;
}
.rgpro-primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}
.rgpro-primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 10px;
    color: var(--hope-dark);
    text-decoration: none;
    font-weight: 580;
    font-size: 13px;
    border-radius: 4px;
}
.rgpro-primary-nav a:hover,
.rgpro-primary-nav .current-menu-item > a {
    background: var(--hope-soft-blue);
    color: var(--hope-blue);
}
.rgpro-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--hope-border);
    border-radius: 6px;
    background: var(--hope-white);
    padding: 10px;
}
.rgpro-nav-toggle span:not(.screen-reader-text) {
    display: block;
    height: 2px;
    background: var(--hope-blue);
    margin: 6px 0;
}

.rgpro-hero {
    background: var(--hope-light);
    border-bottom: 1px solid var(--hope-border);
    padding: 80px 0 72px;
}
.rgpro-hero__grid,
.rgpro-page-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}
.rgpro-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--hope-blue);
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 11px;
}
.rgpro-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--hope-gold);
}
.rgpro-eyebrow--gold { color: var(--hope-gold); }
.rgpro-hero h1,
.rgpro-page-hero h1 {
    max-width: 760px;
    margin: 18px 0 20px;
    color: var(--hope-dark);
    font-size: clamp(34px, 4.4vw, 56px);
    font-weight: 620;
    line-height: 1.04;
    letter-spacing: -.032em;
}
.rgpro-hero p,
.rgpro-page-hero p {
    max-width: 660px;
    margin: 0 0 30px;
    color: var(--hope-text);
    font-size: 18px;
    line-height: 1.75;
}
.rgpro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.rgpro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 650;
    border: 1px solid transparent;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.rgpro-btn--primary {
    background: var(--hope-blue);
    color: var(--hope-white);
    border-color: var(--hope-blue);
}
.rgpro-btn--primary:hover { background: var(--hope-blue-dark); }
.rgpro-btn--secondary {
    background: var(--hope-white);
    color: var(--hope-blue);
    border-color: var(--hope-border-strong);
}
.rgpro-btn--secondary:hover { border-color: var(--hope-blue); }
.rgpro-btn--gold {
    background: var(--hope-gold);
    color: var(--hope-dark);
    border-color: var(--hope-gold);
}
.rgpro-btn--light {
    background: transparent;
    color: var(--hope-white);
    border-color: rgba(255,255,255,.55);
}
.rgpro-link {
    display: inline-flex;
    align-items: center;
    color: var(--hope-blue);
    font-weight: 650;
    text-decoration: none;
}
.rgpro-link::after {
    content: "→";
    margin-left: 8px;
}
.rgpro-hero__visual {
    display: flex;
    justify-content: flex-end;
}
.rgpro-hero-logo-card,
.rgpro-hero-panel {
    width: min(410px, 100%);
    background: var(--hope-white);
    border: 1px solid var(--hope-border);
    border-left: 6px solid var(--hope-blue);
    border-radius: 8px;
    padding: 28px;
}
.rgpro-hero-logo-card img,
.rgpro-hero-panel img {
    width: 164px;
    margin: 0 0 22px;
    border-radius: 6px;
}
.rgpro-hero-logo-card strong,
.rgpro-hero-panel strong {
    display: block;
    color: var(--hope-dark);
    font-size: 17px;
    font-weight: 620;
    line-height: 1.3;
}
.rgpro-hero-panel__meta {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--hope-border);
}
.rgpro-hero-panel__meta li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hope-border);
    color: var(--hope-muted);
}
.rgpro-hero-panel__meta b {
    color: var(--hope-dark);
    font-weight: 620;
}

.rgpro-section { padding: 72px 0; }
.rgpro-section--light { background: var(--hope-light); }
.rgpro-section--impact {
    background: var(--hope-blue);
    color: var(--hope-white);
    border-top: 1px solid var(--hope-blue);
}
.rgpro-section--blue,
.rgpro-section--cta {
    background: var(--hope-blue);
    color: var(--hope-white);
}
.rgpro-section-heading {
    max-width: 740px;
    margin-bottom: 32px;
}
.rgpro-section-heading--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.rgpro-section-heading--center .rgpro-eyebrow::before { display: none; }
.rgpro-section-heading--row {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
}
.rgpro-section-heading h2,
.rgpro-split h2,
.rgpro-featured h2,
.rgpro-cta-box h2 {
    margin: 12px 0;
    color: var(--hope-dark);
    font-size: clamp(27px, 2.8vw, 40px);
    font-weight: 620;
    line-height: 1.14;
    letter-spacing: -.025em;
}
.rgpro-section--impact h2,
.rgpro-section--blue h2,
.rgpro-section--cta h2 { color: var(--hope-white); }
.rgpro-section-heading p { color: var(--hope-muted); margin: 0; }

.rgpro-impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.28);
    border-bottom: 1px solid rgba(255,255,255,.28);
}
.rgpro-impact-grid div {
    background: transparent;
    border-right: 1px solid rgba(255,255,255,.25);
    border-radius: 0;
    padding: 26px 24px;
}
.rgpro-impact-grid div:last-child { border-right: 0; }
.rgpro-impact-grid strong {
    display: block;
    color: var(--hope-gold);
    font-size: 38px;
    font-weight: 650;
    line-height: 1;
}
.rgpro-impact-grid span { display: block; margin-top: 10px; color: rgba(255,255,255,.88); }

.rgpro-split {
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    gap: 54px;
    align-items: start;
}
.rgpro-split p {
    margin-top: 0;
    font-size: 18px;
}
.rgpro-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.rgpro-program-card,
.rgpro-news-card,
.rgpro-contact-card,
.rgpro-post-card,
.rgpro-presence-list {
    background: var(--hope-white);
    border: 1px solid var(--hope-border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: none;
}
.rgpro-program-card {
    border-top: 4px solid var(--hope-blue);
}
.rgpro-program-card span {
    display: inline-flex;
    color: var(--hope-blue-dark);
    padding: 0 0 8px;
    border-bottom: 2px solid var(--hope-gold);
    background: transparent;
    border-radius: 0;
    font-size: 12px;
    font-weight: 650;
}
.rgpro-program-card h3,
.rgpro-news-card h3 {
    margin: 18px 0 10px;
    color: var(--hope-dark);
    font-size: 20px;
    font-weight: 620;
    line-height: 1.22;
}
.rgpro-program-card p,
.rgpro-news-card p { color: var(--hope-muted); }

.rgpro-featured,
.rgpro-cta-box {
    display: flex;
    justify-content: space-between;
    gap: 36px;
    align-items: center;
}
.rgpro-featured p,
.rgpro-cta-box p {
    max-width: 720px;
    color: rgba(255,255,255,.88);
    font-size: 18px;
}
.rgpro-featured strong {
    display: inline-block;
    font-size: 21px;
    font-weight: 650;
    color: var(--hope-gold);
}
.rgpro-pill-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.rgpro-pill-grid span {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    background: var(--hope-light);
    border: 1px solid var(--hope-border);
    border-left: 4px solid var(--hope-gold);
    border-radius: 6px;
    color: var(--hope-dark);
    font-weight: 600;
}
.rgpro-presence-list { padding: 26px 28px; }
.rgpro-presence-list p { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--hope-border); }
.rgpro-presence-list p:last-child { border-bottom: 0; }
.rgpro-presence-list strong { color: var(--hope-dark); font-weight: 620; }
.rgpro-card-grid--news { grid-template-columns: repeat(3, 1fr); }
.rgpro-news-card { padding: 0; overflow: hidden; }
.rgpro-news-card__image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.rgpro-news-card__body { padding: 22px; }
.rgpro-news-card__body span {
    color: var(--hope-muted);
    font-size: 13px;
    font-weight: 600;
}
.rgpro-news-card h3 a { text-decoration: none; color: var(--hope-dark); }
.rgpro-news-card--empty { padding: 24px; }

.rgpro-page-hero {
    padding: 68px 0;
    background: var(--hope-light);
    border-bottom: 1px solid var(--hope-border);
}
.rgpro-page-hero--program,
.rgpro-page-hero--initiative {
    background: var(--hope-blue);
    color: var(--hope-white);
}
.rgpro-page-hero--program h1,
.rgpro-page-hero--initiative h1,
.rgpro-page-hero--program p,
.rgpro-page-hero--initiative p { color: var(--hope-white); }
.rgpro-hero-badge {
    justify-self: end;
    width: min(260px, 100%);
    padding: 26px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.35);
    border-left: 5px solid var(--hope-gold);
}
.rgpro-hero-badge strong {
    display: block;
    color: var(--hope-gold);
    font-size: 52px;
    font-weight: 650;
    line-height: 1;
}
.rgpro-page-content {
    max-width: 880px;
    font-size: 18px;
}
.rgpro-page-content h2,
.rgpro-page-content h3 { color: var(--hope-dark); font-weight: 620; line-height: 1.18; }
.rgpro-featured-image {
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 8px;
}
.rgpro-contact-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 36px;
    align-items: start;
}
.rgpro-contact-card {
    position: sticky;
    top: 120px;
}

.rgpro-site-footer {
    background: var(--hope-dark);
    color: rgba(255,255,255,.78);
}
.rgpro-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1fr;
    gap: 42px;
    padding: 56px 0;
}
.rgpro-footer__brand img {
    width: 84px;
    border-radius: 8px;
    margin-bottom: 16px;
}
.rgpro-site-footer h2,
.rgpro-site-footer h3 { color: var(--hope-white); margin-top: 0; font-weight: 620; }
.rgpro-site-footer a { color: var(--hope-white); text-decoration: none; }
.rgpro-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rgpro-footer-menu li { margin-bottom: 8px; }
.rgpro-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 18px 0;
    font-size: 13px;
}
.rgpro-footer__bottom .rgpro-container {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}
.rgpro-pagination { margin-top: 30px; }

@media (max-width: 1040px) {
    .rgpro-nav-toggle { display: inline-block; }
    .rgpro-primary-nav {
        display: none;
        position: absolute;
        left: 20px;
        right: 20px;
        top: 116px;
        background: var(--hope-white);
        border: 1px solid var(--hope-border);
        border-radius: 8px;
        box-shadow: none;
        padding: 10px;
    }
    .rgpro-primary-nav.is-open { display: block; }
    .rgpro-primary-nav ul { display: block; }
    .rgpro-primary-nav a { width: 100%; justify-content: flex-start; }
    .rgpro-hero__grid,
    .rgpro-page-hero__grid,
    .rgpro-split,
    .rgpro-contact-grid { grid-template-columns: 1fr; }
    .rgpro-hero__visual { justify-content: flex-start; }
    .rgpro-impact-grid,
    .rgpro-card-grid,
    .rgpro-card-grid--news,
    .rgpro-pill-grid { grid-template-columns: repeat(2, 1fr); }
    .rgpro-featured,
    .rgpro-cta-box,
    .rgpro-section-heading--row { align-items: flex-start; flex-direction: column; }
    .rgpro-contact-card { position: static; }
}

@media (max-width: 680px) {
    .rgpro-container { width: min(100% - 28px, 1120px); }
    .rgpro-topbar__inner { justify-content: center; text-align: center; flex-direction: column; padding: 8px 0; }
    .rgpro-header__inner { min-height: 78px; }
    .rgpro-brand__logo,
    .custom-logo { width: 54px; height: 54px; border-radius: 6px; }
    .rgpro-brand__text small { display: none; }
    .rgpro-primary-nav { top: 112px; }
    .rgpro-hero { padding: 52px 0; }
    .rgpro-hero h1,
    .rgpro-page-hero h1 { font-size: clamp(31px, 10vw, 43px); }
    .rgpro-hero p,
    .rgpro-page-hero p { font-size: 17px; }
    .rgpro-section { padding: 52px 0; }
    .rgpro-impact-grid,
    .rgpro-card-grid,
    .rgpro-card-grid--news,
    .rgpro-pill-grid { grid-template-columns: 1fr; }
    .rgpro-impact-grid div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.25); }
    .rgpro-impact-grid div:last-child { border-bottom: 0; }
    .rgpro-actions { width: 100%; }
    .rgpro-btn { width: 100%; }
    .rgpro-hero-logo-card,
    .rgpro-hero-panel { padding: 22px; }
    .rgpro-footer__grid { grid-template-columns: 1fr; padding: 44px 0; }
    .rgpro-footer__bottom .rgpro-container { flex-direction: column; }
}

/* Sprint 02.1 — Menú WordPress funcional */
.rgpro-primary-nav .menu-item-has-children {
    position: relative;
}
.rgpro-primary-nav .menu-item-has-children > a::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 7px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}
.rgpro-primary-nav .sub-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    z-index: 30;
    min-width: 245px;
    display: none;
    padding: 8px;
    background: var(--hope-white);
    border: 1px solid var(--hope-border);
    border-top: 3px solid var(--hope-blue);
    box-shadow: 0 14px 28px rgba(16, 42, 61, .08);
}
.rgpro-primary-nav .sub-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -13px;
    height: 13px;
}
.rgpro-primary-nav .menu-item-has-children:hover > .sub-menu,
.rgpro-primary-nav .menu-item-has-children:focus-within > .sub-menu {
    display: block;
}
.rgpro-primary-nav .sub-menu li,
.rgpro-primary-nav .sub-menu a {
    width: 100%;
}
.rgpro-primary-nav .sub-menu a {
    min-height: 38px;
    border-radius: 3px;
    font-size: 13px;
}
.rgpro-primary-nav .current-menu-ancestor > a,
.rgpro-primary-nav .current-menu-parent > a {
    background: var(--hope-soft-blue);
    color: var(--hope-blue);
}

@media (max-width: 1040px) {
    .rgpro-primary-nav .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        margin: 2px 0 8px 12px;
        padding: 0 0 0 12px;
        border: 0;
        border-left: 2px solid var(--hope-border);
        box-shadow: none;
        background: transparent;
    }
    .rgpro-primary-nav .sub-menu::before { display: none; }
    .rgpro-primary-nav .menu-item-has-children > a::after { margin-left: auto; }
}

/* Sprint 02.3 — RGPro Bilingual Lite + redes sociales */
.rgpro-topbar__right {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.rgpro-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}
.rgpro-language-switcher a {
    color: inherit;
    text-decoration: none;
    opacity: .72;
    font-weight: 650;
    letter-spacing: .04em;
}
.rgpro-language-switcher a.is-active {
    opacity: 1;
    color: var(--hope-gold);
}
.rgpro-site-footer .rgpro-language-switcher {
    margin-top: 14px;
    color: rgba(255,255,255,.85);
}
.rgpro-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.rgpro-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--hope-border);
    border-radius: 4px;
    color: var(--hope-blue);
    background: var(--hope-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
}
.rgpro-site-footer h4 {
    margin: 22px 0 4px;
    color: var(--hope-white);
    font-size: 15px;
    font-weight: 620;
}
.rgpro-site-footer .rgpro-social-link {
    background: transparent;
    color: var(--hope-white);
    border-color: rgba(255,255,255,.28);
}
.rgpro-contact-social {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--hope-border);
}
.rgpro-contact-social h3 {
    margin: 0 0 8px;
    color: var(--hope-dark);
    font-size: 18px;
    font-weight: 620;
}
.rgpro-contact-social .rgpro-social-links {
    margin-top: 12px;
}

@media (max-width: 680px) {
    .rgpro-topbar__right {
        justify-content: center;
    }
    .rgpro-social-links {
        width: 100%;
    }
    .rgpro-social-link {
        flex: 1 1 calc(50% - 8px);
    }
}

/* Sprint 03 base — RGPro Page Hero Lite */
.rgpro-hero-photo,
.rgpro-page-hero__media {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--hope-border);
    background: var(--hope-white);
}
.rgpro-hero-photo img,
.rgpro-page-hero__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.rgpro-page-hero--managed {
    background: var(--hope-light);
    color: var(--hope-text);
}
.rgpro-page-hero--managed .rgpro-page-hero__content {
    max-width: 760px;
}
.rgpro-page-hero--with-image {
    padding: 72px 0;
}
.rgpro-page-hero--program,
.rgpro-page-hero--initiative {
    background: var(--hope-blue);
    color: var(--hope-white);
}
.rgpro-page-hero--program h1,
.rgpro-page-hero--initiative h1,
.rgpro-page-hero--program p,
.rgpro-page-hero--initiative p {
    color: var(--hope-white);
}
.rgpro-page-hero--program .rgpro-page-hero__media,
.rgpro-page-hero--initiative .rgpro-page-hero__media {
    border-color: rgba(255,255,255,.35);
}
.rgpro-page-hero--program .rgpro-eyebrow,
.rgpro-page-hero--initiative .rgpro-eyebrow {
    color: var(--hope-gold);
}
.rgpro-page-hero--program .rgpro-eyebrow::before,
.rgpro-page-hero--initiative .rgpro-eyebrow::before {
    background: var(--hope-gold);
}
.rgpro-language-switcher a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.rgpro-language-flag {
    font-size: 15px;
    line-height: 1;
}
.rgpro-language-divider {
    opacity: .55;
}
@media (max-width: 1040px) {
    .rgpro-page-hero--with-image { padding: 58px 0; }
    .rgpro-page-hero__media { max-width: 720px; }
}
@media (max-width: 680px) {
    .rgpro-hero-photo img,
    .rgpro-page-hero__media img { aspect-ratio: 4 / 3; }
    .rgpro-language-switcher { font-size: 13px; }
}

/* Sprint 03.1 — Hero como imagen de fondo + Formulario Draft */
.rgpro-page-hero--managed {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 420px;
    padding: 88px 0;
    background: var(--hope-blue);
    background-position: center;
    background-size: cover;
    border-bottom: 0;
    overflow: hidden;
}
.rgpro-page-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(5, 35, 58, .88) 0%, rgba(5, 35, 58, .72) 44%, rgba(4, 110, 179, .18) 100%);
}
.rgpro-page-hero__inner {
    position: relative;
    z-index: 1;
}
.rgpro-page-hero--background .rgpro-page-hero__content,
.rgpro-page-hero--program .rgpro-page-hero__content,
.rgpro-page-hero--initiative .rgpro-page-hero__content {
    max-width: 760px;
}
.rgpro-page-hero--background h1,
.rgpro-page-hero--background p,
.rgpro-page-hero--program h1,
.rgpro-page-hero--program p,
.rgpro-page-hero--initiative h1,
.rgpro-page-hero--initiative p {
    color: var(--hope-white);
}
.rgpro-page-hero--background .rgpro-eyebrow,
.rgpro-page-hero--program .rgpro-eyebrow,
.rgpro-page-hero--initiative .rgpro-eyebrow {
    color: var(--hope-gold);
}
.rgpro-page-hero--background .rgpro-eyebrow::before,
.rgpro-page-hero--program .rgpro-eyebrow::before,
.rgpro-page-hero--initiative .rgpro-eyebrow::before {
    background: var(--hope-gold);
}
.rgpro-page-hero--background p {
    max-width: 660px;
    font-size: 20px;
}

.rgpro-draft-intro {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 34px;
    align-items: center;
    margin-bottom: 34px;
}
.rgpro-draft-intro__panel {
    border-left: 5px solid var(--hope-gold);
    padding: 24px;
    background: var(--hope-soft-blue);
}
.rgpro-draft-intro__panel strong {
    display: block;
    color: var(--hope-dark);
    font-size: 20px;
    margin-bottom: 8px;
}
.rgpro-draft-note {
    border: 1px solid var(--hope-border);
    border-left: 5px solid var(--hope-blue);
    padding: 18px 20px;
    margin: 24px 0;
    background: var(--hope-white);
    color: var(--hope-text);
}
.rgpro-form {
    display: grid;
    gap: 26px;
}
.rgpro-form fieldset {
    border: 1px solid var(--hope-border);
    background: var(--hope-white);
    border-radius: 8px;
    padding: 26px;
}
.rgpro-form legend {
    padding: 0 10px;
    color: var(--hope-dark);
    font-weight: 700;
    font-size: 20px;
}
.rgpro-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.rgpro-form-row--full { grid-column: 1 / -1; }
.rgpro-form label {
    display: grid;
    gap: 7px;
    color: var(--hope-dark);
    font-weight: 650;
    font-size: 14px;
}
.rgpro-form input,
.rgpro-form select,
.rgpro-form textarea {
    width: 100%;
    border: 1px solid var(--hope-border);
    border-radius: 6px;
    padding: 12px 13px;
    font: inherit;
    color: var(--hope-text);
    background: #fff;
}
.rgpro-form textarea { min-height: 110px; resize: vertical; }
.rgpro-form input:focus,
.rgpro-form select:focus,
.rgpro-form textarea:focus {
    outline: 3px solid rgba(4, 110, 179, .16);
    border-color: var(--hope-blue);
}
.rgpro-form-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 10px !important;
    font-weight: 500 !important;
    line-height: 1.55;
}
.rgpro-form-check input { width: auto; margin-top: 5px; }
.rgpro-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.rgpro-form-message {
    padding: 16px 18px;
    border-radius: 8px;
    margin-bottom: 22px;
    border: 1px solid var(--hope-border);
    background: var(--hope-light);
}
.rgpro-form-message--success {
    border-left: 5px solid #1f9d55;
}
.rgpro-form-message--error {
    border-left: 5px solid #c0392b;
}
.rgpro-form-small {
    color: var(--hope-muted);
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 880px) {
    .rgpro-page-hero--managed { min-height: 360px; padding: 64px 0; }
    .rgpro-page-hero__overlay { background: rgba(5, 35, 58, .76); }
    .rgpro-draft-intro,
    .rgpro-form-grid { grid-template-columns: 1fr; }
}


/* Sprint 03.2 — Custom templates editable + hero contrast fix */
.rgpro-page-hero--managed h1,
.rgpro-page-hero--managed p {
    color: var(--hope-white);
}
.rgpro-page-hero--managed .rgpro-eyebrow {
    color: var(--hope-gold);
}
.rgpro-page-hero--managed .rgpro-eyebrow::before {
    background: var(--hope-gold);
}
.rgpro-editable-content > :first-child { margin-top: 0; }
.rgpro-editable-content > :last-child { margin-bottom: 0; }
.rgpro-draft-intro .rgpro-editable-content h2,
.rgpro-draft-intro .rgpro-editable-content h3 {
    margin-top: 0;
}
.rgpro-draft-intro .rgpro-editable-content p {
    margin-bottom: 0;
}

/* v1.0.8 — Editable content and native contact form */
.rgpro-hidden-field{position:absolute!important;left:-9999px!important;opacity:0!important;height:0!important;overflow:hidden!important}
.rgpro-contact-form-wrap{margin-top:42px;padding-top:32px;border-top:1px solid rgba(4,110,179,.18)}
.rgpro-contact-form-wrap h2{margin-bottom:10px}
.rgpro-editable-content .wp-block-group,
.rgpro-editable-content .rgpro-content-panel{margin:28px 0;padding:28px;border:1px solid rgba(4,110,179,.14);border-radius:14px;background:#fff}
.rgpro-editable-content .rgpro-content-highlight{background:#eef7fd;border-left:4px solid var(--rgpro-blue);padding:22px 24px;margin:26px 0;border-radius:0 12px 12px 0}
.rgpro-editable-content .rgpro-content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:28px 0}
.rgpro-editable-content .rgpro-content-card{border:1px solid rgba(4,110,179,.14);border-radius:14px;padding:22px;background:#fff}
.rgpro-editable-content .rgpro-impact-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:28px 0;border-top:1px solid rgba(255,255,255,.25);border-bottom:1px solid rgba(255,255,255,.25)}
.rgpro-editable-content .rgpro-impact-list div{padding:22px;border-right:1px solid rgba(255,255,255,.2)}
.rgpro-editable-content .rgpro-impact-list strong{display:block;color:var(--rgpro-gold);font-size:2rem;line-height:1}
.rgpro-editable-content .rgpro-impact-list span{display:block;font-size:.9rem;margin-top:8px}
.rgpro-editable-content .rgpro-draft-intro{margin-bottom:24px}
.rgpro-editable-content .rgpro-draft-note{margin-bottom:28px}
.rgpro-form--contact .rgpro-form-grid{margin-top:18px}
@media (max-width: 760px){
  .rgpro-editable-content .rgpro-content-grid,
  .rgpro-editable-content .rgpro-impact-list{grid-template-columns:1fr}
}

.rgpro-hero--background{position:relative;background-size:cover;background-position:center;min-height:560px;color:#fff}
.rgpro-hero--background .rgpro-container{position:relative;z-index:2}
.rgpro-hero--background .rgpro-hero__content{max-width:760px}
.rgpro-hero--background h1,.rgpro-hero--background p{color:#fff}
.rgpro-hero--background .rgpro-eyebrow{color:#fff}
.rgpro-hero--background .rgpro-btn--secondary{background:rgba(255,255,255,.9)}


/* v1.0.9 — Restoration and mobile stability patch
   - Restores safe Home behavior: designed sections remain visible.
   - Prevents contact and draft forms from overflowing mobile screens.
   - Keeps no-image page heroes readable.
*/
:root {
    --rgpro-blue: var(--hope-blue);
    --rgpro-gold: var(--hope-gold);
}
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}
.rgpro-section,
.rgpro-site-header,
.rgpro-site-footer,
.rgpro-page-hero,
.rgpro-hero {
    max-width: 100%;
    overflow-x: clip;
}
.rgpro-page-hero--managed:not(.rgpro-page-hero--background) {
    background: var(--hope-blue);
}
.rgpro-page-hero--managed:not(.rgpro-page-hero--background) h1,
.rgpro-page-hero--managed:not(.rgpro-page-hero--background) p {
    color: var(--hope-white);
}
.rgpro-page-hero--managed:not(.rgpro-page-hero--background) .rgpro-eyebrow {
    color: var(--hope-gold);
}
.rgpro-page-hero--managed:not(.rgpro-page-hero--background) .rgpro-eyebrow::before {
    background: var(--hope-gold);
}
.rgpro-contact-grid,
.rgpro-form-grid,
.rgpro-page-content,
.rgpro-contact-card,
.rgpro-contact-form-wrap,
.rgpro-form,
.rgpro-form fieldset,
.rgpro-form label {
    min-width: 0;
}
.rgpro-form input,
.rgpro-form select,
.rgpro-form textarea,
.rgpro-contact-card a,
.rgpro-contact-card p {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}
.rgpro-hidden-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}
.rgpro-form--contact .rgpro-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 680px) {
    .rgpro-container {
        width: calc(100% - 28px);
    }
    .rgpro-contact-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 28px;
    }
    .rgpro-contact-card,
    .rgpro-program-card,
    .rgpro-news-card,
    .rgpro-post-card,
    .rgpro-presence-list,
    .rgpro-form fieldset {
        padding: 20px;
    }
    .rgpro-form--contact .rgpro-form-grid,
    .rgpro-form-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px;
    }
    .rgpro-form input,
    .rgpro-form select,
    .rgpro-form textarea {
        width: 100%;
        min-width: 0;
        font-size: 16px;
    }
    .rgpro-form-actions,
    .rgpro-form-actions .rgpro-btn,
    .rgpro-contact-card .rgpro-btn {
        width: 100%;
    }
    .rgpro-draft-intro {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .rgpro-draft-intro__panel,
    .rgpro-draft-note {
        padding: 18px;
    }
    .rgpro-hero--background {
        min-height: 480px;
    }
}
