:root {
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --brand1: #007200;
  --brand2: #1979b9;
  --nav-bg: #0508059a;
  --nav-link: #ecf0f1;
  --nav-link-hover: #1abc9c;
  --card: #f8fafc;
  --maxw: 900px;
}

/* Reset-ish */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}


body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  background-image: url('imgs/sky.png'); 
  background-repeat: repeat-y;           /* 👈 Repeat vertically */
  background-size: 100% auto;            /* 👈 Stretch full width, natural height */
  background-position: center top;
  background-attachment: scroll;         /* Optional: scrolls with content */
  color: var(--text);
}


/* Navbar */
nav.site-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 4vh;              /* ~4% viewport height */
  min-height: 48px;         /* usable on small screens */
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  z-index: 1000;
}
nav.site-nav .nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 24px;
  align-items: center;
}
nav.site-nav a {
  text-decoration: none;
  color: var(--nav-link);
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
nav.site-nav a:hover { color: var(--nav-link-hover); }

/* Active link using body[data-page] attribute */
body[data-page="home"]      nav.site-nav a[href="index.html"],
body[data-page="solutions"] nav.site-nav a[href="solutions.html"],
body[data-page="blog"]      nav.site-nav a[href="blog.html"],
body[data-page="refs"]      nav.site-nav a[href="references.html"],
body[data-page="contact"]   nav.site-nav a[href="contact.html"] {
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

/* Header (fancy name) */
.site-hero {
  position: relative;
  padding-top: calc(4vh + 20px);
  padding-bottom: 16px;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(26, 188, 156, 0.2),
    rgba(52, 152, 219, 0.2)
  );
  z-index: 0;
}

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

.site-hero h1 {
  margin: 0;
  padding: 16px 12px 4px;
  font-size: clamp(18px, 3vw, 32px);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.site-hero p {
  margin: 0 auto 10px;
  padding: 0 16px 12px;
  max-width: var(--maxw);
  color: #eef6ff;
}

/* Main content wrapper */
.container {
  background-color: rgba(255, 255, 255, 0.25); /* 👈 translucent white */
  border-radius: 12px;
  padding: 2rem;
  max-width: var(--maxw);
  margin: 3rem auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

main {
  flex: 1;
}


/* Card-ish sections */
.section {
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  margin: 16px 0;
}

/* Footer */
footer {
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 18px 16px;
  text-align: center;
  color: var(--muted);
  margin-top: auto; /* works with flex layout */
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* Small screens: stack nav if needed */
@media (max-width: 480px) {
  nav.site-nav .nav-inner {
    gap: 12px;
    font-size: 14px;
  }
}
