/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BASE ===== */
html {
  height: 100%;
}

body {
  min-height: 100%;
  background: #0f0f10;
  color: #ffffff;
  font-family: Helvetica, Arial, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 90%;
  max-width: 1350px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(6px);
  transition: box-shadow 0.9s ease, background 0.5s ease;
}

.site-header.scrolled {
  background: rgb(0, 0, 0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 75px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-item {
  position: relative;
}

.nav-links a {
  font-size: clamp(0.7rem, 0.75vw, 0.8rem);
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: #ff2b2b;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-item-dropdown .nav-link::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity: 0;
  transform: translateY(-1px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.96);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

.dropdown-menu a {
  display: block;
  padding: 12px 18px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  color: #ff2b2b;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item-dropdown:hover .nav-link::after,
.nav-item-dropdown:focus-within .nav-link::after {
  opacity: 1;
  transform: translateY(-1px) rotate(180deg);
}

.cta {
  background: #ff2b2b;
  color: white;
  padding: clamp(0.5rem, 0.75vw, 0.7rem);
  border-radius: 999px;
  font-size: clamp(0.7rem, 0.75vw, 0.8rem);
  font-weight: 800;
  white-space: nowrap;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: scale(0.96);
}

.cta:active {
  transform: scale(0.92);
}

/* ===== PAGE TEMPLATE ===== */
.page-main {
  padding-top: 100px;
}

.page-hero {
  padding: 70px 0 36px;
  background: radial-gradient(circle at top, #171717, #0f0f10);
}

.page-kicker {
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

.page-title {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-description {
  max-width: 760px;
  margin-top: 18px;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.5;
  opacity: 0.82;
}

.page-section {
  padding: 60px 0 100px;
}

.section-kicker {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== RESOURCES HERO ===== */
.resources-toolbar {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.resources-search input {
  width: 100%;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
  font-size: 1.02rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.resources-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.resources-search input:focus {
  border-color: rgba(255, 43, 43, 0.9);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(255, 43, 43, 0.12);
}

.resources-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.filter-btn:hover {
  border-color: rgba(255, 43, 43, 0.7);
  background: rgba(255, 43, 43, 0.1);
}

.filter-btn.active {
  background: #ff2b2b;
  border-color: #ff2b2b;
  color: #ffffff;
}

/* ===== RESOURCES LIST ===== */
.resources-section {
  padding-top: 40px;
}

.resources-list-header {
  margin-bottom: 26px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.resource-count {
  font-size: 0.95rem;
  opacity: 0.72;
  white-space: nowrap;
}

.resources-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resource-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.resource-item:hover {
  transform: none;
  border-color: rgba(255, 43, 43, 0.4);
  background: transparent;
}

.resource-item:focus-visible {
  outline: 2px solid #ff2b2b;
  outline-offset: 3px;
}

.resource-main {
  min-width: 0;
}

.resource-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.resource-tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 43, 43, 0.13);
  color: #ff7a7a;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.resource-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.resource-description {
  margin-top: 10px;
  max-width: 880px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
  font-size: 0.98rem;
}

.resource-meta {
  margin-top: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.resource-credit {
  margin-top: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
}

.resource-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.resource-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 13px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f0f10;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.resource-btn:hover {
  transform: scale(0.97);
  background: #ff2b2b;
  color: #ffffff;
}

.no-results {
  margin-top: 24px;
  padding: 32px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.no-results h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.no-results p {
  color: rgba(255, 255, 255, 0.72);
}

/* ===== HELP SECTION ===== */
.resources-help-section {
  padding-top: 0;
}

.resources-help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.help-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
}

.help-card p:last-child {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 50px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand img {
  width: 160px;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.75;
}

.footer-links h3 {
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.95rem;
  opacity: 0.8;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-links a:hover {
  color: #ff2b2b;
  opacity: 1;
}

.footer-bottom {
  margin-top: 40px;
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .header-inner {
    height: auto;
    flex-direction: column;
    padding: 18px 0;
    gap: 16px;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }

  .nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .nav-item-dropdown .dropdown-menu {
    left: 50%;
    transform: translate(-50%, 8px);
  }

  .nav-item-dropdown:hover .dropdown-menu,
  .nav-item-dropdown:focus-within .dropdown-menu {
    transform: translate(-50%, 0);
  }

  .page-main {
    padding-top: 165px;
  }
}

@media (max-width: 900px) {
  .resource-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .resource-action {
    justify-content: flex-start;
  }

  .resources-help-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand p {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .site-header {
    background: rgba(10, 10, 10, 0.95);
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
  }

  .logo img {
    height: 62px;
  }

  .nav {
    width: auto;
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: min(320px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .nav.nav-open .nav-menu {
    display: flex;
  }

  .nav.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 4px;
  }

  .nav-item-dropdown .nav-link::after {
    opacity: 1;
    transform: rotate(0deg);
  }

  .dropdown-menu {
    position: static;
    left: auto;
    min-width: 0;
    margin-top: 4px;
    padding: 0 0 0 14px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    transform: none;
  }

  .dropdown-menu a {
    padding: 10px 0 10px 12px;
    font-size: 0.74rem;
    background: transparent;
  }

  .nav-item-dropdown:hover .dropdown-menu,
  .nav-item-dropdown:focus-within .dropdown-menu {
    left: auto;
    transform: none;
  }

  .nav-item-dropdown.submenu-open .dropdown-menu {
    left: auto;
    display: block;
    transform: none;
  }

  .nav-item-dropdown.submenu-open .nav-link::after {
    transform: rotate(180deg);
  }

  .cta {
    width: 100%;
    text-align: center;
  }

  .page-main {
    padding-top: 90px;
  }

  .page-hero {
    padding-top: 42px;
  }

  .resources-list-header {
    flex-direction: column;
    align-items: start;
  }

  .resource-btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .page-title {
    letter-spacing: 0.1em;
  }

  .page-description,
  .resource-description,
  .help-card p:last-child {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .resource-item,
  .help-card {
    padding: 22px 18px;
  }
}

.help-btn {
  display: inline-flex;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #ff2b2b;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-btn:hover {
  transform: scale(0.97);
}

.help-btn:active {
  transform: scale(0.94);
}

.resources-help-grid {
  justify-items: center;
}

.help-card {
  width: 100%;
  max-width: 700px;
}

.resources-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}


.search-start {
  padding: 40px 20px;
  text-align: center;
  opacity: 0.7;
}

.search-start h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-start p {
  font-size: 0.95rem;
}