/* ============================================================
   Magizh Acupuncture Clinic – Premium Healthcare Theme
   ============================================================ */

:root {
  --primary: #0E5E64;
  --primary-dark: #094548;
  --primary-light: #157378;
  --secondary: #76B982;
  --secondary-light: #A8D5AE;
  --accent: #66BB6A;
  --hover: #094548;
  --bg: #F8F9FA;
  --bg-white: #FFFFFF;
  --text: #333333;
  --text-muted: #6C757D;
  --text-light: #FFFFFF;
  --border: #E9ECEF;
  --shadow-sm: 0 2px 8px rgba(14, 94, 100, 0.08);
  --shadow-md: 0 8px 24px rgba(14, 94, 100, 0.12);
  --shadow-lg: 0 16px 48px rgba(14, 94, 100, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
  --font: 'Poppins', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
}

p { margin-bottom: 1rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; }

.section-padding { padding: 80px 0; }

.section-padding-sm { padding: 60px 0; }

.section-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.bg-light-section { background-color: var(--bg); }

.bg-primary-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
}

.bg-primary-section h2,
.bg-primary-section h3,
.bg-primary-section h4 { color: var(--text-light); }

.bg-gradient-soft {
  background: linear-gradient(135deg, rgba(14, 94, 100, 0.04) 0%, rgba(118, 185, 130, 0.08) 100%);
}

/* ---- Buttons ---- */
.btn-primary-custom {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: var(--text-light);
  font-weight: 500;
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary-custom:hover {
  background: var(--hover);
  border-color: var(--hover);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary-custom {
  background: var(--secondary);
  border: 2px solid var(--secondary);
  color: var(--text-light);
  font-weight: 500;
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary-custom:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 500;
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: var(--text-light);
  font-weight: 500;
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-light:hover {
  background: var(--text-light);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ---- Navbar ---- */
.navbar-custom {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
  transition: var(--transition);
}

.navbar-custom.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-custom .navbar-brand img {
  /*height: 52px;*/
  height: 140px;
  width: auto;
}

.navbar-custom .nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--primary);
}

.navbar-custom .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-actions .btn-sm-custom {
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
}

/* ---- Hero ---- */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(14, 94, 100, 0.95) 0%, rgba(9, 69, 72, 0.92) 50%, rgba(14, 94, 100, 0.88) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(118, 185, 130, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
}

.hero-content h1 {
  color: var(--text-light);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-content .lead {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(118, 185, 130, 0.2);
  border: 1px solid rgba(118, 185, 130, 0.4);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-light);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat-item strong {
  display: block;
  font-size: 1.75rem;
  color: var(--secondary-light);
}

.hero-stat-item span {
  font-size: 0.85rem;
  opacity: 0.85;
}

.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 140px 0 70px;
  color: var(--text-light);
  text-align: center;
}

.page-hero h1 {
  color: var(--text-light);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.page-hero p {
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto;
}

.breadcrumb-custom {
  justify-content: center;
  margin-bottom: 1rem;
}

.breadcrumb-custom .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-custom .breadcrumb-item.active {
  color: var(--secondary-light);
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Cards ---- */
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-light);
}

.feature-card .icon-wrap {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(14, 94, 100, 0.08) 0%, rgba(118, 185, 130, 0.15) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card .icon-wrap i {
  font-size: 1.75rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.condition-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}

.condition-card:hover {
  background: var(--primary);
  color: var(--text-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.condition-card:hover h3,
.condition-card:hover i { color: var(--text-light); }

.condition-card i {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  display: block;
}

.condition-card h3 {
  font-size: 0.95rem;
  margin: 0;
}

.info-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  height: 100%;
}

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--secondary);
  height: 100%;
}

.testimonial-card .quote-icon {
  font-size: 2rem;
  color: var(--secondary-light);
  margin-bottom: 1rem;
}

.testimonial-card .stars {
  color: #FFC107;
  margin-bottom: 1rem;
}

/* ---- Process Timeline ---- */
.process-timeline {
  position: relative;
  padding: 2rem 0;
}

.process-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.process-step:last-child { margin-bottom: 0; }

.process-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
}

.process-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(118, 185, 130, 0.1);
  border-radius: 50%;
}

.cta-section h2 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

/* ---- Counter ---- */
.counter-box {
  text-align: center;
  padding: 2rem 1rem;
}

.counter-box .counter-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.counter-box .counter-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ---- Doctor Profile ---- */
.doctor-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.doctor-photo-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: linear-gradient(135deg, var(--bg) 0%, var(--secondary-light) 100%);
}

.doctor-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(14, 94, 100, 0.3));
}

.qualification-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin: 0.25rem;
}

.expertise-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.expertise-list li i {
  color: var(--secondary);
}

/* ---- Article / Educational ---- */
.article-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary-light);
}

.article-content h3 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.article-content ul li {
  margin-bottom: 0.5rem;
}

.article-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-nav .nav-link {
  color: var(--text);
  padding: 0.6rem 1rem;
  border-left: 3px solid transparent;
  font-size: 0.9rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  color: var(--primary);
  background: rgba(14, 94, 100, 0.05);
  border-left-color: var(--secondary);
}

.highlight-box {
  background: linear-gradient(135deg, rgba(14, 94, 100, 0.05) 0%, rgba(118, 185, 130, 0.1) 100%);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

/* ---- FAQ ---- */
.faq-search-wrap {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.faq-search-wrap i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.faq-search-wrap input {
  padding-left: 3rem;
  border-radius: 50px;
  border: 2px solid var(--border);
  height: 52px;
}

.faq-search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(14, 94, 100, 0.15);
}

.accordion-custom .accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-custom .accordion-button {
  font-weight: 500;
  color: var(--primary);
  padding: 1.25rem 1.5rem;
  background: var(--bg-white);
}

.accordion-custom .accordion-button:not(.collapsed) {
  background: rgba(14, 94, 100, 0.05);
  color: var(--primary);
  box-shadow: none;
}

.accordion-custom .accordion-button:focus {
  box-shadow: none;
  border-color: var(--secondary-light);
}

.accordion-custom .accordion-body {
  padding: 1rem 1.5rem 1.5rem;
  color: var(--text);
}

/* ---- Contact ---- */
.contact-info-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-light);
}

.contact-info-card .icon-circle {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-info-card .icon-circle i {
  color: var(--text-light);
  font-size: 1.25rem;
}

.contact-form .form-control,
.contact-form .form-select {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(14, 94, 100, 0.15);
}

.map-placeholder {
  background: var(--bg);
  border-radius: var(--radius-lg);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  text-align: center;
  padding: 2rem;
}

.hours-table {
  width: 100%;
}

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

.hours-table tr:last-child td { border-bottom: none; }

/* ---- Footer ---- */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 4rem;
}

.footer h5 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
}

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

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

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  align-items: flex-start;
}

.footer-contact li i {
  color: var(--secondary);
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 0.5rem;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--secondary);
  color: var(--text-light);
}

/* ---- Floating Elements ---- */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  transition: var(--transition);
}

.whatsapp-float:hover {
  color: var(--text-light);
  transform: scale(1.1);
}

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--text-light);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--hover);
  transform: translateY(-3px);
}

/* ---- Image Placeholders ---- */
.img-placeholder {
  background: linear-gradient(135deg, var(--bg) 0%, rgba(118, 185, 130, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.img-placeholder i {
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.4;
}

/* ---- Values Grid ---- */
.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.value-card i {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

/* ---- Mission/Vision ---- */
.mission-vision-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--secondary);
  height: 100%;
}

/* ---- Nearby Locations ---- */
.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin: 0.25rem;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .section-padding { padding: 60px 0; }

  .navbar-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .navbar-actions .btn-sm-custom {
    width: 100%;
    justify-content: center;
  }

  .hero-section { min-height: auto; padding: 120px 0 60px; }

  .article-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .section-title { font-size: 1.5rem; }

  .hero-stats { gap: 1.25rem; }

  .cta-section { padding: 2.5rem 1.5rem; }

  .whatsapp-float { bottom: 80px; right: 16px; }

  .scroll-top { right: 16px; bottom: 16px; }
}
