/* ==========================================================================
   Social media links — header top bar, footer row, Contact page section.
   Markup: inc/social.php. Tokens come from main.css.
   ========================================================================== */

/* 1. Shared icon list ---------------------------------------------------- */
.tawa-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tawa-gutter-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tawa-social li {
	margin: 0;
	padding: 0;
}

.tawa-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--tawa-gutter-sm);
	text-decoration: none;
	transition: color var(--tawa-ease-state), background-color var(--tawa-ease-state), border-color var(--tawa-ease-state), transform var(--tawa-ease-state);
}

.tawa-social__icon {
	display: block;
	flex-shrink: 0;
}

.tawa-social__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* 2. Header top bar ------------------------------------------------------ */
body.tawa .tawa-topbar {
	background: #00210a;
	color: rgba(255, 255, 255, 0.88);
	font-size: 13px;
	line-height: 1;
	max-height: 60px;
	overflow: hidden;
	transition: max-height 240ms ease, opacity 240ms ease;
}

/* Front page: header floats over the hero, so let the photo show through. */
body.tawa-front .tawa-topbar {
	background: rgba(0, 33, 10, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* Collapse once the sticky header is stuck — keeps the stuck header compact. */
html.tawa-scrolled body.tawa .tawa-topbar {
	max-height: 0;
	opacity: 0;
}

.tawa-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--tawa-gutter-md);
	max-width: 1200px;
	min-height: 40px;
	margin-inline: auto;
	padding-inline: 20px;
	box-sizing: border-box;
}

.tawa-topbar__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tawa-gutter-lg);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tawa-topbar__contact li {
	margin: 0;
}

body.tawa .tawa-topbar__contact a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
	transition: color var(--tawa-ease-state);
}

body.tawa .tawa-topbar__contact a:hover {
	color: var(--tawa-olive-green);
}

.tawa-topbar__icon {
	width: 15px;
	height: 15px;
}

.tawa-social--topbar {
	gap: 4px;
	margin-inline-start: auto;
}

body.tawa .tawa-social--topbar .tawa-social__link {
	width: 30px;
	height: 30px;
	border-radius: var(--tawa-radius-full);
	color: rgba(255, 255, 255, 0.88);
}

body.tawa .tawa-social--topbar .tawa-social__link:hover {
	color: #00210a;
	background: var(--tawa-olive-green);
}

.tawa-social--topbar .tawa-social__icon {
	width: 15px;
	height: 15px;
}

@media (max-width: 544px) {
	.tawa-topbar__inner {
		justify-content: center;
		padding-inline: 12px;
	}

	/* Phones: icons only (the contact details are one tap away elsewhere). */
	.tawa-topbar__contact {
		display: none;
	}

	.tawa-social--topbar {
		margin-inline: 0;
	}
}

/* Phones: the homepage hero reserves 92px for the header band (main.css);
   add the top bar's 40px so the logo stays off the photo. */
@media (max-width: 599px) {
	body.tawa-front.tawa-has-topbar .tawa-hero {
		padding-top: 132px;
	}
}

/* 3. Footer row ---------------------------------------------------------- */
body.tawa .tawa-footer-social {
	background: var(--tawa-surface-dim);
	border-top: 1px solid var(--tawa-outline-variant);
}

.tawa-footer-social__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--tawa-gutter-md);
	max-width: 1200px;
	margin-inline: auto;
	padding: var(--tawa-gutter-lg) 20px;
	box-sizing: border-box;
}

body.tawa .tawa-footer-social__title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--tawa-on-surface);
}

body.tawa .tawa-social--footer .tawa-social__link {
	width: 40px;
	height: 40px;
	border-radius: var(--tawa-radius-full);
	background: var(--tawa-surface);
	border: 1px solid var(--tawa-outline-variant);
	color: var(--tawa-primary);
}

body.tawa .tawa-social--footer .tawa-social__link:hover {
	background: var(--tawa-primary);
	border-color: var(--tawa-primary);
	color: var(--tawa-on-primary);
	transform: translateY(-2px);
}

/* 4. Contact page section ------------------------------------------------ */
body.tawa .entry-content .tawa-contact-social {
	margin-block: 0;
}

body.tawa .tawa-contact-social .tawa-section-header {
	margin-bottom: var(--tawa-gutter-xl);
}

.tawa-social--contact {
	justify-content: center;
	gap: var(--tawa-gutter-md);
}

body.tawa .entry-content .tawa-social--contact .tawa-social__link {
	min-width: 168px;
	padding: 14px 22px;
	border-radius: var(--tawa-radius-lg);
	background: var(--tawa-surface);
	border: 1px solid var(--tawa-outline-variant);
	box-shadow: var(--tawa-shadow-sm);
	color: var(--tawa-on-surface);
	font-weight: 700;
	text-decoration: none;
}

.tawa-social--contact .tawa-social__icon {
	width: 22px;
	height: 22px;
	color: var(--tawa-primary);
	transition: color var(--tawa-ease-state);
}

body.tawa .entry-content .tawa-social--contact .tawa-social__link:hover {
	background: var(--tawa-primary);
	border-color: var(--tawa-primary);
	color: var(--tawa-on-primary);
	box-shadow: var(--tawa-shadow-md);
	transform: translateY(-2px);
}

.tawa-social--contact .tawa-social__link:hover .tawa-social__icon {
	color: var(--tawa-on-primary);
}

@media (max-width: 544px) {
	.tawa-social--contact {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.tawa .entry-content .tawa-social--contact .tawa-social__link {
		min-width: 0;
		width: 100%;
		padding: 12px 14px;
		box-sizing: border-box;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.tawa .tawa-topbar,
	.tawa-social__link {
		transition: none;
	}

	body.tawa .tawa-social__link:hover {
		transform: none;
	}
}
