/* TudoCálculo header — tools-site pattern (Omni / Calculator.net) */

:root {
	--tc-ink: #0f1f2e;
	--tc-muted: #5b6b7c;
	--tc-bg: #ffffff;
	--tc-line: #e6edf3;
	--tc-accent: #0d9488;
	--tc-accent-dark: #0f766e;
	--tc-accent-soft: #e6f7f5;
	--tc-cta: #0f1f2e;
	--tc-header-h: 72px;
	--tc-font: "Manrope", system-ui, sans-serif;
	--tc-display: "Source Serif 4", Georgia, serif;
	--tc-shadow: 0 1px 0 rgba(15, 31, 46, 0.06), 0 8px 24px rgba(15, 31, 46, 0.06);
}

.tc-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: color-mix(in srgb, var(--tc-bg) 92%, transparent);
	backdrop-filter: saturate(1.2) blur(12px);
	-webkit-backdrop-filter: saturate(1.2) blur(12px);
	border-bottom: 1px solid var(--tc-line);
	font-family: var(--tc-font);
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.tc-header.is-scrolled {
	box-shadow: var(--tc-shadow);
	border-bottom-color: transparent;
}

.tc-header__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 1.25rem;
	min-height: var(--tc-header-h);
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

/* Brand — hero-level signal in chrome */
.tc-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
	color: var(--tc-ink);
	flex-shrink: 0;
}

.tc-brand__mark {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: linear-gradient(145deg, #14b8a6 0%, #0d9488 55%, #0f766e 100%);
	color: #fff;
	font-family: var(--tc-display);
	font-weight: 700;
	font-size: 1.25rem;
	box-shadow: 0 6px 16px rgba(13, 148, 136, 0.28);
}

.tc-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.tc-brand__name {
	font-family: var(--tc-display);
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
}

.tc-brand__name span {
	color: var(--tc-accent);
}

.tc-brand__tag {
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tc-muted);
	margin-top: 0.15rem;
}

/* Primary nav */
.tc-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.tc-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0.15rem;
}

.tc-nav__list > li {
	position: relative;
}

.tc-nav__list > li > a {
	display: block;
	padding: 0.55rem 0.85rem;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--tc-ink);
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.tc-nav__list > li > a:hover,
.tc-nav__list > li.current-menu-item > a,
.tc-nav__list > li.current_page_item > a {
	background: var(--tc-accent-soft);
	color: var(--tc-accent-dark);
}

.tc-nav__list .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 0.45rem;
	list-style: none;
	background: var(--tc-bg);
	border: 1px solid var(--tc-line);
	border-radius: 14px;
	box-shadow: var(--tc-shadow);
}

.tc-nav__list > li:hover > .sub-menu,
.tc-nav__list > li:focus-within > .sub-menu {
	display: block;
}

.tc-nav__list .sub-menu a {
	display: block;
	padding: 0.55rem 0.75rem;
	border-radius: 10px;
	color: var(--tc-ink);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
}

.tc-nav__list .sub-menu a:hover {
	background: var(--tc-accent-soft);
	color: var(--tc-accent-dark);
}

/* Actions */
.tc-actions {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-left: auto;
}

.tc-search-toggle,
.tc-menu-toggle {
	appearance: none;
	border: 1px solid var(--tc-line);
	background: #fff;
	color: var(--tc-ink);
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: inline-grid;
	place-items: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.tc-search-toggle:hover,
.tc-menu-toggle:hover {
	border-color: #c9d7e3;
	background: #f7fafc;
}

.tc-menu-toggle {
	display: none;
	padding: 0;
}

.tc-menu-toggle span {
	display: block;
	width: 16px;
	height: 2px;
	background: var(--tc-ink);
	border-radius: 2px;
	margin: 2px 0;
}

.tc-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.05rem;
	border-radius: 12px;
	background: var(--tc-cta);
	color: #fff !important;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform 0.15s ease, background 0.15s ease;
}

.tc-cta:hover {
	background: #1a3348;
	transform: translateY(-1px);
}

.tc-cta--block {
	width: 100%;
	margin-top: 1rem;
}

/* Search panel */
.tc-search {
	border-top: 1px solid var(--tc-line);
	background: #fbfcfd;
	padding: 0.85rem 1.25rem 1.1rem;
}

.tc-search__form {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	gap: 0.6rem;
}

.tc-search__form input[type="search"] {
	flex: 1;
	height: 46px;
	border: 1px solid var(--tc-line);
	border-radius: 12px;
	padding: 0 1rem;
	font: inherit;
	font-size: 0.95rem;
	outline: none;
	background: #fff;
}

.tc-search__form input[type="search"]:focus {
	border-color: var(--tc-accent);
	box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.tc-search__form button {
	height: 46px;
	padding: 0 1.15rem;
	border: 0;
	border-radius: 12px;
	background: var(--tc-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.tc-search__form button:hover {
	background: var(--tc-accent-dark);
}

/* Mobile drawer */
.tc-drawer {
	border-top: 1px solid var(--tc-line);
	padding: 1rem 1.25rem 1.25rem;
	background: #fff;
}

.tc-drawer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tc-drawer__list a {
	display: block;
	padding: 0.85rem 0.25rem;
	border-bottom: 1px solid var(--tc-line);
	color: var(--tc-ink);
	text-decoration: none;
	font-weight: 650;
}

.tc-drawer__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 0 0.85rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 920px) {
	.tc-nav {
		display: none;
	}

	.tc-cta {
		display: none;
	}

	.tc-menu-toggle {
		display: inline-grid;
	}

	.tc-brand__tag {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tc-header,
	.tc-cta,
	.tc-nav__list > li > a {
		transition: none;
	}
}
