:root {
  --ink: #12313f;
  --muted: #5e7278;
  --teal: #0f766e;
  --teal-dark: #075e57;
  --mint: #e7f5ef;
  --aqua: #d8f0f2;
  --coral: #d96b4f;
  --cream: #fbfaf6;
  --white: #ffffff;
  --line: #d9e6e3;
  --shadow: 0 24px 60px rgba(18, 49, 63, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(217, 230, 227, 0.82);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
}

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

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

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

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--teal-dark);
}

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

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 52px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 54px;
}

.hero-copy,
.hero-visual {
  flex: 1 1 0;
}

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

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 8vw, 3rem);
  line-height: 0.92;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.25;
}

.hero-subtitle {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.14rem;
}

.hero-actions,
.timing-strip,
.intro-flex,
.doctor-profile,
.skills-list,
.profile-actions,
.reviews-layout,
.testimonial-list,
.testimonial-author,
.review-avatars,
.testimonial-controls,
.appointments-header,
.appointment-options,
.blogs-layout,
.connect-flex,
.footer-inner,
.footer-links,
.social-links {
  display: flex;
}

.hero-actions {
  align-items: center;
  gap: 14px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

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

.btn-secondary {
  color: var(--teal-dark);
  background: var(--white);
  border-color: var(--line);
}

.btn-accent {
  color: var(--white);
  background: var(--coral);
}

.timing-strip {
  max-width: 650px;
  align-items: stretch;
  gap: 14px;
  flex-wrap: wrap;
}

.timing-strip div {
  flex: 1 1 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.timing-strip span,
.timing-strip strong {
  display: block;
}

.timing-strip span {
  color: var(--muted);
  font-size: 0.86rem;
}

.timing-strip strong {
  margin-top: 4px;
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 58px 36px 34px;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--aqua), var(--mint));
  box-shadow: var(--shadow);
}

.photo-panel {
  position: relative;
  z-index: 2;
  width: min(460px, 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.photo-panel img {
  max-height: 650px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 28px 38px rgba(18, 49, 63, 0.22));
}

.section {
  padding: 86px 0;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-band {
  background: var(--ink);
  color: var(--white);
}

.intro-flex {
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
}

.intro-flex > div,
.intro-flex > p {
  flex: 1 1 0;
}

.intro-flex p:last-child {
  margin-bottom: 0;
  color: #c7d7d7;
  font-size: 1.06rem;
}

.section-heading {
  max-width: 720px;
}

.section-heading.centered {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p,
.appointments-header p,
.blog-card p,
.expertise-card p,
.appointment-card p,
.profile-details p {
  color: var(--muted);
}

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

.doctor-profile {
  align-items: center;
  justify-content: space-between;
  gap: 58px;
}

.profile-visual {
  position: relative;
  flex: 0 1 390px;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.profile-visual::after {
  content: "";
  position: absolute;
  top: 8px;
  right: -42px;
  width: 118px;
  height: 310px;
  opacity: 0.48;
  background-image: radial-gradient(var(--line) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
}

.profile-photo {
  position: relative;
  z-index: 2;
  width: min(350px, 100%);
  height: 430px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px 44px 8px 44px;
  background: linear-gradient(160deg, var(--aqua), #f4fbf8);
}

.profile-photo img {
  width: 92%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.experience-badge {
  position: absolute;
  left: 0;
  bottom: 22px;
  z-index: 3;
  width: 190px;
  padding: 14px 16px;
  border: 2px dashed rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.25);
  transform: rotate(-7deg);
}

.experience-badge strong,
.experience-badge span {
  display: block;
}

.experience-badge strong {
  font-size: 1.06rem;
}

.experience-badge span {
  font-size: 0.84rem;
  line-height: 1.35;
}

.profile-details {
  flex: 1 1 620px;
}

.profile-details h2 {
  margin-bottom: 14px;
  color: #06306f;
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.pill-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--aqua);
}

.skills-block {
  margin-top: 26px;
}

.skills-block h3 {
  margin-bottom: 12px;
  padding-bottom: 8px;
  color: var(--teal);
  border-bottom: 1px dashed var(--teal);
}

.skills-list {
  margin: 0;
  padding: 0;
  align-items: flex-start;
  gap: 10px 28px;
  flex-wrap: wrap;
  list-style: none;
}

.skills-list li {
  position: relative;
  flex: 1 1 260px;
  padding-left: 24px;
  font-weight: 650;
}

.skills-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--teal-dark);
  border-bottom: 2px solid var(--teal-dark);
  transform: rotate(-45deg);
}

.profile-actions {
  align-items: center;
  gap: 26px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.signature {
  display: flex;
  flex-direction: column;
  color: #06306f;
}

.signature strong {
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.1;
}

.signature span {
  color: var(--muted);
  font-size: 0.9rem;
}

.expertise-card,
.appointment-card,
.blog-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.appointment-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.appointment-card li {
  margin-bottom: 10px;
}

.tag,
.blog-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.expertise-section {
  background: #eef7f4;
}

.expertise-list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.expertise-card {
  flex: 1 1 320px;
  max-width: 374px;
  padding: 26px;
}

.expertise-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-weight: 850;
}

.reviews-section {
  background: var(--white);
}

.reviews-section .section-heading {
  max-width: 980px;
}

.reviews-section .section-heading h2 {
  white-space: nowrap;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.reviews-layout {
  align-items: stretch;
  justify-content: center;
  gap: 20px;
}

.rating-panel {
  flex: 0 0 280px;
  min-height: 230px;
  padding: 28px;
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(145deg, #ffffff 0%, #f8fbfa 44%, #33b5e8 100%);
  box-shadow: 0 20px 55px rgba(18, 49, 63, 0.1);
}

.rating-panel strong,
.rating-panel span,
.rating-panel p {
  display: block;
}

.rating-panel > strong {
  font-size: 2.7rem;
  line-height: 1;
}

.rating-panel > span {
  margin-top: 8px;
  color: var(--teal-dark);
  font-weight: 850;
}

.stars {
  margin: 14px 0 6px;
  color: #f5b51b;
  font-size: 1rem;
  letter-spacing: 2px;
  line-height: 1;
}

.rating-panel p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.testimonial-list {
  flex: 1 1 0;
  max-width: 760px;
  align-items: stretch;
  gap: 18px;
}

.testimonial-card {
  flex: 1 1 0;
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
}

.testimonial-card p {
  margin-bottom: 26px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.55;
}

.testimonial-author {
  align-items: center;
  gap: 12px;
}

.testimonial-author > span,
.review-avatars span {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-size: 0.75rem;
  font-weight: 850;
}

.testimonial-author strong,
.testimonial-author small {
  display: block;
}

.testimonial-author strong {
  color: var(--teal-dark);
  font-weight: 850;
}

.testimonial-author small {
  color: var(--muted);
}

.review-avatars {
  align-items: center;
}

.review-avatars span {
  margin-right: -8px;
  border: 2px solid var(--white);
}

.review-avatars span:last-child {
  background: #1da6d7;
}

.testimonial-controls {
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.testimonial-controls button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.testimonial-controls button:last-child {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.appointments-section {
  background: var(--white);
}

.appointments-header {
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.appointments-header > div,
.appointments-header > p {
  flex: 1 1 0;
}

.appointments-header p {
  max-width: 470px;
  margin-bottom: 0;
}

.appointment-options {
  align-items: stretch;
  gap: 20px;
}

.appointment-card {
  flex: 1 1 0;
  min-height: 420px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.appointment-card.hospital {
  background: linear-gradient(180deg, #ffffff 0%, #edf9f7 100%);
}

.appointment-card.clinic {
  background: linear-gradient(180deg, #ffffff 0%, #fff2ec 100%);
}

.blogs-layout {
  align-items: flex-start;
  gap: 54px;
}

.blogs-layout > .section-heading {
  flex: 0 0 450px;
}

.blogs-layout > .section-heading h2 {
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  line-height: 1.12;
}

.blog-list {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-card {
  padding: 24px;
}

.blog-card a {
  color: var(--teal-dark);
  font-weight: 850;
}

.blog-more-link {
  align-self: flex-start;
  margin-top: 6px;
}

.connect-section {
  padding: 70px 0;
  background: var(--aqua);
}

.connect-flex {
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.connect-flex h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.social-links {
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links a {
  min-width: 132px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-weight: 850;
}

.site-footer {
  background: #0e2834;
  color: var(--white);
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 5px 0 0;
  color: #b8cdcf;
}

.footer-links {
  align-items: center;
  gap: 18px;
  color: #dfecec;
  font-weight: 700;
}

@media (max-width: 980px) {
  .reviews-section .section-heading h2 {
    white-space: normal;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .hero,
  .intro-flex,
  .doctor-profile,
  .reviews-layout,
  .testimonial-list,
  .appointments-header,
  .appointment-options,
  .blogs-layout,
  .connect-flex,
  .footer-inner {
    flex-direction: column;
  }

  .hero {
    min-height: 0;
    align-items: stretch;
    padding-top: 42px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .appointments-header,
  .connect-flex,
  .footer-inner {
    align-items: flex-start;
  }

  .appointment-card {
    width: 100%;
    min-height: auto;
    justify-content: flex-start;
  }

  .rating-panel,
  .testimonial-card {
    width: 100%;
  }

  .blogs-layout > .section-heading {
    flex: 0 1 auto;
  }

  .profile-visual {
    width: 100%;
  }

  .profile-visual::after {
    right: 8%;
  }
}

@media (max-width: 680px) {
  .nav-wrap,
  .hero,
  .section-inner,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    gap: 28px;
  }

  .hero-actions,
  .footer-links {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .btn,
  .social-links a {
    width: 100%;
  }

  .hero-visual {
    min-height: 460px;
  }

  .hero-visual::before {
    inset: 50px 0 20px;
  }

  .photo-panel img {
    max-height: 500px;
  }

  .profile-details,
  .blogs-layout > .section-heading {
    width: 100%;
  }

  .profile-visual {
    min-height: 390px;
  }

  .profile-photo {
    height: 390px;
  }

  .experience-badge {
    left: 6px;
    bottom: 12px;
    width: 168px;
  }

  .appointment-card {
    padding: 24px;
    gap: 18px;
  }

  .appointment-card .btn {
    margin-top: 6px;
  }
}
