/* ==========================================================================
   Shree Specialty Clinics — Stage 4 Design System & Component Stylesheet
   Brand Tokens: Maroon (#8b123f), Rose Pink (#b51250), Warm Cream (#fffaf5),
   Warm Beige (#f8eee5), Gold Accent (#a6650b), Deep Charcoal Text (#211713)
   ========================================================================== */

:root {
    --wine: #8b123f;
    --wine-dark: #650a2d;
    --pink: #b51250;
    --gold: #a6650b;
    --gold-light: #d89b43;
    --ink: #211713;
    --ink-light: #52423b;
    --cream: #fffaf5;
    --beige: #f8eee5;
    --beige-dark: #eee0d3;
    --line: #dfcabc;
    --line-light: #f0e4db;
    --surface: #ffffff;
    --error: #b3261e;
    --success: #198754;
    --header-height: 80px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow-soft: 0 4px 20px rgba(73, 35, 22, 0.07);
    --shadow-hover: 0 12px 32px rgba(73, 35, 22, 0.14);
}

/* Base resets & typography */
body {
    background-color: var(--cream);
    color: var(--ink);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Image containment and zero CLS defaults */
img {
    max-width: 100%;
    height: auto;
}

/* Core Web Vitals: Below-fold rendering optimization */
.section:not(.hero):not(.specialty-hero),
.decision-router-section,
.cta-banner-strip,
.site-footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.15;
}

/* Ensure dark section headings retain explicit high contrast */
.trust-bar h3,
.trust-item h3 {
    color: #ffffff !important;
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.site-footer h3,
.footer-grid h3,
footer h3 {
    color: #ffd38b !important;
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    line-height: 1.4 !important;
    margin: 0 0 0.9rem !important;
}

/* Button & Link utilities */
.button-block {
    display: flex;
    width: 100%;
}

.button-secondary {
    background: transparent;
    border: 1px solid var(--wine);
    color: var(--wine);
}

.button-secondary:hover {
    background: var(--wine);
    color: #ffffff;
}

.button-gold {
    background: linear-gradient(110deg, #945705, var(--gold));
    border-color: var(--gold);
    color: #ffffff;
}

/* Mobile Drawer Header & Styling */
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1rem;
}

.mobile-drawer-brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--wine);
}

.mobile-drawer-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
    padding: 0 0.5rem;
}

.mobile-secondary-cta {
    color: var(--gold) !important;
    font-weight: 700;
    border-top: 1px dashed var(--line);
    margin-top: 0.5rem;
    padding-top: 1rem !important;
}

.mobile-drawer-footer {
    margin-top: auto;
    padding-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Decision Router Component: "What brings you to Shree?"
   -------------------------------------------------------------------------- */
.decision-router-section {
    padding: clamp(3rem, 6vw, 5rem) 1.25rem;
    background: linear-gradient(180deg, var(--cream) 0%, var(--beige) 100%);
    border-top: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
}

.decision-router-container {
    max-width: 1200px;
    margin: 0 auto;
}

.decision-router-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.decision-router-header h2 {
    font-size: clamp(2rem, 5vw, 2.9rem);
    margin-bottom: 0.5rem;
}

.decision-router-header p {
    color: var(--ink-light);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    max-width: 650px;
    margin: 0 auto;
}

.decision-router-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.decision-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem 1.35rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.decision-card:hover, .decision-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--pink);
}

.decision-card-concern {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1.25rem;
    line-height: 1.45;
}

.decision-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line-light);
    color: var(--wine);
    font-size: 0.82rem;
    font-weight: 700;
}

.decision-card-action svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    transition: transform 0.2s ease;
}

.decision-card:hover .decision-card-action svg {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Doctor Profiles & Directory Cards
   -------------------------------------------------------------------------- */
.doctor-profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .doctor-profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.doctor-profile-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.doctor-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.doctor-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem 1rem;
    background: linear-gradient(180deg, #fff5f8 0%, #ffffff 100%);
    border-bottom: 1px solid var(--line-light);
}

.doctor-avatar-wrap {
    width: clamp(120px, 20vw, 150px);
    height: clamp(120px, 20vw, 150px);
    border-radius: 50%;
    overflow: hidden;
    border: 3.5px solid var(--wine);
    box-shadow: 0 8px 24px rgba(139, 18, 63, 0.18);
    margin-bottom: 1.25rem;
    background: var(--beige);
    flex-shrink: 0;
}

.doctor-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.doctor-profile-card:hover .doctor-avatar-wrap img {
    transform: scale(1.06);
}

.doctor-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--beige) 0%, #ecd6c8 100%);
    color: var(--wine);
}

.doctor-avatar-placeholder svg {
    width: 64px;
    height: 64px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.doctor-profile-header h3 {
    font-size: 1.7rem;
    margin-bottom: 0.25rem;
    color: var(--ink);
}

.doctor-profile-header .designation {
    color: var(--wine);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.doctor-profile-header .qualifications {
    color: var(--ink-light);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.doctor-profile-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.doctor-quote-box {
    background: var(--beige);
    border-left: 3px solid var(--pink);
    padding: 0.9rem 1.1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 1.25rem;
    font-style: italic;
    color: var(--wine-dark);
    font-size: 0.9rem;
    line-height: 1.5;
}

.doctor-detail-meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--line-light);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-item {
    font-size: 0.82rem;
    color: var(--ink-light);
}

.meta-item strong {
    color: var(--ink);
}

.doctor-profile-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.doctor-profile-actions .button {
    flex: 1;
}

/* --------------------------------------------------------------------------
   Clinic Philosophy & Facilities Support Section
   -------------------------------------------------------------------------- */
.philosophy-section {
    padding: clamp(3rem, 6vw, 5rem) 1.25rem;
    background: #ffffff;
}

.philosophy-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-quote-main {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    line-height: 1.35;
    color: var(--wine-dark);
    margin: 1.5rem auto 2rem;
    max-width: 850px;
    font-style: italic;
}

.facilities-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
    text-align: left;
}

.facility-support-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: var(--cream);
    border: 1px solid var(--line);
}

.facility-support-card.active {
    border-color: var(--pink);
    background: #fff5f8;
}

.facility-support-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.facility-support-card p {
    font-size: 0.85rem;
    color: var(--ink-light);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Reusable Specialty Detail Template Styles
   -------------------------------------------------------------------------- */
.specialty-hero {
    position: relative;
    padding: clamp(3rem, 7vw, 5.5rem) 1.25rem;
    background: linear-gradient(135deg, #fff9f6 0%, #faedf2 100%);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.specialty-hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.specialty-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    margin-bottom: 0.75rem;
}

.specialty-hero-subheading {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    color: var(--wine);
    font-weight: 500;
    margin-bottom: 1rem;
}

.specialty-hero-body {
    font-size: 1rem;
    color: var(--ink-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.specialty-reviewer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(139, 18, 63, 0.06);
    border: 1px solid rgba(139, 18, 63, 0.15);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    color: var(--wine);
    margin-top: 1rem;
}

/* Journey Stages Timeline */
.journey-timeline-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .journey-timeline-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.journey-stage-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.stage-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--wine);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.journey-stage-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.journey-stage-card p {
    font-size: 0.88rem;
    color: var(--ink-light);
    margin: 0;
}

/* Condition Tags / Chips */
.conditions-chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.condition-chip {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    background: var(--beige);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink);
}

/* Checklist cards for Preventive Care & Decision Guide */
.checklist-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .checklist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.checklist-item-card {
    display: flex;
    gap: 0.85rem;
    padding: 1.15rem 1.25rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
}

.checklist-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eaf6ee;
    color: var(--success);
    display: grid;
    place-items: center;
    margin-top: 0.15rem;
}

.checklist-icon svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.8;
}

.decision-guide-card {
    border-left: 3px solid var(--gold);
}

.decision-guide-icon {
    background: #fff8e8;
    color: var(--gold);
}

/* --------------------------------------------------------------------------
   Accessible FAQ Accordion Component (Native details / summary)
   -------------------------------------------------------------------------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 900px;
    margin: 1.5rem auto 0;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
    border-color: var(--wine);
    box-shadow: var(--shadow-soft);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--wine);
    fill: none;
    stroke-width: 2.2;
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--ink-light);
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: 1px solid transparent;
}

.faq-item[open] .faq-answer {
    border-top-color: var(--line-light);
    padding-top: 1rem;
}

/* --------------------------------------------------------------------------
   Journal Archive & Health Library Styles
   -------------------------------------------------------------------------- */
.journal-filter-bar {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.journal-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.filter-input, .filter-select {
    padding: 0.65rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--cream);
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--ink);
    flex: 1 1 180px;
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--wine);
    background: #ffffff;
}

.journal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .journal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .journal-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.journal-card-unified {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.journal-card-unified:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.journal-card-thumb-link {
    display: block;
    text-decoration: none;
    overflow: hidden;
    background: #f4efe9;
}

.journal-card-thumb-wrap {
    width: 100%;
    height: 200px;
    background: #f4efe9;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journal-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.4s ease;
    display: block;
}

.journal-card-unified:hover .journal-card-thumb {
    transform: scale(1.05);
}

.journal-card-thumb-fallback {
    background: linear-gradient(135deg, #faece6 0%, #f4efe9 50%, #edf3f8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--wine, #8b123f);
    padding: 1.5rem;
    text-align: center;
}

.journal-fallback-icon {
    width: 38px;
    height: 38px;
    opacity: 0.75;
}

.journal-fallback-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wine, #8b123f);
    opacity: 0.85;
}

.journal-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.badge-type {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-article {
    background: #eaf1fb;
    color: #1a56db;
}

.badge-gallery {
    background: #fdf2e9;
    color: #b45309;
}

.journal-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.35rem;
}

.journal-card-body h3 {
    font-size: 1.35rem;
    margin: 0 0 0.65rem;
}

.journal-card-body p {
    font-size: 0.88rem;
    color: var(--ink-light);
    margin: 0 0 1.25rem;
}

.journal-card-footer {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--ink-light);
}

/* Article Detail Structured Layout */
.article-detail-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3.5rem) 1.25rem;
}

.article-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 991px) {
    .article-main-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.article-content-col {
    min-width: 0;
}

/* Modern Blog Sidebar (Author, Article Info, Share Article) */
.article-sidebar-col {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .article-sidebar-col {
        position: static;
        order: 2;
    }
}

.blog-side-card {
    background: #ffffff;
    border: 1px solid var(--line-light);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 18px rgba(73, 35, 22, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-side-card:hover {
    box-shadow: 0 8px 26px rgba(73, 35, 22, 0.09);
}

/* Card 1: Author Card */
.author-card-flex {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-avatar-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--line-light);
}

.author-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.author-avatar-placeholder {
    width: 32px;
    height: 32px;
    color: var(--wine);
}

.author-meta-block {
    flex: 1;
    min-width: 0;
}

.author-name-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.25rem;
    line-height: 1.25;
}

.author-name-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.author-name-title a:hover {
    color: var(--wine);
}

.author-badge-role {
    display: inline-block;
    background: #fdf2f4;
    color: var(--wine);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    line-height: 1.3;
}

.author-published-notice {
    font-size: 0.82rem;
    color: var(--ink-light);
    line-height: 1.45;
    margin: 0;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--line-light);
}

/* Card 2: Article Info Card */
.side-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line-light);
}

.side-card-icon {
    width: 20px;
    height: 20px;
    color: var(--gold);
    flex-shrink: 0;
}

.side-card-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.01em;
}

.side-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.side-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #f6f0eb;
}

.side-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.side-info-label {
    color: var(--ink-light);
    font-weight: 500;
}

.side-info-value {
    color: var(--ink);
    font-weight: 600;
    text-align: right;
}

.side-info-badge {
    background: var(--beige);
    color: var(--wine);
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Card 3: Share Article Card */
.share-buttons-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.share-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 10px;
    border: none;
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
}

.share-action-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn-copy {
    background: #0f172a; /* Slate Dark */
}

.share-btn-whatsapp {
    background: #25D366; /* Official WhatsApp Green */
}

.share-btn-facebook {
    background: #1877F2; /* Official Facebook Blue */
}

.share-action-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Copy Tooltip */
.copy-tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #ffffff;
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    font-weight: 500;
    z-index: 10;
}

.copy-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.answer-first-banner {
    background: #fdf5e8;
    border-left: 4px solid var(--gold);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1.75rem 0 2rem;
}

.answer-first-banner strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--gold);
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.answer-first-banner p {
    font-size: 1.05rem;
    color: var(--ink);
    margin: 0;
    line-height: 1.6;
}

.article-section-block {
    margin-bottom: 2rem;
}

.article-section-block h2 {
    font-size: 1.8rem;
    margin-bottom: 0.65rem;
    color: var(--wine-dark);
}

.article-section-block p {
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--ink);
}

/* Key Takeaways Box (matching doctors' content spec) */
.article-takeaways-box {
    background: #fcf9f5;
    border: 1px solid #ebd9c8;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin: 1.75rem 0 2.25rem;
}

.takeaways-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wine);
    margin: 0 0 1rem;
    font-family: 'Montserrat', sans-serif;
}

.takeaways-list {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.takeaways-list li {
    font-size: 0.94rem;
    color: var(--ink);
    line-height: 1.6;
}

/* Rich Article Body Content (headings, paragraphs, blockquotes, tables) */
.article-rich-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink);
    margin: 2rem 0;
}

.article-rich-body p {
    margin: 0 0 1.35rem;
}

.article-rich-body h2 {
    font-size: 1.85rem;
    color: var(--wine-dark);
    margin: 2.25rem 0 0.85rem;
    line-height: 1.25;
}

.article-rich-body h3 {
    font-size: 1.4rem;
    color: var(--ink);
    margin: 1.75rem 0 0.65rem;
    line-height: 1.3;
}

.article-rich-body ol, .article-rich-body ul {
    margin: 0 0 1.5rem 1.5rem;
    padding: 0;
}

.article-rich-body li {
    margin-bottom: 0.5rem;
}

.article-rich-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.92rem;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--line-light);
}

.article-rich-body th {
    background: var(--wine);
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.article-rich-body td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f0e4db;
    color: var(--ink);
    vertical-align: top;
}

.article-rich-body tr:nth-child(even) td {
    background: #faf6f2;
}

.article-rich-body tr:last-child td {
    border-bottom: none;
}

/* Schema-Ready FAQ Accordion Block */
.article-faq-section {
    margin: 3.5rem 0 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--line-light);
}

.article-faq-title {
    font-size: 1.85rem;
    color: var(--wine-dark);
    margin-bottom: 1.25rem;
}

.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-accordion-item {
    background: #ffffff;
    border: 1px solid var(--line-light);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-accordion-item:hover {
    border-color: #d8c2b3;
    box-shadow: 0 3px 12px rgba(73, 35, 22, 0.05);
}

.faq-accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 1.15rem 1.25rem;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    gap: 1rem;
}

.faq-accordion-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    color: var(--gold);
}

.faq-accordion-item.active .faq-accordion-icon {
    transform: rotate(180deg);
}

.faq-accordion-body {
    display: none;
    padding: 0 1.25rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ink-light);
}

.faq-accordion-item.active .faq-accordion-body {
    display: block;
}

/* --------------------------------------------------------------------------
   Appointment Enquiry Page & Form Styles
   -------------------------------------------------------------------------- */
.appointment-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) 1.25rem;
}

.emergency-alert-banner {
    display: flex;
    gap: 0.85rem;
    padding: 1.15rem 1.35rem;
    background: #fde8e8;
    border: 1px solid #f8b4b4;
    border-radius: var(--radius-md);
    color: #9b1c1c;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.emergency-alert-banner svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    margin-top: 0.1rem;
}

.appointment-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    box-shadow: var(--shadow-soft);
}

.appointment-card h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 0.4rem;
}

.appointment-card p.subtitle {
    color: var(--ink-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.35rem;
}

.form-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.45rem;
}

.form-label .required {
    color: var(--pink);
    margin-left: 0.2rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--ink);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--wine);
    box-shadow: 0 0 0 3px rgba(139, 18, 63, 0.12);
}

.form-textarea {
    min-height: 110px;
    resize: vertical;
}

.form-input.is-invalid, .form-select.is-invalid, .form-textarea.is-invalid {
    border-color: var(--error);
    background: #fffbfa;
}

.form-error-msg {
    display: block;
    color: var(--error);
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

.form-help-text {
    display: block;
    color: var(--ink-light);
    font-size: 0.76rem;
    margin-top: 0.3rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.success-confirmation-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #ffffff;
    border: 1px solid #bcf0da;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.success-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #def7ec;
    color: var(--success);
    display: grid;
    place-items: center;
    margin: 0 auto 1.25rem;
}

.success-icon-wrap svg {
    width: 36px;
    height: 36px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
}

.enquiry-ref-box {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--beige);
    border: 1px dashed var(--gold);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--wine);
    margin: 1rem 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Patient Stories & Illustrative Notice
   -------------------------------------------------------------------------- */
.patient-story-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    position: relative;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.illustrative-notice-label {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: #fdf5e8;
    border: 1px solid #ebd3ad;
    border-radius: var(--radius-pill);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.85rem;
}

.patient-story-card blockquote {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    font-style: italic;
    color: var(--ink);
    line-height: 1.6;
}

.patient-story-card cite {
    font-style: normal;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--wine);
}

/* CTA Banner Section */
.cta-banner-strip {
    padding: clamp(3rem, 6vw, 4.5rem) 1.25rem;
    background: linear-gradient(135deg, var(--wine-dark) 0%, #850f3b 100%);
    color: #ffffff;
    text-align: center;
}

.cta-banner-content {
    max-width: 750px;
    margin: 0 auto;
}

.cta-banner-strip h2 {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.75rem;
}

.cta-banner-strip p {
    color: #f7e6eb;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    margin-bottom: 1.75rem;
}

.cta-banner-strip .button {
    background: #ffffff;
    color: var(--wine-dark);
    border-color: #ffffff;
}

.cta-banner-strip .button:hover {
    background: var(--cream);
    color: var(--pink);
}

/* Footer Styles & High-Contrast Typography */
.site-footer,
footer {
    background: radial-gradient(circle at 50% 0, #493126, #271a15 75%);
    color: #ffffff;
}

.site-footer .tagline {
    color: #ffd38b;
    font-size: 0.95rem;
    font-style: italic;
    margin: 0.4rem 0 0.8rem;
}

.site-footer .footer-desc {
    color: #fae7d2;
    font-size: 0.88rem;
    line-height: 1.55;
}

.site-footer a,
.footer-grid a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover,
.footer-grid a:hover {
    color: #ffd38b;
    text-decoration: underline;
}

.site-footer .contact-list li {
    color: rgba(255, 255, 255, 0.9);
}

.site-footer .contact-list svg {
    stroke: #ffd38b;
}

.footer-legal-notice {
    padding-top: 0.85rem;
    color: #e2cbba;
    font-size: 0.75rem;
    text-align: center;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/* Contact item pending badge */
.contact-item.contact-pending span {
    color: #ffd38b;
    font-style: italic;
}

/* ==========================================================================
   Shared Light Footer
   ========================================================================== */
.site-footer.site-footer--light {
    position: relative;
    padding: clamp(2.8rem, 6vw, 5rem) max(1.25rem, calc((100vw - 1320px) / 2)) 1.25rem;
    overflow: hidden;
    border-top: 1px solid #ead8cf;
    background: linear-gradient(145deg, #fffaf6 0%, #f9eee8 58%, #f7e6e8 100%);
    color: #3d2c26;
}

.site-footer--light::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -130px;
    width: 410px;
    height: 410px;
    border: 1px solid rgba(181, 18, 80, 0.09);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(181, 18, 80, 0.025), 0 0 0 110px rgba(181, 18, 80, 0.018);
    pointer-events: none;
}

.site-footer--light .footer-accent {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wine), var(--pink), var(--gold));
}

.site-footer--light .footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
    padding: 0;
}

.site-footer--light .footer-brand {
    min-width: 0;
}

.site-footer--light .brand--footer {
    display: inline-flex;
}

.site-footer--light .footer-logo-img {
    width: clamp(150px, 42vw, 190px);
    height: auto;
}

.site-footer--light .tagline {
    margin: 1rem 0 0.65rem;
    color: var(--wine);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.22rem;
    font-style: italic;
    font-weight: 600;
}

.site-footer--light .footer-desc {
    max-width: 360px;
    margin: 0 0 1.2rem;
    color: #634f46;
    font-size: 0.86rem;
    line-height: 1.7;
}

.site-footer--light .footer-appointment {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.65rem 1rem;
    border: 1px solid var(--wine);
    border-radius: 999px;
    background: transparent;
    color: var(--wine) !important;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none !important;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-footer--light .footer-appointment:hover,
.site-footer--light .footer-appointment:focus-visible {
    background: var(--wine);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 18, 63, 0.18);
}

.site-footer--light .footer-column h2 {
    margin: 0 0 1rem;
    color: var(--wine);
    font-family: Montserrat, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.site-footer--light ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer--light li {
    margin: 0 0 0.7rem;
    color: #59473f;
    font-size: 0.82rem;
    line-height: 1.55;
}

.site-footer--light a:not(.footer-appointment) {
    color: #493830;
    text-decoration: none;
    text-underline-offset: 4px;
    transition: color 0.18s ease, padding-left 0.18s ease;
}

.site-footer--light .footer-column a:hover,
.site-footer--light .footer-column a:focus-visible {
    padding-left: 3px;
    color: var(--wine);
    text-decoration: underline;
}

.site-footer--light .footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    overflow-wrap: anywhere;
}

.site-footer--light .footer-contact .icon {
    width: 17px;
    height: 17px;
    margin-top: 0.2rem;
    flex: 0 0 17px;
    fill: none;
    stroke: var(--wine);
    stroke-width: 1.8;
}

.site-footer--light .footer-bottom {
    position: relative;
    display: grid;
    gap: 0.55rem;
    margin-top: clamp(2.2rem, 4vw, 3.5rem);
    padding-top: 1.2rem;
    border-top: 1px solid #dfc9bf;
    color: #725f56;
    font-size: 0.7rem;
    line-height: 1.55;
}

.site-footer--light .footer-bottom p,
.site-footer--light .footer-legal-notice {
    margin: 0;
    padding: 0;
    color: inherit;
    text-align: left;
}

@media (min-width: 640px) {
    .site-footer--light .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem 3rem;
    }
    .site-footer--light .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .site-footer--light .footer-grid {
        grid-template-columns: minmax(240px, 1.35fr) minmax(150px, 0.8fr) minmax(125px, 0.65fr) minmax(250px, 1.15fr);
        gap: clamp(2rem, 4vw, 4.5rem);
    }
    .site-footer--light .footer-brand {
        grid-column: auto;
    }
    .site-footer--light .footer-bottom {
        grid-template-columns: auto minmax(320px, 620px);
        align-items: start;
        justify-content: space-between;
        gap: 2rem;
    }
    .site-footer--light .footer-legal-notice {
        text-align: right;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer--light a {
        transition: none !important;
    }
}

/* ==========================================================================
   Shared Global Navigation & Services Dropdown
   ========================================================================== */
.nav-services {
    position: relative;
    align-self: stretch;
    color: var(--ink);
}

.nav-services summary {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: inherit;
    font-size: clamp(0.82rem, 0.82vw, 0.9rem);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}

.nav-services summary::-webkit-details-marker,
.mobile-services summary::-webkit-details-marker {
    display: none;
}

.nav-services summary::marker,
.mobile-services summary::marker {
    content: "";
}

.nav-services summary svg,
.mobile-services summary svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.22s ease;
}

.nav-services[open] summary,
.nav-services summary:hover,
.nav-services.active summary {
    color: var(--wine);
}

.nav-services[open] summary svg,
.mobile-services[open] summary svg {
    transform: rotate(180deg);
}

.nav-services.active summary::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 22px;
    left: 0;
    height: 2px;
    background: var(--wine);
}

.services-menu {
    position: absolute;
    top: calc(100% - 14px);
    left: 50%;
    width: min(310px, 84vw);
    padding: 0.55rem;
    border: 1px solid rgba(139, 18, 63, 0.12);
    border-radius: 0.8rem;
    background: rgba(255, 250, 245, 0.98);
    box-shadow: 0 18px 45px rgba(73, 35, 22, 0.16);
    backdrop-filter: blur(16px);
    opacity: 0;
    transform: translate(-50%, -7px);
    animation: services-menu-in 0.2s ease forwards;
}

.services-menu a {
    height: auto !important;
    display: block !important;
    padding: 0.72rem 0.85rem;
    border-radius: 0.55rem;
    font-size: 0.76rem !important;
    line-height: 1.35;
    white-space: normal !important;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.services-menu a:hover,
.services-menu a:focus-visible,
.services-menu a.active {
    color: var(--wine);
    background: rgba(181, 18, 80, 0.08);
    transform: translateX(3px);
}

.services-menu a::after {
    display: none !important;
}

@keyframes services-menu-in {
    to { opacity: 1; transform: translate(-50%, 0); }
}

.mobile-services {
    border-bottom: 1px solid var(--line);
}

.mobile-services summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.5rem;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    list-style: none;
}

.mobile-services > div {
    display: grid;
    padding: 0 0 0.6rem 0.7rem;
}

.mobile-services > div a {
    padding: 0.72rem 0.6rem !important;
    border-bottom: 0 !important;
    color: #654f45 !important;
    font-size: 0.75rem !important;
}

@media (max-width: 1120px) and (min-width: 1024px) {
    .site-header {
        padding-inline: 1rem;
    }
    .desktop-nav {
        gap: 0.7rem;
    }
    .desktop-nav a,
    .nav-services summary {
        font-size: 0.72rem;
    }
    .header-cta {
        padding-inline: 0.8rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-menu {
        animation: none;
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ==========================================================================
   Global Sticky Round WhatsApp & Call Buttons (All Pages)
   ========================================================================== */
.floating-contact {
    position: fixed;
    right: clamp(1rem, 2.5vw, 2rem);
    bottom: clamp(1.2rem, 3vw, 2.2rem);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: center;
    pointer-events: auto;
}

.fab {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(39, 26, 21, 0.28);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    isolation: isolate;
    touch-action: manipulation;
}

.fab svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 2;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.fab:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 14px 28px rgba(39, 26, 21, 0.35);
}

.fab:hover svg {
    transform: scale(1.1);
}

.fab:active {
    transform: translateY(0) scale(0.96);
}

.fab:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.42), 0 14px 28px rgba(39, 26, 21, 0.35);
}

/* WhatsApp Brand Styling */
.fab-whatsapp {
    background: #25d366;
}

.fab-whatsapp .fab-whatsapp-icon {
    width: 26px;
    height: 26px;
}

/* Call Button Styling */
.fab-call {
    background: linear-gradient(135deg, var(--wine), var(--wine-dark));
}

/* Continuous Pulse Ripple Wave */
.fab-pulse-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
}

.fab-whatsapp .fab-pulse-ring {
    border: 2px solid rgba(37, 211, 102, 0.6);
    animation: fab-ripple-wa 3s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}

.fab-call .fab-pulse-ring {
    border: 2px solid rgba(181, 18, 80, 0.6);
    animation: fab-ripple-call 3s cubic-bezier(0.25, 0.8, 0.25, 1) 1.5s infinite;
}

@keyframes fab-ripple-wa {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes fab-ripple-call {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Desktop Hover Tooltips */
@media (min-width: 769px) {
    .fab::before {
        content: attr(data-tooltip);
        position: absolute;
        right: calc(100% + 12px);
        top: 50%;
        transform: translateY(-50%) translateX(8px);
        background: rgba(39, 26, 21, 0.94);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: #ffffff;
        font-family: Montserrat, -apple-system, BlinkMacSystemFont, sans-serif;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        padding: 6px 13px;
        border-radius: 20px;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
        transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: 10;
    }

    .fab:hover::before {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0);
    }
}

@media (max-width: 575px) {
    .floating-contact {
        gap: 0.65rem;
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, calc(14px + env(safe-area-inset-bottom)));
    }
    .fab {
        width: 48px;
        height: 48px;
    }
    .fab svg {
        width: 22px;
        height: 22px;
    }
    .fab-whatsapp .fab-whatsapp-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    .floating-contact {
        flex-direction: row;
        gap: 0.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fab-pulse-ring {
        animation: none !important;
    }
}

/* ==========================================================================
   Desktop Button Styling (Small Text & Shimmer Animation Overlay)
   ========================================================================== */
@media (min-width: 1024px) {
    .button,
    .small-button,
    .header-cta,
    .cta .button,
    .hero-actions .button {
        font-size: 0.74rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        padding: 0.7rem 1.35rem;
        min-height: 44px;
        position: relative;
        overflow: hidden;
        border-radius: 0.4rem;
        transition: transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1),
                    box-shadow 0.22s ease,
                    background-color 0.22s ease;
    }

    /* Primary Shimmer Overlay Animation */
    .button:not(.button-outline):not(.button-secondary)::after,
    .header-cta::after,
    .small-button::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -130%;
        width: 60%;
        height: 200%;
        background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.32),
            transparent
        );
        transform: rotate(25deg);
        transition: left 0.75s ease;
        pointer-events: none;
    }

    .button:not(.button-outline):not(.button-secondary):hover::after,
    .header-cta:hover::after,
    .small-button:hover::after {
        left: 170%;
    }

    .button:hover,
    .small-button:hover,
    .header-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(139, 18, 63, 0.22);
    }

    .button:active,
    .small-button:active,
    .header-cta:active {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(139, 18, 63, 0.15);
    }

    /* Secondary / Outline Button Fill Animation */
    .button-outline,
    .button-secondary {
        position: relative;
        overflow: hidden;
        z-index: 1;
        transition: color 0.25s ease, border-color 0.25s ease, transform 0.22s ease;
    }

    .button-outline::before,
    .button-secondary::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--wine);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: -1;
    }

    .button-outline:hover::before,
    .button-secondary:hover::before {
        transform: scaleX(1);
        transform-origin: left;
    }

    .button-outline:hover,
    .button-secondary:hover {
        color: #ffffff !important;
        border-color: var(--wine) !important;
        transform: translateY(-2px);
    }
}

/* ==========================================================================
   Form Validation & Error Micro-Interactions
   ========================================================================== */
.form-input.is-invalid,
.form-textarea.is-invalid,
.form-select.is-invalid {
    border-color: var(--error) !important;
    background-color: #fff9f9 !important;
    box-shadow: 0 0 0 3px rgba(224, 36, 36, 0.12) !important;
    animation: input-shake 0.35s ease;
}

@keyframes input-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.client-error-msg {
    display: block;
    color: var(--error);
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 0.35rem;
    animation: error-slide-in 0.25s ease forwards;
}

@keyframes error-slide-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Core Web Vitals & Smooth Rendering Enhancements
   ========================================================================== */
img, svg, picture {
    max-width: 100%;
    height: auto;
    font-style: italic;
    vertical-align: middle;
}

/* Reserve space & contain layout shifts */
.hero-media {
    aspect-ratio: 1920 / 720;
}

@media (max-width: 767px) {
    .hero-media {
        aspect-ratio: 768 / 600;
    }
}

/* ==========================================================================
   Responsive Brand Logo & Global Media System
   Worldwide Global Responsiveness: Mobile (320px+), Tablet (768px+),
   Desktop (1024px+), Ultra-wide (1440px - 4K)
   ========================================================================== */

.brand--logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    min-width: 0;
    max-width: 100%;
}

.brand-logo-img {
    height: clamp(38px, 5.2vw, 54px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand:hover .brand-logo-img {
    transform: scale(1.02);
}

.drawer-logo-img {
    height: clamp(34px, 7vw, 44px);
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
}

.footer-logo-img {
    height: clamp(48px, 6vw, 68px);
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
    margin-bottom: 0.9rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.brand--footer {
    display: inline-block;
    margin-bottom: 0.25rem;
}

.cms-brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Doctor Detail Hero with Responsive Photo & Global Breakpoints */
.doctor-detail-hero {
    background: linear-gradient(135deg, #fff7fa 0%, #fdf2e9 100%);
    border-bottom: 1px solid var(--line);
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2.5rem);
}

.doctor-detail-hero-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.25rem);
    text-align: center;
}

@media (min-width: 768px) {
    .doctor-detail-hero-container {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    .doctor-detail-hero-content {
        text-align: left !important;
        flex: 1 1 auto;
    }
    .doctor-detail-hero-content .hero-actions {
        justify-content: flex-start !important;
    }
    .doctor-quote-banner {
        margin-inline: 0 !important;
    }
}

.doctor-detail-photo-wrap {
    flex: 0 0 auto;
    width: clamp(200px, 30vw, 290px);
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(139, 18, 63, 0.18), 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 4px solid #ffffff;
    background: #ffffff;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.doctor-detail-photo-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px rgba(139, 18, 63, 0.24);
}

.doctor-detail-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Ultra-mobile (< 380px) fine-tuning */
@media (max-width: 380px) {
    .brand-logo-img {
        height: 36px;
    }
    .doctor-avatar-wrap {
        width: 115px;
        height: 115px;
    }
    .doctor-detail-photo-wrap {
        width: 100%;
        max-width: 240px;
    }
}
