/* ===== Header / Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0a1738;
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  letter-spacing: .3px;
  color: #fff;
  text-decoration: none;
}
.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #1a442f; /* Barrowford green */
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(255,255,255,.1) inset;
}

/* Nav links */
.nav {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.nav a {
  text-decoration: none;
  color: #fff;
  background: #1a442f;
  padding: .55rem 1rem;
  border-radius: 6px;
  font-size: .95rem;
  transition: background-color .25s ease, transform .15s ease, box-shadow .25s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.nav a:hover {
  background: #267c51;
  transform: translateY(-1px);
}
.nav a.active {
  outline: 2px solid rgba(255,255,255,.18);
  box-shadow: 0 0 0 3px rgba(26,68,47,.35);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: #1a442f;
  color: #fff;
  border: none;
  padding: .55rem .8rem;
  border-radius: 6px;
  cursor: pointer;
}
@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 58px;
    background: #0a1738;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav.open {
    display: flex;
    flex-direction: column;
    gap: .6rem;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
  }
}

/* ===== Base / Layout ===== */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0a1738; /* Deep night blue */
  color: white;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Layout helper (kept from calculator page) */
.layout-container {
  display: flex;
  flex-direction: row;
  flex: 1;
}

/* Image Panel */
.image-panel {
  flex: 1;
  background-color: #0a1738;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-panel img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* Subtitle */
.subtitle {
  text-align: center;
  font-size: 1rem;
  color: #cccccc;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

/* Calculator panel look reused as home cards */
.calculator-panel {
  flex: 1;
  background-color: #0a1738;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

/* Headings */
h1 {
  text-align: left;
  margin: 0 0 1rem;
  color: white;
}

/* Buttons (shared) */
button[type="submit"],
button[type="button"],
.hero-actions a,
.primary-link {
  background-color: #1a442f;
  color: white !important;
  border: none;
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, transform .15s ease;
}
button[type="submit"]:hover,
button[type="button"]:hover,
.hero-actions a:hover,
.primary-link:hover {
  background-color: #267c51;
  transform: translateY(-1px);
}

/* Cards (scoped so header never turns white) */
.page-content .tab {
  background-color: #ffffff;
  color: #0a1738;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
}

/* Home hero layout */
.hero { max-width: 1100px; margin: 2rem auto 0; padding: 0 1rem; }
.hero-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.25rem; }
.hero-title { font-size: 2rem; color: #fff; margin: 0 0 .25rem; }
.hero-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }

/* Responsive */
@media (max-width: 900px) {
  .layout-container { flex-direction: column; }
  .image-panel, .calculator-panel { width: 100%; }
  .image-panel { padding: 1rem; }
  .hero-card { grid-template-columns: 1fr; }
}

/* Footer */
.footer {
  background-color: #0a1738;
  text-align: center;
  padding: 2rem 1rem;
  color: white;
  font-size: 0.9rem;
  margin-top: 2rem;
}
.footer .social-icons { margin-top: 0.75rem; }
.footer .social-icons a { margin: 0 12px; display: inline-block; }
.footer .social-icons img {
  width: 28px; height: 28px; vertical-align: middle;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease;
}
.footer .social-icons img:hover { transform: scale(1.2); }
.version-info { font-size: 0.85em; color: #888; margin-top: 0.5em; }

/* Safety: ensure header never inherits card look even if .tab appears inside */
.site-header .tab { background: transparent !important; color: inherit; box-shadow: none; padding: 0; border-radius: 0; }

/* Links list */
.links-list { list-style: none; padding: 0; margin: 0; }
.links-list li { margin: .5rem 0; }
