/* styles.css
   Nyota Technologies — Combined and fixed stylesheet
   - Merges your original styles with header fixes (logo-only header)
   - Includes accessibility, stacking, and responsive menu toggling helpers
   - Save/replace your existing styles.css with this file
*/

/* Root palette and tokens */
:root{
  --nyota-navy: #0F172A;
  --nyota-ink: #111827;
  --nyota-sand: #F7F6F2;
  --nyota-accent: #22C55E;
  --nyota-muted: #6B7280;
  --radius: 16px;

  --header-height: 64px;
}

/* Reset & base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter,
               "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--nyota-ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header: sticky and above page content */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee;
  backdrop-filter: blur(4px); /* subtle */
}

/* Nav container */
.container.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-height);
  position: relative;
}

/* Brand (logo-only variant) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  z-index: 1010; /* ensures the brand sits above the open mobile menu */
  -webkit-tap-highlight-color: transparent;
}

/* Logo image */
.logo-img {
  height: 60px; /* tuned for better tap target on mobile */
  width: auto;
  display: block;
  pointer-events: auto;
}

/* If you ever add visible brand text, use this:
   .brand-name { font-weight:700; color:var(--nyota-navy); }
*/

/* Burger */
.burger {
  display: none;
  background: none;
  border: 0;
  font-size: 24px;
  line-height: 1;
  padding: 8px;
  cursor: pointer;
  color: var(--nyota-ink);
}

/* Navigation */
nav { display: flex; align-items: center; }
.menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 900;
}
.menu > li { position: relative; }

/* Menu links */
.menu a,
.menu button.submenu-toggle {
  text-decoration: none;
  color: var(--nyota-ink);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu a:hover,
.menu button.submenu-toggle:hover {
  background: #F5F7FA;
}

/* Submenu caret */
.menu .submenu-toggle:after {
  content: "▾";
  margin-left: 6px;
  font-size: 12px;
  color: var(--nyota-muted);
}

/* Submenu (desktop) */
.submenu {
  position: absolute;
  left: 0;
  top: 110%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 8px;
  list-style: none;
  min-width: 210px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  display: none;
}
.menu > li:hover > .submenu,
.menu > li:focus-within > .submenu {
  display: block;
}
.submenu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--nyota-ink);
}
.submenu a:hover { background: #F3F4F6; }

/* CTA button */
.cta {
  background: var(--nyota-navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
}

/* Hero */
.hero {
  background: radial-gradient(60% 70% at 85% 20%, #EEF2FF 0%, transparent 70%), var(--nyota-sand);
  border-bottom: 1px solid #eee;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 70px 0;
}
.hero h1 {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.1;
  margin: 0;
  color: var(--nyota-navy);
}
.hero p { font-size: 18px; color: var(--nyota-muted); }

/* Cards & badges */
.hero .card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.badge {
  font-size: 12px;
  background: #EEF2FF;
  color: #334155;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
}

/* Sections */
.section { padding: 60px 0; }
.section h2 {
  font-size: 28px;
  color: var(--nyota-navy);
  margin: 0 0 12px;
}
.section p.lead { color: var(--nyota-muted); margin-top: 0; }

/* Grids */
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Cards */
.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,.06); }
.card .thumb { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.card .content { padding: 16px; }
.card .content h3 { margin: 0 0 8px; font-size: 18px; color: var(--nyota-ink); }
.card .content p { margin: 0; color: var(--nyota-muted); }

/* Quote */
.quote {
  background: linear-gradient(180deg, #FAFAFA, #fff);
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 24px;
  font-size: 18px;
  color: #334155;
}

/* Footer */
.footer {
  padding: 26px 0;
  border-top: 1px solid #eee;
  color: var(--nyota-muted);
  font-size: 14px;
}
.footer a { color: inherit; text-decoration: none; }

/* Figure strip */
.figure-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.figure-strip img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #eee;
}

/* Typography helpers */
.kicker {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #64748B;
  font-size: 12px;
}
small.note { display: block; color: #94A3B8; margin-top: 8px; }

/* Responsive behavior */
@media (max-width: 820px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }

  /* Header: mobile menu */
  .menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    z-index: 900; /* below brand z-index so logo stays clickable */
  }
  .menu.open { display: flex; }

  .submenu {
    position: static;
    display: block;
    border: 0;
    padding-left: 8px;
    box-shadow: none;
  }

  .burger { display: block; }

  /* header layout: allow brand & burger on same row */
  .container.nav { height: var(--header-height); align-items: center; }
  .brand { z-index: 1010; } /* ensure brand sits above menu overlay */
}

/* Small screens tweaks */
@media (max-width: 520px) {
  .logo-img { height: 36px; }
  .hero .wrap { padding: 40px 0; gap: 20px; }
  .hero h1 { font-size: clamp(22px, 7vw, 34px); }
}

/* Utility: visually-hidden for accessible text if needed */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Small defensive styles to avoid accidental overlays */
* { -webkit-tap-highlight-color: transparent; }

/* End of stylesheet */