:root {
    --ccip-purple: #6A4C93;
    --ccip-soft-purple: #8E6BBE;
    --ccip-green: #6FBF73;
    --ccip-deep-green: #4F8A5B;
    --ccip-sage: #A3BFA6;
    --ccip-light-gray: #DADADA;
    --ccip-ink: #1f2430;
    --ccip-muted: #5f6875;
    --ccip-bg: #f8faf8;
    --ccip-white: #ffffff;
    --ccip-teal: #2f9998;
    --ccip-footer-teal: #416f75;
    --ccip-radius: 18px;
    --ccip-shadow: 0 18px 45px rgba(31, 36, 48, 0.12);
}

/* -----------------------------
   Base
----------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ccip-ink);
    background: var(--ccip-white);
    line-height: 1.6;
    text-align: left;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

img {
    display: block;
}

a {
    color: var(--ccip-purple);
    text-decoration: none;
}

p {
    margin-top: 0;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.container.narrow {
    width: min(1180px, calc(100% - 40px));
}

.site-main,
section,
footer,
header {
    max-width: 100%;
}

.intro-copy p,
.provider-grid p,
.service-card p,
.cta-box p,
.footer-brand p,
.page-content p,
.about-provider-copy p,
.about-approach-copy p,
.about-mission-card p,
.about-faq-content p,
.about-value-card p,
.contact-intro p {
    text-align: justify;
}

/* -----------------------------
   Header / Navigation
----------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.top-contact-bar {
    background: var(--ccip-purple);
    color: white;
    font-size: 14px;
}

.top-contact-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 26px;
    padding: 7px 0;
    text-align: left;
}

.top-contact-inner a {
    color: white;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.top-icon,
.top-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 13px;
    line-height: 1;
    color: #ffffff !important;
}

.main-nav-wrap {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(218, 218, 218, 0.8);
}

.main-nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    padding: 10px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    min-width: 0;
}

.brand img {
    width: 360px;
    max-width: 100%;
    max-height: 92px;
    object-fit: contain;
    margin: 0;
}

.mobile-menu-toggle {
    display: none;
}

.nav-drawer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    width: 100%;
    min-width: 0;
}

.primary-nav {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.nav-menu li {
    min-width: 0;
}

.nav-menu a {
    color: var(--ccip-ink);
    font-weight: 700;
    font-size: 15px;
    position: relative;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--ccip-purple);
}

.header-actions,
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
    min-width: 0;
}

.header-actions .btn {
    white-space: nowrap;
}

/* -----------------------------
   Buttons
----------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    border: 1px solid transparent;
    transition: 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--ccip-purple), var(--ccip-soft-purple), var(--ccip-green));
    color: white;
    box-shadow: 0 12px 24px rgba(106, 76, 147, 0.22);
}

.btn-secondary {
    background: var(--ccip-white);
    color: var(--ccip-purple);
    border-color: var(--ccip-light-gray);
}

.btn-outline {
    color: var(--ccip-purple);
    background: white;
    border-color: rgba(106, 76, 147, 0.35);
}

.btn-primary:hover,
.btn-hero:hover {
    background: white;
    color: var(--ccip-purple);
    border-color: var(--ccip-purple);
    box-shadow: 0 12px 24px rgba(106, 76, 147, 0.18);
}

.btn-outline:hover,
.btn-secondary:hover {
    background: linear-gradient(135deg, var(--ccip-purple), var(--ccip-soft-purple), var(--ccip-green));
    color: white;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(106, 76, 147, 0.22);
}

/* -----------------------------
   Hover Underlines
----------------------------- */

.nav-menu a::after,
.site-footer a::after,
.top-contact-inner a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.22s ease;
}

.nav-menu a:hover::after,
.site-footer a:hover::after,
.top-contact-inner a:hover::after {
    width: 100%;
}

.btn::after,
.header-actions a::after,
.hero-banner-content a::after,
.cta-box a::after {
    display: none !important;
}

/* -----------------------------
   Typography
----------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    color: var(--ccip-deep-green);
    background: rgba(111, 191, 115, 0.13);
    border: 1px solid rgba(111, 191, 115, 0.22);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px;
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    line-height: 1.12;
    margin: 0 0 18px;
    color: var(--ccip-ink);
    text-align: left;
}

h1 {
    font-size: clamp(42px, 6vw, 68px);
    max-width: 780px;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.035em;
}

h3 {
    font-size: 23px;
    letter-spacing: -0.02em;
}

.centered {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 46px;
}

.centered h1,
.centered h2,
.centered h3,
.section-heading.centered h2,
.section-heading.centered p {
    text-align: center;
}

.section-heading p {
    color: var(--ccip-muted);
    font-size: 18px;
}

/* -----------------------------
   Hero
----------------------------- */

.hero-image-banner {
    padding: 0;
    background: #eef7f5;
}

.hero-bg {
    position: relative;
    min-height: 690px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(236, 248, 248, 0.96) 0%,
            rgba(236, 248, 248, 0.90) 25%,
            rgba(236, 248, 248, 0.68) 45%,
            rgba(236, 248, 248, 0.25) 66%,
            rgba(236, 248, 248, 0.02) 100%);
    z-index: 1;
}

.hero-banner-inner {
    position: relative;
    z-index: 2;
}

.hero-banner-content {
    max-width: 760px;
    padding: 108px 0;
    text-align: left;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    background: #4f8a94;
    color: #ffffff;
    border-radius: 999px;
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 28px;
    box-shadow: 0 10px 24px rgba(31, 36, 48, 0.12);
    overflow-wrap: anywhere;
}

.hero-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    flex: 0 0 auto;
}

.hero-banner-content h1 {
    color: #050505;
    font-size: clamp(42px, 4.8vw, 64px);
    line-height: 1.14;
    letter-spacing: -0.045em;
    max-width: 780px;
    margin-bottom: 30px;
}

.hero-banner-content p {
    color: #050505;
    font-size: 18px;
    line-height: 1.65;
    max-width: 710px;
    margin-bottom: 34px;
    font-weight: 500;
    text-align: left;
}

.btn-hero {
    background: var(--ccip-teal);
    color: #ffffff;
    border-color: var(--ccip-teal);
    min-height: 52px;
    padding: 15px 26px;
    font-size: 16px;
    box-shadow: 0 14px 28px rgba(47, 153, 152, 0.24);
}

/* -----------------------------
   Shared Sections
----------------------------- */

.intro-section,
.services-section,
.provider-section,
.insurance-section,
.testimonials-section,
.cta-section,
.page-content {
    padding: 88px 0;
}

/* -----------------------------
   Intro Section
----------------------------- */

.intro-grid,
.intro-grid-with-image {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: center;
}

.intro-grid p {
    color: var(--ccip-muted);
    font-size: 18px;
}

.intro-image-card {
    background: linear-gradient(135deg, rgba(106, 76, 147, 0.12), rgba(111, 191, 115, 0.12));
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--ccip-shadow);
    min-width: 0;
}

.intro-image-card img {
    width: 100%;
    border-radius: 22px;
    object-fit: cover;
}

/* -----------------------------
   Services Section
----------------------------- */

.services-section {
    background: var(--ccip-bg);
}

.services-bg-section {
    position: relative;
    background-image: url('/wp-content/themes/compassionate-care-ip/assets/services-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    overflow: hidden;
}

.services-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.88),
            rgba(248, 250, 248, 0.82));
    z-index: 1;
}

.services-content {
    position: relative;
    z-index: 2;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.service-card,
.testimonial-card,
.about-value-card {
    min-width: 0;
}

.service-card {
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(218, 218, 218, 0.9);
    border-radius: var(--ccip-radius);
    padding: 28px;
    box-shadow: 0 12px 30px rgba(31, 36, 48, 0.08);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--ccip-purple), var(--ccip-green));
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ccip-purple), var(--ccip-green));
    color: white;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 18px;
}

.service-card h3 {
    color: var(--ccip-purple);
}

.service-card p {
    color: var(--ccip-muted);
}

/* -----------------------------
   Provider Section
----------------------------- */

.provider-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: center;
}

.provider-grid p {
    color: var(--ccip-muted);
    font-size: 18px;
}

.provider-image-wrap {
    background: linear-gradient(135deg, rgba(106, 76, 147, 0.12), rgba(111, 191, 115, 0.12));
    border-radius: 30px;
    padding: 24px;
    min-width: 0;
}

.provider-image-wrap img {
    border-radius: 24px;
    width: 100%;
}

/* -----------------------------
   Insurance Section
----------------------------- */

.insurance-section {
    background:
        linear-gradient(135deg, rgba(106, 76, 147, 0.08), rgba(111, 191, 115, 0.16)),
        #f1f7f2;
}

.insurance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.insurance-logo {
    min-height: 138px;
    min-width: 0;
    background: white;
    border: 1px solid rgba(218, 218, 218, 0.9);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.insurance-logo img {
    width: 100%;
    max-width: 230px;
    height: 82px;
    object-fit: contain;
}

.insurance-logo img[alt="Harvard Pilgrim Health Care"] {
    max-width: 260px;
    height: 90px;
}

.insurance-logo.coming-soon img {
    opacity: 0.82;
}

.insurance-logo.coming-soon span {
    position: absolute;
    right: 12px;
    top: 12px;
    background: var(--ccip-green);
    color: white;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 900;
}

/* -----------------------------
   Testimonials
----------------------------- */

.testimonials-section {
    background: var(--ccip-bg);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.testimonial-card {
    background: white;
    border: 1px solid rgba(218, 218, 218, 0.9);
    border-radius: var(--ccip-radius);
    padding: 28px;
    box-shadow: 0 12px 30px rgba(31, 36, 48, 0.08);
}

.testimonial-card p {
    color: var(--ccip-muted);
    text-align: left;
}

.testimonial-card strong {
    display: block;
    margin-top: 18px;
    color: var(--ccip-purple);
}

.stars {
    color: #d77925;
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.testimonial-disclaimer {
    display: none !important;
}

/* -----------------------------
   CTA Section
----------------------------- */

.cta-section {
    background: white;
}

.cta-box {
    text-align: center;
    color: white;
    border-radius: 30px;
    padding: 64px;
    background:
        linear-gradient(135deg, rgba(106, 76, 147, 0.98), rgba(79, 138, 91, 0.95)),
        var(--ccip-purple);
}

.cta-box h2 {
    color: white;
    text-align: center;
}

.cta-box p {
    max-width: 760px;
    margin: 0 auto 28px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

/* -----------------------------
   Footer
----------------------------- */

.site-footer {
    background: var(--ccip-footer-teal);
    color: white;
    padding-top: 68px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    text-align: left;
}

.footer-brand img {
    width: 260px;
    max-width: 100%;
    margin-bottom: 18px;
    background: white;
    border-radius: 12px;
    padding: 10px;
}

.footer-brand p {
    max-width: 360px;
    color: rgba(255, 255, 255, 0.86);
}

.site-footer h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: white;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 10px;
}

.site-footer a {
    color: white;
    position: relative;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.86);
}

.footer-bottom {
    margin-top: 52px;
    padding: 18px 0;
    background: var(--ccip-purple);
    text-align: center;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
    text-align: center;
}

/* -----------------------------
   Default Page Templates / Legal Pages
----------------------------- */

.page-hero {
    padding: 72px 0;
    background:
        radial-gradient(circle at 15% 10%, rgba(111, 191, 115, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(106, 76, 147, 0.1), rgba(111, 191, 115, 0.12));
}

.page-hero h1 {
    color: var(--ccip-purple);
}

.page-content {
    font-size: 18px;
}

.page-content h2,
.page-content h3 {
    color: var(--ccip-purple);
    margin-top: 36px;
}

.page-content ul {
    padding-left: 22px;
}

/* -----------------------------
   Contact Page
----------------------------- */

.contact-hero {
    padding: 0;
    background: #eef7f5;
}

.contact-hero-bg {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(236, 248, 248, 0.98) 0%,
            rgba(236, 248, 248, 0.92) 34%,
            rgba(236, 248, 248, 0.62) 58%,
            rgba(236, 248, 248, 0.18) 100%);
    z-index: 1;
}

.contact-hero-inner {
    position: relative;
    z-index: 2;
}

.contact-hero-content {
    max-width: 760px;
    padding: 84px 0;
}

.contact-hero h1 {
    color: #050505;
    font-size: clamp(44px, 5.2vw, 68px);
    line-height: 1.1;
    letter-spacing: -0.045em;
    margin-bottom: 24px;
}

.contact-hero p {
    color: #050505;
    font-size: 19px;
    line-height: 1.65;
    max-width: 700px;
    margin-bottom: 0;
    text-align: left;
}

.contact-main-section {
    padding: 88px 0;
    background: white;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 54px;
    align-items: start;
}

.contact-intro p {
    color: var(--ccip-muted);
    font-size: 18px;
}

.contact-support-image {
    margin: 30px 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--ccip-shadow);
    background: linear-gradient(135deg, rgba(106, 76, 147, 0.12), rgba(111, 191, 115, 0.12));
    padding: 14px;
}

.contact-support-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 18px;
}

.contact-appointment-box {
    margin-top: 32px;
    padding: 30px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(106, 76, 147, 0.08), rgba(111, 191, 115, 0.14)),
        #f8faf8;
    border: 1px solid rgba(218, 218, 218, 0.85);
}

.contact-appointment-box h3 {
    color: var(--ccip-purple);
}

.contact-appointment-box p {
    margin-bottom: 24px;
}

.contact-form-card {
    min-width: 0;
    background: white;
    border: 1px solid rgba(218, 218, 218, 0.9);
    border-radius: 24px;
    padding: 34px;
    box-shadow: var(--ccip-shadow);
}

.contact-form-card h2 {
    color: var(--ccip-purple);
}

.contact-form-card>p {
    color: var(--ccip-muted);
    font-size: 17px;
}

.ccip-contact-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-weight: 800;
    color: var(--ccip-ink);
}

.form-field input,
.form-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(106, 76, 147, 0.22);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--ccip-ink);
    background: #fbfdfb;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--ccip-purple);
    box-shadow: 0 0 0 4px rgba(106, 76, 147, 0.12);
}

.form-field textarea {
    resize: vertical;
}

.form-note {
    margin-top: 18px;
    color: rgba(31, 36, 48, 0.66);
    font-size: 14px;
    font-style: italic;
    text-align: left;
}

.form-success-message,
.form-error-message {
    border-radius: 14px;
    padding: 16px 18px;
    margin: 20px 0 22px;
    font-weight: 800;
    line-height: 1.5;
}

.form-success-message {
    background: rgba(111, 191, 115, 0.14);
    border: 1px solid rgba(111, 191, 115, 0.38);
    color: var(--ccip-deep-green);
}

.form-error-message {
    background: rgba(180, 54, 54, 0.1);
    border: 1px solid rgba(180, 54, 54, 0.28);
    color: #8a2f2f;
}

.contact-cards-section {
    padding: 0 0 88px;
    background: white;
}

.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.contact-info-card {
    min-width: 0;
    background:
        linear-gradient(135deg, rgba(106, 76, 147, 0.08), rgba(111, 191, 115, 0.12)),
        #ffffff;
    border: 1px solid rgba(218, 218, 218, 0.9);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(31, 36, 48, 0.08);
}

.contact-card-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ccip-purple), var(--ccip-green));
    color: white;
    font-size: 24px;
    font-weight: 900;
}

.contact-info-card h3 {
    text-align: center;
    color: var(--ccip-purple);
    margin-bottom: 10px;
}

.contact-info-card p {
    margin: 0;
    color: var(--ccip-muted);
    text-align: center;
}

.contact-info-card a {
    font-weight: 800;
}

.contact-bottom-cta {
    padding: 0 0 88px;
    background: white;
}

/* -----------------------------
   About Page
----------------------------- */

.about-hero {
    padding: 0;
    background: #eef7f5;
}

.about-hero-bg {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(236, 248, 248, 0.98) 0%,
            rgba(236, 248, 248, 0.92) 34%,
            rgba(236, 248, 248, 0.62) 58%,
            rgba(236, 248, 248, 0.18) 100%);
    z-index: 1;
}

.about-hero-inner {
    position: relative;
    z-index: 2;
}

.about-hero-content {
    max-width: 760px;
    padding: 84px 0;
}

.about-hero h1 {
    color: #050505;
    font-size: clamp(44px, 5.2vw, 68px);
    line-height: 1.1;
    letter-spacing: -0.045em;
    margin-bottom: 24px;
}

.about-hero p {
    color: #050505;
    font-size: 19px;
    line-height: 1.65;
    max-width: 700px;
    margin-bottom: 0;
    text-align: left;
}

.about-provider-section,
.about-approach-section,
.about-values-section,
.about-mission-section,
.about-faq-section,
.about-bottom-cta {
    padding: 88px 0;
}

.about-provider-grid,
.about-approach-grid,
.about-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: center;
}

.about-provider-image-card,
.about-approach-image-card,
.about-faq-image-card {
    min-width: 0;
    background: linear-gradient(135deg, rgba(106, 76, 147, 0.12), rgba(111, 191, 115, 0.12));
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--ccip-shadow);
}

.about-provider-image-card img,
.about-approach-image-card img,
.about-faq-image-card img {
    width: 100%;
    border-radius: 22px;
    object-fit: cover;
}

.about-provider-image-card img {
    max-height: 620px;
    object-position: center top;
}

.about-provider-copy h2 {
    color: var(--ccip-purple);
    margin-bottom: 8px;
}

.about-provider-copy h3 {
    color: var(--ccip-deep-green);
    font-size: 22px;
    margin-bottom: 24px;
}

.about-provider-copy p,
.about-approach-copy p,
.about-mission-card p,
.about-faq-content p,
.about-value-card p {
    color: var(--ccip-muted);
    font-size: 18px;
}

.about-approach-section,
.about-faq-section {
    background: var(--ccip-bg);
}

.about-approach-image-card img {
    height: 430px;
}

.about-values-section {
    background: white;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.about-value-card {
    background: white;
    border: 1px solid rgba(218, 218, 218, 0.9);
    border-radius: var(--ccip-radius);
    padding: 28px;
    box-shadow: 0 12px 30px rgba(31, 36, 48, 0.08);
    position: relative;
    overflow: hidden;
}

.about-value-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--ccip-purple), var(--ccip-green));
}

.about-value-icon {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ccip-purple), var(--ccip-green));
    color: white;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 18px;
}

.about-value-card h3 {
    color: var(--ccip-purple);
}

.about-mission-section {
    background:
        linear-gradient(135deg, rgba(106, 76, 147, 0.08), rgba(111, 191, 115, 0.16)),
        #f1f7f2;
}

.about-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.about-mission-card {
    min-width: 0;
    background: white;
    border: 1px solid rgba(218, 218, 218, 0.9);
    border-radius: 24px;
    padding: 34px;
    box-shadow: var(--ccip-shadow);
}

.about-mission-card h2 {
    color: var(--ccip-purple);
    font-size: clamp(28px, 3vw, 40px);
}

.about-faq-grid {
    align-items: start;
}

.about-faq-image-card img {
    height: 520px;
}

.about-faq-content h2 {
    color: var(--ccip-purple);
}

.about-faq-list {
    display: grid;
    gap: 14px;
    margin: 28px 0 28px;
}

.about-faq-list details {
    min-width: 0;
    background: white;
    border: 1px solid rgba(218, 218, 218, 0.9);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 8px 20px rgba(31, 36, 48, 0.06);
}

.about-faq-list summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--ccip-purple);
    list-style: none;
}

.about-faq-list summary::-webkit-details-marker {
    display: none;
}

.about-faq-list summary::after {
    content: "+";
    float: right;
    color: var(--ccip-green);
    font-weight: 900;
}

.about-faq-list details[open] summary::after {
    content: "–";
}

.about-faq-list p {
    margin: 14px 0 0;
    font-size: 16px;
}

.about-bottom-cta {
    background: white;
    padding-top: 0;
}

/* -----------------------------
   Tablet
----------------------------- */

@media (max-width: 1120px) and (min-width: 701px) {
    .main-nav {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 18px;
    }

    .brand img {
        width: 280px;
        max-height: 82px;
    }

    .nav-drawer {
        gap: 16px;
    }

    .nav-menu {
        gap: 18px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions .btn {
        padding: 11px 14px;
        font-size: 13px;
    }

    .intro-grid,
    .intro-grid-with-image,
    .provider-grid,
    .contact-main-grid,
    .about-provider-grid,
    .about-approach-grid,
    .about-faq-grid {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .insurance-grid,
    .about-values-grid,
    .about-mission-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testimonial-grid,
    .footer-grid,
    .contact-card-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------
   Mobile
----------------------------- */

@media (max-width: 700px) {
    body {
        overflow-x: hidden;
    }

    .site-header {
        position: relative;
    }

    .container,
    .container.narrow {
        width: min(100% - 28px, 1180px);
    }

    .top-contact-inner {
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 6px;
    }

    .top-contact-inner a {
        justify-content: center;
        text-align: center;
        font-size: 13px;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .main-nav {
        display: grid;
        grid-template-columns: minmax(0, 75%) minmax(0, 25%);
        align-items: center;
        gap: 0;
        padding: 10px 0;
        position: relative;
    }

    .brand {
        width: 100%;
        justify-content: flex-start;
        min-width: 0;
    }

    .brand img {
        width: min(100%, 285px);
        max-height: none;
        margin: 0;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        width: 48px;
        height: 48px;
        margin-left: auto;
        border: 1px solid rgba(106, 76, 147, 0.22);
        border-radius: 14px;
        background: #ffffff;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        box-shadow: 0 8px 18px rgba(31, 36, 48, 0.08);
    }

    .mobile-menu-toggle span {
        width: 23px;
        height: 2px;
        background: var(--ccip-purple);
        border-radius: 999px;
        transition: 0.2s ease;
    }

    .mobile-menu-toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-drawer {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        margin-top: 12px;
        padding: 18px;
        border-radius: 18px;
        background: #ffffff;
        border: 1px solid rgba(218, 218, 218, 0.9);
        box-shadow: 0 18px 40px rgba(31, 36, 48, 0.12);
    }

    .nav-drawer.is-open {
        display: block;
    }

    .primary-nav {
        width: 100%;
        justify-content: center;
    }

    .nav-menu {
        display: grid;
        width: 100%;
        gap: 0;
        text-align: center;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(218, 218, 218, 0.65);
    }

    .nav-menu li:last-child {
        border-bottom: 0;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 13px 10px;
        font-size: 16px;
        text-align: center;
        white-space: normal;
    }

    .header-actions {
        display: grid;
        width: 100%;
        gap: 10px;
        margin-top: 16px;
    }

    .header-actions .btn,
    .btn {
        width: 100%;
    }

    .hero-bg,
    .contact-hero-bg,
    .about-hero-bg {
        min-height: 620px;
        background-position: center center;
    }

    .hero-overlay,
    .contact-hero-overlay,
    .about-hero-overlay {
        background:
            linear-gradient(90deg,
                rgba(236, 248, 248, 0.98) 0%,
                rgba(236, 248, 248, 0.92) 62%,
                rgba(236, 248, 248, 0.58) 100%);
    }

    .hero-banner-content,
    .contact-hero-content,
    .about-hero-content {
        padding: 72px 0;
    }

    .hero-banner-content h1,
    .contact-hero h1,
    .about-hero h1,
    h1 {
        font-size: clamp(36px, 10vw, 52px);
    }

    .hero-banner-content p,
    .contact-hero p,
    .about-hero p {
        font-size: 17px;
    }

    .hero-pill {
        border-radius: 22px;
        font-size: 13px;
        line-height: 1.35;
        padding: 11px 14px;
    }

    .intro-section,
    .services-section,
    .provider-section,
    .insurance-section,
    .testimonials-section,
    .cta-section,
    .page-content,
    .contact-main-section,
    .about-provider-section,
    .about-approach-section,
    .about-values-section,
    .about-mission-section,
    .about-faq-section,
    .about-bottom-cta {
        padding: 64px 0;
    }

    .intro-grid,
    .intro-grid-with-image,
    .provider-grid,
    .service-grid,
    .insurance-grid,
    .testimonial-grid,
    .contact-main-grid,
    .contact-card-grid,
    .about-provider-grid,
    .about-approach-grid,
    .about-faq-grid,
    .about-values-grid,
    .about-mission-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .services-bg-section {
        background-attachment: scroll;
    }

    .service-card,
    .testimonial-card,
    .contact-form-card,
    .contact-info-card,
    .about-value-card,
    .about-mission-card {
        padding: 24px;
    }

    .contact-form-card {
        padding: 26px;
    }

    .cta-box {
        padding: 42px 24px;
    }

    .contact-cards-section {
        padding-bottom: 64px;
    }

    .contact-bottom-cta {
        padding-bottom: 64px;
    }

    .about-provider-image-card img,
    .about-approach-image-card img,
    .about-faq-image-card img,
    .contact-support-image img {
        height: auto;
        max-height: none;
    }

    .about-bottom-cta {
        padding-top: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-column {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand img {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .site-footer h3,
    .site-footer p,
    .site-footer li,
    .site-footer ul {
        text-align: center;
    }

    .site-footer li {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .top-contact-inner a {
        font-size: 12px;
        line-height: 1.25;
        gap: 5px;
    }

    .top-icon,
    .top-phone-icon {
        width: 14px;
        height: 14px;
        font-size: 11px;
    }
}

/* -----------------------------
   Contact Form 7 Styling
----------------------------- */

.wpcf7 form {
    margin: 0;
}

.wpcf7 .ccip-contact-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.wpcf7 .form-field {
    display: grid;
    gap: 8px;
}

.wpcf7 .form-field label {
    font-weight: 800;
    color: var(--ccip-ink);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(106, 76, 147, 0.22);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--ccip-ink);
    background: #fbfdfb;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--ccip-purple);
    box-shadow: 0 0 0 4px rgba(106, 76, 147, 0.12);
}

.wpcf7 textarea {
    resize: vertical;
    min-height: 150px;
}

.wpcf7 .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    border: 1px solid transparent;
    transition: 0.2s ease;
    cursor: pointer;
    text-align: center;
    background: linear-gradient(135deg, var(--ccip-purple), var(--ccip-soft-purple), var(--ccip-green));
    color: white;
    box-shadow: 0 12px 24px rgba(106, 76, 147, 0.22);
}

.wpcf7 .wpcf7-submit:hover {
    background: white;
    color: var(--ccip-purple);
    border-color: var(--ccip-purple);
    transform: translateY(-1px);
}

.wpcf7 form.sent .wpcf7-response-output {
    border: 1px solid rgba(111, 191, 115, 0.38);
    background: rgba(111, 191, 115, 0.14);
    color: var(--ccip-deep-green);
    border-radius: 14px;
    padding: 16px 18px;
    margin: 20px 0 0;
    font-weight: 800;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    border: 1px solid rgba(180, 54, 54, 0.28);
    background: rgba(180, 54, 54, 0.1);
    color: #8a2f2f;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 20px 0 0;
    font-weight: 800;
}

.wpcf7-not-valid-tip {
    color: #8a2f2f;
    font-size: 14px;
    font-weight: 700;
    margin-top: 6px;
}

@media (max-width: 700px) {
    .wpcf7 .wpcf7-submit {
        width: 100%;
    }
}

.top-icon,
.top-phone-icon,
.top-contact-inner .top-icon,
.top-contact-inner .top-phone-icon {
    color: #ffffff !important;
    fill: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1;
    text-decoration: none !important;
}

.top-contact-inner a,
.top-contact-inner a:hover {
    color: #ffffff !important;
}

.insurance-logo img[alt="Harvard Pilgrim Health Care"] {
    max-width: 300px;
    height: 105px;
}

@media (max-width: 700px) {
    .insurance-logo img[alt="Harvard Pilgrim Health Care"] {
        max-width: 260px;
        height: 92px;
    }
}

.contact-card-icon,
.contact-phone-icon {
    color: #ffffff !important;
    fill: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif;
}

.top-phone-icon svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: #ffffff !important;
}

.contact-phone-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: #ffffff !important;
}

.top-icon,
.top-phone-icon,
.contact-card-icon,
.contact-phone-icon {
    color: #ffffff !important;
}

/* -----------------------------
   Contact Page Icon Consistency
----------------------------- */

.contact-card-icon svg {
    width: 26px;
    height: 26px;
    display: block;
    fill: #ffffff !important;
}

.contact-card-icon {
    color: #ffffff !important;
}

.contact-info-card h3 {
    text-align: center;
    color: var(--ccip-purple);
    margin-bottom: 10px;
}

.contact-info-card p,
.contact-info-card a {
    text-align: center;
}

/* -----------------------------
   Request Appointment Page
----------------------------- */

.request-appointment-hero .contact-hero-bg {
    background-position: center center;
}

.request-appointment-main-section .contact-form-card h2 {
    color: var(--ccip-purple);
}

.request-appointment-form {
    margin-top: 24px;
}

.request-appointment-form .form-field {
    display: grid;
    gap: 8px;
}

.request-appointment-form input[type="date"] {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(106, 76, 147, 0.22);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--ccip-ink);
    background: #fbfdfb;
}

.request-appointment-form input[type="date"]:focus {
    outline: none;
    border-color: var(--ccip-purple);
    box-shadow: 0 0 0 4px rgba(106, 76, 147, 0.12);
}

/* Contact card icons */
.contact-card-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ccip-purple), var(--ccip-green));
    color: #ffffff !important;
    font-size: 24px;
    font-weight: 900;
}

.contact-card-icon svg {
    width: 26px;
    height: 26px;
    display: block;
    fill: #ffffff !important;
}

/* Top-bar phone icon */
.top-phone-icon svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: #ffffff !important;
}

.top-icon,
.top-phone-icon {
    color: #ffffff !important;
}

@media (max-width: 700px) {
    .request-appointment-hero .contact-hero-bg {
        background-position: center center;
    }
}