/**
 * XEYROX — Resources Page Stylesheet
 * Matching Figma reference designs in design-references/resources/
 */

/* ==========================================================================
   GLOBAL UTILITIES FOR RESOURCES PAGE
   ========================================================================== */
.res-eyebrow {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #155EEF;
  margin-bottom: 14px;
}

.res-highlight {
  color: #155EEF;
}

.res-section-container {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   SECTION 1 — HERO
   "Clearer thinking. Better business work."
   ========================================================================== */
.res-hero-section {
  position: relative;
  padding-top: 110px;
  padding-bottom: 140px;
  background-color: #ffffff;
  overflow: hidden;
  text-align: center;
}

.res-hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 880px;
}

.res-hero-headline {
  font-family: var(--font-primary);
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #0B1B3D;
  margin: 0 0 24px 0;
}

.res-hero-highlight {
  color: #155EEF;
}

.res-hero-body {
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.65;
  color: #475467;
  max-width: 740px;
  margin: 0 0 40px 0;
}

/* Search Bar Component */
.res-search-form {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.res-search-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #D0D5DD;
  border-radius: 9999px;
  height: 56px;
  padding: 4px 6px 4px 20px;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.05);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.res-search-wrap:focus-within {
  border-color: #155EEF;
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.12);
}

.res-search-icon {
  display: flex;
  align-items: center;
  color: #667085;
  margin-right: 12px;
  flex-shrink: 0;
}

.res-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 15px;
  color: #0B1B3D;
}

.res-search-input::placeholder {
  color: #98A2B3;
}

.res-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0B1B3D;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 200ms ease, transform 200ms ease;
  flex-shrink: 0;
}

.res-search-btn:hover {
  background-color: #155EEF;
  transform: scale(1.05);
}

.res-hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 220px;
  pointer-events: none;
  z-index: 1;
}

.res-hero-wave-svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   SECTION 2 — ARTICLES & PERSPECTIVES
   "Ideas for the work behind business."
   ========================================================================== */
.res-articles-section {
  padding: 100px 0;
  background-color: #ffffff;
}

.res-articles-header {
  margin-bottom: 32px;
  text-align: left;
}

.res-articles-headline {
  font-family: var(--font-primary);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0B1B3D;
  margin: 0 0 14px 0;
}

.res-articles-sub {
  font-size: 18px;
  line-height: 1.55;
  color: #475467;
  margin: 0;
}

/* Category Filter Tabs */
.res-filter-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.res-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 9999px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #EAECF0;
  background: #ffffff;
  color: #344054;
  cursor: pointer;
  transition: all 200ms ease;
}

.res-filter-pill:hover {
  border-color: #D0D5DD;
  color: #1D2939;
  background-color: #F9FAFB;
}

.res-filter-pill.is-active {
  background-color: #0B1B3D;
  color: #ffffff;
  border-color: #0B1B3D;
  font-weight: 600;
}

/* 6 Articles Grid */
.res-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.res-article-card {
  background: #ffffff;
  border: 1px solid #EAECF0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, opacity 240ms ease;
}

.res-article-card:hover {
  transform: translateY(-4px);
  border-color: #D0D5DD;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.08);
}

.res-article-card.is-hidden {
  display: none !important;
}

.res-card-thumb {
  height: 200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #EDEDED;
  position: relative;
  border-bottom: 1px solid #F2F4F7;
}

.res-thumb-icon {
  opacity: 0.7;
  transition: transform 240ms ease, opacity 240ms ease;
}

.res-article-card:hover .res-thumb-icon {
  transform: scale(1.1);
  opacity: 0.9;
}

.res-card-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.res-card-tag {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0086C9;
  margin-bottom: 10px;
}

.res-card-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #0B1B3D;
  margin: 0 0 10px 0;
}

.res-card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #475467;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.res-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #155EEF;
  text-decoration: none;
  transition: color 200ms ease;
}

.res-card-link:hover {
  color: #004EEB;
  text-decoration: none;
}

.res-card-arrow {
  display: inline-block;
  transition: transform 200ms ease;
}

.res-card-link:hover .res-card-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   SECTION 3 — TOOLS BEHIND THE WORK
   "Learn more about the tools behind the work."
   ========================================================================== */
.res-tools-section {
  padding: 100px 0;
  background-color: #ffffff;
}

.res-tools-header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 56px auto;
}

.res-tools-headline {
  font-family: var(--font-primary);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0B1B3D;
  margin: 0 0 16px 0;
}

.res-tools-sub {
  font-size: 18px;
  line-height: 1.6;
  color: #475467;
  margin: 0;
}

.res-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.res-tool-card {
  background: #ffffff;
  border: 1px solid #EAECF0;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.res-tool-card:hover {
  transform: translateY(-4px);
  border-color: #D0D5DD;
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.06);
}

.res-tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.res-tool-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.res-tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.res-tool-name {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: #0B1B3D;
  margin: 0;
}

.res-tool-by {
  font-size: 12px;
  color: #667085;
  font-weight: 500;
}

.res-tool-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #475467;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.res-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #0B1B3D;
  text-decoration: none;
  transition: color 200ms ease;
}

.res-tool-link:hover {
  color: #155EEF;
  text-decoration: none;
}

.res-tool-arrow {
  font-size: 14px;
  transition: transform 200ms ease;
}

.res-tool-link:hover .res-tool-arrow {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .res-hero-section {
    padding-top: 80px;
    padding-bottom: 100px;
  }

  .res-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .res-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .res-articles-grid {
    grid-template-columns: 1fr;
  }

  .res-filter-tabs {
    gap: 8px;
    margin-bottom: 32px;
  }

  .res-filter-pill {
    padding: 0 16px;
    font-size: 13px;
    height: 36px;
  }
}

@media (max-width: 640px) {
  .res-hero-section {
    padding-top: 60px;
    padding-bottom: 80px;
  }

  .res-search-wrap {
    height: 50px;
    padding: 4px 6px 4px 16px;
  }

  .res-articles-section,
  .res-tools-section {
    padding: 72px 0;
  }

  .res-tools-grid {
    grid-template-columns: 1fr;
  }
}
