/* Service Details Page Styles (refactored) */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Base */

.page { 
  display:block; 
}


/* 面包屑 */
.page-breadcrumbs {
  padding: 8px 16px 8px;   /* 和 hero 一样的左右 16px，对齐 */
  font-size: 14px;
}
.breadcrumbs-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
/* 链接样式 */
.breadcrumbs-inner a {
  color: var(--brand-red);         /* 用你现在的主题红 */
  text-decoration: none;
  font-weight: 600;
}
.breadcrumbs-inner a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* 分隔符 › */
.crumb-separator {
  color: var(--muted);
  padding: 0 2px;
  margin:0 10px;
}
/* 当前页 */
.breadcrumbs-inner .current {
  color: var(--ink);
  font-weight: 600;
}




/* CTA */
.cta-btn {
  display:inline-block;
  background: var(--brand-red);
  text-decoration:none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 16px rgba(187,6,6,.25);
}
.cta-btn:hover { transform: translateY(-1px); }
.cta-btn:active { transform: translateY(0); }

/* Hero */
.hero { 
  background: linear-gradient(135deg, #082055, #1b2f74);
  background: var(--brand-blue);
  border-bottom: 1px solid var(--line); 
  margin-left: 0;          /* 取消 homepage.css 里留下的全宽负位移 */
  width: auto;            /* 恢复正常布局宽度（由 .container 控制） */
  padding: 0;
  color: #ffffff; 
}

.hero .container {
  display:grid; 
  grid-template-columns: 1.05fr .95fr; 
  gap: 28px; 
  align-items:center;
  padding: 36px 0;
}
.hero h1 { 
  font-size: 40px; 
  line-height:1.15; 
  margin-bottom: 12px; 
  color:#ffffff;
}
.lead { 
  color: var(--bg); 
  font-size: 18px; 
  margin-bottom: 18px; 
}
.hero .img-slot { 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: var(--shadow); 
}

/* Image slots */
.img-slot {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e9eef3, #dfe6ee);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.img-slot.small { aspect-ratio: 4 / 3; }
.img-slot img {
  width:100%; height:100%; object-fit: cover; display:block;
}

/* Sections */
.section { 
  padding: 56px 0; 
}
.section .container {
  width: 80%;
}

.section h2 { 
  font-size: 30px; 
  line-height:1.2; 
  margin-bottom: 14px; 
  color: var(--brand-red); 
}

.section p { 
  color: var(--ink);  
}

/* Steps */
.section-steps {
  background:#ffffff;
}

.section-steps .steps-grid {
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
/* 让每个 step 卡片内部采用上下分布结构 */
.step {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.step .step-num {
  width: 38px; 
  height: 38px; 
  border-radius: 10px;
  background: var(--brand-red); 
  color:#fff; 
  display:grid; 
  place-items:center;
  font-weight: 800; 
  margin-bottom: 10px;
}
.step h3 {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 18px; 
  margin-bottom: 6px; 
}
.step p { color: var(--muted); font-size: 15px; }
.step .img-slot { margin-top: auto; }

/* CTA row under steps */
.cta-row { margin-top: 22px; }


/* ================================
   WHY WATER DAMAGE MATTERS
   Two-column layout (Rainbow-like, but neutral naming)
================================ */
.section.why-matters {
  background:#f6f7f9;
}

.why-matters-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  margin-top: 20px;
}

.why-matters-text h2 {
  font-size: 34px;
  font-weight: 900;
  color: var(--brand-red);
  margin-bottom: 20px;
}

.why-matters-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}

.why-matters-item h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.why-matters-item p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.55;
}

.why-matters-media .img-slot {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 1024px) {
  .why-matters-wrapper {
    grid-template-columns: 1fr;
  }
  .why-matters-media {
    max-width: 520px;
    margin: 0 auto;
  }
}

.why-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 video */
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.why-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}



/* FAQs */
.section-faq {
  background:#ffffff;
}

.section-faq .faq-list {
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  box-shadow: var(--shadow);
}
.faq > summary {
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  padding: 16px 8px;
  font-weight: 700;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq[open] > summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 12px 8px 16px; color: var(--muted); }

/* Bottom CTA */
.section-cta {
  background:#f6f7f9;
}

.section-cta .cta-slab {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}

.section-cta h2 { margin-bottom: 6px; }
.section-cta p { color: var(--ink); margin-bottom: 12px; }



/* Responsive */
@media (max-width: 1024px) {
  :root { --container: 88%; }
  .hero .container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section-steps .steps-grid { grid-template-columns: 1fr; }
  .section-why .why-grid { grid-template-columns: 1fr; }
}
