@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy-950: #0B1428; --navy-900: #10192F; --navy-800: #182644; --navy-700: #223360;
  --gold-500: #C9972B; --gold-400: #DDB151; --gold-100: #F6E7C4;
  --cream: #FAF7EF; --white: #FFFFFF; --ink: #14203A; --muted: #5C6478;
  --line: rgba(20, 34, 66, 0.10); --line-dark: rgba(246, 231, 196, 0.14);
  --danger: #C0503F; --success: #2F7A55;
  --font-display: 'Sora', sans-serif; --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --fast: 0.22s; --med: 0.45s; --slow: 0.75s;
}
* { box-sizing: border-box; }
html 
{ 
  scroll-behavior: smooth; 
}
body 
  {
    margin: 0; 
    font-family: var(--font-body); 
    background: var(--cream); 
    color: var(--ink); 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; 
  }
img 
  {
    max-width: 100%;
    display: block; 
  }
h1, h2, h3, h4 
  { 
    font-family: var(--font-display); 
    margin: 0; 
    line-height: 1.15; 
    color: var(--navy-900);
  }
p 
  { 
    margin: 0;
    line-height: 1.7;
    color: var(--muted);
  }
a 
  { 
    color: inherit; 
    text-decoration: none; 
  }
button 
  { 
    font-family: var(--font-body);
    cursor: pointer;
  }
code 
  {
    background: rgba(20,34,66,0.06);
    padding: 2px 6px;
    border-radius: 5px; 
  }
.container 
  { 
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
  }
section 
  { 
    position: relative;
  }
.eyebrow
  {
    display: inline-block; 
    font-family: var(--font-display); 
    font-size: 12px; 
    font-weight: 700; 
    letter-spacing: 0.22em; 
    text-transform: uppercase; 
    color: var(--gold-500); 
    margin-bottom: 14px; 
  }
.section-head 
  { 
    max-width: 620px;
    margin-bottom: 48px;
  }
.section-head h2
 { 
   font-size: clamp(28px, 4vw, 40px);
   margin-bottom: 14px;
 }
.section-head p 
  { 
    font-size: 16px; 
  }
.section-head.center 
  { 
    margin-left: auto; 
    margin-right: auto; 
    text-align: center; 
  }

.route 
  { 
    display: none; 
  }
.route.active 
  { 
    display: block;
    animation: routeFadeIn var(--slow) var(--ease) both; 
  }
@keyframes routeFadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }


.reveal 
  { 
    opacity: 0; 
    transform: translateY(28px); 
    transition: opacity var(--slow) var(--ease), 
    transform var(--slow) var(--ease); 
  }
.reveal.is-visible 
  { 
    opacity: 1; 
    transform: translateY(0); 
  }
  .reveal-delay-1 
  { 
    transition-delay: 0.08s; 
  }
.reveal-delay-2 
  { 
    transition-delay: 0.16s; 
  }
.reveal-delay-3 
  { 
    transition-delay: 0.24s; 
  }

#sunrise-bar 
  { 
    position: fixed; 
    top: 0; 
    left: 0; 
    height: 3px; 
    width: 0%; 
    background: linear-gradient(90deg, var(--navy-800), var(--gold-500), var(--gold-400)); 
    z-index: 1000; 
    transition: width 0.1s linear; 
  }

.site-nav 
  { 
    position: sticky; 
    top: 0; 
    z-index: 500; 
    background: rgba(250, 247, 239, 0.85); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--line);
  
  }
.site-nav .container 
{ 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  height: 78px; 
}
.brand 
{ 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  font-family: var(--font-display); 
  font-weight: 700; 
  font-size: 18px; 
  color: var(--navy-900); 
  cursor: pointer; 
}
.brand img 
{ 
  height: 42px; 
  width: 42px; 
  object-fit: contain; 
}
.brand .tagline 
{ 
  display: block; 
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.14em; 
  text-transform: uppercase; 
  color: var(--gold-500); 
}

.nav-links 
{ 
  display: flex; 
  align-items: center; 
  gap: 32px; 
  font-size: 14.5px; 
  font-weight: 500; 
  color: var(--navy-800); 
}
.nav-links a 
{ 
  position: relative;
  padding: 6px 0; 
  cursor: pointer; 
}
.nav-links a::after 
{ 
  content: ""; 
  position: absolute; 
  left: 0; 
  bottom: 0; 
  width: 0%; 
  height: 2px; 
  background: var(--gold-500); 
  transition: width var(--fast) var(--ease); 
}
.nav-links a:hover::after, .nav-links a.active-link::after 
{ 
  width: 100%; 
}
.nav-links a.active-link 
{ 
  color: var(--navy-950); 
  font-weight: 600; 
}
.nav-links a.admin-link 
{ 
  color: var(--muted); 
  font-size: 12.5px; 
}
.nav-toggle 
{ 
  display: none; 
  background: none; 
  border: none; 
  padding: 6px; 
}
.nav-toggle span 
{ 
  display: block; 
  width: 22px; 
  height: 2px; 
  background: var(--navy-900); 
  margin: 5px 0; 
}


.btn 
{ 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  padding: 13px 26px; 
  border-radius: 999px; 
  font-size: 14px; 
  font-weight: 600; 
  border: 1px solid transparent; 
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), filter var(--fast) var(--ease), background var(--fast) var(--ease); 
  white-space: nowrap; 
}
.btn-primary 
{ 
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); 
  color: var(--navy-950); 
}
.btn-primary:hover 
{ 
  transform: translateY(-3px); 
  box-shadow: 0 16px 30px -14px rgba(201, 151, 43, 0.55); 
  filter: brightness(1.04); 
}
.btn-ghost 
{ 
  background: transparent; 
  border-color: var(--line); 
  color: var(--navy-900);
}
.btn-ghost:hover 
{ 
  border-color: var(--navy-700); 
  background: rgba(20,34,66,0.04);
}
.btn-dark 
{ 
  background: var(--navy-900); 
  color: var(--cream); 
}
.btn-dark:hover 
{ 
  transform: translateY(-3px); 
  box-shadow: 0 16px 30px -16px rgba(11,20,40,0.5); 
}
.btn-sm 
{ 
  padding: 9px 18px; 
  font-size: 13px; 
}
.btn:disabled 
{ 
  opacity: 0.6; 
  cursor: not-allowed; 
  transform: none !important; 
}

/* Hero */
.hero 
{ 
  position: relative;
  padding: 300px 0 60px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #16244A 0%, var(--navy-950) 62%);
}
.hero .container 
{ 
  display: grid; 
  grid-template-columns: 1.05fr 0.95fr; 
  align-items: center; 
  gap: 40px; 
}
.hero.hero-simple .container 
{ 
  grid-template-columns: 1fr; 
  text-align: center;
  max-width: 760px; 
}
.hero h1 
{ 
  font-size: clamp(36px, 5.4vw, 58px); 
  color: var(--white); 
  margin-bottom: 20px;
}
.hero h1 em 
{ 
  font-style: normal; 
  color: var(--gold-400); 
}
.hero p.lead 
{ 
  color: rgba(250, 247, 239, 0.72); 
  font-size: 17px; 
  max-width: 460px; 
  margin-bottom: 32px;
}
.hero.hero-simple p.lead 
{ 
  margin: 0 auto 32px; 
}
.hero-actions 
{ 
  display: flex; 
  flex-wrap: wrap; 
  gap: 14px; 
}
.hero-visual 
{ 
  position: relative; 
  perspective: 1000px; 
  height: 420px; 
}
.hero-visual .layer 
{ 
  position: absolute; 
  inset: 0; 
  transition: transform 0.15s ease-out; 
  will-change: transform; 
}
.hero-visual .glow 
{ 
  position: absolute; 
  left: 50%; 
  top: 40%; 
  width: 340px; 
  height: 340px; 
  background: radial-gradient(circle, rgba(221,177,81,0.35), transparent 70%); 
  transform: translate(-50%, -50%); 
}
.hero-visual svg 
{ width: 100%; 
  height: 100%; 
}
.logo-badge 
{ 
  width: 260px; 
  height: 260px; 
  border-radius: 50%; 
  background: #fff; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 18px; 
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6); 
  border: 3px solid var(--gold-400);
  margin: 0 auto; 
}
.logo-badge img 
{ 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  border-radius: 50%; 
}
.ridge-divider 
{ 
  display: block; 
  width: 100%; 
  line-height: 0; 
  margin-top:22px; 
}
.ridge-divider svg 
{ 
  width: 100%; 
  height: auto; 
  display: block; 
}

/* Homepage hero photo background — scoped so it never affects .hero-simple on other pages */
.hero.hero-home{ isolation:isolate; }
.hero.hero-home::before{
  content:"";
  position:absolute;
  inset:-24px;
  background-image:url('assets/img/bg.png');
  background-size:cover;
  background-position:center 35%;
  animation:heroKenBurns 26s cubic-bezier(.22,1,.36,1) infinite alternate;
  z-index:0;
}
.hero.hero-home::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(11,20,40,0.62) 0%, rgba(11,20,40,0.32) 45%, rgba(11,20,40,0.94) 100%),
    radial-gradient(80% 60% at 50% 0%, rgba(11,20,40,0) 0%, rgba(11,20,40,0.5) 100%);
  z-index:1;
}
.hero.hero-home .container{ position:relative; z-index:2; }
.hero.hero-home .logo-badge{ box-shadow: 0 40px 80px -30px rgba(0,0,0,0.75), 0 0 0 10px rgba(221,177,81,0.08); }

@keyframes heroKenBurns{
  0%{ transform:scale(1.06) translate(0,0); }
  100%{ transform:scale(1.16) translate(-1.4%, -1%); }
}
@media (prefers-reduced-motion: reduce){
  .hero.hero-home::before{ animation:none; }
}

/* Stat strip */
.stat-strip { background: var(--navy-900); padding: 28px 0; }
.stat-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-strip .num { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--gold-400); }
.stat-strip .label { font-size: 12.5px; color: rgba(250,247,239,0.62); margin-top: 4px; }

/* Cards (3D tilt) */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.tilt-wrap { perspective: 1200px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px; height: 100%; display: flex; flex-direction: column; transform-style: preserve-3d; transition: transform 0.15s ease-out, box-shadow var(--med) var(--ease), border-color var(--med) var(--ease); position: relative; cursor: pointer; }
.card:hover { box-shadow: 0 30px 50px -28px rgba(11, 20, 40, 0.28); border-color: rgba(201,151,43,0.35); }
.card-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-500); background: var(--gold-100); padding: 5px 11px; border-radius: 999px; margin-bottom: 16px; transform: translateZ(30px); }
.card h3 { font-size: 19px; margin-bottom: 10px; transform: translateZ(24px); }
.card p { font-size: 14.5px; flex: 1; margin-bottom: 18px; transform: translateZ(16px); }
.card .meta { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); transform: translateZ(16px); }
.card .read-link { color: var(--navy-900); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.card .read-link svg { transition: transform var(--fast) var(--ease); }
.card:hover .read-link svg { transform: translateX(4px); }

.feature { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: none; }
.feature .icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--navy-900); color: var(--gold-400); display: flex; align-items: center; justify-content: center; }
.feature h4 { font-size: 16.5px; margin-bottom: 6px; }
.feature p { font-size: 14.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media { position: relative; border-radius: 22px; overflow: hidden; background: var(--navy-900); aspect-ratio: 4 / 3.2; display: flex; align-items: center; justify-content: center; }
.split-media img { width: 56%; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)); }

.quote-card { background: var(--navy-900); color: var(--cream); border-radius: 20px; padding: 34px; }
.quote-card p.quote { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--white); margin-bottom: 20px; line-height: 1.55; }
.quote-card .who { font-size: 13px; color: var(--gold-400); }

.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -32px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px var(--cream); }
.timeline-item .year { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--gold-500); letter-spacing: 0.08em; margin-bottom: 6px; display: block; }
.timeline-item h4 { font-size: 17px; margin-bottom: 6px; }
.timeline-item p { font-size: 14.5px; }

.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { border: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: 999px; transition: all var(--fast) var(--ease); }
.chip:hover { border-color: var(--navy-700); color: var(--navy-900); }
.chip[data-active="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--gold-400); }

/* Article */
.article-hero { padding: 64px 0 40px; background: var(--navy-950); color: var(--white); }
.article-hero .container { max-width: 760px; }
.article-hero h1 { color: var(--white); font-size: clamp(28px, 4.6vw, 42px); margin: 16px 0 20px; }
.article-hero .meta-row { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: rgba(250,247,239,0.6); }
.article-body { max-width: 720px; margin: 0 auto; padding: 52px 24px 40px; }
.article-body p { color: var(--ink); font-size: 17.5px; margin-bottom: 22px; }
.article-body p:first-of-type { font-family: var(--font-display); font-size: 20px; color: var(--navy-900); }
.article-related { border-top: 1px solid var(--line); margin: 0 auto; max-width: 1160px; padding: 40px 24px 90px; }

/* Forms */
.form-grid { display: grid; gap: 20px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy-900); margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); font-family: var(--font-body); font-size: 14.5px; color: var(--ink); outline: none; transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201,151,43,0.16); }
.field textarea { resize: vertical; min-height: 130px; }
.field .error { color: var(--danger); font-size: 12.5px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .error { display: block; }
.form-banner { display: none; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px; font-size: 14.5px; margin-bottom: 22px; }
.form-banner.show { display: flex; }
.form-banner.success { background: rgba(47,122,85,0.1); border: 1px solid rgba(47,122,85,0.35); color: var(--success); }
.form-banner.error { background: rgba(192,80,63,0.1); border: 1px solid rgba(192,80,63,0.35); color: var(--danger); }

/* Footer */
.site-footer { background: var(--navy-950); color: rgba(250,247,239,0.65); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line-dark); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 34px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 16px; }
.footer-col h5 { font-family: var(--font-display); color: var(--white); font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; margin-bottom: 10px; cursor: pointer; }
.footer-col a:hover { color: var(--gold-400); }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: center; transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.footer-social a:hover { border-color: var(--gold-500); transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; padding-top: 24px; }

.py-lg { padding: 90px 0; }
.text-center { text-align: center; }
.bg-navy { background: var(--navy-950); }
.bg-white-section { background: var(--white); }
.bg-cream { background: var(--cream); }
.empty-state { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); }

/* Admin */
.admin-shell { max-width: 880px; margin: 0 auto; padding: 60px 24px 100px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; flex-wrap: wrap; gap: 14px; }
.admin-note { background: var(--gold-100); border: 1px solid rgba(201,151,43,0.35); color: #6b4f16; padding: 14px 18px; border-radius: 12px; font-size: 13.5px; margin-bottom: 28px; }
.admin-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.admin-item .type-badge { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-right: 8px; }
.type-blog { background: #E5EAF6; color: #2A3C68; }
.type-story { background: var(--gold-100); color: #6b4f16; }
.admin-item h4 { font-size: 16px; margin-bottom: 4px; }
.admin-item .row-actions { display: flex; gap: 8px; flex-shrink: 0; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; transition: all var(--fast) var(--ease); }
.icon-btn:hover { border-color: var(--navy-700); }
.icon-btn.danger { border-color: rgba(192,80,63,0.4); color: var(--danger); }
.icon-btn.danger:hover { background: rgba(192,80,63,0.06); }
#admin-login-screen { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.login-card { max-width: 380px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; }
.lock-badge { width: 46px; height: 46px; border-radius: 50%; background: var(--gold-100); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--gold-500); }
#admin-dashboard { display: none; }
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; margin-bottom: 30px; display: none; }

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 2fr; }
  .hero-visual { height: 300px; order: -1; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body.nav-open .nav-links { display: flex; position: absolute; top: 78px; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 20px 24px 28px; border-bottom: 1px solid var(--line); gap: 18px; z-index: 400; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}