/* SEO, accessibility, performance and responsive fixes. */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

iframe {
  border: 0;
}

/* Replaces former inline background declarations. */
.seo-bg-contact-cta {
  background-image: url("../images/background/bg8.webp");
}

.seo-bg-about-stats {
  background-image: url("../images/background/bg9.webp");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

.seo-bg-restoration {
  background-image: url("../images/about/img18.webp");
}

.seo-bg-home-about {
  background-image: url("../images/background/bg4.webp");
}

.seo-bg-about-card {
  background-image: url("../images/about/img6.webp");
}

.seo-bg-pattern-seven {
  background-image: url("../images/background/bg7.webp");
}

.seo-bg-doctors {
  background-image: url("../images/background/bg2.webp");
  background-position: right top;
  background-repeat: no-repeat;
  background-size: 100%;
}

.seo-bg-appointment {
  background-image: url("../images/background/bg1.webp");
}

.seo-bg-services-section {
  background-image: url("../images/background/bg3.webp");
  background-size: cover;
  background-position: center;
}

.seo-bg-service-photo {
  background-image: url("../images/about/img3.webp");
}

.seo-bg-home-about-cover {
  background-image: url("../images/background/bg4.webp");
  background-size: cover;
}

.seo-bg-testimonials {
  background-image: url("../images/background/bg6.webp");
}

.seo-bg-footer {
  background-image: url("../images/background/bg5.webp");
  background-size: cover;
  background-position: center;
}

/* WhatsApp floating CTA. */
.whatsapp-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  animation: floatWhats 3s ease-in-out infinite;
}

.whatsapp-label,
.whatsapp-icon {
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-label {
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
}

.whatsapp-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

@keyframes floatWhats {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Shared SEO page layouts. */
.seo-page-hero {
  position: relative;
  overflow: hidden;
  padding: 180px 20px 90px;
  background: linear-gradient(135deg, #2c1d73, #4b2fa1 50%, #f76aa5);
  color: #fff;
}

.seo-page-hero__inner {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.seo-page-hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.12;
}

.seo-page-hero p {
  color: rgba(255, 255, 255, 0.94);
}

.seo-page-kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 700;
}

.seo-content-section {
  padding: 70px 20px 90px;
  background: #f8f9ff;
}

.seo-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(35, 25, 85, 0.08);
}

.seo-article__image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 28px;
}

.seo-article__body {
  font-size: 1.05rem;
  line-height: 1.9;
}

.seo-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.seo-tag-list span {
  padding: 7px 13px;
  border-radius: 999px;
  background: #f2efff;
  color: #4b2fa1;
  font-size: 0.875rem;
  font-weight: 600;
}

.seo-related-posts {
  max-width: 1100px;
  margin: 60px auto 0;
}

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

.seo-related-grid article {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(35, 25, 85, 0.07);
}

.seo-related-grid img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.seo-related-grid h3 {
  padding: 18px;
  font-size: 1.1rem;
}

/* Footer messages moved out of inline CSS. */
.footer-message {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
}

.footer-message--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.footer-message--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.footer-message--info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.footer-message--default,
.footer-message--warning {
  background: #fff3cd;
  color: #664d03;
  border: 1px solid #ffecb5;
}

@media (max-width: 991px) {
  .seo-page-hero {
    padding-top: 140px;
  }

  .seo-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .seo-page-hero {
    padding: 120px 16px 60px;
  }

  .seo-content-section {
    padding: 45px 14px 65px;
  }

  .seo-article {
    padding: 20px;
  }

  .seo-related-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    left: 12px;
    bottom: 12px;
  }

  .whatsapp-label {
    display: none;
  }

  .whatsapp-icon {
    width: 52px;
    height: 52px;
  }

  h1 {
    overflow-wrap: anywhere;
  }
}

.seo-hero-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../images/hero-banner/pattern.webp");
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

/* Page animations moved out of template-level style blocks. */
.doctor-block:hover .doctor-image {
  transform: scale(1.1);
}

.reveal-block {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-block.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(20px); }
}

@keyframes floatX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(16px); }
}

@keyframes teamFloatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(16px); }
}

@keyframes teamFloatX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(14px); }
}

.team-reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.team-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.team-reveal:hover {
  transform: translateY(-6px);
}

.team-reveal:hover img {
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .seo-inline-002 h1,
  .seo-inline-017 h1,
  .seo-inline-045 h1 {
    font-size: 42px !important;
  }

  .seo-inline-045 p {
    font-size: 17px !important;
  }
}

@media (max-width: 767px) {
  .seo-inline-002,
  .seo-inline-017,
  .seo-inline-045 {
    padding: 130px 15px 70px !important;
  }

  .seo-inline-002 h1,
  .seo-inline-017 h1,
  .seo-inline-045 h1 {
    font-size: 34px !important;
  }

  .seo-inline-045 ~ section .container h2 {
    font-size: 30px !important;
  }
}
