/* ============================================================
   Autumn Cognition LLC – Universal Layout / Navigation CSS
   Matches OAR Innovations layout, spacing, colors, and behavior
   ============================================================ */

/* ----- Root palette ----- */
:root {
    --nav-bg: #d8e6f3;        /* Header background */
    --accent: #165faa;        /* Brand + link color */
    --text: #0a2540;          /* Body text */
    --border: #c3d4e3;
}

/* ----- Global Reset ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

body {
    background: #ffffff;
    color: var(--text);
    line-height: 1.5;
}

/* ============================================================
   NAVIGATION (Shared Structure with OAR Innovations)
   ============================================================ */

nav {
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border);
}

.navwrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Brand Title (left) */
.brand-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--accent);
    margin-right: auto;
}

/* Nav Links (right side) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 18px;
    text-decoration: none;
    color: var(--accent);
    padding: 8px 4px;
}

/* ----- Dropdowns ----- */
.dropdown {
    position: relative;
}

.dropdown > a {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    padding: 10px 0;
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
}

.dropdown-content a {
    display: block;
    color: var(--accent);
    padding: 10px 20px;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #dce9f7;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ----- Section Layout ----- */
section, .container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 40px;
}

/* Headings */
h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text);
}

h2 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 30px;
    color: var(--text);
}

/* Paragraphs */
p {
    margin-bottom: 14px;
    font-size: 18px;
    color: var(--text);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 80px;
    padding: 30px 0;
    color: var(--text);
}
/* ========= LAYOUT WRAPPER (fixes alignment) ========= */
.layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 20px;
}

/* ========= SIDEBAR ========= */
.sidebar {
  width: 260px;
  background-color: #cfe3f8; /* light blue */
  padding: 20px;
  border-right: 1px solid #b7d0ea;
  min-height: calc(100vh - 70px);
  position: sticky;
  top: 70px;
  border-radius: 10px;
}

/* Sidebar headings */
.sidebar h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #0a2a4f;
}

/* Product list styling */
.product-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-list li {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid #aac7e4;
}

.product-list strong {
  font-size: 17px;
  color: #0a2a4f;
}

.price {
  font-size: 14px;
  color: #003d99;
}

.coming-soon {
  font-size: 13px;
  background: #999;
  padding: 5px 10px;
  border-radius: 6px;
  color: white;
  display: inline-block;
  margin-top: 5px;
}

.preorder-btn {
  margin-top: 6px;
  display: inline-block;
  background-color: #1e63d8;
  color: white;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}

/* ========= MAIN CONTENT ========= */
.content {
  flex: 1;
  padding: 40px 60px;
}
/* Remove any accidental spacing pushing the sidebar downward */
.layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 20px;
  margin-top: 0 !important;
  padding-top: 20px; /* news page’s spacing */
}

/* Ensure the top nav sits above everything cleanly */
.topnav {
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Sidebar pinned correctly under top nav */
.sidebar {
  position: sticky;
  top: 70px; /* consistent height */
}
