:root {
  --ink: #172322;
  --muted: #5e6b68;
  --line: #d9e1dc;
  --paper: #f8f7f2;
  --white: #ffffff;
  --teal: #0f6f68;
  --teal-dark: #0a4f4a;
  --mist: #eaf1ed;
  --rose: #c86f63;
  --gold: #d9aa44;
  --blue-gray: #dfe7ea;
  --shadow: 0 18px 44px rgba(23, 35, 34, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.6rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.08rem;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 30;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.sr-only,
.hidden {
  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: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(248, 247, 242, 0.94);
  border-bottom: 1px solid rgba(217, 225, 220, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(23, 35, 34, 0.16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

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

.brand strong {
  line-height: 1.18;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 760;
  text-decoration: none;
  border-radius: 7px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal-dark);
  background: var(--mist);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

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

.home-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  padding: clamp(36px, 7vw, 84px) clamp(18px, 5vw, 72px) clamp(28px, 6vw, 70px);
}

.portrait-panel {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.doctor-portrait {
  width: min(100%, 480px);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 42%;
  border: 8px solid var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.specialty-title {
  width: min(100%, 520px);
  padding: 16px 18px;
  color: var(--teal-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 8px solid var(--teal);
  border-radius: 8px;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 850;
  text-align: center;
}

.home-intro {
  display: grid;
  gap: 26px;
}

.eyebrow {
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.cv-box,
.text-block,
.quick-profile,
.resume-grid article,
.membership-card,
.interest-card,
.contact-method,
.contact-form,
.success-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(23, 35, 34, 0.06);
}

.cv-box,
.text-block,
.resume-grid article,
.interest-card,
.contact-form,
.success-panel {
  padding: clamp(22px, 3vw, 34px);
}

.cv-box {
  display: grid;
  gap: 14px;
  border-top: 8px solid var(--rose);
}

.cv-box p,
.text-block p,
.page-hero p,
.resume-grid li,
.membership-card p,
.interest-card p,
.contact-form p,
.content-page p,
.success-panel p {
  color: var(--muted);
}

.home-contact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(56px, 8vw, 96px);
}

.action-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 20px;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(23, 35, 34, 0.06);
}

.action-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.contact-card {
  grid-template-columns: 1fr;
  align-content: center;
  gap: 12px;
}

.contact-link {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.contact-link + .contact-link {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.action-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
}

.action-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.contact-link .action-icon {
  width: 46px;
  height: 46px;
}

.contact-link .action-icon svg {
  width: 25px;
  height: 25px;
}

.phone-icon {
  background: var(--teal);
}

.email-icon {
  background: #718a99;
}

.booking-card .action-icon {
  background: var(--rose);
}

.maps-card .action-icon {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(23, 35, 34, 0.04);
}

.maps-card .action-icon svg {
  fill: none;
}

.action-card strong,
.action-card small {
  display: block;
}

.action-card strong {
  font-size: 1.04rem;
  overflow-wrap: anywhere;
}

.action-card small {
  color: var(--muted);
  line-height: 1.4;
}

.section,
.page-hero,
.site-footer {
  padding-left: clamp(18px, 5vw, 72px);
  padding-right: clamp(18px, 5vw, 72px);
}

.section {
  padding-top: clamp(54px, 8vw, 96px);
  padding-bottom: clamp(54px, 8vw, 96px);
}

.page-hero {
  padding-top: clamp(62px, 9vw, 116px);
  padding-bottom: clamp(44px, 7vw, 76px);
  background: linear-gradient(180deg, var(--blue-gray) 0%, var(--paper) 100%);
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.page-hero p {
  max-width: 780px;
  margin-top: 20px;
  font-size: 1.08rem;
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.text-block.wide {
  display: grid;
  gap: 16px;
}

.quick-profile {
  display: grid;
  gap: 1px;
  overflow: hidden;
  padding: 0;
  background: var(--line);
}

.quick-profile div {
  padding: 22px;
  background: var(--white);
}

.quick-profile div + div {
  border-top: 1px solid var(--line);
}

.quick-profile span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.quick-profile strong {
  display: block;
  margin-top: 4px;
}

.quick-profile small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.muted-band {
  background: var(--mist);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

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

.resume-grid article {
  border-top: 7px solid var(--teal);
}

.resume-grid article:nth-child(2) {
  border-top-color: var(--rose);
}

.resume-grid article:nth-child(3) {
  border-top-color: var(--gold);
}

.resume-grid article:nth-child(4) {
  border-top-color: #718a99;
}

.resume-grid ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

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

.membership-card {
  display: grid;
  gap: 16px;
  align-items: start;
  padding: 22px;
}

.membership-logo {
  display: grid;
  width: 118px;
  height: 92px;
  padding: 8px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.membership-card p {
  margin-top: 8px;
}

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

.interest-card {
  min-height: 250px;
}

.interest-card span {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--rose);
  font-weight: 900;
}

.interest-card p {
  margin-top: 16px;
}

.timeline-list {
  display: grid;
  gap: 14px;
}

.timeline-list article {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(23, 35, 34, 0.05);
}

.timeline-list span {
  color: var(--teal-dark);
  font-weight: 850;
}

.timeline-list p {
  color: var(--muted);
  margin-top: 6px;
}

.interest-sections {
  display: grid;
  gap: 22px;
}

.interest-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(22px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(23, 35, 34, 0.06);
}

.interest-section h2 {
  margin-bottom: 16px;
}

.interest-section h3 {
  margin-top: 24px;
}

.interest-section p,
.interest-section li {
  color: var(--muted);
}

.interest-section p + p {
  margin-top: 12px;
}

.interest-section ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.interest-section strong {
  color: var(--ink);
}

.contact-layout {
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
}

.contact-note-section {
  padding-top: clamp(42px, 7vw, 78px);
  padding-bottom: 0;
}

.contact-note {
  max-width: 760px;
  color: var(--teal-dark);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 850;
  line-height: 1.3;
}

.contact-methods {
  display: grid;
  gap: 12px;
}

.contact-method {
  display: grid;
  gap: 6px;
  padding: 22px;
  text-decoration: none;
}

.contact-method span {
  color: var(--muted);
}

.contact-method strong {
  color: var(--teal-dark);
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-header {
  display: grid;
  gap: 8px;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 760;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--teal);
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--teal-dark);
}

.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 35, 34, 0.48);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(100%, 520px);
  padding: clamp(26px, 5vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  padding-right: 42px;
  color: var(--teal-dark);
  font-size: clamp(1.55rem, 4vw, 2.2rem);
}

.modal-panel p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.08rem;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 50%;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--blue-gray);
}

.content-page {
  max-width: 880px;
}

.content-page h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.success-panel {
  max-width: 620px;
  display: grid;
  gap: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  padding-bottom: 30px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.site-footer p {
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer a {
  color: var(--muted);
  font-weight: 760;
  text-decoration: none;
}

.floating-whatsapp {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 25;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  background: #1f8f5f;
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(23, 35, 34, 0.22);
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: translateY(-1px);
}

.floating-whatsapp svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    justify-content: center;
  }

  .home-hero,
  .about-layout,
  .contact-layout,
  .resume-grid,
  .membership-grid,
  .interest-grid,
  .home-contact-strip,
  .timeline-list article,
  .interest-section {
    grid-template-columns: 1fr;
  }

  .doctor-portrait,
  .specialty-title {
    width: 100%;
  }

  .contact-note-section {
    padding-bottom: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 70px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .brand small {
    font-size: 0.76rem;
  }

  h1 {
    font-size: clamp(2.3rem, 13vw, 3.5rem);
  }

  .page-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .home-hero {
    padding-top: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-whatsapp {
    left: 4px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }

  .floating-whatsapp svg {
    width: 24px;
    height: 24px;
  }
}
