/* Advance Cardiac Care - inner page styles (loaded after acc.css) */

/* ---------- Page banner ---------- */
.page-banner {
    position: relative;
    padding: 56px 0 50px;
    background: linear-gradient(110deg, var(--navy-deep) 0%, var(--navy) 60%, #1b3b5c 100%);
    color: var(--white);
    overflow: hidden;
}
.page-banner--photo { padding: 0; min-height: 300px; display: flex; align-items: flex-end; }
.page-banner--tall { min-height: 440px; }
.page-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.page-banner--photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 29, 48, .88) 0%, rgba(10, 29, 48, .6) 45%, rgba(10, 29, 48, .15) 80%);
}
.page-banner__inner { position: relative; z-index: 2; }
.page-banner--photo .page-banner__inner { padding-top: 64px; padding-bottom: 50px; }
.page-banner h1 {
    max-width: 760px;
    color: var(--white);
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
}
.page-banner p { max-width: 640px; margin: 12px 0 0; color: rgba(255, 255, 255, .9); font-family: var(--serif); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; }
.page-banner .hero__tag { font-family: var(--sans); font-size: 12px; margin: 0 0 14px; }
.page-banner .button-row { margin-top: 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.crumbs a { color: rgba(255, 255, 255, .9); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { text-decoration: underline; } }

.btn--white { background: var(--white); color: var(--red); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
@media (hover: hover) and (pointer: fine) {
    .btn--white:hover { background: var(--navy); color: var(--white); }
    .btn--ghost:hover { background: var(--white); color: var(--navy); }
}
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button-row--center { justify-content: center; }

/* ---------- Generic sections ---------- */
.section { padding: var(--section) 0; }
.section--mist { background: var(--mist); }
.section-intro { max-width: 720px; margin-bottom: 34px; }
.section-intro h2, .center-title, .prose h2, .checklist h2, .steps h2, .callout h2, .faq-block h2, .facts-col h2, .related__title, .form-card h2, .contact-info h2 {
    margin-bottom: 12px;
    color: var(--heading);
    font-family: var(--serif);
    font-size: clamp(26px, 2.3vw, 34px);
    font-weight: 400;
    line-height: 1.15;
}
.section-intro p { color: var(--muted); font-size: 15.5px; }
.center-title { text-align: center; margin-bottom: 26px; }
.center { text-align: center; }
.narrow { max-width: 860px; }
.small-note { margin-top: 18px; color: var(--muted); font-size: 13.5px; }

.prose p { font-size: 15.5px; }
.prose--lead p:first-child { color: var(--heading); font-size: 18px; line-height: 1.65; }
.prose h2:not(:first-child) { margin-top: 30px; }
.plain-list { margin: 0 0 18px; padding-left: 18px; }
.plain-list li { margin-bottom: 7px; font-size: 15px; }
.plain-list li::marker { color: var(--red); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.two-col--center { align-items: center; }

/* ---------- Condition / service layout ---------- */
.content-layout { padding: var(--section) 0; }
.content-layout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; align-items: start; }
.content-main > * + * { margin-top: 46px; }

.checklist ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.checklist li {
    position: relative;
    padding: 12px 0 12px 22px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    line-height: 1.5;
}
.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 19px;
    width: 8px;
    height: 8px;
    background: var(--red);
}
.checklist--card { background: var(--white); padding: 32px; border-top: 3px solid var(--red); }
.checklist--card ul { grid-template-columns: minmax(0, 1fr); }

.steps ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps__num { color: var(--red); font-family: var(--serif); font-size: 28px; line-height: 1; }
.steps h3 { margin-bottom: 4px; color: var(--navy); font-size: 16px; font-weight: 700; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.steps--compact li { grid-template-columns: 46px minmax(0, 1fr); padding: 14px 0; }

.callout { padding: 28px 30px; background: var(--mist); border-left: 4px solid var(--navy); }
.callout p { font-size: 15.5px; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
    position: relative;
    padding: 17px 44px 17px 0;
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 22px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--red);
    border-bottom: 2px solid var(--red);
    transform: rotate(45deg);
    transition: transform .2s ease;
}
.faq[open] summary::after { transform: rotate(225deg); top: 26px; }
.faq__answer p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--red); } }

/* Sidebar */
.side-card { position: sticky; top: 24px; display: grid; gap: 20px; }
.side-card__box { padding: 28px 26px; background: var(--mist); }
.side-card__box h2 { margin-bottom: 10px; color: var(--heading); font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.2; }
.side-card__box p { font-size: 14.5px; }
.side-card__box--red { background: var(--red); color: var(--white); }
.side-card__box--red h2 { color: var(--white); }
.side-card__box--red a:not(.btn) { color: var(--white); }
.side-card__box--warn { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--red); }
.side-card__phone { display: block; margin: 6px 0 16px; font-size: 26px; font-weight: 800; text-decoration: none; }
.side-card__hours { margin: 14px 0 0; font-size: 13px; opacity: .9; }
.side-card__email { display: block; margin: -8px 0 18px; font-size: 14px; font-weight: 700; }

/* Services page: 4 cards in the testing/devices row */
.card-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.card-grid--four .related-card h3 { font-size: 21px; }
@media (max-width: 1100px) { .card-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .card-grid--four { grid-template-columns: minmax(0, 1fr); } }

/* Chronic Care Management page blocks (Nov 7, 2026) */
.service-cards h2 { margin-bottom: 18px; color: var(--heading); font-family: var(--serif); font-size: clamp(26px, 2.2vw, 32px); font-weight: 400; line-height: 1.2; }
.service-cards .area-grid li { background: var(--mist); }
.team-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 32px; background: var(--navy); color: var(--white); }
.team-contact h2 { margin-bottom: 10px; color: var(--white); font-family: var(--serif); font-size: clamp(24px, 2vw, 30px); font-weight: 400; line-height: 1.2; }
.team-contact__text p { margin: 0; color: rgba(255, 255, 255, .85); }
.team-contact__lines p { margin: 0 0 14px; }
.team-contact__lines span { display: block; color: rgba(255, 255, 255, .7); font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.team-contact__lines a { color: var(--white); font-size: 19px; font-weight: 800; text-decoration: none; }
.team-contact__lines a:hover { text-decoration: underline; text-underline-offset: 4px; }
.team-contact__lines .team-contact__note { margin: 0; color: rgba(255, 255, 255, .75); font-size: 13px; line-height: 1.5; }
.team-contact__lines .team-contact__note a { font-size: 13px; font-weight: 700; text-decoration: underline; }
.emergency-note { margin: 0; padding: 16px 20px; background: #fff6ed; border-left: 4px solid var(--red); color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.emergency-note strong { color: var(--red); }
@media (max-width: 760px) {
    .team-contact { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
}

/* Email highlight on the Contact page (Vaibhav, Nov 7, 2026) */
.email-highlight { display: grid; gap: 4px; margin: 0 0 20px; padding: 18px 20px; background: var(--mist); border-left: 4px solid var(--red); }
.email-highlight__label { color: var(--red); font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.email-highlight__link { color: var(--navy); font-size: 19px; font-weight: 800; text-decoration: none; }
.email-highlight__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.email-highlight__note { color: var(--muted); font-size: 13px; line-height: 1.45; }
.side-card__links { list-style: none; margin: 0; padding: 0; }
.side-card__links li { border-bottom: 1px solid var(--line); }
.side-card__links a, .side-card__links span { display: block; padding: 10px 0; color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.side-card__links a[aria-current="page"] { color: var(--red); }
@media (hover: hover) and (pointer: fine) { .side-card__links a:hover { color: var(--red); } }

/* Related and card grids */
.related { padding: 0 0 var(--section); }
.related__title { margin-bottom: 26px; }
.related__grid, .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.related-card { background: var(--white); border-bottom: 3px solid var(--red); padding-bottom: 22px; }
.section--mist .related-card { box-shadow: none; }
.related-card__media { display: block; overflow: hidden; margin-bottom: 18px; }
.related-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.related-card h3, .related-card p, .related-card .text-link, .related-card__phone { margin-left: 22px; margin-right: 22px; }
.related-card h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.2; }
.related-card h3 a { color: var(--heading); text-decoration: none; }
.related-card p { color: var(--muted); font-size: 14.5px; }
.related-card--note { display: flex; flex-direction: column; justify-content: center; padding: 34px 0; background: var(--navy); border-bottom-color: var(--red); }
.related-card--note h3 { color: var(--white); }
.related-card--note p { color: rgba(255, 255, 255, .82); }
.related-card__phone { color: var(--white); font-size: 24px; font-weight: 800; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
    .related-card__media:hover img { transform: scale(1.04); }
    .related-card h3 a:hover { color: var(--red); }
}

/* ---------- Doctor page ---------- */
.bio { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 60px; align-items: start; }
.bio__media { position: relative; padding: 0 18px 18px 0; }
.bio__media::before { content: ""; position: absolute; right: 0; bottom: 0; width: 70%; height: 70%; background: var(--red); }
.bio__media > img:first-child { position: relative; width: 100%; }
.bio__badge { position: absolute; left: -18px; bottom: 34px; width: 100px; padding: 6px; background: var(--white); box-shadow: 0 8px 22px rgba(16, 42, 67, .18); }
.bio__role { color: var(--red); font-size: 13px !important; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.bio__quote { margin: 28px 0 0; padding: 22px 26px; background: var(--mist); border-left: 4px solid var(--red); }
.bio__quote p { margin: 0 0 8px; color: var(--heading); font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.bio__quote cite { color: var(--muted); font-size: 13px; font-style: normal; font-weight: 700; }
.facts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.facts-col h2:not(:first-child) { margin-top: 30px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 20px; font-size: 14.5px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 3px solid var(--red); }
.timeline strong { display: block; color: var(--navy); font-size: 15px; }

/* ---------- Step cards ---------- */
.step-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.step-cards li { padding: 26px 24px; background: var(--white); border-top: 3px solid var(--red); box-shadow: 0 6px 20px rgba(16, 42, 67, .06); }
.section--mist .step-cards li { box-shadow: none; }
.step-cards span { display: block; margin-bottom: 10px; color: var(--red); font-family: var(--serif); font-size: 30px; line-height: 1; }
.step-cards h3 { margin-bottom: 8px; color: var(--navy); font-size: 16px; font-weight: 700; }
.step-cards p { margin: 0; color: var(--muted); font-size: 14.5px; }
.code { padding: 2px 8px; background: var(--navy); color: var(--white); letter-spacing: 2px; }

.map-frame iframe { display: block; width: 100%; height: 360px; border: 0; }
.map-wide iframe { display: block; width: 100%; height: 420px; border: 0; }
.portal-shot img { width: 100%; max-width: 560px; margin: 0 auto; }
.store-badges { display: flex; gap: 14px; margin-top: 26px; }
.store-badges img { width: 135px; }

/* ---------- StemWave page ---------- */
.stemwave-points { display: grid; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.stemwave-points li { padding: 12px 16px; background: var(--mist); border-left: 3px solid var(--red); font-size: 15px; }
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.area-grid li { padding: 24px; background: var(--white); border-top: 3px solid var(--red); }
.area-grid h3 { margin-bottom: 6px; color: var(--navy); font-size: 17px; font-weight: 700; }
.area-grid p { margin: 0; color: var(--muted); font-size: 14.5px; }
.stemwave-photos img { width: 100%; }

/* ---------- FAQ page ---------- */
.faq-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.faq-page__nav { position: sticky; top: 24px; display: grid; border-top: 3px solid var(--red); }
.faq-page__nav a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--navy); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.faq-page__groups > * + * { margin-top: 44px; }
@media (hover: hover) and (pointer: fine) { .faq-page__nav a:hover { color: var(--red); } }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; align-items: start; }
.form-aside { display: grid; gap: 20px; }
.form-card { padding: 38px 40px; background: var(--white); border-top: 3px solid var(--red); box-shadow: 0 10px 30px rgba(16, 42, 67, .08); }
.form-card__intro { color: var(--muted); font-size: 14.5px; }
.form-alert { margin-bottom: 18px; padding: 12px 16px; background: #fbecee; border-left: 4px solid var(--red); color: var(--red-dark); font-size: 14.5px; font-weight: 600; }
.form { display: grid; gap: 18px; margin-top: 10px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { color: var(--navy); font-size: 13px; font-weight: 700; }
.field legend { margin-bottom: 6px; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #c7ced8;
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.field__error { margin: 0; color: var(--red-dark); font-size: 13px; font-weight: 600; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 18px; min-height: 48px; align-items: center; }
.choice { display: inline-flex; align-items: flex-start; gap: 9px; color: var(--ink) !important; font-size: 14.5px !important; font-weight: 500 !important; line-height: 1.45; cursor: pointer; }
.choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); flex: 0 0 auto; }
.form__submit { justify-self: start; min-width: 200px; }
.form__submit[disabled] { opacity: .7; cursor: wait; }
.form-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 50px; align-items: start; }

/* ---------- Legal ---------- */
.legal h2 { margin: 30px 0 10px; color: var(--navy); font-family: var(--sans); font-size: 18px; font-weight: 700; }
.legal p { font-size: 15.5px; }
.legal__updated { color: var(--muted); font-size: 13px; }

/* ---------- Message pages ---------- */
.message-page { padding: 90px 0; text-align: center; }
.message-page__inner { max-width: 680px; }
.message-page h1 { margin-bottom: 14px; color: var(--heading); font-family: var(--serif); font-size: clamp(34px, 3.4vw, 48px); font-weight: 400; }
.message-page p { color: var(--muted); font-size: 16px; }
.message-page__code { margin: 0; color: var(--red); font-size: 72px; font-weight: 900; line-height: 1; }
.message-page__ecg { width: 220px; margin: 0 auto 18px; color: var(--red); }
.message-page .button-row { margin-top: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .content-layout__grid, .form-layout { grid-template-columns: minmax(0, 1fr); }
    .side-card { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bio { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px; }
    .faq-page { grid-template-columns: 200px minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 820px) {
    .page-banner { padding: 40px 0 36px; }
    .page-banner--photo { min-height: 260px; }
    .page-banner--tall { min-height: 420px; }
    .page-banner--photo .page-banner__inner { padding-top: 44px; padding-bottom: 34px; }
    .page-banner--photo::after { background: linear-gradient(0deg, rgba(10, 29, 48, .92) 10%, rgba(10, 29, 48, .55) 70%, rgba(10, 29, 48, .35) 100%); }
    .page-banner h1 { font-size: 28px; }
    .page-banner p { font-size: 17px; }

    .two-col, .facts-grid, .contact-grid, .bio { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .bio__media { max-width: 320px; }
    .checklist ul { grid-template-columns: minmax(0, 1fr); }
    .checklist--card { padding: 24px 20px; }
    .side-card, .form-aside { grid-template-columns: minmax(0, 1fr); }
    .related__grid, .card-grid, .area-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .step-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .callout { padding: 22px 20px; }
    .faq-page { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .faq-page__nav { position: static; }
    .form-card { padding: 28px 20px; }
    .form__row { grid-template-columns: minmax(0, 1fr); }
    .form__submit { width: 100%; justify-self: stretch; }
    .map-frame iframe { height: 280px; }
    .map-wide iframe { height: 300px; }
    .message-page { padding: 60px 0; }
}
