/* ========== GLOBAL RESET & FONTS ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  background-color: #0f0f10;
  color: #e4e4e7;
  line-height: 1.6;
}

/* ========== LAYOUT ========== */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

/* ========== THIN FULL-WIDTH HEADER ========== */
.thin-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #121213;
  border-bottom: 1px solid #2c2c2f;
  z-index: 100;
}

/* inner header bar stays centered while background spans full width */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

.tagline {
  font-size: 0.9rem;
  color: #a1a1aa;
  font-style: italic;
}

/* Navigation */
.nav {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: #c9c9d1;
  transition: color 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: #7dd3fc;
}

/* Responsive header */
@media (max-width: 600px) {
  .header-bar {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }

  .nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-title {
    font-size: 1.1rem;
  }
}

/* ========== PAGE BANNER (Shared) ========== */
.banner {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.banner-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fafafa;
  text-align: center;
}

.banner-overlay h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.banner-overlay p {
  font-style: italic;
  color: #cfcfd4;
}

/* Responsive Banner */
@media (max-width: 700px) {
  .banner {
    height: 220px;
  }
}

/* ========== MAIN ========== */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero h2 {
  font-size: 1.9rem;
  color: #fafafa;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #d1d1d6;
}

.button {
  display: inline-block;
  background: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.4rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.button:hover {
  background: #1e3a8a;
}

/* ========== HIGHLIGHTS SECTION ========== */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.6rem;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
}

.card h3 {
  margin-bottom: 0.6rem;
  color: #fff;
}

.card p {
  color: #b5b5bb;
}

/* ========== FOOTER ========== */
footer {
  background: #111112;
  border-top: 1px solid #2c2c2f;
  padding: 1.5rem 0;
  text-align: center;
}

.footer-content p {
  font-size: 0.9rem;
  color: #a1a1aa;
}

.credit {
  margin-top: 0.3rem;
  font-style: italic;
  color: #7dd3fc;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .hero h2 {
    font-size: 1.6rem;
  }

  .button {
    padding: 0.6rem 1.2rem;
  }
}

/* ========== A11y helpers ========== */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* ===== Page fade transitions ===== */
:root { --fade-duration: 220ms; }

body {
  opacity: 0;                      /* start hidden */
  transition: opacity var(--fade-duration) ease;
}

/* When page is ready, fade in */
body.is-ready { opacity: 1; }

/* When navigating away, fade out */
body.is-fading { opacity: 0; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  body { transition: none !important; opacity: 1 !important; }
}