/* === FIX Scroll-to-top Overlay Issue === */
#scroll-top {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: var(--accent-color, #007bff);
  color: #fff;
  z-index: 999 !important;
  display: none !important;
  justify-content: center;
  align-items: center;
}

#scroll-top.active {
  display: flex !important;
}

/*--------------------------------------------------------------
# Generic Service Page Styles (applies to all service pages)
# Reusable for: Online Consultation, Home Vastu, Office Vastu, etc.
--------------------------------------------------------------*/

/* Generic button style for all service pages */
.service-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  color: var(--contrast-color);
  background: var(--accent-color);
  transition: all 0.3s ease;
  border: none;
}

.service-btn:hover,
.service-btn:focus {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
  color: var(--contrast-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


/* --- Hero / Intro Section --- */
.service-hero {
  background: linear-gradient(135deg, #fff7f5 0%, #ffe5e0 100%);
  text-align: center;
  padding: 120px 20px 80px;
  color: var(--heading-color);
}

.service-hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--heading-color);
}

.service-hero p {
  font-size: 18px;
  max-width: 800px;
  margin: 20px auto 0;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.service-hero .btn-primary {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 12px 35px;
  border-radius: 50px;
  font-size: 16px;
  margin-top: 30px;
  transition: 0.3s;
}

.service-hero .btn-primary:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

/* --- Section Headings --- */
.service-section-title {
  text-align: center;
  padding-bottom: 50px;
}

.service-section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--heading-color);
}

.service-section-title p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  max-width: 800px;
  margin: 10px auto 0;
}

/* --- Steps / How It Works Section --- */
.service-steps {
  background: var(--surface-color);
  padding: 80px 0;
}

.service-step {
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
  transition: 0.3s ease-in-out;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.service-step:hover {
  transform: translateY(-8px);
}

.service-step i {
  font-size: 40px;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.service-step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.service-step p {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/* --- Benefits / Features Section --- */
.service-benefits {
  background: #f6fafd;
  padding: 100px 0;
}

.service-benefit {
  text-align: center;
  background: var(--surface-color);
  border-radius: 10px;
  padding: 40px 25px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.service-benefit:hover {
  transform: translateY(-10px);
}

.service-benefit i {
  font-size: 36px;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.service-benefit h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.service-benefit p {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/* --- Testimonials --- */
.service-testimonials {
  background: #fffaf9;
  padding: 80px 0;
  text-align: center;
}

.service-testimonials blockquote {
  font-style: italic;
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 20px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.service-testimonials .author {
  font-weight: 600;
  color: var(--heading-color);
}

/* --- Call To Action --- */
.service-cta {
  background: var(--accent-color);
  color: var(--contrast-color);
  text-align: center;
  padding: 80px 20px;
}

.service-cta h2 {
  font-size: 36px;
  font-weight: 700;
}

.service-cta p {
  margin-top: 15px;
  font-size: 18px;
  opacity: 0.9;
}

.service-cta .btn-light {
  background: #fff;
  color: var(--accent-color);
  padding: 14px 40px;
  border-radius: 50px;
  margin-top: 30px;
  transition: 0.3s;
  font-weight: 600;
}

.service-cta .btn-light:hover {
  background: color-mix(in srgb, #fff, var(--accent-color) 10%);
}

/* =========================================
   Service Page - Enhanced FAQ Section
   ========================================= */

.service-section-faq {
  background-color: #f9fafc;
  padding: 80px 0;
}

.service-section-faq .section-title h2 {
  color: var(--heading-color, #1a1a1a);
  text-align: center;
  font-weight: 700;
  margin-bottom: 2rem;
  font-size: 2rem;
  position: relative;
}

.service-section-faq .section-title h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary-color, #007bff);
  margin: 10px auto 0;
  border-radius: 2px;
}

.service-section-faq .faq-container {
  max-width: 850px;
  margin: 0 auto;
}

.service-section-faq .faq-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.service-section-faq .faq-item:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.service-section-faq .faq-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color, #222);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-section-faq .faq-item .faq-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.service-section-faq .faq-item .faq-content p {
  margin: 12px 0 0;
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}

.service-section-faq .faq-item i.faq-toggle {
  font-size: 1.2rem;
  color: var(--primary-color, #007bff);
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.service-section-faq .faq-item.faq-active {
  background-color: #f1f6ff;
  box-shadow: 0 4px 18px rgba(0, 123, 255, 0.1);
}

.service-section-faq .faq-item.faq-active h3 {
  color: var(--primary-color, #007bff);
}

.service-section-faq .faq-item.faq-active .faq-content {
  max-height: 300px;
  opacity: 1;
}

.service-section-faq .faq-item.faq-active i.faq-toggle {
  transform: rotate(90deg);
}

/* Home Vastu specific helpers (namespaced) */
/* =========================================================
   Hero override for Home page
   Use a specific selector to beat generic rules without !important
   ========================================================= */

/* Ensure you apply class on the section: <section class="service-hero home-hero"> */
section.service-hero.home-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0;            /* adjust vertical spacing */
  min-height: 60vh;           /* controls hero height */
  display: flex;
  align-items: center;
  
  z-index: 1;
}

/* Dark translucent overlay for text legibility (keeps HTML clean) */
section.service-hero.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff7f5 0%, #ffe5e0 100%);
  z-index: 1;
}

/* content container lives above overlay */
section.service-hero.home-hero .container {
  position: relative;
  z-index: 2;
  color: var(--default-color);
}

/* tidy up headings and paragraph inside hero specifically */
section.service-hero.home-hero h1 {
  color: var(--heading-color);
  margin: 0 0 16px 0;
}

section.service-hero.home-hero p {
  color: var(--default-color);
  margin: 0 0 16px 0;
}

/* Avoid showing list bullets inside hero: be surgical to avoid global overrides */
section.service-hero.home-hero ul,
section.service-hero.home-hero .hero-list,
section.service-hero.home-hero .list-inline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;              /* optional: show items inline */
  gap: 12px;
  flex-wrap: wrap;
}

/* If you want stacked list without bullets (vertical) */
section.service-hero.home-hero .hero-list-vertical {
  display: block;
}

/* Hero buttons */
section.service-hero.home-hero .service-btn {
  color: var(--contrast-color);
  background: var(--accent-color);
  padding: 12px 26px;
  border-radius: 8px;
  display: inline-block;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

section.service-hero.home-hero .service-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.14);
}

/* Defensive: in case a generic rule still shows bullets, add a higher-specificity reset */
html body section.service-hero.home-hero ul li {
  list-style: none;
}


.home-hero .lead {
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}
.home-benefits .service-benefit i {
  font-size: 32px;
  color: var(--accent-color);
}
.home-cta {
  padding: 60px 0;
  background: color-mix(in srgb, var(--background-color), transparent 80%);
}

/* Optional case-study layout */
.service-case-study ul {
  list-style: disc;
  margin-left: 1.25rem;
}

/* Keep accordions consistent with service-section-faq (no !important used) */
.home-hero img {
  max-width: 100%;
  height: auto;
}

/* ------------------------------
   Hero List (for Home Vastu hero)
   ------------------------------ */
section.service-hero.home-hero .hero-list {
  list-style: none;                /* remove bullets */
  margin: 20px 0 25px 0;
  padding: 0;
}

section.service-hero.home-hero .hero-list li {
  position: relative;
  padding-left: 28px;              /* space for custom check icon */
  margin-bottom: 10px;
  color: var(--default-color);
  font-size: 1rem;
  line-height: 1.6;
}

/* small circular icon before each list item */
section.service-hero.home-hero .hero-list li::before {
  content: "✔";                    /* Unicode checkmark */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* =========================================
   Generic Hero List for all Service Pages
   ========================================= */
section.service-hero .hero-list {
  list-style: none;
  margin: 20px 0 25px 0;
  padding: 0;
}

section.service-hero .hero-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--default-color);
  font-size: 1rem;
  line-height: 1.6;
}

/* checkmark or accent bullet */
section.service-hero .hero-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1.6;
}


/* =========================================
   Numerology Calculator Specific Styles
   ========================================= */
.numerology-calculator .calculator-box {
  background: var(--surface-color, #fff);
  border: 1px solid #eee;
  max-width: 700px;
}
.numerology-calculator h4 {
  color: var(--accent-color);
}
.numerology-calculator input, .numerology-calculator button {
  border-radius: 8px;
}
.numerology-calculator .summary-text {
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
}

/* responsive adjustment for mobile */
@media (max-width: 768px) {
  section.service-hero.home-hero .hero-list li {
    font-size: 0.95rem;
  }
}
