/* CRES Dynamics — Professional Monochrome Brand CSS */
:root {
  --ink: #000000;
  --ink-soft: #1a1a1a;
  --ink-muted: #4d4d4d;
  --ink-faint: #7a7a7a;
  --paper: #ffffff;
  --line: #e6e6e6;
  --line-dark: rgba(255,255,255,0.14);
  --neutral-bg: #ffffff;
  --navy-primary: #222D3E;
  --navy-dark: #141B28;
  --teal-accent: #0D7A8A;
  --teal-deep: #095A67;
  --teal-accent-hover: #0B6A79;
  --orange-energy: #F39223;
  --orange-energy-hover: #E07F14;
  --cres-gradient-bg: #141B28;
  --cres-orange-primary: #F39223;
  --cres-black: #141B28;
  /* Brand colors — professional usage (no gradients) */
  --brand-navy: #222D3E;
  --brand-orange: #F39223;
  --brand-teal: #0D7A8A;
  --brand-yellow-orange: #F9B233;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.08);
  --shadow-lg: 0 18px 40px rgba(0,0,0,0.12);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: #fff; color: var(--ink); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ─── NAV ─── */
.nav-glass { background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line); transition: background 0.35s, border-color 0.35s; }
.nav-glass-scrolled { background: rgba(255,255,255,0.99); border-bottom: 1px solid var(--line); box-shadow: 0 1px 12px rgba(0,0,0,0.05); }
.nav-link-glass { position: relative; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.25rem; font-size: 13px; font-weight: 500; color: var(--ink-muted); background: none; border: none; cursor: pointer; border-radius: 0; transition: color 0.15s; }
.nav-link-glass:hover { color: var(--ink); }
.nav-link-glass.active { color: var(--ink); }
.nav-link-glass::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
.nav-link-glass:hover::after, .nav-link-glass.active::after { transform: scaleX(1); }
.nav-cta-glass { display: inline-flex; align-items: center; padding: 0.5rem 1.1rem; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--brand-orange); border: 1px solid var(--brand-orange); border-radius: 2px; transition: all 0.2s; }
.nav-cta-glass:hover { background: #e68515; border-color: #e68515; box-shadow: 0 4px 12px rgba(243, 146, 35, 0.25); }

/* Dropdown — image cards on hover */
.nav-dropdown { position: fixed; left: 0; right: 0; top: 57px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.18s ease-out; }
.nav-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: block; padding: 16px; border-radius: 8px; transition: all 0.25s ease; position: relative; overflow: hidden; }
.dropdown-item:hover { background: rgba(0,0,0,0.02); transform: translateY(-2px); }
.dropdown-img { width: 100%; height: 96px; border-radius: 8px; object-fit: cover; background: #f0f0f0; margin-bottom: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.3s; }
.dropdown-item:hover .dropdown-img { transform: scale(1.04); }
.dropdown-title { font-size: 14px; font-weight: 600; color: var(--ink-soft); transition: color 0.15s; }
.dropdown-item:hover .dropdown-title { color: var(--brand-orange); }
.dropdown-desc { font-size: 12px; color: var(--ink-faint); margin-top: 4px; transition: color 0.15s; }
.dropdown-item:hover .dropdown-desc { color: var(--ink-muted); }
.dropdown-head { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin: 14px 0 6px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1024px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .grid-5 { grid-template-columns: 1fr; } }

/* Mobile menu */
.mobile-menu { position: fixed; top: 64px; right: -300px; width: 300px; max-height: 74vh; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; padding: 24px 20px; transition: right 0.4s cubic-bezier(0.25,0.46,0.45,0.94); z-index: 50; box-shadow: -12px 0 40px rgba(0,0,0,0.12); overflow-y: auto; }
.mobile-menu.open { right: 0; }
.mobile-menu a, .mobile-menu button { color: var(--ink); font-size: 15px; font-weight: 500; padding: 8px 12px; border: none; background: none; cursor: pointer; text-align: left; width: 100%; border-radius: 0; }
.mobile-menu a:hover, .mobile-menu button:hover { color: var(--ink); background: #f5f5f5; }
.mobile-submenu { margin-left: 16px; display: flex; flex-direction: column; gap: 4px; }
.mobile-submenu a { font-size: 13px; color: var(--ink-muted); }
.mobile-submenu a:hover { color: var(--ink); }

/* ─── BUTTONS ─── */
.hero-btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.6rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--ink); border-radius: 2px; border: 1px solid var(--ink); cursor: pointer; transition: opacity 0.2s, transform 0.2s; }
.hero-btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.hero-btn-glass { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.78rem 1.6rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); background: transparent; border-radius: 2px; border: 1px solid var(--ink); cursor: pointer; transition: all 0.2s; }
.hero-btn-glass:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }

/* ─── HERO ─── */
.hero-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; background: #fff; overflow: hidden; }
.hero-section .hero-content { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 100px 24px 80px; }
.hero-title { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; color: var(--ink); margin-bottom: 1.25rem; letter-spacing: -0.01em; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--ink-muted); max-width: 640px; line-height: 1.7; }

/* Underlined heading — professional solid rule */
.hero-title-underline, h1.underline { display: inline-block; padding-bottom: 0.12em; border-bottom: 4px solid var(--ink); }

/* ─── SECTIONS ─── */
.section-dark { background: #000; color: #fff; padding: 80px 24px; }
.section-teal { background: #000; color: #fff; padding: 80px 24px; }
.section-light { background: #fff; color: var(--ink); padding: 80px 24px; }
.section-white { background: #fff; color: var(--ink); padding: 80px 24px; }
.section-container { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.25; margin-bottom: 1rem; letter-spacing: -0.01em; }
.section-subtitle { font-size: 1rem; color: var(--ink-muted); max-width: 600px; }
.section-dark .section-subtitle, .section-teal .section-subtitle { color: rgba(255,255,255,0.7); }
.section-light .section-subtitle, .section-white .section-subtitle { color: var(--ink-muted); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-teal); margin-bottom: 12px; display: block; }
.section-dark .eyebrow, .section-teal .eyebrow { color: #fff; }
.section-title.underline-title { display: inline-block; padding-bottom: 0.12em; border-bottom: 3px solid var(--ink); margin-bottom: 1.25rem; }
.section-dark .section-title.underline-title, .section-teal .section-title.underline-title { border-bottom-color: #fff; }

/* ─── CARDS ─── */
.card { background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 26px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.section-dark .card, .section-teal .card { background: rgba(255,255,255,0.03); border: 1px solid var(--line-dark); }
.section-dark .card:hover, .section-teal .card:hover { box-shadow: none; border-color: rgba(255,255,255,0.3); }
.card-light { background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 26px; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.card-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ─── GRID ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-6 { grid-template-columns: repeat(3, 1fr); } }

/* ─── FORMS ─── */
.form-input { width: 100%; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); font-size: 14px; transition: border-color 0.2s, box-shadow 0.2s; }
.section-dark .form-input, .section-teal .form-input { background: rgba(255,255,255,0.06); border-color: var(--line-dark); color: #fff; }
.form-input::placeholder { color: var(--ink-faint); }
.form-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.form-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 6px; }
.section-dark .form-label, .section-teal .form-label { color: rgba(255,255,255,0.55); }
.form-textarea { resize: none; min-height: 100px; }

/* ─── MARQUEE ─── */
.cres-marquee-wrap { background: #000; overflow: hidden; padding: 12px 0; }
.cres-marquee { display: flex; white-space: nowrap; animation: cres-marquee 24s linear infinite; }
.cres-marquee-item { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; padding: 0 2rem; display: flex; align-items: center; gap: 2rem; font-weight: 600; }
.cres-marquee-item::after { content: '—'; font-size: 12px; }
@keyframes cres-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── FOOTER ─── */
footer { background: #000; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-link { color: rgba(255,255,255,0.78); font-size: 12px; display: block; padding: 3px 0; transition: color 0.15s; }
.footer-link:hover { color: #fff; }
.footer-heading { color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 16px; }

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeInUp 0.6s ease-out both; }
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── STAT CARDS ─── */
.stat-card { border: 1px solid var(--line-dark); background: rgba(255,255,255,0.04); border-radius: 2px; padding: 20px; text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: #fff; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.7); }

/* ─── CHAT WIDGET ─── */
.chat-launcher { position: fixed; bottom: 16px; right: 16px; z-index: 50; cursor: pointer; animation: chat-float 4s ease-in-out infinite; }
@keyframes chat-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.chat-launcher-btn { width: 48px; height: 48px; border-radius: 50%; background: #111; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 8px 28px rgba(0,0,0,0.3); }
.chat-launcher-ring { position: absolute; inset: -2px; border-radius: 50%; background: #111; animation: ring-spin 8s linear infinite; }
@keyframes ring-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.chat-launcher-dot { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: #34d399; border: 2px solid #111; }
.chat-window { position: fixed; bottom: 16px; right: 16px; z-index: 50; width: min(320px, calc(100vw - 24px)); height: min(420px, calc(100vh - 72px)); background: #111; border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.chat-header { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.12); background: #111; display: flex; align-items: center; gap: 8px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 85%; padding: 8px 12px; border-radius: 8px; font-size: 12px; line-height: 1.5; }
.chat-msg.user { align-self: flex-end; background: #fff; color: #111; border-bottom-right-radius: 2px; }
.chat-msg.assistant { align-self: flex-start; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.95); border-bottom-left-radius: 2px; }
.chat-input-area { padding: 8px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; gap: 6px; }
.chat-input-area input { flex: 1; padding: 8px 12px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.08); color: #fff; font-size: 12px; outline: none; }
.chat-input-area input:focus { border-color: #fff; }
.chat-send-btn { padding: 8px 12px; border-radius: 2px; background: #fff; border: none; color: #111; font-weight: 600; font-size: 12px; cursor: pointer; }
.chat-send-btn:hover { opacity: 0.85; }
.chat-peek { position: fixed; bottom: 80px; right: 16px; z-index: 50; width: min(264px, calc(100vw - 32px)); background: #111; border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; padding: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.4); animation: peekIn 0.35s cubic-bezier(0.22,0.61,0.36,1) both; }
@keyframes peekIn { 0% { opacity: 0; transform: translateY(12px) scale(0.92); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

/* ─── ADMIN ─── */
.admin-layout { display: flex; height: 100vh; overflow: hidden; background: #0e0e0e; color: #fff; }
.admin-sidebar { width: 240px; background: rgba(0,0,0,0.4); border-right: 1px solid rgba(255,255,255,0.08); padding: 16px 0; display: flex; flex-direction: column; flex-shrink: 0; overflow-y: auto; }
.admin-sidebar a { display: block; padding: 10px 20px; font-size: 13px; color: rgba(255,255,255,0.7); transition: all 0.15s; }
.admin-sidebar a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.admin-sidebar a.active { color: #fff; background: rgba(255,255,255,0.1); border-right: 3px solid #fff; }
.admin-main { flex: 1; overflow-y: auto; padding: 20px; }
.admin-card { background: #161616; box-shadow: 0 1px 3px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 20px; }
.admin-neu-inset { background: #0d0d0d; border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; padding: 10px 14px; color: #fff; font-size: 13px; }
.admin-neu-inset:focus { box-shadow: 0 0 0 2px rgba(255,255,255,0.4); border-color: rgba(255,255,255,0.5); outline: none; }
.admin-btn { padding: 8px 16px; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid rgba(255,255,255,0.12); transition: all 0.2s; }
.admin-btn-primary { background: #fff; color: #111; border-color: #fff; }
.admin-btn-primary:hover { opacity: 0.85; }
.admin-btn-danger { background: #2a1215; color: #fca5a5; border-color: rgba(248,113,113,0.3); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { text-align: left; padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.5); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.admin-table td { padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.admin-table tr:hover td { background: rgba(255,255,255,0.03); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .admin-sidebar { display: none; }
  .mobile-show { display: block !important; }
}
@media (max-width: 768px) {
  .hero-section .hero-content { padding: 80px 16px 60px; }
  .section-dark, .section-teal, .section-light, .section-white { padding: 48px 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .event-grid-2 { grid-template-columns: 1fr !important; }
  .event-grid-3 { grid-template-columns: 1fr !important; }
  .event-gallery { grid-template-columns: 1fr !important; grid-template-rows: auto !important; }
  .event-gallery > div { grid-column: span 1 !important; grid-row: span 1 !important; height: 200px !important; }
  .event-hero-stats { grid-template-columns: repeat(2,1fr) !important; }
  .event-info-bar { grid-template-columns: 1fr 1fr !important; }
  .event-info-bar > div { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .event-partners { flex-direction: column !important; align-items: center !important; text-align: center; }
}

/* Page hero H1 on inner pages — clean underlined professional heading */
main h1 {
  display: inline-block;
  padding-bottom: 0.1em;
  margin-bottom: 1.25rem;
  border-bottom: 4px solid currentColor;
}
main .blog-post-header h1 {
  display: block;
  border-bottom: none;
  padding-bottom: 0;
}
main .blog-post h1 {
  display: block;
  border-bottom: none;
  padding-bottom: 0;
}

/* ─── Legacy variable aliases (views reference these var names) ─── */
:root {
  --bg-card: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #ebebeb;
  --border-color: #e6e6e6;
  --color-primary: #000000;
  --text-primary: #000000;
  --text-secondary: #333333;
  --text-muted: #666666;
}

/* ─── Shared structural classes used across views ─── */
.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 2.5rem; border-left: 4px solid var(--brand-navy); padding-left: 12px; }
.section-header .eyebrow { color: var(--brand-teal); margin-left: -16px; }

.nav-item { position: relative; }
.mobile-dropdown-btn { font-weight: 600; }

.filter-group { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 2rem; }
.filter-btn {
  padding: 7px 16px; border: 2px solid var(--line); background: #fff; color: var(--ink-muted);
  border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--brand-teal); color: var(--brand-teal); background: rgba(13, 122, 138, 0.04); }
.filter-btn.active { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff; }

.lanyard-picker { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lanyard-chip {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-dark); background: rgba(255,255,255,0.04); color: #e5e7eb;
  cursor: pointer; font-size: 0.8rem; font-weight: 700; transition: all 0.15s;
}
.lanyard-chip:hover, .lanyard-chip.active { border-color: #fff; background: rgba(255,255,255,0.12); color: #fff; }

.step-dot { transition: all 0.2s; }
.step-line-1, .step-line-2, .step-line-3 { flex: 1; height: 2px; background: rgba(255,255,255,0.12); margin: 0 0.5rem; }

.toggle-project-btn { transition: background 0.2s; }
.toggle-project-btn:hover { background: #222 !important; }

.blog-post-date { color: var(--text-muted); }
/* Merged from local — homepage hero animations */
@keyframes gradient-shift { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }
