/* ============================================
   GB VERTEX TECHNOLOGIES — SHARED STYLES
   ============================================ */

:root {
  /* Colors — Carbon & Steel */
  --carbon-black: #0b0c0f;
  --carbon-surface: #16181d;
  --carbon-surface-2: #1d2026;
  --steel-blue: #3d6fb4;
  --steel-blue-light: #5c8fdb;
  --text-primary: #f2f3f5;
  --text-muted: #9ba0aa;
  --border-subtle: #24262c;

  /* Type */
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  --radius: 10px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--carbon-black);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: var(--space-sm);
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-blue-light);
  margin-bottom: var(--space-xs);
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--steel-blue);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(61, 111, 180, 0.5);
}

.btn-primary:hover {
  background: var(--steel-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(92, 143, 219, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  border-color: var(--steel-blue);
  color: var(--steel-blue-light);
  transform: translateY(-2px);
}

/* ============================================
   PAGE LOADER
   ============================================ */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--carbon-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.loader-logo span {
  color: var(--steel-blue-light);
}

.loader-bar {
  width: 160px;
  height: 2px;
  background: var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: var(--steel-blue);
  border-radius: 999px;
  animation: loaderFill 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderFill {
  0% {
    width: 0%;
  }
  60% {
    width: 80%;
  }
  100% {
    width: 100%;
  }
}

/* ============================================
   BACK TO TOP
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  z-index: 997;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--carbon-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity var(--transition),
    visibility var(--transition),
    transform var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--steel-blue);
  color: var(--steel-blue-light);
}

/* ============================================
   HEADER / NAV
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 12, 15, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--transition),
    background var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--border-subtle);
  background: rgba(11, 12, 15, 0.92);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-list {
  display: flex;
  gap: var(--space-md);
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--steel-blue-light);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle .bar {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.nav-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */

* {
  cursor: none;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--steel-blue-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.1s ease,
    background 0.2s ease,
    width 0.2s ease,
    height 0.2s ease;
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--steel-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    transform 0.12s ease,
    width 0.25s ease,
    height 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
  will-change: transform;
  opacity: 0.7;
}

/* Hover state — expands on interactive elements */
body.cursor-hover .cursor-dot {
  width: 10px;
  height: 10px;
  background: #fff;
}

body.cursor-hover .cursor-ring {
  width: 48px;
  height: 48px;
  border-color: var(--steel-blue-light);
  opacity: 1;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.5);
}

/* Hide on touch devices */
@media (hover: none) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
  * {
    cursor: auto;
  }
}

/* ============================================
   SCROLL REVEAL UTILITY
   ============================================ */

.reveal.reveal-init {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.reveal-init.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal.reveal-init {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   CTA BAND (shared across pages)
   ============================================ */

.cta-band {
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.cta-band p {
  margin-bottom: var(--space-md);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--carbon-surface);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.footer-brand p {
  margin-top: var(--space-xs);
  max-width: 280px;
  font-size: 0.9rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a,
.footer-col li {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--steel-blue-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-sm) 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-icon {
  flex-shrink: 0;
  color: var(--steel-blue-light);
}

/* ============================================
   RESPONSIVE — NAV
   ============================================ */

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--carbon-surface);
    border-left: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-lg) var(--space-md);
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
  }

  .nav-cta {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}
