:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --border: #e5e7eb;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Layout */
.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 20px 40px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-text {
  font-weight: 600;
  font-size: 16px;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
  align-items: center;
}

nav a {
  padding: 4px 0;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Remove underline effect from buttons in nav */
nav .btn {
  padding: 8px 16px;
}

nav .btn::after {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.08s ease,
    box-shadow 0.1s ease;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.15);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: #eff3ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  padding: 40px 0 24px;
  align-items: center;
}

.hero-tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 18px;
}

.hero-usp {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-usp span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-usp span::before {
  content: "•";
  font-size: 16px;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 11px;
  color: var(--muted);
}

.hero-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-card-title {
  font-size: 13px;
  font-weight: 500;
}

.hero-card-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.hero-card-col {
  flex: 1;
}

.hero-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-value {
  font-size: 13px;
  margin-top: 2px;
}

.hero-doctor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.hero-doctor-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-doctor-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-doctor-info {
  flex: 1;
  min-width: 0;
}

.hero-doctor-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.hero-doctor-qual {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}

.hero-doctor-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* Sections */
section {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.section-heading {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 14px;
}

.section-title {
  font-size: 20px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 13px;
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 20px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px 14px 12px;
  font-size: 13px;
}

.service-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.service-desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

.service-tag {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 3px 8px;
}

/* Doctor */
.doctor {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

.doctor-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px 16px 14px;
  font-size: 13px;
}

.doctor-card-featured {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.doctor-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  border: 3px solid var(--bg-alt);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doctor-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.doctor-card-featured .doctor-list {
  text-align: left;
}

.doctor-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.doctor-qual {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.doctor-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 13px;
}

.doctor-list li {
  margin-bottom: 4px;
}

.doctor-note {
  font-size: 12px;
  color: var(--muted);
}

/* Pictures */
.pictures-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.picture-card {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.picture-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.picture-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.picture-card figcaption {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* Reviews */
.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  flex-wrap: wrap;
  gap: 16px;
}

.reviews-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reviews-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews-stars {
  font-size: 20px;
  color: #fbbf24;
  letter-spacing: 2px;
}

.reviews-score {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.reviews-count {
  font-size: 12px;
  color: var(--muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.review-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.review-date {
  font-size: 11px;
  color: var(--muted);
}

.review-card .review-stars {
  font-size: 14px;
  color: #fbbf24;
  letter-spacing: 1px;
}

.review-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.reviews-note {
  font-size: 13px;
  color: var(--muted);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  line-height: 1.6;
}

.reviews-note a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.reviews-note a:hover {
  color: #1d4ed8;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

.contact-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  font-size: 13px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-value {
  font-size: 13px;
}

.contact-value a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-value a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.2);
  transition: all 0.2s ease;
}

.map-link:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--accent);
  text-decoration: none;
  transform: translateX(2px);
}

.contact-hours {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.field label {
  font-size: 12px;
  color: var(--muted);
}

.field input,
.field textarea {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 8px 12px;
  font: inherit;
  outline: none;
  background: #fff;
}

.field textarea {
  border-radius: 12px;
  min-height: 72px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.form-note {
  font-size: 11px;
  color: var(--muted);
}

.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.5;
  animation: slideDown 0.3s ease;
}

.form-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.form-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-loading::after {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

footer {
  padding-top: 18px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 820px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  nav {
    font-size: 13px;
    gap: 12px;
    flex-wrap: wrap;
  }

  nav .btn {
    font-size: 13px;
    padding: 6px 14px;
  }

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

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

  .doctor,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reviews-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 600px) {
  .page {
    padding-inline: 14px;
  }

  .services-grid,
  .pictures-grid,
  .reviews-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  header {
    position: static;
  }
}

/* Image Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: zoomIn 0.3s ease;
}

.modal-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-caption {
  color: #fff;
  padding: 16px 20px;
  text-align: center;
  font-size: 14px;
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.8;
  line-height: 1;
}

.modal-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.picture-card {
  cursor: pointer;
}

.picture-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .modal-close {
    top: 10px;
    right: 10px;
    font-size: 32px;
    width: 40px;
    height: 40px;
  }

  .modal-content {
    max-width: 95%;
  }

  .modal-caption {
    font-size: 12px;
    padding: 12px 16px;
  }
}

