/* ============================================================
   Modern Procedure Page Styles
   Shared across all /dentistry/ service pages
   ============================================================ */

/* ---------- Variables ---------- */
.proc-page {
    --proc-primary: #2D4A4A;
    --proc-primary-dark: #1B3A3A;
    --proc-primary-light: #3A5F5F;
    --proc-accent: #C8956C;
    --proc-accent-hover: #B8845B;
    --proc-accent-light: #F8F0E8;
    --proc-bg: #FAFBFC;
    --proc-bg-warm: #FDF9F5;
    --proc-text: #2A2F35;
    --proc-text-light: #5A6670;
    --proc-border: #E8ECEF;
    --proc-white: #FFFFFF;
    --proc-radius: 16px;
    --proc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --proc-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --proc-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
    --proc-transition: cubic-bezier(0.4, 0, 0.2, 1);
}

.proc-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--proc-text);
    line-height: 1.7;
    background: var(--proc-bg);
    overflow-x: hidden;
}

/* ---------- Breadcrumbs ---------- */
.proc-breadcrumb {
    padding: 1rem 3rem;
    font-size: 0.85rem;
    color: var(--proc-text-light);
    max-width: 1280px;
    margin: 0 auto;
}
.proc-breadcrumb a {
    color: var(--proc-text-light);
    text-decoration: none;
    transition: color 0.2s var(--proc-transition);
}
.proc-breadcrumb a:hover {
    color: var(--proc-accent);
}
.proc-breadcrumb .separator {
    margin: 0 0.5rem;
    color: #CBD5E0;
}
.proc-breadcrumb .current {
    color: var(--proc-accent);
    font-weight: 600;
}

/* ---------- Hero Section ---------- */
.proc-hero {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: stretch;
    min-height: 420px;
    background: var(--proc-white);
    position: relative;
}
.proc-hero-text {
    padding: 3rem 3rem 5rem;
    padding-left: max(3rem, calc((100vw - 1280px) / 2 + 3rem));
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.proc-hero-text h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--proc-primary);
    line-height: 1.1;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}
.proc-hero-text .proc-divider {
    width: 50px;
    height: 3px;
    background: var(--proc-primary);
    margin: 1.25rem 0;
    border-radius: 4px;
}
.proc-hero-text .proc-tagline {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--proc-accent);
    margin-bottom: 0.75rem;
}
.proc-hero-text .proc-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--proc-text-light);
    margin-bottom: 1.75rem;
    max-width: 440px;
}

/* Hero CTA Button - Dark teal rounded */
.proc-hero-text .proc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    background: var(--proc-primary);
    color: var(--proc-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: all 0.3s var(--proc-transition);
    width: fit-content;
}
.proc-hero-text .proc-cta-btn:hover {
    background: var(--proc-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 74, 74, 0.3);
}
.proc-hero-text .proc-cta-btn i {
    font-size: 0.85rem;
}

/* Hero Image Area */
.proc-hero-image {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    border-radius: 50% 0 0 50% / 10% 0 0 10%;
}
/* Absolutely positioned so a portrait hero image can't stretch the grid row. */
.proc-hero-image img.proc-hero-main-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Surgeon portraits are 3:2 tall, so bias the crop upward to keep the face in frame. */
.doctor-bio .proc-hero-image img.proc-hero-main-img {
    object-position: center 18%;
}
@media (max-width: 1024px) {
    .doctor-bio .proc-hero-image img.proc-hero-main-img {
        object-position: center 28%;
    }
}
.proc-hero-image .proc-doctor-inset {
    position: absolute;
    bottom: 30px;
    right: 20px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid var(--proc-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    background: var(--proc-white);
    z-index: 2;
}

/* Procedure Badge Overlay */
.proc-badge {
    position: absolute;
    bottom: 60px;
    right: 24px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--proc-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(200, 149, 108, 0.35);
}
.proc-badge i {
    font-size: 1.5rem;
    color: var(--proc-accent);
    margin-bottom: 0.4rem;
    opacity: 0.9;
}
.proc-badge .proc-badge-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--proc-white);
    text-align: center;
    line-height: 1.6;
    padding: 0 1rem;
}

/* Badge as image */
.proc-badge-img {
    position: absolute;
    bottom: 60px;
    right: 24px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* Badge row - multiple badges stacked */
.proc-badge-row {
    position: absolute;
    top: 16px;
    right: 16px;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    z-index: 2;
}
.proc-badge-row .proc-badge {
    position: static;
    width: 135px;
    height: 135px;
    min-width: 135px;
    min-height: 135px;
    max-width: 135px;
    max-height: 135px;
    box-sizing: border-box;
}
.proc-badge-row .proc-badge i {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}
.proc-badge-row .proc-badge .proc-badge-text {
    font-size: 0.55rem;
    padding: 0 0.7rem;
}
.proc-badge-row .proc-badge-img {
    position: static;
    width: 155px;
    height: 155px;
    min-width: 155px;
    min-height: 155px;
    max-width: 155px;
    max-height: 155px;
    box-sizing: border-box;
}

/* ---------- Feature Strip (overlapping hero) ---------- */
.proc-features {
    max-width: 1280px;
    margin: -45px auto 0;
    padding: 0 3rem;
    position: relative;
    z-index: 3;
}
.proc-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--proc-white);
    border-radius: var(--proc-radius);
    box-shadow: var(--proc-shadow-md);
    overflow: hidden;
    border: 1px solid var(--proc-border);
}
.proc-feature-item {
    padding: 1.5rem 1.25rem;
    text-align: left;
    border-right: 1px solid var(--proc-border);
    transition: background 0.3s var(--proc-transition);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.proc-feature-item:last-child {
    border-right: none;
}
.proc-feature-item:hover {
    background: rgba(45, 74, 74, 0.03);
}
.proc-feature-item .proc-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: transparent;
    border: 2.5px solid #3A6B6B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3A6B6B;
    font-size: 1.15rem;
    transition: all 0.3s var(--proc-transition);
    -webkit-text-stroke: 0.5px #3A6B6B;
}
.proc-feature-item:hover .proc-feature-icon {
    background: rgba(45, 74, 74, 0.06);
    transform: scale(1.05);
}
.proc-feature-item h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--proc-primary);
    margin: 0 0 0.3rem;
}
.proc-feature-item p {
    font-size: 0.78rem;
    color: var(--proc-text-light);
    margin: 0;
    line-height: 1.45;
}
.proc-feature-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ---------- Content Section ---------- */
.proc-content {
    max-width: 1280px;
    margin: 3.5rem auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: flex-start;
}
.proc-main h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--proc-primary);
    margin: 0 0 1.25rem;
    line-height: 1.25;
}
.proc-main h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--proc-primary);
    margin: 2.5rem 0 0.75rem;
}
.proc-main p {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--proc-text-light);
    margin-bottom: 1rem;
}
.proc-main ul {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}
.proc-main ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--proc-text-light);
    line-height: 1.65;
}
.proc-main ul li i {
    color: var(--proc-accent);
    margin-top: 0.3rem;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.proc-main ul li strong {
    color: var(--proc-text);
}

/* Info/Tip Box */
.proc-info-box {
    background: var(--proc-bg-warm);
    padding: 1.75rem 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--proc-accent);
    margin: 2rem 0;
}
.proc-info-box h4 {
    color: var(--proc-primary);
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
}
.proc-info-box h4 i {
    color: var(--proc-accent);
    margin-right: 0.5rem;
}
.proc-info-box ul {
    margin-bottom: 0;
}

/* ---------- Sidebar CTA Card ---------- */
.proc-sidebar {
    position: sticky;
    top: 100px;
}
.proc-cta-card {
    background: linear-gradient(165deg, var(--proc-primary) 0%, var(--proc-primary-dark) 100%);
    border-radius: var(--proc-radius);
    padding: 2.25rem 1.75rem;
    color: var(--proc-white);
    text-align: center;
    box-shadow: var(--proc-shadow-md);
    position: relative;
    overflow: hidden;
}
.proc-cta-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(200, 149, 108, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.proc-cta-card .proc-cta-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.proc-cta-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--proc-white);
    line-height: 1.3;
}
.proc-cta-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}
.proc-cta-card .proc-cta-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--proc-accent);
    color: var(--proc-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s var(--proc-transition);
    box-shadow: 0 4px 12px rgba(200, 149, 108, 0.25);
}
.proc-cta-card .proc-cta-link:hover {
    background: var(--proc-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 149, 108, 0.35);
}

/* ---------- Bottom CTA Banner (Full-width) ---------- */
.proc-bottom-cta-wrapper {
    width: 100%;
    padding: 0 3rem 3rem;
    box-sizing: border-box;
}
.proc-bottom-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--proc-bg-warm) 0%, #F5F0EB 100%);
    border-radius: var(--proc-radius);
    border: 1px solid rgba(200, 149, 108, 0.12);
    max-width: 1220px;
    margin: 0 auto;
}
.proc-bottom-cta h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: var(--proc-primary);
    margin: 0 0 0.75rem;
}
.proc-bottom-cta p {
    color: var(--proc-text-light);
    max-width: 560px;
    margin: 0 auto 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}
.proc-bottom-cta .proc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--proc-primary);
    color: var(--proc-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s var(--proc-transition);
    box-shadow: 0 4px 12px rgba(45, 74, 74, 0.2);
}
.proc-bottom-cta .proc-cta-btn:hover {
    background: var(--proc-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 74, 74, 0.3);
}

/* ---------- General CTA Button (outside hero) ---------- */
.proc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--proc-primary);
    color: var(--proc-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s var(--proc-transition);
    box-shadow: 0 4px 12px rgba(45, 74, 74, 0.2);
}
.proc-cta-btn:hover {
    background: var(--proc-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 74, 74, 0.3);
}
.proc-cta-btn i {
    font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .proc-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .proc-hero-text {
        padding: 2.5rem 2rem 2rem;
        order: 1;
    }
    .proc-hero-image {
        order: 2;
        min-height: 300px;
        border-radius: 0;
    }
    .proc-hero-image img.proc-hero-main-img {
        border-radius: 0;
    }
    .proc-hero-text h1 {
        font-size: 2.5rem;
    }
    .proc-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .proc-sidebar {
        position: static;
    }
    .proc-features {
        margin-top: -15px;
    }
    .proc-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .proc-feature-item:nth-child(2) {
        border-right: none;
    }
    .proc-feature-item:nth-child(1),
    .proc-feature-item:nth-child(2) {
        border-bottom: 1px solid var(--proc-border);
    }
}

@media (max-width: 768px) {
    .proc-hero-text h1 {
        font-size: 2.25rem;
    }
    .proc-hero-text {
        padding: 2rem 1.5rem 1.5rem;
    }
    .proc-hero-text .proc-intro {
        font-size: 0.95rem;
    }
    .proc-hero-image {
        min-height: 260px;
    }
    .proc-hero-image img.proc-hero-main-img {
        min-height: 260px;
    }
    .proc-hero-image .proc-doctor-inset {
        width: 100px;
        height: 100px;
        bottom: 15px;
        right: 15px;
        border-width: 4px;
    }
    .proc-badge {
        width: 95px;
        height: 95px;
        bottom: 45px;
        right: 12px;
    }
    .proc-badge i {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    .proc-badge .proc-badge-text {
        font-size: 0.45rem;
        padding: 0 0.5rem;
    }
    .proc-features {
        padding: 0 1rem;
        margin-top: 1rem;
    }
    .proc-feature-item {
        padding: 1.25rem 1rem;
        gap: 0.7rem;
    }
    .proc-feature-item .proc-feature-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 0.95rem;
    }
    .proc-feature-item h4 {
        font-size: 0.68rem;
    }
    .proc-feature-item p {
        font-size: 0.75rem;
    }
    .proc-breadcrumb {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .proc-content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        margin-top: 2.5rem;
    }
    .proc-main h2 {
        font-size: 1.6rem;
    }
    .proc-main h3 {
        font-size: 1.15rem;
    }
    .proc-cta-card {
        padding: 2rem 1.5rem;
    }
    .proc-bottom-cta-wrapper {
        padding: 0 1.25rem 2.5rem;
    }
    .proc-bottom-cta {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .proc-hero-text h1 {
        font-size: 1.85rem;
    }
    .proc-hero-text {
        padding: 1.5rem 1.25rem 1.25rem;
    }
    .proc-hero-text .proc-tagline {
        font-size: 0.7rem;
    }
    .proc-hero-text .proc-intro {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    .proc-hero-text .proc-cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
    .proc-hero-image {
        min-height: 220px;
    }
    .proc-hero-image img.proc-hero-main-img {
        min-height: 220px;
    }
    .proc-hero-image .proc-doctor-inset {
        width: 80px;
        height: 80px;
        bottom: 10px;
        right: 10px;
        border-width: 3px;
    }
    .proc-features {
        padding: 0 0.75rem;
        margin-top: -20px;
    }
    .proc-features-grid {
        grid-template-columns: 1fr;
        border-radius: 12px;
    }
    .proc-feature-item {
        border-right: none;
        border-bottom: 1px solid var(--proc-border);
        padding: 1rem;
    }
    .proc-feature-item:last-child {
        border-bottom: none;
    }
    .proc-feature-item:nth-child(1),
    .proc-feature-item:nth-child(2) {
        border-bottom: 1px solid var(--proc-border);
    }
    .proc-breadcrumb {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    .proc-content {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-top: 2rem;
        gap: 2rem;
    }
    .proc-main h2 {
        font-size: 1.4rem;
    }
    .proc-main h3 {
        font-size: 1.1rem;
        margin-top: 2rem;
    }
    .proc-main p {
        font-size: 0.95rem;
    }
    .proc-main ul li {
        font-size: 0.9rem;
        gap: 0.6rem;
    }
    .proc-info-box {
        padding: 1.25rem 1.25rem;
    }
    .proc-cta-card {
        padding: 1.75rem 1.25rem;
    }
    .proc-cta-card h3 {
        font-size: 1.2rem;
    }
    .proc-bottom-cta-wrapper {
        padding: 0 1rem 2rem;
    }
    .proc-bottom-cta {
        padding: 2rem 1.25rem;
        border-radius: 12px;
    }
    .proc-bottom-cta h3 {
        font-size: 1.3rem;
    }
    .proc-bottom-cta p {
        font-size: 0.9rem;
    }
}

/* ============================================================
   Shared procedure sections
   Historically prefixed .nerve-* (first used on the nerve-repair
   page); now used by every procedure page and the shared includes
   in templates/includes/. Must sit inside .proc-page for the vars.
   ============================================================ */
.nerve-section { max-width: 1220px; margin: 0 auto; padding: 3rem 3rem 0; }
.nerve-section-title { text-align: center; margin-bottom: 2rem; }
.nerve-section-title h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; font-weight: 700; color: var(--proc-primary); margin: 0 0 0.5rem; }
.nerve-section-title p { color: var(--proc-text-light); max-width: 760px; margin: 0 auto; line-height: 1.7; }

/* Two-column card lists (causes / symptoms, risks / benefits) */
.nerve-two-col { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .nerve-two-col { grid-template-columns: repeat(2, 1fr); } }
.nerve-list-card { background: #fff; border-radius: 14px; padding: 1.75rem; box-shadow: 0 8px 24px rgba(0,0,0,0.06); border: 1px solid var(--proc-border); min-width: 0; }
.nerve-list-card h3 { font-size: 1.15rem; color: var(--proc-primary); margin: 0 0 1rem; display: flex; align-items: center; gap: 0.6rem; }
.nerve-list-card h3 i { color: var(--proc-accent); }
.nerve-list-card ul { list-style: none; margin: 0; padding: 0; }
.nerve-list-card li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--proc-text-light); line-height: 1.6; padding: 0.4rem 0; }
.nerve-list-card li i { color: var(--proc-accent); margin-top: 0.3rem; font-size: 0.85rem; flex-shrink: 0; }

/* Vertical timeline */
.nerve-timeline { position: relative; max-width: 880px; margin: 0 auto; }
.nerve-timeline::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--proc-accent), var(--proc-border)); }
.nerve-tl-item { position: relative; padding: 0 0 1.75rem 5rem; }
.nerve-tl-item:last-child { padding-bottom: 0; }
.nerve-tl-marker { position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--proc-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 6px 18px rgba(45,74,74,0.25); z-index: 1; }
.nerve-tl-content h4 { margin: 0 0 0.35rem; color: var(--proc-primary); font-size: 1.1rem; }
.nerve-tl-window { display: inline-block; background: var(--proc-accent-light); color: var(--proc-accent-hover); font-weight: 700; font-size: 0.8rem; padding: 0.2rem 0.7rem; border-radius: 999px; margin-bottom: 0.5rem; }
.nerve-tl-content p { margin: 0; color: var(--proc-text-light); line-height: 1.7; }

/* Options / cards grid */
.nerve-options-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .nerve-options-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .nerve-options-grid { grid-template-columns: repeat(3, 1fr); } }
.nerve-option-card { background: #fff; border-radius: 14px; padding: 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.06); border: 1px solid var(--proc-border); transition: transform 0.25s ease, box-shadow 0.25s ease; min-width: 0; }
a.nerve-option-card { display: block; text-decoration: none; color: inherit; }
a.nerve-option-card h3, a.nerve-option-card p { text-decoration: none; }
a.nerve-option-card:hover h3 { color: var(--proc-accent-hover); }
.nerve-option-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,0.1); }
.nerve-option-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--proc-accent-light); color: var(--proc-accent); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 1rem; }
.nerve-option-card h3 { font-size: 1.1rem; color: var(--proc-primary); margin: 0 0 0.5rem; }
.nerve-option-card p { margin: 0; color: var(--proc-text-light); line-height: 1.7; font-size: 0.95rem; }

/* Referral / highlight panel */
.nerve-referral { background: var(--proc-bg-warm); border-radius: 18px; max-width: 1220px; margin: 3rem auto 0; padding: 3rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; border: 1px solid var(--proc-border); }
@media (min-width: 900px) { .nerve-referral { grid-template-columns: 0.85fr 1.15fr; } }
.nerve-referral > * { min-width: 0; }
.nerve-referral-img { text-align: center; }
.nerve-referral-img img { width: 100%; max-width: 420px; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,0.18); border: 1px solid var(--proc-border); }
.nerve-referral-content h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.9rem; color: var(--proc-primary); margin: 0 0 0.75rem; }
.nerve-referral-content p { color: var(--proc-text-light); line-height: 1.75; margin: 0 0 1.25rem; }
.nerve-referral-content ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.nerve-referral-content li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--proc-text); line-height: 1.6; padding: 0.35rem 0; }
.nerve-referral-content li i { color: var(--proc-accent); margin-top: 0.3rem; flex-shrink: 0; }
.nerve-referral-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.nerve-referral-actions a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; text-decoration: none; }
.nerve-referral-actions .nerve-btn-primary { background: var(--proc-primary); color: #fff; padding: 0.8rem 1.5rem; border-radius: 999px; transition: background 0.25s ease; }
.nerve-referral-actions .nerve-btn-primary:hover { background: var(--proc-primary-dark); }
.nerve-referral-actions .nerve-btn-secondary { color: var(--proc-primary); padding: 0.8rem 0.5rem; }

/* Local SEO locations grid */
.nerve-locations-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 1100px; margin: 0 auto; }
@media (min-width: 768px) { .nerve-locations-grid { grid-template-columns: repeat(3, 1fr); } }
.nerve-location-card { background: #fff; border-radius: 14px; padding: 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.06); border: 1px solid var(--proc-border); min-width: 0; }
.nerve-location-card h3 { font-size: 1.05rem; color: var(--proc-primary); margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.nerve-location-card h3 i { color: var(--proc-accent); }
.nerve-location-card p { margin: 0; color: var(--proc-text-light); line-height: 1.7; font-size: 0.95rem; }
.nerve-location-card a { color: var(--proc-accent); }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 880px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 14px; border: 1px solid var(--proc-border); box-shadow: 0 4px 16px rgba(0,0,0,0.04); overflow: hidden; }
.faq-question { width: 100%; background: none; border: none; padding: 1.25rem 1.5rem; font-size: 1rem; font-weight: 700; color: var(--proc-primary); text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: inherit; }
.faq-question:hover { background: rgba(45,74,74,0.03); }
.faq-question i { color: var(--proc-accent); transition: transform 0.3s ease; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding: 0 1.5rem 1.25rem; color: var(--proc-text-light); line-height: 1.75; }
.faq-answer-inner a { color: var(--proc-accent); }
.faq-item.active .faq-answer { max-height: 900px; }

@media (max-width: 768px) {
    .nerve-section { padding: 2.5rem 1.25rem 0; }
    .nerve-section-title h2 { font-size: 1.5rem; }
    .nerve-referral { padding: 2rem 1.25rem; margin-top: 2.5rem; }
    .nerve-referral-content h2 { font-size: 1.4rem; }
}
