:root {
  --primary: #ad1457;
  --accent: #f48fb1;
  --bg: #fce4ec;
  --text: #2d0a1e;
  --light-bg: #fff5f8;
  --border: #f1c6d6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--light-bg);
  line-height: 1.6;
}

/* Demo bar */
.demo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  z-index: 1000;
  text-align: center;
}

.demo-bar a {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: opacity 0.2s;
}

.demo-bar a:hover {
  opacity: 0.8;
}

/* Header & Nav */
header {
  background: var(--primary);
  color: white;
  padding: 1.5rem 1rem;
  text-align: center;
  margin-top: 2rem;
}

header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

header p {
  font-size: 0.95rem;
  opacity: 0.95;
}

/* Navigation - checkbox hack */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: white;
  text-align: center;
  font-weight: 600;
}

nav {
  background: var(--primary);
  padding: 0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.3s;
  font-size: 0.95rem;
}

nav li:last-child a {
  border-right: none;
}

nav a:hover {
  background: var(--accent);
  color: var(--text);
}

/* Mobile menu */
@media (max-width: 600px) {
  .nav-toggle-label {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
  }

  nav a {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.875rem 1rem;
  }

  .nav-toggle:checked ~ nav ul {
    display: flex;
  }
}

/* Main content */
main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem 2rem;
}

section {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--accent);
}

h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h3:first-child {
  margin-top: 0;
}

p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  text-align: center;
  padding: 3rem 1.5rem !important;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
}

.hero h2 {
  color: white;
  border: none;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Icons/shapes via CSS */
.icon-box {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  background: var(--accent);
  border-radius: 50%;
  margin-bottom: 1rem;
  position: relative;
}

.icon-box::before,
.icon-box::after {
  content: '';
  position: absolute;
  background: var(--primary);
}

/* Simple icon variations */
.icon-heart::before {
  width: 1.5rem;
  height: 1.5rem;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--primary);
  clip-path: polygon(50% 100%, 0% 38%, 0% 15%, 25% 0%, 50% 25%, 75% 0%, 100% 15%, 100% 38%);
}

.icon-stethoscope::before {
  width: 0.3rem;
  height: 1.5rem;
  top: 0.75rem;
  left: 1.35rem;
}

.icon-stethoscope::after {
  width: 1rem;
  height: 0.3rem;
  top: 1.35rem;
  left: 1rem;
}

.icon-calendar::before {
  width: 2rem;
  height: 0.3rem;
  top: 1rem;
  left: 0.5rem;
}

.icon-calendar::after {
  width: 2rem;
  height: 1.3rem;
  top: 1.4rem;
  left: 0.5rem;
  border: 0.2rem solid var(--primary);
}

/* Service cards */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(173, 20, 87, 0.15);
}

.service-card h3 {
  margin-top: 0;
}

/* Doctor cards */
.doctors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.doctor-card {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  border: 2px solid var(--border);
  transition: border-color 0.3s;
}

.doctor-card:hover {
  border-color: var(--primary);
}

.doctor-avatar {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1.5rem;
}

.doctor-card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.doctor-card p {
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Schedule table */
.schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.schedule th {
  background: var(--primary);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.schedule td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
}

.schedule tr:nth-child(even) {
  background: var(--light-bg);
}

.schedule tr:hover {
  background: var(--bg);
}

/* Forms */
form {
  display: grid;
  gap: 1.25rem;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(173, 20, 87, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button {
  background: var(--primary);
  color: white;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #8b0c3a;
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 3rem;
}

footer p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

footer a {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: opacity 0.2s;
}

footer a:hover {
  opacity: 0.8;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  margin-right: 0.5rem;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Info box */
.info-box {
  background: linear-gradient(135deg, rgba(173, 20, 87, 0.05), rgba(244, 143, 177, 0.05));
  border-left: 4px solid var(--primary);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 0.25rem;
}

.info-box strong {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 600px) {
  header {
    padding: 1rem;
    margin-top: 2.5rem;
  }

  header h1 {
    font-size: 1.4rem;
  }

  header p {
    font-size: 0.85rem;
  }

  section {
    padding: 1.25rem 1rem;
  }

  h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .hero {
    padding: 2rem 1rem !important;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

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

  nav a {
    font-size: 0.9rem;
    padding: 0.75rem 0.875rem;
  }

  table {
    font-size: 0.8rem;
  }

  .schedule th,
  .schedule td {
    padding: 0.5rem;
  }
}
