/* ==========================================================================
   Sri Purna Cardiac Care — Modern Design System
   Mobile-first | self-hosted variable fonts | measured hierarchy | no italics
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

/* 1. Design Tokens */
:root {
  /* Fonts */
  --fs-heading: "Manrope", "Segoe UI", Arial, sans-serif;
  --fs-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  /* Colors — Medical palette */
  --color-bg: #F5F8FB;
  --color-bg-white: #FFFFFF;
  --color-text: #152B3A;
  --color-text-secondary: #40515C;
  --color-text-muted: #697982;
  --color-brand: #B83A46;
  --color-brand-dark: #96323D;
  --color-navy: #17364B;
  --color-border: #E1E8EF;
  --color-focus: #B83A46;
  --color-success: #059669;

  /* Radius & Shadows */
  --radius: 0.75rem;
  --radius-lg: 1.125rem;
  --shadow: 0 10px 30px rgb(23 54 75 / 0.07);
  --shadow-hover: 0 16px 36px rgb(23 54 75 / 0.11);
  --transition: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Spacing (8px grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Typography scale (mobile first) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  --container-max: 1200px;
  --container-padding: 1.5rem;

  /* Breakpoints (mobile first) */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
}

/* 2. Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--fs-body);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

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

p {
  margin-bottom: var(--space-5);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  text-align: left;
  text-wrap: pretty;
}

/* 3. Typography — No slanting anywhere */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fs-heading);
  font-weight: 680;
  line-height: var(--leading-tight);
  color: var(--color-text);
  letter-spacing: -0.035em;
  font-style: normal !important;
}

h1 { font-size: clamp(2.25rem, 9vw, 3.75rem); margin-bottom: var(--space-5); }
h2 { font-size: clamp(1.75rem, 6vw, 2.75rem); margin-bottom: var(--space-4); }
h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); margin-bottom: var(--space-3); }
h4 { font-size: var(--text-lg); margin-bottom: var(--space-3); }

/* Hero title — uniform heading */
.hero h1 {
  font-size: clamp(2.5rem, 5.8vw, 4.5rem);
  font-weight: 700;
  margin-bottom: var(--space-4);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-headline-accent {
  display: block;
  color: var(--color-brand-dark);
}

/* Eyebrow / badge labels — body font, no slant */
.eyebrow {
  font-family: var(--fs-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: var(--space-2);
  display: block;
}

/* 4. Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding: var(--space-12) 0;
}

.skip-link {
  position: absolute;
  top: var(--space-3);
  left: -100%;
  z-index: 1000;
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-white);
  color: var(--color-navy);
  font-family: var(--fs-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: left 0.2s ease;
}
.skip-link:focus {
  left: var(--space-3);
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* 5. Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgb(21 43 58 / 0.04);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: clamp(124px, 19.5vw, 150px);
  height: clamp(72px, 10.4vw, 80px);
  object-fit: contain;
  object-position: left center;
  transition: width 180ms ease, height 180ms ease;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  font-family: var(--fs-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.nav > a {
  color: var(--color-text-secondary);
  padding: var(--space-2) 0;
  position: relative;
  font-weight: 700;
  transition: color var(--transition);
}

.nav > a:hover,
.nav > a:focus {
  color: var(--color-brand);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-white);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--color-text);
}

/* 6. Buttons — uniform, no slant */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--fs-body);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-brand);
  color: var(--color-bg-white);
  border-color: var(--color-brand);
  box-shadow: 0 8px 20px rgb(184 58 70 / 0.16);
}

.btn-primary:hover {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgb(184 58 70 / 0.22);
}

.btn-block {
  width: 100%;
}

/* 7. Hero — mobile-first stack */
.hero {
  padding: clamp(2.75rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: radial-gradient(ellipse at 82% 40%, rgb(223 235 246 / 0.42), transparent 42%), var(--color-bg-white);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-media {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: min(100%, 470px);
  margin-inline: auto;
  padding: 9px;
  border: 1px solid rgb(225 232 239 / 0.85);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, #fff, #f3f7fa);
  box-shadow: 0 24px 60px rgb(23 54 75 / 0.12);
}

.hero-media img {
  width: 100%;
  max-width: none;
  border-radius: 1rem;
  border: 0;
  box-shadow: none;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 26%;
  animation: hero-image-reveal 680ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-role {
  margin: 0 0 var(--space-3);
  color: var(--color-navy);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.4;
}

.hero-lead {
  max-width: 58ch;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

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

.hero-proof {
  margin-top: var(--space-6);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.92);
}

.hero-proof strong {
  color: var(--color-text);
  font-family: var(--fs-body);
  font-weight: 700;
  font-size: var(--text-base);
  display: block;
}

.hero-proof small {
  color: var(--color-text-muted);
  font-family: var(--fs-body);
  font-size: var(--text-sm);
  display: block;
  margin-top: 0.15rem;
}

.hero-bottom {
  display: flex;
  grid-template-columns: 1fr auto;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--fs-body);
  font-size: var(--text-sm);
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hero-bottom > span {
  color: var(--color-brand);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--text-xs);
}

.hero-bottom strong {
  color: var(--color-navy);
  font-weight: 700;
}

.hero-bottom i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand);
  display: inline-block;
  margin: 0;
}

.hero-bottom a {
  color: var(--color-navy);
  font-weight: 600;
  justify-self: end;
  margin-left: 0;
}

/* 9. Section Headings */
.section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  text-align: center;
}

.section-heading > .body-copy {
  max-width: 600px;
  margin-inline: auto;
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
}

.about-section {
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.about-grid h2 { max-width: 13ch; }
.about-copy { max-width: 66ch; }

.about-callout {
  display: block;
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--color-brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--color-bg-white);
  box-shadow: var(--shadow);
}

.about-callout strong {
  color: var(--color-navy);
  font-weight: 700;
  display: block;
}

/* Services section — Bootstrap 5 grid, clinic palette, and consistent photo cards. */
.services-section {
  background: var(--color-bg-white);
}

.service-card {
  min-height: 32.5rem;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-white);
  box-shadow: 0 8px 24px rgb(23 54 75 / 0.045);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.service-card-image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: 0;
  background: var(--color-bg-white);
}

.service-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.035);
}

.service-photo-ecg img {
  object-position: center 55%;
}

.service-photo-pressure img {
  object-position: center 60%;
}

.service-card-content {
  min-width: 0;
}

.service-number {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-brand);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.service-card h3 {
  font-size: var(--text-lg);
}

.service-card p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.service-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 44px;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
  color: var(--color-brand-dark);
  font-family: var(--fs-body);
  font-size: var(--text-sm);
  font-weight: 700;
}

.service-action:hover,
.service-action:focus-visible {
  color: var(--color-brand);
}

.service-procedure-note {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-white);
}

.service-procedure-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.service-procedure-copy {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
}

.service-procedure-label {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--color-brand);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-disclaimer {
  color: var(--color-navy);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* 11. Doctor Section */
.doctor-section {
  background: var(--color-bg-white);
}

.doctor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

.doctor-copy h2,
.doctor-copy h3 {
  margin-bottom: var(--space-3);
}

.doctor-role {
  color: var(--color-brand);
  font-family: var(--fs-body);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  display: block;
}

.body-copy {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  margin-bottom: var(--space-5);
}

.qualifications {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.qualifications > div {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.qual-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-brand);
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  flex-shrink: 0;
}

.qualifications span:last-child {
  display: flex;
  flex-direction: column;
}

.qualifications b {
  color: var(--color-navy);
  font-family: var(--fs-body);
  font-weight: 600;
  font-size: var(--text-sm);
}

.qualifications small {
  color: var(--color-text-muted);
  font-family: var(--fs-body);
  font-size: var(--text-xs);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-navy);
  font-family: var(--fs-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.text-link:hover {
  color: var(--color-brand);
}

.career-heading {
  margin: var(--space-8) 0 var(--space-3);
  font-size: var(--text-lg);
}

/* 12. Appointment Band */
.appointment-band {
  position: relative;
  padding: var(--space-12) 0;
  background: linear-gradient(115deg, #17364B 0%, #1E465A 100%);
  color: var(--color-bg-white);
  overflow: hidden;
}

.appointment-band .eyebrow {
  color: #F1C8C0;
}

.appointment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

.appointment-grid h2 {
  color: var(--color-bg-white);
  margin-bottom: var(--space-4);
}

.appointment-grid p {
  color: #94A3B8;
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
  max-width: 100%;
}

.appointment-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.appointment-actions .btn {
  width: 100%;
  justify-content: center;
}

.appointment-actions .btn-white {
  background: var(--color-bg-white);
  border-color: var(--color-bg-white);
  color: var(--color-navy);
}

.appointment-actions .btn-white:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-bg-white);
}

.appointment-actions .btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--color-bg-white);
}

.appointment-actions .btn-outline-white:hover {
  background: var(--color-bg-white);
  border-color: var(--color-bg-white);
  color: var(--color-navy);
}

.appointment-actions small {
  color: #94A3B8;
  font-family: var(--fs-body);
  font-size: var(--text-xs);
  margin-top: var(--space-2);
}

/* 13. Contact / Visit */
.visit-header {
  max-width: 720px;
  margin-bottom: var(--space-8);
}

.visit-header h2 {
  margin-bottom: var(--space-3);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}

.visit-subheading {
  margin-bottom: var(--space-5);
  font-size: var(--text-lg);
}

.visit-copy {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-white);
  box-shadow: var(--shadow);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.detail-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  color: var(--color-brand);
  display: grid;
  place-items: center;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.contact-detail b {
  color: var(--color-navy);
  font-family: var(--fs-body);
  font-weight: 600;
  font-size: var(--text-sm);
  display: block;
}

.contact-detail small {
  color: var(--color-text-muted);
  font-family: var(--fs-body);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.contact-detail a:hover {
  color: var(--color-brand);
}

.map-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-white);
  box-shadow: var(--shadow);
}

.map-card iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: var(--radius-lg);
}

.map-caption {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
}

.map-pin {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-brand);
  display: grid;
  place-items: center;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.map-caption b {
  color: var(--color-navy);
  font-family: var(--fs-body);
  font-weight: 600;
  font-size: var(--text-sm);
}

.map-caption small {
  color: var(--color-text-muted);
  font-family: var(--fs-body);
  font-size: var(--text-xs);
}

.map-caption > a {
  margin-left: auto;
  color: var(--color-navy);
  font-weight: 600;
  font-family: var(--fs-body);
  font-size: var(--text-sm);
}

/* 14. Footer */
.footer {
  padding: var(--space-10) 0 var(--space-6);
  background: var(--color-navy);
  color: #94A3B8;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(220, 229, 235, 0.3);
}

.brand-footer {
  padding: var(--space-2);
  border-radius: var(--radius);
  background: var(--color-bg-white);
  width: fit-content;
}

.brand-footer .brand-logo {
  width: 150px;
  height: auto;
}

.footer-main > p {
  margin: 0;
  color: #94A3B8;
  font-family: var(--fs-body);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.footer-call {
  color: var(--color-bg-white);
  font-family: var(--fs-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.footer-call:hover {
  color: #94A3B8;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.social-link {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.social-link svg {
  display: block;
  width: 21px;
  height: 21px;
}

.footer .social-link {
  border-color: rgb(255 255 255 / 0.4);
  color: var(--color-bg-white);
}

.footer .social-link:hover {
  border-color: var(--color-bg-white);
  background: var(--color-bg-white);
  color: var(--color-navy);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-4);
  color: #94A3B8;
  font-family: var(--fs-body);
  font-size: var(--text-xs);
}

.medical-note {
  margin-top: var(--space-4);
  color: #94A3B8;
  font-size: var(--text-xs);
  line-height: 1.6;
}

/* 15. Appointment form inside the contact section */
.appointment-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
}

.appointment-card-title {
  margin-bottom: var(--space-2);
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.appointment-card-lead {
  margin-bottom: var(--space-6);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.form-group {
  min-width: 0;
  margin-bottom: 0;
}

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

.form-group label {
  display: block;
  font-family: var(--fs-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  letter-spacing: 0.01em;
}

.form-group .required {
  color: var(--color-brand);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  font-family: var(--fs-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg-white);
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px rgb(184 58 70 / 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #64748B;
  opacity: 1;
}

.form-group textarea {
  resize: vertical;
  min-height: 112px;
  padding: 14px;
}

.form-note {
  margin: var(--space-4) 0 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.appointment-card #formSubmit { margin-top: var(--space-4); }

.appointment-disclaimer {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}

.form-status {
  display: none;
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid #A7F3D0;
  background: #ECFDF5;
  color: #065F46;
  border-radius: var(--radius);
  font-family: var(--fs-body);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.form-status.is-visible {
  display: block;
}

/* Focus states */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* 17. Mobile-first responsive enhancements */
@media (min-width: 640px) {
  .nav-wrap { height: 84px; }
  .hero { padding: var(--space-16) 0 var(--space-16); }
  .section { padding: var(--space-16) 0; }
}

@media (min-width: 768px) {
  .menu-toggle { display: none !important; }
  .nav { display: flex; gap: var(--space-8); }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-12);
  }
  .hero-actions {
    flex-direction: row;
    gap: var(--space-3);
  }
  .hero-actions .btn { width: auto; }
  .hero-proof { margin-top: var(--space-8); }
  .hero-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
  }
  .hero-bottom a { justify-self: auto;
  margin-left: auto;
}
  .section-heading {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  .section-heading > .body-copy {
    max-width: 480px;
    margin-inline: 0;
    text-align: left;
  }
  .appointment-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
  .visit-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: var(--space-8);
  }
  .visit-grid .map-card {
    grid-column: 1 / -1;
  }
  .footer-main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  :root { --container-padding: 2rem; }
  .section { padding: var(--space-20) 0; }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .doctor-grid { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
  .qualifications { grid-template-columns: repeat(3, 1fr); }
}

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

/* Mobile navigation and layout safeguards */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 44px;
  border: 0;
  background: transparent;
  color: var(--color-brand);
}

.menu-toggle > span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0;
  border-radius: 2px;
  background: var(--color-navy);
}

.nav-wrap { position: relative; }

.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  background: var(--color-bg-white);
  border-bottom: 1px solid transparent;
  box-shadow: var(--shadow);
  transition: max-height 260ms ease, padding 220ms ease, opacity 160ms ease,
    transform 260ms ease, visibility 0s linear 260ms;
}

.nav.open {
  max-height: 280px;
  padding: 0.5rem 1.5rem 1rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  border-bottom: 1px solid var(--color-border);
  transition: max-height 260ms ease, padding 220ms ease, opacity 160ms ease,
    transform 260ms ease, visibility 0s;
}

.nav.open > a {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.nav.open > a:last-child { border-bottom: 0; }

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    max-height: none;
    overflow: visible;
    padding: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    border: 0;
    box-shadow: none;
    transition: none;
    gap: var(--space-5);
  }
  .nav.open {
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .nav.open > a { padding: var(--space-2) 0; border: 0; }
}

@media (max-width: 420px) {
  :root { --container-padding: 1rem; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-bottom a { justify-self: start; }
  .visit-copy, .appointment-card { padding: var(--space-4); }
}

@media (min-width: 1024px) {
  .doctor-grid { grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr); }
}


/* Doctor profile visibility and readable credentials */
.hero-credentials {
  margin: -0.5rem 0 var(--space-4);
  color: var(--color-navy);
  font-size: var(--text-sm);
  font-weight: 600;
}

.doctor-grid {
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
}

.doctor-profile-photo {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-white);
  box-shadow: 0 18px 42px rgb(23 54 75 / 0.10);
}

.doctor-profile-photo img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: center 30%;
}

.doctor-profile-photo figcaption {
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  text-align: center;
  background: var(--color-bg-white);
}

.doctor-visit {
  padding: var(--space-4);
  border-left: 3px solid var(--color-brand);
  background: var(--color-bg-white);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.doctor-visit strong { color: var(--color-navy); }

@media (max-width: 767px) {
  .doctor-grid { grid-template-columns: 1fr; }
  .doctor-profile-photo { max-width: 420px; margin-inline: auto; }
  .doctor-profile-photo img { max-height: 480px; }
}

@media (max-width: 767px) {
  .hero-grid {
    grid-template-areas:
      "photo"
      "content";
  }

  .hero-media {
    grid-area: photo;
    animation: hero-photo-enter 420ms ease-out both;
  }

  .hero-content { grid-area: content; }
}

@keyframes hero-image-reveal {
  from { opacity: 0.84; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes hero-photo-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .hero-media img { animation: none; }
  .nav { transition: none; }
}

/* Small patient-education introduction; the detailed content lives on its own pages. */
.education-intro {
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-block: 1px solid var(--color-border);
  background: var(--color-bg);
}

.education-intro-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.education-kicker {
  color: var(--color-brand-dark);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.education-intro h2 {
  margin: 0.3rem 0 0.5rem;
  color: var(--color-navy);
  font-family: var(--fs-heading);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: var(--leading-tight);
}

.education-intro p {
  max-width: 680px;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.education-intro-link {
  display: inline-flex;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-navy);
  border-radius: 999px;
  color: var(--color-navy);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background-color var(--transition), color var(--transition);
}

.education-intro-link:hover,
.education-intro-link:focus-visible {
  background: var(--color-navy);
  color: #fff;
}

@media (max-width: 767px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }

  .hero-bottom i { display: none; }
}

@media (max-width: 680px) {
  .education-intro-inner { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
}


/* 18. Dr. Nakka's photo gallery */
.gallery-section {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 0%, rgb(220 238 242 / 0.56), transparent 44%),
    #F8FAFC;
}

.gallery-heading { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.gallery-heading h2 { max-width: 650px; }
.gallery-heading > .body-copy { max-width: 430px; }

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.gallery-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgb(23 54 75 / 0.08);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 32px rgb(23 54 75 / 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgb(23 54 75 / 0.14);
}

.gallery-card > a {
  position: relative;
  display: block;
  overflow: hidden;
  background: #E6EEF2;
  aspect-ratio: 4 / 3;
}

.gallery-card-feature > a { aspect-ratio: 4 / 3; }

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-card-feature img { object-position: center 67%; }
.gallery-card:hover img { transform: scale(1.035); }

.gallery-open {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.6);
  border-radius: 50%;
  background: rgb(17 43 61 / 0.76);
  color: #fff;
  font-size: 1.15rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-card:hover .gallery-open,
.gallery-card a:focus-visible .gallery-open { opacity: 1; transform: translateY(0); }

.gallery-card figcaption {
  display: grid;
  gap: 0.22rem;
  padding: 0.9rem 1rem 1rem;
}

.gallery-card figcaption span {
  color: var(--color-brand);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.gallery-card figcaption strong {
  color: var(--color-navy);
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.35;
}

.gallery-note {
  margin: 1rem 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .gallery-card-feature { grid-column: span 2; }
  .gallery-card-feature > a { aspect-ratio: 16 / 8; }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(115px, auto);
    gap: 1.25rem;
  }
  .gallery-card-feature { grid-column: span 7; grid-row: span 2; }
  .gallery-card-feature > a { aspect-ratio: auto; height: 100%; min-height: 280px; }
  .gallery-card:nth-child(2) { grid-column: span 5; }
  .gallery-card:nth-child(3) { grid-column: span 5; }
  .gallery-card:nth-child(n+4) { grid-column: span 4; }
  .gallery-card:not(.gallery-card-feature) > a { aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card, .gallery-card img, .gallery-open { transition: none; }
}

/* Dedicated physician profile page */
.doctor-page-heading {
  padding: clamp(3.5rem, 8vw, 6rem) 0 1rem;
  background: radial-gradient(ellipse at 50% 0%, rgb(220 238 242 / 0.72), transparent 64%);
  text-align: center;
}
.doctor-page-heading .eyebrow { margin-bottom: 0.75rem; }
.doctor-page-heading h1 {
  margin: 0 auto 0.75rem;
  color: var(--color-navy);
  font-size: clamp(2.25rem, 6vw, 4rem);
}
.doctor-page-heading p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--color-text-secondary);
}
.doctor-page-heading + .doctor-section { padding-top: var(--space-8); }
.doctor-profile-cta {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: start;
  gap: 0.7rem;
  overflow: hidden;
  margin-top: var(--space-5);
  padding: clamp(1.2rem, 3vw, 1.65rem);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, #17364B 0%, #244F68 100%);
  box-shadow: 0 16px 36px rgb(23 54 75 / 0.18);
}
.doctor-profile-cta::after {
  position: absolute;
  z-index: -1;
  top: -3.5rem;
  right: -2.5rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5rem rgb(255 255 255 / 0.035), 0 0 0 3rem rgb(255 255 255 / 0.025);
  content: "";
  pointer-events: none;
}
.doctor-profile-cta-kicker {
  color: #FFD9D7;
  font-family: var(--fs-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.doctor-profile-cta > p {
  max-width: 54ch;
  margin: 0;
  color: rgb(255 255 255 / 0.9);
  font-size: var(--text-base);
  line-height: 1.6;
}
.doctor-profile-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.15rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 0.75);
  border-radius: 0.7rem;
  background: #fff;
  color: var(--color-navy);
  font-size: var(--text-base);
  font-weight: 700;
  box-shadow: 0 5px 16px rgb(0 0 0 / 0.12);
  transition: transform var(--transition), background-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.doctor-profile-cta .doctor-profile-link { font-weight: 750; }
.doctor-profile-link:hover {
  transform: translateY(-2px);
  background: #FFF5F4;
  color: var(--color-brand-dark);
  box-shadow: 0 9px 22px rgb(0 0 0 / 0.18);
}
.doctor-profile-link:focus-visible {
  outline: 3px solid #FFD9D7;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .doctor-profile-cta { width: 100%; }
  .doctor-profile-link { width: 100%; }
}

/* Refined type rhythm: justify only substantial prose on wide layouts. */
.hero-lead,
.body-copy,
.doctor-page-heading p {
  max-width: 68ch;
}

.doctor-page-heading p {
  line-height: 1.75;
}

.body-copy {
  font-weight: 400;
  line-height: 1.72;
}

.nav > a,
.btn,
.doctor-profile-link,
.text-link {
  font-weight: 600;
}

.qualifications b,
.contact-detail b,
.map-caption b {
  font-weight: 600;
}

@media (min-width: 1024px) {
  .hero-lead,
  .doctor-copy > p.body-copy,
  .about-copy > p.body-copy {
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
  }
}

@media (max-width: 767px) {
  .hero-lead,
  .body-copy,
  .doctor-page-heading p {
    text-align: left;
    hyphens: none;
  }
}

/* Appointment-first social links and a clear professional timeline. */
.hero-social-action {
  gap: 0.6rem;
  padding-inline: 1rem;
  font-size: 0.94rem;
  white-space: nowrap;
}

.hero-social-action svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.btn-social-secondary {
  border-color: var(--color-border);
  background: var(--color-bg-white);
  color: var(--color-navy);
  box-shadow: 0 6px 18px rgb(23 54 75 / 0.07);
}

.btn-social-secondary:hover {
  transform: translateY(-1px);
  border-color: var(--color-navy);
  background: #F7FAFC;
}

.hero-community-note {
  width: min(100%, 52ch);
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--color-brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--color-bg);
  color: var(--color-navy);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
}

.doctor-journey-lead {
  max-width: 58ch;
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.professional-journey {
  display: grid;
  gap: var(--space-2);
  margin: 0 0 var(--space-6);
  list-style: none;
}

.professional-journey li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-white);
}

.journey-marker {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: rgb(184 58 70 / 0.09);
  color: var(--color-brand-dark);
  font-size: var(--text-xs);
  font-weight: 700;
}

.professional-journey strong {
  display: block;
  margin: 0.05rem 0 0.2rem;
  color: var(--color-navy);
  font-family: var(--fs-heading);
  font-size: var(--text-sm);
  font-weight: 650;
  line-height: 1.4;
}

.professional-journey small {
  display: block;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.hero-actions {
  flex-direction: column;
  align-items: flex-start;
}

.hero-actions > .btn-primary {
  width: auto;
}

.hero-social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  width: 100%;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn { width: min(100%, 22rem); }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn { width: min(100%, 22rem); }
}

.footer .social-link-youtube:hover svg path:last-child {
  fill: var(--color-bg-white);
}

@media (max-width: 420px) {
  .hero h1 { font-size: clamp(2.125rem, 9vw, 2.5rem); }

  .hero-social-action {
    gap: 0.45rem;
    padding-inline: 0.75rem;
    font-size: 0.88rem;
  }

  .professional-journey li { padding-inline: 0.75rem; }
}

@media (max-width: 767px) {
  .hero-actions > .btn-primary,
  .hero-social-actions .btn {
    width: 100%;
  }

  .hero-social-actions { flex-direction: column; }
}
