/* ============================================================
   NNLHC 3.0 — Resources (resources.html)
   Built per "RESOURCES PAGE IMPLEMENTATION" instructions (23 Oct
   2026), using NNLHC_Resources_Assets_PREVIEW.zip. Built on top of
   css/style.css design tokens, nav, footer, .section/.on-silk/
   .section-title/.btn classes already defined there. This file only
   adds Resources-page-specific layout. Nothing in css/style.css is
   edited or removed by this file.

   FUNCTIONING PREVIEW, NOT final. The hero photo and closing-banner
   landscape were not installed — both had legible text baked into
   the supplied image (see classes.html's precedent and the top-of-
   file comment in resources.html for specifics) — so
   .resources-hero-media-slot uses .media-slot-empty (defined in
   classes.css, reused here) and the closing section has no photo
   element at all.

   ROUND 2 (24 Oct 2026) — visual correction pass. Everything added
   below is scoped under body.page-resources so it can never leak
   onto another page even if a selector were reused by mistake —
   resources.html is the only page with that body class. Hero and
   closing banner keep the shared .on-silk texture (untouched);
   Categories and Featured Resources switch to a page-local cream
   theme instead.

   ROUND 3 (24 Oct 2026) — category card corrections, per "RESOURCES
   CATEGORY CARD CORRECTIONS": (1) .resources-category-media img
   object-position changed from center to center top — all six
   installed photos (category-*-PROVISIONAL.jpg) place their subject
   in the vertical center-to-lower two-thirds of the frame with
   blurred/plain background above it, so anchoring the crop to the
   top of the source keeps the full subject and removes only
   background from the bottom, instead of the previous even
   top+bottom crop. Same rule applied to .resources-feature-media for
   the same reason, since it uses an identical cover/center setup.
   (2) Medallion artwork (.resources-category-icon, the circular icon
   badges) is UNCHANGED in this round — existing SVGs preserved as
   instructed — and is flagged in resources.html for future
   replacement with the approved gold-ring visual style; no new icon
   artwork was created here. (3) .resources-category-icon is a single
   shared class with no per-card override anywhere in this file or in
   resources.html, so size/placement/overlap/shadow were already
   byte-identical across all six cards; confirmed, not changed, this
   round. (4) Card description spacing increased
   (.resources-category-desc margin-bottom, .resources-category-card
   padding-top). (5) Disabled button treatment made more deliberate:
   added a visible border and slightly higher opacity so the inactive
   state reads as an intentional design choice rather than a faded
   error state, still clearly non-interactive (cursor: not-allowed,
   no hover motion, disabled attribute). No new artwork or resource
   links were created in this round.
   ============================================================ */

/* ---------- Page-scoped header logo (this page only) ---------- */
body.page-resources .brand-logo { height: 76px; }

/* ---------- Cream theme tokens (page-local only) ---------- */
body.page-resources {
  --resources-cream: #faf3dd;
  --resources-cream-dim: #f3e9c9;
}

.resources-page-section { padding: 72px 0; position: relative; overflow: hidden; }
.resources-page-section > .container { position: relative; z-index: 1; }

/* Shared empty-media-slot convention (same pattern as classes.css) — no
   caption/label text, status documented in HTML comments only. */
.media-slot-empty {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.22);
  border-radius: var(--radius-md);
}

/* ---------- Hero (ROUND 5 — full-bleed integrated composition) ---------- */
/* ROUND (24 Oct 2026) — REPLACED per "RESOURCES HERO REPLACEMENT"
   authorization. The new image (hero-workspace-silk-CANDIDATE.png)
   already contains its own prominent silk waves and a built-in dark
   navy zone for text, so the old full-bleed-photo + separate CSS
   wave-overlay + angled-mask system (Rounds 5–7) is gone — it only
   existed to blend a waveless photo onto the site's wave texture, and
   would now just dim art that must stay fully visible. Desktop/tablet
   size the section to the image's own 2172:724 aspect ratio, so the
   full image is always shown — never stretched, never cropped. */
.resources-hero-bleed {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2172 / 724;
  display: flex;
  align-items: center;
}
.resources-hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}
.resources-hero-bleed .container.resources-hero-grid {
  position: relative;
  z-index: 2;
}
/* ROUND (24 Oct 2026) — text block shifted right so the "T" in "Tools"
   lines up under the hand-marked point in the image, per direct
   annotation. Measured directly from the asset: that point sits at
   ~19% of the image's width, and since the hero container matches the
   image's aspect ratio exactly (no crop on desktop/tablet), that
   percentage stays aligned with the mark at any width. */
body.page-resources .resources-hero-bleed .container.resources-hero-grid {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 24px 0 19%;
  display: flex;
  justify-content: flex-start;
}
.resources-hero-grid { display: block; }
.resources-hero-content { text-align: left; min-width: 0; max-width: 560px; }
body.page-resources .resources-hero-bleed .resources-hero-content { max-width: 440px; }
.resources-hero-content .eyebrow-center,
.resources-hero-content .section-title,
.resources-hero-content .section-lead { text-align: left; }
.resources-hero-emphasis { color: var(--gold-bright); }
/* Large, elegant serif headline per the approved wording spec. Readability
   over the waves comes entirely from a dark outline-style text-shadow
   stack (pure typography, zero pixels of the image touched) rather than
   any overlay/scrim on the photo — the brightest gold wave strands run
   diagonally through the lower-left of the image regardless of text
   column width, so dimming the art was not an option per instruction. */
.resources-hero-content .section-title,
.resources-hero-content .section-lead,
.resources-hero-content .eyebrow-center {
  text-shadow:
    -1px -1px 2px rgba(0,0,0,0.9),
    1px -1px 2px rgba(0,0,0,0.9),
    -1px 1px 2px rgba(0,0,0,0.9),
    1px 1px 2px rgba(0,0,0,0.9),
    0 2px 12px rgba(0,0,0,0.75);
}
.resources-hero-content .section-title {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--white);
}
.resources-hero-content .section-lead {
  color: rgba(255,255,255,0.96);
}

@media (max-width: 960px) {
  /* Stacked layout: full, uncropped image on top (still aspect-ratio
     locked — the waves stay fully visible, nothing dimmed), text block
     below it on the site's standard navy background — not overlaid on
     the photo — so legibility never depends on darkening the image. */
  .resources-hero-bleed { aspect-ratio: auto; overflow: visible; display: block; background: var(--navy-deep); }
  .resources-hero-photo-img { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 2172 / 724; display: block; }
  body.page-resources .resources-hero-bleed .container.resources-hero-grid {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 28px 24px 36px;
  }
  .resources-hero-content { text-align: center; max-width: none; }
  .resources-hero-content .eyebrow-center,
  .resources-hero-content .section-title,
  .resources-hero-content .section-lead { text-align: center; }
  .resources-hero-content .section-title,
  .resources-hero-content .section-lead,
  .resources-hero-content .eyebrow-center { text-shadow: none; }
}

/* ---------- Explore our resource categories ---------- */
/* Cream/light background per the approved design, navy text + gold accents
   for contrast — page-local only, the shared dark .on-silk texture from
   style.css is not used here (removed from this section's class list in
   resources.html; hero/closing keep it). */
.resources-categories-section {
  text-align: center;
  background: linear-gradient(180deg, var(--resources-cream), var(--resources-cream-dim));
}
.resources-categories-section .section-title { color: var(--navy-deep); }
.resources-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 2.4rem;
}
.resources-category-card {
  background: var(--white);
  border: 1px solid rgba(8,17,34,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(8,17,34,0.1);
  padding: 0 24px 32px;
  position: relative;
}
.resources-category-media { width: calc(100% + 48px); height: 160px; overflow: hidden; margin: 0 -24px; }
/* ROUND 3: object-position changed center → center top (see file-header
   note) so the installed photo's subject is not clipped at the top of
   the frame; crop is taken from the bottom of the source instead. */
.resources-category-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
/* Medallion icon badge — shared, unmodified class so all six cards render
   identically (size, overlap, shadow). ROUND 3: existing icon artwork
   preserved as-is; FLAGGED for a future replacement pass with the
   approved gold-ring visual style — no new icon artwork created here. */
.resources-category-icon {
  width: 68px; height: 68px;
  display: block; margin: -34px auto 18px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(8,17,34,0.3);
  background: var(--navy-deep);
}
/* ROUND 4: NeuroLeadership-only "zoom out ~15%" correction. Source photo
   (category-neuroleadership-PROVISIONAL.jpg) is 243x128px — the smallest
   of the six, so object-fit:cover was cropping it more aggressively than
   the others. Per README_CLAUDE.md, this is NOT an object-position change:
   the <img> itself is given explicit pixel dimensions, smaller than a full
   "cover" fit, so the browser renders less of the source scaled-up and
   shows more of the existing frame (no invented pixels — reveals detail
   already in the 243x128 source that cover was cropping away). The
   container keeps its backdrop color (--navy-deep, matching the medallion
   palette) to fill the resulting letterbox space, avoiding any white or
   empty border. Sizes below are calculated per breakpoint as 0.87x the
   card's own "cover" scale factor at that width:
     desktop (no query, card media ~374x160): cover scale 1.539 -> target
       1.339 -> image rendered ~325x171 (verified via live measurement at
       1440px — box width varies slightly by exact viewport, 325x171 is the
       1440px value)
     tablet  (<=960px, card media ~342x160): cover scale 1.407 -> target
       1.224 -> image rendered ~298x157
     mobile  (<=420px, card media ~340x160): cover scale 1.399 -> target
       1.217 -> image rendered ~296x156
   Net effect measured in source-height terms: cover shows ~81% of the
   source's vertical extent; this treatment shows ~93-100% — an increase
   of roughly 15%, matching the request. */
.resources-category-media.neuroleadership-zoom {
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.resources-category-media.neuroleadership-zoom img {
  width: 325px;
  height: 171px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}
@media (max-width: 960px) {
  .resources-category-media.neuroleadership-zoom img { width: 298px; height: 157px; }
}
@media (max-width: 420px) {
  .resources-category-media.neuroleadership-zoom img { width: 296px; height: 156px; }
}

.resources-category-card h3 { color: var(--navy-deep); font-size: 1.1rem; margin: 0 0 0.65em; }
.resources-category-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; margin: 0 0 1.5em; }
/* ROUND 3: more deliberate disabled treatment — visible border + slightly
   higher opacity so the inactive state reads as an intentional design
   choice, not a faded/broken button. Still non-interactive. */
.resources-category-btn {
  width: 100%; justify-content: center;
  opacity: 0.7; cursor: not-allowed; box-shadow: none;
  border: 1px solid rgba(8,17,34,0.18);
  background: rgba(8,17,34,0.06);
  color: var(--text-muted);
}
.resources-category-btn:hover { transform: none; box-shadow: none; }

/* ---------- Featured resources ---------- */
.resources-featured-section {
  text-align: center;
  background: linear-gradient(180deg, var(--resources-cream-dim), var(--resources-cream));
}
.resources-featured-section .section-title { color: var(--navy-deep); }
.resources-featured-section .section-lead { color: var(--text-muted); }
.resources-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 2.4rem;
}
.resources-feature-card {
  background: var(--white);
  border: 1px solid rgba(8,17,34,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(8,17,34,0.1);
  padding: 0 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 300px;
  position: relative;
}
.resources-feature-media { width: calc(100% + 36px); height: 130px; overflow: hidden; margin: 0 -18px; }
/* ROUND 3: same top-anchored crop as the category cards, for consistency. */
.resources-feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.resources-feature-icon {
  width: 60px; height: 60px;
  display: block; margin: -30px auto 14px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(8,17,34,0.3);
  background: var(--navy-deep);
}
.resources-feature-card h3 { color: var(--navy-deep); font-size: 1rem; margin: 0 0 0.5em; }
.resources-feature-card p { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 1.2em; }
.resources-feature-btn {
  margin-top: auto;
  opacity: 0.55; cursor: not-allowed; box-shadow: none;
}
.resources-feature-btn:hover { transform: none; box-shadow: none; }

/* ---------- Closing banner ---------- */
.resources-closing-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.resources-closing-inner .eyebrow-center-dark { text-align: center; }
.resources-closing-inner .section-lead { margin-bottom: 1.6em; }

/* ROUND 4: footer_mountains_CLEAN_PREVIEW.jpg installed behind the live
   HTML closing content, page-scoped so it never affects .on-silk
   elsewhere on this page (hero) or on other pages. Keeps the same dark
   gradient overlay .on-silk already uses everywhere else on the site for
   text contrast, just swaps the backdrop image underneath it. */
body.page-resources .resources-closing-photo.on-silk {
  background-image:
    linear-gradient(160deg, rgba(6,14,28,0.86) 0%, rgba(6,14,28,0.72) 55%, rgba(6,14,28,0.86) 100%),
    url('../assets/images/resources/closing-mountains-CLEAN-PREVIEW.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Footer spacing (this page only — contact info itself is
   untouched, only breathing room/line-height is increased) ---------- */
body.page-resources .footer-grid { gap: 48px; padding-bottom: 40px; }
body.page-resources .footer-nav { gap: 14px; }
body.page-resources .footer-contact { gap: 10px; }
body.page-resources .footer-contact p { line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .resources-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-featured-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}

@media (max-width: 420px) {
  .resources-page-section { padding: 52px 0; }
  .resources-categories-grid { grid-template-columns: 1fr; }
  .resources-featured-grid { grid-template-columns: 1fr; }
  .resources-category-icon { width: 54px; height: 54px; margin-top: -27px; }
  .resources-feature-icon { width: 48px; height: 48px; margin-top: -24px; }
  .resources-feature-card { min-height: 0; }
  body.page-resources .brand-logo { height: 58px; }
}
