/* =========================================================
   Site header / footer — sitewide, ported from the main
   corporate site's design. Uses the same brand tokens as the
   blog module (blog-theme.css) so both stay in sync; falls
   back to sensible defaults if that file isn't loaded on a
   given page.
   ========================================================= */
:root {
	--tc-hf-accent: var(--tc-accent, #eeaf0a);
	--tc-hf-accent-dark: var(--tc-accent-dark, #c9930a);
	--tc-hf-text: var(--tc-text, #16181c);
	--tc-hf-border: var(--tc-border, #e6e6e8);
	--tc-hf-footer-bg: #1b2333;
	--tc-hf-footer-border: rgba(255,255,255,.12);
	--tc-hf-teal: #17a2a8;
	--tc-hf-max: var(--tc-max, 1480px);
	--tc-hf-font: var(--tc-font, 'Titillium Web', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}

/* ---------- Accessibility utility ---------- */
.tc-skip-link.screen-reader-text {
	position: absolute; left: -9999px; top: 0; z-index: 999999;
	background: #fff; color: var(--tc-hf-text); padding: 12px 20px; border-radius: 0 0 8px 0;
	font-family: var(--tc-hf-font); font-weight: 600; text-decoration: none;
}
.tc-skip-link.screen-reader-text:focus { left: 0; }

/* ---------- Header ---------- */
.tc-site-header {
	background: #fff;
	border-bottom: 1px solid var(--tc-hf-border);
	position: sticky; top: 0; z-index: 500;
	font-family: var(--tc-hf-font);
}
.tc-header-inner {
	max-width: var(--tc-hf-max); margin: 0 auto; padding: 0 20px;
	display: flex; align-items: center; gap: 28px; height: 76px;
}
.tc-site-logo { display: flex; align-items: center; flex-shrink: 0; }
.tc-site-logo img { height: 38px; width: auto; display: block; }

.tc-primary-nav { flex: 1; }
.tc-nav { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tc-nav__item { position: relative; }
.tc-nav__link {
	display: inline-flex; align-items: center; gap: 5px;
	background: none; border: none; cursor: pointer;
	font-family: inherit; font-size: 14.5px; font-weight: 600;
	color: var(--tc-hf-text); text-decoration: none;
	padding: 10px 14px; letter-spacing: .01em;
}
.tc-nav__toggle::after {
	content: ""; width: 7px; height: 7px; margin-left: 2px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transition: transform .15s;
}
.tc-nav__item:hover .tc-nav__link,
.tc-nav__link:focus-visible,
.tc-nav__item.tc-is-open .tc-nav__link { color: var(--tc-hf-accent-dark); }
.tc-nav__item.tc-is-open .tc-nav__toggle::after { transform: rotate(225deg); }

/* Mega dropdown — desktop: hover/click opens a full-width panel */
.tc-mega {
	display: none;
	position: absolute; left: 0; top: 100%;
	background: #fff; border: 1px solid var(--tc-hf-border); border-radius: 12px;
	box-shadow: 0 16px 40px rgba(0,0,0,.12);
	padding: 26px; margin-top: 10px; min-width: 260px; z-index: 10;
}
.tc-nav__item.tc-is-open .tc-mega { display: block; }
.tc-mega__grid { display: grid; grid-template-columns: repeat(4, 200px); gap: 28px; }
.tc-mega--narrow .tc-mega__grid { grid-template-columns: repeat(2, 240px); }
.tc-mega__col { display: flex; flex-direction: column; gap: 10px; }
.tc-mega__heading { font-weight: 700; font-size: 14px; color: var(--tc-hf-text); }
.tc-mega__heading--link { text-decoration: none; }
.tc-mega__heading--link:hover { color: var(--tc-hf-accent-dark); }
.tc-mega__col ul, .tc-mega--simple ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.tc-mega__col a, .tc-mega--simple a {
	color: #52565d; text-decoration: none; font-size: 13.5px; line-height: 1.4;
}
.tc-mega__col a:hover, .tc-mega--simple a:hover { color: var(--tc-hf-accent-dark); }
.tc-mega__soon { color: #b3b5ba; font-size: 13.5px; cursor: default; }
.tc-mega--simple { min-width: 200px; }

.tc-google-rating { flex-shrink: 0; display: flex; align-items: center; }
.tc-google-rating img { height: 34px; width: auto; display: block; }

.tc-nav-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 40px; height: 40px; background: none; border: 1px solid var(--tc-hf-border);
	border-radius: 8px; cursor: pointer; flex-shrink: 0;
}
.tc-nav-toggle span { width: 20px; height: 2px; background: var(--tc-hf-text); margin: 0 auto; transition: transform .2s, opacity .2s; }
.tc-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tc-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tc-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Footer ---------- */
.tc-site-footer { background: var(--tc-hf-footer-bg); color: #c7cad3; font-family: var(--tc-hf-font); }
.tc-footer-inner { max-width: var(--tc-hf-max); margin: 0 auto; padding: 0 20px; }
.tc-footer-top { padding: 70px 0 40px; }
.tc-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.3fr; gap: 40px; }
.tc-footer-col__title { display: block; color: #fff; font-weight: 700; margin-bottom: 18px; font-size: 15px; }
.tc-footer-logo img { height: 34px; width: auto; display: block; margin-bottom: 20px; }
.tc-footer-col--brand p { font-size: 13.5px; line-height: 1.7; color: #a7abb5; max-width: 34ch; }
.tc-footer-social { list-style: none; display: flex; gap: 10px; margin: 20px 0 0; padding: 0; }
.tc-footer-social a {
	width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--tc-hf-footer-border);
	display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none;
}
.tc-footer-social a:hover { background: var(--tc-hf-accent); border-color: var(--tc-hf-accent); color: #1b2333; }
.tc-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tc-footer-links a { color: #c7cad3; text-decoration: none; font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; }
.tc-footer-links a::before { content: "→"; color: var(--tc-hf-accent); font-size: 12px; }
.tc-footer-links a:hover { color: #fff; }
.tc-footer-contact-line { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.6; margin: 0 0 14px; color: #c7cad3; }
.tc-footer-contact-line svg { flex-shrink: 0; margin-top: 2px; color: var(--tc-hf-accent); }
.tc-footer-contact-line a { color: #c7cad3; text-decoration: none; }
.tc-footer-contact-line a:hover { color: #fff; }
.tc-footer-badges { display: flex; gap: 10px; margin-top: 16px; }
.tc-footer-badges img { display: block; border-radius: 6px; }

.tc-footer-bottom { border-top: 1px solid var(--tc-hf-footer-border); padding: 18px 0; }
.tc-footer-bottom__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.tc-footer-legal { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.tc-footer-legal a { color: #c7cad3; text-decoration: none; font-size: 13px; }
.tc-footer-legal a:hover { color: #fff; }
.tc-footer-copyright { margin: 0; font-size: 13px; color: #c7cad3; }
.tc-footer-copyright a { color: #fff; text-decoration: none; }

/* ---------- Floating buttons ---------- */
.tc-float {
	position: fixed; z-index: 600; display: flex; align-items: center; justify-content: center;
	border: none; cursor: pointer; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.tc-float--whatsapp { right: 22px; bottom: 88px; width: 54px; height: 54px; border-radius: 50%; background: #25D366; }
.tc-float--top {
	right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 10px; background: var(--tc-hf-accent);
	opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s;
}
.tc-float--top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.tc-float--meeting {
	left: 22px; bottom: 22px; background: var(--tc-hf-teal); color: #fff; font-weight: 700; font-size: 13.5px;
	padding: 14px 22px; border-radius: 999px; font-family: var(--tc-hf-font);
}
.tc-float--meeting:hover { background: #128488; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.tc-mega__grid { grid-template-columns: repeat(2, 200px); }
}
@media (max-width: 991px) {
	.tc-header-inner { height: 66px; }
	.tc-nav-toggle { display: flex; }
	.tc-google-rating { display: none; }

	.tc-primary-nav {
		position: fixed; inset: 66px 0 0 0; background: #fff; overflow-y: auto;
		transform: translateX(100%); transition: transform .25s ease; padding: 10px 0 40px;
	}
	.tc-primary-nav.tc-is-open { transform: translateX(0); }
	.tc-nav { flex-direction: column; align-items: stretch; gap: 0; padding: 0 20px; }
	.tc-nav__item { border-bottom: 1px solid var(--tc-hf-border); }
	.tc-nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 16px; }

	.tc-mega {
		display: none; position: static; box-shadow: none; border: none; border-radius: 0;
		margin: 0 0 10px; padding: 0 4px 10px; background: transparent;
	}
	.tc-nav__item.tc-is-open .tc-mega { display: block; }
	.tc-mega__grid, .tc-mega--narrow .tc-mega__grid { grid-template-columns: 1fr; gap: 20px; }
	.tc-mega--simple { min-width: 0; }

	.tc-footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
	.tc-footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.tc-header-inner { padding: 0 16px; gap: 16px; }
	.tc-site-logo img { height: 30px; }

	.tc-footer-top { padding: 46px 0 30px; }
	.tc-footer-grid { grid-template-columns: 1fr; gap: 30px; }
	.tc-footer-bottom__row { flex-direction: column; align-items: flex-start; }

	.tc-float--whatsapp { width: 48px; height: 48px; right: 16px; bottom: 78px; }
	.tc-float--top { width: 38px; height: 38px; right: 16px; bottom: 16px; }
	.tc-float--meeting { left: 16px; bottom: 16px; padding: 12px 18px; font-size: 12.5px; }
}
