:root {
  --blue: #00a8e8;
  --blue-dark: #0077b6;
  --orange: #f26522;
  --orange-hover: #d9541a;
  --dark: #1a2332;
  --dark-footer: #141b26;
  --text: #5a6578;
  --heading: #2d3748;
  --light: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 10px 40px rgba(0, 40, 80, 0.08);
  --radius: 4px;
  --font: "Poppins", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--orange);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading);
  line-height: 1.3;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1170px, 92%);
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

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

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}

.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--light);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title .label {
  display: inline-block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.25s;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.logo img {
  height: 44px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  align-items: center;
  justify-content: center;
}

.main-nav a {
  color: var(--heading);
  font-size: 14px;
  font-weight: 500;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--blue);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--heading);
}

/* Hero */
.hero {
  padding: 60px 0 0;
  background: linear-gradient(135deg, #fff5f0 0%, #e8f7fc 55%, #fff 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
  margin-top: 24px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border-radius: 12px;
  width: 100%;
  object-fit: cover;
  max-height: 520px;
}

.hero-shape {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(0, 168, 232, 0.15);
  top: -20px;
  right: -20px;
  z-index: -1;
}

/* Feature bar */
.feature-bar {
  background: var(--blue);
  color: var(--white);
  padding: 36px 0;
  margin-top: 0;
}

.feature-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.feature-bar-item h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin: 12px 0 8px;
}

.feature-bar-item p {
  font-size: 14px;
  opacity: 0.92;
  margin: 0;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* About block */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-images .main-img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-images .sub-img {
  position: absolute;
  bottom: -24px;
  right: -16px;
  width: 45%;
  border: 6px solid var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.check-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.check-list .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card .thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .card-icon {
  position: absolute;
  bottom: -24px;
  left: 24px;
  width: 52px;
  height: 52px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 4px solid var(--white);
}

.service-card .body {
  padding: 36px 24px 28px;
}

.text-center {
  text-align: center;
}

/* CTA banner */
.cta-banner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 320px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cta-banner .media {
  background-size: cover;
  background-position: center;
  min-height: 280px;
}

.cta-banner .panel {
  background: var(--blue);
  color: var(--white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-banner .panel h2 {
  color: var(--white);
  font-size: 1.75rem;
}

/* Why choose */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.why-box {
  background: #e8f6fc;
  padding: 24px 20px;
  border-radius: 8px;
  text-align: center;
}

.why-box .w-icon {
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.why-box h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.why-box p {
  font-size: 13px;
  margin: 0;
}

/* Partners */
.partners {
  padding: 40px 0;
  border-top: 1px solid #e8ecf1;
  border-bottom: 1px solid #e8ecf1;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 56px;
  opacity: 0.55;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--heading);
  letter-spacing: 0.02em;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  padding: 32px 28px 28px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card .quote {
  font-size: 48px;
  line-height: 1;
  color: var(--orange);
  font-family: Georgia, serif;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eef1f5;
}

.testimonial-card .author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.skills-visual {
  background: linear-gradient(145deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

.skills-visual img {
  max-height: 320px;
  margin: 0 auto;
  border-radius: 8px;
}

.progress-item {
  margin-bottom: 22px;
}

.progress-item label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}

.progress-bar {
  height: 8px;
  background: #dde5ee;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 4px;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  text-align: center;
  background: var(--white);
  padding: 32px 24px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--light);
}

.team-card .role {
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.team-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--heading);
}

/* Appointment section */
.appointment-section {
  position: relative;
  padding: 0;
}

.appointment-bg {
  min-height: 520px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 60px 0;
}

.appointment-form-wrap {
  width: min(480px, 92%);
  margin-right: max(4%, calc((100% - 1170px) / 2));
  background: var(--blue);
  padding: 40px 36px;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.appointment-form-wrap h3 {
  color: var(--white);
  margin-bottom: 24px;
}

.appointment-form-wrap .form-group label {
  color: rgba(255, 255, 255, 0.95);
}

.appointment-form-wrap input,
.appointment-form-wrap select,
.appointment-form-wrap textarea {
  background: var(--white);
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.blog-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card .thumb {
  position: relative;
  height: 240px;
}

.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card .date-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--orange);
  color: var(--white);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius);
}

.blog-card .body {
  padding: 24px;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--heading);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8dee8;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(0, 168, 232, 0.35);
  border-color: var(--blue);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #e53e3e;
}

.field-error {
  color: #c53030;
  font-size: 12px;
  margin-top: 4px;
}

.form-success-message {
  background: #e6ffed;
  border: 1px solid #9ae6b4;
  color: #276749;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-top: 16px;
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.page-hero p {
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.92;
}

.breadcrumb {
  font-size: 13px;
  margin-bottom: 12px;
  opacity: 0.85;
}

.breadcrumb a {
  color: var(--white);
}

/* Inner content */
.content-prose {
  max-width: 900px;
  margin: 0 auto;
}

.content-prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.content-prose h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.content-prose ul,
.content-prose ol {
  margin: 0 0 1rem 1.25rem;
}

/* Doctor cards */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.doctor-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.doctor-card .info {
  padding: 20px;
}

.doctor-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  justify-content: center;
}

.doctor-filter select {
  padding: 10px 16px;
  border: 1px solid #d8dee8;
  border-radius: var(--radius);
  min-width: 180px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border-radius: 8px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--blue);
}

.pricing-card.featured {
  border-top-color: var(--orange);
  transform: scale(1.03);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading);
}

.pricing-card .price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid #eef1f5;
  font-size: 14px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--blue);
  margin-right: 8px;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--dark-footer);
  color: #a8b4c4;
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: #a8b4c4;
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--orange);
}

.footer-newsletter {
  display: flex;
  margin-top: 16px;
}

.footer-newsletter input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 14px;
}

.footer-newsletter button {
  padding: 12px 18px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-weight: 600;
}

.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal a {
  color: #8a96a8;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-box {
  background: var(--light);
  padding: 32px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.contact-info-box h4 {
  color: var(--blue);
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .why-grid,
  .skills-grid,
  .cta-banner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .testimonials-grid,
  .team-grid,
  .doctor-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-bar-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .appointment-form-wrap {
    margin: 0 auto;
  }

  .pricing-card.featured {
    transform: none;
  }

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

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

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s;
  }

  .main-nav.is-open {
    max-height: 480px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px;
    align-items: stretch;
  }

  .header-actions .btn {
    display: none;
  }

  .services-grid,
  .testimonials-grid,
  .team-grid,
  .blog-grid,
  .doctor-grid,
  .pricing-grid,
  .why-features {
    grid-template-columns: 1fr;
  }

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

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

  .about-images .sub-img {
    right: 0;
  }
}
