/* ==========================================================================
   UES GROUP — PAGE / SECTION STYLES
   Loads after tokens.css, base.css, components.css
   ========================================================================== */

/* --- HERO (home, full-bleed) ------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: var(--header-h); color: #fff; overflow: hidden; isolation: isolate;
  background: var(--dark-bg);
}
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* fallback animated gradient when no video */
.hero__media--gradient {
  background:
    radial-gradient(60% 80% at 20% 20%, rgba(168,19,47,0.55), transparent 60%),
    radial-gradient(50% 60% at 85% 30%, rgba(111,10,29,0.5), transparent 60%),
    linear-gradient(160deg, #14161B 0%, #0B0C10 60%);
}
.hero__scrim { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(11,12,16,0.85) 0%, rgba(11,12,16,0.55) 45%, rgba(11,12,16,0.25) 100%); }
.hero .grid-texture::before { z-index: -1; }
.hero__inner { max-width: 820px; }
.hero__title { font-size: var(--fs-6xl); line-height: 0.98; color: #fff; letter-spacing: -0.03em; }
.hero__title .accent { color: var(--brand-300); }
.hero__sub { margin-top: var(--space-6); font-size: var(--fs-xl); color: rgba(255,255,255,0.82); max-width: 60ch; }
.hero__cta { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero__scroll { position: absolute; bottom: var(--space-8); left: 50%; transform: translateX(-50%); z-index: 1; color: rgba(255,255,255,0.6); font-family: var(--font-display); font-size: 0.75rem; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.hero__scroll::after { content: ""; width: 1px; height: 40px; background: linear-gradient(rgba(255,255,255,0.6), transparent); animation: scrollHint 1.8s var(--ease-in-out) infinite; }
@keyframes scrollHint { 0%,100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* --- Sub-page hero (interior) ------------------------------------------ */
.page-hero {
  position: relative; padding-top: calc(var(--header-h) + var(--space-16));
  padding-bottom: var(--space-16); color: #fff; overflow: hidden; isolation: isolate;
  background: var(--dark-bg);
}
.page-hero__inner { max-width: 780px; position: relative; }
.page-hero h1 { font-size: var(--fs-5xl); margin-top: var(--space-4); color: #fff; }
.page-hero p { margin-top: var(--space-5); font-size: var(--fs-lg); color: rgba(255,255,255,0.82); }
.page-hero .breadcrumb { color: rgba(255,255,255,0.6); margin-bottom: var(--space-6); }
.page-hero .breadcrumb a:hover { color: #fff; }

/* --- Pillar / feature cards grid --------------------------------------- */
.pillars { margin-top: var(--space-12); }

/* Asymmetric featured-pillar layout: one large image-led card + a compact
   list of the remaining pillars. Breaks the identical 4-up card grid. */
.pillars-grid {
  margin-top: var(--space-12);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-8);
  align-items: stretch;
}
.pillar-feature {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.pillar-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pillar-feature__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,16,0) 30%, rgba(11,12,16,0.88) 100%);
}
.pillar-feature__content { position: relative; padding: var(--space-8); z-index: 1; }
.pillar-feature__content .card__title { font-size: var(--fs-2xl); }
.pillar-feature__content a::after { content: ""; position: absolute; inset: 0; }

.pillar-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.pillar-row {
  position: relative;
  display: flex; align-items: flex-start; gap: var(--space-5);
  padding: var(--space-6) var(--space-2);
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.pillar-row:hover { padding-left: var(--space-4); background: var(--bg-subtle); }
.pillar-row__icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--brand-50); color: var(--brand); display: grid; place-items: center;
}
.pillar-row h4 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.pillar-row p { font-size: var(--fs-sm); }
.pillar-row__arrow { flex-shrink: 0; margin-top: var(--space-2); color: var(--text-muted); transition: transform var(--dur) var(--ease-out), color var(--dur); }
.pillar-row:hover .pillar-row__arrow { color: var(--brand); transform: translateX(4px); }

@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar-feature { min-height: 340px; }
}

/* --- Split content (image + text) -------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-muted); aspect-ratio: 4/3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

/* --- Feature list (checkmarks) ----------------------------------------- */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-6); }
.feature-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.feature-list li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23A8132F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 6l3 3 5-6'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.band-dark .feature-list li::before { background-color: rgba(168,19,47,0.2); }

/* --- FAQ (AEO answer blocks) ------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: var(--space-6) 0; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); color: var(--text); }
.faq__q .icon { flex-shrink: 0; width: 24px; height: 24px; position: relative; transition: transform var(--dur); }
.faq__q .icon::before, .faq__q .icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background: var(--brand); transform: translate(-50%,-50%); }
.faq__q .icon::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform var(--dur); }
.faq__item[open] .faq__q .icon::after { transform: translate(-50%,-50%) rotate(0); }
.faq__a { padding-bottom: var(--space-6); }
.faq__a p { font-size: var(--fs-base); max-width: 68ch; }
details.faq__item summary { list-style: none; }
details.faq__item summary::-webkit-details-marker { display: none; }

/* --- CTA band ----------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band__inner { max-width: 720px; margin-inline: auto; }
.cta-band h2 { font-size: var(--fs-4xl); }
.cta-band p { margin-top: var(--space-4); font-size: var(--fs-lg); }
.cta-band .btn { margin-top: var(--space-8); }

/* --- Resources / article cards ----------------------------------------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-8); }
.article-card { display: flex; flex-direction: column; }
.article-card__media { aspect-ratio: 16/9; background: var(--bg-muted); border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.article-card__body { border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: var(--space-6); flex: 1; display: flex; flex-direction: column; }
.article-card__meta { display: flex; gap: var(--space-3); align-items: center; font-family: var(--font-display); font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--tracking-wide); margin-bottom: var(--space-3); }
.article-card h3 { font-size: var(--fs-xl); }
.article-card__link { position: absolute; inset: 0; }
.article-card { position: relative; transition: transform var(--dur) var(--ease-out); }
.article-card:hover { transform: translateY(-4px); }
.article-card:hover h3 { color: var(--brand); }
.is-hidden { display: none !important; }

/* --- Values / three pillars grid --------------------------------------- */
.value-card { text-align: left; }
.value-card__num { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 600; color: var(--brand-200); line-height: 1; }
.band-dark .value-card__num { color: var(--brand-400); }

/* --- Careers roles ------------------------------------------------------ */
.role { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color var(--dur), box-shadow var(--dur); }
.role:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.role__meta { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-2); color: var(--text-muted); font-family: var(--font-display); font-size: var(--fs-sm); }

/* --- Interstitial (UESES redirect) ------------------------------------- */
.interstitial { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--header-h) var(--gutter) var(--space-16); }
.interstitial__inner { max-width: 560px; }
.interstitial__spinner { width: 46px; height: 46px; border: 3px solid var(--dark-border); border-top-color: var(--brand-400); border-radius: 50%; margin: var(--space-8) auto 0; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.countdown { font-family: var(--font-display); color: var(--brand-300); font-weight: 600; }

/* --- Map embed ---------------------------------------------------------- */
.map-embed { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); aspect-ratio: 16/9; background: var(--bg-muted); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* --- Contact grid ------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-row { display: flex; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.info-row__icon { flex-shrink: 0; color: var(--brand); }
.info-row h4 { font-size: var(--fs-base); }
.info-row p { font-size: var(--fs-base); margin-top: 2px; }
