/* Infinizy homepage design layer
   Loaded after the legacy theme so future homepage changes stay isolated. */

:root {
  --infinizy-accent: #f7941d;
  --infinizy-ink: #222;
  --infinizy-body: #555;
  --infinizy-muted: #777;
  --infinizy-border: #e9e9e9;
  --infinizy-surface: #fff;
  --infinizy-soft: #f8f8f8;
  --infinizy-dark: #111;
  --infinizy-radius: 4px;
  --infinizy-shadow: 0 4px 18px rgba(0, 0, 0, .055);
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 72px;
}

html { scroll-behavior: smooth; }
body {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  color: var(--infinizy-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Type hierarchy */
.slide-text h1,
.slide-text h2 {
  color: #fff;
  font-family: "Manrope", "Roboto", Arial, sans-serif;
  font-size: clamp(2rem, 4.15vw, 3rem);
  letter-spacing: -.04em;
  line-height: 1.08;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero-headline .hero-lead,
.hero-headline .hero-emphasis {
  display: block;
}
.hero-headline .hero-lead {
  font-weight: 600;
  letter-spacing: -.032em;
}
.hero-headline .hero-emphasis {
  margin-top: .12em;
  color: var(--infinizy-accent);
  font-weight: 800;
  letter-spacing: -.048em;
}
.hero-headline-center .hero-lead,
.hero-headline-center .hero-emphasis {
  margin-left: auto;
  margin-right: auto;
}

.slide-text > p {
  max-width: 880px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.72;
}
.slide-text.center > p { margin-left: auto; margin-right: auto; }
.infinizy-note {
  max-width: 880px;
  margin-top: 17px;
  color: #f7f7f7;
  font-size: 15px;
  line-height: 1.7;
}
.infinizy-note strong { font-weight: 700; }

.section-title { margin-bottom: 44px; }
.section-title h2 {
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.22;
  text-wrap: balance;
}
.section-title h2 span { font-weight: 900; }
.section-title p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  line-height: 1.75;
}

.single-about h3,
.process-step h3,
.offer-box h3,
.industry-card h3,
.faq-card h3,
.form-helper h3,
.proof-card h3,
#footer-top .single-widget h2 {
  font-weight: 700;
  line-height: 1.3;
}
.offer-box > p strong,
.industry-product,
.sample-label,
.value-item h3,
.sample-row strong,
.signal-badge { font-weight: 700; }

/* Consistent cards and equal-height desktop rows */
.card-grid { display: flex; flex-wrap: wrap; }
.card-grid > [class*="col-"] { display: flex; }
.card-grid .single-about,
.card-grid .process-step,
.card-grid .offer-box,
.card-grid .industry-card,
.card-grid .faq-card,
.card-grid .proof-card { width: 100%; height: auto; }

.single-about,
.process-step,
.offer-box,
.industry-card,
.faq-card,
.proof-card,
.form-helper,
.sample-card {
  border-radius: var(--infinizy-radius);
}
.single-about { min-height: 205px; margin-bottom: 25px; }
.single-about h3 { margin-bottom: 12px; font-size: 20px; }
.process-step,
.offer-box,
.faq-card,
.proof-card,
.form-helper {
  background: var(--infinizy-surface);
  border: 1px solid var(--infinizy-border);
  box-shadow: var(--infinizy-shadow);
}
.process-step { min-height: 235px; margin-bottom: 25px; padding: 25px; }
.process-step .step-number {
  display: inline-block;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  border-radius: 50%;
  background: var(--infinizy-accent);
  color: #fff;
  font-weight: 700;
  line-height: 42px;
  text-align: center;
}
.offer-box { min-height: 350px; margin-bottom: 25px; padding: 30px; }
.offer-box h3 { margin-bottom: 12px; font-size: 22px; }
.offer-box ul,
.form-helper ul,
.proof-card ul { margin-bottom: 0; padding-left: 0; list-style: none; }
.offer-box li,
.form-helper li,
.proof-card li { margin-bottom: 10px; line-height: 1.65; }
.offer-box li:last-child,
.form-helper li:last-child,
.proof-card li:last-child { margin-bottom: 0; }
.offer-box i,
.form-helper i,
.proof-card i { margin-right: 8px; color: var(--infinizy-accent); }

.dark-section { background: var(--infinizy-dark); color: #fff; }
.dark-section .section-title h2,
.dark-section .section-title p,
.dark-section h3,
.dark-section p,
.dark-section li { color: #fff; }
.industry-card {
  display: flex;
  flex-direction: column;
  min-height: 235px;
  margin-bottom: 25px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.industry-card h3 { margin-bottom: 10px; font-size: 20px; }
.industry-card .industry-product {
  display: inline-block;
  margin-top: auto;
  padding-top: 8px;
  color: var(--infinizy-accent);
}

.value-strip { padding: 22px 0; border-bottom: 1px solid #eee; background: #fff; }
.value-item { padding: 10px 15px; text-align: center; }
.value-item h3 { margin: 0; color: var(--infinizy-accent); font-size: 20px; }
.value-item p { margin: 6px 0 0; color: var(--infinizy-body); }

.sample-card {
  padding: 30px;
  border-left: 5px solid var(--infinizy-accent);
  background: #fff;
  box-shadow: 0 5px 22px rgba(0,0,0,.08);
}
.sample-row { padding: 10px 0; border-bottom: 1px solid #eee; line-height: 1.65; }
.sample-row:last-child { border-bottom: 0; }
.sample-label { display: inline-block; min-width: 170px; color: var(--infinizy-ink); }
.signal-badge {
  padding: 5px 10px;
  border-radius: 14px;
  background: var(--infinizy-accent);
  color: #fff;
  font-size: 12px;
}

.faq-card { min-height: 190px; margin-bottom: 20px; padding: 24px; }
.faq-card h3 { font-size: 19px; }
.form-helper { margin-bottom: 25px; padding: 25px; }
.proof-section { background: var(--infinizy-soft); }
.proof-card { min-height: 290px; margin-bottom: 25px; padding: 28px 30px; }
.proof-card ul { margin-top: 18px; }
.proof-note { margin: 5px 0 0; font-size: 15px; }

/* Calls to action and forms */
.slide-button .button,
#contact .button,
.button.primary {
  font-weight: 700;
  letter-spacing: .015em;
}
.micro-copy { margin-top: 10px; color: var(--infinizy-muted); font-size: 13px; }
.form input,
.form textarea { transition: border-color .2s ease, box-shadow .2s ease; }
.form input:focus,
.form textarea:focus {
  border-color: var(--infinizy-accent);
  box-shadow: 0 0 0 3px rgba(247,148,29,.14);
}

/* Footer */
.footer-links a { display: inline-block; margin-right: 18px; margin-bottom: 8px; color: #fff; }
#footer-top .about p,
#footer-top .contact li { line-height: 1.75; }
#footer .social { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
#footer .social li { margin: 0; }

/* Keyboard accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(247,148,29,.55);
  outline-offset: 3px;
}

/* Responsive refinements */
@media (max-width: 991px) {
  .card-grid > [class*="col-"] { display: flex; }
  .section-title p { max-width: 680px; }
}
@media (max-width: 767px) {
  .card-grid { display: block; }
  .card-grid > [class*="col-"] { display: block; }
  .slide-text h1,
  .slide-text h2 { font-size: clamp(1.95rem, 9vw, 2.35rem) !important; line-height: 1.16; }
  .slide-text > p { font-size: 16px; line-height: 1.65; }
  .section-title { margin-bottom: 34px; }
  .section-title h2 { font-size: 27px; line-height: 1.24; }
  .section-title p { font-size: 15px; line-height: 1.68; }
  .single-about,
  .offer-box,
  .process-step,
  .industry-card,
  .faq-card,
  .proof-card { min-height: 0; }
  .offer-box,
  .sample-card,
  .proof-card { padding: 24px; }
  .value-item h3 { font-size: 18px; }
  .sample-label { display: block; min-width: 0; margin-bottom: 3px; }
  #footer .social { justify-content: flex-start; margin-top: 12px; }
}

/* Respect system accessibility preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Final hero parity: keep Slide 2 visually identical to Slide 1 while preserving semantic H2 */
#j-slider .slide-text h1,
#j-slider .slide-text h2 {
  font-family: "Roboto", Arial, sans-serif;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: normal;
  text-transform: uppercase;
  margin: 0 0 20px;
}

#j-slider .slide-text h1 span,
#j-slider .slide-text h2 span {
  display: block;
  position: relative;
  margin-top: 0;
  margin-bottom: 15px;
  color: #eee;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  #j-slider .slide-text h1,
  #j-slider .slide-text h2 {
    font-size: 35px;
  }
}

@media (max-width: 767px) {
  #j-slider .slide-text h1,
  #j-slider .slide-text h2 {
    font-size: 16px !important;
    line-height: 1.2;
    margin-bottom: 5px;
  }

  #j-slider .slide-text h1 span,
  #j-slider .slide-text h2 span {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
}
