/* css/style.css
   RNM Global Solutions — Static Site Design System
   - Dark / RNM blue UI
   - Green CTA + active nav outline
   - Shared header/footer compatible with partials
*/

:root{
  --bg0:#07121e;
  --bg1:#071a2c;
  --bg2:#0a2238;
  --card: rgba(255,255,255,0.05);
  --card2: rgba(255,255,255,0.035);
  --stroke: rgba(255,255,255,0.10);
  --stroke2: rgba(255,255,255,0.14);

  --text:#eaf2ff;
  --muted: rgba(234,242,255,0.70);

  --blue1:#0b2a45;
  --blue2:#0c3454;

  --green1:#22c55e;
  --green2:#16a34a;
  --greenGlow: rgba(34,197,94,0.32);

  --shadow: 0 18px 50px rgba(0,0,0,0.45);
  --shadow2: 0 12px 30px rgba(0,0,0,0.35);

  --radius:18px;
  --radius2:22px;

  --container: 1120px;
}

/* Base */
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(46,134,193,0.22), transparent 60%),
    radial-gradient(800px 500px at 85% 20%, rgba(34,197,94,0.10), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 45%, var(--bg0));
  line-height:1.45;
}

a{ color: #9ad6ff; text-decoration:none; }
a:hover{ color:#c5e9ff; }

.container{
  width: min(var(--container), calc(100% - 44px));
  margin: 0 auto;
}

/* Shared Header */
.navbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 18, 30, 0.62);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding: 14px 0;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}

.logo-mark{
  width:44px;
  height:44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.logo-mark img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* If you want the full logo instead of icon, swap header markup and use this:
.logo-mark img{ object-fit: contain; padding:6px; }
*/

.logo-text strong{
  display:block;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.logo-text span{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Nav */
.nav-links{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:center;
  flex:1;
}

.nav-links a{
  color: rgba(234,242,255,0.80);
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: 180ms ease;
}

.nav-links a:hover{
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
  color: #ffffff;
}

/* ✅ Active nav highlight with green surrounding line */
.nav-links a.active{
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.65);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.10);
  color: #eafff2;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 11px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  transition: 160ms ease;
  white-space: nowrap;
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  color: #062011;
  background: linear-gradient(180deg, var(--green1), var(--green2));
  border-color: rgba(34,197,94,0.55);
  box-shadow: 0 16px 40px var(--greenGlow), 0 12px 26px rgba(0,0,0,0.45);
}

.btn-primary:hover{
  filter: brightness(1.05);
  box-shadow: 0 18px 50px rgba(34,197,94,0.36), 0 12px 26px rgba(0,0,0,0.45);
}

.btn-outline{
  color: #cfeaff;
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.14);
}
.btn-outline:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.20);
}

/* Sections */
.hero{
  padding: 64px 0 26px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(234,242,255,0.78);
  font-size: 12px;
}

.hero h1{
  margin: 16px 0 10px;
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-sub{
  margin: 0 0 18px;
  max-width: 820px;
  font-size: 16px;
  color: var(--muted);
}

.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 14px;
}

.hero-meta{
  margin-top: 12px;
  color: rgba(234,242,255,0.72);
  font-size: 13px;
  line-height: 1.6;
}

.section{
  padding: 26px 0;
}

.section h2{
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.section p{
  color: var(--muted);
}

/* Layout grids */
.grid{
  display:grid;
  gap: 14px;
}

.grid-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cards */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow2);
}

.card h3{
  margin: 0 0 8px;
  font-size: 16px;
}

.card p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.metric{
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #eafff2;
  text-shadow: 0 0 20px rgba(34,197,94,0.12);
}

/* Lists */
ul{
  margin: 12px 0 0;
  padding-left: 18px;
}
li{
  margin: 8px 0;
  color: rgba(234,242,255,0.82);
}
li strong{ color:#ffffff; }

/* Footer */
.footer{
  margin-top: 34px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(6,18,30,0.45);
  color: rgba(234,242,255,0.70);
  font-size: 13px;
}

/* Forms (if you later add form inputs) */
input, textarea, select{
  width:100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 12px 12px;
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus, select:focus{
  border-color: rgba(34,197,94,0.55);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.10);
}

/* Responsive */
@media (max-width: 980px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }

  .nav-links{
    gap: 6px;
    justify-content:flex-end;
  }
  .logo-text span{ display:none; }
}

@media (max-width: 720px){
  .navbar-inner{
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-links{
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-top: 10px;
  }

  .btn{ width: auto; }
}