/* ==========================================================================
   PagTech LLC — global stylesheet
   Design tokens + shared component styles for all pages.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  --navy: #0a2f5c;
  --navy-dark: #071f3d;
  --navy-border: #16324f;
  --blue: #1d6fc4;
  --green: #1d8f4c;

  --ink: #1a2733;
  --body: #455060;
  --muted: #5b6b7a;
  --muted-2: #334252;
  --muted-3: #6f8399;
  --muted-4: #8b98a5;
  --footer-text: #9fb0c0;

  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --border: #e2e6ea;
  --border-input: #d3dae1;
  --badge-bg: #eaf1fb;
  --badge-border: #cfe0f2;

  --radius: 12px;
  --font: Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
}

/* ---- Base ---------------------------------------------------------------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:hover { color: var(--navy); }
img { max-width: 100%; }
input, textarea { font-family: inherit; }

/* ---- Layout -------------------------------------------------------------- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { max-width: 1100px; margin: 0 auto; }
.container--narrow { max-width: 960px; margin: 0 auto; }
.container--form { max-width: 1000px; margin: 0 auto; }

.section { padding: clamp(48px, 7vw, 80px) var(--gutter); }
.section--alt { background: var(--bg-alt); }
.section--stats { padding: 0 var(--gutter) 56px; }
.section--stats-top { padding: clamp(48px, 7vw, 64px) var(--gutter) 0; }

.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--soft    { background: var(--badge-bg); color: var(--navy); }
.btn--light   { background: #fff; color: var(--navy); }
.btn--outline { background: #fff; color: var(--navy); border: 2px solid var(--navy); padding: 12px 26px; }
.btn--ghost   { background: transparent; color: #fff; border: 2px solid #4a6d90; padding: 12px 26px; }
.btn--sm      { padding: 10px 20px; font-size: 14px; font-weight: 600; border-radius: 6px; }

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.text-link {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
}

/* ---- Header / navigation ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  flex-wrap: wrap;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.brand__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.brand__name span { font-weight: 400; color: var(--muted); }
.brand__logo { height: 34px; width: auto; display: block; }

.main-nav {
  display: flex;
  gap: clamp(14px, 2vw, 32px);
  align-items: center;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 500;
}
.main-nav__link { text-decoration: none; color: #3d4a56; }
.main-nav__link.is-active { color: var(--navy); }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  background: var(--bg-alt);
  text-align: center;
  padding: clamp(48px, 7vw, 80px) var(--gutter) 56px;
}
.hero--home {
  background: linear-gradient(180deg, #f4f7fa 0%, #ffffff 100%);
  padding: clamp(48px, 8vw, 96px) var(--gutter) 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.hero__title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin: 0 auto 16px;
}
.hero__title--xl {
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.08;
  max-width: 920px;
  margin: 0;
}
.hero__lead {
  font-size: 17px;
  color: var(--body);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto;
}
.hero__lead--lg {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  margin: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 999px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

/* ---- Section headings ---------------------------------------------------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head > * { margin: 0; }
.section-head > * + * { margin-top: 14px; }

.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.section-lead {
  font-size: 17px;
  color: var(--body);
  line-height: 1.65;
}
.block-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

/* ---- Stat grid ----------------------------------------------------------- */
.stat-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: #fff; padding: 28px 20px; text-align: center; }
.stat__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.stat__value { font-size: 22px; font-weight: 800; color: var(--navy); }
.stat__value--green { color: var(--green); }

/* ---- Cards --------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card-grid--220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card-grid--300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card--pad-lg { padding: 28px; }
.card__heading { font-size: 19px; font-weight: 800; color: var(--navy); margin: 0 0 16px; }
.card__title { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 8px; }
.card__text { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0; }

/* Service summary card (icon + title + text) */
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.badge-abbr {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--navy);
  font-size: 13px;
}
.badge-abbr--lg { width: 48px; height: 48px; font-size: 14px; margin-bottom: 16px; }
.service-card__title { font-size: 17px; font-weight: 700; color: var(--navy); }
.service-card__desc { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ---- Prose --------------------------------------------------------------- */
.prose p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.75;
  margin: 0 0 16px;
}
.prose p:last-child { margin-bottom: 0; }

.note { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0 0 16px; }
.note--plain { margin: 0; }
.callout {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}
.note-sub { font-size: 12.5px; color: var(--muted-4); margin-top: 10px; }

/* ---- Bullet lists -------------------------------------------------------- */
.bullet-list { display: flex; flex-direction: column; gap: 10px; }
.bullet {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--muted-2);
  line-height: 1.5;
}
.bullet::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 8px;
  flex: none;
}

/* ---- Tags ---------------------------------------------------------------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--badge-bg);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---- About page ---------------------------------------------------------- */
.split-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.glance {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.glance__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.glance__list { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.glance__row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.glance__row:last-child { border-bottom: none; padding-bottom: 0; }
.glance__key { color: var(--muted); }
.glance__val { font-weight: 700; color: var(--navy); }
.glance__val--green { color: var(--green); }

.bio {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  flex: none;
}
.bio__body { flex: 1; min-width: 260px; }
.bio__name { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.bio__text { font-size: 15.5px; color: var(--body); line-height: 1.7; margin: 0 0 12px; }

/* ---- Services page ------------------------------------------------------- */
.service-list {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.service-row {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: start;
}
.service-row__title { font-size: 21px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.service-row__desc { font-size: 15px; color: var(--body); line-height: 1.65; margin: 0 0 16px; }
.caps {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 20px 24px;
}
.caps__label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* ---- CTA / capability bands ---------------------------------------------- */
.cta {
  background: var(--navy);
  text-align: center;
  padding: clamp(48px, 7vw, 72px) var(--gutter);
}
.cta__title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: #fff; margin: 0 0 12px; }
.cta__text { font-size: 16px; color: #c9d4de; margin: 0 0 28px; }

.capability {
  background: var(--bg-alt);
  text-align: center;
  padding: clamp(40px, 6vw, 64px) var(--gutter);
}
.capability__title { font-size: 22px; font-weight: 800; color: var(--navy); margin: 0 0 12px; }
.capability__text { font-size: 15px; color: var(--muted); margin: 0 0 24px; }

/* ---- Contact page -------------------------------------------------------- */
.contact-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: start;
}
.contact-aside { display: flex; flex-direction: column; gap: 24px; }
.panel-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.info-list { display: flex; flex-direction: column; gap: 16px; }
.info-item__label { font-size: 12.5px; color: var(--muted-4); margin-bottom: 4px; }
.info-item__value { font-size: 15.5px; font-weight: 700; color: var(--navy); }
.info-item__link { font-size: 15.5px; font-weight: 700; text-decoration: none; }

.profile-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
}
.profile-card__title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.profile-card__body { font-size: 13.5px; color: #c9d4de; line-height: 1.8; }

.form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--muted-2); }
.input, .textarea {
  border: 1px solid var(--border-input);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.textarea { resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--navy); }
.form .btn { align-self: flex-start; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 14px; font-weight: 600; }
.form-status--ok { color: var(--green); }
.form-status--err { color: #b3261e; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--navy-dark);
  color: var(--footer-text);
  padding: 48px var(--gutter) 28px;
  margin-top: auto;
}
.footer__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--navy-border);
}
.footer__brand { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer__logo { height: 30px; width: auto; margin-bottom: 12px; }
.footer__desc { font-size: 14px; line-height: 1.7; }
.footer__title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.footer__list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer__link { text-decoration: none; color: var(--footer-text); }
.footer__copy {
  max-width: 1100px;
  margin: 20px auto 0;
  font-size: 13px;
  color: var(--muted-3);
  text-align: center;
}

/* ---- Brand guidelines page ----------------------------------------------- */
.logo-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}
.logo-panel--light { background: #fff; }
.logo-panel--muted { background: var(--bg-alt); }
.logo-panel--dark { background: var(--navy-dark); border-color: var(--navy-dark); }
.logo-panel img { height: 52px; width: auto; }
.logo-panel__mark { height: 64px; width: auto; }

.swatch {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.swatch__chip { height: 84px; }
.swatch__chip--navy  { background: #0a2f5c; }
.swatch__chip--deep  { background: #071f3d; }
.swatch__chip--blue  { background: #1d6fc4; }
.swatch__chip--green { background: #1d8f4c; }
.swatch__chip--ink   { background: #1a2733; }
.swatch__chip--light { background: #f4f7fa; border-bottom: 1px solid var(--border); }
.swatch__meta { padding: 12px 14px; }
.swatch__name { font-size: 14px; font-weight: 700; color: var(--navy); }
.swatch__hex {
  font-size: 12.5px;
  color: var(--muted);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  text-transform: uppercase;
}
.caption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 720px) {
  .split-grid,
  .service-row,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
