/* ============================================================
   GCS Group — design tokens
   Night canvas + electric blue/cyan from the logo.
   Amber lives only in the photography.
   ============================================================ */
:root {
  --night: #0a0d13;
  --night-2: #10151f;
  --paper: #f5f7fa;
  --ink: #131b26;
  --muted: #5b6878;
  --muted-dark: #9aa7b8;
  --cyan: #4fd9f2;
  --blue: #2b5ce6;
  --line-dark: rgba(255, 255, 255, 0.1);
  --line-light: rgba(19, 27, 38, 0.1);

  --font-display: "Unbounded", sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;

  --container: 72rem;
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--night);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 600;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

p {
  margin: 0 0 1.25rem;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--cyan);
  color: var(--night);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--night);
  background: linear-gradient(120deg, var(--cyan), #7ce7f7);
  padding: 0.85rem 1.7rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 0 rgba(79, 217, 242, 0);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(79, 217, 242, 0.35);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  box-shadow: 0 6px 28px rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn--small {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

/* ============ Signature: ring motif ============ */
.ring-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 3px transparent, inset 0 0 0 2.5px currentColor;
  display: inline-block;
  position: relative;
  flex: none;
}

.ring-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  opacity: 0.7;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1.1rem;
}

.eyebrow--dark {
  color: var(--cyan);
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 19, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}

.nav.is-scrolled {
  background: rgba(10, 13, 19, 0.88);
  border-bottom-color: var(--line-dark);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-right: auto;
}

.nav__brand em {
  font-style: normal;
  font-weight: 500;
  color: var(--cyan);
}

.nav__links {
  display: flex;
  gap: 1.6rem;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav__links a:hover {
  color: var(--cyan);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* pull content up under the sticky nav */
  margin-top: -60px;
  padding-top: 60px;
}

.hero__bg,
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(10, 13, 19, 0.92) 20%, rgba(10, 13, 19, 0.55) 55%, rgba(10, 13, 19, 0.25) 100%),
    linear-gradient(to top, var(--night) 0%, transparent 30%);
}

.hero__inner {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem 1.25rem 7rem;
  width: 100%;
  color: #fff;
}

.hero__sub {
  max-width: 34rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.2rem;
}

.hero__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.glow {
  background: linear-gradient(100deg, var(--cyan) 10%, #6f8dff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(79, 217, 242, 0.45));
}

/* Concentric rings — echo of the GCS logo */
.hero__rings {
  position: absolute;
  z-index: 2;
  right: -12rem;
  top: 50%;
  transform: translateY(-50%);
  width: 56rem;
  height: 56rem;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero__rings i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  opacity: 0.5;
  animation: ring-in 1.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.hero__rings i:nth-child(2) {
  inset: 11%;
  border-color: var(--blue);
  border-width: 2px;
  animation-delay: 0.15s;
}

.hero__rings i:nth-child(3) {
  inset: 24%;
  opacity: 0.65;
  animation-delay: 0.3s;
}

.hero__rings i:nth-child(4) {
  inset: 39%;
  border-color: var(--blue);
  border-width: 2.5px;
  box-shadow: 0 0 60px rgba(79, 217, 242, 0.25), inset 0 0 60px rgba(43, 92, 230, 0.25);
  animation-delay: 0.45s;
}

@keyframes ring-in {
  from {
    transform: scale(0.86);
    opacity: 0;
  }
}

/* ============ Sections ============ */
.section {
  padding: 5.5rem 0;
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--night {
  background: var(--night);
  color: rgba(255, 255, 255, 0.88);
}

.section--night h2 {
  color: #fff;
}

.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section__lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ============ Solution cards ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(19, 27, 38, 0.12);
}

.card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__body {
  padding: 1.6rem 1.7rem 1.9rem;
}

.card__body h3 {
  color: var(--blue);
  margin-bottom: 0.7rem;
}

.card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ============ About ============ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about__media {
  position: relative;
  padding-bottom: 4.5rem;
}

.about__photo {
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  object-fit: cover;
}

.about__photo--main {
  width: 88%;
  aspect-ratio: 4 / 5;
}

.about__photo--offset {
  position: absolute;
  width: 62%;
  aspect-ratio: 3 / 4;
  right: -1rem;
  bottom: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 2.2rem;
  display: grid;
  gap: 0.85rem;
}

.checklist li {
  padding-left: 2rem;
  position: relative;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: -4px;
  top: calc(0.42em - 4px);
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid rgba(43, 92, 230, 0.6);
}

.arrow-link {
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 217, 242, 0.4);
  padding-bottom: 2px;
}

.arrow-link::after {
  content: " \2192";
}

.arrow-link:hover {
  border-bottom-color: var(--cyan);
}

/* ============ Process steps ============ */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.step {
  border-top: 2px solid var(--line-light);
  padding-top: 1.4rem;
  position: relative;
}

.step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 3.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue);
  display: block;
  margin-bottom: 0.8rem;
}

.step h3 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ============ Contact ============ */
.contact {
  position: relative;
  overflow: hidden;
}

.hero__rings--contact {
  width: 44rem;
  height: 44rem;
  right: auto;
  left: -18rem;
  opacity: 0.55;
}

.contact__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: start;
}

.contact__channels {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.4rem;
}

.contact__channels li {
  display: grid;
  gap: 0.15rem;
}

.contact__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.contact__channels a {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
}

.contact__channels a:hover {
  color: var(--cyan);
}

.contact__form {
  background: var(--night-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-dark);
}

.field input,
.field textarea {
  font: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s, background 0.15s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(79, 217, 242, 0.06);
}

.field textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.field ::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact__form .btn {
  justify-self: start;
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--cyan);
  min-height: 1.4em;
}

/* ============ Footer ============ */
.footer {
  background: #070a0f;
  color: var(--muted-dark);
  border-top: 1px solid var(--line-dark);
  padding: 3.5rem 0 2rem;
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.footer__brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer__brand strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
}

.footer__brand p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.footer__nav,
.footer__contact {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
}

.footer__nav a,
.footer__contact a {
  color: var(--muted-dark);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: var(--cyan);
}

.footer__legal {
  max-width: var(--container);
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.25rem 0;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
}

/* ============ Reveal on scroll ============ */
/* Only hide reveal targets when JS is running (html.js), so content
   is never invisible if scripts fail to load. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  html.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__rings i {
    animation: none;
  }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__rings {
    right: -22rem;
    opacity: 0.65;
  }
}

@media (max-width: 760px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 13, 19, 0.97);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.5rem 0 1rem;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    padding: 0.8rem 1.5rem;
  }

  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .section {
    padding: 4rem 0;
  }

  .hero__inner {
    padding: 5rem 1.25rem 5.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about__media {
    padding-bottom: 3.5rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
