/* --- VARIABLES & DESIGN SYSTEM --- */
:root {
  --color-primary: #0b132b;
  /* Deep Navy System */
  --color-secondary: #ffd700;
  /* Bold Gold */
  --color-accent: #4b5320;
  /* Sheriff Olive / Dark Green */
  --color-dark: #1a1a1a;
  --color-light: #ffffff;
  --color-offwhite: #f4f4f4;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-light);
  color: var(--color-dark);
  line-height: 1.6;
}

/* --- NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(11, 19, 43, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4rem;
  z-index: 100;
  border-bottom: 2px solid var(--color-secondary);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.logo-mark {
  color: var(--color-secondary);
}

.logo-sheriff {
  color: var(--color-light);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-light);
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--color-secondary);
}

.btn-solid,
.btn-outline {
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  display: inline-block;
  font-family: var(--font-heading) !important;
  font-weight: 900 !important;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-decoration: none;
  border: 0 !important;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  letter-spacing: 1px;
}

.btn-solid {
  background-color: var(--color-secondary);
  color: var(--color-primary) !important;
  font-weight: 900 !important;
}

.btn-solid:hover {
  background-color: #e6c200;
}

.btn-outline {
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary) !important;
}

.btn-outline:hover {
  background-color: rgba(255, 215, 0, 0.1);
}

/* --- HERO LOGO BAR --- */
.logo-bar {
  position: absolute;
  top: 24vh;
  left: 0;
  right: 0;
  width: 100%;
  background-color: rgb(60, 74, 46);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.75rem 2rem;
  z-index: 3;
  box-sizing: border-box;
}

.hero-logo {
  height: 25vh;
  width: auto;
  display: block;
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(rgba(11, 19, 43, 0.8), rgba(11, 19, 43, 0.9)),
    url('assets/hero_bg.webp') center/cover no-repeat;
  padding-top: 80px;
  /* offset navbar */
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem;
  flex-grow: 1;
}

/* --- RIGHT SIDE: Candidate Photo --- */
.candidate-container {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  z-index: 5;
}

.candidate-photo {
  height: 66.67vh;
  width: auto;
  display: block;
  filter: drop-shadow(0px 20px 50px rgba(0, 0, 0, 0.6));
}

/* --- BOTTOM BAR --- */
.core-values-bar {
  position: relative;
  z-index: 10;
  background-color: var(--color-primary);
  color: var(--color-light);
  border-top: 2px solid var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
  padding: 1rem;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.55rem, 1.4vw, 0.9rem);
  letter-spacing: clamp(1px, 0.3vw, 2px);
  white-space: nowrap;
  overflow: hidden;
}

.core-values-bar span.dot {
  color: var(--color-secondary);
  margin: 0 1rem;
}

/* --- UTILITY CLASSES --- */
.section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--color-light);
}

.bg-light {
  background-color: var(--color-offwhite);
}

.bg-dark {
  background-color: #1a1a1a;
}

.bg-primary {
  background-color: var(--color-primary);
}

.mt-2 {
  margin-top: 2rem;
}

.para-gap {
  margin-top: 0.85rem;
}

.full-width {
  width: 100%;
  display: block;
  text-align: center;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.highlight {
  color: var(--color-secondary);
}

.lead-text {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Placeholder Boxes */
.placeholder-box {
  background-color: #ddd;
  border: 2px dashed #999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-weight: bold;
  text-align: center;
}

/* --- SPLIT LAYOUT (Meet Mark) --- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* --- GRID LAYOUT (The Platform) --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background-color: #2a2a2a;
  padding: 2.5rem;
  border-top: 4px solid var(--color-secondary);
}

.card h3 {
  color: var(--color-secondary);
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* --- PULL QUOTE --- */
.pull-quote-section {
  background-color: var(--color-primary);
  padding: 4rem 2rem;
  border-top: 3px solid var(--color-secondary);
  border-bottom: 3px solid var(--color-secondary);
}

.pull-quote {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.pull-quote p {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--color-secondary);
  margin-bottom: 1.25rem;
}

.pull-quote cite {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
}

/* --- MEDIA HUB --- */
.media-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.media-col h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 0.5rem;
}

.video-box {
  height: 250px;
  margin-bottom: 2rem;
}

.fb-feed-box {
  height: 600px;
}

/* --- FB POST ROTATOR --- */
.fb-post-rotator {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: url('assets/fb_post_template.jpg') center / cover no-repeat;
  overflow: hidden;
}

.fb-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5% 2.5rem 27% 2.5rem;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.fb-slide--active {
  opacity: 1;
  pointer-events: auto;
}

.fb-slide-headline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  color: var(--color-secondary);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.fb-slide-sub {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  color: var(--color-light);
  line-height: 1.55;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}

/* Navigation Arrows */
.fb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.75rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  z-index: 5;
}

.fb-arrow:hover {
  color: rgba(255, 255, 255, 0.75);
}

.fb-arrow--prev { left: 0.25rem; }
.fb-arrow--next { right: 0.25rem; }

/* --- IN THE NEWS --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.news-card {
  background: var(--color-light);
  border-top: 4px solid var(--color-secondary);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-outlet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.news-source {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary);
}

.news-date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #999;
  white-space: nowrap;
}

.news-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-dark);
  line-height: 1.4;
  flex-grow: 1;
}

.news-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.2s;
}

.news-link:hover {
  color: var(--color-secondary);
}

/* --- FORM LAYOUT --- */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.signup-form {
  background-color: var(--color-light);
  padding: 3rem;
}

.signup-form input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 2px solid #ccc;
  font-family: var(--font-body);
  font-size: 1rem;
}

.signup-form input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.checkbox-group {
  margin-bottom: 1.5rem;
}

.checkbox-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  margin-bottom: 0.75rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
  border: 2px solid #ccc;
}

.form-message {
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.form-message--success {
  background-color: #e6f4ea;
  color: #2d6a3f;
  border-left: 4px solid #2d6a3f;
}

.form-message--error {
  background-color: #fdecea;
  color: #9b2335;
  border-left: 4px solid #9b2335;
}

/* --- FOOTER --- */
.footer {
  background-color: #0b132b;
  color: var(--color-light);
  padding: 3rem 2rem;
  border-top: 4px solid var(--color-secondary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.disclaimer-box {
  border: 1px solid #666;
  padding: 1rem;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: #aaa;
}

/* --- RESPONSIVE DESIGNS --- */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .navbar {
    padding: 1rem 2rem;
  }

  .nav-links {
    display: none;
    /* Hide on small screens for this simple demo */
  }

  .split-layout,
  .grid-3,
  .media-layout,
  .form-layout,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

/* ── MEDIA GALLERY ROTATOR ─────────────────────────────────────────────── */
.media-rotator {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(to right, #1c262f, #0b132b 15%, #0b132b 85%, #1c262f);
}

.media-rotator__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.media-rotator__slide--active {
  opacity: 1;
  pointer-events: auto;
}

.media-rotator__slide video,
.media-rotator__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-caption-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.media-caption-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  color: var(--color-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  text-align: center;
}

.media-arrow {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.75rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
  z-index: 15;
}

.media-arrow:hover { color: rgba(255, 255, 255, 0.75); }
/* ────────────────────────────────────────────────────────────────────────── */

/* ── MEDIA ROTATOR WRAP ─────────────────────────────────────────────────── */
.media-rotator-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  aspect-ratio: 4 / 5;
}

.media-nav-bar {
  background-color: #1c262f;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
}

/* Videos: natural aspect ratio (all confirmed portrait 9:16) */
.media-rotator__slide video {
  object-fit: contain;
}
/* ────────────────────────────────────────────────────────────────────────── */

video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}