﻿:root {
  --bg: #f3f3f3;
  --surface: #ffffff;
  --surface-soft: #f8f8f8;
  --text: #3a3a3a;
  --muted: #6d6d6d;
  --brand: #a61f3d;
  --brand-dark: #82152f;
  --line: #d7d7d7;
  --shadow: 0 18px 40px rgba(40, 40, 40, 0.08);
  --radius: 14px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(120, 120, 120, 0.10), rgba(120, 120, 120, 0) 180px),
    linear-gradient(135deg, #fafafa 0%, #efefef 100%);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 10px 14px;
  background: #4e4e4e;
  color: #fff;
  border-radius: 10px;
  z-index: 100;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: relative;
  overflow: hidden;
  padding: 52px 24px 28px;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(166, 31, 61, 0.10), rgba(166, 31, 61, 0));
  pointer-events: none;
}

.site-header::before {
  width: 380px;
  height: 380px;
  right: -100px;
  top: -120px;
}

.site-header::after {
  width: 280px;
  height: 280px;
  left: -60px;
  bottom: -120px;
}

.brand-bar,
.page-content,
.site-footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.brand-bar {
  position: relative;
  padding: 52px 54px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 247, 247, 0.98)),
    #ffffff;
  border: 1px solid #ececec;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.logo-link {
  display: inline-flex;
  flex-shrink: 0;
}

.site-logo {
  display: block;
  max-width: 150px;
  width: 100%;
  height: auto;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #7a7a7a;
  font-weight: 300;
}

.intro {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--text);
  font-size: 1.06rem;
}

h1 strong {
  color: var(--brand);
  font-weight: 700;
}

.page-content {
  padding: 12px 0 56px;
}

.compliance-panel {
  padding: 26px 28px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(215, 215, 215, 0.9);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.video-section {
  margin: 30px 0;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.compliance-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.video-filter {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.video-filter-label {
  font-weight: 700;
  color: var(--text);
}

.video-filter-select {
  min-width: 240px;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  font: inherit;
  background: #fff;
  border: 1px solid #cacaca;
  border-radius: 10px;
}

.video-filter-hint {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.video-empty {
  margin-top: 18px;
  margin-bottom: 0;
  color: var(--muted);
}

.video-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-topline {
  width: 56px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #d86a82);
}

.video-meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-card h3 {
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 1.25;
  min-height: 2.5em;
}

.video-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  overflow: hidden;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(58, 58, 58, 0.72), rgba(166, 31, 61, 0.40)),
    linear-gradient(135deg, #d9d9d9, #f3f3f3);
  cursor: pointer;
}

.video-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.24)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}

.preview-play {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 50px;
  padding: 0 20px;
  color: #fff;
  font-weight: 700;
  background: rgba(58, 58, 58, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.video-preview:hover .preview-play,
.video-preview:focus-visible .preview-play {
  background: rgba(166, 31, 61, 0.92);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.72);
}

.video-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  padding: 20px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.video-modal-header h2 {
  margin-bottom: 0;
}

.video-modal-close {
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  font-weight: 700;
  background: var(--brand-dark);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.video-modal-frame {
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.video-modal-frame video {
  display: block;
  width: 100%;
  max-height: 78vh;
  background: #000;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 40px;
}

.footer-title {
  margin-bottom: 6px;
  font-weight: 700;
}

.footer-company p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: flex-start;
}

.footer-nav a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 36px 16px 24px;
  }

  .brand-bar,
  .compliance-panel,
  .video-card {
    padding: 22px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-filter-select {
    min-width: 100%;
  }

  .site-logo {
    max-width: 118px;
  }

  .title-row {
    align-items: flex-start;
    gap: 16px;
  }

  .video-modal {
    padding: 12px;
  }

  .video-modal-panel {
    padding: 14px;
  }

  .video-modal-header {
    flex-direction: column;
    align-items: stretch;
  }
}
