/* =====================================================================
   Computer Xperts — About Us page styles (css/about.css)
   Loaded on about_us.html after css/site.css (colours, header, footer, page hero live there).

   Contents
    1. Key facts (1998 · 100+ · 25+ · 80%)
    2. Vision + Mission
    3. Our Values
    4. Why Choose Web eXperts
    5. Stay connected (social)
    6. Responsive: 1023px, 640px
   ===================================================================== */


/* 1. Key facts ---------------------------------------------------------
   White card pulled up over the bottom of the page hero. */
.facts { position: relative; z-index: 1; background: var(--paper); }
.facts__card {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: 32px; align-items: center;
  transform: translateY(-48px); margin-bottom: -48px; padding: 30px 32px 30px 36px; border-radius: 14px;
  background: var(--white); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .35);
}
.facts__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.facts__lead { color: var(--ink); font-size: clamp(22px, 2.2vw, 28px); font-weight: 900; line-height: 1.1; letter-spacing: -.01em; }
.facts__text { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.facts__text em { display: block; color: var(--red-text); font-weight: 700; }

.fact { display: flex; flex-direction: column; align-items: flex-start; padding-left: 16px; border-left: 1px solid var(--line); }
.fact__icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 12px;
  background: var(--red-tint); color: var(--red-text);
}
.fact__icon .ic { width: 22px; height: 22px; stroke-width: 2; }
.fact__num { color: var(--ink); font-size: clamp(28px, 2.6vw, 38px); font-weight: 900; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fact__label { margin-top: 6px; color: var(--muted); font-size: 14.5px; font-weight: 700; line-height: 1.3; }


/* 2. Vision + Mission --------------------------------------------------- */
.purpose { padding: var(--section-y) 0; background: var(--paper); }
.purpose__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.purpose-card {
  position: relative; overflow: hidden; padding: 40px; border-radius: 16px;
  background: var(--white); border: 1px solid var(--line);
}
.purpose-card--dark { background: var(--ink-2); border-color: var(--ink-2); color: var(--white); }

/* illustration, top right (each picture has its own round background) */
.purpose-card__art { float: right; width: 180px; margin: -12px -12px 12px 20px; }
.purpose-card__art img { width: 100%; height: auto; }

.purpose-card__label {
  position: relative; padding-bottom: 14px;
  font-size: clamp(30px, 3vw, 42px); font-weight: 900; line-height: 1; letter-spacing: -.02em;
}
.purpose-card__label::after {   /* short red bar */
  content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px; border-radius: 2px; background: var(--red);
}
.purpose-card__title { margin-top: 20px; font-size: 20px; font-weight: 700; line-height: 1.35; }
.purpose-card p { margin-top: 12px; color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.purpose-card--dark p { color: #cfcfcf; }


/* 3. Our Values --------------------------------------------------------- */
.values { padding: var(--section-y) 0; background: var(--ink); border-top: 4px solid var(--red); }
.values .section-title { color: var(--white); }
.values__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }

.value {
  display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 30px 18px 26px;
  border-radius: 14px; background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08);
  text-align: center; transition: transform .25s ease, border-color .25s ease;
}
.value img { width: 84px; height: 84px; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.value p { color: var(--white); font-size: 16px; font-weight: 700; line-height: 1.3; }
.value:hover { transform: translateY(-6px); border-color: var(--red); }
.value:hover img { transform: scale(1.08) rotate(-6deg); }


/* 4. Why Choose Web eXperts --------------------------------------------- */
.reasons { padding: var(--section-y) 0; background: var(--white); }
.reasons__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.reason {
  position: relative; padding: 28px 28px 30px; border-radius: 14px;
  background: var(--paper); border: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.reason:hover { background: var(--white); border-color: var(--line); transform: translateY(-4px); }
.reason__num {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 50%;
  background: var(--red); color: var(--white); font-size: 22px; font-weight: 900; line-height: 1;
  box-shadow: 0 10px 22px -10px rgba(207, 11, 11, .8);
}
.reason p { color: var(--muted); font-size: 16.5px; line-height: 1.65; }


/* 5. Stay connected ----------------------------------------------------- */
.connect { padding: var(--section-y) 0; background: var(--paper); border-top: 1px solid var(--line); }
.connect__inner { text-align: center; }
.connect__title { color: var(--ink); font-size: clamp(24px, 2.4vw, 32px); font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
.connect__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.connect__list a {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px 0 14px;
  border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.connect__list svg { width: 18px; height: 18px; fill: var(--brand); transition: fill .2s ease; }
.connect__list a:hover,
.connect__list a:focus-visible { background: var(--brand); border-color: var(--brand); color: var(--white); transform: translateY(-3px); }
.connect__list a:hover svg,
.connect__list a:focus-visible svg { fill: var(--white); }



/* 6. Responsive --------------------------------------------------------- */

/* ---- tablets ---- */
@media (max-width: 1023px) {
  .facts__card { grid-template-columns: 1fr; gap: 22px; padding: 28px; }
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .purpose__grid { grid-template-columns: 1fr; }
  .values__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reasons__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- phones ---- */
@media (max-width: 640px) {
  .facts__card { padding: 24px 22px; }
  .purpose-card { padding: 28px 22px; }
  .purpose-card__art { width: 124px; margin: -6px -6px 8px 12px; }
  .values__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .value { padding: 22px 12px 20px; }
  .value img { width: 68px; height: 68px; }
  .reasons__list { grid-template-columns: 1fr; }
  .connect__list a { padding: 0 14px 0 12px; font-size: 14px; }
}
