/* ============================================================
   REBOOT NODES — Main Stylesheet
   ============================================================ */

@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/orbitron-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/open-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gray:        #CECECE;
  --gray-dark:   #b0b0b0;
  --green:       #2CB42C;
  --blue:        #5ACCFA;
  --orange:      #FF914D;
  --purple:      #C20EFF;
  --black:       #000000;
  --gray-light:  #F5F5F5;
  --gray-300:    #D1D5DB;
  --gray-400:    #9CA3AF;
  --gray-700:    #374151;
  --white:       #ffffff;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  line-height: 1.2;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gray); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-dark); }

/* ── HEADER ── */
header {
  background: var(--black);
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo img { height: 50px; width: auto; object-fit: contain; }
nav.desktop { display: flex; align-items: center; gap: 2rem; }
nav.desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  transition: color 0.2s;
}
nav.desktop a:hover,
nav.desktop a.active { color: var(--gray); }
.social-links { display: flex; align-items: center; gap: 1rem; }
.social-links a { color: var(--white); transition: color 0.2s; }
.social-links a:hover { color: var(--blue); }
.social-links svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.mobile-social { display: flex; gap: 1rem; padding-top: 0.5rem; }
.mobile-social a { color: var(--white); transition: color 0.2s; }
.mobile-social a:hover { color: var(--blue); }
.mobile-social svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 4px;
}
.hamburger svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: 1rem;
  border-top: 1px solid #1f2937;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  transition: color 0.2s;
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--gray); }

/* ── BUTTONS ── */
.btn-gray {
  background: var(--gray);
  color: var(--black);
  border: none;
  padding: 0.875rem 1.75rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(206,206,206,0.3);
  display: inline-block;
}
.btn-gray:hover {
  background: var(--gray-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(206,206,206,0.4);
  color: var(--black);
}
.btn-gray:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid #374151;
  padding: 0.75rem 1.5rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover {
  border-color: var(--gray);
  color: var(--gray);
}

/* ── LAYOUT UTILITIES ── */
.section-black { background: var(--black); padding: 5rem 0; }
.section-light { background: var(--gray-light); padding: 5rem 0; }
.section-dark  { background: #0a0a0a; padding: 5rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; max-width: 700px; margin: 0 auto; }
.section-black .section-header h2 { color: var(--gray); }
.section-light .section-header h2 { color: var(--black); }
.section-light .section-header p { color: var(--gray-700); }
.text-gray   { color: var(--gray); }
.text-dark   { color: var(--gray-700); }
.text-green  { color: var(--green); }
.text-blue   { color: var(--blue); }
.text-orange { color: var(--orange); }

/* ── PAGE HEADER ── */
.page-header { background: var(--black); padding: 4rem 0; text-align: center; }
.page-header h1 { font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: 1rem; }
.page-header p { font-size: 1.1rem; color: #d1d5db; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  margin-bottom: 1.5rem;
  color: var(--white);
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: #d1d5db;
  margin-bottom: 2rem;
}

/* ── NODE CARDS ── */
.nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.node-card {
  background: #0f0f0f;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.node-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.node-card.green:hover  { border-color: var(--green);  box-shadow: 0 8px 30px rgba(44,180,44,0.2); }
.node-card.blue:hover   { border-color: var(--blue);   box-shadow: 0 8px 30px rgba(90,204,250,0.2); }
.node-card.orange:hover { border-color: var(--orange); box-shadow: 0 8px 30px rgba(255,145,77,0.2); }
.node-card.gray:hover   { border-color: var(--gray);   box-shadow: 0 8px 30px rgba(206,206,206,0.1); }
.node-card.purple:hover { border-color: var(--purple); box-shadow: 0 8px 30px rgba(194,14,255,0.2); }
.node-logo {
  height: 50px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}
.node-logo img { height: 100%; width: auto; object-fit: contain; }
.node-accent {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.node-accent.green  { background: var(--green); }
.node-accent.blue   { background: var(--blue); }
.node-accent.orange { background: var(--orange); }
.node-accent.gray   { background: var(--gray); }
.node-accent.purple { background: var(--purple); }
.node-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--white); }
.node-card p { color: #9CA3AF; font-size: 0.95rem; line-height: 1.7; flex-grow: 1; margin-bottom: 1.5rem; }
.node-link {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}
.node-link.green  { color: var(--green); }
.node-link.blue   { color: var(--blue); }
.node-link.orange { color: var(--orange); }
.node-link.gray   { color: var(--gray); }
.node-link.purple { color: var(--purple); }
.node-link:hover { gap: 0.7rem; }

/* ── BENEFITS GRID ── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.benefit-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}
.benefit-card:hover { box-shadow: 0 4px 20px rgba(206,206,206,0.2); }
.benefit-icon { margin-bottom: 1rem; }
.benefit-icon svg {
  width: 32px; height: 32px;
  stroke: var(--gray); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.benefit-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--black); }
.benefit-card p { color: var(--gray-700); font-size: 0.95rem; line-height: 1.6; }

/* ── VALUES GRID ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.value-card { background: var(--white); padding: 2rem; border-radius: 10px; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--black); }
.value-card p { color: var(--gray-700); font-size: 0.95rem; line-height: 1.7; }

/* ── PROSE ── */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 2rem; color: var(--black); }
.prose p { color: var(--gray-700); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; }

/* ── CONTACT FORM ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 1100px; margin: 0 auto; }
.contact-form-card { background: var(--white); border-radius: 10px; padding: 2.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.contact-info-stack { display: flex; flex-direction: column; gap: 2rem; }
.contact-info-card { background: var(--white); border-radius: 10px; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.contact-info-card h2 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--black); }
.contact-info-card p { color: var(--gray-700); font-size: 0.95rem; line-height: 1.7; margin-bottom: 0.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--gray-700); margin-bottom: 0.4rem; }
.form-group label .req { color: #ef4444; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.6rem 1rem;
  border: 1px solid var(--gray-300); border-radius: 6px;
  font-family: 'Open Sans', sans-serif; font-size: 0.95rem;
  color: var(--black); background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gray);
  box-shadow: 0 0 0 3px rgba(206,206,206,0.2);
}
.form-group input.error { border-color: #ef4444; }
.form-error { color: #ef4444; font-size: 0.8rem; margin-top: 0.3rem; }
.btn-submit {
  width: 100%; background: var(--gray); color: var(--black);
  border: none; padding: 0.875rem;
  font-family: 'Open Sans', sans-serif; font-weight: 700; font-size: 1rem;
  border-radius: 6px; cursor: pointer; transition: background 0.2s; margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--gray-dark); }
.success-state { text-align: center; padding: 3rem 1rem; }
.success-icon { width: 80px; height: 80px; background: var(--gray); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.success-icon svg { width: 40px; height: 40px; fill: none; stroke: var(--black); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.success-state h2 { font-size: 1.75rem; margin-bottom: 1rem; color: var(--black); }
.success-state p { color: var(--gray-700); margin-bottom: 1.5rem; }
.btn-reset { background: var(--gray); color: var(--black); border: none; padding: 0.75rem 1.5rem; font-family: 'Open Sans', sans-serif; font-weight: 700; border-radius: 6px; cursor: pointer; transition: background 0.2s; }
.btn-reset:hover { background: var(--gray-dark); }

/* ── PRIVACY ── */
.privacy-card { background: var(--white); border-radius: 10px; padding: 3rem; box-shadow: 0 4px 20px rgba(0,0,0,0.08); max-width: 900px; margin: 0 auto; }
.privacy-card h2 { font-size: 1.35rem; margin-bottom: 1rem; color: var(--black); }
.privacy-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--black); }
.privacy-card p { color: var(--gray-700); font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.25rem; }
.privacy-section { margin-bottom: 2.5rem; }
.privacy-card a { color: var(--gray); }
.privacy-card a:hover { text-decoration: underline; }

/* ── CTA SECTION ── */
.cta-section { text-align: center; }
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1.5rem; }
.cta-section p { font-size: 1.1rem; color: #d1d5db; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ── NODE DETAIL (Our Nodes page) ── */
.node-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.node-detail-body img { height: 50px; width: auto; margin-bottom: 1.5rem; }
.node-accent-bar { width: 40px; height: 3px; border-radius: 2px; margin-bottom: 1.5rem; }
.node-accent-bar.blue   { background: var(--blue); }
.node-accent-bar.green  { background: var(--green); }
.node-accent-bar.orange  { background: var(--orange); }
.node-accent-bar.purple { background: var(--purple); }
.node-detail-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.node-detail-body p { font-size: 1rem; line-height: 1.8; margin-bottom: 1rem; }
.node-detail-body p:last-of-type { margin-bottom: 1.5rem; }

/* Dark "Who We Serve" card — used on black sections */
.node-who { border-radius: 12px; padding: 2rem; }
.node-who.dark { background: #0f0f0f; border: 1px solid #1f2937; }
.node-who.dark h3 { color: var(--white); }
.node-who.dark li { color: #d1d5db; }

/* Light "Who We Serve" card — used on light sections */
.node-who.light { background: var(--white); border: 1px solid #e5e7eb; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.node-who.light h3 { color: var(--black); }
.node-who.light li { color: var(--gray-700); }

.node-who h3 { font-size: 1rem; margin-bottom: 1.25rem; }
.node-who ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.node-who li { display: flex; gap: 0.75rem; font-size: 0.95rem; }
.node-who li .check { font-weight: 700; flex-shrink: 0; }
.node-who li .check.blue   { color: var(--blue); }
.node-who li .check.green  { color: var(--green); }
.node-who li .check.orange { color: var(--orange); }
.node-who li .check.purple { color: var(--purple); }

@media (max-width: 768px) {
  .node-detail { grid-template-columns: 1fr; }
  .node-detail-body { order: 1 !important; }
  .node-who { order: 2 !important; }
}

/* ── FOOTER ── */
footer { background: var(--black); border-top: 1px solid #1f2937; padding: 3rem 0; text-align: center; }
.footer-social { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; }
.footer-social a { color: var(--white); transition: color 0.2s; }
.footer-social a:hover { color: var(--blue); }
.footer-social svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; margin-bottom: 2rem; }
.footer-nav a { font-size: 0.875rem; color: var(--gray-400); transition: color 0.2s; }
.footer-nav a:hover { color: var(--gray); }
.footer-copy { font-size: 0.875rem; color: #6b7280; }

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }
.fade-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav.desktop, .social-links { display: none; }
  .hamburger { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nodes-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 1.5rem; }
  .privacy-card { padding: 1.5rem; }
}
