/* =========================================================
   WITOO — homepage.css
   Loaded only on the front page (is_front_page()). Designed to
   live inside .witoo-main, taking full width of the viewport.
   ========================================================= */

body.witoo-home .witoo-main { padding: 0; max-width: none; }
body.witoo-home { background: #FAFAFA; }

/* === Two-column layout === */
.wo-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  color: #0F172A;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wo-layout * { box-sizing: border-box; }
.wo-layout a { color: inherit; text-decoration: none; }
.wo-layout img { display: block; max-width: 100%; height: auto; }
@media (max-width: 980px) {
  .wo-layout { grid-template-columns: 1fr; }
}

/* === Sidebar === */
.wo-sidebar {
  background: #fff;
  border-right: 1px solid #E5E7EB;
  padding: 22px 14px;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
@media (max-width: 980px) {
  .wo-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
    padding: 16px 14px;
  }
}
.wo-side-section { margin-bottom: 18px; }
.wo-side-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #94A3B8;
  font-weight: 700;
  margin-bottom: 6px;
  padding: 0 8px;
}
.wo-side-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 13px;
  color: #1F2937 !important;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.1s;
}
.wo-side-link:hover {
  background: #FAFAFA;
  color: #0F172A !important;
  text-decoration: none !important;
}
.wo-side-link.wo-active {
  background: #0F172A;
  color: #fff !important;
}
.wo-side-link.wo-active::before {
  content: "→";
  color: #D4A256;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
}

/* === Main === */
.wo-main {
  padding: 24px 28px 48px;
  min-width: 0;
}
@media (max-width: 980px) {
  .wo-main { padding: 20px 18px 40px; }
}

/* === Hero === */
.wo-hero {
  padding-bottom: 22px;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 24px;
}
.wo-hero-eyebrow {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #92400E;
  background: #FEF3C7;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  margin-bottom: 14px;
}
.wo-h1 {
  font-family: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.wo-gold {
  background: linear-gradient(90deg, #D4A256, #92400E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wo-sub {
  font-size: 15px;
  color: #475569;
  max-width: 620px;
  line-height: 1.55;
  margin-bottom: 22px;
}
.wo-hero-search {
  display: flex;
  max-width: 600px;
  background: #fff;
  border: 2px solid #0F172A;
  border-radius: 12px;
  padding: 4px 4px 4px 16px;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(15,23,42,0.06);
  transition: all 0.2s;
}
.wo-hero-search:focus-within {
  border-color: #D4A256;
  box-shadow: 0 8px 24px rgba(212,162,86,0.12);
}
.wo-hero-search svg {
  width: 18px;
  height: 18px;
  color: #94A3B8;
  flex-shrink: 0;
}
.wo-hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 13px 0;
  font-size: 15px;
  background: transparent;
  color: #0F172A;
  font-family: inherit;
}
.wo-hero-search input::placeholder { color: #94A3B8; }
.wo-hero-search button {
  background: #0A1628;
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.wo-hero-search button:hover { background: #1F2937; }
@media (max-width: 600px) {
  .wo-h1 { font-size: 26px; }
  .wo-sub { font-size: 14px; }
}

/* === Toolbar === */
.wo-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.wo-section-h {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.015em;
  margin: 0;
}
.wo-view-toggle {
  display: flex;
  gap: 4px;
  background: #F1F5F9;
  border-radius: 7px;
  padding: 3px;
}
.wo-view-toggle a {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 5px;
  color: #64748B;
  cursor: pointer;
  font-weight: 600;
}
.wo-view-toggle a.wo-active {
  background: #fff;
  color: #0F172A;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* === Image-led card grid === */
.wo-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
@media (max-width: 1280px) { .wo-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 880px) { .wo-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 480px) { .wo-cards { grid-template-columns: 1fr; } }

.wo-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.15s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.wo-card:hover {
  border-color: #D4A256;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,23,42,0.08);
  text-decoration: none !important;
}

.wo-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #F1F5F9;
  position: relative;
}
.wo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.wo-card:hover .wo-img-wrap img { transform: scale(1.04); }

.wo-vfd {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: #fff;
  background: rgba(22,163,74,0.92);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  font-weight: 700;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 2;
}
.wo-cat-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: #0F172A;
  background: rgba(255,255,255,0.95);
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  font-weight: 700;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.wo-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.wo-card-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.wo-card-ticker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #94A3B8;
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.wo-card-meta {
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wo-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.wo-meta-row .wo-k { color: #64748B; font-size: 11px; }
.wo-meta-row .wo-v {
  color: #0F172A;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 11px;
  text-align: right;
}
.wo-meta-row .wo-v.wo-gold {
  color: #D4A256;
  background: none;
  -webkit-text-fill-color: #D4A256;
}
.wo-card-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: #2563EB;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-top: auto;
  padding-top: 4px;
}
.wo-card:hover .wo-card-cta { color: #D4A256; }

/* === Related Questions === */
.wo-related-section {
  margin: 32px 0;
  padding-top: 28px;
  border-top: 1px solid #E5E7EB;
}
.wo-related-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.wo-related-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin: 0;
}
.wo-more {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #475569 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid #D4A256;
  padding-bottom: 2px;
}
.wo-more:hover { color: #D4A256 !important; }
.wo-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 768px) { .wo-related-grid { grid-template-columns: 1fr; } }
.wo-rq {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: all 0.15s;
  cursor: pointer;
}
.wo-rq:hover {
  border-color: #D4A256;
  transform: translateX(2px);
  text-decoration: none !important;
}
.wo-rq-q {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.3;
  margin-bottom: 4px;
}
.wo-rq-snippet {
  font-size: 12px;
  color: #64748B;
  line-height: 1.4;
}
.wo-rq-arrow {
  color: #D4A256;
  font-size: 18px;
  flex-shrink: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
}

/* === Trust strip === */
.wo-trust-strip {
  margin-top: 40px;
  padding: 22px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  text-align: center;
}
.wo-trust-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #64748B;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.wo-trust-sources {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.wo-trust-sources span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #0F172A;
  letter-spacing: -0.01em;
}
