/*
  ETECHTICS SOFTWARE SOLUTIONS — Homepage
  ------------------------------------------
  Styles specific to index.html only. Shared chrome (navbar, footer,
  base layout, buttons) lives in navbar.css / footer.css / base.css —
  nothing here duplicates or overrides those.

  Depends on css/tokens.css, css/base.css.
*/

/* ---------------------------------------------------------------
   Shared section rhythm + heading conventions
--------------------------------------------------------------- */
.hero,
.trust,
.services-overview,
.ai-highlight,
.framework-spotlight,
.engineering-spotlight,
.why-us,
.industries,
.models-teaser,
.staffing-spotlight,
.cta-band {
  padding-block: var(--space-6);
}

.section-head {
  max-width: 62ch;
  margin: 0 0 var(--space-4);
}
.section-head h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-1);
}
.section-lede {
  color: var(--color-muted);
  font-size: var(--font-size-md);
  margin: 0;
}
.section-footer-link {
  margin: var(--space-4) 0 0;
}
.section-footer-link a,
.text-link {
  font-weight: var(--font-weight-semibold);
  color: var(--color-blue-600);
}

/* ---------------------------------------------------------------
   1. Hero
--------------------------------------------------------------- */
/* ---------------------------------------------------------------
   1. Hero
   ------------------------------------------------------------
   Reworked into a full-bleed dark navy-gradient band for the Phase
   11 design-consistency pass, echoing the reference site's bold,
   dark, full-bleed hero (there, a photo with a dark overlay; here,
   the same navy/orange brand gradient used elsewhere on the page,
   since no licensed photograph is available to reproduce). Copy,
   links, and the existing abstract SVG graphic are unchanged — only
   colors/background/decoration changed.
--------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-navy);
  padding-block: var(--space-7);
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 150, 0, 0.14) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -100px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 123, 217, 0.16) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}
.hero__heading {
  color: #ffffff;
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
  max-width: 18ch;
}
.hero__subhead {
  font-size: var(--font-size-md);
  color: var(--color-footer-text);
  max-width: 52ch;
  margin-bottom: var(--space-4);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.hero__actions .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}
.hero__actions .btn-secondary:hover,
.hero__actions .btn-secondary:focus-visible {
  background: #ffffff;
  color: var(--color-navy);
  border-color: #ffffff;
}
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__graphic {
  width: 100%;
  max-width: 360px;
  height: auto;
}
.hg-card {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1.5;
}
.hg-card--back { fill: rgba(255, 255, 255, 0.05); }
.hg-card--mid { fill: rgba(255, 255, 255, 0.10); filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.20)); }
.hg-card--front { fill: #ffffff; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.30)); }
.hg-dot { fill: var(--color-orange); }
.hg-line { stroke: rgba(255, 255, 255, 0.35); stroke-width: 2; stroke-linecap: round; }
.hg-line--v { stroke: var(--color-orange); }
.hg-node { fill: none; stroke: #ffffff; stroke-width: 3; }
.hg-node--sm { stroke: var(--color-orange); }

/* ---------------------------------------------------------------
   2. Trust / capability positioning strip
--------------------------------------------------------------- */
.trust {
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.trust__intro {
  max-width: 58ch;
  margin: 0;
  color: var(--color-body-text);
}
.trust__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.trust__stack li {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  white-space: nowrap;
}

/* ---------------------------------------------------------------
   3. Core services grid
--------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
}
.service-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--accent-1);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.service-card::before {
  content: "";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 84px;
  height: 84px;
  background-image: radial-gradient(circle, rgba(16, 24, 40, 0.09) 1.3px, transparent 1.3px);
  background-size: 11px 11px;
  pointer-events: none;
}
.service-card:hover,
.service-card:focus-within {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.services-grid .service-card:nth-of-type(5n+1) { border-top-color: var(--accent-1); }
.services-grid .service-card:nth-of-type(5n+2) { border-top-color: var(--accent-2); }
.services-grid .service-card:nth-of-type(5n+3) { border-top-color: var(--accent-3); }
.services-grid .service-card:nth-of-type(5n+4) { border-top-color: var(--accent-4); }
.services-grid .service-card:nth-of-type(5n+5) { border-top-color: var(--accent-5); }
.service-card h3 {
  position: relative;
  font-size: var(--font-size-md);
  margin-bottom: var(--space-1);
}
.service-card h3 a {
  color: var(--color-navy);
}
.service-card h3 a:hover,
.service-card h3 a:focus-visible {
  text-decoration: underline;
}
.service-card p {
  position: relative;
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* ---------------------------------------------------------------
   4. AI & Data Innovation highlight
--------------------------------------------------------------- */
.ai-highlight {
  background: var(--color-surface-alt);
  border-block: 1px solid var(--color-border);
}
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.cluster-card {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--accent-2);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.cluster-card::before {
  content: "";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 84px;
  height: 84px;
  background-image: radial-gradient(circle, rgba(16, 24, 40, 0.09) 1.3px, transparent 1.3px);
  background-size: 11px 11px;
  pointer-events: none;
}
.cluster-card:hover,
.cluster-card:focus-within {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cluster-grid .cluster-card:nth-of-type(5n+1) { border-top-color: var(--accent-2); }
.cluster-grid .cluster-card:nth-of-type(5n+2) { border-top-color: var(--accent-5); }
.cluster-grid .cluster-card:nth-of-type(5n+3) { border-top-color: var(--accent-3); }
.cluster-grid .cluster-card:nth-of-type(5n+4) { border-top-color: var(--accent-4); }
.cluster-grid .cluster-card:nth-of-type(5n+5) { border-top-color: var(--accent-1); }
.cluster-card h3 {
  position: relative;
  font-size: var(--font-size-base);
  margin-bottom: var(--space-2);
}
.cluster-card ul {
  position: relative;
  list-style: none;
  margin: 0 0 var(--space-2);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cluster-card li {
  font-size: var(--font-size-sm);
  color: var(--color-body-text);
  padding-left: 1rem;
  position: relative;
}
.cluster-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
}
.cluster-example {
  position: relative;
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  border-top: 1px dashed var(--color-border);
  padding-top: var(--space-2);
  margin: 0;
  line-height: 1.5;
}

/* ---------------------------------------------------------------
   5. ASP.NET Zero / ABP.io framework spotlight
   ------------------------------------------------------------
   Reworked into a full-bleed navy-gradient band for the Phase 11
   design-consistency pass — this mirrors the reference site's
   recurring dark full-bleed content band (its "We Are the Trusted
   Partner" section), giving the homepage the same light/dark
   section alternation rhythm. Content and links are unchanged;
   only the presentation layer changed.
--------------------------------------------------------------- */
.framework-spotlight {
  background: var(--gradient-navy);
  position: relative;
  overflow: hidden;
}
.framework-spotlight::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.framework-spotlight .section-head h2,
.framework-spotlight .section-lede {
  color: #ffffff;
}
.framework-spotlight .section-head h2::after {
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.35) 30%,
    #ffffff 50%,
    rgba(255, 255, 255, 0.35) 70%,
    transparent
  );
}
.framework-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.framework-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), transform var(--transition-base), border-color var(--transition-fast);
}
.framework-link:hover,
.framework-link:focus-visible {
  text-decoration: none;
  border-color: var(--color-orange);
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-2px);
}
.framework-link__title {
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  font-size: var(--font-size-md);
}
.framework-link__desc {
  font-size: var(--font-size-sm);
  color: var(--color-orange);
  font-weight: var(--font-weight-semibold);
}

/* ---------------------------------------------------------------
   6. Engineering / product development spotlight
--------------------------------------------------------------- */
.engineering-spotlight {
  background: var(--color-surface-alt);
  border-block: 1px solid var(--color-border);
}
.engineering-spotlight__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: start;
}
.engineering-spotlight__text p {
  color: var(--color-body-text);
  max-width: 54ch;
}
.engineering-spotlight__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.engineering-spotlight__list li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--color-navy);
}

/* ---------------------------------------------------------------
   7. Why ETECHTICS
--------------------------------------------------------------- */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.why-us-card {
  border-left: 3px solid var(--accent-2);
  padding-left: var(--space-2);
}
.why-us-grid .why-us-card:nth-of-type(5n+1) { border-left-color: var(--accent-1); }
.why-us-grid .why-us-card:nth-of-type(5n+2) { border-left-color: var(--accent-2); }
.why-us-grid .why-us-card:nth-of-type(5n+3) { border-left-color: var(--accent-3); }
.why-us-grid .why-us-card:nth-of-type(5n+4) { border-left-color: var(--accent-4); }
.why-us-grid .why-us-card:nth-of-type(5n+5) { border-left-color: var(--accent-5); }
.why-us-card h3 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-1);
}
.why-us-card p {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* ---------------------------------------------------------------
   8. Industries
   ------------------------------------------------------------
   Reworked into a full-bleed navy-gradient band with the industry
   list presented as white rounded cards, mirroring the reference
   site's "Industries We Serve" treatment. Same 8 industries, same
   order, same /industries/ link — presentation only.
--------------------------------------------------------------- */
.industries {
  background: var(--gradient-navy);
  position: relative;
  overflow: hidden;
}
.industries::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.industries .section-head h2 {
  color: #ffffff;
}
.industries .section-head h2::after {
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.35) 30%,
    #ffffff 50%,
    rgba(255, 255, 255, 0.35) 70%,
    transparent
  );
}
.industries .section-footer-link a {
  color: #ffffff;
}
.industries-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.industries-list li {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.industries-list li:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------
   9. Collaborative Models teaser
--------------------------------------------------------------- */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.model-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--accent-3);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.model-card::before {
  content: "";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 84px;
  height: 84px;
  background-image: radial-gradient(circle, rgba(16, 24, 40, 0.09) 1.3px, transparent 1.3px);
  background-size: 11px 11px;
  pointer-events: none;
}
.model-card:hover,
.model-card:focus-within {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.models-grid .model-card:nth-of-type(3n+1) { border-top-color: var(--accent-3); }
.models-grid .model-card:nth-of-type(3n+2) { border-top-color: var(--accent-2); }
.models-grid .model-card:nth-of-type(3n+3) { border-top-color: var(--accent-5); }
.model-card h3 {
  position: relative;
  font-size: var(--font-size-base);
  margin-bottom: var(--space-1);
}
.model-card p {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* ---------------------------------------------------------------
   10. Staff Augmentation spotlight
--------------------------------------------------------------- */
.staffing-spotlight {
  background: var(--color-surface-alt);
  border-block: 1px solid var(--color-border);
}
.staffing-spotlight__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: start;
}
.staffing-spotlight__text p {
  color: var(--color-body-text);
  max-width: 54ch;
}
.staffing-spotlight__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.staffing-spotlight__list a {
  display: inline-block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
}
.staffing-spotlight__list a:hover,
.staffing-spotlight__list a:focus-visible {
  border-color: var(--color-navy);
  text-decoration: none;
}

/* ---------------------------------------------------------------
   11. CTA band
--------------------------------------------------------------- */
.cta-band {
  background: var(--gradient-navy);
  color: #ffffff;
  text-align: center;
}
.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.cta-band__heading {
  color: #ffffff;
  font-size: var(--font-size-xl);
  margin: 0;
}
.cta-band__sub {
  color: var(--color-footer-text-muted);
  margin: 0 0 var(--space-1);
}
.cta-band__btn {
  margin-top: var(--space-1);
}

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 899px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    order: -1;
  }
  .hero__graphic {
    max-width: 260px;
  }
  .hero__heading {
    max-width: none;
  }
  .engineering-spotlight__inner,
  .staffing-spotlight__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  .trust__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-band__inner {
    text-align: center;
  }
}
