/* ABHARSH Healthcare - Patient Portal landing page.
   Requires abharsh-brand.css for tokens, header and button styles. */

/* Hero ------------------------------------------------------------------ */

.pp-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 24px 150px;
    background: linear-gradient(115deg, var(--ab-navy) 0%, #0A5A96 55%, var(--ab-teal) 100%);
    color: var(--ab-white);
    text-align: center;
}

.pp-hero__decor {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, .13);
    pointer-events: none;
}

.pp-decor {
    position: absolute;
    color: inherit;
}

.pp-decor--pulse {
    left: 6%;
    top: 14%;
    width: 150px;
}

.pp-decor--shield {
    right: 8%;
    top: 10%;
    width: 120px;
}

.pp-decor--plus {
    left: 4%;
    top: 58%;
    width: 42px;
}

.pp-decor--dots {
    left: 1.5%;
    top: 22%;
    width: 54px;
    opacity: .7;
}

.pp-hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.pp-hero__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 0 14px;
    font-size: clamp(2.1rem, 6vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.pp-hero__title-icon {
    flex: none;
    width: clamp(38px, 8vw, 58px);
    height: clamp(38px, 8vw, 58px);
}

.pp-hero__subtitle {
    margin: 0 auto 18px;
    max-width: 34ch;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: rgba(255, 255, 255, .92);
}

.pp-hero__secure {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: .95rem;
    color: rgba(255, 255, 255, .88);
}

.pp-hero__secure svg {
    flex: none;
    width: 20px;
    height: 20px;
}

.pp-hero__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: auto;
    display: block;
    color: var(--ab-pale);
}

/* Panel ----------------------------------------------------------------- */

.pp-panel-wrap {
    max-width: var(--ab-maxw);
    margin: -104px auto 0;
    padding: 0 24px 72px;
    position: relative;
    z-index: 2;
}

.pp-panel {
    background: var(--ab-white);
    border-radius: 24px;
    box-shadow: var(--ab-shadow-lg);
    padding: 32px;
}

.pp-panel:focus {
    outline: none;
}

.pp-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Cards ----------------------------------------------------------------- */

.pp-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--ab-border);
    border-radius: var(--ab-radius-card);
    background: var(--ab-white);
    box-shadow: var(--ab-shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pp-card:hover,
.pp-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(24, 166, 166, .5);
    box-shadow: var(--ab-shadow-md);
}

.pp-card--primary {
    border-color: rgba(7, 59, 122, .18);
    box-shadow: var(--ab-shadow-md);
}

.pp-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 128px;
    padding: 24px 20px 8px;
}

.pp-card--primary .pp-card__media {
    background: var(--ab-navy);
    padding: 24px 20px;
}

.pp-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(7, 59, 122, .18);
    background: var(--ab-pale);
    color: var(--ab-navy);
}

.pp-card--primary .pp-card__icon {
    border-color: var(--ab-white);
    background: var(--ab-white);
}

.pp-card__icon svg {
    width: 36px;
    height: 36px;
}

.pp-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 20px 24px 28px;
    text-align: center;
}

.pp-card__title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ab-navy);
    letter-spacing: -.01em;
}

.pp-card__text {
    margin: 0 0 22px;
    flex: 1 1 auto;
    font-size: .97rem;
    color: var(--ab-muted);
}

.pp-panel__footer {
    margin-top: 28px;
    text-align: center;
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 900px) {
    .pp-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .pp-panel {
        padding: 22px;
    }

    .pp-hero {
        padding: 44px 20px 130px;
    }

    .pp-panel-wrap {
        margin-top: -90px;
        padding: 0 16px 56px;
    }

    .pp-decor--pulse,
    .pp-decor--dots {
        display: none;
    }

    .pp-decor--shield {
        right: 2%;
        width: 92px;
    }
}

@media (max-width: 560px) {
    .pp-hero__title {
        gap: 12px;
    }

    .pp-hero__subtitle {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-card:hover {
        transform: none;
    }
}
