/* gtpcorp.com: styles for the redesigned pages (index.php, contact.php via inc/top.php).
   Tokens match the GTP family (my.gtp.pics, gtp.pics, kiosk; see demo/public/assets/site.css). */

:root {
  --blue: #4797ec;
  --blue-deep: #1a5fc4;
  --purple: #884beb;
  --grad: linear-gradient(45deg, #4797ec, #884beb 80%);
  --grad-deep: linear-gradient(45deg, #1a5fc4, #7340d8);
  --ink: #2e3842;
  --text: #3a3a3a;
  --muted: #6e7380;
  --bg: #ffffff;
  --alt: #f5f7fc;
  --tint: #eef4fd;
  --line: rgb(46 56 66 / 10%);
  --shadow: 0 1px 2px rgb(20 30 50 / 6%), 0 18px 40px -18px rgb(20 30 50 / 35%);
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --r: 18px;
  --font: "IBM Plex Sans", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-underline-offset: 0.2em; }
a:hover { color: var(--purple); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.6rem; }
h1 { font-weight: 300; font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-weight: 300; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-weight: 500; font-size: 1.15rem; }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow--light { background: none; color: rgb(255 255 255 / 85%); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 0.85rem 1.6rem; border-radius: 999px;
  font-weight: 500; text-decoration: none; letter-spacing: 0.02em;
  background: var(--grad); color: #fff; border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--small { padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.btn--light { background: #fff; color: var(--blue-deep); }
.btn--light:hover { color: var(--purple); }
.btn--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 70%); }
.btn--ghost:hover { background: rgb(255 255 255 / 12%); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 88%);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; flex-wrap: wrap; }
.brand img { width: auto; height: 3rem; }
.site-nav { display: flex; align-items: center; gap: clamp(0.75rem, 2.5vw, 2rem); flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.site-nav a:not(.btn):hover { color: var(--purple); }
.site-header__inner > .site-nav { margin-left: auto; }
.header-cta { flex: none; }
/* Phones: logo and Contact on the first row, the four links spread across the second */
@media (max-width: 640px) {
  .site-header__inner { padding-top: 0.5rem; padding-bottom: 0.6rem; gap: 0.5rem 1rem; }
  .brand img { height: 2.4rem; }
  .brand { order: 1; }
  .header-cta { order: 2; }
  .site-header__inner > .site-nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; gap: 0.5rem; }
  .site-nav a:not(.btn), .nav-more summary { font-size: 0.92rem; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; min-height: min(78vh, 44rem); display: flex; align-items: center; background: var(--grad-deep); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(45deg, rgb(26 95 196 / 88%), rgb(115 64 216 / 72%)); }
.hero__content { position: relative; padding-top: clamp(4rem, 10vw, 7rem); padding-bottom: clamp(4rem, 10vw, 7rem); }
.hero h1 { color: #fff; max-width: 52rem; }
.hero .lead { color: rgb(255 255 255 / 90%); }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--alt); }
.section--tint { background: var(--tint); }
.section--try { background: var(--grad-deep); color: #fff; }
.section--try h2 { color: #fff; }
.section--try .lead { color: rgb(255 255 255 / 90%); }

/* Capability cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.5rem; margin-top: 2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
/* Fixed 16:10 frame: the image is positioned inside it, so tall images can't stretch the card */
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--alt); overflow: hidden; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.card__media--cover img { object-fit: cover; }
.card__media--contain img { inset: 1rem; width: calc(100% - 2rem); height: calc(100% - 2rem); object-fit: contain; }
.card__body { padding: 1.25rem 1.4rem 1.5rem; }
.card__body p { color: var(--muted); margin: 0; }

/* Why GTP */
.points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; }
.points li { position: relative; overflow: hidden; background: #fff; border-radius: var(--r); padding: 1.6rem 1.4rem 1.4rem; box-shadow: var(--shadow); }
.points li::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.points strong { display: block; color: var(--ink); font-weight: 500; font-size: 1.1rem; margin-bottom: 0.35rem; }
.points span { color: var(--muted); }

/* Try GTP */
.try { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: center; }
.try .actions { justify-content: flex-end; margin-top: 0; }
@media (max-width: 820px) { .try { grid-template-columns: 1fr; } .try .actions { justify-content: flex-start; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; margin-top: 2rem; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; }
.contact-card p, .contact-card address { margin: 0 0 0.35rem; font-style: normal; }
.contact-card a { font-weight: 500; }
.contact-card .note { color: var(--muted); font-size: 0.9rem; }

/* Footer */
.site-footer { background: var(--ink); color: rgb(255 255 255 / 75%); padding: 3rem 0 1.5rem; font-size: 0.95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #c9b4f7; }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer__brand img { width: auto; height: 3rem; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 0.75rem; }
.site-footer__links { display: flex; flex-direction: column; gap: 0.4rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 12%); font-size: 0.85rem; }
.site-footer__legal .status { margin-left: auto; }
.site-footer__legal .status img { height: 20px; width: auto; }
@media (max-width: 720px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__legal .status { margin-left: 0; }
}

/* ---------------------------------------------------------------- inner pages */

/* Page hero: a photo under the brand gradient, a little shorter than the home hero */
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--page { min-height: min(62vh, 34rem); }
.hero--page .hero__shade { background: linear-gradient(45deg, rgb(26 95 196 / 86%), rgb(115 64 216 / 66%)); }

/* About menu in the header */
.nav-more { position: relative; }
.nav-more summary { list-style: none; cursor: pointer; color: var(--ink); font-weight: 500; font-size: 0.98rem; display: flex; align-items: center; gap: 0.35rem; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: ""; width: 0.45rem; height: 0.45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s ease; }
.nav-more[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-more summary:hover, .nav-more.is-current summary { color: var(--purple); }
.nav-more__menu {
  position: absolute; right: 0; top: calc(100% + 0.75rem); min-width: 12rem; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 0.5rem; display: flex; flex-direction: column;
}
.nav-more__menu a { padding: 0.55rem 0.8rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-more__menu a:hover, .nav-more__menu a[aria-current="page"] { background: var(--tint); color: var(--blue-deep); }

/* Outline button for light backgrounds */
.btn--outline { background: transparent; color: var(--blue-deep); border-color: var(--blue); }
.btn--outline:hover { color: var(--purple); background: var(--tint); }

.prose { max-width: 46rem; }
.prose p { color: var(--text); }

/* Team */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 1.5rem; margin-top: 2rem; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.person img { width: calc(100% - 3rem); margin: 1.5rem auto 0; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--alt); }
.person__body { padding: 1.1rem 1.25rem 1.35rem; }
.person h3 { margin-bottom: 0.15rem; }
.person__role { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.6rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.person__bio { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* History timeline */
.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; position: relative; max-width: 52rem; }
.timeline::before { content: ""; position: absolute; left: 7.25rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--grad); opacity: 0.5; }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.5rem; padding: 0 0 2rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(7.25rem - 5px); top: 0.55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px #fff; }
.timeline__year { text-align: right; font-weight: 600; font-size: 1.05rem; line-height: 1.6;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.timeline li > div { padding-left: 1.25rem; }
.timeline h3 { margin-bottom: 0.25rem; }
.timeline p { color: var(--muted); margin: 0; }
@media (max-width: 640px) {
  .timeline::before { left: 0.35rem; }
  .timeline li { grid-template-columns: 1fr; gap: 0.15rem; padding-left: 2rem; }
  .timeline li::before { left: 0; }
  .timeline__year { text-align: left; }
  .timeline li > div { padding-left: 0; }
}

/* Partner testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1.5rem; margin-top: 2rem; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.quote__logo { height: 4rem; width: auto; max-width: 11rem; object-fit: contain; object-position: left center; }
.quote blockquote { margin: 0; flex: 1; }
.quote blockquote p { margin: 0; color: var(--text); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 500; }
.quote figcaption span { color: var(--muted); font-size: 0.9rem; }
