:root {
  --bg: #f5fbff;
  --surface: #ffffff;
  --surface-soft: #eef9fc;
  --line: #d9edf3;
  --text: #0c3045;
  --muted: #5d7387;
  --primary: #009aa6;
  --primary-dark: #046f7a;
  --accent: #4db7e8;
  --brand-pink: #ec008c;
  --brand-pink-dark: #c90078;
  --accent-soft: #ddf5ff;
  --pink-soft: #ffe7f5;
  --shadow: 0 18px 45px rgba(9, 88, 105, 0.12);
  --shadow-soft: 0 10px 28px rgba(9, 88, 105, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 237, 243, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(9, 88, 105, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-pink);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.08;
  white-space: nowrap;
  position: relative;
}

.logo img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(236, 0, 140, 0.16));
}

.logo-name {
  display: grid;
  align-items: center;
  min-width: 190px;
  min-height: 2.45em;
  position: relative;
  white-space: normal;
}

.logo-text {
  grid-area: 1 / 1;
  display: block;
  color: var(--brand-pink);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.logo-text.is-active {
  opacity: 1;
}

.logo-text span,
.logo-text small {
  display: block;
}

.logo-text small {
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 800;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-pink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
}

.menu-toggle span::before {
  transform: translateY(-7px);
}

.menu-toggle span::after {
  transform: translateY(5px);
}

.menu-toggle.is-open span {
  background: transparent;
}

.menu-toggle.is-open span::before {
  transform: translateY(2px) rotate(45deg);
}

.menu-toggle.is-open span::after {
  transform: translateY(0) rotate(-45deg);
}

.btn,
.secondary-btn,
.appointment-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.25rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn,
.appointment-submit {
  background: linear-gradient(135deg, var(--brand-pink), var(--primary));
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(236, 0, 140, 0.18);
}

.btn:hover,
.secondary-btn:hover,
.appointment-submit:hover {
  transform: translateY(-1px);
}

.secondary-btn {
  background: #ffffff;
  color: var(--primary-dark);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.hero {
  padding: 48px 0 28px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: center;
  min-height: 560px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 8%, rgba(236, 0, 140, 0.14), transparent 28%),
    radial-gradient(circle at 8% 80%, rgba(77, 183, 232, 0.18), transparent 25%),
    linear-gradient(135deg, #ffffff 0%, #f3fcff 62%, #e4f7ff 100%);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--brand-pink-dark);
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(2.35rem, 6vw, 4.5rem);
  line-height: 1.02;
}

.hero p {
  max-width: 640px;
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  min-height: 330px;
  object-fit: cover;
  border: 10px solid #ffffff;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.section {
  padding: 60px 0;
}

.section-soft {
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.section-title {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-title.align-left {
  margin-left: 0;
  text-align: left;
}

.section-title span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand-pink);
  font-weight: 900;
}

.section-title h2,
.page-banner h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1.13;
}

.section-title p,
.page-banner p {
  margin: 12px 0 0;
  color: var(--muted);
}

.page-banner {
  padding: 52px 0;
  background:
    radial-gradient(circle at 85% 8%, rgba(236, 0, 140, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #edf9fe 100%);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  color: var(--muted);
  font-weight: 800;
}

.info-grid,
.services-grid,
.doctors-grid,
.testimonial-grid,
.blog-grid,
.gallery-grid,
.stats-grid {
  display: grid;
  gap: 22px;
}

.info-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.services-grid,
.doctors-grid,
.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.testimonial-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.card,
.service-card,
.doctor-card,
.testimonial-card,
.blog-card,
.gallery-card,
.form-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.card {
  padding: 26px;
}

.card h3,
.service-card h3,
.doctor-card h3,
.blog-card h3 {
  margin: 0 0 8px;
  line-height: 1.25;
}

.card p,
.service-card p,
.doctor-card p,
.blog-card p,
.testimonial-card p {
  color: var(--muted);
}

.service-card {
  overflow: hidden;
}

.service-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--accent-soft);
  padding: 12px;
}

.service-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-soft);
}

.service-card-content {
  padding: 22px;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.service-list span,
.doctor-meta span {
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--brand-pink-dark);
  padding: 7px 12px;
  font-size: 0.88rem;
  font-weight: 900;
}

.doctor-card {
  overflow: hidden;
}

.doctor-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 30px;
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.doctor-feature-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
}

.doctor-feature-content {
  padding: 10px 8px;
}

.doctor-feature-content h3 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
}

.doctor-feature-content p {
  color: var(--muted);
}

.doctor-feature-content .secondary-btn {
  margin-top: 18px;
}

.doctor-single {
  max-width: 760px;
  margin: 0 auto;
}

.doctor-single .doctor-card img {
  aspect-ratio: 3 / 4;
  object-position: center top;
}

.doctor-card img,
.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-soft);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--surface-soft);
}

.doctor-card div,
.blog-card div {
  padding: 20px;
}

.text-link {
  color: var(--primary-dark);
  font-weight: 900;
}

.narrow-container {
  max-width: 900px;
}

.blog-detail h1 {
  margin: 10px 0 12px;
  color: var(--primary-dark);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.blog-detail img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin: 22px 0;
}

.blog-excerpt {
  color: var(--muted);
  font-size: 1.08rem;
}

.blog-body {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.doctor-card .doctor-role {
  display: inline-block;
  color: var(--primary);
  font-weight: 900;
}

.doctor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.about-story {
  align-items: center;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 10px solid #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.appointment-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 10px solid #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.testimonial-slider {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  padding: 0 64px;
}

.testimonial-slider-wide {
  max-width: 1180px;
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  min-height: 250px;
}

.testimonial-card {
  display: none;
  padding: 26px;
}

.testimonial-card.is-active {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card p {
  margin-top: 0;
  font-size: 1.02rem;
}

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

.testimonial-author img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-soft);
}

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

.testimonial-author span {
  color: var(--muted);
  font-size: 0.92rem;
}

.google-rating {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  width: fit-content;
  max-width: 100%;
  margin: -8px auto 26px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: var(--muted);
}

.google-rating strong {
  color: var(--primary-dark);
}

.rating-stars {
  color: #f5a400;
  letter-spacing: 2px;
  font-weight: 900;
}

.slider-controls {
  display: contents;
}

.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary-dark);
  padding: 0;
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transform: translateY(-50%);
}

.slider-btn-prev {
  left: 0;
}

.slider-btn-next {
  right: 0;
}

.slider-btn-prev::before {
  content: "<";
}

.slider-btn-next::before {
  content: ">";
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.slider-controls .slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #b8dbe4;
  cursor: pointer;
}

.slider-dot.is-active {
  background: var(--brand-pink);
}

.testimonial-link {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 20px auto 0;
}

.smile-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.smile-stories-grid .testimonial-card {
  display: block;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 30px;
  align-items: start;
}

.cta-panel {
  padding: 34px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--brand-pink), var(--primary));
  color: #ffffff;
  box-shadow: var(--shadow);
}

.cta-panel h2,
.cta-panel p {
  margin: 0;
}

.cta-panel p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.86);
}

.cta-panel .secondary-btn {
  margin-top: 22px;
}

.stat-card {
  padding: 24px;
  text-align: center;
}

.stat-card h3 {
  margin: 0;
  color: var(--brand-pink);
  font-size: 2rem;
}

.stat-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.form-card {
  padding: 28px;
}

.field-group {
  display: grid;
  gap: 14px;
}

.form-field,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-pink);
  box-shadow: 0 0 0 4px rgba(236, 0, 140, 0.1);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.appointment-submit {
  width: 100%;
  margin-top: 18px;
}

.notice {
  margin-bottom: 16px;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
}

.notice.success {
  background: #e8fbf5;
  color: #08624d;
}

.notice.error {
  background: #fff0f5;
  color: #9c004e;
}

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

.contact-list p {
  margin: 0;
}

.map-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(90deg, rgba(0, 154, 166, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(236, 0, 140, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #e8f8fd 0%, #ffffff 100%);
  background-size: 34px 34px, 34px 34px, 100% 100%;
  text-align: center;
  color: var(--primary-dark);
}

.map-placeholder::before {
  content: "Google Maps Placeholder";
  display: inline-flex;
  border-radius: 999px;
  background: #ffffff;
  padding: 12px 18px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.map-embed {
  overflow: hidden;
  padding: 0;
  min-height: 420px;
}

.map-embed iframe {
  display: block;
  width: 100% !important;
  height: 420px !important;
  min-height: 420px;
  border: 0 !important;
}

.footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 44px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.8fr;
  gap: 28px;
}

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

.footer h4 {
  margin: 0 0 12px;
}

.footer a {
  color: var(--primary-dark);
  font-weight: 800;
}

.footer .logo span {
  text-transform: none;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-contact-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-pink), var(--primary));
}

.footer-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(4, 111, 122, 0.16);
}

.footer-icon svg,
.social-link svg,
.whatsapp-float svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-pink), var(--primary));
  box-shadow: 0 10px 22px rgba(236, 0, 140, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.92);
}

.header-social .social-link,
.footer .social-links .social-link {
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-pink), var(--primary));
  box-shadow: 0 10px 22px rgba(236, 0, 140, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.92);
}

.header-social .social-link svg,
.footer .social-links .social-link svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.social-link svg {
  width: 22px;
  height: 22px;
}

.footer-icon svg {
  width: 22px;
  height: 22px;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(37, 211, 102, 0.3);
}

.whatsapp-float svg {
  width: 31px;
  height: 31px;
}

.footer-small {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

@media (max-width: 1080px) {
  .header-actions .btn {
    display: none;
  }

  .hero-panel,
  .doctor-feature,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .testimonial-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .testimonial-track {
    grid-template-columns: 1fr;
  }

  .google-rating {
    border-radius: 18px;
  }
}

@media (max-width: 900px) {
  .header-social {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    border-radius: 12px;
    padding: 11px 12px;
  }

  .nav-links a.active,
  .nav-links a:hover {
    background: var(--surface-soft);
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .navbar {
    min-height: 70px;
  }

  .logo {
    font-size: 0.84rem;
  }

  .logo img {
    width: 48px;
    height: 48px;
  }

  .logo-name {
    min-width: 126px;
    font-size: 0.78rem;
    line-height: 1.18;
  }

  .nav-links {
    top: 70px;
    left: 12px;
    right: 12px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-panel {
    padding: 24px;
    border-radius: 22px;
  }

  .hero-media img {
    min-height: 240px;
    border-width: 7px;
  }

  .section {
    padding: 44px 0;
  }

  .page-banner {
    padding: 38px 0;
  }

  .card,
  .service-card,
  .doctor-feature,
  .testimonial-card,
  .form-card,
  .cta-panel {
    padding: 22px;
  }

  .btn,
  .secondary-btn {
    width: 100%;
  }

  .testimonial-link {
    width: 100%;
    max-width: 320px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .testimonial-slider {
    padding: 0;
  }

  .slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
  }

  .slider-btn {
    position: static;
    transform: none;
  }
}
