:root {
  --navy: #263267;
  --coral: #F05A4E;
  --coral-dark: #d94a3f;
  --sky: #e8f4fc;
  --sky-deep: #d4eaf7;
  --text: #4a5568;
  --text-dark: #1a202c;
  --white: #ffffff;
  --gray-bg: #f7f9fc;
  --radius-pill: 999px;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(38, 50, 103, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, 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.65;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--coral);
}

h1, h2, h3, h4, h5 {
  color: var(--navy);
  line-height: 1.25;
  margin-top: 0;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 44px;
  width: auto;
}

.nav-toggle {
  display: none;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  justify-content: center;
}

.nav-menu a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.nav-menu a.active {
  color: var(--coral);
}

.header-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
  text-align: center;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.btn-primary:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

/* Hero */
.hero {
  padding: 2.5rem 0 3rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--sky) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
  min-height: 320px;
  max-height: 480px;
}

.appointment-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 992px) {
  .hero-layout {
    grid-template-columns: 1.1fr 0.9fr 320px;
  }

  .appointment-card.hero-float {
    margin-top: 2rem;
  }
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.form-grid.two-col {
  grid-template-columns: 1fr 1fr;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--coral);
  border-color: var(--coral);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.75rem 0;
}

.form-check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--coral);
  cursor: pointer;
}

.form-check label {
  margin: 0;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
}

.form-feedback {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-feedback.is-success {
  background: #e6ffed;
  color: #276749;
  border: 1px solid #9ae6b4;
}

.form-feedback.is-error {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
}

/* Info bar */
.info-bar {
  background: var(--navy);
  color: var(--white);
  padding: 1.75rem 0;
}

.info-bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.info-bar h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.info-bar p,
.info-bar li {
  color: rgba(255, 255, 255, 0.88);
  margin: 0.25rem 0;
}

.info-bar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--gray-bg);
}

.section-sky {
  background: var(--sky);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--coral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.service-card a.read-more {
  color: var(--coral);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Testimonial */
.testimonial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.quote-box {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--coral);
  margin: 1rem 0;
}

.testimonial-visual {
  position: relative;
}

.testimonial-visual img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  min-height: 300px;
}

.stat-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--coral);
  color: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: var(--shadow);
}

/* Doctors */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.doctor-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.doctor-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #e2e8f0;
}

.doctor-card .doctor-body {
  padding: 1.25rem;
}

.doctor-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.doctor-card .role {
  color: var(--coral);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sky-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

/* Pricing teaser */
.pricing-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.feature-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
}

.feature-icon.coral { background: var(--coral); }
.feature-icon.navy { background: var(--navy); }
.feature-icon.green { background: #38a169; }

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.blog-card .blog-body {
  padding: 1.25rem;
}

.blog-card .date {
  font-size: 0.85rem;
  color: var(--coral);
  font-weight: 600;
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a244f 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto;
}

.breadcrumb {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--coral);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.7);
}

/* Content pages */
.content-prose {
  max-width: 820px;
  margin: 0 auto;
}

.content-prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.content-prose ul {
  padding-left: 1.25rem;
}

.content-wide {
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid transparent;
}

.price-card.featured {
  border-color: var(--coral);
  transform: scale(1.03);
}

.price-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
}

.price-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.price-card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #edf2f7;
}

.price-card li::before {
  content: "✓ ";
  color: var(--coral);
  font-weight: 700;
}

/* Doctor finder */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.filter-bar > * {
  flex: 1;
  min-width: 160px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 3rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-top .logo-link img {
  height: 44px;
  width: auto;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}

.footer-social a:hover {
  background: var(--coral);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.5rem 0;
}

.footer-grid h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--coral);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
}

.newsletter-form button {
  flex-shrink: 0;
  padding: 0.65rem 1rem;
  background: var(--coral);
  border: none;
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  margin-left: 1rem;
}

.footer-bottom a:hover {
  color: var(--coral);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .hero-layout,
  .info-bar-grid,
  .testimonial-split,
  .pricing-split,
  .services-grid,
  .doctors-grid,
  .blog-grid,
  .pricing-cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .nav-toggle {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-wrap {
    display: none;
    width: 100%;
    flex-direction: column;
    order: 3;
  }

  .nav-wrap.is-open {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
  }

  .header-actions {
    margin-left: auto;
  }

  .form-grid.two-col {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .header-actions .btn-outline {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom a {
    margin: 0 0.5rem;
  }
}