:root {
  --bg: #f9f7f5;
  --surface: #ffffff;
  --ink: #2a2a2a;
  --muted: #7a7a7a;
  --line: #e8e4e0;
  --brand: #c0392b;
  --brand-dark: #a93226;
  --brand-light: #fdf2f1;
  --accent: #2a5f8f;
  --radius: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.10);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background: #ffffff;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0;
}

.brand-logo-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  flex: 0 0 auto;
  border: 1px solid #ececec;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  line-height: 1;
  flex: 0 0 auto;
}

.brand-title {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand-subtitle {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.top-contact {
  margin: 0.3rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  color: #4d4d4d;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  margin-left: auto;
}

.top-contact a {
  color: #5f5f5f;
  text-decoration: none;
}

.top-contact a:hover {
  color: var(--brand);
}

.top-actions {
  margin-left: auto;
  display: flex;
  column-gap: 1.25rem;
  row-gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.64rem 1.15rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-outline {
  border-color: var(--brand);
  color: var(--brand);
  background: #ffffff;
}

.btn-outline:hover {
  background: var(--brand-light);
}

.btn-lg {
  padding: 0.82rem 1.45rem;
  font-size: 1.02rem;
}

.hero {
  padding: 4rem 0 3rem;
  position: relative;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-color: #f9f7f5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.60) 50%,
    rgba(255, 255, 255, 0.20) 100%
  );
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}

.hero h1,
.hero .lead {
  color: var(--ink);
}

.hero .lead {
  color: #4a4a4a;
}

.hero .trust-list li {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(4px);
}

.kicker {
  margin: 0;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Oswald", sans-serif;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.45rem);
  margin-top: 0.5rem;
  max-width: 17ch;
  font-weight: 500;
  line-height: 1.15;
}

.lead {
  max-width: 56ch;
  color: #4a4a4a;
  margin: 1.1rem 0 1.25rem;
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.trust-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.trust-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0.4rem 0.74rem;
  font-size: 0.9rem;
}

.hero-card {
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 1.6rem;
  box-shadow: var(--shadow-hover);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.07), rgba(192, 57, 43, 0));
  right: -60px;
  top: -60px;
}

.hero-card h2 {
  font-size: 1.45rem;
  color: var(--ink);
}

.hero-card p {
  color: var(--muted);
  margin: 0.5rem 0 1rem;
}

.hero-card dl {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.hero-card dt {
  font-weight: 700;
  color: var(--ink);
}

.hero-card dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.hero-card-cta {
  margin-top: auto;
  padding-top: 1.25rem;
}

.hero-card-cta .btn {
  width: 100%;
  min-height: 54px;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 18px rgba(192, 57, 43, 0.24);
}

.stripe {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.stripe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0.95rem 0;
}

.stripe-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stripe-text {
  margin: 0.25rem 0 0;
  font-weight: 700;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.7vw, 2.45rem);
}

.section-intro {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

/* ── Doctors ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.doctor-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  align-items: start;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}

.doctor-card:hover {
  box-shadow: var(--shadow-hover);
}

.doctor-card--alt {
  background: #ffffff;
}

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

.doctor-img-wrap {
  position: relative;
  flex: 0 0 auto;
}

.doctor-img-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #e5e5e5;
}

.doctor-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--brand);
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  line-height: 1;
}

.doctor-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.15rem;
}

.doctor-title {
  font-weight: 700;
  margin: 0;
  color: var(--brand);
  font-size: 0.95rem;
}

.doctor-cert {
  margin: 0.1rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.doctor-bio {
  margin: 0 0 0.75rem;
  color: var(--muted);
  line-height: 1.65;
}

.doctor-tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.doctor-tags li {
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  background: var(--bg);
}

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

.gallery-feature {
  grid-column: 1 / -1;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-feature img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  background: #ddd;
}

.gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #e0e0e0;
  transition: transform 0.25s ease;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.service-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.service-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--brand-light);
  border: 1px solid #f3d2ce;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.service-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--ink);
}

.service-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.service-meta {
  font-size: 0.92rem;
  color: var(--accent);
  font-weight: 600;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.timeline li {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}

.timeline h3 {
  font-size: 1.16rem;
}

.timeline p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.chat-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.75rem;
}

.chat-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.chat-title {
  margin: 0;
  font-weight: 700;
}

.chat-box ul {
  margin: 0.65rem 0 0;
  padding-left: 1rem;
}

.chat-box li {
  margin-bottom: 0.35rem;
}

.chat-cta {
  display: grid;
  align-content: center;
  gap: 0.7rem;
}

.chat-cta h3 {
  font-size: 1.5rem;
}

.chat-cta p {
  margin: 0;
}

.faq-wrap details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
  box-shadow: var(--shadow);
}

.faq-wrap summary {
  font-weight: 700;
  cursor: pointer;
}

.faq-wrap p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.final-cta {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, #fdf2f1 0%, #fff8f7 60%, #fdf2f1 100%);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.final-cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.final-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
}

.footer-grid {
  min-height: 62px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer a {
  color: inherit;
}

@media (max-width: 980px) {
  .hero-grid,
  .chat-grid,
  .final-cta-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .stripe-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

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

  .doctor-card {
    grid-template-columns: 140px 1fr;
  }

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

  .gallery-feature img {
    height: 240px;
  }

  .gallery-item img {
    height: 180px;
  }
}

@media (max-width: 640px) {
  .service-head {
    gap: 0.55rem;
  }

  .service-icon {
    width: 1.9rem;
    height: 1.9rem;
  }

  .service-icon svg {
    width: 1.05rem;
    height: 1.05rem;
  }

  .topbar-inner {
    flex-wrap: wrap;
  }

  .brand-logo-wrap {
    width: 50px;
    height: 50px;
  }

  .top-contact {
    font-size: 0.84rem;
    width: 100%;
    justify-content: flex-end;
    margin-top: 0;
    font-weight: 500;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .top-actions .btn {
    flex: 0 0 auto;
  }

  .cards,
  .timeline {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    grid-template-columns: 1fr;
  }

  .doctor-img-wrap img {
    aspect-ratio: 4 / 3;
  }

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

  .footer-grid {
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0;
  }
}
