/* ═══════════════════════════════════════════════
   INTEGRINDOS — Official Brand Stylesheet
   Colors: GSM Graphic Standard Manual 2026
   Font: Roboto (GSM-specified brand typeface)
═══════════════════════════════════════════════ */

/* ─── Variables ──────────────────────────────── */
:root {
  --blue:      #005F9C;   /* GSM main blue */
  --blue-mid:  #0D446E;   /* GSM secondary blue */
  --navy:      #0F2843;   /* GSM deep navy */
  --navy-d:    #08131F;   /* footer / deepest */
  --red:       #D92027;   /* GSM accent red */
  --white:     #FFFFFF;
  --off:       #F3F5F8;   /* light section bg */
  --text:      #1A2535;
  --muted:     #5E7080;
  --border:    rgba(0,0,0,0.08);
  --font:      'Roboto', sans-serif;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--text); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: inherit; }
button { font-family: var(--font); }

/* ─── Utility ────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.dark  { background: var(--navy); }
.mid   { background: var(--blue-mid); }
.light-bg { background: var(--off); }

/* ─── Section labels ─────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.label::before {
  content: '';
  display: block;
  width: 14px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}
.label-light { color: rgba(255,255,255,0.65); }

/* ─── Section headings ───────────────────────── */
.section-h {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.section-h.light { color: var(--white); }

.section-intro {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 56px;
}
.section-intro.light { color: rgba(255,255,255,0.65); }

/* ─── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 13px 28px;
  border-radius: 6px;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease),
              transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: #0074BE;
  border-color: #0074BE;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,95,156,0.35);
}
/* Ghost on light backgrounds (hero) */
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(15,40,67,0.28);
}
.btn-ghost:hover {
  border-color: rgba(15,40,67,0.6);
  background: rgba(15,40,67,0.04);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 36px; font-size: 0.95rem; margin-top: 40px; }

/* ═══════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════ */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 20px 0;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 13px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo { text-decoration: none; flex-shrink: 0; }

/* Default: transparent over white hero — badge invisible, no border */
.logo-badge {
  background: transparent;
  border-radius: 7px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  /* Default: dark text on white hero */
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 6px;
  letter-spacing: 0.025em;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--blue); background: rgba(0,95,156,0.06); }

.nav-links .nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  margin-left: 8px;
  padding: 9px 20px;
}
.nav-links .nav-cta:hover { background: #0074BE !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  /* Default: dark bars on white hero */
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  background: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 130px 0 90px;
}

/* Subtle warm gradient so white doesn't feel flat */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 65% 45%, rgba(0,95,156,0.05) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* Oversized logo watermark — from GSM poster/folder aesthetic */
.hero-watermark {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: 56vw;
  max-width: 760px;
  aspect-ratio: 1;
  background: url('logo-transparent.png') no-repeat center bottom / contain;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 16px 0 26px;
  max-width: 680px;
}

.hero-sub {
  font-size: 1.12rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 44px;
  max-width: 480px;
}
.hero-sub strong { color: var(--navy); font-weight: 500; }

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, rgba(15,40,67,0.3));
  animation: drop 2s ease-in-out infinite;
}
@keyframes drop {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); }
}

/* ═══════════════════════════════════════════════
   PHILOSOPHY
═══════════════════════════════════════════════ */
#about {
  background: var(--off);
  padding: 100px 0;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 32px 40px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

.pillar-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--bar-color, var(--blue));
}

.pillar-num {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(0,95,156,0.1);
  line-height: 1;
  margin-bottom: 20px;
}

.pillar h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.pillar p {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.78;
}

/* ═══════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════ */
#services { padding: 100px 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.svc-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 36px 30px 40px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.svc-card:hover {
  border-color: var(--blue);
  background: rgba(0,95,156,0.08);
  transform: translateY(-4px);
}

.svc-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin-bottom: 22px;
}
.svc-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.svc-card p {
  font-size: 0.915rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.78;
}

/* ═══════════════════════════════════════════════
   SOLUTIONS
═══════════════════════════════════════════════ */
#solutions {
  background: var(--white);
  padding: 100px 0;
}

.solutions-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
}

.solutions-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 36px;
}

.features { display: flex; flex-direction: column; gap: 22px; }

.features li { display: flex; gap: 16px; align-items: flex-start; }

.ftag {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--blue);
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 2px;
  min-width: 58px;
  text-align: center;
}

.features strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.features p { font-size: 0.875rem; color: var(--muted); line-height: 1.68; margin: 0; }

/* Orbital visualization */
.solutions-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb-wrap {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  border-color: var(--blue);
}
.orb-1 {
  width: 186px; height: 186px;
  border-width: 1.5px;
  border-style: dashed;
  opacity: 0.85;
  animation: orbit 14s linear infinite;
}
.orb-2 {
  width: 258px; height: 258px;
  border-width: 1px;
  border-color: var(--blue-mid);
  border-style: dotted;
  opacity: 0.5;
  animation: orbit 22s linear infinite reverse;
}
.orb-3 {
  width: 330px; height: 330px;
  border-width: 1px;
  border-color: rgba(0,95,156,0.25);
  opacity: 0.4;
  animation: orbit 34s linear infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }

.orb-core {
  position: relative;
  z-index: 2;
  width: 116px; height: 116px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 12px rgba(0,95,156,0.12), 0 0 40px rgba(0,95,156,0.4);
}
.orb-core span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.orb-core small {
  font-size: 0.62rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 5px;
}

/* ═══════════════════════════════════════════════
   ECOSYSTEM
═══════════════════════════════════════════════ */
#ecosystem { padding: 100px 0; }

.eco-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: center;
  margin-top: 8px;
}

.eco-svg { width: 100%; }

/* SVG element styles */
.eco-line {
  stroke: rgba(255,255,255,0.3);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
  animation: dash 3.5s linear infinite;
}
@keyframes dash { from { stroke-dashoffset: 110; } to { stroke-dashoffset: 0; } }

.eco-pulse {
  fill: none;
  stroke: rgba(255,255,255,0.22);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse-ring 2.8s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.55); opacity: 0; }
}

.eco-ct {
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  fill: var(--white);
}

.eco-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: node-breathe 4s ease-in-out infinite;
}
@keyframes node-breathe {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}

.eco-nt {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 500;
  fill: rgba(255,255,255,0.88);
}

/* Legend */
.eco-legend { display: flex; flex-direction: column; gap: 22px; }
.eco-item { display: flex; gap: 14px; align-items: flex-start; }
.eco-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue-mid);
  box-shadow: 0 0 8px rgba(255,255,255,0.2);
  flex-shrink: 0;
  margin-top: 4px;
}
.eco-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.eco-item span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════
   STAKEHOLDERS
═══════════════════════════════════════════════ */
#stakeholders {
  background: var(--off);
  padding: 100px 0;
}

.stakeholders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.s-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 26px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  border-bottom: 3px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.s-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.1);
  border-bottom-color: var(--blue);
}

.s-icon {
  width: 50px; height: 50px;
  background: rgba(0,95,156,0.07);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.s-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.s-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.72; }

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
.contact-section { padding: 100px 0; text-align: center; }

.contact-row {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s;
}
.contact-link:hover { color: var(--white); }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer {
  background: var(--navy-d);
  padding: 60px 0 44px;
  text-align: center;
}

.footer-logo {
  height: 52px;
  margin: 0 auto 22px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-pillars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.fp-sep { color: var(--blue); opacity: 0.9; font-size: 0.8rem; }

.footer-co {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 6px;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.2); }

/* ═══════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .solutions-layout { grid-template-columns: 1fr; gap: 56px; }
  .solutions-visual { order: -1; }
  .orb-wrap { width: 280px; height: 280px; }
  .orb-3 { width: 272px; height: 272px; }
  .eco-wrap { grid-template-columns: 1fr; gap: 40px; }
  .eco-legend { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .eco-item { flex: 1; min-width: 160px; }
  .stakeholders-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  section { padding: 72px 0; }
  .contact-section { padding: 72px 0; }

  /* Mobile nav */
  .hamburger { display: flex; }
  .nav-inner { flex-wrap: wrap; gap: 0; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    padding: 12px 24px 20px;
    gap: 2px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }

  /* Hero */
  .hero-content { padding: 0 24px; }
  .hero-content h1 { font-size: 2.1rem; }
  .hero-watermark { width: 100vw; right: -20%; opacity: 0.05; }
  .hero-btns { flex-direction: column; align-items: flex-start; }

  /* Grids */
  .pillars      { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stakeholders-grid { grid-template-columns: 1fr; }

  /* Solutions */
  .solutions-visual { display: none; }

  /* Ecosystem */
  .eco-legend { flex-direction: column; }

  /* Contact */
  .contact-row { flex-direction: column; align-items: center; gap: 20px; }

  /* Nav inner on mobile */
  .nav-inner { padding: 0 24px; position: relative; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .section-h { font-size: 1.7rem; }
  .pillar { padding: 28px 24px 32px; }
  .svc-card { padding: 28px 24px 32px; }
}
