/* ============================================================
   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);
}
/* ============================
   MODE CARDS (3 in a row)
   ============================ */
.ae-modes-section {
  margin-top: 40px;
}

.ae-mode-grid {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.ae-mode-card {
  flex: 1 1 calc(33.3% - 24px);
  border: 1px solid #dfe8f2;
  border-radius: 12px;
  padding: 18px;
  background: #ffffff;
  min-width: 250px;
}

.ae-mode-card h3 {
  margin-bottom: 10px;
  color: #1e3a5f;
}

.ae-mode-image-wrap img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 12px;
}

/* ============================
   GALLERY (7 images fluid)
   ============================ */
.ae-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.ae-gallery-item {
  background: #fff;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.ae-gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.ae-gallery-item figcaption {
  font-size: 14px;
  margin-top: 8px;
  color: #22334d;
}
.ae-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.ae-gallery-item {
  background: #ffffff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform .2s ease;
}

.ae-gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.ae-gallery-item:hover {
  transform: scale(1.03);
}

.ae-gallery-item figcaption {
  font-size: 14px;
  color: #444;
  margin-top: 10px;
  line-height: 1.4;
}

/* ====== Fix image oversize on desktop ====== */
.ae-gallery-item img {
  width: 100%;
  max-width: 350px;   /* hard cap */
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Center-align card content for better fit */
.ae-gallery-item {
  text-align: center;
}

/* Make them scale nicely on smaller viewports */
@media (max-width: 900px) {
  .ae-gallery-grid,
  .ae-gallery {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .ae-gallery-item img {
    max-width: 260px;
  }
}
