/* ==========================================================================
   Pathway IT — api-development.css  (API Development page)
   Banner-led layout: hero image with clickable CTA hotspots, what we build,
   5-step process, why teams choose us, case studies and a closing CTA band.
   ========================================================================== */

.api-section { padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--paper); }
.api-section--tint { background: #F6F8FC; }
.api-section--cases { background: #F6F8FC; }

/* Icon slots are filled with an SVG by api-development.js. */
span[data-icon]:not([class]) { display: inline-flex; flex: none; vertical-align: middle; }
span[data-icon]:not([class]) svg { width: 1em; height: 1em; }

/* -------------------------------------------------------------------------- */
/* Hero banner + CTA hotspots                                                 */
/* -------------------------------------------------------------------------- */
.api-hero { background: #00091F; padding-top: var(--header-h); }
.api-hero-media { position: relative; line-height: 0; }
.api-banner { display: block; width: 100%; height: auto; }

/* Positions are measured from the artwork, so the hotspot lands exactly on
   the "Start your project" button drawn into each banner. */
.api-hotspot {
  position: absolute; z-index: 2; padding: 0;
  background: transparent; border: 0; border-radius: 10px;
  cursor: pointer; transition: box-shadow var(--t) var(--ease);
}
.api-hotspot:hover { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.api-hotspot:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.api-hotspot--desktop { left: 6.40%; top: 67.59%; width: 13.26%; height: 8.32%; }
.api-hotspot--mobile { display: none; left: 7.62%; top: 35.78%; width: 35.06%; height: 4.81%; }

@media (max-width: 760px) {
  .api-hero { background: #010714; }
  .api-hotspot--desktop { display: none; }
  .api-hotspot--mobile { display: block; }
}

/* -------------------------------------------------------------------------- */
/* Section heading (mono eyebrow + centred title)                             */
/* -------------------------------------------------------------------------- */
.api-head { text-align: center; max-width: 900px; margin: 0 auto clamp(2.2rem, 4.5vw, 3.2rem); }
.api-eyebrow {
  display: inline-block;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--blue);
}
.api-head h2 {
  margin-top: .9rem;
  font-size: clamp(1.5rem, 2.9vw, 2.05rem);
  line-height: 1.3; letter-spacing: -.02em; color: var(--slate-900);
}

/* -------------------------------------------------------------------------- */
/* What we build (6 across)                                                   */
/* -------------------------------------------------------------------------- */
.api-build-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; }
.api-build {
  background: var(--paper); border: 1px solid #E7ECF5; border-radius: 14px;
  padding: 1.3rem 1.1rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.api-build:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15, 30, 70, .09); border-color: #C9D9F8; }
.api-ico {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; background: #EAF0FE; color: var(--blue); margin-bottom: 1rem;
}
.api-ico svg { width: 19px; height: 19px; }
.api-build h3 { font-size: .9rem; line-height: 1.35; margin-bottom: .5rem; color: var(--slate-900); }
.api-build p { font-size: .8rem; line-height: 1.6; color: var(--slate-500); }

@media (max-width: 1180px) { .api-build-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .api-build-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .api-build-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------- */
/* 5-step process                                                             */
/* -------------------------------------------------------------------------- */
.api-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; list-style: none; }
.api-step { position: relative; text-align: center; padding-inline: .4rem; }
.api-step-ico {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 1.1rem;
  border-radius: 50%; background: var(--paper); border: 1px solid #DCE5F4;
  color: var(--blue); box-shadow: 0 4px 14px rgba(15, 30, 70, .06);
}
.api-step-ico svg { width: 22px; height: 22px; }
/* Connector between adjacent step markers. */
.api-step:not(:last-child)::after {
  content: ""; position: absolute; top: 27px; height: 1px; background: #D8E1F0;
  left: calc(50% + 34px); right: calc(-50% + 34px);
}
.api-step h3 { font-size: .92rem; margin-bottom: .45rem; color: var(--slate-900); }
.api-step p { font-size: .82rem; line-height: 1.6; color: var(--slate-500); }
.api-step p b { color: var(--blue); font-weight: 600; }

@media (max-width: 900px) {
  .api-steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .api-step:not(:last-child)::after { display: none; }
}
@media (max-width: 480px) { .api-steps { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------- */
/* Why teams choose us (5 across)                                             */
/* -------------------------------------------------------------------------- */
.api-why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.api-why { text-align: center; padding-inline: .5rem; }
.api-why-ico { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto .9rem; color: var(--blue); }
.api-why-ico svg { width: 26px; height: 26px; }
.api-why h3 { font-size: .93rem; margin-bottom: .45rem; color: var(--slate-900); }
.api-why p { font-size: .82rem; line-height: 1.6; color: var(--slate-500); }

@media (max-width: 900px) { .api-why-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem 1rem; } }
@media (max-width: 520px) { .api-why-grid { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------------------------------------------------- */
/* Case studies                                                               */
/* -------------------------------------------------------------------------- */
.api-cases-head { position: relative; }
.api-cases-link {
  position: absolute; right: 0; bottom: 0;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .87rem; font-weight: 600; color: var(--blue);
}
.api-cases-link:hover { text-decoration: underline; }
.api-cases-link span { font-size: .95rem; }

.api-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.api-case {
  background: var(--paper); border: 1px solid #E7ECF5; border-radius: 16px;
  padding: 1.6rem 1.5rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.api-case:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 30, 70, .1); }
.api-case-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; margin-bottom: 1.1rem; }
.api-case-ico svg { width: 21px; height: 21px; }
.api-case-ico--blue { background: #EAF0FE; color: var(--blue); }
.api-case-ico--green { background: #E7F7EE; color: #14915B; }
.api-case-ico--violet { background: #F0EBFE; color: #6D45D9; }
.api-case h3 { font-size: .95rem; margin-bottom: .55rem; color: var(--slate-900); }
.api-case p { font-size: .85rem; line-height: 1.6; color: var(--slate-500); }

.api-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid #EDF1F8; }
.api-metrics dt { font-size: .95rem; font-weight: 700; color: var(--blue); letter-spacing: -.01em; }
.api-metrics dd { margin-top: .2rem; font-size: .7rem; line-height: 1.4; color: var(--slate-500); }

@media (max-width: 980px) { .api-case-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
@media (max-width: 760px) {
  .api-cases-link { position: static; display: flex; justify-content: center; margin: -1.6rem 0 2.2rem; }
}

/* -------------------------------------------------------------------------- */
/* Closing CTA band                                                           */
/* -------------------------------------------------------------------------- */
.api-cta-wrap { padding-block: 0 clamp(3.5rem, 7vw, 5.5rem); background: #F6F8FC; }
.api-cta {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(1.6rem, 4vw, 3rem);
  background: #060D1C; border-radius: 18px;
  padding: clamp(1.8rem, 3.6vw, 2.6rem) clamp(1.6rem, 3.6vw, 2.8rem);
}
.api-cta-copy { max-width: 34ch; }
.api-cta-copy h2 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.3; color: #fff; letter-spacing: -.01em; }
.api-cta-copy p { margin-top: .55rem; font-size: .86rem; line-height: 1.6; color: #93A1BC; }

.api-cta-action { flex: none; }
.api-cta-form { display: flex; gap: .7rem; }
.api-cta-form input {
  width: clamp(200px, 22vw, 270px);
  background: #101B31; border: 1px solid #23324F; color: #fff;
  border-radius: 10px; padding: .8rem 1rem; font-size: .88rem;
}
.api-cta-form input::placeholder { color: #6C7C9B; }
.api-cta-form input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.api-cta-btn {
  background: var(--blue); color: #fff; border-radius: 10px;
  padding: .8rem 1.3rem; font-size: .88rem; white-space: nowrap; gap: .45rem;
}
.api-cta-btn:hover { background: #1D4FD8; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 99, 235, .32); }

.api-cta-points { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1rem; }
.api-cta-points li { display: flex; align-items: center; gap: .45rem; font-size: .76rem; color: #93A1BC; }
.api-cta-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; }

@media (max-width: 940px) {
  .api-cta { flex-direction: column; align-items: flex-start; }
  .api-cta-copy { max-width: none; }
  .api-cta-action { width: 100%; }
  .api-cta-form input { width: 100%; flex: 1; }
}
@media (max-width: 520px) {
  .api-cta-form { flex-direction: column; }
  .api-cta-btn { justify-content: center; }
}
