/* =========================================================================
   Home page styles
   ========================================================================= */

/* -------- Entrance animations -------- */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-slide-up {
    animation: fadeSlideUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-float {
    /* Continuous float disabled to keep hero text static for readability */
}

/* -------- Nav link underline (page-specific) -------- */
.nav-underline {
    position: relative;
}

.nav-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-underline:hover::after {
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .animate-fade-slide-up,
    .hero-float {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* -------- Hero section -------- */
.home-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-block: var(--stack-lg);
}

.home-hero-image-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero-image {
    width: 100%;
    height: 120%;
    object-fit: cover;
    filter: brightness(0.95);
    position: absolute;
    top: -10%;
    left: 0;
    will-change: transform;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

.home-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin-inline: auto;
    padding-inline: var(--margin-mobile);
    text-align: center;
}

.home-hero-eyebrow {
    margin-bottom: var(--stack-md);
    background-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.home-hero-title {
    font-family: var(--font-serif);
    font-size: 28px;
    line-height: 36px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: var(--stack-md);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
    .home-hero-title {
        font-size: 48px;
        line-height: 56px;
    }
}

.home-hero-lead {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 28px;
    color: #ffffff;
    margin-bottom: var(--stack-lg);
    max-width: 640px;
    margin-inline: auto;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.home-hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

@media (min-width: 640px) {
    .home-hero-cta {
        flex-direction: row;
    }
}

/* Outlined ghost variant in the primary purple accent — pairs with .btn-primary on
   the hero so both CTAs share the same purple accent without competing. */
.btn-primary-ghost {
    background-color: rgba(133, 57, 115, 0.15);
    border: 2px solid var(--primary);
    color: #ffffff;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-ghost:hover {
    background-color: rgba(133, 57, 115, 0.35);
    box-shadow: 0 8px 20px rgba(133, 57, 115, 0.25);
}

/* -------- Why people choose Repose (bento grid) -------- */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

.bento-card {
    background-color: var(--surface-container-low);
    padding: 32px;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.bento-card:hover {
    background-color: var(--surface-container);
}

@media (min-width: 768px) {
    .bento-card-span-7 { grid-column: span 7; }
    .bento-card-span-5 { grid-column: span 5; }
}

.bento-card-tertiary {
    background-color: var(--tertiary-fixed);
}

.bento-card-secondary {
    background-color: var(--secondary-fixed);
}

.bento-card-primary {
    background-color: var(--primary-fixed);
}

.bento-card-primary:hover {
    background-color: var(--primary-fixed-dim);
}

.bento-icon {
    color: var(--primary);
    font-size: 36px !important;
    margin-bottom: 24px;
}

.bento-card-tertiary .bento-icon { color: var(--tertiary); }
.bento-card-secondary .bento-icon { color: var(--secondary); }

.bento-title {
    font-family: var(--font-serif);
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    color: var(--espresso-text);
    margin-bottom: 16px;
}

.bento-body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    color: rgba(45, 41, 38, 0.7);
}

/* -------- New Client Journey -------- */
.journey-section {
    background-color: var(--soft-cream);
    padding-block: var(--stack-lg);
}

.journey-grid {
    display: flex;
    flex-direction: column;
    gap: 64px;
    align-items: flex-start;
}

@media (min-width: 1024px) {
    .journey-grid {
        flex-direction: row;
        gap: 64px;
    }
    .journey-col {
        flex: 1 1 0;
    }
}

.journey-heading {
    font-family: var(--font-serif);
    font-size: 32px;
    line-height: 40px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
}

.journey-lead {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 28px;
    color: rgba(45, 41, 38, 0.7);
    margin-bottom: 48px;
}

.journey-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.journey-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-sans);
}

.step-eyebrow {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 4px;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    color: var(--espresso-text);
    margin-bottom: 8px;
}

.step-body {
    color: rgba(45, 41, 38, 0.7);
    margin-bottom: 12px;
}

.step-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s ease;
}

.step-link:hover {
    opacity: 0.7;
}

/* Reassurance card */
.reassurance-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--surface-container-high);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(45, 41, 38, 0.08);
}

.reassurance-watermark {
    position: absolute;
    top: 0;
    right: 0;
    padding: 24px;
    opacity: 0.1;
    transition: transform 0.7s ease;
    pointer-events: none;
}

.reassurance-watermark .material-symbols-outlined {
    font-size: 128px !important;
}

.reassurance-card:hover .reassurance-watermark {
    transform: scale(1.25) rotate(12deg);
}

.reassurance-card h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 32px;
}

.reassurance-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.reassurance-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.reassurance-item .material-symbols-outlined {
    color: var(--secondary);
    flex-shrink: 0;
}

.reassurance-item h5 {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--espresso-text);
    margin-bottom: 4px;
}

.reassurance-item p {
    font-family: var(--font-sans);
    font-size: 16px;
    color: rgba(45, 41, 38, 0.6);
    line-height: 22px;
}

.reassurance-quote {
    padding: 24px;
    background-color: var(--surface-container);
    border-radius: var(--radius-xl);
    font-style: italic;
    color: rgba(45, 41, 38, 0.7);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
}

/* -------- Final CTA section -------- */
.final-cta {
    padding-block: var(--stack-lg);
    background-color: var(--primary);
    color: var(--on-primary);
    text-align: center;
}

.final-cta-inner {
    max-width: 720px;
    margin-inline: auto;
    padding-inline: var(--margin-mobile);
}

.final-cta h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    line-height: 36px;
    font-weight: 500;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .final-cta h2 {
        font-size: 32px;
        line-height: 40px;
    }
}

.final-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

@media (min-width: 640px) {
    .final-cta-buttons {
        flex-direction: row;
    }
}

/* -------- Floating mobile CTA -------- */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    background-color: var(--primary);
    color: var(--on-primary);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(45, 41, 38, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-cta:hover {
    transform: scale(1.06);
    box-shadow: 0 16px 32px rgba(45, 41, 38, 0.2);
}

@media (min-width: 768px) {
    .floating-cta {
        display: none;
    }
}

