@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --navy: #002d72;
  --navy-dark: #0b2154;
  --sky: #e6f4fa;
  --cyan: #0b6fb8;
  --cyan-light: #3d9fd4;
  --white: #ffffff;
  --text: #4a5568;
  --text-dark: #1a202c;
  --border: #c5dce8;
  --success: #0d9488;
  --error: #dc2626;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 45, 114, 0.08);
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

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

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

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

h1,
h2,
h3,
h4 {
  color: var(--navy-dark);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section--sky {
  background: var(--sky);
}

.section--navy {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section-title {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-title .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.section--navy .section-title .eyebrow {
  color: var(--cyan-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  font-family: inherit;
}

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

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

.btn--outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

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

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

.btn--white:hover {
  background: var(--sky);
}

/* Top bar */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.top-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.top-bar a {
  color: var(--cyan-light);
}

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

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
}

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

.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  position: relative;
}

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

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 3rem 0 5rem;
  background: linear-gradient(180deg, var(--sky) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

.hero__desc {
  font-size: 1.05rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.hero__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.hero__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.appointment-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  border: 1px solid var(--border);
}

.appointment-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(11, 111, 184, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--error);
}

.field-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 0.25rem;
  display: none;
}

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

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

.form-check__row {
  display: grid;
  grid-template-columns: 1.125rem 1fr;
  column-gap: 0.75rem;
  align-items: start;
}

.form-check input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--navy);
  cursor: pointer;
  justify-self: start;
  align-self: start;
}

.form-check input[type="checkbox"].error {
  outline: 2px solid var(--error);
  outline-offset: 1px;
}

.form-check label {
  display: block;
  font-size: 0.9rem;
  line-height: 1.55;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
  color: var(--text);
}

.form-check label a {
  font-weight: 500;
}

.form-check > .field-error {
  margin: 0.35rem 0 0;
  padding-left: calc(1.125rem + 0.75rem);
}

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  color: #0f766e;
  font-weight: 500;
  margin-top: 1rem;
}

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

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

.feature-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 45, 114, 0.06);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--sky);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

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

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

.split__images img {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
  height: 220px;
}

.split__images img:first-child {
  grid-row: span 2;
  height: 100%;
  min-height: 280px;
}

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

.check-list li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

/* Service grid */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.service-card__body {
  padding: 1.25rem;
}

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

.stat-item h3 {
  font-size: 2.25rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.stat-item p {
  margin: 0;
  opacity: 0.9;
}

/* Team */
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
}

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

.team-card__body {
  padding: 1.25rem;
}

.team-card__role {
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Pricing */
.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  position: relative;
}

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

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

.price-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.faq-item {
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 1.25rem 1rem;
  margin: 0;
  font-size: 0.95rem;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stars {
  color: #f59e0b;
  margin-bottom: 0.75rem;
}

/* Blog */
.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__body {
  padding: 1.25rem;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--cyan);
}

.before-after {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.before-after img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.before-after__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.before-after__label {
  position: absolute;
  bottom: 1rem;
  padding: 0.35rem 0.85rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
}

.before-after__label--before {
  left: 1rem;
}

.before-after__label--after {
  right: 1rem;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(rgba(0, 45, 114, 0.85), rgba(11, 33, 84, 0.9)),
    url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1600&q=80")
      center/cover;
  padding: 5rem 0;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--sky), var(--white));
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text);
}

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

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 3.5rem;
}

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

.site-footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
  color: var(--cyan-light);
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.social-links a:hover {
  background: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.88rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}

.content-page {
  max-width: 800px;
  margin: 0 auto;
}

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

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

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

.doctor-filter button {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
}

.doctor-filter button.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

@media (max-width: 992px) {
  .hero__grid,
  .split,
  .faq-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .appointment-card {
    margin-top: 1.5rem;
  }
}

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

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

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

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

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

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

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

  .split__images img:first-child {
    grid-row: auto;
    height: 220px;
  }
}