/* spoe:theme */
:root {
  --bg: #ffffff;
  --fg: #333333;
  --card: #f8f8f8;
  --muted: #e6e6e6;
  --muted-fg: #666666;
  --border: #dddddd;
  --primary: #4ca4a4;
  --on-primary: #ffffff;
  --radius: 12px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: 'Georgia', serif;
}

/* spoe:fonts */

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

html { 
  -webkit-text-size-adjust: 100%; 
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 1rem;
  color: var(--fg);
}

.section-header p {
  font-size: 1.25rem;
  color: var(--muted-fg);
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #3a8a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 164, 164, 0.25);
}

.btn-secondary {
  background: var(--muted);
  color: var(--fg);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #d4d4d4;
  transform: translateY(-2px);
}

/* Header */
.header {
  background: var(--bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--primary);
}

/* Hero */
.hero {
  padding: 5rem 0;
  background: linear-gradient(to bottom, #f0f9f9, var(--bg));
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--fg);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--muted-fg);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Services */
.services {
  padding: 6rem 0;
  background: var(--bg);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.pricing-card h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--fg);
}

.price {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--primary);
  margin: 0.5rem 0 1.5rem;
}

.pricing-card ul {
  padding-left: 1.25rem;
}

.pricing-card li {
  margin-bottom: 0.75rem;
  color: var(--muted-fg);
}

/* Dentists */
.dentists {
  padding: 6rem 0;
  background: #f9f9f9;
}

.dentist-profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.dentist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.dentist-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.dentist-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dentist-info {
  padding: 2rem;
  width: 100%;
}

.dentist-info h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--fg);
}

.dentist-title {
  color: var(--primary);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* First Visit */
.first-visit {
  padding: 6rem 0;
  background: var(--bg);
}

.first-visit .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.steps {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step-counter;
  margin-bottom: 2rem;
  padding-left: 3.5rem;
  position: relative;
}

.steps h3 {
  margin-top: 0;
  color: var(--fg);
}

.steps p {
  color: var(--muted-fg);
}

.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.visit-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.visit-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* FAQ */
.faq {
  padding: 6rem 0;
  background: #f9f9f9;
}

.faq-items {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-item[open] {
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.faq-item summary {
  padding: 1.5rem 2rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.125rem;
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2rem;
  font-size: 1.5rem;
  font-weight: 300;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item div {
  padding: 0 2rem 1.5rem;
  color: var(--muted-fg);
}

/* Contact */
.contact {
  padding: 6rem 0;
  background: var(--bg);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hours {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 3rem 0;
  text-align: left;
  display: inline-block;
  width: 100%;
  max-width: 500px;
}

.hours h3 {
  margin-top: 0;
  text-align: center;
}

.hours ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.hours li:last-child {
  border-bottom: none;
}

.appointment {
  margin-top: 2rem;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h2 {
  font-family: var(--font-heading);
  margin-top: 0;
}

.footer h3 {
  margin-top: 0;
}

.address {
  font-style: normal;
  line-height: 1.8;
}

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

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

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #555;
  color: #aaa;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero .container,
  .first-visit .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content,
  .visit-content {
    order: 2;
  }
  
  .hero-image,
  .visit-image {
    order: 1;
  }
  
  .nav ul {
    gap: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hours {
    text-align: center;
  }
  
  .hours li {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 576px) {
  .nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .steps li {
    padding-left: 0;
    padding-top: 3.5rem;
  }
  
  .steps li::before {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
  }
}