:root {
  --primary: #33691e;
  --accent: #dce775;
  --bg: #f9fbe7;
  --text: #1a2200;
  --border: #c5e1a5;
  --light-bg: #fffde7;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Demo Bar */
.demo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--primary);
  color: var(--light-bg);
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.demo-bar a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.demo-bar a:hover {
  color: var(--light-bg);
}

/* Header & Nav */
header {
  background-color: var(--primary);
  color: var(--light-bg);
  padding: 1rem;
  margin-top: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 2rem;
  z-index: 100;
}

header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

header p {
  font-size: 0.875rem;
  text-align: center;
  opacity: 0.95;
  margin-bottom: 1rem;
}

/* Navigation Checkbox Hack */
nav {
  position: relative;
}

#nav-toggle {
  display: none;
}

.nav-label {
  display: block;
  background-color: var(--accent);
  color: var(--text);
  padding: 0.75rem 1rem;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.2s;
  font-size: 1rem;
  margin: 0;
}

.nav-label:hover {
  background-color: #c5e1a5;
}

nav ul {
  display: none;
  list-style: none;
  background-color: var(--light-bg);
  border-top: 2px solid var(--accent);
  flex-direction: column;
}

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

nav li {
  border-bottom: 1px solid var(--border);
}

nav a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 1rem;
  transition: background-color 0.2s;
  font-weight: 500;
}

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

/* Desktop Navigation */
@media (min-width: 768px) {
  .nav-label {
    display: none;
  }

  nav ul {
    display: flex !important;
    flex-direction: row;
    background-color: transparent;
    border-top: none;
    padding: 0;
    margin-top: 1rem;
  }

  nav li {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid rgba(255,253,231,0.3);
    text-align: center;
  }

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

  nav a {
    padding: 0.75rem 0.5rem;
  }
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

section {
  background-color: white;
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 4px solid var(--primary);
}

h2 {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

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

h4 {
  color: var(--text);
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* Service Cards */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(51,105,30,0.15);
}

.service-card h3 {
  margin-top: 0;
  color: var(--primary);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* Doctor Cards */
.doctor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .doctor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .doctor-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.doctor-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(51,105,30,0.15);
}

.doctor-avatar {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.doctor-info {
  padding: 1.25rem;
}

.doctor-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.doctor-title {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.doctor-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

/* Schedule Table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

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

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

.schedule-table tbody tr:hover {
  background-color: var(--light-bg);
}

.badge {
  display: inline-block;
  background-color: var(--accent);
  color: var(--text);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Form */
.form-group {
  margin-bottom: 1.25rem;
}

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

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

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(51,105,30,0.1);
}

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

button {
  background-color: var(--primary);
  color: var(--light-bg);
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

button:hover {
  background-color: #2d5a18;
}

button:active {
  transform: scale(0.98);
}

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

footer h3 {
  color: var(--accent);
  border-bottom: none;
  margin-top: 0;
}

footer p {
  margin-bottom: 0.5rem;
  text-align: center;
}

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

footer a:hover {
  color: var(--light-bg);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #558b2f 100%);
  color: var(--light-bg);
  padding: 2rem 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 2rem;
  border-left: none;
}

.hero h2 {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1rem;
}

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

/* CTA Button */
.cta-button {
  display: inline-block;
  background-color: var(--accent);
  color: var(--text);
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button:hover {
  background-color: #c5e1a5;
  transform: translateY(-2px);
}

/* Highlight Box */
.highlight {
  background-color: var(--light-bg);
  border-left: 4px solid var(--accent);
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

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

/* SVG Shapes */
svg {
  display: inline-block;
  vertical-align: middle;
}

/* Responsive */
@media (max-width: 767px) {
  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  section {
    padding: 1rem;
    margin: 1rem 0;
  }

  main {
    padding: 0.75rem;
  }

  header {
    margin-top: 2.5rem;
    top: 2.5rem;
  }

  .doctor-avatar {
    height: 150px;
    font-size: 3rem;
  }
}

/* Print Styles */
@media print {
  .demo-bar,
  .nav-label,
  button,
  .cta-button {
    display: none;
  }

  body {
    background-color: white;
  }

  section {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
