/*
Theme Name: Morton Risk
Theme URI: https://www.mortonrisk.com
Author: Peter Welch
Author URI: https://www.mortonrisk.com
Description: A custom WordPress theme for Morton Risk — a Quantitative Research and Financial Engineering Hub featuring a gold, silver, and deep-blue design aesthetic.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mortonrisk
Tags: finance, research, analytics, professional, dark-theme
*/

/* =============== GLOBAL STYLES =============== */

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  background-color: #0a0f1a;
  color: #f0f0f0;
  scroll-behavior: smooth;
}

/* Color palette */
:root {
  --gold: #d4af37;
  --silver: #c0c0c0;
  --blue-deep: #001a33;
  --blue-accent: #004080;
  --dark-bg: #0a0f1a;
}

/* Headings */
h1, h2, h3, h4 {
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
}

h2, h3 {
  color: var(--silver);
  font-weight: 600;
}

/* Links */
a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--silver);
}

/* Buttons */
button, .btn {
  background-color: var(--blue-accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}

button:hover, .btn:hover {
  background-color: var(--gold);
  color: var(--dark-bg);
}

/* Footer */
footer {
  background-color: var(--blue-deep);
  text-align: center;
  color: var(--silver);
  font-size: 0.9rem;
  padding: 2rem 0;
  border-top: 1px solid #2e3a5c;
}

/* Rolling Disclaimer (reuse from your index.php) */
#disclaimer-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #000814;
  color: var(--gold);
  font-size: 14px;
  text-align: center;
  overflow: hidden;
  z-index: 9999;
  border-top: 1px solid #2e3a5c;
  padding: 6px 0;
}

.disclaimer-text {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 18s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  .hero {
    padding: 5rem 1.5rem;
  }
}

/* ================== NAVIGATION BAR ================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(0, 26, 51, 0.95);
  border-bottom: 1px solid #2e3a5c;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 55px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--silver);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: var(--gold);
}

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    background-color: #0a0f1a;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    display: none;
  }
}

/* ========================= */
/* Morton Risk Polish Styles */
/* ========================= */

/* --- Hero Gradient --- */
.hero {
  background: radial-gradient(circle at 50% 30%, #001a33 0%, #0a0f1a 90%);
}

/* --- Section Card Hover --- */
.section-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* --- Explore Button Enhancement --- */
.hero a {
  background-color: var(--blue-accent);
  color: white;
  padding: 12px 26px;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}

.hero a:hover {
  background-color: var(--gold);
  color: var(--dark-bg);
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(212,175,55,0.5);
}

/* --- Nav Hover Glow --- */
.nav-list a:hover {
  color: var(--gold);
  text-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
}

/* --- Scroll-to-Top Button --- */
#scrollTop {
  position: fixed;
  bottom: 70px;
  right: 25px;
  width: 44px;
  height: 44px;
  background-color: var(--blue-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#scrollTop.visible {
  opacity: 1;
  visibility: visible;
}

#scrollTop:hover {
  background-color: var(--gold);
  color: var(--dark-bg);
}

/* --- Keyframes for smooth fade --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-card {
  animation: fadeInUp 0.6s ease forwards;
}

