body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  min-height: 100vh;
  color: #333;
}
.nav-container { position: fixed; width: 100vw; top: 0; left: 0; z-index: 1000; background: rgba(255,255,255,0.97); box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.navbar { width: 100%; max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1rem 5%; }
.nav-logo { font-family: 'Lora', serif; font-size: 1.5rem; color: #264653; text-decoration: none; z-index: 1101; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: #333; text-decoration: none; font-weight: 500; position: relative; font-size: 1rem; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: #D4A017; transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }
.burger { display: none; flex-direction: column; justify-content: center; align-items: center; width: 40px; height: 40px; cursor: pointer; z-index: 1101; background: transparent; border: none; position: relative; margin-right: 20px; }
.burger span { width: 28px; height: 3px; background: #264653; margin: 4px 0; border-radius: 2px; transition: all 0.3s; }
.mobile-menu { display: none; position: fixed; top: 0; right: 0; width: 80vw; max-width: 340px; height: 100vh; background: rgba(255,255,255,0.98); box-shadow: -2px 0 16px rgba(0,0,0,0.08); z-index: 1100; flex-direction: column; padding-top: 80px; padding-left: 2rem; padding-right: 2rem; transition: right 0.3s; }
.mobile-menu.active { display: flex; animation: slideIn 0.3s; }
@keyframes slideIn { from { right: -100vw; opacity: 0; } to { right: 0; opacity: 1; } }
.mobile-menu a { color: #333; text-decoration: none; font-size: 1.2rem; margin-bottom: 2rem; font-weight: 500; border-bottom: 1px solid #eee; padding-bottom: 0.7rem; }
.mobile-menu a:last-child { border-bottom: none; }
.close-menu { position: absolute; top: 20px; right: 20px; font-size: 2rem; color: #264653; cursor: pointer; z-index: 1102; }
.hero { margin-top: 70px; min-height: 70vh; height: 80vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { width: 100vw; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: -1; filter: brightness(0.7); transition: transform 10s ease-out; }
.hero-content { max-width: 800px; padding: 2rem 1rem; text-align: center; background: rgba(0, 0, 0, 0.4); border-radius: 0; backdrop-filter: blur(5px); color: white; }
.hero h1 { font-family: 'Lora', serif; font-size: 2.2rem; margin-bottom: 1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.1rem; margin-bottom: 2rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero button { background: #D4A017; color: white; padding: 14px 28px; border: none; border-radius: 5px; font-size: 1.1rem; cursor: pointer; transition: background-color 0.3s; }
.hero button:hover { background: #A8B5A2; }
.frame { max-width: 700px; margin: 120px auto 40px auto; background: rgba(255,255,255,0.92); border-radius: 18px; box-shadow: 0 4px 24px rgba(0,0,0,0.10); padding: 2.5rem 2rem; position: relative; z-index: 1; }
.page-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; object-fit: cover; z-index: 0; filter: brightness(0.6) blur(2px); }
.service-list { display: flex; flex-direction: column; gap: 2.5rem; }
.service-row { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.5rem; }
.service-icon { width: 90px; height: 90px; border-radius: 16px; background-size: cover; background-position: center; box-shadow: 0 2px 12px rgba(0,0,0,0.10); flex-shrink: 0; border: 3px solid #A8B5A2; }
.service-info h2 { margin: 0 0 0.5rem 0; font-family: 'Lora', serif; font-size: 1.2rem; color: #264653; }
.service-info .service-subtitle { font-size: 1.05rem; color: #666; font-weight: 500; margin-bottom: 0.8rem; display: block; }
.service-info p { margin: 0; font-size: 1rem; }
.service-info a { color: #D4A017; text-decoration: underline; }
.service-info a:hover { color: #A8B5A2; }
.doctor-img-frame { text-align: center; margin-bottom: 2rem; }
.doctor-img-frame img { max-width: 100%; max-height: 420px; border-radius: 18px; border: 4px solid #A8B5A2; box-shadow: 0 4px 24px rgba(0,0,0,0.10); background: #fff; }

/* Flipping Tiles for Home Page Services - 3 on top, 3 on bottom */
.services {
  max-width: 1200px;
  margin: 60px auto 40px auto;
  padding: 0 2vw;
}
.services h1 {
  text-align: center;
  font-family: 'Lora', serif;
  margin-bottom: 2rem;
  color: #264653;
}
.services-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.service-item {
  width: 260px;
  height: 320px;
  perspective: 1000px;
  margin-bottom: 2rem;
}
/* Force 3-3 layout on desktop */
.service-item:nth-child(4),
.service-item:nth-child(5),
.service-item:nth-child(6) {
  flex-basis: calc(33.33% - 1.33rem);
  max-width: 260px;
}
.service-flip {
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  position: relative;
  cursor: pointer;
}
.service-item:hover .service-flip {
  transform: rotateY(180deg);
}
.service-front, .service-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  text-align: center;
  box-sizing: border-box;
}
.service-front {
  background-size: cover;
  background-position: center;
  color: #fff;
}
.service-front h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: 'Lora', serif;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
.service-front p {
  font-size: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
.service-back {
  background: #fff;
  color: #264653;
  transform: rotateY(180deg);
  font-size: 0.9rem;
  padding: 1.2rem;
  box-sizing: border-box;
  overflow-y: auto;
}
.service-back a {
  color: #D4A017;
  text-decoration: underline;
}
.service-back a:hover {
  color: #A8B5A2;
}

/* Contact Section */
.contact {
  max-width: 1200px;
  margin: 60px auto 40px auto;
  padding: 0 2vw;
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 2.5rem 2rem;
}
.contact h1 {
  text-align: center;
  font-family: 'Lora', serif;
  margin-bottom: 2rem;
  color: #264653;
}
.contact-container {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.office {
  flex: 1;
  min-width: 280px;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}
.office h2 {
  font-family: 'Lora', serif;
  color: #264653;
  margin-bottom: 1rem;
}
.inquiry-form {
  max-width: 600px;
  margin: 0 auto;
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
}
.inquiry-form h2 {
  font-family: 'Lora', serif;
  color: #264653;
  margin-bottom: 1.5rem;
  text-align: center;
}
.inquiry-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #264653;
}
.inquiry-form input, .inquiry-form textarea, .inquiry-form select {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
}
.inquiry-form button {
  background: #ccc;
  color: #666;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: not-allowed;
  transition: background-color 0.3s;
  width: 100%;
}
.inquiry-form button.enabled {
  background: #D4A017;
  color: white;
  cursor: pointer;
}
.inquiry-form button.enabled:hover {
  background: #A8B5A2;
}

/* Success message styling */
.success-message {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  border: 1px solid #c3e6cb;
  display: none;
}

/* Footer and Disclaimer */
footer {
  text-align: center;
  padding: 2rem;
  background: #264653;
  color: white;
  margin-top: 2rem;
}
.disclaimer {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: #ccc;
}

@media (max-width: 900px) { 
  .nav-links { display: none; } 
  .burger { display: flex; margin-right: 20px; }
  .frame { margin: 100px 2vw 30px 2vw; padding: 1.5rem 0.7rem; } 
  .service-row { flex-direction: column; align-items: center; text-align: center; } 
  .service-icon { margin-bottom: 1rem; }
  .services-container {
    flex-direction: column;
    align-items: center;
  }
  .service-item {
    width: 90vw;
    max-width: 340px;
    height: 320px;
  }
  /* Reset 3-3 layout on mobile - stack vertically */
  .service-item:nth-child(4),
  .service-item:nth-child(5),
  .service-item:nth-child(6) {
    flex-basis: auto;
    max-width: 340px;
  }
  .contact-container {
    flex-direction: column;
  }
  .contact {
    margin: 60px 2vw 40px 2vw;
  }
}
