/* =========================================================
   Shared page-level styles for the bespoke content pages that
   are NOT product pages — about.html, contact.html, services.html.
   Loaded alongside css/style.css + css/mega-menu.css (same base
   every page already shares); this file only adds what those three
   pages need beyond the existing site-wide component library
   (.section, .container, .badge, .section-head, .about-banner,
   .about-support, .team-grid, .trust-strip, .stack-list/.stack-card,
   .cta-section/.cta-contact-grid are all reused as-is from style.css).
========================================================== */

.pg-main { position: relative; z-index: 1; }

/* Scroll-reveal for these 3 pages only — see js/page-transition.js's
   initPgReveal(). Deliberately a different class from index.html's
   .reveal/.reveal-left/.reveal-right (those are owned by script.js's
   GSAP batch and never load on this page). -left/-right give
   side-by-side image+copy blocks an opposing entrance instead of both
   just fading up; the blur adds the same soft "blend in" materialize
   index.html's own .reveal family got. */
.pg-reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.7s var(--ease-fluid, ease), transform 0.7s var(--ease-fluid, ease), filter 0.7s var(--ease-fluid, ease); }
.pg-reveal.is-in { opacity: 1; transform: none; filter: none; }
.pg-reveal-left { opacity: 0; transform: translateX(-40px); filter: blur(6px); transition: opacity 0.7s var(--ease-fluid, ease), transform 0.7s var(--ease-fluid, ease), filter 0.7s var(--ease-fluid, ease); }
.pg-reveal-left.is-in { opacity: 1; transform: none; filter: none; }
.pg-reveal-right { opacity: 0; transform: translateX(40px); filter: blur(6px); transition: opacity 0.7s var(--ease-fluid, ease), transform 0.7s var(--ease-fluid, ease), filter 0.7s var(--ease-fluid, ease); }
.pg-reveal-right.is-in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .pg-reveal, .pg-reveal-left, .pg-reveal-right { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---- Page hero (About / Contact / Services) ---- */
.pg-hero { padding: 150px 0 70px; }
.pg-hero .container { max-width: 820px; }
.pg-crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.5px;
  color: var(--ink-soft); margin-bottom: 26px;
}
.pg-crumb a { color: var(--ink-soft); text-decoration: none; transition: color 0.25s ease; }
.pg-crumb a:hover { color: var(--accent-ink); }
.pg-crumb .crumb-sep { width: 12px; height: 12px; opacity: 0.5; }
.pg-crumb .is-current { color: var(--ink); }
.pg-hero h1 { font-size: 52px; font-weight: 500; letter-spacing: -0.5px; line-height: 1.12; color: var(--ink); margin: 18px 0 20px; }
.pg-hero h1 em { font-style: normal; color: var(--accent-ink); }
.pg-hero-lead { font-size: 17px; line-height: 1.65; color: var(--ink-soft); max-width: 640px; }
.pg-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
@media (max-width: 767px) {
  .pg-hero { padding: 120px 0 46px; }
  .pg-hero h1 { font-size: 34px; }
}

/* ---- inline stat chips under a hero ---- */
.pg-hero-chips { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px; }
.pg-hero-chip { display: flex; flex-direction: column; }
.pg-hero-chip span { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--accent-ink); }
.pg-hero-chip em { font-style: normal; font-size: 12px; color: var(--ink-soft); letter-spacing: 0.3px; }

/* ---- Values grid (About) ---- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card {
  padding: 30px 26px; border-radius: 18px;
  background: var(--glass-bg, rgba(255,255,255,0.06)); border: 1px solid var(--glass-border, rgba(255,255,255,0.14));
  box-shadow: var(--elevation-2);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.value-card:hover { transform: translateY(-6px); border-color: var(--accent-ink); box-shadow: var(--shadow-elevate); }
.value-card-ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(91,143,224,0.12); color: var(--accent-ink); font-size: 18px; margin-bottom: 18px; box-shadow: var(--elevation-1); }
.value-card h3 { font-size: 17px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.value-card p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
@media (max-width: 1024px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .value-grid { grid-template-columns: 1fr; } }

/* ---- Offices / locations (About + Contact) ---- */
.offices-band { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 40px; align-items: center; }
/* Padding matches .presence-map (index.html's version of this same map)
   so the pin labels have room and aren't clipped by overflow: hidden —
   see css/style.css for the .presence-map-frame/.presence-pin rules
   shared by both, and the pin coordinates in about.html/contact.html
   which must stay identical to index.html's. */
.offices-map { border-radius: 20px; overflow: hidden; border: 1px solid var(--glass-border, rgba(255,255,255,0.14)); background: var(--glass-bg); padding: 24px; box-shadow: var(--elevation-2); }
.offices-map img:not(.presence-map-img) { width: 100%; height: auto; display: block; }
.office-card {
  padding: 26px 24px; border-radius: 16px;
  background: var(--glass-bg, rgba(255,255,255,0.06)); border: 1px solid var(--glass-border, rgba(255,255,255,0.14));
  box-shadow: var(--elevation-1);
}
.office-card h4 { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); margin-bottom: 12px; }
.office-card h4 i { color: var(--accent-ink); }
.office-card p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 6px; }
.office-card a { color: var(--ink-soft); text-decoration: none; }
.office-card a:hover { color: var(--accent-ink); }
@media (max-width: 1024px) { .offices-band { grid-template-columns: 1fr; } }

/* ---- Contact page ---- */
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 48px; align-items: start; }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
  padding: 38px; border-radius: 22px;
  background: var(--glass-bg, rgba(255,255,255,0.06)); border: 1px solid var(--glass-border, rgba(255,255,255,0.14));
  box-shadow: var(--elevation-2);
}
.contact-form h3 { font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.contact-form-sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row.form-row-single { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; min-width: 0; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--font-body, inherit); font-size: 14.5px; color: var(--ink);
  background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 10px;
  padding: 13px 15px; outline: none; transition: border-color 0.25s ease, background 0.25s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--input-placeholder); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-ink); background: var(--input-bg-focus); }
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b8fe0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field-note { font-size: 12px; color: var(--ink-soft); opacity: 0.7; margin-top: 2px; }
.contact-form .btn { margin-top: 6px; width: 100%; justify-content: center; }
.contact-form-status { margin-top: 16px; font-size: 13px; color: var(--accent-ink); display: none; }
.contact-form-status.is-visible { display: block; }

.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-side .office-card { display: flex; flex-direction: column; }

@media (max-width: 640px) {
  .contact-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---- Services hub ---- */
.svc-intro-band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 20px; }
.svc-intro-band p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
@media (max-width: 900px) { .svc-intro-band { grid-template-columns: 1fr; } }

/* ---- Capabilities grid (Services page only) ----
   Services page's 9 capability cards, laid out as a plain grid so
   every card is its own separate, fully visible card instead of
   style.css's default sticky-stacking .stack-card behavior (still
   used as-is on the homepage — this only applies inside the extra
   .stack-grid class added on page-services.php's wrapper, so the
   homepage's own .stack-list is untouched).
   Tilt (js/script.js's .tilt-card mousemove effect) is left exactly
   as-is; hover here only raises the shadow and glows the border in
   the card's own --card-accent, so nothing here fights tilt's own
   inline transform. Every color is an existing themed token, so this
   already matches both the light and dark color modes. */
.stack-grid.stack-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.stack-grid .stack-card {
  position: static;
  top: auto;
  margin-bottom: 0;
  transition: box-shadow 0.4s var(--ease-fluid), border-color 0.4s var(--ease-fluid);
}
.stack-grid .stack-card:hover {
  border-color: color-mix(in srgb, var(--card-accent, var(--accent)) 45%, var(--glass-border));
  box-shadow: var(--shadow-elevate), 0 0 0 1px color-mix(in srgb, var(--card-accent, var(--accent)) 30%, transparent);
}
.stack-grid .stack-card-media { height: 150px; }
/* .stack-card-media-variant's text elements normally get a second
   40px inset on top of the card's own padding — sized for the old
   full-width banner card. A grid card is much narrower, so that
   doubled inset is removed here only. */
.stack-grid .stack-card-media-variant .stack-card-top,
.stack-grid .stack-card-media-variant h3,
.stack-grid .stack-card-media-variant p,
.stack-grid .stack-card-media-variant .stack-tags,
.stack-grid .stack-card-media-variant .stack-explore {
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 1024px) { .stack-grid.stack-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .stack-grid.stack-list { grid-template-columns: 1fr; } }

/* ---- Client-logo marquee, CSS-driven (index.html's own #trustTrack is
   animated by GSAP in script.js, which these pages don't load — the
   content markup is identical, duplicated twice, so the same -50%
   half-shift works for either engine). ---- */
.pg-marquee .trust-track { animation: pgMarquee 36s linear infinite; }
.pg-marquee:hover .trust-track { animation-play-state: paused; }
@keyframes pgMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pg-marquee .trust-track { animation: none; } }

.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.next-step { position: relative; padding: 28px 24px; border-radius: 16px; background: var(--glass-bg, rgba(255,255,255,0.06)); border: 1px solid var(--glass-border, rgba(255,255,255,0.14)); box-shadow: var(--elevation-1); }
.next-step-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent-ink); letter-spacing: 1px; }
.next-step h4 { font-size: 16px; color: var(--ink); margin: 10px 0 8px; }
.next-step p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin: 0; }
@media (max-width: 900px) { .next-steps { grid-template-columns: 1fr; } }
