/* ============ HOME PAGE SECTIONS ============
   Ported from the Angular hero/how-we-help/search-section/featured-cases/
   case-card/stats/testimonials/cta/report-form/resources-faq/newsletter
   components. */

/* ---------- Hero ---------- */
.hero{
  position:relative; min-height:100vh; display:flex; align-items:center;
  padding-top:120px; overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0; z-index:0;
  background-image:
    linear-gradient(180deg, rgba(15,17,21,0.55) 0%, rgba(15,17,21,0.75) 55%, var(--bg-950) 100%),
    linear-gradient(90deg, rgba(15,17,21,0.92) 5%, rgba(15,17,21,0.35) 55%),
    url('https://images.unsplash.com/photo-1517816428104-797678c7cf0c?q=80&w=1740&auto=format&fit=crop');
  background-size:cover; background-position:center;
  animation:heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom{ from{ transform:scale(1); } to{ transform:scale(1.06); } }
.hero-particles{ position:absolute; inset:0; z-index:1; pointer-events:none; }
.particle{
  position:absolute; width:4px; height:4px; border-radius:50%;
  background:var(--red-500); opacity:.55; filter:blur(0.5px);
  animation:floatUp linear infinite;
}
@keyframes floatUp{
  0%{ transform:translateY(0) translateX(0); opacity:0; }
  10%{ opacity:.6; }
  90%{ opacity:.3; }
  100%{ transform:translateY(-90vh) translateX(20px); opacity:0; }
}
.hero-content{ position:relative; z-index:2; max-width:760px; }
.hero-content h1{ font-size:clamp(40px,6.2vw,72px); line-height:1.05; margin-bottom:24px; }
.hero-content h1 .accent{ color:var(--red-500); }
.hero-content p{ font-size:19px; color:var(--gray-200); max-width:560px; margin-bottom:40px; }
.hero-ctas{ display:flex; gap:18px; flex-wrap:wrap; margin-bottom:56px; }
.hero-stats{ display:flex; gap:44px; flex-wrap:wrap; }
.hero-stat b{ display:block; font-family:'Manrope'; font-weight:800; font-size:28px; }
.hero-stat span{ font-size:13px; color:var(--gray-400); text-transform:uppercase; letter-spacing:.08em; }
.hero-beacon{ position:absolute; right:8%; bottom:14%; z-index:1; display:none; }
@media(min-width:1100px){ .hero-beacon{ display:block; } }
.beacon-ring{ position:absolute; border:1px solid rgba(229,57,53,0.5); border-radius:50%; }
.scroll-cue{
  position:absolute; bottom:36px; left:50%; transform:translateX(-50%); z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:8px; color:var(--gray-400); font-size:12px;
  letter-spacing:.1em; text-transform:uppercase;
}
.scroll-cue .line{
  width:1px; height:36px; background:linear-gradient(var(--gray-400), transparent);
  animation:scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine{
  0%{ transform:scaleY(0); transform-origin:top; }
  50%{ transform:scaleY(1); transform-origin:top; }
  51%{ transform-origin:bottom; }
  100%{ transform:scaleY(0); transform-origin:bottom; }
}
.signal-divider{ height:64px; position:relative; overflow:hidden; }
.signal-divider svg{ width:100%; height:100%; display:block; }

/* ---------- How we help ---------- */
.grid-6{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media(max-width:900px){ .grid-6{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:600px){ .grid-6{ grid-template-columns:1fr; } }
.feature-card{
  background:var(--surface-800); border:1px solid var(--border-muted); border-radius:var(--radius-lg);
  padding:32px 28px; transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-card-hover); border-color:rgba(229,57,53,0.4); }
.feature-icon{
  width:52px; height:52px; border-radius:14px; background:rgba(229,57,53,0.12);
  display:flex; align-items:center; justify-content:center; margin-bottom:20px; color:var(--red-500);
}
.feature-card h3{ font-size:20px; margin-bottom:10px; }
.feature-card p{ font-size:15px; color:var(--gray-400); margin:0; }

/* ---------- Search section ---------- */
.search-panel{
  background:var(--surface-800); border:1px solid var(--border-muted); border-radius:var(--radius-lg);
  padding:36px; box-shadow:var(--shadow-card);
}
.search-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:18px; margin-bottom:22px; }
@media(max-width:1000px){ .search-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px){ .search-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:8px; }
.field label{ font-size:13px; font-weight:600; color:var(--gray-400); }
.field input, .field select{
  height:50px; border-radius:12px; border:1px solid var(--border-muted); background:var(--bg-900);
  color:var(--white-soft); padding:0 16px; font-size:15px; transition:border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus{ border-color:var(--red-500); box-shadow:0 0 0 3px rgba(229,57,53,0.15); outline:none; }
.search-actions{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; }
.link-toggle{ font-size:14px; color:var(--gray-400); border-bottom:1px dashed var(--gray-600); background:none; border-top:none; border-left:none; border-right:none; padding:0; }
.link-toggle:hover{ color:var(--red-500); border-color:var(--red-500); }
.advanced-filters{ max-height:0; overflow:hidden; transition:max-height .4s var(--ease), margin .4s var(--ease); }
.advanced-filters.open{ max-height:260px; margin-top:22px; }
.chip-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.chip{
  padding:8px 16px; border-radius:999px; border:1px solid var(--border-muted); font-size:13px; color:var(--gray-300);
  background:var(--bg-900); transition:all .2s;
}
.chip.active, .chip:hover{ border-color:var(--red-500); color:var(--red-500); }

/* ---------- Featured cases ---------- */
.case-toolbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:28px; flex-wrap:wrap; gap:16px; }
.tabs{ display:flex; gap:6px; background:var(--surface-800); padding:6px; border-radius:12px; border:1px solid var(--border-muted); }
.tab{ padding:10px 18px; font-size:14px; font-weight:600; border-radius:8px; color:var(--gray-400); background:none; border:none; }
.tab.active{ background:var(--red-500); color:#fff; }

.case-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:26px; }
@media(max-width:1180px){ .case-grid{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:820px){ .case-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:520px){ .case-grid{ grid-template-columns:1fr; } }

.empty-state{ text-align:center; padding:70px 20px; border:1px dashed var(--border-muted); border-radius:var(--radius-lg); }
.empty-state svg{ margin:0 auto 20px; }
.empty-state h3{ font-size:20px; margin-bottom:8px; }
.empty-state p{ color:var(--gray-400); font-size:15px; margin:0 0 20px; }
.empty-state .btn{ margin:0 auto; }

.case-card{
  background:var(--surface-800); border:1px solid var(--border-muted); border-radius:var(--radius-lg);
  overflow:hidden; transition:transform .35s var(--ease), box-shadow .35s var(--ease); height:100%;
}
.case-card:hover{ transform:translateY(-8px); box-shadow:var(--shadow-card-hover); }
.case-media{ position:relative; aspect-ratio:4/5; overflow:hidden; }
.case-media img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.case-card:hover .case-media img{ transform:scale(1.08); }
.status-badge{
  position:absolute; top:14px; left:14px; padding:6px 12px; border-radius:999px; font-size:12px; font-weight:700;
  display:flex; align-items:center; gap:6px; backdrop-filter:blur(6px);
}
.status-badge .dot{ width:7px; height:7px; border-radius:50%; }
.status-active{ background:rgba(34,197,94,0.16); color:var(--green-500); }
.status-active .dot{ background:var(--green-500); animation:blipPulse 1.8s infinite; }
.status-found{ background:rgba(74,144,226,0.16); color:var(--blue-500); }
.status-found .dot{ background:var(--blue-500); }
.type-badge{
  position:absolute; top:14px; right:14px; padding:6px 12px; border-radius:999px; font-size:12px; font-weight:700;
  background:rgba(229,57,53,0.16); color:var(--red-500); backdrop-filter:blur(6px);
}
@keyframes blipPulse{
  0%{ box-shadow:0 0 0 0 rgba(34,197,94,0.5); }
  70%{ box-shadow:0 0 0 8px rgba(34,197,94,0); }
  100%{ box-shadow:0 0 0 0 rgba(34,197,94,0); }
}
.case-body{ padding:22px; }
.case-body h3{ font-size:20px; margin-bottom:4px; }
.case-meta{ font-size:13px; color:var(--gray-400); margin-bottom:14px; }
.case-detail-row{ display:flex; justify-content:space-between; font-size:13px; color:var(--gray-400); padding:8px 0; border-top:1px solid var(--border-muted); }
.case-detail-row b{ color:var(--gray-200); font-weight:600; }
.case-cta{ margin-top:16px; width:100%; }

.pagination{ display:flex; justify-content:center; align-items:center; gap:8px; margin-top:48px; }
.page-btn{
  width:42px; height:42px; border-radius:10px; border:1px solid var(--border-muted); background:var(--surface-800);
  color:var(--gray-300); font-size:14px; font-weight:600;
}
.page-btn.active{ background:var(--red-500); border-color:var(--red-500); color:#fff; }
.page-btn:hover:not(.active){ border-color:var(--red-500); color:var(--red-500); }

/* ---------- Stats ---------- */
.stats-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:20px; }
@media(max-width:980px){ .stats-grid{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:600px){ .stats-grid{ grid-template-columns:repeat(2,1fr); } }
.stat-card{
  background:linear-gradient(160deg, var(--surface-800), var(--bg-900));
  border:1px solid var(--border-muted); border-radius:var(--radius-lg); padding:28px 22px; text-align:center;
}
.stat-card .icon{ color:var(--red-500); margin-bottom:14px; }
.stat-card .num{ font-family:'Manrope'; font-weight:800; font-size:38px; }
.stat-card .label{ font-size:13px; color:var(--gray-400); margin-top:6px; }

/* ---------- Testimonials ---------- */
.testimonial-track{ display:flex; gap:26px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:16px; }
.testimonial-track::-webkit-scrollbar{ height:6px; }
.testimonial-track::-webkit-scrollbar-thumb{ background:var(--border-muted); border-radius:10px; }
.t-card{
  min-width:380px; scroll-snap-align:start; background:var(--surface-800); border:1px solid var(--border-muted);
  border-radius:var(--radius-lg); padding:30px; display:flex; flex-direction:column; gap:18px;
}
@media(max-width:500px){ .t-card{ min-width:88vw; } }
.t-quote{ font-size:16px; color:var(--gray-200); font-style:italic; margin:0; }
.t-person{ display:flex; align-items:center; gap:14px; }
.t-person img{ width:48px; height:48px; border-radius:50%; object-fit:cover; }
.t-person b{ font-size:15px; display:block; }
.t-person span{ font-size:13px; color:var(--gray-400); }
.carousel-dots{ display:flex; gap:8px; justify-content:center; margin-top:26px; }
.carousel-dots button{ width:8px; height:8px; border-radius:50%; background:var(--border-muted); border:none; padding:0; }
.carousel-dots button.active{ background:var(--red-500); width:22px; border-radius:6px; transition:all .3s var(--ease); }

/* ---------- CTA ---------- */
.cta-section{
  position:relative; border-radius:28px; overflow:hidden; margin:0 auto; max-width:1360px;
  background-image: linear-gradient(120deg, rgba(15,17,21,0.9), rgba(208,40,31,0.55)), url('https://images.unsplash.com/photo-1500462918059-b1a0cb512f1d?q=80&w=1740&auto=format&fit=crop');
  background-size:cover; background-position:center;
  padding:90px 60px; text-align:center;
}
@media(max-width:700px){ .cta-section{ padding:60px 24px; border-radius:20px; } }
.cta-section h2{ font-size:clamp(30px,4.2vw,44px); margin-bottom:18px; }
.cta-section p{ color:var(--gray-200); max-width:560px; margin:0 auto 36px; font-size:17px; }
.cta-btns{ display:flex; gap:16px; justify-content:center; align-items:center; flex-wrap:wrap; }

/* ---------- Report form ---------- */
.type-toggle{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:28px; }
.type-btn{
  flex:1; min-width:220px; padding:16px 18px; border-radius:14px; border:1.5px solid var(--border-muted);
  background:var(--surface-800); color:var(--gray-300); font-size:14px; font-weight:600; text-align:left;
  transition:border-color .2s, color .2s, background .2s;
}
.type-btn:hover{ border-color:var(--red-500); color:var(--white-soft); }
.type-btn.active{ border-color:var(--red-500); background:rgba(229,57,53,0.1); color:var(--white-soft); }

.stepper{ margin-bottom:36px; }
.progress-track{ height:4px; background:var(--border-muted); border-radius:99px; overflow:hidden; margin-bottom:22px; }
.progress-fill{ height:100%; background:var(--red-500); border-radius:99px; transition:width .4s var(--ease); }
.step-labels{ display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.step-pill{
  display:flex; align-items:center; gap:8px; background:none; border:none; color:var(--gray-600);
  font-size:13px; font-weight:600; padding:6px 4px; cursor:not-allowed; opacity:.55;
}
.step-pill.reachable{ cursor:pointer; opacity:1; color:var(--gray-400); }
.step-pill.active{ color:var(--white-soft); }
.step-pill.done{ color:var(--green-500); }
.step-num{
  width:22px; height:22px; border-radius:50%; border:1.5px solid currentColor; display:flex; align-items:center;
  justify-content:center; font-size:12px; flex-shrink:0;
}
.step-pill.active .step-num{ background:var(--red-500); border-color:var(--red-500); color:#fff; }
.step-label{ display:none; }
@media(min-width:820px){ .step-label{ display:inline; } }

.report-card{
  background:var(--surface-800); border:1px solid var(--border-muted); border-radius:var(--radius-lg);
  padding:40px; box-shadow:var(--shadow-card);
}
@media(max-width:600px){ .report-card{ padding:24px; } }
.step-fieldset{ border:none; padding:0; margin:0; }
.step-legend{ font-family:'Manrope'; font-weight:800; font-size:22px; margin-bottom:6px; padding:0; }
.report-step{ display:none; }
.report-step.active-step{ display:block; }
.hint{ color:var(--gray-400); font-size:14px; margin-bottom:24px; }
.optional{ color:var(--gray-600); font-weight:500; font-size:14px; }

.field-grid{ display:grid; gap:18px; margin-bottom:18px; }
.field-grid.two{ grid-template-columns:repeat(2,1fr); }
.field-grid.three{ grid-template-columns:repeat(3,1fr); }
@media(max-width:640px){ .field-grid.two, .field-grid.three{ grid-template-columns:1fr; } }

.report-card .field{ display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.report-card .field label{ font-size:13px; font-weight:600; color:var(--gray-400); }
.req{ color:var(--red-500); }
.report-card .field input, .report-card .field select, .report-card .field textarea{
  height:50px; border-radius:12px; border:1px solid var(--border-muted); background:var(--bg-900);
  color:var(--white-soft); padding:0 16px; font-size:15px; font-family:inherit; transition:border-color .2s, box-shadow .2s;
}
.report-card .field textarea{ height:auto; padding:14px 16px; resize:vertical; min-height:110px; line-height:1.5; }
.report-card .field input:focus, .report-card .field select:focus, .report-card .field textarea:focus{
  border-color:var(--red-500); box-shadow:0 0 0 3px rgba(229,57,53,0.15); outline:none;
}
.report-card .field input.invalid, .report-card .field select.invalid, .report-card .field textarea.invalid{ border-color:var(--red-500); }
.field-note{ font-size:12px; color:var(--gray-600); }
.error{ color:var(--red-500); font-size:13px; }
.counter-row{ display:flex; justify-content:space-between; align-items:center; }
.char-count{ font-size:12px; color:var(--gray-600); }

.upload-box{
  border:1.5px dashed var(--border-muted); border-radius:var(--radius-md); padding:24px; text-align:center;
  transition:border-color .2s;
}
.upload-box.has-file{ border-style:solid; padding:16px; text-align:left; }
.upload-cta{ display:flex; flex-direction:column; align-items:center; gap:10px; color:var(--gray-400); font-size:14px; cursor:pointer; }
.upload-cta svg{ color:var(--red-500); }
.upload-preview{
  display:block; width:100%; max-height:320px; object-fit:contain; object-position:center;
  background:var(--bg-900); border:1px solid var(--border-muted); border-radius:12px; margin-bottom:12px;
}
.upload-file-row{ display:flex; justify-content:space-between; align-items:center; font-size:14px; color:var(--gray-300); }

.feature-row{ display:flex; gap:14px; align-items:flex-start; padding:18px; background:var(--bg-900); border-radius:12px; margin-bottom:14px; }
.remove-feature{
  width:36px; height:36px; border-radius:10px; border:1px solid var(--border-muted); background:transparent;
  color:var(--gray-400); display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:26px;
}
.remove-feature:hover{ border-color:var(--red-500); color:var(--red-500); }
.empty-inline{ color:var(--gray-600); font-size:14px; padding:18px 0; }

.checkbox-row{ display:flex; align-items:flex-start; gap:12px; font-size:14px; color:var(--gray-300); margin-bottom:6px; cursor:pointer; }
.checkbox-row input{ width:18px; height:18px; margin-top:2px; accent-color:var(--red-500); flex-shrink:0; }

.review-block{ padding:20px 0; border-bottom:1px solid var(--border-muted); }
.review-block:last-of-type{ border-bottom:none; }
.review-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.review-head h4{ font-size:16px; }
.review-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
@media(max-width:640px){ .review-grid{ grid-template-columns:repeat(2,1fr); } }
.review-grid span{ font-size:12px; color:var(--gray-600); text-transform:uppercase; letter-spacing:.05em; display:block; margin-bottom:2px; }
.review-grid b{ font-size:14px; color:var(--gray-200); font-weight:600; }
.review-text{ margin-top:14px; font-size:14px; color:var(--gray-400); line-height:1.6; }
.review-list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; font-size:14px; color:var(--gray-300); }
.submit-error{ margin-top:20px; padding:14px 18px; background:rgba(229,57,53,0.1); border:1px solid rgba(229,57,53,0.35); border-radius:12px; color:#ff8a80; font-size:14px; }

.step-nav{ display:flex; justify-content:space-between; align-items:center; margin-top:36px; padding-top:28px; border-top:1px solid var(--border-muted); }
.spinner{
  width:14px; height:14px; border-radius:50%; border:2px solid rgba(255,255,255,0.4); border-top-color:#fff;
  display:inline-block; animation:spin .7s linear infinite; margin-right:4px;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

.success-card{
  background:var(--surface-800); border:1px solid var(--border-muted); border-radius:var(--radius-lg);
  padding:70px 40px; text-align:center;
}
.success-icon{
  width:72px; height:72px; border-radius:50%; background:rgba(34,197,94,0.12); display:flex; align-items:center;
  justify-content:center; margin:0 auto 24px;
}
.success-card h3{ font-size:26px; margin-bottom:8px; }
.success-card p{ color:var(--gray-400); margin:0 0 8px; }
.reference-number{
  font-family:'Manrope'; font-weight:800; font-size:30px; letter-spacing:.04em; color:var(--red-500); margin:6px 0 22px;
}
.success-note{ max-width:440px; margin:0 auto 30px; font-size:14px; }

/* ---------- Resources FAQ ---------- */
.accordion-item{ border-bottom:1px solid var(--border-muted); }
.accordion-head{
  width:100%; background:none; border:none; color:#fff; text-align:left; padding:22px 4px;
  display:flex; justify-content:space-between; align-items:center; font-size:17px; font-weight:600;
}
.accordion-head .plus{ transition:transform .3s var(--ease); color:var(--red-500); font-size:20px; }
.accordion-item.open .plus{ transform:rotate(45deg); }
.accordion-panel{ overflow:hidden; transition:max-height .35s var(--ease); max-height:0; }
.accordion-panel p{ padding:0 4px 22px; color:var(--gray-400); font-size:15px; margin:0; }

/* ---------- Newsletter ---------- */
.newsletter{ text-align:center; max-width:560px; margin:0 auto; }
.newsletter h2{ font-size:30px; margin-bottom:12px; }
.newsletter p{ color:var(--gray-400); margin-bottom:30px; }
.newsletter-form{ display:flex; gap:12px; }
@media(max-width:520px){ .newsletter-form{ flex-direction:column; } }
.newsletter-form input{
  flex:1; height:54px; border-radius:14px; border:1px solid var(--border-muted); background:var(--surface-800);
  color:#fff; padding:0 20px; font-size:15px;
}
.newsletter-form input:focus{ outline:none; border-color:var(--red-500); box-shadow:0 0 0 3px rgba(229,57,53,0.15); }
.privacy-note{ font-size:12px; color:var(--gray-600); margin-top:14px; }
.newsletter-message{ font-size:14px; margin:16px 0 0; }
.newsletter-message.success{ color:var(--green-500); }
.newsletter-message.error{ color:var(--red-500); }

/* ---------- Case details page ---------- */
.case-details-card{
  background:var(--surface-800); border:1px solid var(--border-muted); border-radius:var(--radius-lg);
  overflow:hidden; margin-bottom:60px;
}
.case-details-hero{ position:relative; height:380px; background:var(--bg-900); }
.case-details-hero img{ width:100%; height:100%; object-fit:contain; }
.case-details-hero-placeholder{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:var(--gray-400); font-size:14px; }
@media(max-width:640px){ .case-details-hero{ height:280px; } }

.case-details-body{ padding:36px; }
@media(max-width:640px){ .case-details-body{ padding:24px; } }
.case-details-body h1{ font-size:30px; margin-bottom:8px; }
.case-details-meta{ color:var(--gray-400); font-size:14px; margin:0 0 24px; }

.case-details-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:28px; }
@media(max-width:640px){ .case-details-grid{ grid-template-columns:repeat(2,1fr); } }
.case-details-grid div{ background:var(--bg-900); border-radius:12px; padding:14px 16px; }
.case-details-grid span{ font-size:12px; color:var(--gray-400); display:block; margin-bottom:4px; text-transform:uppercase; letter-spacing:.06em; }
.case-details-grid b{ font-size:15px; }

.case-details-description{ color:var(--gray-200); font-size:15px; line-height:1.7; margin-bottom:28px; white-space:pre-line; }

.case-details-features{ margin-bottom:28px; }
.case-details-features h2{ font-size:18px; margin-bottom:14px; }
.case-details-features ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.case-details-features li{ background:var(--bg-900); border-radius:10px; padding:12px 14px; font-size:14px; color:var(--gray-300); }
.case-details-features li b{ color:var(--gray-200); }
