/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Roboto:wght@400;500;700&display=swap');

/* Root Variables */
:root {
  --bg-color: #0e1117;
  --card-bg: #111827;
  --card-border: rgba(255, 255, 255, 0.08);
  --text-color: #c9d1d9;
  --text-light: #f7f4ea;
  --accent-color: #14b8a6;
  --accent-dark: #0d9488;
  --accent-amber: #b38f5d;
  --muted: #9ca3af;
  --spacing: 1rem;
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Override inline style on <body> if present */
body[style*="background-color"] {
  background-color: var(--bg-color) !important;
}

/* Navigation */
.main-menu {
  padding: var(--spacing) 0;
}

/* Base link style */
a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: #5eead4;
  text-decoration: underline;
}

a:visited {
  color: var(--accent-color);
}

.main-menu .nav-inner {
  background: rgba(14, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing);
  padding: var(--spacing);
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: var(--spacing);
}

.nav-links a {
  color: #c9d1d9 !important;
  text-decoration: none;
  padding: 0 var(--spacing);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #5eead4 !important;
  text-decoration: none;
}

/* Hero Section */
.hero {
  position: relative;
  background: url('images/hero-image.jpg') center/cover no-repeat;
  margin: var(--spacing) auto;
  max-width: 900px;
  height: 600px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 var(--spacing);
  text-align: center;
  color: #fff;
}

/* Sections */
.container>section:not(#problem) {
  background: transparent;
  padding: 0;
  margin: var(--spacing) auto;
  max-width: 900px;
  border-radius: 0;
  box-shadow: none;
}

/* Grid Layouts */
.row {
  display: grid;
  gap: var(--spacing);
  margin: var(--spacing) auto;
  max-width: 900px;
}

.row--cols-1 {
  grid-template-columns: 1fr;
}

.row--cols-2 {
  grid-template-columns: 1fr 1fr;
}

.row--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 600px) {
  .row {
    grid-template-columns: 1fr !important;
  }
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: var(--spacing);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: var(--text-color);
}

.card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.card--transparent {
  background: transparent;
  box-shadow: none;
  border: none;
}

/* CTA Buttons */
.cta-buttons {
  text-align: center;
  margin-top: var(--spacing);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.2s;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #0e1117;
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-primary,
.btn-primary:visited {
  color: #fff;
}

.btn-secondary,
.btn-secondary:visited {
  color: var(--accent-dark);
}

.btn:hover {
  transform: scale(1.05);
}

.btn,
.btn:hover,
.btn:visited {
  text-decoration: none;
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
  color: var(--accent-dark) !important;
}


/* Teal pill button — shared across all pages */
.nn-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #14b8a6;
  color: #0e1117;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nn-subscribe-btn:hover {
  background: #5eead4;
  transform: translateY(-2px);
  text-decoration: none;
  color: #0e1117;
}

.nn-subscribe-btn:visited {
  color: #0e1117;
}

/* Arrow */
.arrow {
  height: 30px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Blockquote */
blockquote {
  font-style: italic;
  font-family: 'Libre Baskerville', serif;
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 4px solid var(--accent-color);
  padding-left: var(--spacing);
}

/* Footer */
.footer-content {
  background: rgba(14, 17, 23, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--spacing);
  margin: var(--spacing) auto var(--spacing) auto;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-align: center;
  color: var(--muted);
}

.footer-content .logo {
  width: 100px;
  margin-bottom: var(--spacing);
}

.footer-content .tagline {
  margin-bottom: var(--spacing);
}

/* Logo Grid */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing);
  margin: var(--spacing) auto;
  max-width: 900px;
  justify-items: center;
  text-align: center;
}

.logo-grid h2 {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: var(--spacing);
}

.logo-grid .card {
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing);
}

.logo-grid img {
  max-width: 125px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 700px) {
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Video Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 25px;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Video Wrapper */
.video-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Libre Baskerville', serif;
  color: var(--text-light);
}

/* ── Container base (used by about.html and other legacy pages) ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Hamburger button (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.07);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #c9d1d9;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animate into X when open */
.nav-hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger--open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav breakpoint ── */
@media (max-width: 640px) {
  .nav-hamburger {
    display: flex;
  }

  .main-menu .nav-inner {
    position: relative;
    flex-wrap: wrap;
    align-items: center;
  }

  /* Hidden by default on mobile; revealed by JS toggle */
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 0 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 0.5rem;
  }

  .nav-links--open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  /* Tighten section-block vertical padding on phones */
  .section-block {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}