/* PrimeCrest - Custom Styles */

:root {
  --brand: #643cc2;
  --brand-dark: #4a2a8a;
  --brand-light: #f0ebfa;
  --brand-green: #64ec4f;
  --brand-green-dark: #4ece34;
  --text-dark: #1a1a2e;
  --text-mid: #4a4a6a;
}

/* Google Fonts loaded in HTML */

/* ─── Smooth scroll ─── */
html { scroll-behavior: smooth; }

/* ─── Brand color utilities ─── */
.text-brand   { color: var(--brand); }
.bg-brand     { background-color: var(--brand); }
.bg-brand-light { background-color: var(--brand-light); }
.border-brand { border-color: var(--brand); }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-block;
  background-color: var(--brand);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: var(--brand-dark);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-block;
  border: 2px solid var(--brand);
  color: var(--brand);
  font-weight: 600;
  padding: 0.7rem 1.75rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-outline:hover {
  background-color: var(--brand);
  color: #fff;
}
.btn-white {
  display: inline-block;
  background-color: #fff;
  color: var(--brand);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-white:hover {
  background-color: var(--brand-light);
  transform: translateY(-1px);
}

/* ─── Section titles ─── */
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
}
.section-subtitle {
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ─── Top Bar ─── */
#top-bar {
  background-color: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.45rem 0;
}

/* ─── Navbar ─── */
#navbar {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-link {
  color: #222;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.1rem;
  transition: color 0.2s;
  cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--brand); }

/* ─── Mega Dropdown ─── */
.mega-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-top: 3px solid var(--brand);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-radius: 0 0 8px 8px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  min-width: 680px;
  padding: 1.5rem;
}
.mega-parent:hover .mega-dropdown,
.mega-dropdown:hover {
  opacity: 1;
  visibility: visible;
}
.mega-service-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  transition: background 0.15s;
  text-decoration: none;
  color: #222;
}
.mega-service-card:hover { background: var(--brand-light); }
.mega-service-card img { width: 42px; height: 42px; object-fit: cover; border-radius: 4px; }
.mega-service-card h4 { font-size: 0.85rem; font-weight: 600; margin: 0; color: var(--text-dark); }
.mega-service-card p  { font-size: 0.75rem; color: var(--text-mid); margin: 0; }

/* ─── Mobile Menu ─── */
#mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 1rem 1.5rem;
}
#mobile-menu.open { display: block; }
.mobile-nav-link {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f0f0f0;
  color: #222;
  font-weight: 500;
  text-decoration: none;
}
.mobile-nav-link:hover { color: var(--brand); }
.mobile-sub-menu { padding-left: 1rem; display: none; }
.mobile-sub-menu.open { display: block; }

/* ─── Hero ─── */
.hero-section {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(100,60,194,0.88) 0%, rgba(30,10,40,0.75) 100%),
              url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1600&q=80') center/cover no-repeat;
  color: #fff;
}

/* ─── Service Cards ─── */
.service-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(100,60,194,0.18);
}
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ─── Icon Service Cards (small) ─── */
.service-item-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.service-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(100,60,194,0.15);
}
.service-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
  font-size: 1.4rem;
}

/* ─── Provider Cards ─── */
.provider-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(100,60,194,0.15);
}
.provider-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* ─── Telehealth Banner ─── */
.telehealth-banner {
  background: linear-gradient(135deg, var(--brand) 0%, #4a2a8a 100%);
  color: #fff;
}

/* ─── Green accent utilities ─── */
.text-brand-green   { color: var(--brand-green); }
.bg-brand-green     { background-color: var(--brand-green); }
.border-brand-green { border-color: var(--brand-green); }

/* ─── Testimonial Cards ─── */
.testimonial-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
  border-left: 4px solid var(--brand);
}
.star-rating { color: #f59e0b; }

/* ─── Stats Bar ─── */
.stats-bar { background: var(--brand); color: #fff; }

/* ─── CTA Section ─── */
.cta-section {
  background: linear-gradient(135deg, #f0ebfa 0%, #ede0ec 100%);
}

/* ─── Footer ─── */
#footer {
  background: #1a1a2e;
  color: #c9c9d8;
}
#footer a { color: #c9c9d8; text-decoration: none; transition: color 0.2s; }
#footer a:hover { color: #fff; }
.footer-heading { color: #fff; font-weight: 600; margin-bottom: 1rem; }

/* ─── Back to Top ─── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--brand);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(100,60,194,0.4);
  transition: background 0.2s, transform 0.2s;
  z-index: 999;
}
#back-to-top.visible { display: flex; }
#back-to-top:hover { background: var(--brand-dark); transform: translateY(-2px); }

/* ─── Scroll Animations ─── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Page Header (inner pages) ─── */
.page-header {
  background: linear-gradient(135deg, rgba(100,60,194,0.92) 0%, rgba(30,10,40,0.85) 100%),
              url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1600&q=80') center/cover no-repeat;
  color: #fff;
  padding: 4rem 0 3rem;
}

/* ─── Accordion ─── */
.accordion-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
  transition: background 0.2s;
}
.accordion-header:hover { background: var(--brand-light); }
.accordion-body {
  display: none;
  padding: 1rem 1.25rem;
  background: #fafafa;
  border-radius: 0 0 8px 8px;
  color: var(--text-mid);
  line-height: 1.7;
}
.accordion-body.open { display: block; }

/* ─── Contact Form ─── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(100,60,194,0.12);
}

/* ─── Insurance Logos Grid ─── */
.insurance-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  padding: 1.1rem 0.75rem 0.85rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.82rem;
  min-height: 100px;
  text-align: center;
  gap: 0.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.insurance-logo:hover {
  box-shadow: 0 6px 20px rgba(100,60,194,0.13);
  transform: translateY(-2px);
}
.insurance-logo img {
  height: 44px;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

/* ─── Conditions List Cards ─── */
.condition-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.2rem 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border-left: 3px solid var(--brand);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.condition-card:hover {
  background: var(--brand-light);
  transform: translateX(4px);
}

/* ─── Condition detail cards (replaces accordions) ─── */
.condition-detail-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(100,60,194,0.08);
  border: 1.5px solid #ede9f8;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  scroll-margin-top: 120px;
}
.condition-detail-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.condition-detail-header h3 {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}
.condition-detail-icon {
  width: 42px;
  height: 42px;
  background: var(--brand-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--brand);
  flex-shrink: 0;
}
.condition-detail-desc {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}
.condition-detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand);
  margin: 0.5rem 0 0.1rem;
}
.condition-detail-list {
  padding-left: 1.1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.condition-detail-list li {
  font-size: 0.82rem;
  color: #374151;
}
.condition-detail-treatment {
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.55;
  margin: 0;
}


.condition-pill {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 2px 8px rgba(100,60,194,0.08);
  border: 1.5px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.condition-pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(100,60,194,0.18);
  border-color: var(--brand);
  background: var(--brand-light);
}
.condition-pill-icon {
  width: 52px;
  height: 52px;
  background: var(--brand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--brand);
  transition: background 0.2s, color 0.2s;
}
.condition-pill:hover .condition-pill-icon {
  background: var(--brand);
  color: #fff;
}
.condition-pill-label {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-weight: 600;
  font-size: 0.78rem;
  color: #374151;
  line-height: 1.3;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-section { min-height: 420px; }
  .mega-dropdown { display: none !important; }
}
