/**
 * SA — Tools: the /tools/ archive and single tool pages. Self-contained
 * tokens (same black + bright yellow palette as the rest of the site),
 * same conventions as assets/css/case-studies.css.
 */

:root {
	--tool-black: #191919;
	--tool-yellow: #fdd201;
	--tool-yellow-glow: rgba(253, 210, 1, 0.55);
	--tool-ink: #17233d;
	--tool-bg-alt: #f6f7f9;
	--tool-border: #e2e8f0;
	--tool-muted: #5b6b82;
}

/* ==========================================================================
   Banner — simple black band, matches the other archive pages' hero.
   ========================================================================== */

.tools-hero {
	background: var(--tool-black);
	color: #fff;
	padding-block: clamp(3rem, 6vw, 5rem);
	text-align: center;
}
.tools-hero__heading {
	color: #fff;
	font-weight: 700;
	margin-bottom: 0.75rem;
}
.tools-hero__text {
	color: rgba(255, 255, 255, 0.75);
	max-width: 38rem;
	margin: 0 auto;
	font-size: 1.05rem;
	line-height: 1.7;
}

/* ==========================================================================
   Archive sections
   ========================================================================== */

.tools-section + .tools-section {
	margin-top: 3.5rem;
}
.tools-section__heading {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--tool-ink);
	margin-bottom: 1.75rem;
}

/* ==========================================================================
   Tool card
   ========================================================================== */

.tool-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--tool-border);
	border-radius: 1rem;
	padding: 1.75rem;
	box-shadow: 0 14px 32px -20px rgba(23, 35, 61, 0.3);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tool-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 42px -18px rgba(23, 35, 61, 0.32);
}
.tool-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.75rem;
	background: var(--tool-bg-alt);
	color: var(--tool-ink);
	margin-bottom: 1.1rem;
}
.tool-card__title {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--tool-ink);
	margin-bottom: 0.5rem;
}
.tool-card__title a {
	color: inherit;
	text-decoration: none;
}
.tool-card__title a:hover {
	text-decoration: underline;
}
.tool-card__excerpt {
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--tool-muted);
	margin-bottom: 1.25rem;
	flex-grow: 1;
}
.tool-card__link {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--tool-ink);
	text-decoration: none;
}
.tool-card__link svg {
	transition: transform 0.2s ease;
}
.tool-card__link:hover svg {
	transform: translateX(3px);
}

/* ==========================================================================
   Single tool page
   ========================================================================== */

.tool-single__hero {
	background: var(--tool-black);
	padding-block: clamp(3rem, 7vw, 5rem);
}
/* Breadcrumb sits below the title here (not above, like the theme's other
   hero bands), so it needs its own top spacing and no longer needs the
   bottom spacing .sa-breadcrumb normally has for content that follows it. */
.tool-single__hero .sa-breadcrumb {
	margin-top: 1.25rem;
	margin-bottom: 0;
}
.tool-single__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}
.tool-single__badge {
	display: inline-block;
	background: var(--tool-yellow);
	color: #14110a;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.4rem 0.95rem;
	border-radius: 999px;
	box-shadow: 0 8px 18px -4px rgba(253, 210, 1, 0.4);
}
.tool-single__title {
	color: #fff;
	font-weight: 700;
	line-height: 1.1;
	font-size: clamp(2.1rem, 4.5vw, 3.1rem);
	margin-bottom: 0;
}

.tool-single__body {
	padding-block: clamp(3rem, 6vw, 5rem);
}
.tool-single__content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--tool-ink);
}
.tool-single__content p {
	margin-bottom: 1.25rem;
}

/* ==========================================================================
   "Latest From The Blog" — bottom of the archive and every single tool page.
   ========================================================================== */

.tools-blog {
	padding-block: clamp(3rem, 6vw, 5rem);
	background: var(--tool-bg-alt);
}

/* Self-contained button, same look as .case-study-btn/.service-btn, so this
   section doesn't need case-studies.css/service.css just for one link. */
.tools-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.9rem 2rem;
	border-radius: 0.5rem;
	font-weight: 700;
	font-size: 1.02rem;
	text-decoration: none;
	white-space: nowrap;
	background: var(--tool-yellow);
	color: #14110a;
	box-shadow: 0 0 12px 2px var(--tool-yellow-glow);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.tools-btn:hover,
.tools-btn:focus {
	color: #14110a;
	transform: translateY(-1px);
	box-shadow: 0 0 22px 5px var(--tool-yellow-glow);
}
