/* ============================================================
   Rama Satish's Homeo Clinic — style.css
   Aesthetic: Organic Luxury — warm whites, botanical purples,
   elegant serif headings, clean Lato body text.
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --purple: #A865C9;
  --purple-dark: #8a4fb0;
  --purple-light: #e8d0f5;
  --purple-xlight: #f7effe;
  --cream: #fdfaf6;
  --white: #ffffff;
  --grey-50: #f9f9f9;
  --grey-100: #f0f0f0;
  --grey-200: #e0e0e0;
  --grey-400: #999;
  --grey-600: #666;
  --grey-800: #333;
  --text-dark: #1a1a1a;
  --text-body: #4a4a4a;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 12px rgba(168, 101, 201, 0.08);
  --shadow-md: 0 8px 32px rgba(168, 101, 201, 0.14);
  --shadow-lg: 0 20px 60px rgba(168, 101, 201, 0.18);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

em { font-style: italic; color: var(--purple); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 96px 0; }

/* ── SECTION LABEL ── */
.section-label {
  display: inline-block;
  background: var(--purple-xlight);
  color: var(--purple-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}
.section-header p { margin-top: 14px; color: var(--grey-600); font-size: 1.05rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  box-shadow: 0 4px 20px rgba(168, 101, 201, 0.3);
}
.btn-primary:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(168, 101, 201, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}
.btn-outline:hover {
  background: var(--purple);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── FLOATING CALL BUTTON ── */
.float-call {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(168, 101, 201, 0.45);
  transition: var(--transition);
  animation: floatPulse 2.5s ease-in-out infinite;
}
.float-call:hover {
  background: var(--purple-dark);
  transform: scale(1.05);
}
.float-call svg { width: 18px; height: 18px; }

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(168, 101, 201, 0.45); }
  50% { box-shadow: 0 6px 36px rgba(168, 101, 201, 0.65); }
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(253, 250, 246, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-200);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-leaf { font-size: 1.4rem; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-600);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--purple); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--purple) !important;
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  font-size: 0.85rem !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--purple-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* ── HERO ── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 80px 32px 80px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 60px;
  position: relative;
  overflow: visible;
}

.hero-bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.shape-1 {
  width: 500px; height: 500px;
  background: var(--purple);
  top: -100px; right: -100px;
}
.shape-2 {
  width: 300px; height: 300px;
  background: #e8a0ff;
  bottom: 100px; left: -50px;
}
.shape-3 {
  width: 200px; height: 200px;
  background: #c8f0d0;
  top: 50%; left: 40%;
}

.hero-content {
  flex: 1;
  z-index: 1;
  max-width: 580px;
}

.hero-badge {
  display: inline-block;
  background: var(--purple-xlight);
  color: var(--purple-dark);
  border: 1px solid var(--purple-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-heading {
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--grey-600);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--purple);
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--grey-600);
  font-weight: 600;
  white-space: nowrap;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--grey-200);
}

.hero-image-wrap {
  flex: 1;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-img-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
  max-width: 480px;
  width: 100%;
}
.hero-img-frame img {
  border-radius: var(--radius-xl);
  width: 100%;
  height: 520px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.hero-img-badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

/* ── ABOUT ── */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: center;
}

.about-img-col { position: relative; }

.about-img-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-frame img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-doctor-tag {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--purple);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about-doctor-tag strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.about-doctor-tag span { font-size: 0.78rem; opacity: 0.85; }

.about-text-col h2 { margin-bottom: 20px; }
.about-text-col p { color: var(--grey-600); margin-bottom: 16px; }

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 36px;
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--grey-50);
  border-radius: var(--radius);
  border-left: 3px solid var(--purple);
}
.pillar-icon { font-size: 1.5rem; flex-shrink: 0; }
.pillar strong { display: block; font-size: 0.95rem; color: var(--text-dark); margin-bottom: 2px; }
.pillar span { font-size: 0.82rem; color: var(--grey-600); }

/* ── SERVICES ── */
.services { background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 52px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
  cursor: default;
}
.service-card:hover {
  border-color: var(--purple-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-icon { font-size: 2rem; margin-bottom: 14px; }
.service-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.service-card p { font-size: 0.875rem; color: var(--grey-600); line-height: 1.6; }

.services-cta { text-align: center; }

/* ── WHY HOMEOPATHY ── */
.why-homeo { background: var(--purple-xlight); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.why-img-col img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.why-text-col h2 { margin-bottom: 20px; }
.why-text-col > p { color: var(--grey-600); margin-bottom: 28px; }

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--purple);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* ── TESTIMONIALS ── */
.testimonials { background: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.testimonial-card {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: var(--purple-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--purple-light);
  line-height: 1;
}

.stars { color: #f59e0b; font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p {
  font-size: 0.9rem;
  color: var(--grey-600);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--text-dark); }
.testimonial-author span { font-size: 0.78rem; color: var(--grey-400); }

.section-cta { text-align: center; }

/* ── CONSULTATION FORM ── */
.consultation {
  background: linear-gradient(135deg, var(--purple-xlight) 0%, var(--cream) 100%);
}

.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
}

.consult-info h2 { margin-bottom: 16px; }
.consult-info > p { color: var(--grey-600); margin-bottom: 36px; }

.consult-contact { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-size: 0.85rem; color: var(--grey-400); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.contact-item a, .contact-item span { font-size: 0.95rem; color: var(--text-dark); font-weight: 500; }
.contact-item a:hover { color: var(--purple); }

.consult-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--grey-200);
}

.form-row { margin-bottom: 20px; }
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}
.form-row.two-col .form-group { margin-bottom: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--grey-800);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--grey-50);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(168, 101, 201, 0.12);
  background: var(--white);
}
.form-group input.error,
.form-group select.error {
  border-color: #e53e3e;
}
.form-group textarea { resize: vertical; min-height: 90px; }

.loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-message {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.form-message.success {
  background: #f0fff4;
  border: 1px solid #68d391;
  color: #276749;
}
.form-message.error {
  background: #fff5f5;
  border: 1px solid #fc8181;
  color: #c53030;
}

/* ── LOCATION ── */
.location { background: var(--white); }

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: start;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.loc-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.location-detail strong { display: block; font-size: 0.85rem; color: var(--grey-400); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.location-detail p, .location-detail a { font-size: 0.95rem; color: var(--text-dark); line-height: 1.7; }
.location-detail em { color: var(--grey-600); font-style: normal; font-size: 0.85rem; }
.location-detail a:hover { color: var(--purple); }

.map-wrap { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }

/* ── FOOTER ── */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; margin-bottom: 24px; }

.social-links { display: flex; gap: 10px; }
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  transition: background var(--transition);
}
.social-btn:hover { background: var(--purple); }

.footer-nav strong, .footer-contact strong {
  display: block;
  font-size: 0.85rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav ul li a {
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-nav ul li a:hover { color: var(--purple); }
.footer-contact p, .footer-contact a { font-size: 0.88rem; display: block; margin-bottom: 6px; }
.footer-contact a:hover { color: var(--purple-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 0.82rem; }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-frame img, .why-img-col img { height: 380px; }
  .about-doctor-tag { right: 0; }
  .consult-grid { grid-template-columns: 1fr; gap: 40px; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 48px 20px 64px;
    min-height: auto;
    text-align: center;
  }
  .hero-actions { justify-content: center; }
  .hero-stats { width: 100%; justify-content: center; gap: 16px; padding: 16px 20px; }
  .hero-image-wrap { width: 100%; }
  .hero-img-frame img { height: 320px; }

  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 24px; border-bottom: 1px solid var(--grey-200); gap: 16px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links li a { font-size: 1rem; }
  .hamburger { display: flex; }
  .navbar { position: relative; padding: 16px 20px; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .consult-form-wrap { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-pad { padding: 64px 0; }
  .float-call span { display: none; }
  .float-call { padding: 16px; border-radius: 50%; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { width: 60px; height: 1px; }
}
