/*
Theme Name: HRP GeneratePress Child
Theme URI: https://happyretirement.kr
Description: Accessible, conversion-focused child theme for Happy Retirement Platform.
Author: Happy Retirement Platform
Template: generatepress
Version: 0.1.0
Text Domain: hrp-theme
*/

:root {
    --hrp-navy: #17324d;
    --hrp-teal: #19766f;
    --hrp-teal-dark: #105f59;
    --hrp-mint: #e7f4f0;
    --hrp-cream: #fbf8f1;
    --hrp-gold: #d7a33d;
    --hrp-ink: #202b33;
    --hrp-muted: #61717d;
    --hrp-border: #dce5e7;
    --hrp-white: #ffffff;
    --hrp-radius: 18px;
    --hrp-shadow: 0 18px 45px rgba(23, 50, 77, 0.1);
}

body {
    color: var(--hrp-ink);
    background: var(--hrp-white);
    font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
    font-size: 18px;
    line-height: 1.75;
}

a {
    color: var(--hrp-teal-dark);
}

.site-header {
    border-bottom: 1px solid var(--hrp-border);
}

.main-navigation .main-nav ul li a {
    font-weight: 650;
}

.hrp-shell {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.hrp-hero {
    overflow: hidden;
    padding: clamp(72px, 10vw, 132px) 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(215, 163, 61, 0.18), transparent 28%),
        linear-gradient(135deg, var(--hrp-cream), var(--hrp-mint));
}

.hrp-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: clamp(42px, 7vw, 88px);
    align-items: center;
}

.hrp-eyebrow {
    margin: 0 0 16px;
    color: var(--hrp-teal-dark);
    font-size: 0.92rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.hrp-hero h1 {
    max-width: 760px;
    margin: 0 0 24px;
    color: var(--hrp-navy);
    font-size: clamp(2.35rem, 5.4vw, 4.5rem);
    line-height: 1.14;
    letter-spacing: -0.045em;
}

.hrp-hero__lead {
    max-width: 680px;
    margin: 0 0 34px;
    color: var(--hrp-muted);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hrp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hrp-button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--hrp-teal);
    color: var(--hrp-white);
    font-weight: 750;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.hrp-button:hover,
.hrp-button:focus-visible {
    transform: translateY(-2px);
    background: var(--hrp-teal-dark);
    color: var(--hrp-white);
    box-shadow: 0 10px 24px rgba(16, 95, 89, 0.2);
}

.hrp-button--secondary {
    border-color: var(--hrp-teal);
    background: transparent;
    color: var(--hrp-teal-dark);
}

.hrp-button--secondary:hover,
.hrp-button--secondary:focus-visible {
    background: var(--hrp-white);
    color: var(--hrp-teal-dark);
}

.hrp-hero__card {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--hrp-shadow);
}

.hrp-hero__card strong {
    display: block;
    margin-bottom: 18px;
    color: var(--hrp-navy);
    font-size: 1.28rem;
}

.hrp-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.hrp-steps li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 13px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--hrp-border);
    counter-increment: step;
}

.hrp-steps li::before {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--hrp-mint);
    color: var(--hrp-teal-dark);
    content: counter(step);
    font-weight: 800;
}

.hrp-steps li:last-child {
    border-bottom: 0;
}

.hrp-section {
    padding: clamp(68px, 8vw, 104px) 0;
}

.hrp-section__heading {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.hrp-section__heading h2 {
    margin: 0 0 14px;
    color: var(--hrp-navy);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.25;
}

.hrp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.hrp-card {
    padding: 30px;
    border: 1px solid var(--hrp-border);
    border-radius: var(--hrp-radius);
    background: var(--hrp-white);
}

.hrp-card__number {
    display: inline-grid;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 13px;
    background: var(--hrp-mint);
    color: var(--hrp-teal-dark);
    font-weight: 800;
}

.hrp-card h3 {
    margin: 0 0 10px;
    color: var(--hrp-navy);
}

.hrp-cta {
    padding: 50px;
    border-radius: 28px;
    background: var(--hrp-navy);
    color: var(--hrp-white);
    text-align: center;
}

.hrp-cta h2 {
    margin: 0 0 12px;
    color: var(--hrp-white);
}

.hrp-cta p {
    margin: 0 0 26px;
    color: #d9e5ec;
}

.hrp-account {
    width: min(620px, calc(100% - 40px));
    margin: clamp(48px, 8vw, 92px) auto;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid var(--hrp-border);
    border-radius: 26px;
    background: var(--hrp-white);
    box-shadow: var(--hrp-shadow);
}

.hrp-account__header {
    margin-bottom: 30px;
}

.hrp-account__header h1 {
    margin: 0 0 10px;
    color: var(--hrp-navy);
    font-size: clamp(2rem, 5vw, 3rem);
}

.hrp-form {
    display: grid;
    gap: 12px;
}

.hrp-form label:not(.hrp-check) {
    margin-top: 8px;
    color: var(--hrp-navy);
    font-weight: 750;
}

.hrp-form input[type="text"],
.hrp-form input[type="email"],
.hrp-form input[type="password"] {
    min-height: 54px;
    width: 100%;
    padding: 11px 15px;
    border: 1px solid #aebfc5;
    border-radius: 12px;
    background: var(--hrp-white);
    color: var(--hrp-ink);
    font-size: 1rem;
}

.hrp-form input[type="tel"],
.hrp-form input[type="date"],
.hrp-form select,
.hrp-form textarea {
    min-height: 54px;
    width: 100%;
    padding: 11px 15px;
    border: 1px solid #aebfc5;
    border-radius: 12px;
    background: var(--hrp-white);
    color: var(--hrp-ink);
    font: inherit;
}

.hrp-form textarea {
    resize: vertical;
}

.hrp-form input:focus-visible {
    border-color: var(--hrp-teal);
    outline: 3px solid rgba(25, 118, 111, 0.18);
    outline-offset: 1px;
}

.hrp-form input:disabled {
    background: #f2f5f5;
    color: var(--hrp-muted);
}

.hrp-form small {
    color: var(--hrp-muted);
    font-size: 0.88rem;
}

.hrp-form .hrp-button {
    width: 100%;
    margin-top: 14px;
    cursor: pointer;
}

.hrp-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 12px;
    font-weight: 600;
}

.hrp-check input {
    width: 20px;
    height: 20px;
    margin-top: 5px;
    accent-color: var(--hrp-teal);
}

.hrp-notice {
    margin: 0 0 22px;
    padding: 14px 16px;
    border-left: 4px solid var(--hrp-teal);
    border-radius: 10px;
    background: var(--hrp-mint);
}

.hrp-notice--error {
    border-left-color: #b44a43;
    background: #fff0ef;
    color: #7c2f2a;
}

.hrp-account__link {
    margin: 24px 0 0;
    text-align: center;
}

.hrp-form__trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.hrp-diagnosis,
.hrp-result {
    width: min(920px, calc(100% - 40px));
    margin: clamp(48px, 8vw, 92px) auto;
}

.hrp-diagnosis__header,
.hrp-result__hero {
    margin-bottom: 34px;
}

.hrp-diagnosis__header h1,
.hrp-result__hero h1 {
    margin: 0 0 14px;
    color: var(--hrp-navy);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.2;
}

.hrp-diagnosis-form {
    display: grid;
    gap: 22px;
}

.hrp-question {
    min-width: 0;
    margin: 0;
    padding: clamp(22px, 4vw, 32px);
    border: 1px solid var(--hrp-border);
    border-radius: var(--hrp-radius);
    background: var(--hrp-white);
}

.hrp-question legend {
    width: 100%;
    margin-bottom: 20px;
    color: var(--hrp-navy);
    font-size: 1.08rem;
    font-weight: 750;
}

.hrp-question__category {
    display: block;
    margin-bottom: 6px;
    color: var(--hrp-teal-dark);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.hrp-scale {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.hrp-scale label {
    position: relative;
    cursor: pointer;
    text-align: center;
}

.hrp-scale input {
    position: absolute;
    opacity: 0;
}

.hrp-scale__number {
    display: grid;
    width: 46px;
    height: 46px;
    margin: 0 auto 7px;
    place-items: center;
    border: 2px solid var(--hrp-border);
    border-radius: 50%;
    background: var(--hrp-white);
    color: var(--hrp-navy);
    font-weight: 800;
}

.hrp-scale__label {
    display: block;
    color: var(--hrp-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.hrp-scale input:checked + .hrp-scale__number {
    border-color: var(--hrp-teal);
    background: var(--hrp-teal);
    color: var(--hrp-white);
}

.hrp-scale input:focus-visible + .hrp-scale__number {
    outline: 3px solid rgba(25, 118, 111, 0.25);
    outline-offset: 3px;
}

.hrp-diagnosis__submit {
    padding: 26px;
    border-radius: var(--hrp-radius);
    background: var(--hrp-mint);
    text-align: center;
}

.hrp-diagnosis__submit p {
    margin: 0 0 15px;
    color: var(--hrp-muted);
    font-size: 0.9rem;
}

.hrp-result__hero {
    padding: clamp(30px, 6vw, 58px);
    border-radius: 28px;
    background: linear-gradient(135deg, var(--hrp-cream), var(--hrp-mint));
}

.hrp-result__hero small {
    color: var(--hrp-muted);
}

.hrp-result__section {
    margin: 24px 0;
    padding: clamp(24px, 4vw, 34px);
    border: 1px solid var(--hrp-border);
    border-radius: var(--hrp-radius);
    background: var(--hrp-white);
}

.hrp-result__section h2,
.hrp-history h2 {
    margin: 0 0 20px;
    color: var(--hrp-navy);
    font-size: 1.35rem;
}

.hrp-result__section li + li {
    margin-top: 10px;
}

.hrp-result__columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.hrp-score-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 28px;
}

.hrp-score > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.hrp-score__track {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: #e6eded;
}

.hrp-score__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hrp-teal), var(--hrp-gold));
}

.hrp-result__notice {
    margin: 24px 0;
    padding: 18px;
    border-left: 4px solid var(--hrp-gold);
    border-radius: 10px;
    background: var(--hrp-cream);
    color: var(--hrp-muted);
    font-size: 0.9rem;
}

.hrp-history {
    margin-top: 42px;
    padding-top: 32px;
    border-top: 1px solid var(--hrp-border);
}

.hrp-history ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hrp-history li {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--hrp-border);
}

.hrp-history li strong,
.hrp-history li span {
    display: block;
}

.hrp-service-page,
.hrp-community-single {
    width: min(960px, calc(100% - 40px));
    margin: clamp(48px, 8vw, 92px) auto;
}

.hrp-service-page__header {
    margin-bottom: 34px;
}

.hrp-service-page__header--row {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    justify-content: space-between;
}

.hrp-service-page__header h1,
.hrp-community-single h1 {
    margin: 0 0 12px;
    color: var(--hrp-navy);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.2;
}

.hrp-service-form {
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid var(--hrp-border);
    border-radius: 24px;
    background: var(--hrp-white);
    box-shadow: var(--hrp-shadow);
}

.hrp-form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.hrp-form__grid > div {
    display: grid;
    gap: 12px;
}

.hrp-status {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--hrp-mint);
    color: var(--hrp-teal-dark) !important;
    font-weight: 750;
}

.hrp-community-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hrp-community-card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--hrp-border);
    border-radius: var(--hrp-radius);
    background: var(--hrp-white);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.hrp-community-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hrp-shadow);
}

.hrp-community-card__meta {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    color: var(--hrp-muted);
    font-size: 0.82rem;
}

.hrp-community-card__meta span:first-child {
    color: var(--hrp-teal-dark);
    font-weight: 750;
}

.hrp-community-card h2 {
    margin: 20px 0 10px;
    font-size: 1.35rem;
    line-height: 1.35;
}

.hrp-community-card h2 a {
    color: var(--hrp-navy);
    text-decoration: none;
}

.hrp-community-card__link {
    margin-top: auto;
    font-weight: 750;
    text-decoration: none;
}

.hrp-community-empty {
    padding: 48px;
    border: 1px dashed #aebfc5;
    border-radius: var(--hrp-radius);
    color: var(--hrp-muted);
    text-align: center;
}

.hrp-community-write {
    margin-top: 54px;
    scroll-margin-top: 30px;
}

.hrp-community-write > h2 {
    margin-bottom: 20px;
    color: var(--hrp-navy);
}

.hrp-community-single__back {
    display: inline-block;
    margin-bottom: 30px;
    font-weight: 700;
    text-decoration: none;
}

.hrp-community-single__meta {
    color: var(--hrp-muted);
}

.hrp-community-single__content {
    margin: 38px 0;
    padding: clamp(24px, 5vw, 44px);
    border: 1px solid var(--hrp-border);
    border-radius: var(--hrp-radius);
    background: var(--hrp-white);
}

.hrp-community-comments {
    padding-top: 30px;
    border-top: 1px solid var(--hrp-border);
}

.hrp-community-comments h2 {
    color: var(--hrp-navy);
}

.hrp-history li span {
    margin-top: 4px;
    color: var(--hrp-muted);
    font-size: 0.84rem;
}

@media (max-width: 820px) {
    body {
        font-size: 17px;
    }

    .hrp-hero__grid,
    .hrp-grid,
    .hrp-result__columns,
    .hrp-score-grid,
    .hrp-form__grid,
    .hrp-community-list {
        grid-template-columns: 1fr;
    }

    .hrp-service-page__header--row {
        align-items: flex-start;
        flex-direction: column;
    }

    .hrp-hero {
        padding-top: 64px;
    }

    .hrp-hero__card {
        padding: 26px;
    }

    .hrp-cta {
        padding: 38px 24px;
    }

    .hrp-scale {
        grid-template-columns: 1fr;
    }

    .hrp-scale label {
        display: grid;
        grid-template-columns: 44px 1fr;
        gap: 12px;
        align-items: center;
        text-align: left;
    }

    .hrp-scale__number {
        width: 40px;
        height: 40px;
        margin: 0;
    }

    .hrp-scale__label {
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
