/*
Theme Name: TinyFrog How-To Theme
Theme URI: https://tinyfrog.com
Author: Tiny Frog Technologies, Inc.
Author URI: https://tinyfrog.com
Description: Twenty Twenty-Five child theme for howto.tinyfrog.com. Colors, type, and header/footer styles match tinyfrog.com.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: tinyfrog-how-to-theme
*/

/* ==========================================================================
   Fonts — theme files, full Inter weight range.
   Site Editor Font Library was registering Inter at 900 only, so body
   text rendered bold. These faces must load so font-weight: 400 works.
   ========================================================================== */

@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter/inter-normal-100-900.woff2") format("woff2");
}

@font-face {
	font-family: Inter;
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter/inter-italic-100-900.woff2") format("woff2");
}

/* ==========================================================================
   Base
   ========================================================================== */

* {
	box-sizing: border-box;
}

body {
	font-family: "Inter", sans-serif;
	font-weight: 400;
	font-synthesis: none;
	letter-spacing: 0;
}

p,
li,
td,
th,
figcaption,
.wp-block-post-excerpt,
.wp-block-post-content,
.wp-block-tag-cloud,
.wp-block-search__input {
	font-weight: 400;
}

a,
button,
.wp-element-button {
	transition: all 0.3s ease-in-out;
}

p {
	margin-bottom: 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 20px;
}

img {
	height: auto;
	max-width: 100%;
	vertical-align: top;
}

:focus {
	outline: 1px solid var(--wp--preset--color--charcoal);
	outline-offset: -2px;
}

header a:focus {
	outline: 1px solid var(--wp--preset--color--charcoal);
}

footer a:focus {
	outline: 1px solid var(--wp--preset--color--orange);
}

.js-focus-visible :focus:not(.focus-visible) {
	outline: none !important;
}

body .wp-element-button {
	min-width: 150px;
}

/* ==========================================================================
   Header
   Matches tinyfrog.com: logo left, nav + phone + Get Started right.
   Services is a plain link (no mega menu).
   ========================================================================== */

header.wp-block-template-part {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: var(--wp--preset--color--white);
	transition: top 0.3s ease, filter 0.3s ease;
	z-index: 9999;
}

body.sticky header.wp-block-template-part {
	filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.15));
}

/* Sit below the WP admin bar (fixed to the viewport, not html margin) */
body.admin-bar header.wp-block-template-part {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar header.wp-block-template-part {
		top: 46px;
	}
}

/* Room for the fixed header on desktop */
@media (min-width: 981px) {
	body {
		padding-top: 121px;
	}
}

header.wp-block-template-part .wp-block-site-logo img,
header.wp-block-template-part .header-logo img {
	width: 184px;
	height: auto;
	display: block;
	vertical-align: middle;
}

/* Saved header part can lose flex (shows as is-layout-flow). Force the row. */
header.wp-block-template-part .header-wrap {
	display: flex !important;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

header.wp-block-template-part .header-wrap > * {
	margin-top: 0;
	margin-bottom: 0;
	align-self: center;
}

header.wp-block-template-part .header-wrap figure,
header.wp-block-template-part .header-logo,
header.wp-block-template-part .header-logo.wp-block-image {
	margin: 0;
}

header.wp-block-template-part .header-right-widget {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
}

header.wp-block-template-part .header-right-widget > * {
	margin-top: 0;
	margin-bottom: 0;
	align-self: center;
}

/* Navigation — Poppins bold, teal hover, orange underline */
header.wp-block-template-part nav.wp-block-navigation {
	gap: 0;
	align-items: center;
}

header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation__container,
header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation__responsive-container-content {
	display: flex;
	align-items: center;
	gap: 0;
}

header.wp-block-template-part nav.wp-block-navigation a {
	text-decoration: none;
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 16px;
	font-weight: 700;
	color: var(--wp--preset--color--truffle);
	line-height: 1.2;
	padding: 0;
	margin: 0 15px;
	border-top: 3px solid transparent;
	border-bottom: 3px solid transparent;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
}

header.wp-block-template-part nav.wp-block-navigation a:hover,
header.wp-block-template-part nav.wp-block-navigation a:focus,
header.wp-block-template-part nav.wp-block-navigation .current-menu-item > a,
header.wp-block-template-part nav.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--tealdark);
	border-bottom-color: var(--wp--preset--color--orange);
}

/* Phone */
.call-us {
	padding: 5px 20px;
	margin-left: 10px !important;
	border-left: 2px solid var(--wp--preset--color--charcoal);
	align-items: center;
	gap: 8px;
}

.call-us h5 {
	margin: 0 !important;
	letter-spacing: 0;
	line-height: 1;
	font-size: 16px;
}

.call-us,
.call-us h5,
.call-us a {
	white-space: nowrap;
}

.call-us a {
	text-decoration: none;
	margin: 0;
	font-size: 16px;
	font-family: var(--wp--preset--font-family--poppins);
	font-weight: 700;
	color: var(--wp--preset--color--charcoal);
}

.call-us > figure {
	margin: 0;
	flex-shrink: 0;
	line-height: 0;
}

.call-us img {
	width: 26px;
	height: 26px;
	display: block;
}

/* Get Started CTA */
header.wp-block-template-part .wp-block-buttons {
	margin-left: 8px;
	align-items: center;
}

header.wp-block-template-part .wp-element-button {
	padding: 11px 25px 9px;
	min-width: auto;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer.wp-block-template-part {
	margin-top: 0;
}

footer.wp-block-template-part * {
	color: var(--wp--preset--color--white);
}

footer.wp-block-template-part p,
footer.wp-block-template-part a {
	font-size: 15px;
	font-weight: 400;
}

footer.wp-block-template-part a {
	text-decoration: none;
}

footer.wp-block-template-part a:hover {
	text-decoration: underline;
}

footer.wp-block-template-part ul.wp-block-navigation__container {
	gap: 0;
	display: block;
}

footer.wp-block-template-part .wp-block-navigation {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 15px;
	font-weight: 400;
}

footer.wp-block-template-part .wp-block-navigation a {
	margin: 0;
	line-height: inherit;
	border-bottom: 0;
	color: var(--wp--preset--color--white);
	font-weight: 400;
	font-family: inherit;
	font-size: 15px;
}

footer.wp-block-template-part .wp-block-navigation a:hover {
	color: var(--wp--preset--color--white);
	border-bottom: 0;
	text-decoration: underline;
}

footer li.wp-block-navigation-item.wp-block-navigation-link {
	line-height: 2.5;
}

footer.wp-block-template-part .contact-info p {
	line-height: 2.4;
}

.contact-info a {
	display: block;
	padding: 0;
	margin: 0;
	white-space: nowrap;
}

.contact-info .wp-block-group {
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px;
}

.contact-info .wp-block-group figure {
	margin: 0;
	flex-shrink: 0;
	line-height: 0;
}

p.footer-address {
	margin: 0 0 20px;
}

.footer-copy-text {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 30px 0 0;
	margin-top: 40px !important;
}

.social-media {
	align-items: center;
	flex-wrap: nowrap;
	gap: 12px;
}

.social-media > .wp-block-column:first-child {
	flex: 0 0 auto !important;
	width: auto !important;
	min-width: max-content;
}

.social-media > .wp-block-column:first-child p,
.social-media > .wp-block-column:first-child strong {
	margin: 0;
	white-space: nowrap;
}

.social-media .wp-block-social-links {
	gap: 10px;
}

.social-media .wp-block-social-link {
	padding: 0;
}

.social-media .wp-social-link svg {
	width: 28px;
	height: 28px;
}

.social-media .wp-social-link a {
	color: var(--wp--preset--color--teal) !important;
}

.social-media .wp-social-link a:hover,
.social-media .wp-social-link a:focus {
	color: var(--wp--preset--color--orange) !important;
	transform: none;
}

.social-media .wp-social-link span:not(.screen-reader-text) {
	color: inherit;
}

a.cky-banner-element {
	display: flex;
	align-items: center;
	gap: 10px;
}

a.cky-banner-element img.ccpa-icon {
	width: 32px;
}

/* ==========================================================================
   1200px
   ========================================================================== */

@media only screen and (max-width: 1200px) {

	header.wp-block-template-part .wp-block-site-logo,
	header.wp-block-template-part .header-logo {
		width: 150px;
	}

	header.wp-block-template-part .wp-block-site-logo img,
	header.wp-block-template-part .header-logo img {
		width: 150px;
	}

	header.wp-block-template-part nav.wp-block-navigation a {
		margin: 0 6px;
	}

	.call-us {
		padding: 5px 10px 5px 14px;
		margin-left: 12px !important;
	}

	.call-us a {
		margin: 0;
		font-size: 14px;
	}

	header.wp-block-template-part .wp-element-button {
		padding: 10px 15px;
	}

	p.footer-address br {
		display: none;
	}
}

/* ==========================================================================
   980px — hamburger, header becomes relative
   ========================================================================== */

@media only screen and (max-width: 980px) {

	body {
		padding-top: 0;
	}

	header.wp-block-template-part {
		position: relative;
		top: 0 !important;
		overflow: visible;
	}

	body.sticky header.wp-block-template-part {
		filter: none;
	}

	.call-us {
		border: none;
	}

	/* Match tinyfrog.com: logo + Get Started, then MENU + phone */
	header.wp-block-template-part .header-wrap {
		display: grid !important;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"logo cta"
			"menu phone";
		align-items: center;
		column-gap: 12px;
		row-gap: 14px;
		padding-top: 16px;
		padding-bottom: 16px;
	}

	header.wp-block-template-part .header-wrap > .wp-block-group:first-child {
		grid-area: logo;
		justify-self: start;
	}

	header.wp-block-template-part .header-logo,
	header.wp-block-template-part .header-logo img,
	header.wp-block-template-part .wp-block-site-logo,
	header.wp-block-template-part .wp-block-site-logo img {
		width: 160px;
	}

	header.wp-block-template-part .header-right-widget {
		display: contents;
		padding-right: 0;
	}

	header.wp-block-template-part .wp-block-buttons {
		grid-area: cta;
		justify-self: end;
		margin: 0;
		position: static;
	}

	header.wp-block-template-part .wp-element-button {
		padding: 10px 22px;
	}

	header.wp-block-template-part nav.wp-block-navigation {
		grid-area: menu;
		justify-self: start;
		position: static;
	}

	header.wp-block-template-part .call-us {
		grid-area: phone;
		justify-self: end;
		position: static;
		margin: 0 !important;
		padding: 0;
		border: none;
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
		align-items: center;
		gap: 8px;
		padding: 0;
		background: transparent;
		border: 0;
		color: var(--wp--preset--color--charcoal);
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container-open::after {
		content: "MENU";
		display: block;
		font-size: 15px;
		font-weight: 700;
		font-family: var(--wp--preset--font-family--poppins);
		color: var(--wp--preset--color--charcoal);
		letter-spacing: 0;
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container-open svg {
		width: 26px;
		height: 26px;
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}

	/* Dropdown under the header, not a full-screen overlay */
	header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open {
		position: absolute !important;
		inset: auto 0 auto 0 !important;
		top: 100% !important;
		left: 0 !important;
		right: 0 !important;
		bottom: auto !important;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		padding: 8px 0 28px !important;
		background: var(--wp--preset--color--white) !important;
		overflow: visible;
		z-index: 20;
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog,
	header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		padding: 0;
		width: 100%;
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		display: none;
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		display: block;
		width: 100%;
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open a {
		margin: 0;
		padding: 10px 0;
		line-height: 1.4;
		border: 0;
		display: block;
		text-align: left;
		font-size: 18px;
		font-weight: 700;
		font-family: var(--wp--preset--font-family--poppins);
		color: var(--wp--preset--color--charcoal);
	}

	footer.wp-block-template-part {
		text-align: center;
	}

	footer.wp-block-template-part > .wp-block-group > figure.wp-block-image {
		margin-left: auto;
		margin-right: auto;
	}

	footer.wp-block-template-part .wp-block-columns {
		flex-direction: column;
		align-items: center;
		gap: 28px;
	}

	footer.wp-block-template-part .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
		max-width: 100%;
	}

	footer.wp-block-template-part .wp-block-navigation,
	footer.wp-block-template-part .wp-block-navigation .wp-block-navigation__container {
		align-items: center !important;
		justify-content: center;
		width: 100%;
	}

	footer.wp-block-template-part .wp-block-navigation .wp-block-navigation-item {
		display: block;
		width: 100%;
		text-align: center;
	}

	.contact-info .wp-block-group {
		max-width: none;
		width: 100%;
		margin: 0;
		justify-content: center;
	}

	a.cky-banner-element {
		display: inline-flex;
		justify-content: center;
		text-align: center;
		margin: 0 auto;
	}

	.social-media {
		margin: 8px 0 0 !important;
		flex-direction: column;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		gap: 12px;
	}

	.social-media > .wp-block-column:first-child,
	.social-media > .wp-block-column:last-child {
		flex: 0 0 auto !important;
		width: auto !important;
		min-width: 0;
	}

	.social-media .wp-block-social-links {
		justify-content: center;
	}

	p.footer-address {
		margin: 0 0 20px;
		text-align: center;
	}

	p.footer-address br {
		display: block;
	}
}

@media (min-width: 981px) {

	header.wp-block-template-part .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: none !important;
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: flex !important;
		position: relative;
		width: auto;
		height: auto;
		background: transparent;
		overflow: visible;
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container-close {
		display: none;
	}

	header.wp-block-template-part .wp-block-navigation__responsive-close,
	header.wp-block-template-part .wp-block-navigation__responsive-dialog,
	header.wp-block-template-part .wp-block-navigation__responsive-container-content {
		width: auto;
		padding: 0;
	}

	footer.wp-block-template-part .wp-block-columns {
		flex-wrap: nowrap;
	}

	.social-media {
		flex-wrap: nowrap;
	}
}

header.wp-block-template-part .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--charcoal);
}

/* ==========================================================================
   Archives / query loops
   TT5 wraps each post in a Group with padding-top/bottom spacing-60
   (30–70px each side). That is inline on the block, so override here.
   Edit in Site Editor: Templates → Archive → Query Loop → inner Group
   → sidebar Dimensions → Padding.
   ========================================================================== */

.wp-block-query-title {
	font-size: var(--wp--preset--font-size--heading-1);
	margin-bottom: 1rem;
}

h1.wp-block-post-title {
	font-size: var(--wp--preset--font-size--heading-1);
}

h2.wp-block-post-title {
	font-size: var(--wp--preset--font-size--heading-2);
}

.wp-block-post-template {
	gap: 0;
}

.wp-block-post-template > .wp-block-post > .wp-block-group {
	padding-top: 12px !important;
	padding-bottom: 12px !important;
}

.wp-block-post-template .wp-block-post-title {
	margin: 0;
}

.wp-block-post-template .wp-block-post-title a {
	text-decoration: none;
}

.wp-block-post-template .wp-block-post-title a:hover {
	text-decoration: underline;
}
