/* Dr. Reddy's Homeopathy - Main Styles */
/* Aesthetic: Organic Luxury — sage green, warm ivory, gold accents */

:root {
  --sage: #5a7a5a;
  --sage-light: #7a9e7a;
  --sage-dark: #3d5c3d;
  --gold: #b8923a;
  --gold-light: #d4aa5a;
  --ivory: #faf8f3;
  --cream: #f3ede0;
  --brown: #4a3728;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(90,122,90,0.12);
  --shadow-lg: 0 12px 48px rgba(90,122,90,0.18);
  --radius: 16px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ivory);
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', serif; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.2; }

em { font-style: italic; color: var(--sage); }
.telugu { font-family: 'DM Sans', sans-serif; color: var(--sage-dark); }

a { text-decoration: none; color: var(--sage); }
a:hover { color: var(--gold); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- BOTANICAL BG ---- */
.botanical-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.leaf { position: absolute; font-size: 4rem; opacity: 0.04; animation: floatLeaf 12s ease-in-out infinite; }
.leaf-1 { top: 10%; left: 5%; animation-delay: 0s; }
.leaf-2 { top: 40%; right: 3%; animation-delay: 3s; }
.leaf-3 { bottom: 20%; left: 8%; animation-delay: 6s; }
.leaf-4 { top: 70%; right: 10%; animation-delay: 9s; }
@keyframes floatLeaf { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(10deg); } }

/* ---- HEADER ---- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,243,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(90,122,90,0.15);
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  box-shadow: 0 2px 20px rgba(90,122,90,0.08);
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 2rem; color: var(--sage); }
.logo-name { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--sage-dark); }
.logo-tag { font-size: 0.7rem; color: var(--sage-light); letter-spacing: 0.5px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 0.9rem; font-weight: 500; color: var(--text); transition: color 0.2s; }
.nav a:hover { color: var(--sage); }

.btn-consult {
  background: var(--sage);
  color: white !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  transition: all 0.2s;
}
.btn-consult:hover { background: var(--sage-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--sage); }

/* ---- HERO ---- */
.hero {
  min-height: 90vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 48px;
  padding: 80px 60px 60px;
  position: relative;
  background: linear-gradient(135deg, var(--ivory) 0%, var(--cream) 100%);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(90,122,90,0.1);
  border: 1px solid rgba(90,122,90,0.2);
  color: var(--sage-dark);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem; font-weight: 500;
  margin-bottom: 24px;
}

.hero-title { color: var(--brown); margin-bottom: 16px; }
.hero-subtitle { color: var(--text-light); font-size: 1.05rem; line-height: 1.8; margin-bottom: 36px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.btn-primary {
  background: var(--sage);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.25s;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); color: white; }

.btn-secondary {
  background: transparent;
  color: var(--sage-dark);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--sage);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { background: var(--sage); color: white; }

.hero-stats { display: flex; gap: 32px; }
.stat { text-align: center; }
.stat span { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600; color: var(--sage-dark); }
.stat small { font-size: 0.78rem; color: var(--text-light); font-weight: 500; }

.hero-image-wrap { position: relative; display: flex; justify-content: center; }
.hero-image-bg {
  position: absolute;
  width: 85%; height: 90%;
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--sage-dark) 100%);
  border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
  bottom: 0; left: 50%; transform: translateX(-50%);
  opacity: 0.15;
}
.hero-image {
  position: relative; z-index: 2;
  width: 80%; max-width: 420px;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.doctor-card {
  position: absolute; bottom: 20px; left: 10%; z-index: 3;
  background: white;
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--gold);
  animation: fadeInUp 0.8s ease 0.3s both;
}
.doctor-card-name { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 600; color: var(--brown); }
.doctor-card-qual { font-size: 0.78rem; color: var(--text-light); }
.doctor-card-exp { font-size: 0.78rem; color: var(--gold); font-weight: 600; margin-top: 4px; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ---- CHAT BUBBLE ---- */
.chat-bubble {
  position: fixed; bottom: 30px; right: 30px; z-index: 200;
  background: var(--sage);
  color: white;
  border-radius: 20px;
  padding: 14px 18px;
  cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg);
  transition: all 0.25s;
  animation: bounceIn 1s ease 2s both;
}
.chat-bubble:hover { background: var(--sage-dark); transform: scale(1.05); }
.chat-bubble-icon { font-size: 1.5rem; }
.chat-bubble-text { font-size: 0.75rem; line-height: 1.4; font-weight: 600; }
.chat-bubble-ping {
  position: absolute; top: -4px; right: -4px;
  width: 14px; height: 14px;
  background: #ff4444;
  border-radius: 50%;
  animation: ping 1.5s ease-in-out infinite;
}
@keyframes ping { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.5; } }
@keyframes bounceIn { from { opacity: 0; transform: scale(0); } 80% { transform: scale(1.1); } to { opacity: 1; transform: scale(1); } }

/* ---- SECTIONS ---- */
.section { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  background: rgba(90,122,90,0.1);
  color: var(--sage-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px;
}

/* ---- SPECIALTIES ---- */
.specialties-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.specialty-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
  transition: all 0.3s;
  cursor: default;
}
.specialty-card:hover {
  border-top-color: var(--sage);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.specialty-icon { font-size: 2.5rem; margin-bottom: 16px; }
.specialty-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--brown); }
.specialty-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }

/* ---- ABOUT ---- */
.about-section { background: var(--cream); padding: 90px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: center; }
.about-image-col { position: relative; }
.about-img { width: 100%; border-radius: 24px; box-shadow: var(--shadow-lg); }
.about-cert {
  position: absolute; bottom: -16px; right: -16px;
  background: var(--gold);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 700;
  box-shadow: var(--shadow);
}
.about-lead { color: var(--sage); font-weight: 600; margin-bottom: 16px; }
.about-text p { color: var(--text-light); line-height: 1.8; margin-bottom: 14px; font-size: 0.95rem; }
.about-telugu { background: rgba(90,122,90,0.06); padding: 14px; border-radius: 8px; border-left: 3px solid var(--sage); }
.about-highlights { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.highlight {
  background: white;
  border: 1px solid rgba(90,122,90,0.2);
  color: var(--sage-dark);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem; font-weight: 500;
}

/* ---- HOW IT WORKS ---- */
.howto-section { background: white; }
.steps-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.step {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  flex: 1; min-width: 180px; max-width: 220px;
  border: 1px solid rgba(90,122,90,0.12);
}
.step-num { font-size: 0.7rem; font-weight: 700; color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }
.step-icon { font-size: 2.2rem; margin-bottom: 12px; }
.step h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--brown); margin-bottom: 8px; }
.step p { font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }
.step-arrow { font-size: 1.5rem; color: var(--sage-light); }

/* ---- CONTACT ---- */
.contact-section { background: var(--cream); padding: 90px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-info h2 { margin-bottom: 32px; }
.contact-info a { color: var(--sage); }
.upi-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.upi-icons span {
  background: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  border: 1px solid rgba(90,122,90,0.2);
  color: #000 !important;
}

/* ---- FOOTER ---- */
.footer { background: var(--sage-dark); color: rgba(255,255,255,0.85); padding: 60px 0 24px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer .logo-name { color: white; font-size: 1.4rem; margin-bottom: 4px; }
.footer .telugu { color: rgba(255,255,255,0.6); font-size: 0.8rem; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.88rem; line-height: 1.7; margin-top: 12px; }
.footer-links h4 { color: var(--gold-light); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links a, .footer-links span { display: block; color: rgba(255,255,255,0.7); font-size: 0.88rem; margin-bottom: 8px; text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.disclaimer { font-size: 0.75rem !important; color: rgba(255,255,255,0.35) !important; }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(44,44,44,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal-box {
  background: white;
  border-radius: 24px;
  width: 100%; max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: slideUp 0.3s ease;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  background: var(--cream); border: none;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 1rem; cursor: pointer; color: var(--text-light);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--cream); color: var(--sage-dark); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Modal inner forms */
.modal-inner { padding: 40px 36px; }
.modal-header { text-align: center; margin-bottom: 28px; }
.modal-header h2 { font-size: 1.8rem; color: var(--brown); margin-bottom: 6px; }
.modal-header p { color: var(--text-light); font-size: 0.88rem; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0ddd5;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  background: var(--ivory);
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--sage); }
.form-group textarea { min-height: 90px; resize: vertical; }

.auth-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.auth-btn {
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid #e0ddd5;
  background: white;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
}
.auth-btn:hover { border-color: var(--sage); background: var(--ivory); }
.auth-btn.active { border-color: var(--sage); background: rgba(90,122,90,0.08); color: var(--sage-dark); }

.divider { text-align: center; color: var(--text-light); font-size: 0.8rem; margin: 16px 0; position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: #e0ddd5; }
.divider::before { left: 0; }
.divider::after { right: 0; }

.btn-full { width: 100%; padding: 14px; border-radius: 50px; font-size: 0.95rem; margin-top: 8px; }

.fee-badge {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: white;
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 20px;
}
.fee-amount { font-size: 2rem; font-weight: 700; }
.fee-label { font-size: 0.8rem; opacity: 0.85; }

.upi-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.upi-option {
  padding: 12px;
  border: 1.5px solid #e0ddd5;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 0.82rem; font-weight: 500;
  transition: all 0.2s;
}
.upi-option:hover, .upi-option.selected { border-color: var(--sage); background: rgba(90,122,90,0.06); }

/* Chat Window */
.chat-window { display: flex; flex-direction: column; height: 500px; }
.chat-header {
  background: var(--sage);
  color: white;
  padding: 16px 20px;
  border-radius: 24px 24px 0 0;
  display: flex; align-items: center; gap: 12px;
}
.chat-header img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid white; }
.chat-header-info h4 { font-size: 0.95rem; }
.chat-header-info small { font-size: 0.75rem; opacity: 0.85; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; margin-right: 4px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 16px;
  background: var(--ivory);
  display: flex; flex-direction: column; gap: 12px;
}
.msg { max-width: 78%; }
.msg-patient { align-self: flex-end; }
.msg-doctor { align-self: flex-start; }
.msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.msg-patient .msg-bubble { background: var(--sage); color: white; border-bottom-right-radius: 4px; }
.msg-doctor .msg-bubble { background: white; color: var(--text); border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.msg-system { align-self: center; font-size: 0.75rem; color: var(--text-light); background: rgba(0,0,0,0.05); padding: 4px 12px; border-radius: 50px; }
.msg-time { font-size: 0.68rem; color: var(--text-light); margin-top: 3px; padding: 0 4px; }

.chat-input-area {
  padding: 12px 16px;
  background: white;
  border-top: 1px solid #e0ddd5;
  border-radius: 0 0 24px 24px;
  display: flex; gap: 8px; align-items: flex-end;
}
.chat-input-area textarea {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid #e0ddd5;
  border-radius: 20px;
  resize: none; font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
  outline: none; max-height: 100px;
  background: var(--ivory);
}
.chat-input-area textarea:focus { border-color: var(--sage); }
.btn-icon {
  width: 40px; height: 40px;
  border-radius: 50%; border: none;
  background: var(--sage); color: white;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.btn-icon:hover { background: var(--sage-dark); }
.btn-icon.secondary { background: var(--cream); color: var(--text); }
.btn-icon.recording { background: #ff4444; animation: pulse 1s infinite; }

.waiting-screen { text-align: center; padding: 32px; }
.waiting-screen .spinner { width: 60px; height: 60px; border: 4px solid var(--cream); border-top-color: var(--sage); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

.lang-toggle { display: flex; gap: 4px; }
.lang-btn { padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.3); background: transparent; color: white; font-size: 0.72rem; cursor: pointer; }
.lang-btn.active { background: rgba(255,255,255,0.2); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 60px 24px 40px; text-align: center; }
  .hero-image-wrap { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .specialties-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-col { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .steps-row { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .nav { display: none; }
  .hamburger { display: block; }
}

@media (max-width: 600px) {
  .header { padding: 12px 16px; }
  .specialties-grid { grid-template-columns: 1fr; }
  .chat-bubble { bottom: 16px; right: 16px; }
  .modal-box { border-radius: 16px; }
  .modal-inner { padding: 28px 20px; }
}
