/* ==========================================================================
   T&K Enterprises – child theme CSS
   Keep this file small. Colors and fonts come from Elementor's Global
   Colors / Global Fonts (Site Settings), exposed as CSS variables:
     --e-global-color-tknavy, --e-global-color-tkblue3d, ...
     --e-global-typography-tkserif-font-family, ...
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Division accent
   Hub, Apparel, Woodcraft = navy. 3D = bright blue.
   Body class is added by functions.php (tk-division-*).
   -------------------------------------------------------------------------- */
body {
	--tk-accent: var(--e-global-color-tknavy, #2A3B93);
}

body.tk-division-3d {
	--tk-accent: var(--e-global-color-tkblue3d, #146DDB);
}

/* --------------------------------------------------------------------------
   2. Heading helpers (used inside Elementor Heading widgets)
   <span class="tk-accent">IDEA</span>   -> accent-colored word
   <span class="tk-peri">IDEA</span>     -> light periwinkle word (on black)
   <span class="tk-serif">Gifts</span>   -> italic serif accent word
   -------------------------------------------------------------------------- */
.tk-accent {
	color: var(--tk-accent);
}

.tk-peri {
	color: var(--e-global-color-tkperi, #8F9CF2);
}

.tk-serif {
	font-family: var(--e-global-typography-tkserif-font-family, "Source Serif 4"), Georgia, serif;
	font-style: italic;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
}

/* Serif word inside a blue/navy "Gifts" / "Printing" style heading */
.tk-serif.tk-accent,
.tk-accent .tk-serif {
	color: var(--tk-accent);
}

/* --------------------------------------------------------------------------
   3. Footer CTA band follows the division accent
   The band container has the CSS class "tk-band" in the footer template.
   Navy is set in Elementor; this only swaps it on 3D pages.
   -------------------------------------------------------------------------- */
body.tk-division-3d .elementor-element.tk-band {
	background-color: var(--e-global-color-tkblue3d, #146DDB) !important;
}

/* --------------------------------------------------------------------------
   4. Lists inside Text Editor widgets (bullets in the comps)
   -------------------------------------------------------------------------- */
.tk-list ul {
	margin: 0;
	padding-left: 1.1em;
}

.tk-list li {
	margin-bottom: 0.45em;
}

.tk-list li::marker {
	color: currentColor;
}

/* Left rule used on the 3D "Our process / Our team" copy */
.tk-rule {
	border-left: 3px solid currentColor;
	padding-left: 1.1rem;
}

/* --------------------------------------------------------------------------
   5. Apparel category tiles (whole tile is a link)
   -------------------------------------------------------------------------- */
a.tk-tile {
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.tk-tile:hover,
a.tk-tile:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(20, 30, 80, 0.22);
}

/* --------------------------------------------------------------------------
   6. Accessibility: visible focus on links/buttons
   -------------------------------------------------------------------------- */
.elementor a:focus-visible,
.elementor-button:focus-visible {
	outline: 3px solid var(--tk-accent);
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   7. Gravity Forms (Orbital theme). Colors come from gform_default_styles
   in functions.php; this only matches the site's fonts and button style.
   -------------------------------------------------------------------------- */
.gform-theme--framework {
	--gf-font-family-base: var(--e-global-typography-tkbody-font-family, "Inter"), sans-serif;
	--gf-ctrl-btn-font-family: var(--e-global-typography-tkbtn-font-family, "Inter"), sans-serif;
}

.gform-theme--framework .gform_footer .gform_button,
.gform-theme--framework .gform_page_footer .gform_button {
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 700;
	padding-inline: 28px;
}

/* Rounded hover lift to match Elementor buttons */
.gform-theme--framework .gform_footer .gform_button:hover {
	filter: brightness(1.12);
}

/* --------------------------------------------------------------------------
   8. Header on phones: keep logo and menu button on one row.
   Elementor wraps flex rows on mobile by default; the header must not.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	[data-elementor-type="header"] > .e-con,
	[data-elementor-type="header"] > .e-con > .e-con-inner {
		flex-wrap: nowrap !important;
		flex-direction: row !important;
		align-items: center !important;
	}
}
