/* =========================================================
   Rainier IT — NVIDIA Design System
   Based on: DESIGN.md (NVIDIA-inspired)
   ========================================================= */

:root {
  --green: #76b900;
  --green-light: #bff230;
  --black: #000000;
  --white: #ffffff;
  --near-black: #1a1a1a;
  --gray-300: #a7a7a7;
  --gray-400: #898989;
  --gray-500: #757575;
  --gray-border: #5e5e5e;
  --link-hover: #3860be;
  --btn-hover: #1eaedb;
  --btn-active: #007fff;
  --font: Arial, Helvetica, sans-serif;
  --radius: 2px;
  --shadow: rgba(0, 0, 0, 0.3) 0px 0px 5px 0px;
  --shadow-heavy: rgba(0, 0, 0, 0.55) 0px 0px 16px 0px;
  --nav-h: 72px;
  --container: 1200px;
}

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

/* ---- Container ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Section helpers ---- */
.section-dark  { background: var(--black); }
.section-light { background: var(--white); color: var(--black); }
.section-near  { background: var(--near-black); }
.section-pad   { padding: 80px 0; }
.section-pad-sm { padding: 48px 0; }

.section-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 12px;
}

/* ---- Typography ---- */
h1 { font-size: 36px; font-weight: 700; line-height: 1.2; }
h2 { font-size: 24px; font-weight: 700; line-height: 1.25; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
h4 { font-size: 16px; font-weight: 700; line-height: 1.25; }
p  { font-size: 16px; line-height: 1.5; }

.display { font-size: clamp(32px, 4.5vw, 52px); font-weight: 700; line-height: 1.15; }
.lead     { font-size: 18px; line-height: 1.67; }
.small    { font-size: 14px; line-height: 1.5; }
.micro    { font-size: 12px; line-height: 1.5; }

.text-muted  { color: var(--gray-300); }
.text-muted2 { color: var(--gray-500); }
.text-green  { color: var(--green); }
.text-white  { color: var(--white); }
.text-black  { color: var(--black); }
.text-center { text-align: center; }
.uppercase   { text-transform: uppercase; letter-spacing: 0.08em; }
.bold        { font-weight: 700; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  background: transparent;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.btn:hover  { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--white); }
.btn:active { background: var(--btn-active); border-color: var(--btn-active); }

.btn-dark { color: var(--black); }
.btn-dark:hover { color: var(--white); }

.btn-sm {
  font-size: 14px;
  padding: 8px 16px;
  letter-spacing: 0.08em;
}

/* ---- Navigation ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--black);
  border-bottom: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 50px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  gap: 0;
}

.nav-links > li > a {
  display: block;
  padding: 8px 12px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.18s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--link-hover); }

/* Dropdown */
.nav-dd { position: relative; }
.nav-dd > a { display: flex; align-items: center; gap: 5px; }
.nav-dd > a .caret {
  font-size: 9px;
  transition: transform 0.18s;
  display: inline-block;
}
.nav-dd:hover > a .caret { transform: rotate(180deg); }

.dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: var(--near-black);
  border: 1px solid var(--gray-border);
  border-top: 2px solid var(--green);
  min-width: 230px;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
  z-index: 1001;
  overflow: hidden;
}
.nav-dd:hover .dd-menu { display: block; }

.dd-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--gray-300);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid #222;
  transition: color 0.18s, background 0.18s;
}
.dd-menu li:last-child a { border-bottom: none; }
.dd-menu a:hover { color: var(--green); background: rgba(118,185,0,0.06); }

.nav-actions { display: flex; align-items: center; }

.mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* ---- Hero ---- */
.hero {
  background: var(--black);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Dot-grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(118,185,0,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

/* Green bottom rule */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
}

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--green);
}
.hero-eyebrow span {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
}

.hero h1 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  max-width: 760px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero .hero-sub {
  font-size: 18px;
  line-height: 1.67;
  color: var(--gray-300);
  max-width: 640px;
  margin-bottom: 40px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  color: var(--black);
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-heavy); transform: translateY(-2px); }

.card-dark {
  background: var(--near-black);
  color: var(--white);
  border: 1px solid var(--gray-border);
  box-shadow: none;
}
.card-dark:hover { border-color: var(--green); }

.card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--green);
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--link-hover); }

.card p { font-size: 15px; line-height: 1.67; color: var(--gray-500); }
.card-dark p { color: var(--gray-300); }

.card-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}
.card-dark .card-footer { border-top-color: #2e2e2e; }

.badge {
  display: inline-block;
  background: var(--green);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.card-icon {
  font-size: 22px;
  color: var(--green);
  margin-bottom: 16px;
}

/* ---- Grids ---- */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }

/* ---- Section header ---- */
.section-hd { margin-bottom: 48px; }
.section-hd h2 { font-size: 32px; margin-bottom: 14px; }
.section-hd p   { font-size: 18px; line-height: 1.67; color: var(--gray-500); max-width: 680px; }
.section-dark .section-hd p { color: var(--gray-300); }

/* ---- Process / Steps ---- */
.step-num {
  width: 48px;
  height: 48px;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  font-family: var(--font);
  background: transparent;
}

.step-item { display: flex; flex-direction: column; gap: 14px; }
.step-item h3 { font-size: 18px; }

/* ---- Announcement bar ---- */
.announce-bar {
  background: var(--near-black);
  border: 1px solid var(--gray-border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  gap: 48px;
  align-items: center;
}
.announce-item { flex: 1; }
.announce-item p { font-size: 15px; color: var(--gray-300); margin-top: 6px; }
.announce-item strong { color: var(--white); font-size: 16px; font-weight: 700; }
.announce-item a { color: var(--green); font-size: 14px; font-weight: 700; text-decoration: none; display: inline-block; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.announce-item a:hover { color: var(--link-hover); }
.announce-price { color: var(--green); font-size: 20px; font-weight: 700; }
.announce-div { width: 1px; background: var(--gray-border); height: 64px; flex-shrink: 0; }

/* ---- Sub-services ---- */
.sub-service {
  padding: 20px 24px;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.18s;
}
.sub-service:hover { border-color: var(--green); }
.sub-service h3 { font-size: 16px; margin-bottom: 8px; }
.sub-service h3 a { color: var(--black); text-decoration: none; }
.sub-service h3 a:hover { color: var(--link-hover); }
.sub-service p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ---- Footer ---- */
.site-footer { background: var(--black); border-top: 1px solid var(--gray-border); }

.footer-cta {
  background: var(--near-black);
  border-bottom: 1px solid var(--gray-border);
  padding: 56px 0;
  text-align: center;
}
.footer-cta h2 { font-size: 28px; margin-bottom: 12px; }
.footer-cta p  { color: var(--gray-300); font-size: 16px; margin-bottom: 28px; }

.footer-body { padding: 60px 0 32px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}

.footer-col > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-400);
  margin-bottom: 0;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--green); }

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--gray-400);
}
.contact-row i { color: var(--green); width: 14px; text-align: center; margin-top: 2px; font-size: 13px; }
.contact-row a { color: var(--gray-400); text-decoration: none; transition: color 0.18s; }
.contact-row a:hover { color: var(--green); }

.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.socials a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.socials a:hover { color: var(--white); border-color: var(--green); background: rgba(118,185,0,0.08); }

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 16px;
  transition: color 0.18s;
}
.status-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2s infinite;
}
.status-dot:hover { color: var(--link-hover); }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.35; } }

.footer-bottom {
  border-top: 1px solid #1d1d1d;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--gray-500); }

.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: var(--gray-500); text-decoration: none; transition: color 0.18s; }
.footer-legal a:hover { color: var(--green); }

/* ---- Chat Widget ---- */
#chat-widget-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: var(--black);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  z-index: 9998;
  transition: background 0.18s, border-color 0.18s;
}
#chat-widget-button:hover { background: var(--btn-hover); border-color: var(--btn-hover); }

#chat-widget-window {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 520px;
  max-height: calc(100vh - 110px);
  background: var(--black);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(8px);
  opacity: 0;
  visibility: hidden;
  transform-origin: bottom right;
  transition: transform 0.2s, opacity 0.2s, visibility 0.2s;
  z-index: 9999;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
}
#chat-widget-window.open { transform: scale(1) translateY(0); opacity: 1; visibility: visible; }

.chat-hd {
  background: var(--near-black);
  border-bottom: 2px solid var(--green);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.chat-hd-text {}
.chat-hd-name { font-size: 15px; font-weight: 700; color: var(--white); }
.chat-hd-sub  { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); margin-top: 2px; }

.chat-x {
  background: none;
  border: 1px solid var(--gray-border);
  color: var(--gray-400);
  cursor: pointer;
  width: 26px;
  height: 26px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: color 0.18s, border-color 0.18s;
}
.chat-x:hover { color: var(--white); border-color: var(--white); }

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: var(--black);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#chat-messages::-webkit-scrollbar { width: 3px; }
#chat-messages::-webkit-scrollbar-track { background: var(--near-black); }
#chat-messages::-webkit-scrollbar-thumb { background: var(--gray-border); }

.chat-input-row {
  padding: 12px 14px;
  background: var(--near-black);
  border-top: 1px solid var(--gray-border);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.chat-input-row input {
  flex: 1;
  background: var(--black);
  border: 1px solid var(--gray-border);
  color: var(--white);
  padding: 9px 14px;
  font-family: var(--font);
  font-size: 14px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.18s;
}
.chat-input-row input:focus { border-color: var(--green); }
.chat-input-row input::placeholder { color: var(--gray-500); }

.chat-send {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--white);
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.18s, border-color 0.18s;
}
.chat-send:hover { background: var(--btn-hover); border-color: var(--btn-hover); }

#chat-widget-notification {
  position: fixed;
  bottom: 88px;
  right: 24px;
  background: var(--near-black);
  border: 1px solid var(--green);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  cursor: pointer;
  z-index: 9997;
  max-width: 260px;
  transform: translateY(6px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.2s, opacity 0.2s, visibility 0.2s;
}
#chat-widget-notification.show { transform: translateY(0); opacity: 1; visibility: visible; }
#chat-widget-notification p { font-size: 14px; color: var(--white); line-height: 1.4; }

/* ---- About page specifics ---- */
.about-hero {
  background: var(--black);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--green);
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(118,185,0,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.founder-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}
.founder-photo {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border: 3px solid var(--green);
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow);
}
.founder-sig {
  font-size: 15px;
  font-style: italic;
  color: var(--gray-400);
  margin-top: 20px;
  text-align: right;
  padding-right: 40px;
}

.values-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

.value-card {
  padding: 24px;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.18s;
}
.value-card:hover { border-color: var(--green); }
.value-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--black); display: flex; align-items: center; gap: 10px; }
.value-card h3 i { color: var(--green); font-size: 16px; }
.value-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

.divider {
  border: none;
  border-top: 1px solid var(--gray-border);
  margin: 40px 0;
}
.green-rule { border-top-color: var(--green); border-top-width: 2px; }

/* ---- Utilities ---- */
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8  { margin-top: 8px;  }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px;  }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4  { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--black);
    border-bottom: 2px solid var(--green);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 0;
    z-index: 999;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a {
    padding: 13px 0;
    border-bottom: 1px solid #1a1a1a;
    font-size: 14px;
  }
  .dd-menu {
    position: static;
    background: #0d0d0d;
    border: none;
    border-left: 2px solid var(--green);
    margin: 4px 0 4px 16px;
    box-shadow: none;
    border-top: none;
    display: none;
  }
  .nav-dd:hover .dd-menu { display: none; }
  .nav-dd.active .dd-menu { display: block; }
  .nav-actions { display: none; }

  .mobile-btn { display: flex; }
  .founder-wrap { grid-template-columns: 1fr; }
  .founder-photo { margin: 0 auto; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section-pad { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .section-hd h2 { font-size: 24px; }
  .announce-bar { flex-direction: column; gap: 20px; }
  .announce-div { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .values-grid { grid-template-columns: 1fr; }
  .nav-container { padding: 0 20px; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
