/* ============================================================
   home.css — Home Page Only: Sharp · Architectural · 2026
   iCoderz Solutions
   NOTE: SSI component styles (tech, awards, case-studies,
   industries, testimonials, why, rating-strip, clients) live
   in components.css so interior pages can use them too.
   ============================================================ */

/* ── Hero animation classes ──
   H1 intentionally excluded — it is the LCP element and must paint at opacity:1 immediately.
   Animating the LCP element with opacity:0 delay kills the LCP score. */
.hero-anim-1 { animation: fadeUp 0.5s ease both; }
.hero-anim-2 { animation: fadeUp 0.6s 0.1s  ease both; }
.hero-anim-3 { animation: fadeUp 0.6s 0.2s  ease both; }
.hero-anim-4 { animation: fadeUp 0.6s 0.3s  ease both; }

/* ══════════════════════════════════════
   HERO — Full-bleed dark, centred
   ══════════════════════════════════════ */
.hero {
  position: relative;
  background: var(--gd-hero);
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 7rem);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

/* Geometric grid overlay */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* Blue accent glow blobs */
.hero__glow-1 {
  position: absolute;
  top: -20%;
  right: 5%;
  width: 50vw;
  height: 70vh;
  background: radial-gradient(ellipse, rgba(26,86,232,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero__glow-2 {
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 40vw;
  height: 50vh;
  background: radial-gradient(ellipse, rgba(107,33,168,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Badge — flat pill */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.375rem 0.875rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: rgba(255,255,255,0.65);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
  border-radius: 0;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: #4ADE80;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
  border-radius: 50%;
}

/* Title — centred, large */
.hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: var(--fw-semibold);
  color: var(--clr-white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-6);
  max-width: 860px;
}

.hero__title-highlight {
  display: block;
  background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 55%, #F472B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Description */
.hero__desc {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.55);
  line-height: var(--lh-relaxed);
  max-width: 600px;
  margin-bottom: var(--sp-8);
  font-weight: var(--fw-regular);
}

/* CTA row — centred */
.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-10);
}

/* Trust bar — 4 stats in a row */
.hero__trust-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  width: 100%;
  max-width: 700px;
}

.hero__trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-5) var(--sp-6);
  border-right: 1px solid rgba(255,255,255,0.08);
}

.hero__trust-item:last-child { border-right: none; }

.hero__trust-num {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero__trust-label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-top: var(--sp-1);
  text-align: center;
}

/* ══════════════════════════════════════
   VALUE PROPS — 3-col capability strip
   ══════════════════════════════════════ */
.value-props {
  padding-block: var(--section-gap);
  background: var(--clr-white);
  border-bottom: 1.5px solid var(--clr-border);
}

.value-props__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--clr-border);
  border: 1.5px solid var(--clr-border);
  margin-top: var(--sp-12);
}

.value-prop {
  background: var(--clr-white);
  padding: var(--sp-10) var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: background var(--t-base);
  position: relative;
  overflow: hidden;
}

.value-prop::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px; width: 0;
  background: var(--gd-primary);
  transition: width var(--t-slow) var(--ease-out);
}

.value-prop:hover { background: var(--clr-blue-xlight); }
.value-prop:hover::after { width: 100%; }

.value-prop__num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--fw-black);
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--gd-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.value-prop__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  letter-spacing: -0.02em;
  line-height: var(--lh-snug);
}

.value-prop__desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-3);
  line-height: var(--lh-relaxed);
}

.value-prop__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--clr-blue);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-top: auto;
  transition: gap var(--t-fast);
}

.value-prop__link:hover { gap: var(--sp-3); }

@media (max-width: 1023px) { .value-props__grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════
   SOLUTIONS — Full-width slider
   ══════════════════════════════════════ */
.solutions-section {
  padding-block: var(--section-gap);
  background: var(--clr-bg);
  overflow: hidden;
}

.solution-card {
  display: block;
  background: var(--clr-white);
  border: 1.5px solid var(--clr-border);
  text-decoration: none;
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base) var(--ease-out);
}

.solution-card:hover {
  border-color: var(--clr-blue);
  box-shadow: 6px 6px 0 rgba(26,86,232,0.12);
  transform: translate(-3px,-3px);
}

.solution-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1.5px solid var(--clr-border);
}

.solution-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.solution-card:hover .solution-card__img img { transform: scale(1.05); }

.solution-card__body { padding: var(--sp-5) var(--sp-5) var(--sp-6); }

.solution-card__title {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}

.solution-card__desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-3);
  line-height: var(--lh-relaxed);
}

.solution-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--clr-blue);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  transition: gap var(--t-fast);
}

.solution-card:hover .solution-card__arrow { gap: var(--sp-3); }

/* ══════════════════════════════════════
   SERVICES — Bento-style grid
   ══════════════════════════════════════ */
.services-section {
  padding-block: var(--section-gap);
  background: var(--clr-white);
}

.services-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5px;
  background: var(--clr-border);
  border: 1.5px solid var(--clr-border);
  margin-top: var(--sp-6);
}

.service-tile {
  background: var(--clr-white);
  padding: var(--sp-8) var(--sp-8) var(--sp-10);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  text-decoration: none;
  transition: background var(--t-base);
  position: relative;
  overflow: hidden;
}

.service-tile::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--gd-primary);
  transition: width var(--t-slow) var(--ease-out);
}

.service-tile:hover::after { width: 100%; }
.service-tile:hover { background: var(--clr-blue-xlight); }

.service-tile--4  { grid-column: span 4; }
.service-tile--3  { grid-column: span 3; }
.service-tile--6  { grid-column: span 6; }

.service-tile--featured {
  background: var(--clr-black);
  color: var(--clr-white);
}
.service-tile--featured:hover { background: var(--clr-blue); }
.service-tile--featured::after { display: none; }

.service-tile__num {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--clr-blue);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  font-variant-numeric: tabular-nums;
}

.service-tile--featured .service-tile__num { color: rgba(255,255,255,0.4); }

.service-tile__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-blue);
  flex-shrink: 0;
}

.service-tile--featured .service-tile__icon { color: rgba(255,255,255,0.6); }

.service-tile__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  letter-spacing: -0.02em;
  line-height: var(--lh-snug);
}

.service-tile--featured .service-tile__title { color: white; }

.service-tile__desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-3);
  line-height: var(--lh-relaxed);
}

.service-tile--featured .service-tile__desc { color: rgba(255,255,255,0.55); }

@media (max-width: 1023px) {
  .service-tile--4 { grid-column: span 6; }
  .service-tile--3 { grid-column: span 6; }
}
@media (max-width: 639px) {
  .services-bento { gap: 1px; }
  .service-tile--4, .service-tile--3, .service-tile--6 { grid-column: span 12; }
}

/* Reduce section-header margin on SSI grid sections */
.tech-section .section-header,
.awards-section .section-header,
.industries-section .section-header,
.why-section .section-header {
  margin-bottom: var(--sp-8);
}

/* ══════════════════════════════════════
   FAQ SECTION
   ══════════════════════════════════════ */
.faq-section {
  padding-block: var(--section-gap);
  background: var(--clr-bg);
  border-top: 1.5px solid var(--clr-border);
}

.faq-layout-2col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-16);
  align-items: start;
}

.faq-sticky {
  position: sticky;
  top: calc(68px + 2rem);
}

@media (max-width: 767px) {
  .faq-layout-2col {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .faq-sticky { position: static; }
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 767px) {
  .hero__trust-bar { flex-wrap: wrap; }
  .hero__trust-item {
    flex: 1 1 calc(50% - 1px);
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .hero__trust-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
  .hero__trust-item:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 575px) {
  .hero__title { font-size: clamp(1.875rem, 8vw, 2.5rem); }
  .hero__desc  { font-size: var(--fs-base); }
}
