/* ===========================================
   CHARM CITY ROLEPLAY — MAIN WEBSITE STYLES
   =========================================== */

:root {
  --black: #050505;
  --panel: #0d0d0f;
  --panel-2: #131316;
  --red: #c60812;
  --red-bright: #ee111c;
  --red-dark: #6e060b;
  --gold: #e2a818;
  --white: #f5f5f5;
  --muted: #a5a5aa;
  --line: rgba(255,255,255,.12);
  --shadow: 0 18px 45px rgba(0,0,0,.45);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.top-strip {
  min-height: 30px;
  padding: 5px clamp(18px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(198,8,18,.95), rgba(95,4,9,.95)),
    var(--red);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.top-strip p { color: rgba(255,255,255,.8); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 88px;
  padding: 0 clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(3,3,3,.94);
  border-bottom: 1px solid rgba(198,8,18,.45);
  backdrop-filter: blur(12px);
}

.brand img {
  width: 190px;
  max-height: 76px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 26px;
  align-items: center;
}

nav a {
  position: relative;
  color: #d4d4d6;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -12px;
  height: 2px;
  background: var(--red-bright);
  transition: right .2s ease;
}

nav a:hover::after,
nav a.active::after { right: 0; }

.header-actions,
.hero-buttons,
.application-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

.button {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover { transform: translateY(-2px); }

.button-red {
  background: linear-gradient(180deg, var(--red-bright), #9d050d);
  border-color: #fa2932;
  box-shadow: 0 8px 24px rgba(198,8,18,.2);
}

.button-dark { background: #09090a; border-color: rgba(255,255,255,.35); }
.button-outline { background: transparent; border-color: rgba(255,255,255,.45); }
.button-light { background: white; color: #111; }

.button-large {
  min-width: 210px;
  min-height: 62px;
  flex-direction: column;
}

.button small {
  margin-top: -2px;
  color: rgba(255,255,255,.62);
  font-family: "Inter", sans-serif;
  font-size: .63rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
}

.hero {
  position: relative;
  min-height: 680px;
  padding: 90px clamp(22px, 6vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: end;
  gap: 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.95) contrast(1.1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.46) 55%, rgba(0,0,0,.78) 100%),
    linear-gradient(0deg, rgba(0,0,0,.86), transparent 60%);
}

.hero-content,
.status-card { position: relative; z-index: 2; }

.eyebrow {
  color: var(--red-bright);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero h1,
.section-title h2,
.application-section h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: .9;
}

.hero h1 {
  margin: 12px 0 22px;
  font-size: clamp(4rem, 8vw, 8.5rem);
  letter-spacing: -.03em;
}

.hero h1 span {
  color: var(--red-bright);
  text-shadow: 0 0 24px rgba(198,8,18,.28);
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 30px;
  color: #d0d0d3;
  font-size: 1.03rem;
}

.status-card {
  padding: 0;
  background: rgba(10,10,11,.93);
  border: 1px solid rgba(198,8,18,.65);
  box-shadow: var(--shadow);
}

.status-heading {
  padding: 14px 18px;
  color: var(--red-bright);
  border-bottom: 1px solid var(--line);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-row {
  padding: 17px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.status-row div { display: flex; flex-direction: column; }
.status-row small { color: var(--muted); font-size: .66rem; text-transform: uppercase; }
.status-row strong { font-family: "Barlow Condensed", sans-serif; font-size: 1.1rem; }

.online-dot {
  width: 12px;
  height: 12px;
  background: #1fd36c;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(31,211,108,.7);
}

.status-icon { width: 18px; text-align: center; }
.status-card > a {
  display: block;
  padding: 13px 18px;
  color: var(--red-bright);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.department-section,
.rules-section,
.staff-section {
  padding: 100px clamp(22px, 4vw, 64px);
}

.section-title { margin-bottom: 42px; }
.section-title.centered { text-align: center; }

.section-title h2,
.application-section h2 {
  margin-top: 8px;
  font-size: clamp(3rem, 5.7vw, 5.8rem);
}

.department-section {
  background:
    radial-gradient(circle at 50% 0, rgba(198,8,18,.09), transparent 36%),
    #080809;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.department-card {
  position: relative;
  min-height: 330px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255,255,255,.025), transparent 55%),
    var(--panel);
  border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease;
}

.department-card:hover {
  transform: translateY(-5px);
  border-color: rgba(198,8,18,.7);
}

.department-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -110px;
  bottom: -110px;
  border: 32px solid rgba(255,255,255,.025);
  border-radius: 50%;
}

.card-number {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(255,255,255,.06);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
}

.department-tag {
  margin-bottom: 55px;
  color: var(--red-bright);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.department-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  line-height: .95;
  text-transform: uppercase;
}

.department-card p {
  margin: 17px 0 24px;
  color: var(--muted);
  font-size: .88rem;
}

.department-card a {
  margin-top: auto;
  color: var(--red-bright);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fire-county .department-tag,
.fire-county a,
.state .department-tag,
.state a { color: var(--gold); }

.police .department-tag,
.police a { color: #2e8cff; }

.civilian .department-tag,
.civilian a { color: #bd7cff; }

.dispatch .department-tag,
.dispatch a { color: #47e0e0; }

.content-grid {
  padding: 0 clamp(22px, 4vw, 64px) 100px;
  display: grid;
  grid-template-columns: 1.1fr 1.1fr .85fr;
  gap: 14px;
  background: #080809;
}

.panel {
  min-height: 370px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.panel-heading {
  padding-bottom: 14px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
  text-transform: uppercase;
}

.panel-heading span {
  color: var(--red-bright);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.news-item {
  padding: 16px 0;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.news-item time {
  color: var(--red-bright);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.news-item h3,
.feature h3 {
  margin-bottom: 3px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.08rem;
  text-transform: uppercase;
}

.news-item p,
.feature p {
  color: var(--muted);
  font-size: .82rem;
}

.feature {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.feature > span {
  color: var(--red-bright);
  font-size: 1.15rem;
  font-weight: 900;
}

.features-panel ul { list-style: none; }

.features-panel li {
  padding: 8px 0;
  color: #d6d6d8;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .87rem;
}

.features-panel li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--red-bright);
  font-weight: 900;
}

.rules-section {
  background:
    linear-gradient(rgba(255,255,255,.96), rgba(239,239,239,.98)),
    #eee;
  color: #111;
}

.rules-section .eyebrow { color: var(--red); }

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #c9c9c9;
  border-left: 1px solid #c9c9c9;
}

.rules-grid article {
  min-height: 220px;
  padding: 27px;
  border-right: 1px solid #c9c9c9;
  border-bottom: 1px solid #c9c9c9;
}

.rules-grid span {
  color: var(--red);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
}

.rules-grid h3 {
  margin: 36px 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.rules-grid p { color: #555; font-size: .9rem; }

.centered-button {
  width: fit-content;
  margin: 36px auto 0;
}

.staff-section {
  background:
    radial-gradient(circle at 50% 0, rgba(198,8,18,.1), transparent 35%),
    #09090a;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.staff-card {
  padding: 28px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
}

.avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2e2e32, #0a0a0b);
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red-bright);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
}

.staff-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.staff-card p { color: var(--muted); font-size: .82rem; }

.application-section {
  padding: 70px clamp(22px, 5vw, 80px);
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 38px;
  background:
    linear-gradient(90deg, rgba(50,2,5,.95), rgba(157,5,13,.92)),
    var(--red-dark);
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.application-section img { width: 170px; }
.application-section p:not(.eyebrow) { max-width: 650px; color: #e0cfd0; }

footer {
  padding: 62px clamp(22px, 4vw, 64px) 24px;
  background: #030303;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 50px;
}

.footer-about img { width: 220px; }
.footer-about p { max-width: 360px; margin-top: 15px; color: var(--muted); font-size: .86rem; }

.footer-main h3 {
  margin-bottom: 15px;
  color: var(--red-bright);
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.footer-main > div:not(.footer-about) a {
  display: block;
  margin: 7px 0;
  color: #c5c5c8;
  font-size: .84rem;
}

.footer-bottom {
  margin-top: 46px;
  padding-top: 21px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: #77777c;
  font-size: .72rem;
}

@media (max-width: 1100px) {
  nav,
  .header-actions { display: none; }

  .menu-button { display: block; }

  nav.open {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #060606;
    border-bottom: 1px solid var(--red-dark);
  }

  .department-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr 1fr; }
  .features-panel { grid-column: 1 / -1; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }

  .application-section {
    grid-template-columns: 140px 1fr;
  }

  .application-buttons { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .top-strip p { display: none; }
  .site-header { min-height: 76px; }
  .brand img { width: 150px; }

  .hero {
    min-height: auto;
    padding-top: 80px;
    grid-template-columns: 1fr;
  }

  .status-card { max-width: 360px; }
  .hero h1 { font-size: clamp(4rem, 18vw, 6rem); }

  .department-grid,
  .content-grid,
  .rules-grid,
  .staff-grid { grid-template-columns: 1fr; }

  .features-panel { grid-column: auto; }

  .application-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .application-section img { margin: auto; }
  .application-buttons { justify-content: center; }

  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 500px) {
  .hero-buttons .button,
  .application-buttons .button { width: 100%; }

  .footer-main { grid-template-columns: 1fr; }
  .footer-about { grid-column: auto; }
}
