/* -------------------------
   TOOLS PAGE
------------------------- */

.tools-main {
  background: #faf7f2;
  color: #2b2b2b;
}

/* HERO */

.tools-hero {
  position: relative;
  width: 100%;
  min-height: 460px;
  overflow: hidden;
  z-index: 1;
}

.tools-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tools-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 1;
}

.tools-hero__overlay {
  position: relative;
  z-index: 2;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  text-align: center;
  color: #fff;
  padding: 90px 20px 110px;
}

.tools-hero__eyebrow,
.tools-section__eyebrow,
.tools-category__eyebrow {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d6b390;
}

.tools-hero__title {
  margin: 0;
  width: 100%;
  max-width: 980px;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.05;
}

.tools-hero__text {
  margin: 0;
  width: 100%;
  max-width: 820px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.1rem;
  line-height: 1.75;
  color: #f8f2ea;
}

.tools-hero__actions,
.tools-cta__actions,
.tool-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.tools-divider {
  position: relative;
  margin-top: -120px;
  height: 140px;
  z-index: 3;
}

.tools-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* SHARED */

.tools-intro,
.tools-kit,
.tools-categories,
.tools-upgrades,
.tools-links,
.tools-note,
.tools-cta {
  padding: 80px 0;
}

.tools-section__header {
  width: 100%;
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}

.tools-section__title,
.tools-links__title,
.tools-note__title,
.tools-cta__title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  color: #2f2218;
}

.tools-section__text,
.tools-links__text,
.tools-note__text,
.tools-cta__text,
.tools-intro__text,
.tools-category__text,
.tool-card__text,
.upgrade-card__text {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #5f4a3a;
}

.tools-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tools-btn:hover,
.tools-btn:focus-visible,
.tools-link:hover,
.tools-link:focus-visible {
  transform: translateY(-1px);
}

.tools-btn--primary {
  background: #a7703a;
  color: #fff;
}

.tools-btn--primary:hover,
.tools-btn--primary:focus-visible {
  background: #8d5c2c;
}

.tools-btn--secondary {
  background: transparent;
  color: #553e27;
  border-color: #a7703a;
}

.tools-btn--secondary:hover,
.tools-btn--secondary:focus-visible {
  background: #f3e8da;
}

.tools-link {
  color: #8d5c2c;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.tools-link--cta {
  display: inline-block;
  margin-top: 10px;
}

/* INTRO */

.tools-intro {
  background: #553e27;
  color: #fff;
}

.tools-intro__container {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 40px;
  align-items: center;
}

.tools-intro .tools-section__eyebrow {
  color: #d9b897;
}

.tools-intro .tools-section__title,
.tools-intro__text,
.tools-intro__list {
  color: #fff;
}

.tools-intro__list {
  margin: 0;
  padding-left: 20px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.05rem;
  line-height: 1.9;
}

/* GRIDS */

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

.tools-grid--featured {
  grid-template-columns: repeat(3, minmax(280px, 1fr));
}

.tool-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(53, 37, 22, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card--featured {
  border: 1px solid rgba(167, 112, 58, 0.18);
}

.tool-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #efe7da;
}

.tool-card__body {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.tool-card__label {
  margin: 0;
  color: #8d5c2c;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tool-card__title,
.upgrade-card__title,
.tools-category__title {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.2;
  color: #2f2218;
}

.tool-card__features {
  margin: 0;
  padding-left: 18px;
  font-family: "Source Sans 3", sans-serif;
  color: #5f4a3a;
  line-height: 1.8;
}

/* CATEGORIES */

.tools-categories {
  background: #efe7da;
}

.tools-category-list {
  display: grid;
  gap: 36px;
}

.tools-category {
  display: grid;
  gap: 22px;
}

.tools-category__intro {
  width: 100%;
  max-width: 760px;
}

.tools-category__eyebrow {
  color: #8d5c2c;
}

.tool-card--compact .tool-card__title {
  font-size: 1.45rem;
}

/* UPGRADES */

.tools-upgrades__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.upgrade-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 10px 24px rgba(53, 37, 22, 0.06);
  display: grid;
  gap: 12px;
}

/* PAGE LINKS */

.tools-links__container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.tools-links__card {
  background: #fff;
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 10px 24px rgba(53, 37, 22, 0.06);
  display: grid;
  gap: 14px;
}

/* NOTE */

.tools-note {
  background: #553e27;
}

.tools-note__container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.tools-note__title {
  color: #fff;
}

.tools-note__text {
  color: #f2e7da;
}

/* CTA */

.tools-cta {
  text-align: center;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .tools-grid,
  .tools-grid--featured,
  .tools-upgrades__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tools-intro__container,
  .tools-links__container {
    grid-template-columns: 1fr;
  }

  .tools-intro__content {
    text-align: center;
  }

  .tools-intro__list {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .tools-hero {
    min-height: 560px;
  }

  .tools-hero__overlay {
    min-height: 560px;
    padding: 96px 20px 126px;
    gap: 14px;
  }

  .tools-hero__title {
    width: 90%;
    font-size: 2.4rem;
    line-height: 1.02;
  }

  .tools-hero__text {
    width: 88%;
    font-size: 1rem;
    line-height: 1.6;
  }

  .tools-btn {
    width: 100%;
    max-width: 320px;
  }

  .tools-grid,
  .tools-grid--featured,
  .tools-upgrades__grid {
    grid-template-columns: 1fr;
  }

  .tools-intro,
  .tools-kit,
  .tools-categories,
  .tools-upgrades,
  .tools-links,
  .tools-note,
  .tools-cta {
    padding: 64px 0;
  }

  .tools-links__card,
  .upgrade-card {
    padding: 28px 22px;
  }

  .tool-card__body {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .tools-hero__title {
    font-size: 2.15rem;
  }

  .tools-section__title,
  .tools-links__title,
  .tools-note__title,
  .tools-cta__title {
    font-size: 2rem;
  }

  .tool-card__title,
  .upgrade-card__title,
  .tools-category__title {
    font-size: 1.4rem;
  }
}