/**
 * Components — Livine Holistic Wellness
 * Reusable component styles: cards, buttons, section headers, forms, badges.
 * These are global and used across multiple pages.
 */

/* -------------------------------------------------------
   SECTION HEADER
------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

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

.section-title {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--dark, #264653);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-title span {
  color: var(--primary, #1a7f6c);
}

.section-description {
  font-size: 1rem;
  color: #6c757d;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* -------------------------------------------------------
   BUTTONS
------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition, all 0.3s ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--secondary, #f4a261);
  color: #fff;
  border-color: var(--secondary, #f4a261);
}

.btn-primary:hover {
  background: #e08c4a;
  border-color: #e08c4a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 162, 97, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary, #1a7f6c);
  border-color: var(--primary, #1a7f6c);
}

.btn-outline:hover {
  background: var(--primary, #1a7f6c);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary, #1a7f6c);
  border-color: #fff;
}

.btn-white:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn i {
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(3px);
}

/* -------------------------------------------------------
   CARD — Base
------------------------------------------------------- */
.card {
  background: #fff;
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,0.12));
}

/* -------------------------------------------------------
   CARD — Feature Card (icon + title + description)
------------------------------------------------------- */
.feature-card {
  padding: 36px 28px;
  text-align: center;
}

.feature-card .icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(26, 127, 108, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: var(--primary, #1a7f6c);
  transition: background 0.3s ease, transform 0.3s ease;
}

.feature-card:hover .icon-wrap {
  background: var(--primary, #1a7f6c);
  color: #fff;
  transform: scale(1.1);
}

.feature-card h3 {
  font-family: var(--font-heading, serif);
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--dark, #264653);
}

.feature-card p {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.65;
}

/* -------------------------------------------------------
   CARD — Condition Card (image + badge + title)
------------------------------------------------------- */
.condition-card {
  position: relative;
}

.condition-card .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.condition-card .card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--secondary, #f4a261);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.condition-card .card-body {
  padding: 20px;
}

.condition-card .card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 10px;
}

.condition-card h3 {
  font-family: var(--font-heading, serif);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--dark, #264653);
}

.condition-card p {
  font-size: 0.88rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 16px;
}

.condition-card .read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary, #1a7f6c);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.condition-card .read-more:hover {
  gap: 10px;
}

/* -------------------------------------------------------
   CARD — Testimonial Card
------------------------------------------------------- */
.testimonial-card {
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--primary, #1a7f6c);
  opacity: 0.15;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-card .patient-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.testimonial-card .patient-image {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary, #1a7f6c);
}

.testimonial-card .patient-name {
  font-weight: 600;
  color: var(--dark, #264653);
  font-size: 0.95rem;
}

.testimonial-card .patient-location {
  font-size: 0.8rem;
  color: #aaa;
}

.testimonial-card .quote {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #555;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-card .result-stat {
  display: inline-block;
  background: rgba(26, 127, 108, 0.08);
  color: var(--primary, #1a7f6c);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* -------------------------------------------------------
   TEAM CARD
------------------------------------------------------- */
.team-card .team-image-wrap {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover img {
  transform: scale(1.07);
}

.team-card .team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 127, 108, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-card .team-info {
  padding: 16px 20px;
}

.team-card .team-name {
  font-family: var(--font-heading, serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark, #264653);
}

.team-card .team-role {
  font-size: 0.82rem;
  color: var(--primary, #1a7f6c);
  font-weight: 500;
}

/* -------------------------------------------------------
   INFO / CONTACT CARD
------------------------------------------------------- */
.info-card {
  padding: 32px 28px;
  text-align: center;
  border-top: 4px solid var(--primary, #1a7f6c);
}

.info-card .icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(26, 127, 108, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.4rem;
  color: var(--primary, #1a7f6c);
}

.info-card h3 {
  font-family: var(--font-heading, serif);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--dark, #264653);
}

.info-card p, .info-card a {
  font-size: 0.9rem;
  color: #6c757d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-card a:hover {
  color: var(--primary, #1a7f6c);
}

/* -------------------------------------------------------
   FAQ ACCORDION
------------------------------------------------------- */
.faq-item {
  border: 1px solid #e9ecef;
  border-radius: var(--radius-sm, 6px);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: var(--dark, #264653);
  background: #fff;
  transition: background 0.2s ease;
  user-select: none;
}

.faq-question:hover {
  background: rgba(26, 127, 108, 0.04);
}

.faq-question i {
  color: var(--primary, #1a7f6c);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 22px;
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.7;
  background: #fafafa;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 16px 22px 20px;
}

/* -------------------------------------------------------
   BADGE
------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-primary { background: rgba(26, 127, 108, 0.1); color: var(--primary, #1a7f6c); }
.badge-secondary { background: rgba(244, 162, 97, 0.15); color: #d4834a; }
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff8e1; color: #f57c00; }

/* -------------------------------------------------------
   FORM ELEMENTS
------------------------------------------------------- */
.form-group {
  position: relative;
  margin-bottom: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 44px 14px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius-sm, 6px);
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 0.9rem;
  color: var(--dark, #264653);
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary, #1a7f6c);
  box-shadow: 0 0 0 3px rgba(26, 127, 108, 0.12);
}

.form-group > i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
  font-size: 0.9rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  padding-right: 16px;
}

/* -------------------------------------------------------
   POPUP / MODAL
------------------------------------------------------- */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.popup.is-open {
  display: flex;
}

.popup-content {
  background: #fff;
  border-radius: var(--radius, 12px);
  padding: 40px 36px;
  max-width: 440px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.popup-header {
  text-align: center;
  margin-bottom: 28px;
}

.popup-header h3 {
  font-family: var(--font-heading, serif);
  font-size: 1.5rem;
  color: var(--dark, #264653);
  margin-bottom: 8px;
}

.popup-header p {
  font-size: 0.88rem;
  color: #6c757d;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #aaa;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: var(--dark, #264653);
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--secondary, #f4a261);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 8px;
  font-family: var(--font-body, sans-serif);
}

.submit-btn:hover {
  background: #e08c4a;
  transform: translateY(-1px);
}

.popup-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 0.8rem;
  color: #aaa;
}

.popup-footer i {
  color: var(--primary, #1a7f6c);
  margin-right: 4px;
}

/* -------------------------------------------------------
   NEWSLETTER FORM (in footer)
------------------------------------------------------- */
.newsletter-form {
  display: flex;
  gap: 0;
  margin-top: 16px;
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.2);
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-family: var(--font-body, sans-serif);
  font-size: 0.88rem;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.55);
}

.newsletter-form button {
  padding: 12px 18px;
  background: var(--secondary, #f4a261);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: #e08c4a;
}

/* -------------------------------------------------------
   QUICK LINKS (footer two-column list)
------------------------------------------------------- */
.quick-links-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  padding: 0;
  margin: 0;
  list-style: none;
  max-width: 400px;
}

.quick-links-flex li {
  width: calc(50% - 20px);
}

/* -------------------------------------------------------
   DEVELOPER LINK (footer)
------------------------------------------------------- */
.developer-link {
  color: #e99e0a;
  text-decoration: none;
  border-bottom: 2px solid white;
  transition: var(--transition, all 0.3s ease);
  font-weight: 500;
}

.developer-link:hover {
  color: #ffa200;
  border-bottom-color: #c48028;
  background: rgba(255,255,255,0.05);
}

/* -------------------------------------------------------
   RESPONSIVE ADJUSTMENTS
------------------------------------------------------- */
@media (max-width: 768px) {
  .section-header {
    margin-bottom: 40px;
  }

  .popup-content {
    padding: 28px 22px;
  }
}

/* -------------------------------------------------------
   SEARCH BAR (Reusable)
------------------------------------------------------- */
.page-search {
  max-width: 860px;
  margin: 22px auto 10px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 0;
  border-radius: 16px;
  border: 1px solid rgba(15, 28, 46, 0.10);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(15, 28, 46, 0.08);
  overflow: hidden;
}

.page-search__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: rgba(15, 28, 46, 0.55);
}

.page-search__input {
  border: none;
  outline: none;
  background: transparent;
  height: 44px;
  padding: 0 10px;
  font-size: 14.5px;
  color: var(--text, #264653);
  font-family: var(--body-font, 'Poppins', sans-serif);
}

.page-search__input::placeholder {
  color: rgba(15, 28, 46, 0.45);
}

.page-search__clear {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(15, 28, 46, 0.45);
  font-size: 24px;
  line-height: 1;
}

.page-search__clear:hover {
  background: rgba(15, 28, 46, 0.04);
  color: rgba(15, 28, 46, 0.7);
}

.page-search__hint {
  max-width: 860px;
  margin: 0 auto 18px;
  font-size: 13px;
  color: rgba(15, 28, 46, 0.55);
  line-height: 1.6;
}

.page-search__empty {
  max-width: 860px;
  margin: 0 auto 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(15, 28, 46, 0.18);
  color: rgba(15, 28, 46, 0.65);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* -------------------------------------------------------
   ACTION PAIR (Reusable: Book + WhatsApp)
------------------------------------------------------- */
.action-pair {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
}

.action-pair .btn-outline-brand,
.action-pair .btn-whatsapp {
  flex: 1 1 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 0.88rem;
  min-height: 48px;
  white-space: nowrap;
  line-height: 1;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.action-pair .btn-outline-brand {
  border-width: 2px;
}

.action-pair .btn-whatsapp {
  background: #25d366;
  color: #fff;
  text-decoration: none;
}
.action-pair .btn-whatsapp:hover { background: #1aad55; transform: translateY(-1px); }

.action-pair .ap-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .action-pair { gap: 10px; }
  .action-pair .btn-outline-brand,
  .action-pair .btn-whatsapp {
    padding: 10px 12px;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .action-pair .btn-outline-brand,
  .action-pair .btn-whatsapp { padding: 10px 10px; }
}
