/* ============================================================
   Vaastu Building Services — pages/index.css
   Styles unique to the home page (index.html): hero carousel,
   stats bar, services, about, why-us, testimonials, process,
   FAQ, CTA banner, and their responsive rules.
   Loaded after base.css.
   ============================================================ */

/* ---------- ACTIVE NAV HIGHLIGHT (page-level; see note in base.css) ---------- */
.nav-links a.active { color: var(--primary); background: var(--light-bg); }

/* ---------- HERO CAROUSEL ---------- */
.hero { position: relative; height: 620px; overflow: hidden; }
.carousel { width: 100%; height: 100%; position: relative; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity 0.8s ease; pointer-events: none; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,30,60,0.80) 0%, rgba(10,30,60,0.45) 60%, transparent 100%); }
.slide-content { position: relative; z-index: 2; max-width: 1200px; margin: auto; padding: 0 24px; width: 100%; }
.slide-tag { display: inline-block; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 6px 14px; border-radius: 4px; margin-bottom: 18px; font-family: 'Montserrat', sans-serif; }
.slide h1, .slide h2 { font-size: 48px; font-weight: 800; color: var(--white); line-height: 1.15; max-width: 600px; margin-bottom: 20px; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.slide p { font-size: 17px; color: rgba(255,255,255,0.88); max-width: 500px; margin-bottom: 32px; line-height: 1.7; }
.slide-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.carousel-arrows { position: absolute; bottom: 36px; right: 24px; z-index: 10; display: flex; gap: 10px; }
.arrow-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.18); border: 2px solid rgba(255,255,255,0.5); color: var(--white); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.arrow-btn:hover { background: var(--accent); border-color: var(--accent); }
.carousel-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; border: none; }
.dot.active { background: var(--accent); width: 28px; border-radius: 5px; }

/* ---------- STATS BAR ---------- */
.stats-bar { background: var(--primary); }
.stats-inner { max-width: 1200px; margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 28px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,0.12); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Montserrat', sans-serif; font-size: 36px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 6px; }

/* ---------- SERVICES ---------- */
.services-bg { background: var(--light-bg); }
.services-header { text-align: center; margin-bottom: 52px; }
.services-header .section-desc { margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: all 0.3s; cursor: pointer; border: 2px solid transparent; }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--accent); }
.service-img { height: 200px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.service-img-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,30,60,0.65) 100%); }
.service-badge { position: absolute; top: 16px; left: 16px; background: var(--accent); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 12px; border-radius: 4px; font-family: 'Montserrat', sans-serif; }
.service-icon-wrap { position: absolute; bottom: 16px; right: 16px; width: 44px; height: 44px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.service-icon-wrap svg { width: 22px; height: 22px; fill: var(--primary); }
.service-body { padding: 24px; }
.service-body h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.service-body p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 18px; }
.service-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.service-price .price-from { font-size: 11px; color: var(--text-light); font-family: 'Montserrat', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.service-price .price-amount { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 800; color: var(--accent); line-height: 1; }
.service-price .price-note { font-size: 11px; color: var(--text-light); }
.service-link { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.service-card:hover .service-link { gap: 10px; }
.service-link svg { width: 16px; height: 16px; fill: var(--accent); transition: transform 0.2s; }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img-wrap { position: relative; }
.about-main-img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: url('../../images/abt-5.webp') center/cover; }
.about-badge-float { position: absolute; bottom: -20px; right: -20px; background: var(--primary); color: var(--white); border-radius: var(--radius-lg); padding: 24px; text-align: center; box-shadow: var(--shadow-md); }
.about-badge-float .num { font-family: 'Montserrat', sans-serif; font-size: 42px; font-weight: 800; color: var(--accent); line-height: 1; }
.about-badge-float .label { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 6px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; }
.about-feat { background: var(--light-bg); border-radius: var(--radius); padding: 20px; border-left: 4px solid var(--accent); }
.about-feat h3 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.about-feat p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ---------- WHY US ---------- */
.whyus { background: var(--primary); }
.whyus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.whyus-content .section-title { color: var(--white); }
.reasons-list { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.reason { display: flex; gap: 16px; align-items: flex-start; background: rgba(255,255,255,0.06); border-radius: var(--radius); padding: 18px 20px; border: 1px solid rgba(255,255,255,0.1); transition: all 0.2s; }
.reason:hover { background: rgba(255,255,255,0.10); border-color: var(--accent); }
.reason-num { font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: 800; color: var(--accent); line-height: 1; min-width: 32px; }
.reason-text h3 { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.reason-text p { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; }
.whyus-img-wrap { position: relative; }
.whyus-img { width: 100%; height: 500px; border-radius: var(--radius-lg); background: url('../../images/abt-2.webp') center/cover; box-shadow: var(--shadow-lg); }
.cert-badges { position: absolute; top: -20px; left: -20px; display: flex; flex-direction: column; gap: 12px; }
.cert-badge { background: var(--white); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px; }
.cert-badge .icon { width: 36px; height: 36px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cert-badge .icon svg { width: 20px; height: 20px; fill: var(--white); }
.cert-badge .text { font-size: 13px; font-weight: 700; color: var(--primary); }

/* ---------- TESTIMONIALS ---------- */
.testimonials-bg { background: var(--light-bg); }
.testimonials-header { text-align: center; margin-bottom: 52px; }
.testimonials-header .section-desc { margin: 0 auto; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-sm); position: relative; border-top: 4px solid var(--accent); transition: all 0.3s; }
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.quote-icon { position: absolute; top: -14px; right: 24px; width: 36px; height: 36px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.quote-icon svg { width: 18px; height: 18px; fill: var(--white); }
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.star { color: var(--accent); font-size: 16px; }
.testimonial-text { font-size: 14px; color: var(--text-mid); line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--light-gray); }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 700; color: var(--white); }
.author-name { font-weight: 700; font-size: 14px; color: var(--primary); }
.author-role { font-size: 12px; color: var(--text-light); }

/* ---------- PROCESS ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 52px; position: relative; }
.process-grid::before { content: ''; position: absolute; top: 36px; left: calc(12.5% + 12px); right: calc(12.5% + 12px); height: 2px; background: linear-gradient(90deg, var(--accent), var(--primary-light)); z-index: 0; }
.process-step { text-align: center; position: relative; z-index: 1; }
.step-num { width: 72px; height: 72px; margin: 0 auto 20px; background: var(--white); border: 3px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: 800; color: var(--primary); box-shadow: var(--shadow-md); }
.process-step h3 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.process-step p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--light-gray); border-radius: var(--radius); overflow: hidden; }
.faq-q { padding: 18px 20px; font-weight: 600; font-size: 15px; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--white); transition: background 0.2s; font-family: 'Montserrat', sans-serif; }
.faq-q:hover { background: var(--light-bg); }
.faq-q.open { background: var(--primary); color: var(--white); }
.faq-arrow { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.3s; }
.faq-q.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; font-size: 14px; color: var(--text-mid); line-height: 1.7; background: var(--white); padding: 0 20px; }
.faq-a.open { max-height: 200px; padding: 16px 20px; }
.faq-cta { background: var(--primary); border-radius: var(--radius-lg); padding: 40px 36px; color: var(--white); text-align: center; }
.faq-cta h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.faq-cta p { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 28px; }
.faq-cta .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  text-align: left;
}

.faq-cta .contact-item .icon-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.faq-cta .contact-item svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.faq-cta .contact-item span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  font-size: 14px;
  line-height: 1.5;
}

.faq-cta .contact-item strong {
  color: var(--white);
  display: block;
  margin-bottom: 1px;
  margin:0;
  padding:0;
  line-height:1.2;
}

.faq-cta .contact-item small {
  margin:0;
  padding:0;
  line-height:1.2;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
}

/* ---------- CTA BANNER ---------- */
.cta-banner { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%); padding: 72px 24px; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.cta-inner { position: relative; z-index: 1; max-width: 700px; margin: auto; }
.cta-banner h2 { font-size: 40px; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.cta-banner p { font-size: 17px; color: rgba(255,255,255,0.80); margin-bottom: 36px; line-height: 1.7; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-phone { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.3); border-radius: var(--radius); padding: 14px 24px; color: var(--white); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; transition: all 0.2s; }
.cta-phone:hover { background: rgba(255,255,255,0.20); }
.cta-phone svg { width: 20px; height: 20px; fill: var(--accent); }

/* ---------- SLIDE BACKGROUNDS ---------- */
.slide-1 .slide-bg { background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1400'); }
.slide-2 .slide-bg { background-image: url('../../images/image1.webp'); }
  /* .slide-2 .slide-bg { background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1400'); } */
.slide-3 .slide-bg {background-image: url(../../images/prepour2.jpg);}
/* .slide-3 .slide-bg { background-image: url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?w=1400'); } */
.slide-4 .slide-bg { background-image: url('https://images.unsplash.com/photo-1600607688969-a5bfcd646154?w=1400'); }

/* ---------- SERVICE CARD BACKGROUNDS ---------- */
.svc-purchase .service-img { background-image: url('../../images/vaastu.webp'); }
.svc-construction .service-img { background-image: url('../../images/prepour2.jpg'); }
.svc-struct-forensic .service-img { background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=600'); }
.svc-termite-new .service-img { background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=600'); }
.svc-engineering .service-img { background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=600'); }

/* ---------- RESPONSIVE (home-page sections) ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .whyus-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-badge-float { bottom: 16px; right: 16px; }
}
@media (max-width: 768px) {
  .slide h1, .slide h2 { font-size: 32px; }
  .slide p { font-size: 15px; }
  .hero { height: 520px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .faq-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NEW HOMEPAGE SECTIONS (SEO rewrite): intro/about, what's
   included, why-it-matters, costs, areas we service.
   ============================================================ */

/* ---------- INTRO / ABOUT ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.intro-copy .section-title { margin-bottom: 18px; }
.intro-copy p { font-size: 15px; color: var(--text-mid); line-height: 1.8; margin-bottom: 16px; }
.intro-img-wrap { position: relative; }
.intro-img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; }

/* ---------- WHAT'S INCLUDED ---------- */
.included-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.included-item { background: var(--white); border: 1px solid var(--light-gray); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 22px; }
.included-item h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.included-item p { font-size: 13.5px; color: var(--text-light); line-height: 1.65; }

/* ---------- WHY IT MATTERS ---------- */
.whymatters { background: var(--light-bg); }
.matters-copy { max-width: 820px; margin: 28px auto 0; }
.matters-copy p { font-size: 15px; color: var(--text-mid); line-height: 1.85; margin-bottom: 18px; }
.matters-copy a { color: var(--accent); font-weight: 600; }
.matters-copy a:hover { text-decoration: underline; }

/* ---------- COSTS ---------- */
.cost-table { max-width: 760px; margin: 0 auto; border: 1px solid var(--light-gray); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.cost-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--light-gray); font-size: 15px; color: var(--text-mid); }
.cost-row:last-child { border-bottom: none; }
.cost-row span:last-child { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--accent); white-space: nowrap; }
.cost-head { background: var(--primary); }
.cost-head span { color: var(--white) !important; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.cost-note { max-width: 760px; margin: 20px auto 0; font-size: 14px; color: var(--text-light); line-height: 1.7; }
.cost-note a { color: var(--accent); font-weight: 600; }
.cost-note a:hover { text-decoration: underline; }

/* ---------- AREAS WE SERVICE ---------- */
.areas-bg { background: var(--light-bg); }
.areas-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 820px; margin: 0 auto; }
.areas-list li { background: var(--white); border: 1px solid var(--light-gray); border-radius: var(--radius); padding: 14px 16px; text-align: center; font-size: 14px; font-weight: 600; color: var(--primary); font-family: 'Montserrat', sans-serif; }

/* ---------- RESPONSIVE (new sections) ---------- */
@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .included-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .included-grid { grid-template-columns: 1fr; }
  .areas-list { grid-template-columns: repeat(2, 1fr); }
  .cost-row { font-size: 14px; padding: 14px 16px; }
}
