:root {
  --turquoise: #54c8cf;
  --turquoise-dark: #2a9aa5;
  --pale: #e9fbfc;
  --cream: #fff8ef;
  --text: #31505a;
  --muted: #63777f;
  --line: #d8eef1;
  --white: #ffffff;
  --max: 1050px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.7;
}

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

a { color: inherit; }

.site-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title {
  color: var(--turquoise-dark);
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #5b737b;
  font-size: 15px;
}

.nav a {
  text-decoration: none;
}

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

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 4px;
  padding: 8px 12px;
}

.intro {
  padding: 48px 0 40px;
  text-align: center;
}

h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.18;
  font-weight: 400;
  color: var(--turquoise-dark);
  margin: 0 0 34px;
}

h2 {
  font-size: clamp(25px, 3.3vw, 36px);
  line-height: 1.25;
  font-weight: 400;
  color: var(--turquoise-dark);
  margin: 0 0 18px;
  text-align: center;
}

h3 {
  color: var(--turquoise-dark);
  font-weight: 500;
  margin: 0 0 10px;
}

.intro-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 36px;
  align-items: center;
  text-align: left;
}

.intro-image img {
  border-radius: 2px;
  border: 8px solid var(--pale);
}

.intro-text h2 {
  text-align: left;
}

.big-list {
  margin: 0;
  padding-left: 22px;
}

.big-list li {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--muted);
}

.whatsapp-button {
  display: inline-block;
  margin-top: 18px;
  background: var(--turquoise);
  color: white;
  padding: 13px 22px;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
}

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

.whatsapp-button.large {
  font-size: 18px;
}

.section {
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.section:nth-of-type(even) {
  background: #fbffff;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 280px;
  gap: 42px;
  align-items: center;
}

.about-copy p {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 17px;
}

.doctor-photo img {
  border-radius: 2px;
  border: 8px solid var(--pale);
}

.simple-list {
  max-width: 760px;
  margin: 0 auto;
}

.simple-list p {
  margin: 0 0 14px;
  padding: 14px 18px;
  background: var(--pale);
  border-left: 5px solid var(--turquoise);
  color: var(--muted);
  font-size: 18px;
}

.anesthesia {
  background: var(--cream);
}

.anesthesia-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.anesthesia-image img {
  border-radius: 2px;
  border: 8px solid #ffffff;
}

.anesthesia p {
  color: var(--muted);
  font-size: 17px;
}

.text-link {
  color: var(--turquoise-dark);
  font-weight: 600;
}

.appointment {
  text-align: center;
  background: #ffffff;
}

.appointment p {
  color: var(--muted);
  font-size: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 4px solid var(--pale);
}

.contact-layout {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact p {
  color: var(--muted);
  margin-top: 0;
  font-size: 18px;
}

.footer {
  padding: 32px 16px;
  background: var(--turquoise);
  color: white;
  text-align: center;
}

.footer a {
  display: inline-block;
  color: white;
  margin: 0 12px;
  text-decoration: none;
}

@media (max-width: 860px) {
  .menu-button { display: inline-block; }

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

  .nav.open { display: flex; }

  .nav a {
    padding: 10px;
  }

  .intro-layout,
  .about-layout,
  .anesthesia-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .intro-text h2,
  .intro-layout {
    text-align: center;
  }

  .big-list {
    text-align: left;
  }

  .doctor-photo {
    max-width: 320px;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 68px;
  }

  .site-title {
    font-size: 19px;
  }

  .section {
    padding: 42px 0;
  }

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


/* V3 fixes: natural image proportions, compact gallery, map, top button */
.intro-image img,
.anesthesia-image img,
.doctor-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.intro-image {
  align-self: center;
}

.anesthesia-image {
  align-self: center;
}

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

.gallery-grid img {
  width: 100%;
  height: 155px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  border: 4px solid var(--pale);
  background: #fff;
}

.map-box {
  margin-top: 34px;
  border: 8px solid var(--pale);
  background: var(--pale);
}

.map-box iframe {
  width: 100%;
  height: 340px;
  display: block;
  border: 0;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: inline-block;
  background: var(--turquoise);
  color: #fff;
  text-decoration: none;
  padding: 10px 13px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(42,154,165,.25);
  font-size: 14px;
  font-weight: 600;
}

.back-to-top:hover {
  background: var(--turquoise-dark);
}

@media (max-width: 860px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-grid img {
    height: 160px;
  }
  .map-box iframe {
    height: 300px;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-grid img {
    height: 135px;
  }
  .back-to-top {
    right: 12px;
    bottom: 12px;
    font-size: 13px;
  }
}


/* V4 fixes: larger desktop first images, reliable top button, stronger map marker query */
@media (min-width: 861px) {
  .intro-layout {
    grid-template-columns: 1.15fr .85fr;
    gap: 44px;
  }

  .intro-image img {
    max-height: 520px;
    object-fit: cover;
  }

  .about-layout {
    grid-template-columns: 1fr 380px;
    gap: 48px;
  }

  .doctor-photo {
    width: 380px;
    justify-self: center;
  }

  .anesthesia-layout {
    grid-template-columns: 1.08fr .92fr;
    gap: 44px;
  }

  .anesthesia-image img {
    max-height: 430px;
    object-fit: cover;
  }
}

.language-link {
  color: var(--turquoise-dark) !important;
  font-weight: 700;
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-radius: 3px;
}

.back-to-top,
.footer-up {
  font-family: inherit;
  cursor: pointer;
  border: 0;
}

.footer-up {
  background: transparent;
  color: white;
  font-size: inherit;
  text-decoration: none;
  margin: 0 12px;
  padding: 0;
}

.map-note {
  margin: 10px 0 0;
  text-align: center;
  background: #fff;
  padding: 10px;
  color: var(--turquoise-dark);
  font-weight: 600;
}

.map-note a {
  color: var(--turquoise-dark);
}

@media (max-width: 860px) {
  .language-link {
    display: inline-block;
    width: fit-content;
    margin: 8px 10px;
  }
}


/* V5 fixes: bigger first and third image on desktop, working buttons, local favicon files */
@media (min-width: 861px) {
  .intro-layout {
    grid-template-columns: 1.08fr .92fr;
    gap: 44px;
  }

  .intro-image img {
    min-height: 430px;
    object-fit: cover;
    object-position: center;
  }

  .anesthesia-layout {
    grid-template-columns: 1.08fr .92fr;
    gap: 44px;
  }

  .anesthesia-image img {
    min-height: 410px;
    object-fit: cover;
    object-position: center;
  }

  .doctor-photo img {
    min-height: 0;
    height: auto;
    object-fit: contain;
  }
}

.back-to-top {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.footer-button {
  border: 0;
  background: transparent;
  color: white;
  font: inherit;
  cursor: pointer;
  padding: 0;
  margin: 0 12px;
  text-decoration: none;
}

.footer-button:hover {
  text-decoration: underline;
}

.map-link-row {
  text-align: center;
  margin: 14px 0 0;
}

.map-link {
  display: inline-block;
  color: var(--turquoise-dark);
  font-weight: 600;
  text-decoration: underline;
}


/* V6 fixes: make image frames larger without zooming/cropping */
@media (min-width: 861px) {
  .intro-layout {
    grid-template-columns: 1.26fr .74fr !important;
    gap: 46px !important;
  }

  .intro-image img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
  }

  .anesthesia-layout {
    grid-template-columns: 1.26fr .74fr !important;
    gap: 46px !important;
  }

  .anesthesia-image img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
  }

  .about-layout {
    grid-template-columns: 1.35fr 240px !important;
    gap: 38px !important;
  }

  .doctor-photo {
    max-width: 240px !important;
    margin-left: auto !important;
  }

  .doctor-photo img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
  }
}


/* V7 compact layout: wider text beside first image and shorter page spacing */
@media (min-width: 861px) {
  :root {
    --max: 1160px;
  }

  .intro {
    padding: 34px 0 30px !important;
  }

  h1 {
    margin-bottom: 24px !important;
    font-size: clamp(30px, 4.2vw, 44px) !important;
  }

  h2 {
    margin-bottom: 14px !important;
  }

  .intro-layout {
    grid-template-columns: .95fr 1.05fr !important;
    gap: 34px !important;
    align-items: center !important;
  }

  .intro-image img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
  }

  .intro-text {
    max-width: none !important;
  }

  .intro-text h2 {
    font-size: clamp(25px, 2.8vw, 34px) !important;
    margin-bottom: 14px !important;
  }

  .big-list li {
    margin-bottom: 9px !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  .whatsapp-button {
    margin-top: 12px !important;
  }

  .section {
    padding: 42px 0 !important;
  }

  .about-layout {
    grid-template-columns: 1.45fr 220px !important;
    gap: 30px !important;
  }

  .doctor-photo {
    max-width: 220px !important;
  }

  .about-copy p {
    margin-bottom: 10px !important;
    line-height: 1.62 !important;
  }

  .simple-list p {
    margin-bottom: 10px !important;
    padding: 11px 16px !important;
  }

  .anesthesia-layout {
    grid-template-columns: .95fr 1.05fr !important;
    gap: 32px !important;
  }

  .anesthesia-image img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
  }

  .anesthesia p {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    line-height: 1.62 !important;
  }

  .appointment p {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
  }

  .gallery-grid img {
    height: 145px !important;
  }

  .contact-layout {
    gap: 28px !important;
  }

  .map-box {
    margin-top: 22px !important;
  }

  .map-box iframe {
    height: 300px !important;
  }

  .footer {
    padding: 24px 16px !important;
  }
}

@media (max-width: 860px) {
  .intro {
    padding: 34px 0 28px !important;
  }

  .section {
    padding: 38px 0 !important;
  }

  .big-list li {
    margin-bottom: 10px !important;
  }

  .map-box {
    margin-top: 22px !important;
  }
}


/* V8: framed name/specialty title and Google reviews section */
.title-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 14px;
  border: 2px solid var(--turquoise);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, var(--pale) 100%);
  color: var(--turquoise-dark);
  text-decoration: none;
  line-height: 1.15;
  box-shadow: 0 6px 18px rgba(42,154,165,.10);
}

.title-badge strong {
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .01em;
}

.title-badge span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #476873;
}

.reviews {
  background: #fbffff;
}

.reviews-intro {
  max-width: 760px;
  margin: -4px auto 22px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 24px rgba(42,154,165,.08);
}

.stars {
  color: #f5b300;
  letter-spacing: 1px;
  font-size: 18px;
  margin-bottom: 10px;
}

.review-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.review-card span {
  display: block;
  color: var(--turquoise-dark);
  font-size: 13px;
  font-weight: 700;
}

.review-action {
  text-align: center;
  margin-top: 20px;
}

.google-review-button {
  display: inline-block;
  background: #ffffff;
  color: var(--turquoise-dark);
  border: 1px solid var(--turquoise);
  padding: 11px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
}

.google-review-button:hover {
  background: var(--pale);
}

@media (max-width: 860px) {
  .title-badge strong {
    font-size: 18px;
  }

  .title-badge span {
    font-size: 12px;
  }

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


/* FINAL: subtle line under specialty in the header badge */
.title-badge span::after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  background: var(--turquoise);
  margin-top: 6px;
  opacity: .75;
}


/* Final v2 contact + footer refinements */
.compact-contact {
  gap: 26px;
}

.contact-block {
  display: grid;
  gap: 6px;
  align-content: start;
}

.contact-line {
  display: grid;
  gap: 3px;
}

.contact-line + .contact-line {
  margin-top: 12px;
}

.contact .compact-contact h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.22;
}

.contact .compact-contact p {
  margin: 0;
  line-height: 1.42;
}

.label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.whatsapp-mini-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  display: inline-block;
}

.whatsapp-mini-icon path:first-child {
  fill: #25D366;
}

.whatsapp-mini-icon path:last-child {
  fill: #ffffff;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-up {
  display: none !important;
}


/* Final v4: Ads-ready click targets */
.ads-phone-click,
.ads-whatsapp-click,
.ads-map-click {
  color: inherit;
}

.contact .ads-phone-click {
  color: var(--turquoise-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
