/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, Helvetica, Arial, sans-serif; line-height: 1.6; color: #000; background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

#main {
  flex: 1; /* pushes footer down */
}

.footer {
  background: #000; /* or your minimal style */
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #ddd; }
.navigation { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.brand { font-weight: 700; font-size: 18px; }
.menu { display: flex; gap: 20px; }
.menu a { padding: 8px 12px; border-radius: 6px; font-weight: 500; }
.menu a:hover { background: #000; color: #fff; }
.menu a.active { background: #000; color: #fff; }

/* Hero */
.hero { padding: 100px 0; text-align: center; border-bottom: 1px solid #eee; }
.hero .eyebrow { font-size: 14px; font-weight: 600; text-transform: uppercase; margin-bottom: 8px; }
.hero h1 { font-size: 48px; font-weight: 800; margin-bottom: 12px; }
.hero p { font-size: 18px; color: #333; }
.cta { margin-top: 24px; display: flex; gap: 12px; justify-content: center; }
.btn { padding: 10px 18px; border: 1px solid #000; background: #fff; color: #000; border-radius: 6px; font-weight: 600; transition: all .2s ease; }
.btn:hover { background: #000; color: #fff; }

/* Features */
.features { padding: 40px 0; }
.features .kicker { font-weight: 700; font-size: 32px; margin-bottom: 16px; text-align: center; }
.grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 40px; 
  justify-items: center; /* center cards horizontally */
}

.card {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 30px;
  border-radius: 12px;
  max-width: 320px; /* keeps cards narrow like before */
  width: 100%;       /* responsive shrink */
}

.card img { filter: grayscale(100%); height: 220px; object-fit: cover; border-radius: 8px;}
.card .body { padding: 16px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { font-size: 14px; color: #333; }
.card .actions { padding: 0 16px 16px; }

/* Page Head */
.pagehead { padding: 60px 0 30px; border-bottom: 1px solid #eee; background: #fff; text-align: center; }
.pagehead .eyebrow { font-weight: 600; text-transform: uppercase; font-size: 14px; margin-bottom: 8px; color: #555; }
.pagehead h1 { font-size: 36px; font-weight: 800; }

/* Content */
.content { padding: 40px 0; max-width: 800px; margin: 0 auto; }
.content h2 { font-size: 20px; margin: 20px 0 8px; }
.content p { margin: 12px 0; color: #333; }
.content ul { margin: 12px 0 20px 20px; list-style: disc; }
.content li { margin: 6px 0; }

/* Footer */
.footer { margin-top: 40px; border-top: 1px solid #ddd; background: #fff; }
.footer .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; max-width: 1100px; margin: 0 auto; padding: 16px; font-size: 14px; color: #333; }
.footer .links { display: flex; gap: 12px; }
.footer .links a:hover { text-decoration: underline; }

/* Base nav */
.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: #000;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}


/* Responsive */
@media(min-width: 800px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 56px; }

}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 60px; /* adjust for header height */
    right: 0;
    background: #fff;
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: none;
    flex-direction: column;
    padding: 10px 0;
  }

  .nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav.active {
    display: flex;
  }

  /* Animate to X */
  .menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

}