/* ============================================================
       GLOBAL STYLES & VARIABLES
============================================================ */
:root {
  --color-gray-900: #0a0a0a;
  --color-gray-800: #1a1a1a;
  --color-gray-700: #2d2d2d;
  --color-gray-100: #f5f5f5;
  --color-primary: #DAA520;
  --color-primary-dark: #B8860B;
  --color-primary-light: #FFD700;
  --card-radius: 1rem;
  --transition-base: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
       TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, .hero__title, .card__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-eyebrow {
  font-family: 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #111;
}

.section-header p {
  font-size: 1.125rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
       BUTTONS
============================================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(218, 165, 32, 0.35);
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary-dark);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  transition: var(--transition-base);
  display: inline-block;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

/* ============================================================
       HERO SECTION
============================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0a0a2e 0%, #16213e 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero__bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================================
       BREADCRUMB
============================================================ */
.breadcrumb {
  padding: 1.5rem 0;
  color: #6B7B7F;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ============================================================
       SECTIONS
============================================================ */
.section {
  padding: 5rem 0;
}

.section--alt {
  background-color: var(--color-gray-100);
}

/* ============================================================
       FILTER BAR
============================================================ */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid #ddd;
  padding: 0.5rem 1.25rem;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  border-radius: 2rem;
  transition: var(--transition-base);
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* ============================================================
       SEARCH BAR
============================================================ */
.search-bar {
  max-width: 500px;
  margin: 0 auto 2rem auto;
}

.search-bar input {
  width: 100%;
  padding: 0.85rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: 2rem;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-base);
}

.search-bar input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.1);
}

/* ============================================================
       TOOLS GRID
============================================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

/* ============================================================
       TOOL CARD
============================================================ */
.tool-card {
  background: white;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary-light);
}

.tool-card__image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.tool-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

.tool-card:hover .tool-card__image img {
  transform: scale(1.05);
}

.tool-card__content {
  padding: 1.5rem;
  flex: 1;
}

.tool-card__category {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 0.75rem;
}

.cat-finance { background: #1a56db; color: white; }
.cat-cloud { background: #0e9f6e; color: white; }
.cat-security { background: #7e3af2; color: white; }
.cat-strategy { background: var(--color-primary); color: #111; }

.tool-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.tool-card p {
  color: #4a4a4a;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.tool-card__format {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.tool-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
       STATS SECTION
============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--card-radius);
  border: 1px solid #eee;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: 'Montserrat', sans-serif;
}

.stat-label {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.5rem;
}

/* ============================================================
       FEATURED BANNER - SAME GOLD GRADIENT AS CTA
============================================================ */
.featured-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.featured-banner h3 {
  color: white;
  margin-bottom: 0;
  font-size: 1.4rem;
}

.featured-banner p {
  opacity: 0.95;
  margin-top: 0.25rem;
}

.featured-banner .btn {
  background: white;
  color: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.featured-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ============================================================
       PAGINATION
============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #555;
  transition: var(--transition-base);
  cursor: pointer;
}

.pagination a:hover,
.pagination span:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.pagination .active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* ============================================================
       CTA BANNER (NEWSLETTER)
============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  color: white;
  margin-top: 2rem;
}

.cta-banner h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.cta-banner .btn {
  background: white;
  color: var(--color-primary-dark);
}

.cta-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================================
       TEXT UTILITIES
============================================================ */
.gold-text {
  color: #b8860b !important;
  font-size: 50px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ============================================================
       ANIMATIONS
============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
       HEADER SECTION
============================================================ */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.5rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* ============================================================
       SITE LOGO - HEADER (TOP LEFT CORNER)
============================================================ */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__image {
  height: 90px;
  width: auto;
  max-width: 100%;
  display: block;
}

/* ============================================================
       NAVIGATION - UPPERCASE, DARK TEXT (HORIZONTAL)
============================================================ */
.nav-list-desktop ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}

.nav-list-desktop a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111111;
  transition: var(--transition-base);
  white-space: nowrap;
}

.nav-list-desktop a:hover {
  color: var(--color-primary);
}

.nav-list-desktop a.active-link {
  color: var(--color-primary);
}

.nav-list-desktop .btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  text-transform: uppercase;
  padding: 0.5rem 1.5rem;
}

.nav-list-desktop .btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  transform: translateY(-2px);
}

/* ============================================================
       FOOTER SECTION
============================================================ */
.site-footer {
  background: var(--color-gray-900);
  color: #aaa;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.footer-logo__image {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.footer-brand p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-heading {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: var(--transition-base);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-bottom__links a {
  color: #aaa;
  text-decoration: none;
  transition: var(--transition-base);
}

.footer-bottom__links a:hover {
  color: var(--color-primary);
}

.separator {
  color: #555;
}

.footer-bottom__copyright {
  opacity: 0.7;
}

/* ============================================================
       RESPONSIVE STYLES
============================================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-logo__image {
    height: 50px;
  }

  .footer-brand {
    align-items: center;
  }

  .nav-list-desktop ul {
    gap: 1rem;
  }

  .nav-list-desktop a {
    font-size: 0.7rem;
  }

  .featured-banner {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom__links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .separator {
    display: none;
  }
}

/* ============================================================
       EXTRA SMALL DEVICES (480px AND BELOW)
============================================================ */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .filter-btn {
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
  }

  .tools-grid {
    gap: 1rem;
  }

  .tool-card h3 {
    font-size: 1.1rem;
  }

  .stats-grid {
    gap: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .featured-banner {
    padding: 1.5rem;
  }

  .featured-banner h3 {
    font-size: 1.2rem;
  }

  .cta-banner {
    padding: 2rem 1.5rem;
  }

  .cta-banner h2 {
    font-size: 1.5rem;
  }

  .gold-text {
    font-size: 30px;
  }
}

/* ============================================================
       TABLET LANDSCAPE (992px AND BELOW)
============================================================ */
@media (max-width: 992px) {
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

/* ============================================================
       DESKTOP LARGE (1400px AND ABOVE)
============================================================ */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .section-header h2 {
    font-size: 3rem;
  }

  .stat-number {
    font-size: 3rem;
  }
}

/* ============================================================
       PRINT STYLES
============================================================ */
@media print {
  .site-header,
  .nav-list-desktop,
  .btn,
  .site-footer,
  .cta-banner,
  .filter-bar,
  .search-bar,
  .pagination,
  .featured-banner {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .tool-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .tool-card:hover {
    transform: none;
  }

  .stat-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}