/*
Theme Name: Hope & Peace Hospice
Theme URI: https://hopepeacehospice.com/
Author: Hope & Peace Hospice
Description: Standalone one-page WordPress theme for Hope & Peace Hospice Care, Inc.
Version: 1.0.9
Text Domain: hopepeace
*/

:root {
    --hp-blue: #2f6df3;
    --hp-blue-dark: #1f55c8;
    --hp-blue-soft: #eaf1ff;
    --hp-text: #151a23;
    --hp-muted: #5f6673;
    --hp-light: #f6f9ff;
    --hp-white: #ffffff;
    --hp-dark: #101827;
    --hp-border: #e3eaf5;
    --hp-shadow: 0 18px 48px rgba(17, 24, 39, 0.10);
    --hp-radius: 22px;
    --hp-radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--hp-text);
    background:
        radial-gradient(circle at 12% 8%, rgba(47, 109, 243, 0.08), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(47, 109, 243, 0.06), transparent 24%),
        var(--hp-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.hp-skip-link {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 9999;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--hp-dark);
    color: var(--hp-white);
    font-weight: 800;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.hp-skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid #ffb020;
    outline-offset: 4px;
}

::selection {
    background: rgba(47, 109, 243, 0.18);
}

.hp-site {
    position: relative;
    overflow: hidden;
}

.hp-site::before,
.hp-site::after {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(47, 109, 243, 0.08);
    border-radius: 46% 54% 62% 38% / 44% 38% 62% 56%;
    z-index: -1;
    pointer-events: none;
}

.hp-site::before {
    left: -160px;
    top: 18%;
}

.hp-site::after {
    right: -180px;
    bottom: 12%;
    transform: rotate(28deg);
}

.hp-section,
.hp-feature-card,
.hp-service-card,
.hp-detail-card,
.hp-accordion-item,
.hp-contact-card,
.hp-testimonial-card,
.hp-mission-grid article {
    animation: hpFadeUp 0.75s ease both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
}

@keyframes hpFadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hp-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.hp-topbar {
    background: var(--hp-blue);
    color: var(--hp-white);
    font-size: 13px;
}

.hp-topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.hp-header {
    background: rgba(255, 255, 255, 0.86);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(227, 234, 245, 0.75);
}

.hp-nav {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hp-logo img {
    width: 165px;
    max-height: 70px;
    object-fit: contain;
}

.hp-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    font-size: 14px;
    font-weight: 700;
}

.hp-menu a:not(.hp-button) {
    position: relative;
    padding: 8px 0;
    transition: color 0.22s ease;
}

.hp-menu a:not(.hp-button)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--hp-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.hp-menu a:not(.hp-button):hover {
    color: var(--hp-blue);
}

.hp-menu a:not(.hp-button):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--hp-blue), #5a8cff);
    color: var(--hp-white);
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 22px rgba(47, 109, 243, 0.18);
}

.hp-button:hover {
    background: var(--hp-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(47, 109, 243, 0.22);
}

.hp-button-small {
    min-height: 42px;
    padding: 10px 22px;
}

.hp-button-outline {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.68);
    box-shadow: none;
}

.hp-button-outline:hover {
    background: rgba(255,255,255,0.24);
    box-shadow: none;
}

.hp-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #dfe8f5;
}

.hp-hero-slider,
.hp-hero-slide {
    position: absolute;
    inset: 0;
}

.hp-hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(8, 15, 31, 0.68), rgba(8, 15, 31, 0.18)),
        radial-gradient(circle at 28% 35%, rgba(47, 109, 243, 0.36), transparent 28%);
}

.hp-hero-slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: hpHeroFade 12s infinite;
}

.hp-hero-slide-one { opacity: 1; }
.hp-hero-slide-two { animation-delay: 6s; }

@keyframes hpHeroFade {
    0%, 42% { opacity: 1; }
    50%, 92% { opacity: 0; }
    100% { opacity: 1; }
}

.hp-hero-content { position: relative; z-index: 3; }

.hp-hero-card {
    max-width: 590px;
    color: var(--hp-white);
}

.hp-hero-card::before {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    border-radius: 99px;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0.16));
}

.hp-hero-card h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hp-hero-card p {
    max-width: 540px;
    margin: 0 0 28px;
    font-size: 18px;
}

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

.hp-section { padding: 90px 0; }

.hp-feature-strip {
    background: var(--hp-light);
    padding: 0 0 70px;
}

.hp-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    transform: translateY(-70px);
    margin-bottom: -70px;
    max-width: 680px;
}

.hp-feature-card {
    background: linear-gradient(145deg, var(--hp-blue), #5d8fff);
    color: var(--hp-white);
    text-align: center;
    padding: 44px 34px;
    min-height: 245px;
    box-shadow: 0 18px 38px rgba(47, 109, 243, 0.16);
    border-radius: var(--hp-radius);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hp-feature-card::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -48px;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 50%;
}

.hp-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(47, 109, 243, 0.24);
}

.hp-feature-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.hp-feature-card h2,
.hp-section h2,
.hp-service-card h3,
.hp-contact-card h3,
.hp-footer h3 {
    line-height: 1.2;
}

.hp-feature-card h2 {
    margin: 0 0 14px;
    font-size: 19px;
}

.hp-feature-card p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.88);
}

.hp-two-col,
.hp-contact-grid,
.hp-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 70px;
    align-items: center;
}

.hp-eyebrow {
    margin: 0 0 10px;
    color: var(--hp-blue);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.hp-section h2 {
    margin: 0 0 20px;
    font-size: clamp(30px, 3vw, 42px);
    letter-spacing: -0.03em;
}

.hp-section p { color: var(--hp-muted); }

.hp-image-wrap img {
    width: 100%;
    min-height: 380px;
    object-fit: cover;
    box-shadow: var(--hp-shadow);
}

.hp-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    margin-top: 50px;
}

.hp-mission-grid article {
    padding-left: 24px;
    border-left: 4px solid var(--hp-blue);
}

.hp-mission-grid h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.hp-services {
    background:
        linear-gradient(180deg, var(--hp-light), #ffffff 82%),
        radial-gradient(circle at 10% 20%, rgba(47, 109, 243, 0.08), transparent 22%);
    position: relative;
}

.hp-services::before {
    content: "";
    position: absolute;
    top: 38px;
    right: 5%;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(47, 109, 243, 0.10);
    border-radius: 40% 60% 50% 50%;
    pointer-events: none;
}

.hp-section-title {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 44px;
}

.hp-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.hp-service-card {
    background: rgba(255,255,255,0.88);
    text-align: center;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    overflow: hidden;
    border-radius: var(--hp-radius);
    border: 1px solid rgba(227, 234, 245, 0.9);
    backdrop-filter: blur(10px);
}

.hp-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.10);
}

.hp-service-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hp-service-card:hover img {
    transform: scale(1.055);
}

.hp-service-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.hp-service-card-body {
    padding: 26px 22px 28px;
}

.hp-service-card-body p {
    margin: 0;
    font-size: 15px;
}

.hp-service-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 46px;
}

.hp-detail-card {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 34px;
    align-items: start;
    padding: 34px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(227, 234, 245, 0.95);
    box-shadow: var(--hp-shadow);
    border-radius: var(--hp-radius);
    position: relative;
    overflow: hidden;
}

.hp-detail-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--hp-blue), #8db0ff);
}

.hp-detail-intro h3 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.15;
}

.hp-detail-intro p {
    margin: 0;
}

.hp-accordion {
    display: grid;
    gap: 12px;
}

.hp-accordion-item {
    background: var(--hp-white);
    border: 1px solid var(--hp-border);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
    overflow: hidden;
    border-radius: var(--hp-radius-sm);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.hp-accordion-item:hover,
.hp-accordion-item.active {
    border-color: rgba(47, 109, 243, 0.28);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.07);
}

.hp-accordion-button {
    width: 100%;
    border: 0;
    background: var(--hp-white);
    color: var(--hp-text);
    padding: 18px 52px 18px 20px;
    text-align: left;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    position: relative;
}

.hp-accordion-button::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hp-blue);
    font-size: 24px;
    line-height: 1;
}

.hp-accordion-item.active .hp-accordion-button::after {
    content: "−";
}

.hp-accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
}

.hp-accordion-panel p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--hp-muted);
}

.hp-accordion-item.active .hp-accordion-panel {
    max-height: 260px;
}

.hp-faq-section {
    background: var(--hp-white);
}

.hp-faq-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 58px;
    align-items: center;
}

.hp-faq-accordion {
    margin-top: 28px;
}

.hp-faq-image {
    position: relative;
}

.hp-faq-image::before {
    content: "";
    position: absolute;
    inset: -18px 18px 18px -18px;
    border: 1px solid rgba(47, 109, 243, 0.18);
    border-radius: var(--hp-radius);
    z-index: -1;
}

.hp-faq-image img {
    width: 100%;
    min-height: 540px;
    object-fit: cover;
    box-shadow: var(--hp-shadow);
    border-radius: var(--hp-radius);
}

.hp-testimonial-section {
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 22%),
        linear-gradient(135deg, var(--hp-blue), #1f55c8);
    color: var(--hp-white);
    padding: 92px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hp-testimonial-section::before,
.hp-testimonial-section::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 50%;
}

.hp-testimonial-section::before {
    width: 220px;
    height: 220px;
    left: -70px;
    top: -80px;
}

.hp-testimonial-section::after {
    width: 320px;
    height: 320px;
    right: -120px;
    bottom: -150px;
}

.hp-testimonial-card {
    max-width: 820px;
}

.hp-eyebrow-light {
    color: rgba(255,255,255,0.78);
}

.hp-testimonial-card blockquote {
    margin: 0 auto 24px;
    max-width: 720px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hp-testimonial-card cite {
    font-style: normal;
    color: rgba(255,255,255,0.84);
    font-weight: 700;
}

.hp-contact-card {
    padding: 42px;
    background: linear-gradient(180deg, var(--hp-light), #ffffff);
    border: 1px solid var(--hp-border);
    box-shadow: var(--hp-shadow);
    border-radius: var(--hp-radius);
}

.hp-contact-card h3 {
    margin-top: 0;
    font-size: 28px;
}

.hp-footer {
    background:
        radial-gradient(circle at 15% 20%, rgba(47, 109, 243, 0.20), transparent 25%),
        var(--hp-dark);
    color: var(--hp-white);
    padding-top: 70px;
}

.hp-footer p,
.hp-footer a {
    color: rgba(255, 255, 255, 0.78);
}

.hp-footer-logo {
    width: 155px;
    margin-bottom: 28px;
}

.hp-footer h3 {
    margin: 0 0 18px;
    font-size: 22px;
}

.hp-footer-bottom {
    margin-top: 55px;
    padding: 22px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

@media (max-width: 900px) {
    .hp-topbar-inner {
        justify-content: flex-start;
        gap: 12px;
    }

    .hp-nav {
        min-height: auto;
        padding: 18px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .hp-menu {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 14px 20px;
    }

    .hp-hero { min-height: 560px; }

    .hp-feature-grid,
    .hp-two-col,
    .hp-contact-grid,
    .hp-footer-grid,
    .hp-mission-grid,
    .hp-detail-card,
    .hp-faq-grid {
        grid-template-columns: 1fr;
    }

    .hp-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hp-two-col,
    .hp-contact-grid,
    .hp-footer-grid {
        gap: 38px;
    }

    .hp-faq-image img {
        min-height: 380px;
    }
}

@media (max-width: 640px) {
    .hp-container { width: min(100% - 28px, 1120px); }
    .hp-topbar { font-size: 12px; }
    .hp-logo img { width: 145px; }
    .hp-menu { font-size: 13px; }
    .hp-hero { min-height: 600px; }
    .hp-hero-card p { font-size: 16px; }
    .hp-section { padding: 62px 0; }

    .hp-feature-grid {
        grid-template-columns: 1fr;
        transform: none;
        margin-bottom: 0;
        padding-top: 28px;
    }

    .hp-feature-strip { padding-bottom: 60px; }
    .hp-service-grid { grid-template-columns: 1fr; }
    .hp-detail-card { padding: 24px; }
    .hp-accordion-button { font-size: 15px; padding: 16px 48px 16px 16px; }
    .hp-faq-image img { min-height: 300px; }
    .hp-contact-card { padding: 30px 22px; }
}
/*
Theme Name: Hope & Peace Hospice
Theme URI: https://hopepeacehospice.com/
Author: Davel Creative Agency
Description: Standalone one-page WordPress theme for Hope & Peace Hospice Care, Inc.
Version: 1.0.4
Text Domain: hopepeace
*/

:root {
    --hp-blue: #2f6df3;
    --hp-blue-dark: #1f55c8;
    --hp-blue-soft: #eaf1ff;
    --hp-text: #151a23;
    --hp-muted: #5f6673;
    --hp-light: #f6f9ff;
    --hp-white: #ffffff;
    --hp-dark: #101827;
    --hp-border: #e3eaf5;
    --hp-shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
    --hp-radius: 28px;
    --hp-radius-sm: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--hp-text);
    background:
        radial-gradient(circle at 10% 4%, rgba(47, 109, 243, 0.22), transparent 26%),
        radial-gradient(circle at 92% 10%, rgba(93, 143, 255, 0.18), transparent 24%),
        radial-gradient(circle at 16% 72%, rgba(47, 109, 243, 0.10), transparent 22%),
        linear-gradient(180deg, #f7faff 0%, #ffffff 38%, #f6f9ff 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

::selection { background: rgba(47, 109, 243, 0.18); }

.hp-site {
    position: relative;
    overflow: hidden;
}

.hp-site::before,
.hp-site::after {
    content: "";
    position: fixed;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(47, 109, 243, 0.18);
    background:
        linear-gradient(135deg, rgba(47, 109, 243, 0.08), transparent 55%),
        repeating-linear-gradient(45deg, rgba(47, 109, 243, 0.08) 0 1px, transparent 1px 14px);
    border-radius: 46% 54% 62% 38% / 44% 38% 62% 56%;
    z-index: -1;
    pointer-events: none;
    animation: hpFloatBlob 14s ease-in-out infinite alternate;
}

.hp-site::before { left: -190px; top: 18%; }
.hp-site::after { right: -210px; bottom: 12%; transform: rotate(28deg); animation-delay: -5s; }

@keyframes hpFloatBlob {
    from { transform: translate3d(0, 0, 0) rotate(0deg); }
    to { transform: translate3d(24px, -18px, 0) rotate(18deg); }
}

.hp-section,
.hp-feature-card,
.hp-service-card,
.hp-detail-card,
.hp-accordion-item,
.hp-contact-card,
.hp-testimonial-card,
.hp-mission-grid article {
    animation: hpFadeUp 0.75s ease both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
}

@keyframes hpFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.hp-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hp-topbar {
    background: linear-gradient(90deg, #143ea7, var(--hp-blue), #6f9cff);
    color: var(--hp-white);
    font-size: 13px;
}

.hp-topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.hp-header {
    background: rgba(255, 255, 255, 0.74);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 16px 42px rgba(17, 24, 39, 0.10);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border-bottom: 1px solid rgba(227, 234, 245, 0.9);
}

.hp-nav {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hp-logo img {
    width: 165px;
    max-height: 70px;
    object-fit: contain;
}

.hp-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    font-size: 14px;
    font-weight: 700;
}

.hp-menu a:not(.hp-button) {
    position: relative;
    padding: 8px 0;
    transition: color 0.22s ease;
}

.hp-menu a:not(.hp-button)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--hp-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.hp-menu a:not(.hp-button):hover { color: var(--hp-blue); }
.hp-menu a:not(.hp-button):hover::after { transform: scaleX(1); transform-origin: left; }

.hp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--hp-blue), #5a8cff);
    color: var(--hp-white);
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 22px rgba(47, 109, 243, 0.18);
}

.hp-button:hover {
    background: linear-gradient(135deg, var(--hp-blue-dark), #477cff);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(47, 109, 243, 0.26);
}

.hp-button-small { min-height: 42px; padding: 10px 22px; }
.hp-button-outline { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.68); box-shadow: none; }
.hp-button-outline:hover { background: rgba(255,255,255,0.24); box-shadow: none; }

.hp-hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #dfe8f5;
    border-bottom-left-radius: 56px;
    border-bottom-right-radius: 56px;
    box-shadow: 0 26px 70px rgba(17, 24, 39, 0.18);
}

.hp-hero::before {
    content: "";
    position: absolute;
    right: 8%;
    top: 18%;
    width: 260px;
    height: 260px;
    z-index: 4;
    border: 1px solid rgba(255,255,255,0.26);
    border-radius: 38% 62% 58% 42% / 42% 44% 56% 58%;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,0.18) 0 1px, transparent 1px 13px);
    pointer-events: none;
    animation: hpSlowSpin 22s linear infinite;
}

@keyframes hpSlowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hp-hero-slider,
.hp-hero-slide { position: absolute; inset: 0; }

.hp-hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(8, 15, 31, 0.70), rgba(8, 15, 31, 0.22)),
        radial-gradient(circle at 28% 35%, rgba(47, 109, 243, 0.38), transparent 28%);
}

.hp-hero-slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: hpHeroFade 12s infinite;
    transform: scale(1.02);
}

.hp-hero-slide-one { opacity: 1; }
.hp-hero-slide-two { animation-delay: 6s; }

@keyframes hpHeroFade {
    0%, 42% { opacity: 1; }
    50%, 92% { opacity: 0; }
    100% { opacity: 1; }
}

.hp-hero-content { position: relative; z-index: 5; }

.hp-hero-card {
    max-width: 640px;
    color: var(--hp-white);
    padding: 42px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 28px 70px rgba(0,0,0,0.22);
}

.hp-hero-card::before {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    border-radius: 99px;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0.16));
}

.hp-hero-card h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hp-hero-card p { max-width: 540px; margin: 0 0 28px; font-size: 18px; }
.hp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hp-section {
    padding: 104px 0;
    position: relative;
}

.hp-section::before {
    content: "";
    position: absolute;
    left: 5%;
    top: 36px;
    width: 94px;
    height: 94px;
    border: 1px solid rgba(47,109,243,0.12);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47,109,243,0.08), transparent 62%);
    pointer-events: none;
}

.hp-feature-strip {
    background:
        linear-gradient(180deg, #f3f7ff, #ffffff),
        repeating-linear-gradient(90deg, rgba(47,109,243,0.06) 0 1px, transparent 1px 40px);
    padding: 0 0 82px;
    position: relative;
}

.hp-feature-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(47,109,243,0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47,109,243,0.055) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(180deg, black, transparent 72%);
    pointer-events: none;
}

.hp-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    transform: translateY(-70px);
    margin-bottom: -70px;
    max-width: 720px;
}

.hp-feature-card {
    background: linear-gradient(145deg, var(--hp-blue), #5d8fff);
    color: var(--hp-white);
    text-align: center;
    padding: 44px 34px;
    min-height: 245px;
    box-shadow: 0 22px 48px rgba(47, 109, 243, 0.22);
    border-radius: var(--hp-radius);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hp-feature-card::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -48px;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 50%;
}

.hp-feature-card:hover { transform: translateY(-6px); box-shadow: 0 28px 58px rgba(47, 109, 243, 0.28); }
.hp-feature-icon { width: 58px; height: 58px; margin: 0 auto 22px; object-fit: contain; filter: brightness(0) invert(1); }

.hp-feature-card h2,
.hp-section h2,
.hp-service-card h3,
.hp-contact-card h3,
.hp-footer h3 { line-height: 1.2; }

.hp-feature-card h2 { margin: 0 0 14px; font-size: 19px; }
.hp-feature-card p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.88); }

.hp-two-col,
.hp-contact-grid,
.hp-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 70px;
    align-items: center;
}

.hp-eyebrow {
    margin: 0 0 10px;
    color: var(--hp-blue);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.hp-section h2 { margin: 0 0 20px; font-size: clamp(30px, 3vw, 42px); letter-spacing: -0.03em; }
.hp-section p { color: var(--hp-muted); }

.hp-image-wrap { position: relative; }

.hp-image-wrap::before {
    content: "";
    position: absolute;
    inset: -18px 18px 18px -18px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(47,109,243,0.12), transparent);
    border: 1px solid rgba(47,109,243,0.16);
    z-index: -1;
}

.hp-image-wrap img {
    width: 100%;
    min-height: 430px;
    object-fit: cover;
    box-shadow: var(--hp-shadow);
    border-radius: 28px;
}

.hp-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    margin-top: 50px;
}

.hp-mission-grid article {
    padding: 28px;
    border-left: 4px solid var(--hp-blue);
    background: rgba(255,255,255,0.82);
    border-radius: var(--hp-radius);
    box-shadow: 0 16px 42px rgba(17,24,39,0.07);
}

.hp-mission-grid h3 { margin: 0 0 10px; font-size: 22px; }

.hp-services {
    background:
        linear-gradient(180deg, var(--hp-light), #ffffff 82%),
        radial-gradient(circle at 10% 20%, rgba(47, 109, 243, 0.08), transparent 22%);
    position: relative;
}

.hp-services::before {
    content: "";
    position: absolute;
    top: 38px;
    right: 5%;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(47, 109, 243, 0.18);
    background: repeating-linear-gradient(45deg, rgba(47,109,243,0.07) 0 1px, transparent 1px 12px);
    border-radius: 40% 60% 50% 50%;
    pointer-events: none;
}

.hp-services::after {
    content: "";
    position: absolute;
    left: 3%;
    bottom: 60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47,109,243,0.13), transparent 64%);
    pointer-events: none;
}

.hp-section-title { text-align: center; max-width: 820px; margin: 0 auto 44px; }
.hp-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

.hp-service-card {
    background: rgba(255,255,255,0.78);
    text-align: center;
    box-shadow: 0 20px 56px rgba(17, 24, 39, 0.10);
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(47, 109, 243, 0.14);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
}

.hp-service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(47,109,243,0.35);
    box-shadow: 0 30px 70px rgba(47,109,243,0.18);
}

.hp-service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s ease; }
.hp-service-card:hover img { transform: scale(1.055); }
.hp-service-card h3 { margin: 0 0 10px; font-size: 20px; }
.hp-service-card-body { padding: 26px 22px 28px; }
.hp-service-card-body p { margin: 0; font-size: 15px; }

.hp-service-details { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 46px; }

.hp-detail-card {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 34px;
    align-items: start;
    padding: 38px;
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(246,249,255,0.82));
    border: 1px solid rgba(47,109,243,0.14);
    box-shadow: 0 22px 58px rgba(17,24,39,0.09);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}

.hp-detail-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--hp-blue), #8db0ff);
}

.hp-detail-intro h3 { margin: 0 0 12px; font-size: 26px; line-height: 1.15; }
.hp-detail-intro p { margin: 0; }

.hp-accordion { display: grid; gap: 12px; }

.hp-accordion-item {
    background: var(--hp-white);
    border: 1px solid var(--hp-border);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
    overflow: hidden;
    border-radius: var(--hp-radius-sm);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.hp-accordion-item:hover,
.hp-accordion-item.active { border-color: rgba(47, 109, 243, 0.28); box-shadow: 0 14px 30px rgba(17, 24, 39, 0.07); }

.hp-accordion-button {
    width: 100%;
    border: 0;
    background: linear-gradient(180deg, #ffffff, #f9fbff);
    color: var(--hp-text);
    padding: 18px 52px 18px 20px;
    text-align: left;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    position: relative;
}

.hp-accordion-button::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hp-blue);
    font-size: 24px;
    line-height: 1;
}

.hp-accordion-item.active .hp-accordion-button::after { content: "−"; }
.hp-accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.hp-accordion-panel p { margin: 0; padding: 0 20px 18px; color: var(--hp-muted); }
.hp-accordion-item.active .hp-accordion-panel { max-height: 260px; }

.hp-faq-section {
    background:
        linear-gradient(180deg, #ffffff, #f5f8ff),
        radial-gradient(circle at 80% 20%, rgba(47,109,243,0.11), transparent 26%);
}

.hp-faq-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 58px; align-items: center; }
.hp-faq-accordion { margin-top: 28px; }
.hp-faq-image { position: relative; }

.hp-faq-image::before {
    content: "";
    position: absolute;
    inset: -18px 18px 18px -18px;
    border: 1px solid rgba(47, 109, 243, 0.18);
    border-radius: var(--hp-radius);
    z-index: -1;
}

.hp-faq-image img { width: 100%; min-height: 540px; object-fit: cover; box-shadow: var(--hp-shadow); border-radius: var(--hp-radius); }

.hp-testimonial-section {
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 22%),
        linear-gradient(135deg, var(--hp-blue), #1f55c8);
    color: var(--hp-white);
    padding: 92px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hp-testimonial-section::before,
.hp-testimonial-section::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 50%;
}

.hp-testimonial-section::before { width: 220px; height: 220px; left: -70px; top: -80px; }
.hp-testimonial-section::after { width: 320px; height: 320px; right: -120px; bottom: -150px; }
.hp-testimonial-card { max-width: 820px; }
.hp-eyebrow-light { color: rgba(255,255,255,0.78); }
.hp-testimonial-card blockquote { margin: 0 auto 24px; max-width: 720px; font-size: clamp(24px, 3vw, 36px); line-height: 1.28; font-weight: 700; letter-spacing: -0.03em; }
.hp-testimonial-card cite { font-style: normal; color: rgba(255,255,255,0.84); font-weight: 700; }

.hp-contact-card {
    padding: 42px;
    background:
        linear-gradient(180deg, rgba(246,249,255,0.92), #ffffff),
        repeating-linear-gradient(135deg, rgba(47,109,243,0.04) 0 1px, transparent 1px 12px);
    border: 1px solid rgba(47,109,243,0.14);
    box-shadow: var(--hp-shadow);
    border-radius: 28px;
}

.hp-contact-card h3 { margin-top: 0; font-size: 28px; }

.hp-footer {
    background:
        radial-gradient(circle at 15% 20%, rgba(47, 109, 243, 0.20), transparent 25%),
        var(--hp-dark);
    color: var(--hp-white);
    padding-top: 70px;
}

.hp-footer p,
.hp-footer a { color: rgba(255, 255, 255, 0.78); }
.hp-footer-logo { width: 155px; margin-bottom: 28px; }
.hp-footer h3 { margin: 0 0 18px; font-size: 22px; }
.hp-footer-bottom { margin-top: 55px; padding: 22px 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; color: rgba(255, 255, 255, 0.55); font-size: 13px; }

@supports not (animation-timeline: view()) {
    .hp-section,
    .hp-feature-card,
    .hp-service-card,
    .hp-detail-card,
    .hp-accordion-item,
    .hp-contact-card,
    .hp-testimonial-card,
    .hp-mission-grid article {
        animation: hpFadeUp 0.75s ease both;
    }
}

@media (max-width: 900px) {
    .hp-topbar-inner { justify-content: flex-start; gap: 12px; }
    .hp-nav { min-height: auto; padding: 18px 0; flex-direction: column; align-items: flex-start; }
    .hp-menu { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 14px 20px; }
    .hp-hero { min-height: 620px; border-bottom-left-radius: 34px; border-bottom-right-radius: 34px; }
    .hp-hero::before { width: 160px; height: 160px; right: -20px; top: 18%; }
    .hp-hero-card { padding: 30px; }
    .hp-feature-grid,
    .hp-two-col,
    .hp-contact-grid,
    .hp-footer-grid,
    .hp-mission-grid,
    .hp-detail-card,
    .hp-faq-grid { grid-template-columns: 1fr; }
    .hp-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-two-col,
    .hp-contact-grid,
    .hp-footer-grid { gap: 38px; }
    .hp-faq-image img { min-height: 380px; }
}

@media (max-width: 640px) {
    .hp-container { width: min(100% - 28px, 1120px); }
    .hp-topbar { font-size: 12px; }
    .hp-logo img { width: 145px; }
    .hp-menu { font-size: 13px; }
    .hp-hero { min-height: 640px; }
    .hp-hero-card { padding: 24px; border-radius: 22px; }
    .hp-hero-card p { font-size: 16px; }
    .hp-section { padding: 72px 0; }
    .hp-section::before { display: none; }
    .hp-feature-grid { grid-template-columns: 1fr; transform: none; margin-bottom: 0; padding-top: 28px; }
    .hp-feature-strip { padding-bottom: 60px; }
    .hp-service-grid { grid-template-columns: 1fr; }
    .hp-detail-card { padding: 24px; }
    .hp-accordion-button { font-size: 15px; padding: 16px 48px 16px 16px; }
    .hp-faq-image img { min-height: 300px; }
    .hp-contact-card { padding: 30px 22px; }
}

/* Mobile menu cleanup */
.hp-mobile-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(47,109,243,.22);
    border-radius: 14px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 12px 26px rgba(17,24,39,.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hp-mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--hp-text);
    border-radius: 99px;
    transition: .24s ease;
}

@media (max-width: 900px) {
    .hp-nav {
        min-height: 82px;
        padding: 14px 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .hp-logo img {
        width: 145px;
        max-height: 62px;
    }

    .hp-mobile-toggle {
        display: inline-flex;
    }

    .hp-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(86vw, 360px);
        height: 100vh;
        padding: 118px 26px 32px;
        background: rgba(255,255,255,.97);
        backdrop-filter: blur(22px);
        box-shadow: -24px 0 60px rgba(17,24,39,.18);
        border-left: 1px solid rgba(47,109,243,.12);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
        transform: translateX(105%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: .28s ease;
        z-index: 1000;
    }

    body.hp-menu-open .hp-menu {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .hp-menu a:not(.hp-button),
    .hp-menu .hp-button {
        width: 100%;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 14px 16px;
        border-radius: 14px;
        background: rgba(246,249,255,.9);
        border: 1px solid rgba(47,109,243,.08);
        font-size: 17px;
        color: var(--hp-text);
        box-shadow: none;
    }

    .hp-menu a:not(.hp-button)::after {
        display: none;
    }

    .hp-menu .hp-button {
        margin-top: 10px;
        justify-content: center;
        color: white;
        background: linear-gradient(135deg, var(--hp-blue), #5a8cff);
    }
}
/* 404 page */
.hp-404-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 10%, rgba(47, 109, 243, 0.22), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(93, 143, 255, 0.18), transparent 26%),
        linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.hp-404-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    position: relative;
    overflow: hidden;
}

.hp-404-page::before,
.hp-404-page::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(47, 109, 243, 0.16);
    border-radius: 46% 54% 62% 38% / 44% 38% 62% 56%;
    pointer-events: none;
}

.hp-404-page::before {
    width: 360px;
    height: 360px;
    left: -120px;
    top: 8%;
    background: repeating-linear-gradient(45deg, rgba(47,109,243,0.06) 0 1px, transparent 1px 14px);
}

.hp-404-page::after {
    width: 460px;
    height: 460px;
    right: -170px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(47,109,243,0.10), transparent 66%);
}

.hp-404-card {
    width: min(720px, 100%);
    padding: clamp(34px, 6vw, 64px);
    text-align: center;
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(47, 109, 243, 0.14);
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.14);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    position: relative;
    z-index: 2;
}

.hp-404-logo img {
    width: 190px;
    margin: 0 auto 28px;
}

.hp-404-card h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1;
    letter-spacing: -0.06em;
    color: var(--hp-text);
}

.hp-404-card p:not(.hp-eyebrow) {
    max-width: 520px;
    margin: 0 auto 30px;
    color: var(--hp-muted);
    font-size: 18px;
}

.hp-404-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hp-button-outline-dark {
    color: var(--hp-blue);
    background: rgba(47, 109, 243, 0.08);
    border: 1px solid rgba(47, 109, 243, 0.22);
    box-shadow: none;
}

.hp-button-outline-dark:hover {
    color: var(--hp-white);
    background: var(--hp-blue);
}