/*
Theme Name: TNA Child
Theme URI: https://tna.lv
Description: Child theme of Astra for SIA "Tiesu namu aģentūra" (tna.lv).
Author: TNA
Template: astra
Version: 1.0.0
Text Domain: tna-child
*/

/* Header markup/styling has moved entirely to inc/custom-header.php +
   assets/css/header.css -- Astra's header builder is disabled outright
   (see that file for why) rather than patched with more overrides here. */

/* Disabling Astra's header builder (inc/custom-header.php) had a side
   effect: Astra's own dynamic CSS (class-astra-dynamic-css.php) adds a
   60px #primary margin-top/bottom on "FullWidth Contained" layouts
   UNLESS its own is_transparent_header() check returns true -- which it
   no longer does, now that Astra isn't rendering (or aware of) any
   header of its own. Result: a 60px white gap between the header and
   the hero band on every page (found live on the front page, "below
   the search bar, above the hero image" -- confirmed the same gap
   exists site-wide, not just there). Overridden back to 0; tna.lv's
   own header sits flush against its hero with no such gap. */
#primary {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* tna.lv's real <footer> (computed styles, 2026-08-15): light grey
   #e4e4e4 -- the same tile grey as the header nav -- near-black body
   text, and a flat 12px #ff3700 top border. Not the dark-navy footer
   an earlier session invented; that never matched the live site. */
.tna-footer {
	background: #e4e4e4;
	color: #0a0a0a;
	padding: 60px 0 40px;
	font-size: 1em;
	border-top: 12px solid #ff3700;
}

.tna-footer__cols {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

.tna-footer__col {
	flex: 1 1 220px;
}

.tna-footer__col--wide {
	flex: 2 1 320px;
}

.tna-footer__col h2 {
	color: #044a88;
	margin: 0 0 10px;
	font-size: 1.5em;
	font-weight: 700;
}

.tna-footer__col h2 a {
	color: #044a88;
	text-decoration: none;
}

.tna-footer__col h2 a:hover {
	text-decoration: underline;
}

.tna-footer__col p {
	margin: 0 0 6px;
	line-height: 1.6;
	color: #0a0a0a;
}

.tna-footer__col a {
	color: #044a88;
	/* Underlined, not colour-only -- the mailto link sits inside plain
	   black body text now that the footer is light, and axe-core's
	   link-in-text-block check (correctly) flags a same-weight link
	   distinguished purely by colour as inaccessible. Same pattern as
	   .entry-content links elsewhere on the site. */
	text-decoration: underline;
}

.tna-footer__col a:hover {
	text-decoration: none;
}

.tna-footer__label {
	color: #0a0a0a;
	font-weight: 400;
	margin-top: 14px !important;
}

.tna-footer__col > .tna-footer__label:first-child {
	margin-top: 0 !important;
}

/* p.tna-footer__phone, not just .tna-footer__phone -- these are <p> tags,
   so the plain ".tna-footer__col p" rule above (element+class, higher
   specificity than a single class) would otherwise win and leave every
   number black instead of blue regardless of source order. */
p.tna-footer__phone {
	font-size: 1.5em;
	font-weight: 700;
	color: #044a88;
}

/* tna.lv's very first phone number (under "INFO") is a size step up
   from the rest (h3/30px vs h4/24px for "Info par grāmatām"/"IT
   atbalsta dienests"'s numbers) -- markup order is label,phone pairs,
   so this is just the phone right after the first label. */
.tna-footer__col > .tna-footer__label:first-child + p.tna-footer__phone {
	font-size: 1.875em;
}

.tna-footer__certs {
	max-width: 1200px;
	margin: 40px auto 0;
	padding: 24px 20px 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}

.tna-footer__certs img {
	/* No background/padding here -- unlike a generic badge asset, these
	   .jpg files already have their white margin baked in (downloaded
	   directly from tna.lv/assets/ISO/), so adding our own on top just
	   double-pads them. */
	height: 60px;
	width: auto;
}
