/* =========================================================
   FREOPSYCH
   Homepage Styles
   File: /css/home.css
   Bootstrap 5.3 compatible
   ========================================================= */


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.home-hero {
    position: relative;
    overflow: hidden;
    padding-top: 5.8rem;
    padding-bottom: 5.8rem;
    background:
        radial-gradient(circle at 92% 12%, rgba(47, 95, 136, 0.10), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #ffffff 58%, #f3f7fa 100%);
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -140px;
    bottom: -190px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(47, 95, 136, 0.10);
    border-radius: 50%;
    pointer-events: none;
}

.home-hero .container {
    position: relative;
    z-index: 1;
}

.home-hero-title {
    max-width: 820px;
    margin-bottom: 1.35rem;
}

.home-hero-lead {
    max-width: 760px;
    margin-bottom: 1.2rem;
    color: var(--freopsych-navy);
    font-family: var(--freopsych-font-serif);
    font-size: clamp(1.35rem, 2.25vw, 1.75rem);
    line-height: 1.45;
}

.home-hero-intro {
    max-width: 730px;
    margin-bottom: 1.8rem;
    color: var(--freopsych-muted);
    font-size: 1.06rem;
    line-height: 1.75;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.7rem;
}

.home-hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    color: var(--freopsych-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.home-hero-trust-separator {
    color: #a4afb7;
}


/* ---------------------------------------------------------
   Hero professional card
   --------------------------------------------------------- */

.home-hero-professional-card {
    position: relative;
    max-width: 430px;
    margin-left: auto;
    padding: 0.55rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(217, 225, 231, 0.9);
    border-radius: 22px;
    box-shadow: 0 22px 50px rgba(16, 38, 58, 0.11);
    backdrop-filter: blur(6px);
}

.home-hero-professional-card::before {
    content: "";
    position: absolute;
    top: -18px;
    left: -18px;
    width: 74px;
    height: 74px;
    border-top: 2px solid rgba(47, 95, 136, 0.24);
    border-left: 2px solid rgba(47, 95, 136, 0.24);
    border-radius: 18px 0 0 0;
    pointer-events: none;
}

.home-hero-professional-card-inner {
    padding: 2.25rem;
    background: linear-gradient(155deg, #17324d 0%, #10263a 100%);
    border-radius: 17px;
    color: rgba(255, 255, 255, 0.80);
}

.home-hero-professional-card-inner p {
    margin-bottom: 0.9rem;
}

.home-hero-professional-card-inner hr {
    margin: 1.35rem 0;
    border-color: rgba(255, 255, 255, 0.16);
}

.home-hero-name {
    margin-bottom: 0.15rem !important;
    color: #ffffff;
    font-family: var(--freopsych-font-serif);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.15;
}

.home-hero-role {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
}

.home-hero-professional-card .home-text-link {
    color: #ffffff;
}

.home-hero-professional-card .home-text-link:hover,
.home-hero-professional-card .home-text-link:focus {
    color: #ffffff;
}


/* ---------------------------------------------------------
   Shared homepage text link
   --------------------------------------------------------- */

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: var(--freopsych-navy);
    font-weight: 600;
    text-decoration: none;
}

.home-text-link span {
    transition: transform 0.2s ease;
}

.home-text-link:hover span,
.home-text-link:focus span {
    transform: translateX(3px);
}


/* ---------------------------------------------------------
   WHAT BRINGS YOU HERE?
   --------------------------------------------------------- */

.home-help-section {
    border-top: 1px solid var(--freopsych-stone-deep);
    border-bottom: 1px solid var(--freopsych-stone-deep);
}

.home-service-card {
    position: relative;
    overflow: hidden;
    padding: 1.8rem;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.home-service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--freopsych-blue);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.home-service-card:hover {
    transform: translateY(-3px);
    border-color: #cbd7df;
    box-shadow: var(--freopsych-shadow-md);
}

.home-service-card:hover::before {
    opacity: 1;
}

.home-service-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.45rem;
}

.home-service-card p {
    margin-bottom: 1rem;
    font-size: 0.96rem;
}


/* ---------------------------------------------------------
   EXPERIENCE / COMPLEXITY
   --------------------------------------------------------- */

.home-experience-section {
    position: relative;
}

.home-experience-section h2 {
    max-width: 520px;
}

.home-experience-copy {
    max-width: 720px;
    padding-left: 2rem;
    border-left: 1px solid var(--freopsych-border);
}

.home-experience-copy .lead {
    color: var(--freopsych-navy);
    font-family: var(--freopsych-font-serif);
    font-size: 1.45rem;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   ABOUT DENIS
   --------------------------------------------------------- */

.home-about-section {
    border-top: 1px solid rgba(47, 95, 136, 0.08);
    border-bottom: 1px solid rgba(47, 95, 136, 0.08);
}

.home-about-visual {
    max-width: 470px;
}

.home-about-placeholder {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(234, 241, 246, 0.72)),
        var(--freopsych-stone);
    border: 1px solid rgba(47, 95, 136, 0.14);
    border-radius: var(--freopsych-radius-lg);
    box-shadow: var(--freopsych-shadow-md);
    color: var(--freopsych-muted);
    text-align: center;
}

.home-about-placeholder::before,
.home-about-placeholder::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(47, 95, 136, 0.11);
    border-radius: 50%;
}

.home-about-placeholder::before {
    width: 310px;
    height: 310px;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
}

.home-about-placeholder::after {
    width: 520px;
    height: 520px;
    bottom: -290px;
    right: -230px;
}

.home-about-placeholder span {
    position: relative;
    z-index: 1;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 6px;
    font-size: 0.86rem;
}

.home-credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.home-credentials-grid .credential-panel {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
}

.home-credentials-grid .credential-panel strong {
    display: block;
    margin-bottom: 0.28rem;
}

.home-credentials-grid .credential-panel span {
    color: var(--freopsych-muted);
    font-size: 0.87rem;
    line-height: 1.45;
}


/* ---------------------------------------------------------
   HOW I WORK
   --------------------------------------------------------- */

.home-approach-section {
    background: #ffffff;
}

.home-process-card {
    position: relative;
    height: 100%;
    padding: 1.75rem 1.5rem;
    border-top: 1px solid var(--freopsych-border);
}

.home-process-number {
    display: block;
    margin-bottom: 1.4rem;
    color: var(--freopsych-blue-mid);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
}

.home-process-card h3 {
    margin-bottom: 0.7rem;
    font-size: 1.55rem;
}

.home-process-card p {
    color: var(--freopsych-muted);
    font-size: 0.95rem;
}


/* ---------------------------------------------------------
   CONSULTATION OPTIONS
   --------------------------------------------------------- */

.home-consult-section {
    border-top: 1px solid var(--freopsych-stone-deep);
    border-bottom: 1px solid var(--freopsych-stone-deep);
}

.home-consult-card {
    padding: 1.8rem;
}

.home-consult-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
}

.home-consult-card p {
    min-height: 76px;
}


/* ---------------------------------------------------------
   REFERRALS
   --------------------------------------------------------- */

.home-referrals-section h2 {
    max-width: 600px;
}

.home-gp-callout {
    height: 100%;
    padding: 2.3rem;
}

.home-gp-callout h3 {
    font-size: 1.8rem;
}


/* ---------------------------------------------------------
   WHOLELIFELINES
   --------------------------------------------------------- */

.home-newsletter-section {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(47, 95, 136, 0.08);
}

.home-newsletter-section::after {
    content: "";
    position: absolute;
    top: -170px;
    right: -150px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(47, 95, 136, 0.10);
    border-radius: 50%;
    pointer-events: none;
}

.home-newsletter-section .container {
    position: relative;
    z-index: 1;
}

.home-newsletter-section h2 {
    margin-bottom: 0.8rem;
}

.home-external-note {
    margin-top: 0.7rem;
    color: var(--freopsych-muted);
    font-size: 0.78rem;
}


/* ---------------------------------------------------------
   FINAL CTA
   --------------------------------------------------------- */

.home-final-cta {
    padding-top: 4.6rem;
    padding-bottom: 4.6rem;
    background:
        linear-gradient(135deg, #17324d 0%, #10263a 100%);
    color: rgba(255, 255, 255, 0.80);
}

.home-final-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3rem;
}

.home-final-cta h2 {
    max-width: 820px;
    margin-bottom: 1rem;
    color: #ffffff;
}

.home-final-cta p {
    max-width: 800px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.74);
}

.home-final-cta .home-final-cta-eyebrow {
    margin-bottom: 0.8rem;
    color: #b8cede;
}

.home-final-cta-action {
    flex-shrink: 0;
}


/* ---------------------------------------------------------
   Responsive: medium desktop / tablet landscape
   --------------------------------------------------------- */

@media (max-width: 1199.98px) {

    .home-hero {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .home-hero-professional-card-inner {
        padding: 1.9rem;
    }

    .home-hero-name {
        font-size: 1.8rem;
    }
}


/* ---------------------------------------------------------
   Responsive: tablet
   --------------------------------------------------------- */

@media (max-width: 991.98px) {

    .home-hero {
        padding-top: 4.4rem;
        padding-bottom: 4.5rem;
    }

    .home-hero-professional-card {
        max-width: 100%;
        margin-left: 0;
    }

    .home-hero-professional-card-inner {
        padding: 2rem;
    }

    .home-experience-copy {
        padding-left: 0;
        border-left: 0;
    }

    .home-about-visual {
        max-width: 580px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-about-placeholder {
        min-height: 480px;
    }

    .home-final-cta-inner {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .home-final-cta-action {
        text-align: left;
    }
}


/* ---------------------------------------------------------
   Responsive: mobile
   --------------------------------------------------------- */

@media (max-width: 767.98px) {

    .home-hero {
        padding-top: 3.5rem;
        padding-bottom: 3.7rem;
    }

    .home-hero-title {
        margin-bottom: 1.1rem;
    }

    .home-hero-lead {
        font-size: 1.3rem;
    }

    .home-hero-intro {
        font-size: 1rem;
    }

    .home-hero-actions {
        align-items: stretch;
    }

    .home-hero-actions .btn {
        flex: 1 1 100%;
    }

    .home-hero-trust {
        display: block;
    }

    .home-hero-trust > span {
        display: inline;
    }

    .home-hero-trust-separator {
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }

    .home-hero-professional-card::before {
        display: none;
    }

    .home-hero-professional-card-inner {
        padding: 1.7rem;
    }

    .home-service-card {
        padding: 1.5rem;
    }

    .home-credentials-grid {
        grid-template-columns: 1fr;
    }

    .home-about-placeholder {
        min-height: 420px;
    }

    .home-process-card {
        padding: 1.45rem 1.1rem;
    }

    .home-consult-card p {
        min-height: 0;
    }

    .home-gp-callout {
        padding: 1.7rem;
    }

    .home-newsletter-section .text-lg-end {
        text-align: left !important;
    }

    .home-final-cta {
        padding-top: 3.7rem;
        padding-bottom: 3.7rem;
    }
}


/* ---------------------------------------------------------
   Responsive: small mobile
   --------------------------------------------------------- */

@media (max-width: 575.98px) {

    .home-hero {
        padding-top: 3rem;
        padding-bottom: 3.2rem;
    }

    .home-hero-professional-card-inner {
        padding: 1.45rem;
    }

    .home-hero-name {
        font-size: 1.65rem;
    }

    .home-about-placeholder {
        min-height: 360px;
    }

    .home-service-card h3 {
        font-size: 1.35rem;
    }

    .home-final-cta .btn {
        width: 100%;
    }
}


/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .home-service-card,
    .home-text-link span {
        transition: none !important;
    }

    .home-service-card:hover {
        transform: none;
    }

    .home-text-link:hover span,
    .home-text-link:focus span {
        transform: none;
    }
}
