:root {
  color-scheme: light;
  --paper: #f6f6f1;
  --surface: #ffffff;
  --tint: #eaedf1;
  --ink: #1a2333;
  --muted: #5c6472;
  --slate: #46545f;
  --slate-dark: #333f49;
  --primary: #1e3a5f;
  --primary-dark: #10283f;
  --accent: #6f8f76;
  --warning: #c99a4a;
  --error: #b5503a;
  --line: #dfe2e4;
  --shadow: 0 18px 45px rgba(16, 33, 51, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(246, 246, 241, 0.94);
  border-bottom: 1px solid rgba(223, 226, 228, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.77rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--slate);
  font-size: 0.94rem;
}

.site-nav a:not(.text-button) {
  border-bottom: 2px solid transparent;
  padding: 8px 0;
}

.site-nav a:not(.text-button):hover,
.site-nav a:not(.text-button):focus-visible {
  border-color: var(--accent);
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--primary-dark);
  content: "";
}

.nav-toggle-bar {
  top: 21px;
}

.nav-toggle-bar::before {
  top: -7px;
}

.nav-toggle-bar::after {
  top: 7px;
}

/* Buttons */

.primary-button,
.secondary-button,
.text-button,
.link-button {
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.primary-button {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.22);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--primary-dark);
}

.primary-button:disabled {
  background: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary-dark);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--accent);
}

.text-button {
  background: var(--primary-dark);
  color: #fff;
}

.link-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--primary);
}

.full-width {
  width: 100%;
}

/* Typography */

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.lead {
  max-width: 720px;
  color: var(--slate);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
}

.section-intro {
  max-width: 610px;
}

.section-intro p:not(.eyebrow) {
  color: var(--slate);
  font-size: 1.05rem;
}

.compact {
  margin-bottom: 24px;
}

/* Hero (home page) */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(34px, 5vw, 68px) clamp(18px, 5vw, 72px) 28px;
  background-image: linear-gradient(100deg, rgba(246, 246, 241, 0.97) 0%, rgba(246, 246, 241, 0.88) 45%, rgba(246, 246, 241, 0.5) 100%), url("/assets/room-background.png");
  background-size: cover;
  background-position: center;
}

.hero-copy {
  max-width: 640px;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  overflow-wrap: anywhere;
}

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

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 780px;
  margin: 0;
}

.quick-facts div,
.credential-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.photo-carousel {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--tint);
  box-shadow: var(--shadow);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Each photo frames the subject differently, so each needs its own focal point. */
.carousel-slide:nth-child(1) img {
  object-position: 50% 25%;
}

.carousel-slide:nth-child(2) img {
  object-position: 38% 15%;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-dark);
  font-weight: 800;
  cursor: pointer;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: #fff;
}

.trust-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 18px clamp(18px, 5vw, 72px) 34px;
}

.trust-band span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 13px;
  color: var(--slate);
  font-weight: 800;
}

/* Interior page header (About / Services / Conditions / Assessments / Contact / Appointments) */

.page-hero {
  padding: clamp(40px, 6vw, 74px) clamp(18px, 5vw, 72px) clamp(24px, 4vw, 40px);
  background: var(--tint);
}

.page-hero .section-intro {
  max-width: 760px;
}

/* Generic section + card grid */

.section-grid {
  padding: clamp(46px, 7vw, 86px) clamp(18px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(26px, 5vw, 60px);
  background: #fff;
}

.card-grid {
  padding: 0 clamp(18px, 5vw, 72px) clamp(46px, 7vw, 86px);
}

.banner-image {
  margin: 0 clamp(18px, 5vw, 72px) clamp(36px, 6vw, 64px);
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.banner-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.service-list,
.assessment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.assessment-card,
.testimonial-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.service-card,
.assessment-card {
  border-top: 4px solid var(--accent);
}

.service-card p,
.assessment-card p,
.testimonial-card blockquote {
  color: var(--slate);
}

.service-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--slate);
}

.service-card ul li {
  margin-bottom: 4px;
}

.card-cta {
  display: inline-block;
  margin-top: 14px;
}

/* Doctor / about section */

.doctor-section {
  padding: clamp(46px, 7vw, 86px) clamp(18px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: start;
  background: var(--tint);
}

.doctor-section p {
  max-width: 780px;
  color: var(--slate);
  font-size: 1.08rem;
}

.doctor-avatar {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  object-fit: cover;
  object-position: center 22%;
}

.pull-quote {
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--primary);
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-style: italic;
}

.credential-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-grid li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 12px;
  font-weight: 700;
  color: var(--slate);
}

/* Conditions accordion */

.condition-list {
  display: grid;
  gap: 12px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(46px, 7vw, 86px);
}

.condition-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 4px 22px;
}

.condition-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary-dark);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.condition-item summary::-webkit-details-marker {
  display: none;
}

.condition-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
}

.condition-item[open] summary::after {
  content: "\2212";
}

.condition-body {
  padding-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.condition-body h4 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.condition-body p {
  color: var(--slate);
  margin-bottom: 10px;
}

.condition-body ul {
  margin: 0;
  padding-left: 18px;
  color: var(--slate);
}

.condition-body ul li {
  margin-bottom: 4px;
}

/* Emergency notice */

.emergency-notice {
  margin: 20px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--warning);
  border-radius: 6px;
  background: #f8f1e2;
  color: #5c4420;
}

.emergency-notice strong {
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.emergency-notice p {
  margin: 0;
  font-weight: 600;
}

.page-hero .emergency-notice,
.appointments-page .emergency-notice {
  max-width: 760px;
}

/* Contact page / map */

.contact-grid {
  padding: clamp(46px, 7vw, 86px) clamp(18px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(26px, 5vw, 60px);
}

.contact-details dl {
  display: grid;
  gap: 14px;
  margin: 0 0 20px;
}

.contact-details dt {
  font-size: 0.76rem;
}

.contact-details dd {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
}

.hours-table th,
.hours-table td {
  padding: 10px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.map-frame {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--tint);
  min-height: 340px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

/* Appointment booking */

.appointments-page {
  padding: clamp(30px, 5vw, 60px) clamp(18px, 5vw, 72px) clamp(60px, 8vw, 100px);
  display: grid;
  gap: 28px;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.booking-card {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.portal-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 4px solid var(--warning);
  background: #f8f1e2;
  color: #5c4420;
  font-weight: 700;
}

.portal-status.success {
  border-left-color: var(--primary);
  background: var(--tint);
  color: var(--primary-dark);
}

.portal-status.error {
  border-left-color: var(--error);
  background: #faeae6;
  color: #7a3323;
}

.portal-form {
  display: grid;
  gap: 14px;
}

label,
legend {
  color: var(--slate-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  border: 1px solid #cfd5da;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(30, 58, 95, 0.35);
  outline-offset: 3px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mode-choice,
.duration-choice {
  display: grid;
  gap: 10px;
  margin: 2px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.duration-choice {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mode-choice label,
.duration-choice label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.mode-choice input,
.duration-choice input {
  width: 17px;
  min-height: 17px;
  margin: 0;
}

.duration-choice .price-pill {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--tint);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Calendar */

.calendar {
  display: grid;
  gap: 14px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-nav strong {
  font-size: 1.05rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

.calendar-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.calendar-day:hover:not(:disabled) {
  border-color: var(--accent);
}

.calendar-day:disabled {
  color: var(--line);
  background: transparent;
  border-color: transparent;
  cursor: not-allowed;
}

.calendar-day.empty {
  visibility: hidden;
  cursor: default;
}

.calendar-day.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}

.slot-pill {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
}

.slot-pill:hover:not(:disabled) {
  border-color: var(--accent);
}

.slot-pill:disabled {
  color: var(--line);
  background: var(--paper);
  cursor: not-allowed;
}

.slot-pill.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.slot-empty {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Order summary (payment page) */

.order-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.order-total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.order-total strong {
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.payment-methods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 20px;
}

.payment-methods span {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate);
}

/* Footer */

.site-footer {
  padding: 34px clamp(18px, 5vw, 72px);
  background: #101d2c;
  color: #eef1f5;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(260px, 0.8fr);
  gap: 22px;
}

.site-footer a {
  text-decoration: underline;
}

.site-footer p {
  margin: 8px 0 0;
  color: #b6c0ca;
}

.site-footer .emergency-notice {
  margin: 22px 0 12px;
}

/* .site-footer p dims all footer text — restore the emergency notice's own
   higher-contrast color so it stays legible against its light background. */
.site-footer .emergency-notice p {
  color: inherit;
}

.footer-note {
  font-size: 0.85rem;
  color: #8b96a3 !important;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px clamp(18px, 5vw, 72px) 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a:not(.text-button) {
    width: 100%;
    padding: 10px 0;
  }

  .site-nav .text-button {
    width: 100%;
    margin-top: 8px;
  }

  .nav-toggle {
    display: block;
  }

  .hero,
  .section-grid,
  .doctor-section,
  .contact-grid,
  .booking-layout,
  .site-footer-grid,
  .condition-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
  }

  .hero {
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(2.65rem, 16vw, 4.4rem);
  }

  /* "PrabhaTheeram" is one unbroken word — without a smaller ceiling here it
     wraps mid-word ("PrabhaTheera" / "m") instead of staying on one line. */
  .hero-copy h1 {
    font-size: clamp(1.7rem, 9vw, 2.6rem);
  }

  .quick-facts,
  .service-list,
  .assessment-list,
  .credential-list,
  .form-grid,
  .order-summary,
  .duration-choice {
    grid-template-columns: 1fr;
  }

  .hero-actions a {
    width: 100%;
  }

  .booking-card {
    padding: 18px;
  }

  .calendar-grid {
    gap: 4px;
  }
}
