/*
Theme Name: Dr. Archita Professional
Theme URI: https://example.com/dr-archita-professional
Author: Satyam
Description: An editable, animated medical profile, appointment and patient-account WordPress theme for Dr. Archita Bandyopadhyay.
Version: 2.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dr-archita
Tags: medical, one-column, custom-logo, custom-menu, featured-images, accessibility-ready
*/

:root {
  --navy: #0a2d3a;
  --navy-2: #123f4d;
  --teal: #0f8f89;
  --teal-dark: #08726d;
  --mint: #e8f7f4;
  --ice: #f5fbfa;
  --ink: #17323c;
  --muted: #60737a;
  --line: #d9e8e6;
  --white: #ffffff;
  --gold: #d6a84b;
  --shadow: 0 18px 50px rgba(9, 45, 58, .10);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--navy); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-soft { background: var(--ice); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
h1, h2, h3, h4 { color: var(--navy); font-family: "DM Serif Display", Georgia, serif; font-weight: 400; line-height: 1.12; }
h1 { margin: 0; font-size: clamp(44px, 6vw, 78px); letter-spacing: -.035em; }
h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.025em; }
h3 { margin: 0 0 10px; font-size: 25px; }
p { margin-top: 0; }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading p:last-child { color: var(--muted); margin: 16px 0 0; font-size: 17px; }
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn::after { content: ""; position: absolute; inset: -50% auto -50% -45%; width: 28%; transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent); animation: buttonShine 5.5s ease-in-out infinite; pointer-events: none; }
.btn:hover { color: var(--white); background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 143, 137, .22); }
.btn-outline { color: var(--navy); border-color: rgba(10,45,58,.18); background: var(--white); }
.btn-outline:hover { color: var(--navy); background: var(--mint); }
.btn-light { color: var(--navy); background: var(--white); }
.btn-light:hover { color: var(--navy); background: var(--mint); }
.icon { width: 19px; height: 19px; flex: 0 0 auto; }

.topbar { padding: 8px 0; color: #dceced; background: var(--navy); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; }
.topbar a { color: #fff; }
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(9,45,58,.08); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 22px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.custom-logo { width: auto; max-height: 52px; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; color: white; background: var(--teal); box-shadow: 0 8px 18px rgba(15,143,137,.2); font-family: Georgia, serif; font-size: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { color: var(--navy); font-family: "DM Serif Display", Georgia, serif; font-size: 19px; }
.brand-subtitle { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.primary-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: var(--ink); font-size: 14px; font-weight: 650; }
.primary-nav a:hover { color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.account-link { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 12px; border-radius: 999px; color: var(--navy); font-size: 13px; font-weight: 750; }
.account-link:hover { color: var(--teal); background: var(--mint); }
.account-link svg { width: 18px; height: 18px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 12px; background: var(--mint); color: var(--navy); }

.hero { position: relative; overflow: hidden; padding: 88px 0 74px; background: linear-gradient(120deg, #f6fbfa 0%, #ebf7f5 55%, #fff 100%); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -170px; top: -190px; border: 80px solid rgba(15,143,137,.055); border-radius: 50%; }
.hero-medical-grid { position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(rgba(15,143,137,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(15,143,137,.035) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to right, transparent, black 40%, black); }
.hero-orbit { position: absolute; right: 7%; top: 12%; width: 410px; height: 410px; border: 1px solid rgba(15,143,137,.13); border-radius: 50%; animation: orbitRotate 24s linear infinite; }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border: 1px solid rgba(15,143,137,.09); border-radius: 50%; }
.hero-orbit::before { inset: 46px; }.hero-orbit::after { inset: 96px; }
.hero-orbit span { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 7px rgba(15,143,137,.09); }
.hero-orbit span:nth-child(1) { left: 30px; top: 88px; }.hero-orbit span:nth-child(2) { right: 48px; top: 62px; }.hero-orbit span:nth-child(3) { right: 22px; bottom: 115px; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 72px; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 span { color: var(--teal); }
.page-loaded .hero-copy h1 { animation: heroTitleIn .9s cubic-bezier(.18,.8,.24,1) both; }
.hero-copy h1 span { position: relative; display: inline-flex; background: linear-gradient(90deg, var(--teal-dark), var(--teal), #52beb4, var(--teal)); background-size: 240% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: textShimmer 5s linear infinite; }
.hero-copy h1 span::after { content: ""; display: inline-block; width: 2px; height: .78em; margin: .13em 0 0 8px; background: var(--teal); animation: fontCaretBlink 1.15s steps(1,end) infinite; }
.hero-subtitle { margin: 15px 0 0; color: var(--navy-2); font-size: 18px; font-weight: 750; }
.hero-intro { max-width: 660px; margin: 24px 0 0; color: var(--muted); font-size: 17px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px 30px; margin-top: 34px; padding-top: 25px; border-top: 1px solid var(--line); }
.trust-item { display: flex; align-items: center; gap: 9px; color: var(--navy); font-size: 13px; font-weight: 700; }
.trust-dot { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: var(--teal); background: var(--white); box-shadow: 0 5px 14px rgba(10,45,58,.08); }
.trust-item:nth-child(1) .trust-dot { animation: trustBlink 3s ease-in-out infinite; }
.trust-item:nth-child(2) .trust-dot { animation: trustBlink 3s .55s ease-in-out infinite; }
.trust-item:nth-child(3) .trust-dot { animation: trustBlink 3s 1.1s ease-in-out infinite; }
.doctor-visual { position: relative; min-height: 520px; transform: translate3d(0, var(--parallax-y, 0), 0); will-change: transform; }
.portrait-shell { position: absolute; inset: 18px 22px 0; overflow: hidden; border-radius: 220px 220px 32px 32px; background: linear-gradient(155deg, #cfece7, #f8fcfb); box-shadow: var(--shadow); }
.portrait-shell img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-placeholder { display: grid; place-items: center; width: 100%; height: 100%; padding: 46px; text-align: center; }
.portrait-placeholder .monogram { display: grid; place-items: center; width: 170px; height: 170px; border: 2px solid rgba(15,143,137,.25); border-radius: 50%; color: var(--teal); background: rgba(255,255,255,.68); font-family: "DM Serif Display", Georgia, serif; font-size: 64px; }
.portrait-placeholder p { max-width: 220px; margin: 22px 0 0; color: var(--muted); font-size: 13px; }
.availability-card { position: absolute; right: -18px; bottom: 20px; z-index: 3; width: 250px; padding: 18px; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.availability-card strong { display: block; color: var(--navy); }
.availability-card span { color: var(--muted); font-size: 13px; }
.availability-mobile-card { display: none; }
.medical-cross-float { position: absolute; left: -9px; top: 62px; z-index: 4; display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(255,255,255,.8); border-radius: 17px; color: var(--teal); background: rgba(255,255,255,.78); box-shadow: 0 12px 28px rgba(10,45,58,.12); font-size: 31px; font-weight: 300; backdrop-filter: blur(10px); animation: medicalFloat 4s ease-in-out infinite; }
.heartbeat-strip { position: absolute; right: 0; bottom: 4px; left: 0; height: 72px; opacity: .15; pointer-events: none; }
.heartbeat-strip svg { width: 100%; height: 100%; }
.heartbeat-strip path { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: heartbeatDraw 4.5s ease-in-out infinite; }
.status { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--teal-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #39b976; box-shadow: 0 0 0 5px rgba(57,185,118,.12); }
.status::before { animation: statusBlink 1.8s ease-in-out infinite; }

.quick-info { position: relative; z-index: 4; margin-top: -1px; background: var(--navy); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick-item { padding: 25px 24px; border-right: 1px solid rgba(255,255,255,.12); color: #e5f1f2; }
.quick-item:last-child { border: 0; }
.quick-label { display: block; color: #8fc5c3; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.quick-item strong { display: block; margin-top: 5px; color: white; font-size: 15px; }

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.credentials-card { position: sticky; top: 110px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.seal { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 25px; border-radius: 20px; color: var(--white); background: linear-gradient(145deg, var(--teal), var(--navy)); font-family: Georgia, serif; font-size: 27px; }
.credential-list { margin: 24px 0 0; padding: 0; list-style: none; }
.credential-list li { display: grid; grid-template-columns: 125px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.credential-list li:last-child { border: 0; }
.credential-list span { color: var(--muted); }
.credential-list strong { color: var(--navy); }
.about-copy > p { color: var(--muted); font-size: 17px; }
.interest-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.interest-chips span { padding: 9px 13px; border: 1px solid #cae3df; border-radius: 999px; color: var(--teal-dark); background: var(--mint); font-size: 12px; font-weight: 700; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-5px); border-color: #b7dcd7; box-shadow: var(--shadow); }
.service-icon { display: grid; place-items: center; width: 47px; height: 47px; margin-bottom: 20px; border-radius: 14px; color: var(--teal); background: var(--mint); }
.service-card.is-visible:nth-child(3n+1) .service-icon { animation: iconBreathe 3.8s ease-in-out infinite; }
.service-card.is-visible:nth-child(3n+2) .service-icon { animation: iconBreathe 3.8s .6s ease-in-out infinite; }
.service-card.is-visible:nth-child(3n) .service-icon { animation: iconBreathe 3.8s 1.2s ease-in-out infinite; }
.service-card h3 { font-family: inherit; font-size: 17px; font-weight: 800; }
.service-card p, .service-copy p { margin: 0; color: var(--muted); font-size: 14px; }

.experience-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; }
.current-role { padding: 30px; border-radius: var(--radius); color: white; background: linear-gradient(145deg, var(--teal), var(--navy)); }
.current-role .eyebrow { color: #d9f4f0; }
.current-role h3, .current-role strong { color: white; }
.current-role p { color: #d4e9e9; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 7px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 34px 18px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -30px; top: 7px; width: 14px; height: 14px; border: 3px solid var(--white); border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.timeline-item:nth-child(odd)::before { animation: timelineBlink 2.6s ease-in-out infinite; }
.timeline-item h3 { font-family: inherit; font-size: 18px; font-weight: 800; }
.timeline-meta { color: var(--teal-dark); font-size: 13px; font-weight: 750; }
.timeline-item p { color: var(--muted); }

.appointment { color: white; background: var(--navy); }
.appointment h2, .appointment h3 { color: white; }
.appointment .eyebrow { color: #8bd7d1; }
.appointment-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 65px; align-items: start; }
.clinic-details { display: grid; gap: 13px; margin: 30px 0; }
.clinic-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-bottom: 13px; border-bottom: 1px solid rgba(255,255,255,.12); }
.clinic-row span { color: #92b4bb; font-size: 13px; }
.clinic-row strong { color: white; font-size: 14px; }
.appointment-form { padding: 30px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); background: rgba(255,255,255,.07); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: #d9e9eb; font-size: 12px; font-weight: 700; }
.field input, .field textarea { width: 100%; border: 1px solid rgba(255,255,255,.15); border-radius: 11px; outline: 0; padding: 13px 14px; color: white; background: rgba(255,255,255,.09); }
.field input::placeholder, .field textarea::placeholder { color: #98adb3; }
.field input:focus, .field textarea:focus { border-color: #65c8c1; box-shadow: 0 0 0 3px rgba(101,200,193,.12); }
.field textarea { min-height: 105px; resize: vertical; }
.form-note { color: #9fb9be; font-size: 11px; }
.notice { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.1); font-size: 13px; }
.notice.success { border-left: 3px solid #66d29d; }
.notice.error { border-left: 3px solid #ff8f8f; }

.location-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: stretch; }
.location-copy { padding: 36px; border-radius: var(--radius); background: var(--mint); }
.location-copy address { color: var(--muted); font-style: normal; }
.map-wrap { min-height: 370px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #e8efee; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 370px; border: 0; }

.disclaimer { padding: 20px 0; color: #536a71; background: #edf5f4; font-size: 12px; }
.site-footer { padding: 58px 0 24px; color: #c8d9dc; background: #061f29; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 55px; }
.footer-brand p { max-width: 430px; color: #9eb5ba; }
.footer-title { margin: 0 0 17px; color: white; font-family: inherit; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: #afc4c8; font-size: 14px; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #819ba1; font-size: 12px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 17px; }
.legal-links a { color: #9bb0b5; }

.floating-actions { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.float-btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: white; box-shadow: 0 10px 26px rgba(0,0,0,.2); transition: transform .2s ease; }
.float-btn:hover { color: white; transform: translateY(-3px); }
.float-whatsapp { background: #24b968; }
.float-call { background: var(--teal); }
.entry-wrap { width: min(calc(100% - 40px), 850px); margin: 0 auto; padding: 80px 0; }
.entry-header { margin-bottom: 32px; }
.entry-content h2, .entry-content h3 { margin-top: 32px; }
.entry-content { color: #40585f; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

[data-reveal] { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity .72s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms), transform .72s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal].is-visible > h2, [data-reveal].is-visible .section-heading h2 { animation: sectionTitleFocus .85s cubic-bezier(.2,.75,.2,1) both; }

.scroll-progress { position: fixed; z-index: 100; top: 0; right: 0; left: 0; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--teal), #55d0c4, var(--gold)); }
.medical-loader { position: fixed; z-index: 9999; inset: 0; display: grid; place-content: center; justify-items: center; color: var(--navy); background: #f5fbfa; transition: opacity .55s ease, visibility .55s ease; }
.medical-loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-mark { position: relative; width: 66px; height: 66px; margin-bottom: 20px; animation: loaderBreathe 1.4s ease-in-out infinite; }
.loader-mark span { position: absolute; border-radius: 6px; background: var(--teal); }
.loader-mark span:first-child { width: 22px; height: 66px; left: 22px; }.loader-mark span:last-child { width: 66px; height: 22px; top: 22px; }
.loader-pulse { position: relative; overflow: hidden; width: 170px; height: 2px; margin-bottom: 18px; background: #d5e8e5; }
.loader-pulse i { position: absolute; width: 65px; height: 100%; background: linear-gradient(90deg, transparent, var(--teal), transparent); animation: loaderPulse 1.2s linear infinite; }
.medical-loader p { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cursor-dot, .cursor-ring { position: fixed; z-index: 9998; top: 0; left: 0; border-radius: 50%; pointer-events: none; opacity: 0; }
.has-custom-cursor .cursor-dot, .has-custom-cursor .cursor-ring { opacity: 1; }
.cursor-dot { width: 7px; height: 7px; margin: -3px 0 0 -3px; background: var(--teal); }
.cursor-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid rgba(15,143,137,.65); transition: width .2s ease, height .2s ease, margin .2s ease, background .2s ease; }
.cursor-ring.is-active { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(15,143,137,.09); }
.has-custom-cursor a, .has-custom-cursor button { cursor: none; }

.account-page { position: relative; overflow: hidden; min-height: 720px; padding: 85px 0 100px; background: linear-gradient(145deg, var(--ice), #fff); }
.account-shell { position: relative; z-index: 2; }
.account-intro { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.account-intro h1 { font-size: clamp(38px, 5vw, 60px); }
.account-intro > p:not(.eyebrow) { color: var(--muted); font-size: 16px; }
.account-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; color: var(--teal-dark); font-size: 12px; font-weight: 700; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.account-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.9); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.account-card h2 { font-size: 32px; }
.account-card label { display: block; margin-bottom: 6px; color: var(--navy); font-size: 12px; font-weight: 750; }
.account-card input[type="text"], .account-card input[type="email"], .account-card input[type="password"] { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #fbfefd; }
.account-card input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,143,137,.1); }
.account-card input[type="submit"] { min-height: 48px; padding: 10px 22px; border: 0; border-radius: 999px; color: #fff; background: var(--teal); font-weight: 750; cursor: pointer; }
.login-remember label { display: inline-flex; align-items: center; gap: 7px; }
.lost-password { display: inline-block; margin-top: 4px; font-size: 13px; }
.social-divider { display: flex; align-items: center; gap: 12px; margin: 25px 0 16px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.social-divider::before, .social-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-login-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-login-wrap small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.social-demo { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 750; opacity: .68; }
.social-demo span { margin-right: 8px; font-size: 17px; }.social-demo.facebook span { color: #1877f2; }.social-demo.google span { color: #db4437; }
.register-form p { margin-bottom: 16px; }.form-legal { color: var(--muted); font-size: 11px; }
.account-profile { max-width: 560px; margin: 0 auto; text-align: center; }
.profile-avatar { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 20px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--teal), var(--navy)); font-family: Georgia, serif; font-size: 34px; }
.account-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.account-alert { max-width: 920px; margin: 0 auto 18px; padding: 13px 16px; border-left: 3px solid var(--gold); border-radius: 10px; color: var(--navy); background: #fff8e7; }
.account-orb { position: absolute; border-radius: 50%; filter: blur(1px); }.account-orb-one { width: 380px; height: 380px; top: -150px; right: -100px; border: 80px solid rgba(15,143,137,.05); }.account-orb-two { width: 210px; height: 210px; bottom: -80px; left: -80px; background: rgba(214,168,75,.07); }
.error-page { min-height: 620px; display: grid; place-items: center; padding: 80px 0; text-align: center; background: var(--ice); }
.error-page .container { max-width: 720px; }.error-code { display: block; color: rgba(15,143,137,.14); font-family: Georgia, serif; font-size: 150px; line-height: .8; }

@keyframes orbitRotate { to { transform: rotate(360deg); } }
@keyframes medicalFloat { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes heartbeatDraw { 0% { stroke-dashoffset: 1400; } 55%,100% { stroke-dashoffset: 0; } }
@keyframes loaderBreathe { 0%,100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1); opacity: 1; } }
@keyframes loaderPulse { from { left: -65px; } to { left: 170px; } }
@keyframes heroTitleIn { from { opacity: 0; transform: translateY(20px); letter-spacing: -.07em; } to { opacity: 1; transform: translateY(0); letter-spacing: -.035em; } }
@keyframes textShimmer { to { background-position: 240% center; } }
@keyframes fontCaretBlink { 0%,48% { opacity: 1; } 49%,100% { opacity: 0; } }
@keyframes trustBlink { 0%,100% { transform: scale(1); box-shadow: 0 5px 14px rgba(10,45,58,.08); } 50% { transform: scale(1.12); box-shadow: 0 0 0 7px rgba(15,143,137,.09); } }
@keyframes statusBlink { 0%,100% { opacity: 1; box-shadow: 0 0 0 4px rgba(57,185,118,.12); } 50% { opacity: .45; box-shadow: 0 0 0 8px rgba(57,185,118,.04); } }
@keyframes iconBreathe { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(2deg); } }
@keyframes timelineBlink { 0%,100% { box-shadow: 0 0 0 2px var(--teal); } 50% { box-shadow: 0 0 0 7px rgba(15,143,137,.12); } }
@keyframes buttonShine { 0%,70% { left: -45%; opacity: 0; } 76% { opacity: 1; } 88%,100% { left: 125%; opacity: 0; } }
@keyframes sectionTitleFocus { from { opacity: .2; transform: translateY(12px); filter: blur(5px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }

@media (max-width: 1040px) {
  .primary-nav { position: fixed; inset: 111px 0 auto; display: none; padding: 25px; border-top: 1px solid var(--line); background: white; box-shadow: 0 20px 35px rgba(10,45,58,.12); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
  .account-link span { display: none; }
  .hero-grid { gap: 35px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 82px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 66px 0; }
  .topbar { display: none; }
  .header-inner { min-height: 72px; gap: 8px; }
  .primary-nav { top: 72px; max-height: calc(100vh - 72px); overflow-y: auto; }
  .site-branding { min-width: 0; }
  .brand-text { min-width: 0; }
  .brand-mark { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; font-size: 20px; }
  .brand-name { overflow: hidden; max-width: 210px; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
  .brand-subtitle { font-size: 8px; }
  .header-actions { gap: 5px; }
  .account-link { width: 39px; height: 39px; min-height: 39px; padding: 9px; justify-content: center; }
  .menu-toggle { width: 44px; height: 44px; }
  .hero { padding: 44px 0 48px; }
  .hero-copy { text-align: left; }
  .hero-copy h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-intro { margin-top: 18px; font-size: 15px; }
  .hero-buttons { margin-top: 24px; }
  .hero-orbit { width: 310px; height: 310px; right: -110px; top: 44%; }
  .hero-grid, .about-grid, .experience-layout, .appointment-grid, .location-grid { grid-template-columns: 1fr; gap: 38px; }
  .trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin-top: 26px; padding-top: 22px; }
  .trust-item { align-items: flex-start; font-size: 12px; line-height: 1.35; }
  .trust-item:last-child { grid-column: 1 / -1; }
  .doctor-visual { min-height: 0; max-width: 460px; width: 100%; margin: 6px auto 0; transform: none !important; }
  .portrait-shell { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 5; border-radius: 190px 190px 28px 28px; }
  .portrait-shell img { object-position: center 14%; }
  .availability-card { position: relative; right: auto; bottom: auto; width: calc(100% - 44px); margin: -58px auto 0; padding: 16px 18px; }
  .medical-cross-float { left: 2px; top: 72px; width: 48px; height: 48px; border-radius: 15px; font-size: 27px; }
  .heartbeat-strip { bottom: 20px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-item { min-height: 96px; padding: 20px 16px; }
  .quick-item:nth-child(2) { border-right: 0; }
  .quick-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .credentials-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .account-grid { grid-template-columns: 1fr; }
  .account-page { padding: 60px 0 75px; }
}

@media (max-width: 520px) {
  h1 { font-size: 40px; }
  h2 { font-size: 34px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .brand-name { max-width: 160px; font-size: 14px; }
  .brand-subtitle { letter-spacing: .07em; }
  .hero { padding-top: 36px; }
  .hero-copy .eyebrow { font-size: 10px; }
  .hero-copy h1 { font-size: clamp(39px, 11.5vw, 50px); }
  .hero-subtitle { font-size: 15px; line-height: 1.5; }
  .hero-buttons .btn { width: 100%; }
  .hero-buttons { gap: 10px; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-item:last-child { grid-column: auto; }
  .doctor-visual { min-height: 0; margin-top: 2px; }
  .portrait-shell { aspect-ratio: 4 / 5.15; border-radius: 160px 160px 25px 25px; }
  .portrait-shell img { object-position: center 12%; }
  .portrait-placeholder .monogram { width: 135px; height: 135px; font-size: 50px; }
  .availability-card { width: calc(100% - 28px); margin-top: -48px; padding: 14px 16px; }
  .availability-card strong { font-size: 15px; }
  .availability-card span { font-size: 12px; }
  .medical-cross-float { left: -2px; top: 62px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-item { min-width: 0; padding: 17px 12px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
  .quick-item:nth-child(even) { border-right: 0; }
  .quick-item:nth-child(n+3) { border-bottom: 0; }
  .quick-item strong { overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; }
  .quick-label { font-size: 9px; }
  .service-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .credential-list li, .clinic-row { grid-template-columns: 1fr; gap: 3px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .account-card { padding: 25px 20px; }
  .social-login-wrap { grid-template-columns: 1fr; }
  .social-login-wrap small { grid-column: auto; }
  .account-actions { flex-direction: column; }
  .floating-actions { right: 12px; bottom: 12px; flex-direction: row; gap: 8px; }
  .float-btn { width: 47px; height: 47px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-orbit, .medical-cross-float, .heartbeat-strip path, .loader-mark, .loader-pulse i { animation: none !important; }
  .medical-loader { display: none; }
}

/* Mobile-critical overrides: kept last so cached/plugin CSS cannot reintroduce overlap. */
@media (max-width: 780px) {
  .hero .doctor-visual .availability-card { display: none !important; }
  .hero .availability-mobile-card {
    display: flex !important;
    flex-direction: column;
    justify-self: end;
    width: 224px;
    margin: -27px 10px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 15px;
    color: var(--muted);
    background: rgba(255,255,255,.95);
    box-shadow: 0 12px 30px rgba(9,45,58,.13);
    backdrop-filter: blur(10px);
  }
  .availability-mobile-card .status { margin-bottom: 5px; font-size: 9px; letter-spacing: .06em; white-space: nowrap; }
  .availability-mobile-card .status::before { width: 7px; height: 7px; }
  .availability-mobile-card strong { color: var(--navy); font-size: 14px; line-height: 1.35; }
  .availability-mobile-card > span:last-child { margin-top: 3px; font-size: 11px; line-height: 1.45; }
  .quick-info .quick-grid-v2 { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 520px) {
  .hero .availability-mobile-card { width: 205px; margin: -29px 5px 0 0; padding: 10px 12px; border-radius: 13px; }
  .availability-mobile-card strong { font-size: 13px; }
  .quick-info .quick-grid-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .floating-actions { flex-direction: row !important; }
}
