:root {
  --teal: #009688;
  --teal-dark: #00796b;
  --teal-light: #e0f2f1;
  --navy: #1a2b3c;
  --navy-footer: #152535;
  --text: #5a6a7a;
  --heading: #1a2b3c;
  --white: #ffffff;
  --bg-soft: #f4f9f9;
  --shadow: 0 8px 30px rgba(0, 150, 136, 0.12);
  --radius: 6px;
  --font: "Poppins", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  line-height: 1.3;
  margin-top: 0;
}

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

/* Top bar */
.top-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 10px 0;
}

.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: flex-end;
}

.top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-bar i {
  color: var(--teal);
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 1rem;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-link img.logo-img {
  height: 48px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--navy);
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

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

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  font-family: inherit;
}

.btn-teal {
  background: var(--teal);
  color: var(--white) !important;
  border-color: var(--teal);
}

.btn-teal:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white) !important;
}

.btn-outline {
  background: transparent;
  color: var(--teal) !important;
  border-color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white) !important;
}

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

.header-cta {
  margin-left: 0.5rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(26, 43, 60, 0.82) 0%, rgba(26, 43, 60, 0.45) 55%, rgba(0, 150, 136, 0.25) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 620px;
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 540px;
  font-size: 16px;
  margin-bottom: 1.75rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero .btn-outline.hero-light {
  border-color: var(--white);
  color: var(--white) !important;
}

.hero .btn-outline.hero-light:hover {
  background: var(--white);
  color: var(--teal) !important;
}

/* Section */
.section {
  padding: 80px 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title .subtitle {
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.section-title p {
  max-width: 640px;
  margin: 0 auto;
}

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

.about-images {
  position: relative;
  min-height: 380px;
}

.about-images img.main-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 85%;
}

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

.about-badge {
  position: absolute;
  top: 20%;
  left: 45%;
  width: 70px;
  height: 70px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: var(--shadow);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.check-list li {
  padding: 8px 0 8px 32px;
  position: relative;
}

.check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--teal);
}

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

.service-card {
  background: var(--teal-light);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.service-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--teal);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

/* Department */
.dept-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.dept-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dept-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.dept-tab {
  padding: 8px 16px;
  border: 1px solid #dde5e5;
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  color: var(--heading);
}

.dept-tab.active {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.dept-panel {
  display: none;
}

.dept-panel.active {
  display: block;
}

/* Info blocks */
.info-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: -40px;
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
}

.info-block {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
}

.info-block h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.info-block h4 i {
  color: var(--teal);
}

.hours-table {
  width: 100%;
  font-size: 14px;
}

.hours-table td {
  padding: 4px 0;
}

.hours-table td:last-child {
  text-align: right;
  color: var(--teal-dark);
  font-weight: 600;
}

/* Team */
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.25s;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card .team-body {
  padding: 1.25rem;
}

.team-card h4 {
  margin-bottom: 0.25rem;
}

.team-card .role {
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

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

/* Stats */
.stats-bar {
  background: var(--teal);
  padding: 50px 0;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item i {
  font-size: 36px;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.stat-item .num {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.stat-item .label {
  font-size: 14px;
  opacity: 0.9;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .plus {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blog cards */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

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

.blog-card .blog-body {
  padding: 1.25rem;
}

.blog-date {
  display: inline-block;
  background: var(--teal);
  color: white;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

/* Page banner */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
  padding: 70px 0;
  text-align: center;
}

.page-banner h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-banner .breadcrumb {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.page-banner .breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

/* Forms */
.form-wrap {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

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

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

.field-error.visible {
  display: block;
}

.form-success {
  display: none;
  background: var(--teal-light);
  border: 1px solid var(--teal);
  color: var(--teal-dark);
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  margin-top: 1rem;
}

.form-success.visible {
  display: block;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: border-color 0.25s, transform 0.25s;
}

.pricing-card.featured {
  border-color: var(--teal);
  transform: scale(1.03);
}

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

.pricing-card .price span {
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.pricing-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid #eef2f2;
  font-size: 14px;
}

.pricing-card ul li i {
  color: var(--teal);
  margin-right: 8px;
}

/* Doctor cards */
.doctor-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-btn {
  padding: 8px 18px;
  border: 1px solid #dde5e5;
  background: white;
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}

.filter-btn.active {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

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

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

.legal-content p,
.legal-content li {
  font-size: 15px;
}

.legal-content ul {
  padding-left: 1.25rem;
}

/* Footer */
.site-footer {
  background: var(--navy-footer);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 60px;
}

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

.footer-grid h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-grid h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--teal);
}

.footer-about p {
  font-size: 14px;
  margin-bottom: 1rem;
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.footer-social a:hover {
  background: var(--teal);
  color: var(--white);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

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

.footer-newsletter input {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: inherit;
}

.footer-newsletter .nl-row {
  display: flex;
}

.footer-newsletter button {
  padding: 12px 16px;
  background: var(--teal);
  border: none;
  color: white;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
}

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

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  margin-left: 1rem;
}

.footer-bottom a:hover {
  color: var(--teal);
}

.footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 1rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 8px;
}

/* Wave divider */
.wave-section {
  position: relative;
  padding-bottom: 60px;
}

.wave-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23f4f9f9' d='M0,30 C360,60 720,0 1080,30 C1260,45 1380,15 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") center bottom no-repeat;
  background-size: cover;
}

/* Consult steps */
.steps-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.step-card .step-icon {
  width: 56px;
  height: 56px;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 22px;
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid,
  .dept-wrap,
  .cards-3,
  .info-blocks,
  .stats-grid,
  .gallery-grid,
  .pricing-grid,
  .footer-grid,
  .steps-3 {
    grid-template-columns: 1fr 1fr;
  }

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

  .about-images {
    min-height: 300px;
  }
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-cta {
    margin-left: 0;
    width: 100%;
  }

  .about-grid,
  .dept-wrap,
  .cards-3,
  .info-blocks,
  .stats-grid,
  .gallery-grid,
  .pricing-grid,
  .footer-grid,
  .steps-3,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 420px;
  }

  .section {
    padding: 50px 0;
  }
}
