/* =========================
   CJLC MASTER STYLESHEET
   ========================= */

/* =========================
   RESET
   ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   ROOT COLORS
   ========================= */

:root {
  --cerulean: #1C75BC;
  --violet: #7D1969;
  --orange: #DE9034;
  --header-height: 100px;
  --banner-height: 80px;
  --nav-width: 210px;
  --total-top: 180px;
}

/* =========================
   GLOBAL — KEY FIX
   html and body must NOT scroll
   Only main-content scrolls
   ========================= */

html, body {
  height: 100%;
  overflow: hidden;
  font-family: Georgia, serif;
  color: #111;
}

/* =========================
   PAGE BACKGROUNDS
   ========================= */

body {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.home-page {
  background-image: url('../assets/images/index-bg.png');
}

body.serenade-page {
  background-image: url('../assets/images/serenade-bg.png');
}

body.excessive-page {
  background-image: url('../assets/images/excessive-bg.png');
}

body.bounty-page {
  background-image: url('../assets/images/bounty-bg.png');
}

body.devlin-page {
  background-image: url('../assets/images/devlin-bg.png');
}

/* =========================
   FIXED COMPANY HEADER
   ========================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 3000;
  background: rgba(0,0,0,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  width: 100%;
}

/* =========================
   BRANDING
   ========================= */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crest img {
  width: 75px;
  height: 75px;
  object-fit: contain;
}

.crest-text {
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-size: 1.9rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 3px;
}

.brand-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.brand-fka {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  font-style: italic;
}

/* =========================
   MOBILE MENU TOGGLE
   ========================= */

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 1rem;
}

/* =========================
   FIXED CHARACTER BANNER
   ========================= */

.character-banner {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: var(--banner-height);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}

.banner-placeholder {
  width: 92%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* =========================
   MAIN SITE LAYOUT
   KEY FIX — uses fixed positioning
   so only content scrolls
   ========================= */

.site-layout {
  position: fixed;
  top: var(--total-top);
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
}

/* =========================
   FIXED LEFT NAVIGATION
   ========================= */

.nav {
  width: var(--nav-width);
  height: 100%;
  overflow-y: auto;
  flex-shrink: 0;
  padding: 24px 16px;
  border-right: 1px solid rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-link {
  display: block;
  text-decoration: none;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
  background: rgba(0,0,0,0.08);
}

.nav-link.active {
  font-weight: bold;
  background: rgba(0,0,0,0.1);
  color: var(--violet);
}

/* =========================
   MAIN CONTENT — SCROLLABLE
   KEY FIX — overflow-y: auto
   ========================= */

.main-content {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 30px;
}

/* =========================
   CONTENT CONTAINERS
   ========================= */

.content-container {
  margin-bottom: 30px;
  padding: 28px 30px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.1);
  backdrop-filter: blur(3px);
  border-radius: 2px;
}

/* =========================
   PREMIERE BANNER
   ========================= */

.premiere-banner {
  margin-bottom: 30px;
  padding: 28px 30px;
  background: rgba(0,0,0,0.82);
  border: 1px solid var(--orange);
  color: #fff;
  text-align: center;
}

.premiere-banner h2 {
  color: var(--orange);
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.premiere-banner p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
}

.premiere-banner .btn-premiere {
  display: inline-block;
  padding: 10px 24px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.premiere-banner .btn-premiere:hover {
  background: #c47820;
}

/* =========================
   FEATURE GRID
   ========================= */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.feature-card {
  padding: 20px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.5);
}

.feature-card h3 {
  margin-bottom: 8px;
  color: var(--violet);
}

.feature-card p {
  margin-bottom: 14px;
  font-size: 0.9rem;
}

/* =========================
   TYPOGRAPHY
   ========================= */

h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--violet);
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

p {
  line-height: 1.7;
  margin-bottom: 10px;
}

/* =========================
   BUTTONS
   ========================= */

.btn,
.feature-button {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid #111;
  text-decoration: none;
  color: #111;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.btn:hover,
.feature-button:hover {
  background: #111;
  color: #fff;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  padding: 24px 30px;
  border-top: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #444;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #444;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--violet);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {

  :root {
    --header-height: 60px;
    --banner-height: 90px;
    --total-top: 150px;
    --nav-width: 100%;
  }

  .site-layout {
    flex-direction: column;
    top: var(--total-top);
  }

  .nav {
    width: 100%;
    height: auto;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.15);
  }

  .nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .nav-link {
    font-size: 0.75rem;
    padding: 6px 8px;
  }

  .main-content {
    padding: 16px;
  }

  .menu-toggle {
    display: block;
  }

  .site-footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

}
/* =========================
   VIDEO WRAPPER
   ========================= */

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 16px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}