/* Infirise Technologies (infirise.com): homepage sections. */

/* One-shot icon draw-ins start hidden; motion.js plays them when seen. Reduced motion shows them drawn. */
@media (prefers-reduced-motion: reduce) {
  .draw { stroke-dashoffset: 0; }
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #F8FBFD 0%, #EDF4F9 100%); }
.hero-grid {
  position: absolute;
  inset: -120px 0;
  will-change: transform;
  background-image:
    linear-gradient(rgba(30, 35, 82, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 35, 82, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-glow { position: absolute; border-radius: 50%; will-change: transform; }
.hero-glow-a {
  top: -160px;
  right: -120px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(43, 114, 175, 0.2) 0%, rgba(43, 114, 175, 0) 68%);
}
.hero-glow-b {
  bottom: -220px;
  left: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(46, 123, 188, 0.14) 0%, rgba(46, 123, 188, 0) 68%);
}
.hero-in {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-block: clamp(44px, 6vw, 88px);
}
.hero-copy { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font: 600 13px/1.5 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
}
.eyebrow svg { flex: none; margin-top: 5px; }
.hero-title { font: 800 clamp(32px, 4.2vw, 54px)/1.1 var(--font-display); color: var(--navy); text-wrap: balance; }
.hero-lede { max-width: 600px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
/* Full-width row of selling points under both hero columns. */
.hero-points { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font: 500 14px/1.3 var(--font-body);
}
.hero-points svg { flex: none; color: var(--azure); }
@media (max-width: 600px) {
  .hero-points li { border-radius: 14px; }
}
.hero-visual { flex: 1 1 400px; min-width: 0; max-width: 620px; margin-inline: auto; will-change: transform; }
.hero-visual svg { display: block; width: 100%; height: auto; }

/* ---------- What we do, clients ---------- */

.about { display: grid; align-items: center; gap: 40px 64px; padding-block: clamp(48px, 6vw, 80px) 28px; }
.about-copy { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-title { font: 800 clamp(26px, 2.6vw, 36px)/1.2 var(--font-display); color: var(--navy); }
.about-text { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; }
@media (min-width: 960px) {
  .about { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

.clients { padding: 8px 0 48px; }
.clients-label {
  margin-bottom: 12px;
  font: 600 13px/1.4 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Client logos: two rows loop in opposite directions; each track holds its set twice, so -50% is one lap. */
.client-logos { display: flex; flex-direction: column; }
.client-row {
  overflow: hidden;
  padding: 6px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.client-track { display: flex; width: max-content; animation: clients-lap 60s linear infinite; }
.client-row-rev .client-track { animation-duration: 66s; animation-direction: reverse; }
.client-logos.is-paused .client-track,
.client-logos:hover .client-track { animation-play-state: paused; }
.client-set { display: flex; gap: 16px; margin: 0; padding: 0 16px 0 0; list-style: none; }
.client-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 190px;
  height: 112px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(30, 35, 82, 0.05);
}
.client-tile img { display: block; flex: none; max-width: 100%; height: auto; }
.client-tile span { font: 600 13px/1.25 var(--font-body); color: var(--muted); white-space: nowrap; text-align: center; }
@keyframes clients-lap {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .client-logos { flex-flow: row wrap; justify-content: center; gap: 14px; padding-inline: var(--pad-x); }
  .client-row, .client-track, .client-set { display: contents; }
  .client-set[aria-hidden="true"] { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 600px) {
  .client-tile { width: calc(50% - 7px); min-width: 0; padding: 0 12px; }
  .client-tile span { white-space: normal; }
}

/* ---------- Industries ---------- */

.niche {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-card);
}
.niche-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.niche-name { font: 700 21px/1.25 var(--font-display); color: var(--navy); }
.niche-line { font-size: 16px; line-height: 1.6; color: var(--muted); }
.niche-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 15px/1.3 var(--font-body);
  color: var(--accent);
}

/* ---------- Problems ---------- */

.problems { gap: 28px 32px; }
.problem { display: flex; align-items: flex-start; gap: 16px; }
.problem-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #FFF4E5;
  color: #B45309;
  display: grid;
  place-items: center;
}
.problem-text { display: flex; flex-direction: column; gap: 4px; }
.problem-title { font: 700 18px/1.3 var(--font-display); color: var(--navy); }
.problem-text p { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ---------- Services ---------- */

.services { gap: 16px; }
.service { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--navy);
  color: var(--sky);
  display: grid;
  place-items: center;
}
.service-name { font: 700 18px/1.3 var(--font-display); color: var(--navy); }
.service-line { font-size: 15px; line-height: 1.55; color: var(--muted); }
.service-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 22px;
  border-color: transparent;
  background: linear-gradient(135deg, var(--indigo), var(--azure-hover));
  color: #ffffff;
}
.service-cta:hover { color: #ffffff; }
.service-cta b { font: 700 18px/1.3 var(--font-display); }
.service-cta span { font-size: 15px; line-height: 1.5; color: #DCEAF7; }

/* ---------- Dark sections: Always-On IT and the closing call to action ---------- */

.dark { position: relative; overflow: hidden; background: var(--navy); color: #ffffff; }
.dark-glow {
  position: absolute;
  top: -120px;
  left: 30%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  will-change: transform;
  background: radial-gradient(circle, rgba(108, 184, 240, 0.14) 0%, rgba(108, 184, 240, 0) 70%);
}
.ao-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.ao-copy { flex: 3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ao-copy p { color: #C9D6E3; }
.ao-rings { flex: 1 1 180px; max-width: 220px; height: auto; }
.pillar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(108, 184, 240, 0.18);
  border-radius: 14px;
  background: rgba(42, 48, 104, 0.85);
}
.pillar-num { font: 800 14px/1 var(--font-display); letter-spacing: 0.1em; color: var(--sky); }
.pillar-name { font: 800 24px/1.2 var(--font-display); }
.pillar-line { font-size: 15px; color: #C9D6E3; }
.checks { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; }
.checks li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; color: #E3EBF3; }
.checks svg { flex: none; margin-top: 2px; }

.cta-waves { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.cta-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.cta-title { font: 800 clamp(28px, 3vw, 42px)/1.15 var(--font-display); text-wrap: balance; }
.cta-lede { max-width: 640px; color: #C9D6E3; }
.cta .btn-glow { padding: 0 26px; box-shadow: 0 10px 24px rgba(43, 114, 175, 0.35); }
.cta .btn-glow:hover { box-shadow: 0 14px 32px rgba(43, 114, 175, 0.45); }
.cta-note { font-size: 14px; color: #9FB4CC; }
.cta-contact { font-size: 14px; color: #C9D6E3; }
.cta-contact a { color: #C9D6E3; text-underline-offset: 3px; }
.cta-contact a:hover { color: #ffffff; }

/* ---------- Getting started ---------- */

.step-card { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.step-title { font: 700 19px/1.3 var(--font-display); color: var(--navy); }
.step-body { font-size: 15px; line-height: 1.55; color: var(--muted); }
.step-time { margin-top: auto; font: 600 13px/1.3 var(--font-body); color: var(--azure); }

/* ---------- Support status pill ---------- */

.status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #15803D;
  font: 600 13px/1 var(--font-body);
}

/* ---------- Testimonials ---------- */

/* Quote and name share subgrid rows, so each row lines up across the cards. */
.quote {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 18px;
  padding: 28px;
  border-top: 4px solid var(--accent);
  border-radius: 14px;
  background: #ffffff;
}
.quote blockquote { font: 600 19px/1.5 var(--font-display); color: var(--navy); }
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.quote-who { display: flex; flex-direction: column; color: var(--muted); font-size: 14px; line-height: 1.45; }
.quote b { color: var(--ink); }
.quote-photo {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--accent);
}

/* ---------- Offices ---------- */

.office { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; }
.office-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ECEEF8;
  color: var(--indigo);
  display: grid;
  place-items: center;
}
.office-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.office-city { font: 700 19px/1.3 var(--font-display); color: var(--navy); }
.office-address { font-size: 15px; line-height: 1.55; color: var(--muted); }
.office-map { margin-block: -12px; padding-block: 12px; font: 600 14px/1.4 var(--font-body); }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; gap: 20px; }
.qa {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.qa:hover { border-color: #B9C7D6; }
.qa[open] { box-shadow: var(--shadow-card); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 14px;
  color: var(--navy);
  font: 700 18px/1.4 var(--font-display);
  list-style: none;
  cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--azure);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
    #E8F1FA;
  transition: transform 0.3s ease;
}
.qa[open] summary { padding-bottom: 12px; }
.qa[open] summary::after {
  color: #ffffff;
  background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, var(--azure);
  transform: rotate(180deg);
}
.qa p { padding: 0 22px 18px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.qa::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete;
}
.qa[open]::details-content { block-size: auto; }

/* ---------- Small screens ---------- */

@media (max-width: 639px) {
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-visual { margin-inline: -12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .qa::details-content { transition: none; }
}
