/* ================================================================
   WEBSITE RESTRUCTURE — General overrides & improvements
   The Good Samaritan Medical Center
   ================================================================ */

/* ----------------------------------------------------------------
   HERO — slight padding adjustment for fixed header
   ---------------------------------------------------------------- */
.hero {
    padding-top: 0 !important;
}

.hero-content {
    margin-top: 130px; /* push content below fixed header+topbar */
}

/* ----------------------------------------------------------------
   SECTION SPACING — better rhythm
   ---------------------------------------------------------------- */
section {
    position: relative;
}

/* ----------------------------------------------------------------
   AUTHORITY / PATHWAY CARDS (home page)
   ---------------------------------------------------------------- */
.home-authority-pathways {
    padding: 80px 0;
    background: #fff;
}

/* Keep this section visible immediately to avoid delayed paint perception. */
.home-authority-pathways .animate-up,
.home-authority-pathways .animate-fade,
.home-authority-pathways .animate-left,
.home-authority-pathways .animate-right {
    opacity: 1 !important;
    transform: none !important;
}

.authority-shell {
    /* no extra needed — inherits .container */
}

.authority-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.authority-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 14px;
}

.authority-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    color: #0a1628;
    line-height: 1.2;
    margin-bottom: 16px;
}

.authority-lead {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.7;
}

.pathway-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pathway-card {
    background: #f7f9fc;
    border: 1px solid #e4eaf3;
    border-radius: 16px;
    padding: 32px 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pathway-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(85, 133, 181, 0.12);
    border-color: var(--primary-blue-light);
}

.pathway-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: #0a1628;
    margin-bottom: 12px;
}

.pathway-card p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.65;
    margin-bottom: 20px;
}

.pathway-card a {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s, color 0.2s;
}

.pathway-card a::after {
    content: '→';
    transition: transform 0.2s;
}

.pathway-card a:hover {
    color: var(--primary-blue-dark);
    gap: 8px;
}

@media (max-width: 900px) {
    .pathway-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .pathway-cards {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------------------
   FINAL CTA SECTION
   ---------------------------------------------------------------- */
.final-cta-section {
    padding: 90px 0;
    background: linear-gradient(180deg, #f5f9fe 0%, #edf3fa 100%);
}

.final-cta-box {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #dbe6f3;
    border-radius: 22px;
    padding: 54px 48px;
    box-shadow: 0 18px 44px rgba(85, 133, 181, 0.14);
    position: relative;
    overflow: hidden;
}

.final-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
}

.final-cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    color: #1f3e66;
    margin-bottom: 18px;
    line-height: 1.25;
}

.final-cta-box p {
    font-size: 16px;
    color: #526a87;
    line-height: 1.72;
    margin: 0 auto 34px;
    max-width: 700px;
}

.final-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.final-cta-section .btn-primary {
    box-shadow: 0 8px 22px rgba(85, 133, 181, 0.22);
}

.final-cta-section .btn-secondary {
    background: #ffffff;
    color: var(--primary-blue-dark);
    border: 2px solid rgba(85, 133, 181, 0.45);
    backdrop-filter: none;
}

.final-cta-section .btn-secondary:hover {
    background: #f3f8fd;
    border-color: var(--primary-blue);
}

@media (max-width: 768px) {
    .final-cta-box {
        padding: 40px 24px;
        border-radius: 16px;
    }
}

/* ----------------------------------------------------------------
   JOURNEY SECTION — improve typography
   ---------------------------------------------------------------- */
.journey-section {
    /* keep existing base, just improve details */
}

.journey-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.25;
    font-weight: 700;
}

/* ----------------------------------------------------------------
   FOOTER — improvements
   ---------------------------------------------------------------- */
.footer-column h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(216, 221, 232, 0.5);
    margin-bottom: 18px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column ul li a {
    font-size: 13.5px;
    color: rgba(200, 215, 235, 0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: #fff;
}

/* ----------------------------------------------------------------
   PAGE HERO (inner pages) — standard hero header for new pages
   ---------------------------------------------------------------- */
.page-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #4f7fac 0%, #5f90bd 60%, #79a8d0 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 50%, rgba(85, 133, 181, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-blue-light);
    margin-bottom: 18px;
}

.page-hero-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--primary-blue-light);
    border-radius: 2px;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 58px);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.page-hero p {
    font-size: clamp(15px, 1.6vw, 18px);
    color: rgba(200, 215, 240, 0.82);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 36px;
}

/* Fixed-header compatibility for existing inner-page hero variants. */
.service-hero,
.therapy-hero {
    padding-top: 150px !important;
}

@media (max-width: 768px) {
    .service-hero,
    .therapy-hero {
        padding-top: 120px !important;
    }
}

/* ----------------------------------------------------------------
   BREADCRUMB
   ---------------------------------------------------------------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(180, 200, 225, 0.6);
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(180, 200, 225, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary-blue-light);
}

.breadcrumb span {
    opacity: 0.5;
}

/* ----------------------------------------------------------------
   STANDARD SECTION (reusable)
   ---------------------------------------------------------------- */
.section-light {
    padding: 88px 0;
    background: #fff;
}

.section-blue {
    padding: 88px 0;
    background: linear-gradient(135deg, #4f7fac 0%, #6596c3 100%);
}

.section-gray {
    padding: 88px 0;
    background: #f4f7fb;
}

/* Section header component */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.section-blue .section-eyebrow {
    color: var(--primary-blue-light);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    color: #0a1628;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-blue .section-title {
    color: #fff;
}

.section-lead {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.7;
}

.section-blue .section-lead {
    color: rgba(200, 218, 240, 0.78);
}

/* ----------------------------------------------------------------
   CARD GRID — reusable
   ---------------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .card-grid,
    .card-grid--2,
    .card-grid--4 { grid-template-columns: 1fr; }
}

/* Base card */
.card {
    background: #fff;
    border: 1px solid #e4eaf3;
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(85, 133, 181, 0.1);
}

.card-dark {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.card-dark:hover {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

/* Card icon */
.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(85, 133, 181, 0.12), rgba(111, 160, 204, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card-dark .card-icon {
    background: rgba(85, 133, 181, 0.15);
    color: var(--primary-blue-light);
}

.card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: #0a1628;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-dark h3 {
    color: #fff;
}

.card p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.65;
    margin-bottom: 18px;
}

.card-dark p {
    color: rgba(195, 212, 235, 0.72);
}

.card-link {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s, color 0.2s;
}

.card-link:hover {
    gap: 8px;
    color: var(--primary-blue-dark);
}

.card-dark .card-link {
    color: var(--primary-blue-light);
}

/* ----------------------------------------------------------------
   CTA STRIP — horizontal CTA band
   ---------------------------------------------------------------- */
.cta-strip {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    padding: 48px 0;
}

.cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-strip-text h2 {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 8px;
}

.cta-strip-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #fff;
    color: var(--primary-blue-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 28px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ----------------------------------------------------------------
   RESPONSIVE TWEAKS
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }

    .section-light,
    .section-blue,
    .section-gray {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .cta-strip-inner {
        flex-direction: column;
        text-align: center;
    }
}
