/* =========================================================
   drharikrishnad.com — site styles
   ========================================================= */

:root {
    --brand: #b81c6d;
    --brand-dark: #8e1660;
    --brand-deep: #6e125c;
    --brand-tint: #fbeef5;
    --ink: #1f2430;
    --body: #4a5160;
    --muted: #6b7280;
    --line: #e7e3ea;
    --surface: #ffffff;
    --bg-tint: #faf7fa;
    --whatsapp: #128c4a;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(31, 36, 48, 0.08);
    --shadow-sm: 0 4px 14px rgba(31, 36, 48, 0.06);
    --header-h: 72px;
    --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 8px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    background: var(--surface);
    overflow-x: clip;
}

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    color: var(--ink);
    line-height: 1.25;
    font-weight: 600;
}

p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; list-style: none; }
cite { font-style: normal; }
button { font: inherit; color: inherit; }

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.sprite { display: none; }

.icon {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.2em;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }

.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-tint); color: var(--brand-dark); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #0e7a3f; color: #fff; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(160%) blur(8px);
    transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(31, 36, 48, 0.08); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 17px; }
.brand-role { font-size: 12px; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 24px; }
.site-nav ul a {
    color: var(--ink);
    font-weight: 500;
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { text-decoration: none; color: var(--brand); }
.site-nav ul a[aria-current="true"] { color: var(--brand); border-bottom-color: var(--brand); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 20px 20px;
        background: #fff;
        box-shadow: 0 12px 20px rgba(31, 36, 48, 0.08);
    }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .site-nav ul a[aria-current="true"] { border-bottom-color: var(--line); }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: 56px 0 72px;
    background:
        radial-gradient(circle at 85% 20%, rgba(184, 28, 109, 0.10), transparent 45%),
        linear-gradient(180deg, var(--bg-tint), #fff);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--brand-tint);
    color: var(--brand);
    font-weight: 600;
    font-size: 14px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-quals { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.hero-lead { font-size: 1.05rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 28px; }

.hero-points li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
    color: var(--ink);
}
.hero-points .icon { color: var(--brand); margin-top: 0.3em; }

.slideshow { max-width: 426px; margin: 0 auto; }

.slides {
    position: relative;
    aspect-ratio: 426 / 589;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #e9e4ea;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.slide-dots { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.dot {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.dot::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: #c9c2cc;
    transition: background-color 0.3s, transform 0.3s;
}
.dot:hover::after { background: var(--brand-dark); }
.dot.is-active::after { background: var(--brand); transform: scale(1.2); }

@media (max-width: 900px) {
    .hero { padding: 32px 0 56px; }
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .slideshow { max-width: 340px; }
}

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-tint { background: var(--bg-tint); }

.section-heading { margin-bottom: 36px; }
.section-heading.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 720px; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.section-heading h2 span { color: var(--brand); }
.section-heading p { color: var(--muted); margin: 0; }
.section-heading.center::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 3px;
    background: var(--brand);
}

@media (max-width: 700px) {
    .section { padding: 64px 0; }
}

/* ---------- About ---------- */

.about-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 80px;
}

.profile-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.profile-photo { position: relative; }
.profile-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.experience-badge {
    position: absolute;
    right: 16px;
    bottom: 16px;
    margin: 0;
    padding: 10px 16px;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
}
.experience-badge strong { display: block; font-size: 24px; }

.contact-list { padding: 8px 24px 16px; }
.contact-list li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { color: var(--brand); margin-top: 0.25em; }
.contact-list .label { display: block; font-weight: 600; color: var(--ink); }
.contact-list a { overflow-wrap: anywhere; }

.about-copy .lead { font-size: 1.1rem; color: var(--ink); font-weight: 500; }

.tick-list { margin-bottom: 1em; }
.tick-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
}
.tick-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-tint)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b81c6d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
        center / 10px no-repeat;
}

.quals-box {
    margin-top: 24px;
    padding: 24px;
    border-left: 4px solid var(--brand);
    border-radius: var(--radius-sm);
    background: var(--bg-tint);
}
.quals-box h3 { font-size: 1.1rem; }
.quals-box li { padding: 4px 0; }
.quals-box strong { color: var(--ink); }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.spec-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.spec-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.spec-card h3 { font-size: 1.08rem; }
.spec-card p { margin: 0; font-size: 15px; }

.spec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 22px;
}

@media (max-width: 991px) {
    .about-grid { grid-template-columns: 1fr; }
    .profile-card { max-width: 480px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .card-grid { grid-template-columns: 1fr; }
}

/* ---------- Appointment tabs ---------- */

.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.tab-list [role="tab"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--body);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.tab-list [role="tab"]:hover { border-color: var(--brand); color: var(--brand); }
.tab-list [role="tab"][aria-selected="true"] {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.tab-panel[hidden] { display: none; }

.hospital-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 28px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.hospital-info p {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.hospital-info .icon { color: var(--brand); margin-top: 0.3em; }

.table-wrap { overflow-x: auto; margin-top: 8px; }
.schedule { width: 100%; border-collapse: collapse; font-size: 15px; }
.schedule th,
.schedule td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.schedule th { color: var(--ink); font-weight: 600; background: var(--bg-tint); }
.schedule td:last-child { text-align: right; }

.btn-book {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--brand-tint);
    color: var(--brand);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}
.btn-book:hover { background: var(--brand); color: #fff; text-decoration: none; }

.map {
    position: relative;
    min-height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #ece8ee;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-lg { min-height: 420px; }

@media (max-width: 800px) {
    .hospital-card { grid-template-columns: 1fr; padding: 20px; }
    .tab-list [role="tab"] { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Panels: education, credentials ---------- */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.panel-card {
    padding: 28px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--brand-tint);
    font-size: 1.15rem;
}
.panel-title .icon { color: var(--brand); font-size: 1.3em; }

.timeline { position: relative; padding-left: 4px; }
.timeline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--line);
}
.timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 8px;
    padding: 0 0 20px 28px;
}
.timeline li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    border: 3px solid var(--brand);
    border-radius: 50%;
    background: #fff;
}
.timeline li.highlight::before { background: var(--brand); }
.timeline .year { font-weight: 600; color: var(--brand); font-size: 14px; }
.timeline h4 { font-size: 15px; margin-bottom: 2px; }
.timeline p { margin: 0; font-size: 14px; color: var(--muted); }

.sub-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 15px;
}
.sub-title:first-of-type { margin-top: 0; }
.sub-title .icon { color: var(--brand); }

.dot-list li,
.arrow-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 15px;
}
.dot-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}
.arrow-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--brand);
}

.panel-card .tick-list li { font-size: 15px; }

.pub-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.pub-list li:first-child { padding-top: 0; }
.pub-list li:last-child { border-bottom: 0; }
.pub-list cite { display: block; font-weight: 600; color: var(--ink); font-size: 15px; }
.pub-list span { font-size: 14px; color: var(--muted); }

@media (max-width: 991px) {
    .two-col { grid-template-columns: 1fr; }
    .three-col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .three-col { grid-template-columns: 1fr; }
    .timeline li { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Call to action ---------- */

.cta {
    padding: 96px 0;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(184, 28, 109, 0.92), rgba(110, 18, 92, 0.92)),
        url("../img/cta-bg.jpg") center / cover;
    background:
        linear-gradient(120deg, rgba(184, 28, 109, 0.92), rgba(110, 18, 92, 0.92)),
        image-set(url("../img/cta-bg.webp") type("image/webp"), url("../img/cta-bg.jpg") type("image/jpeg")) center / cover;
}
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 28px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Media ---------- */

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.video {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.2s; }
.video:hover img { opacity: 1; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 26px;
    transform: translate(-50%, -50%);
    transition: transform 0.2s;
}
.play .icon { fill: currentColor; margin-left: 4px; }
.video:hover .play { transform: translate(-50%, -50%) scale(1.08); }

@media (max-width: 700px) {
    .video-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.contact-boxes li {
    padding: 28px 24px;
    border-radius: 20px;
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.contact-boxes h3 { font-size: 1.05rem; }
.contact-boxes p,
.contact-boxes address { margin: 0; overflow-wrap: anywhere; }

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 22px;
}

.contact-media {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    align-items: stretch;
}

.storefront { margin: 0; }
.storefront img {
    width: 100%;
    height: calc(100% - 36px);
    min-height: 260px;
    object-fit: cover;
    border-radius: var(--radius);
}
.storefront figcaption { padding-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }

@media (max-width: 860px) {
    .contact-boxes { grid-template-columns: 1fr; }
    .contact-media { grid-template-columns: 1fr; }
    .map-lg { min-height: 340px; }
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 56px 0 32px;
    background: #1d1420;
    color: #cfc6d3;
    text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.brand-light,
.brand-light:hover { color: #fff; }
.brand-light img { background: #fff; border-radius: 10px; padding: 4px; }
.brand-light .brand-role { color: #b8adbd; }

.social { display: flex; gap: 12px; }
.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 18px;
    transition: background-color 0.2s;
}
.social a:hover { background: var(--brand); color: #fff; }

.copyright { margin: 0; font-size: 14px; }
.copyright a { color: #fff; }

/* ---------- Back to top ---------- */

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--brand-dark); color: #fff; }
