/* ===================================================================
   INSPIRE Case Competition — shared styles
   Brand blue design system • no framework, no build step
   =================================================================== */

:root {
  --blue: #4A6DA7;          /* primary brand blue (INSPIRE mark) */
  --blue-dark: #35507F;     /* hover / deep accents */
  --blue-deep: #1B2A4A;     /* headings / wordmark navy */
  --blue-soft: #EEF2F9;     /* tinted section background */
  --blue-mist: #DCE5F3;     /* borders / dividers */
  --blue-100: #F6F8FC;
  --ink: #1c2431;           /* body text */
  --muted: #5a6577;         /* secondary text */
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(27, 42, 74, 0.06);
  --shadow-md: 0 12px 30px rgba(27, 42, 74, 0.10);
  --shadow-lg: 0 24px 60px rgba(27, 42, 74, 0.16);
  --radius: 16px;
  --radius-lg: 26px;
  --maxw: 1140px;
  --serif: Georgia, 'Times New Roman', 'Iowan Old Style', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--blue-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 14px;
}

.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(74, 109, 167, 0.30); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(74, 109, 167, 0.38); }
.btn-outline { background: transparent; color: var(--blue-deep); border-color: var(--blue-mist); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: #fff; color: var(--blue-deep); transform: translateY(-3px); }
.btn-lg { font-size: 1.08rem; padding: 18px 40px; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---- Navigation ----------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--blue-mist);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand-word {
  font-family: var(--serif); font-weight: 700; font-size: 1.5rem;
  color: var(--blue-deep); letter-spacing: 0.14em; line-height: 1;
}
.brand-word .sub { display: block; font-family: var(--sans); font-size: 0.52rem; letter-spacing: 0.28em; color: var(--blue); font-weight: 700; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: inline-block; padding: 8px 14px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem; color: var(--blue-deep);
  border-radius: 8px; transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.28s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--blue); }
.nav-cta { margin-left: 6px; }

.nav-toggle, .nav-toggle-label { display: none; }

/* ---- Hero ----------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 90% at 85% 5%, rgba(74,109,167,0.14), transparent 60%),
    radial-gradient(50% 70% at 5% 90%, rgba(74,109,167,0.10), transparent 60%),
    linear-gradient(180deg, var(--blue-100), var(--white));
  padding: 96px 0 104px;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(60px); z-index: 0;
}
.hero::before { width: 380px; height: 380px; background: rgba(74,109,167,0.18); top: -120px; right: -80px; }
.hero::after { width: 300px; height: 300px; background: rgba(138,166,206,0.20); bottom: -120px; left: -60px; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-mark { text-align: center; }
.hero-mark img { height: 260px; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(27,42,74,0.18)); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); margin-bottom: 18px; }
.hero .lead { font-size: 1.24rem; margin-bottom: 20px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 30px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue-deep); }
.hero-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.presenter { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--muted); font-size: 0.92rem; }
.presenter img { height: 30px; opacity: 0.9; }

/* ---- Page header (interior pages) ----------------------------------- */
.page-head {
  background:
    radial-gradient(50% 80% at 90% 0%, rgba(74,109,167,0.12), transparent 60%),
    linear-gradient(180deg, var(--blue-100), var(--white));
  padding: 76px 0 56px; text-align: center;
}
.page-head h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
.page-head .lead { margin: 0 auto; }

/* ---- Sections ------------------------------------------------------- */
section { padding: 74px 0; }
.section-tint { background: var(--blue-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.section-head .lead { margin: 0 auto; }

/* ---- Stats ---------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  background: #fff; border: 1px solid var(--blue-mist); border-radius: var(--radius);
  padding: 30px 20px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat .num { font-family: var(--serif); font-size: 2.5rem; font-weight: 700; color: var(--blue); line-height: 1; }
.stat .label { margin-top: 8px; font-size: 0.9rem; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }

/* ---- Cards ---------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--blue-mist); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--blue-mist); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); margin: 0; }

/* ---- Split / prose -------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.prose p { color: var(--muted); font-size: 1.06rem; }
.prose p + p { margin-top: 16px; }
.mission {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff;
  border-radius: var(--radius-lg); padding: 44px 40px; box-shadow: var(--shadow-md);
}
.mission h3 { color: #fff; font-size: 1.5rem; }
.mission p { color: rgba(255,255,255,0.92); font-size: 1.1rem; margin: 0; }

/* ---- Steps ---------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--blue-mist);
  border-radius: var(--radius); padding: 34px 28px 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step .n {
  width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem; display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }

/* ---- Timeline (schedule) -------------------------------------------- */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--blue-mist); }
.tl-item { position: relative; padding: 0 0 30px 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -34px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 4px solid var(--blue); box-shadow: 0 0 0 4px var(--blue-soft);
}
.tl-time { font-weight: 700; color: var(--blue); font-size: 0.92rem; letter-spacing: 0.02em; }
.tl-item h3 { font-size: 1.18rem; margin: 4px 0 4px; }
.tl-item p { color: var(--muted); margin: 0; }

/* ---- Gallery -------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure {
  margin: 0; border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; background: var(--blue-soft);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; color: #fff;
  font-weight: 600; font-size: 0.95rem;
  background: linear-gradient(180deg, transparent, rgba(27,42,74,0.78));
}

/* ---- Prize banner --------------------------------------------------- */
.prize {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff;
  border-radius: var(--radius-lg); padding: 46px 44px; text-align: center; box-shadow: var(--shadow-md);
}
.prize .big { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 3.4rem); color: #fff; margin: 6px 0 10px; }
.prize h3 { color: #fff; }
.prize p { color: rgba(255,255,255,0.9); max-width: 52ch; margin: 0 auto; }

/* ---- CTA band ------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band .lead { margin: 0 auto 26px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---- Contact -------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 760px; margin: 0 auto; }
.contact-card {
  display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--blue-mist);
  border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.contact-card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.contact-card .icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 1.1rem; margin: 0 0 4px; }
.contact-card a, .contact-card p { color: var(--muted); margin: 0; word-break: break-word; }
.contact-card a:hover { color: var(--blue); }

/* ---- Footer --------------------------------------------------------- */
.footer { background: var(--blue-deep); color: #cdd6e6; padding: 54px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 14px; }
.footer a { color: #cdd6e6; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer .fbrand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer .fbrand img { height: 38px; }
.footer .fbrand .brand-word, .footer .fbrand .brand-word .sub { color: #fff; }
.footer .tagline { color: #9fb0cc; max-width: 34ch; font-size: 0.95rem; }
.footer .omf { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.footer .omf img { height: 46px; background: #fff; border-radius: 10px; padding: 5px; }
.footer .omf span { font-size: 0.82rem; color: #9fb0cc; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.85rem; color: #8ea0bd;
}

/* ---- Reveal animations ---------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.floaty { animation: floaty 5.5s ease-in-out infinite; }

/* ---- Responsive ----------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  .hero-mark img { height: 180px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--blue-mist); padding: 8px 16px 16px;
    box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform 0.35s var(--ease);
  }
  .nav-toggle:checked ~ .nav-links { transform: translateY(0); }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid var(--blue-soft); }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 12px 8px 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle-label {
    display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px;
  }
  .nav-toggle-label span { width: 24px; height: 2px; background: var(--blue-deep); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .stats, .gallery { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; justify-content: center; }
}

/* ===================================================================
   Editorial / photo-driven components (Home page)
   =================================================================== */

/* ---- Photo hero ---- */
.hero-photo {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  background: var(--blue-deep) center/cover no-repeat; color: #fff; overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(107deg, rgba(17,26,46,0.94) 0%, rgba(19,30,53,0.80) 40%, rgba(27,42,74,0.40) 100%);
}
.hero-photo .container { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 64px; }
.hero-photo-inner { max-width: 680px; }
.hero-logo { height: 44px; width: auto; margin-bottom: 24px; filter: brightness(0) invert(1); }
.hero-photo .eyebrow { color: #9db6e0; }
.hero-photo h1 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.1rem); margin-bottom: 20px; line-height: 1.08; }
.hero-photo .lead { color: rgba(255,255,255,0.90); font-size: 1.26rem; max-width: 56ch; }
.hero-photo .hero-meta { margin: 24px 0 30px; }
.hero-photo .hero-meta span { color: #fff; }
.hero-photo .hero-meta .dot { background: #9db6e0; }

/* ---- Solid stat band ---- */
.stat-band { background: var(--blue-deep); padding: 0; }
.stat-band .container { padding-top: 0; padding-bottom: 0; }
.stats2 { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats2 .s { text-align: center; padding: 40px 18px; border-left: 1px solid rgba(255,255,255,0.12); }
.stats2 .s:first-child { border-left: none; }
.stats2 .num { font-family: var(--serif); font-size: 2.6rem; color: #fff; line-height: 1; }
.stats2 .label { color: #9db6e0; font-size: 0.86rem; margin-top: 8px; letter-spacing: 0.04em; font-weight: 600; }

/* ---- Split media (image + text) ---- */
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-text { max-width: 40ch; }
.split-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.media-frame {
  background: var(--blue-soft) center/cover no-repeat; min-height: 460px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); position: relative;
}
.media-frame::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(27,42,74,0.06);
}

/* ---- Editorial feature row (no generic icons) ---- */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.feature-item .fnum { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--blue); }
.feature-item .frule { width: 42px; height: 3px; background: var(--blue); border-radius: 2px; margin: 12px 0 16px; }
.feature-item h3 { font-size: 1.28rem; margin-bottom: 8px; }
.feature-item p { color: var(--muted); margin: 0; }

/* ---- Translucent tile on photo (CTA) ---- */
.overlay-cta { position: relative; background: var(--blue-deep) center/cover no-repeat; color: #fff; overflow: hidden; }
.overlay-cta .hero-overlay { background: linear-gradient(90deg, rgba(17,26,46,0.90) 0%, rgba(19,30,53,0.66) 60%, rgba(27,42,74,0.42) 100%); }
.overlay-cta .container { position: relative; z-index: 2; }
.overlay-tile {
  max-width: 580px; background: rgba(23,35,62,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-lg); padding: 42px 42px;
}
.overlay-tile h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.overlay-tile p { color: rgba(255,255,255,0.90); margin: 0; }

@media (max-width: 900px) {
  .hero-photo { min-height: 78vh; }
  .split-media { grid-template-columns: 1fr; gap: 30px; }
  .split-media .media-frame { min-height: 300px; order: -1; }
  .split-media.text-first .media-frame { order: 0; }
  .stats2 { grid-template-columns: repeat(2, 1fr); }
  .stats2 .s:nth-child(3) { border-left: none; }
  .stats2 .s { border-top: 1px solid rgba(255,255,255,0.12); }
  .stats2 .s:nth-child(1), .stats2 .s:nth-child(2) { border-top: none; }
  .feature-row { grid-template-columns: 1fr; gap: 30px; }
  .overlay-tile { max-width: none; }
}
@media (max-width: 520px) {
  .stats2 { grid-template-columns: 1fr; }
  .stats2 .s { border-left: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .floaty { animation: none !important; }
  .btn:hover, .card:hover, .stat:hover, .step:hover, .contact-card:hover { transform: none !important; }
}
