/* =========================================================================
   Cincinnati AI Catalyst — draft stylesheet
   --------------------------------------------------------------------------
   v0.1 DRAFT. All brand specifics live in the :root tokens below so they can
   be swapped in one place once Cal supplies exact colors, fonts, and assets.
   Values flagged "ESTIMATE" are sampled from Cal's comps — replace when final.
   ========================================================================= */

:root {
  /* --- Color tokens (CONFIRMED — Cal's brand palette) ------------------- */
  --c-primary:        #045277;  /* brand primary  R4 G82 B119  — bar, graphics, headlines */
  --c-headline:       #045277;  /* headlines = primary (only two colors used in the comps) */
  --c-accent:         #3079AB;  /* brand third blue R48 G121 B171 — accents, links, subtext */
  --c-accent-soft:    #8FB3CC;
  --c-canvas:         #DFE5E9;  /* brand canvas  R223 G229 B233 — page background          */
  --c-surface:        #FFFFFF;  /* cards, selected cells                                   */
  --c-text:           #243842;  /* body text (near-black, brand-neutral)                   */
  --c-muted:          #5B7886;  /* de-emphasized text                                      */
  --c-line:           #045277;  /* calendar grid borders                                   */
  --c-outmonth:       #BFC8CE;  /* greyed prev/next-month cells                            */
  --c-on-dark:        #FFFFFF;  /* text on the primary bar                                 */
  --c-placeholder:    #46505A;  /* "IMAGE" placeholder blocks (temporary)                  */

  /* --- Typography (Montserrat — confirmed by Cal) ----------------------- */
  --font-sans: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* --- Layout ----------------------------------------------------------- */
  --maxw: 1240px;           /* content container max-width (confirm)        */
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 88px;
  --radius: 10px;
}

/* --- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-canvas);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-headline); }

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Decorative node graphics — positioned per use, never block content ------ */
.node-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* =========================================================================
   HEADER / NAV  (markup injected by js/site.js)
   ========================================================================= */
.site-header {
  background: var(--c-primary);
  color: var(--c-on-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Logo — Cal's badge (its own rounded tile reads on the dark bar; no extra chip) */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}
.logo img { height: 64px; width: 64px; display: block; }
@media (max-width: 940px) { .logo img { height: 50px; width: 50px; } }

/* Primary nav (desktop) */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
  margin-left: 8px;
}
.nav a, .nav__more-btn {
  color: var(--c-on-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 500;
  font-size: 16px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 6px 0;
  white-space: nowrap;
}
.nav a:hover, .nav__more-btn:hover { color: #fff; }
.nav a.is-active {
  color: #fff;
  border-bottom: 2px solid #fff;
}
.nav__spacer { flex: 1 1 auto; }

/* MORE dropdown */
.nav__more { position: relative; }
.nav__more-btn::after { content: " \2630"; font-size: .85em; }
.nav__more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  padding: 8px;
  min-width: 220px;
  display: none;
  flex-direction: column;
}
.nav__more.open .nav__more-menu { display: flex; }
.nav__more-menu a {
  color: var(--c-text);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 6px;
}
.nav__more-menu a:hover { background: var(--c-canvas); color: var(--c-headline); }

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--c-on-dark);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* =========================================================================
   GENERIC SECTIONS / HEADINGS
   ========================================================================= */
main { position: relative; overflow: hidden; }
section { position: relative; }

.section-title {
  color: var(--c-headline);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0 0 .5em;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-headline);
  font-weight: 500;
  font-size: 19px;
}

/* Image placeholder blocks (temporary — real photos replace these) */
.img-placeholder {
  background:
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(0,0,0,.12)),
    var(--c-placeholder);
  color: rgba(255,255,255,.75);
  display: grid;
  place-items: center;
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: .12em;
  font-weight: 300;
  min-height: 260px;
  border-radius: 4px;
}

/* =========================================================================
   HOME — hero + Friday Features
   ========================================================================= */
.hero {
  padding: clamp(40px, 7vw, 90px) 0 clamp(30px, 5vw, 60px);
}
.hero__title {
  margin: 0;
  color: var(--c-headline);
  line-height: .98;
  letter-spacing: -.01em;
}
.hero__title .thin {
  display: block;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 86px);
}
.hero__title .bold {
  display: block;
  font-weight: 800;
  font-size: clamp(64px, 12vw, 150px);
}
.hero__tagline {
  max-width: 30ch;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--c-muted);
  margin: clamp(20px, 3vw, 34px) 0 0;
}
.hero__tagline em { font-style: italic; }
.hero__node {
  width: clamp(320px, 46vw, 700px);
  top: -90px;            /* pull up so the top circles tuck under the header — no gap */
  right: -70px;          /* bleed off the right edge — no gutter whitespace */
  opacity: 1;
}
.hero__node--small { width: clamp(120px, 16vw, 200px); opacity: .5; }

/* Friday Features module */
.feature {
  padding: clamp(20px, 4vw, 50px) 0 clamp(50px, 8vw, 100px);
}
.feature__grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  max-width: 980px;
}
.feature__label { position: relative; }
.feature__label h3 {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-headline);
  font-weight: 600;
  font-size: 22px;
}
.feature__label .sub { color: var(--c-muted); margin: 0 0 14px; font-size: 15px; }
.feature__label .byline { color: var(--c-text); font-size: 15px; }
.feature__label .byline strong { color: var(--c-headline); }
.feature__content {
  border-left: 2px solid var(--c-accent);
  padding-left: clamp(20px, 3vw, 40px);
}
.feature__content p { margin: 0 0 1.2em; }
.feature__content ul { margin: 0; padding-left: 18px; }
.feature__content li { margin: 0 0 .5em; color: var(--c-text); }

/* =========================================================================
   CONTENT PAGE (type-A: caption card + image/text blocks)
   ========================================================================= */
.page-head { padding: clamp(30px, 5vw, 56px) 0 10px; }
.page-head h1 {
  color: var(--c-headline);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 60px);
  margin: 0;
}

/* Caption-card hero (two images + overlay card) */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0 60px;
}
.gallery .img-placeholder { min-height: 360px; }
.caption-card {
  position: relative;
  background: var(--c-canvas);
}
.caption-card .card {
  position: absolute;
  right: 0;
  bottom: -1px;
  background: var(--c-canvas);
  padding: 22px 26px;
  max-width: 78%;
}
.caption-card .card h3 { margin: 0; color: var(--c-headline); font-weight: 700; font-size: 24px; }
.caption-card .card .subtitle { color: var(--c-headline); font-weight: 500; margin: 2px 0 8px; }
.caption-card .card .subtext { color: var(--c-accent); font-size: 15px; margin: 2px 0; }

/* Image + text content block */
.content-block {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 50px);
  align-items: start;
  margin: 0 0 clamp(30px, 5vw, 56px);
}
.content-block.reverse { grid-template-columns: 1fr 1.15fr; }
.content-block.reverse .content-block__img { order: 2; }
.content-block__text h2 { color: var(--c-headline); font-weight: 700; font-size: 30px; margin: 0; }
.content-block__text .subtitle { color: var(--c-headline); font-weight: 500; font-size: 20px; margin: 2px 0 14px; }
.content-block__text p { margin: 0 0 1em; }
.block-footnote { max-width: 70ch; color: var(--c-text); }

/* =========================================================================
   EVENTS — calendar + detail panel
   ========================================================================= */
.events-wrap {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 7vw, 90px);
  align-items: start;
}
.cal__month { color: var(--c-headline); font-size: 24px; margin: 4px 0 12px; font-weight: 500; }
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--c-line);
  border-right: 0;
  border-bottom: 0;
}
.cal__dow {
  text-align: center;
  color: var(--c-muted);
  font-weight: 500;
  padding: 8px 4px;
  font-size: 15px;
}
.cal__cell {
  border-right: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  min-height: 96px;
  padding: 6px 8px 22px;
  position: relative;
  font-size: 13px;
  color: var(--c-headline);
  cursor: default;
}
.cal__cell .num { position: absolute; bottom: 5px; right: 9px; color: var(--c-muted); }
.cal__cell.out { background: rgba(194,203,210,.45); }
.cal__cell.out .num { color: var(--c-outmonth); }
.cal__cell.has-events { cursor: pointer; }
.cal__cell.selected { background: var(--c-surface); }
.cal__cell .ev { color: var(--c-headline); line-height: 1.3; margin-bottom: 1px; }
.cal__cell .ev.more { color: var(--c-accent); }

.day-detail h3 { color: var(--c-headline); font-weight: 500; font-size: 22px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .03em; }
.day-detail .ev-item { margin: 0 0 18px; }
.day-detail .ev-item .t { color: var(--c-text); font-weight: 600; }
.day-detail .ev-item .loc { color: var(--c-accent); font-size: 14px; font-weight: 600; margin-top: 2px; }
.day-detail .ev-item .lead { color: var(--c-headline); font-size: 15px; font-weight: 600; margin-top: 8px; }
.day-detail .ev-item .d { color: var(--c-muted); font-size: 15px; margin-top: 4px; }
.day-detail .empty { color: var(--c-muted); }

/* =========================================================================
   STUB ("coming soon") pages
   ========================================================================= */
.stub {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px var(--gutter);
}
.stub__inner { max-width: 560px; position: relative; z-index: 1; }
.stub h1 { color: var(--c-headline); font-weight: 800; font-size: clamp(32px, 5vw, 52px); margin: 0 0 10px; }
.stub .tag { text-transform: uppercase; letter-spacing: .1em; color: var(--c-accent); font-weight: 600; }
.stub p { color: var(--c-muted); font-size: 18px; }
.stub__node { width: 220px; opacity: .35; left: 50%; transform: translateX(-50%); bottom: -40px; }

/* =========================================================================
   FOOTER  (markup injected by js/site.js — proposed, not yet designed by Cal)
   ========================================================================= */
.site-footer {
  background: var(--c-primary);
  color: var(--c-on-dark);
  margin-top: 40px;
}
.site-footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 56px) var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.site-footer h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: #fff; }
.site-footer p, .site-footer a { color: var(--c-on-dark); font-size: 15px; }
.site-footer a { display: block; text-decoration: none; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__about { max-width: 46ch; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.18);
  padding: 16px var(--gutter);
  text-align: center;
  font-size: 13px;
  color: rgba(234,241,244,.7);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 940px) {
  .nav, .nav__more { display: none; }
  .hamburger { display: block; }

  /* mobile slide-down menu injected into header */
  .mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--c-primary);
    padding: 8px var(--gutter) 20px;
    border-top: 1px solid rgba(255,255,255,.15);
  }
  .site-header.open .mobile-menu { display: flex; }
  .mobile-menu a {
    color: var(--c-on-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }
  .mobile-menu a.is-active { color: #fff; }

  .feature__grid { grid-template-columns: 1fr; }
  .feature__content { border-left: 0; padding-left: 0; border-top: 2px solid var(--c-accent); padding-top: 20px; }
  .gallery { grid-template-columns: 1fr; }
  .caption-card .card { position: static; max-width: 100%; }
  .content-block, .content-block.reverse { grid-template-columns: 1fr; }
  .content-block.reverse .content-block__img { order: 0; }
  .events-wrap { grid-template-columns: 1fr; }
  .hero__node { position: relative; top: 0; right: 0; margin: 20px auto 0; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* Desktop: hide the mobile menu container */
@media (min-width: 941px) {
  .mobile-menu { display: none !important; }
}
