:root {
  --primary-color: hsla(79, 65%, 48%, 1);
  --secondary-color: hsla(88, 82%, 9%, 1);
  --accent-color: hsla(180, 60%, 40%, 1);
  --background-color: #000000;
  --hero-text-color: #FFFFFF;
  --body-text-color: #E0E0E0;
  --font-base: 'IBM Plex Sans', sans-serif;
  --font-heading: 'Source Sans Pro', sans-serif;
  --brand-padding: 16px;
  --focus-color: rgba(0, 200, 180, 0.9);
  --max-content-width: 900px;
  --topbar-height: 74px;
  --topbar-bg: #000;
}

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: var(--font-base);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: var(--background-color);
  color: var(--body-text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero */
header.hero {
  position: relative;
  background: var(--primary-color);
  color: var(--hero-text-color);
  padding: calc(var(--brand-padding) + 0px) 16px 40px;
  text-align: center;
  overflow: visible;
}

.brand {
  position: absolute;
  top: var(--brand-padding);
  left: var(--brand-padding);
  display: inline-block;
  line-height: 0;
  z-index: 5;
}
.brand:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 4px;
  border-radius: 6px;
}

.brand-logo {
  height: auto;
  width: auto;
  max-width: 96px;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0, 80, 70, 0.15));
  transition: filter 160ms ease, transform 160ms ease;
}
@media (max-width: 399px) { .brand-logo { max-width: 96px; } }
@media (min-width: 400px) and (max-width: 767px) { .brand-logo { max-width: 140px; } }
@media (min-width: 768px) and (max-width: 999px) { .brand-logo { max-width: 200px; } }
@media (min-width: 1000px) { .brand-logo { max-width: 260px; } }

.brand-logo:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 12px rgba(0, 80, 70, 0.18));
}
@media (prefers-reduced-motion: reduce) {
  .brand-logo, .btn { transition: none; transform: none; }
}

.hero .hero-content {
  background: var(--primary-color, #254a2a);
  color: var(--hero-text-color, #fff);
  text-align: center;
  padding: 24px 16px 32px;
  padding-top: calc(var(--topbar-height) + 4px);
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--topbar-height);
  background: var(--topbar-bg);
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 0.5rem 1rem;           
  z-index: 1000;                  
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

/* Headline */
header.hero h1 {
  font-size: 1.25rem;
  margin: 48px 0 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--hero-text-color);
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
}
header.hero p {
  font-size: 1rem;
  max-width: calc(var(--max-content-width) - 40px);
  margin: 0 auto 30px;
  color: var(--hero-text-color);
}
header.hero p.highlighted-intro { color: var(--secondary-color); }

/* CTAs */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  background: var(--accent-color);
  color: var(--hero-text-color);
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  cursor: pointer;
}
.btn.secondary {
  background: var(--hero-text-color);
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}
a:focus, .btn:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Sections */
section {
  padding: 32px 16px;
  max-width: var(--max-content-width);
  margin: 0 auto;
}
section h2 {
  font-size: 1.125rem;
  margin-bottom: 16px;
  font-family: var(--font-heading);
  color: var(--hero-text-color);
}
section ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--body-text-color);
}

/* Footer & Feature */
footer, .feature {
  background: var(--secondary-color);
  color: var(--hero-text-color);
  text-align: center;
  padding: 20px;
}

/* Utilities */
.hidden-visually {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.hidden { display: none; }
.sr-hidden {
  position: absolute; left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Contact Form */
.vn-form__error { color: var(--color-error, #c32); font-size: 0.95em; margin-top: 0.25rem; }
.vn-form__status { margin-top: 1rem; font-size: 1rem; }
.vn-form__status.success { color: var(--color-success, #080); }
.vn-form__status.error { color: var(--color-error, #c32); }

.contact { max-width: 600px; margin: 2rem auto; padding: 1rem; }
.contact h2 { font-size: 1.5rem; margin-bottom: 1rem; text-align: center; }
.form-group { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
}
textarea { resize: vertical; }
button {
  background: #000;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
button:hover, button:focus { background: #333; }

/* Nav */
/* Mobile overlay nav (default) */
.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 70%;
  background: #000;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
}
.main-nav.open { transform: translateX(0); }

.main-nav ul {
  list-style: none;
  margin: 4rem 0 0 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.main-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
}
.main-nav .cta {
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

/* Backdrop for mobile */
.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
  z-index: 998;
}
.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Nav toggle */
.nav-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Desktop inline nav */
@media (min-width: 768px) {
  .topbar {
    justify-content: center; /* center contents horizontally */
  }

  .brand {
    position: absolute;
    left: var(--brand-padding);
    top: var(--brand-padding);
  }

  .main-nav {
    position: static;
    transform: none;
    height: auto;
    width: auto;
    background: transparent;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 2rem;
    margin: 0;
    padding: 0;
    justify-content: center; /* center nav items */
  }

  .nav-backdrop { display: none; }
  .nav-toggle { display: none; }
}
.content-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}
.vn-form__status.info {
  background-color: #e6f0ff;   /* soft blue background */
  border: 1px solid #99c2ff;   /* blue border */
  color: #003366;              /* dark blue text */
  padding: 0.75em;
  margin-top: 1em;
  border-radius: 4px;
  font-size: 0.95em;
}

/* Shared fade-in animation */
@keyframes fadeInStatus {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.vn-form__status {
  margin-top: 1rem;
  font-size: 1rem;
  padding: 0.75em;
  border-radius: 4px;
  opacity: 0; /* start hidden */
  animation: fadeInStatus 0.4s ease forwards;
}

/* Informational message (scorecard result) */
.vn-form__status.info {
  background-color: #e6f0ff;
  border: 1px solid #99c2ff;
  color: #003366;
}

/* Success message (form sent) */
.vn-form__status.success {
  background-color: #e6ffe6;
  border: 1px solid #66cc66;
  color: #004d00;
}

/* Error message (validation/network issues) */
.vn-form__status.error {
  background-color: #ffe6e6;
  border: 1px solid #cc6666;
  color: #660000;
}
#scorecard-form {
  display: grid;
  grid-template-columns: 80px 1fr;  /* left: input, right: long label text */
  gap: 0.75rem 1rem;
  max-width: 800px;                 /* allow long labels room */
  margin: 0 auto;
  align-items: start;
}

#scorecard-form label {
  display: contents;                 /* children become grid items */
  font-weight: 600;
}

#scorecard-form input[type="number"] {
  grid-column: 1;                    /* left column */
  width: 60px;                       /* 60–80px as desired */
  text-align: center;
  align-self: center;                 /* vertically align with text */
}

#scorecard-form .label-text {
  grid-column: 2;                    /* right column (takes remaining space) */
  line-height: 1.4;
}
#scorecard-form button.btn {
  grid-column: 2;          /* place under label column */
  justify-self: center;    /* centre horizontally */
  margin-top: 1rem;
}

/* Hover & focus effects for all .btn */
.btn:hover,
.btn:focus {
  background: var(--accent-color);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

/* Accessibility: remove motion for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .btn:focus {
    transform: none;
    filter: none;
    transition: none;
  }
}
