:root {
  --ink: #123047;
  --text: #24313a;
  --muted: #64727d;
  --line: #d9e2e6;
  --paper: #fbfdfd;
  --soft: #eef6f5;
  --teal: #0d7770;
  --green: #2f8b57;
  --gold: #b8872d;
  --coral: #b95745;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(24, 50, 65, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

html[lang="ta"] body {
  font-family: "Noto Serif Tamil", Inter, system-ui, sans-serif;
}

html[lang="ta"] .hero h1,
html[lang="ta"] .hero-lead,
html[lang="ta"] .hero-facts span,
html[lang="ta"] .button,
html[lang="ta"] .brand-name {
  overflow-wrap: anywhere;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 74px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(18, 48, 71, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 72px;
  height: 62px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  transform: scale(1.32);
}

.brand-name,
.brand-place {
  display: block;
}

.brand-name {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.1;
}

.brand-place {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-menu a {
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 11px;
  text-decoration: none;
}

.main-menu a:hover,
.main-menu a.active {
  background: var(--soft);
  color: var(--teal);
}

.main-menu .lang-link {
  border: 1px solid rgba(13, 119, 112, 0.28);
  background: var(--ink);
  color: var(--white);
}

.main-menu .lang-link:hover {
  background: var(--teal);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.section {
  padding: 92px 5vw;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(18, 48, 71, 0.92), rgba(18, 48, 71, 0.54), rgba(18, 48, 71, 0.18)),
    url("assets/hitachi-aperto.webp") center right / cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(18, 48, 71, 0.15), rgba(18, 48, 71, 0.7)),
    radial-gradient(circle at 12% 78%, rgba(184, 135, 45, 0.36), transparent 28%);
}

.hero-emblem {
  position: absolute;
  right: clamp(28px, 8vw, 120px);
  top: 112px;
  z-index: 1;
  width: clamp(130px, 14vw, 210px);
  max-height: 34vh;
  object-fit: contain;
  opacity: 0.22;
  pointer-events: none;
  filter: invert(76%) sepia(33%) saturate(779%) hue-rotate(358deg) brightness(91%) contrast(88%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding-top: 56px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tamil {
  font-family: "Noto Serif Tamil", serif;
  letter-spacing: 0;
  text-transform: none;
}

.hero h1,
.section-heading h2,
.contact-content h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.05;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(3.4rem, 9vw, 7.4rem);
}

html[lang="ta"] .hero h1 {
  font-size: clamp(2.85rem, 7.8vw, 5.6rem);
  line-height: 1.12;
}

.hero-lead {
  max-width: 640px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 800;
  padding: 11px 18px;
  text-decoration: none;
  text-align: center;
}

.button.primary {
  background: var(--teal);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
}

.button:hover,
.map-link:hover {
  transform: translateY(-1px);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-facts span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 9px 12px;
}

.section-heading {
  width: min(850px, 100%);
  margin-bottom: 34px;
}

.section-heading.compact {
  width: min(720px, 100%);
}

.section-heading h2,
.contact-content h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.intro-section,
.diagnostics-section,
.patient-section {
  background: var(--white);
}

.intro-grid,
.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: stretch;
}

.intro-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  border-left: 5px solid var(--teal);
  padding-left: 26px;
}

.intro-copy p,
.diagnostic-feature p,
.diagnostic-card p,
.focus-card p,
.process p,
.patient-note p,
address,
.address-ta {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.legacy-panel {
  display: grid;
  align-content: center;
  min-height: 250px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ink), #0d7770);
  box-shadow: var(--shadow);
  color: var(--white);
  padding: 30px;
}

.legacy-number {
  display: block;
  font-size: 5.8rem;
  font-weight: 800;
  line-height: 0.9;
}

.legacy-text {
  display: block;
  max-width: 180px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.focus-section,
.daycare-section,
.contact-section {
  background: var(--soft);
}

.focus-grid,
.diagnostic-grid,
.doctor-grid,
.patient-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-card,
.diagnostic-card,
.doctor-card,
.patient-note,
.process article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(24, 50, 65, 0.06);
  padding: 22px;
}

.focus-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #e8f5ef;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}

.focus-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 16px;
  background: #eef3f3;
}

.wound-card {
  border-top: 5px solid var(--coral);
}

h3 {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.25;
}

.diagnostic-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
  overflow: hidden;
}

.diagnostic-feature img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.diagnostic-feature div {
  padding: 28px;
}

.diagnostic-feature h3 {
  margin-top: 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.diagnostic-card {
  padding: 0 0 20px;
  overflow: hidden;
}

.diagnostic-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f7faf9;
}

.diagnostic-card h3,
.diagnostic-card p {
  padding: 0 18px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.doctors-section {
  background: linear-gradient(180deg, #fbfdfd, #f2f7f7);
}

.doctor-card {
  min-height: 220px;
}

.doctor-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  background: #eef3f3;
}

.portrait-photo {
  object-position: center 20%;
}

.group-photo {
  object-position: center center;
}

.doctor-card p {
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.doctor-card span:last-child {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.director-card {
  border-color: rgba(184, 135, 45, 0.55);
}

.patient-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.patient-note {
  border-top: 5px solid var(--teal);
}

.contact-content {
  align-items: center;
}

address {
  margin-top: 22px;
  font-style: normal;
  font-weight: 700;
}

.address-ta {
  margin-top: 16px;
  font-weight: 700;
}

.contact-actions {
  align-content: center;
  justify-content: flex-start;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 26px;
}

.contact-actions .button {
  width: 100%;
}

.contact-actions .button.secondary {
  border: 1px solid var(--line);
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  padding: 24px 5vw;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 1060px) {
  .focus-grid,
  .diagnostic-grid,
  .doctor-grid,
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 70px;
  }

  .site-header {
    height: 68px;
    padding: 0 18px;
  }

  .menu-toggle {
    display: block;
  }

  .main-menu {
    position: fixed;
    top: 68px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .main-menu.open {
    display: flex;
  }

  .main-menu a {
    padding: 12px;
  }

  .section {
    padding: 70px 18px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(18, 48, 71, 0.88), rgba(18, 48, 71, 0.48), rgba(18, 48, 71, 0.82)),
      url("assets/hitachi-aperto.webp") center / cover;
  }

  .hero-content {
    padding-top: 46px;
  }

  .hero-emblem {
    right: 18px;
    top: 88px;
    width: min(160px, 38vw);
    opacity: 0.1;
  }

  html[lang="ta"] .hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.7rem);
  }

  html[lang="ta"] .hero-lead {
    font-size: clamp(1rem, 4.3vw, 1.24rem);
    line-height: 1.7;
  }

  .intro-grid,
  .diagnostic-feature,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .diagnostic-feature img {
    height: 280px;
  }

  .patient-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    transform: scale(1.36);
  }

  .brand {
    width: 62px;
    height: 52px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  html[lang="ta"] .brand-name {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  html[lang="ta"] .brand-place {
    font-size: 0.72rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-emblem {
    right: -18px;
    top: 86px;
    width: 118px;
    opacity: 0.08;
  }

  html[lang="ta"] .hero h1 {
    font-size: clamp(2rem, 9.4vw, 2.65rem);
    line-height: 1.18;
  }

  html[lang="ta"] .eyebrow {
    font-size: 0.72rem;
    line-height: 1.5;
  }

  html[lang="ta"] .hero-facts span {
    line-height: 1.45;
    white-space: normal;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .hero-facts {
    align-items: stretch;
    flex-direction: column;
  }

  .focus-grid,
  .diagnostic-grid,
  .doctor-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    padding-left: 18px;
  }

  .legacy-panel {
    min-height: 210px;
  }
}
