/* ===== 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%;
}

button,
input {
  font: inherit;
}

.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: 700px;
  margin-top: 18px;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.5;
  opacity: 0.82;
}

.page-section {
  padding: 60px 0 100px;
}

/* ===== GUIDES SECTION ===== */
.guides-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.guides-toolbar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
}

.search-wrap {
  width: 100%;
}

.guide-search {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.guide-search::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.guide-search:focus {
  border-color: rgba(255, 43, 43, 0.8);
  background: rgba(255, 255, 255, 0.06);
}

.filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  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, color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  background: rgba(255, 43, 43, 0.12);
  border-color: rgba(255, 43, 43, 0.5);
  color: #ffffff;
}

.guides-header-row {
  display: grid;
  grid-template-columns: 2.2fr 0.9fr 1.1fr 0.8fr;
  gap: 18px;
  padding: 0 18px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.52;
}

.guides-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-item {
  display: grid;
  grid-template-columns: 2.2fr 0.9fr 1.1fr 0.8fr;
  gap: 18px;
  align-items: center;
  padding: 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.guide-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-1px);
}

.guide-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.guide-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.guide-summary {
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0.7;
}

.guide-meta,
.guide-category {
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.82;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.guide-access {
  display: flex;
  justify-content: flex-start;
}

.guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.guide-link:hover {
  transform: scale(0.97);
  background: rgba(255, 43, 43, 0.12);
  border-color: rgba(255, 43, 43, 0.5);
}

.type-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.06);
}

.guides-empty {
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.guides-empty h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guides-empty p {
  opacity: 0.72;
}

.guides-note {
  padding: 18px 20px;
  border-left: 2px solid rgba(255, 43, 43, 0.7);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 16px 16px 0;
}

.guides-note p {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.8;
}

/* ===== 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;
  }

  .guides-header-row,
  .guide-item {
    grid-template-columns: 1.8fr 0.9fr 1fr 0.8fr;
  }
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .guides-header-row {
    display: none;
  }

  .guide-item {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .guide-access {
    justify-content: flex-start;
  }
}

@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;
  }

  .guides-toolbar {
    padding: 18px;
  }

  .guide-title {
    font-size: 0.98rem;
  }

  .guide-summary {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .page-title {
    letter-spacing: 0.1em;
  }

  .page-description {
    font-size: 1rem;
    line-height: 1.35;
  }
}


/* ===== GUIDES DROPDOWN ===== */
.guides-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

/* Label stays consistent with your headers */
.guides-select-label {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Wrapper lets us style the arrow cleanly */
.guides-select-container {
  position: relative;
  width: 100%;
}

/* Main dropdown */
.guides-select {
  width: 100%;
  padding: 16px 48px 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );

  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;

  appearance: none;
  outline: none;
  cursor: pointer;

  transition: all 0.2s ease;
}

/* Hover */
.guides-select:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

/* Focus (your red accent) */
.guides-select:focus {
  border-color: rgba(255, 43, 43, 0.8);
  box-shadow: 0 0 0 4px rgba(255, 43, 43, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

/* Custom arrow */
.guides-select-container::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 0;
  height: 0;

  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid rgba(255, 255, 255, 0.6);

  transform: translateY(-50%);
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Animate arrow on focus */
.guides-select:focus + .guides-select-container::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Dropdown options (limited control but keep consistent) */
.guides-select option {
  background: #111111;
  color: #ffffff;
}

.guides-select:active {
  transform: scale(0.98);
}

/* ===== GUIDES SECTION ===== */
.guides-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.guides-toolbar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
}

.guides-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.guides-select-label {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}

.guides-select-container {
  position: relative;
  width: 100%;
}

.guides-select {
  width: 100%;
  padding: 16px 48px 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guides-select:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.guides-select:focus {
  border-color: rgba(255, 43, 43, 0.8);
  box-shadow: 0 0 0 4px rgba(255, 43, 43, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

.guides-select:active {
  transform: scale(0.98);
}

.guides-select-container::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid rgba(255, 255, 255, 0.6);
  transform: translateY(-50%);
  pointer-events: none;
}

.guides-select option {
  background: #111111;
  color: #ffffff;
}

.guides-header-row {
  display: grid;
  grid-template-columns: 2.2fr 0.9fr 1.1fr 0.8fr;
  gap: 18px;
  padding: 0 18px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.52;
}

.guides-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-item {
  display: grid;
  grid-template-columns: 2.2fr 0.9fr 1.1fr 0.8fr;
  gap: 18px;
  align-items: center;
  padding: 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.guide-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-1px);
}

.guide-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.guide-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.guide-summary {
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0.7;
}

.guide-meta,
.guide-category {
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.82;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.guide-access {
  display: flex;
  justify-content: flex-start;
}

.guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.guide-link:hover {
  transform: scale(0.97);
  background: rgba(255, 43, 43, 0.12);
  border-color: rgba(255, 43, 43, 0.5);
}

.type-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.06);
}

.guides-empty {
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.guides-empty h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guides-empty p {
  opacity: 0.72;
}

.guides-note {
  padding: 18px 20px;
  border-left: 2px solid rgba(255, 43, 43, 0.7);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 16px 16px 0;
}

.guides-note p {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.8;
}

@media (max-width: 1100px) {
  .guides-header-row,
  .guide-item {
    grid-template-columns: 1.8fr 0.9fr 1fr 0.8fr;
  }
}

@media (max-width: 900px) {
  .guides-header-row {
    display: none;
  }

  .guide-item {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .guide-access {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .guides-toolbar {
    padding: 18px;
  }

  .guide-title {
    font-size: 0.98rem;
  }

  .guide-summary {
    font-size: 0.9rem;
  }
}