/*
 * NOTE: inner.css - extras for About, Contact and Service pages (loaded after home.css, so it reuses
 * the same tokens, buttons, cards, stat figures, testimonials rail and CTA panel).
 *   1. Page hero   2. Hero art (About)   3. Ticks & service card   4. Split sections
 *   5. Reason cards   6. Contact form & details   7. Responsive
 */

/* ---------------------------------------------------------------
 * 1. Page hero
 * ------------------------------------------------------------ */
.pg-hero {
  position: relative;
  padding: clamp(132px, 9.4vw, 154px) 0 clamp(56px, 6vw, 96px);
  overflow: clip;
  background: linear-gradient(180deg, var(--hm-tint-1) 0%, var(--hm-tint-2) 60%, var(--hm-paper) 100%);
}

.pg-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.pg-hero-copy .hm-eyebrow {
  margin-bottom: 20px;
}

.pg-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.045em;
  color: var(--hm-text);
  text-wrap: balance;
}

.pg-title .text-blue {
  background: var(--hm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}

.pg-lead {
  max-width: 60ch;
  margin: 22px 0 32px;
  font-size: clamp(16px, 1.25vw, 18.5px);
  line-height: 1.75;
  color: var(--hm-muted);
}

/* ---------------------------------------------------------------
 * 2. Hero art (About) - brand orb with three floating figures
 * ------------------------------------------------------------ */
.pg-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(320px, 34vw, 440px);
}

.pg-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(130px, 13vw, 176px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--hm-shadow-lg);
}

.pg-orb::before,
.pg-orb::after {
  content: "";
  position: absolute;
  inset: -34px;
  border: 1px solid rgba(37, 99, 255, 0.2);
  border-radius: 50%;
}

.pg-orb::after {
  inset: -76px;
  border-style: dashed;
  border-color: rgba(37, 99, 255, 0.14);
  animation: hm-turn 40s linear infinite;
}

.pg-orb img {
  width: 52%;
  height: auto;
}

.pg-chip {
  position: absolute;
  display: grid;
  gap: 2px;
  padding: 14px 20px;
  border: 1px solid var(--hm-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--hm-shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: hm-bob 6s ease-in-out infinite alternate;
}

.pg-chip b {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--hm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pg-chip span {
  font-size: 13px;
  font-weight: 500;
  color: var(--hm-muted);
}

.pg-chip-1 { top: 4%; left: 2%; }
.pg-chip-2 { right: 0; top: 30%; animation-delay: -2s; }
.pg-chip-3 { bottom: 4%; left: 12%; animation-delay: -4s; }

/* ---------------------------------------------------------------
 * 3. Tick lists & the service highlight card
 * ------------------------------------------------------------ */
.pg-ticks {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.pg-ticks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--hm-text);
}

.pg-ticks li > span {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--hm-grad);
  color: #fff;
}

.pg-ticks li > span svg {
  width: 13px;
  height: 13px;
}

.pg-box {
  position: relative;
  padding: clamp(28px, 3.4vw, 48px);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--hm-shadow-lg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.pg-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: var(--hm-r-lg) var(--hm-r-lg) 0 0;
  background: var(--hm-grad);
}

.pg-box-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--hm-grad);
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 99, 255, 0.3);
}

.pg-box h2 {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

/* ---------------------------------------------------------------
 * 4. Split sections (heading left, copy right)
 * ------------------------------------------------------------ */
.pg-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 80px);
}

.pg-split .hm-eyebrow {
  margin-bottom: 18px;
}

.pg-split .hm-prose-lead {
  margin-top: 22px;
}

.pg-story .hm-prose-lead {
  margin-top: 0;
}

/* ---------------------------------------------------------------
 * 5. Reason cards (About)
 * ------------------------------------------------------------ */
.pg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(14px, 1.4vw, 22px);
}

.pg-card {
  position: relative;
  padding: clamp(26px, 2.6vw, 38px);
  overflow: hidden;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r-lg);
  background: #fff;
  box-shadow: var(--hm-shadow);
  transition: translate 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.45s var(--ease);
}

.pg-card:hover {
  translate: 0 -6px;
  border-color: rgba(37, 99, 255, 0.5);
  box-shadow: var(--hm-shadow-lg);
}

.pg-card-num {
  display: block;
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--hm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}

.pg-card h3 {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.pg-card p {
  margin: 12px 0 0;
  line-height: 1.75;
  color: var(--hm-muted);
}

/* NOTE: five statistics sit in one row on wide screens. */
@media (min-width: 1200px) {
  .hm-figures-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------------
 * 6. Contact form & details
 * ------------------------------------------------------------ */
.pg-form {
  padding: clamp(24px, 2.6vw, 38px);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r-lg);
  background: #fff;
  box-shadow: var(--hm-shadow-lg);
}

.pg-form .dm-form-head {
  padding-right: 0;
}

.pg-contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r);
  background: #fff;
  box-shadow: var(--hm-shadow);
  font-weight: 600;
  line-height: 1.6;
}

.pg-contact-list small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hm-muted-2);
}

.pg-contact-list a {
  color: var(--hm-text);
  transition: color 0.25s var(--ease);
}

.pg-contact-list a:hover {
  color: var(--hm-blue);
}

.pg-contact-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--hm-grad);
  color: #fff;
}

.pg-sep {
  color: var(--hm-muted-2);
}

/* ---------------------------------------------------------------
 * 7. Responsive
 * ------------------------------------------------------------ */
@media (max-width: 992px) {
  .pg-hero-grid,
  .pg-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-hero-art {
    min-height: 300px;
  }
}

/* NOTE: three reason cards on tablet - the last one spans the row instead of sitting alone. */
@media (min-width: 600px) and (max-width: 920px) {
  .pg-cards > .pg-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* NOTE: on phones the three stat chips sit around the logo instead of on top of it. */
@media (max-width: 560px) {
  .pg-hero-art {
    min-height: 350px;
  }

  .pg-orb {
    width: 112px;
  }

  .pg-chip {
    padding: 10px 14px;
  }

  .pg-chip-1 {
    top: 0;
    left: 0;
  }

  .pg-chip-2 {
    top: 0;
    right: 0;
  }

  .pg-chip-3 {
    right: 0;
    bottom: 0;
    left: 0;
    width: max-content;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-chip,
  .pg-orb::after {
    animation: none;
  }
}
