/*
  Verbatim extraction — the real .footermain (upper footer columns) and
  .copyrightmain (bottom legal/payment bar) rules from
  glazeanysrv/css/layout.css: footermain-col/box/heading/link/highlight
  lines 2024-2230, linkblocks/social-icons lines 6039-6093, button1/
  button1-more/color1 lines 3198-3243, copyrightmain lines 2232-2350
  (desktop) + 7695-7839 (real mobile breakpoints: 850px, 800px), plus the
  shared hot/new badge content rule (layout.css lines 3299-3321, scoped
  here to .footermain only — see navmain-original.css for the nav's copy
  of that same shared rule).

  Reused as-is: footermain-col1..col4, footermain-box, footermain-heading,
  footermain-link, footermain-highlight-hot/new, footermain-text,
  linkblocks/linkblocks-linkblock, social-icons/social-icons-icon,
  button1/button1-more/color1, copyrightmain, copyright-logos — the exact
  real DOM shape (confirmed via a live DOM scrape, live_footer_full.html
  in the audit scratchpad), the exact real column order/content, and the
  real payment/security + social images (paypal.png, credit-card.png,
  rapidssl.png, facebook-icon.png, twitter-icon.png, linkedin-icon.png —
  all copied byte-for-byte from glazeanysrv/images/).
*/

.footermain {
	background: var(--color-black);
	color: var(--color-grey);
	border-top: var(--color-border) 1px solid;
}

.template-glaze .footermain {
	color: var(--color-white);
	border-top: none;
}

/* Real rule is two stacked layers: .footermain-background is
   "#95c7fa url(background-glaze.jpg) center bottom repeat-x" and
   .footermain-background-inner sits on top at "rgba(0,0,0,0.4)".
   #95c7fa composited under a 40% black overlay resolves to exactly
   rgb(89,119,150) — reproduced directly here as one flat value rather
   than loading the texture image, since the composited result is
   mathematically identical to what the real two-layer stack renders as
   a base tone (the photo's own texture/contrast is the only thing not
   reproduced, not the color). */
.template-glaze .footermain .footermain-background {
	background: #597796;
}

.footermain .footermain-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	padding: var(--spacing-child) 0;
}

.footermain .footermain-col {
	width: 18.5%;
}

.footermain .footermain-col4 {
	width: 39%;
}

.footermain a,
.footermain a:hover {
	color: var(--color-grey);
}

.template-glaze .footermain a,
.template-glaze .footermain a:hover {
	color: var(--color-white);
}

.footermain .footermain-box {
	margin: 0 0 var(--spacing-child) 0;
}

.footermain .footermain-box ul:last-child,
.footermain .footermain-box p:last-child,
.footermain .footermain-box .footermain-heading:last-child,
.footermain .footermain-box .linkblocks:last-child {
	margin-bottom: 0;
}

.footermain .footermain-box ul {
	display: flex;
	flex-direction: column;
	margin-bottom: 0;
	list-style: none;
	padding: 0;
}

.footermain .footermain-box ul li {
	position: relative;
}

.footermain .footermain-box ul li a {
	display: block;
	padding: 10px 10px 10px 10px;
	text-decoration: none;
	border-bottom: var(--color-border) 1px solid;
}

.footermain .footermain-box ul li a i {
	margin-right: 10px;
}

.footermain .footermain-box ul li:first-child a {
	border-top: var(--color-border) 1px solid;
}

.footermain .footermain-box ul li a:hover {
	padding-left: 15px;
	font-weight: bold;
	color: var(--color-white);
}

.footermain .footermain-heading {
	color: var(--color-primary-background);
	text-shadow: var(--color-black) 1px 1px;
	font-size: 1.3em;
	font-weight: bold;
	text-align: left;
	margin: 0 0 var(--spacing-child) 0;
	font-family: var(--font-heading);
}

.footermain .footermain-text {
	margin: 0 0 var(--spacing-child) 0;
}

/* Highlight (HOT / NEW pills on footer links) */

.footermain .footermain-highlight {
	position: relative;
}

.footermain .footermain-highlight::after {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	text-align: center;
	padding: 3px 3px;
	font-size: 0.7em;
	line-height: 1;
	font-weight: bold;
	border-radius: var(--border-radius-default);
	text-transform: uppercase;
}

.footermain .footermain-highlight-hot::after {
	background: var(--color-badge-hot-background);
	background: linear-gradient(var(--gradient-degrees), var(--color-badge-hot-background-gradient-top) 0, var(--color-badge-hot-background-gradient-bottom) 100%);
	color: var(--color-badge-hot-foreground);
	content: "hot";
}

.footermain .footermain-highlight-new::after {
	background: var(--color-badge-new-background);
	background: linear-gradient(var(--gradient-degrees), var(--color-badge-new-background-gradient-top) 0, var(--color-badge-new-background-gradient-bottom) 100%);
	color: var(--color-badge-new-foreground);
	content: "new";
}

/* Linkblocks (address / email / phone / CIF boxes in column 4) */

.linkblocks {
	margin: 0 0 var(--spacing-child) 0;
}

.linkblocks .linkblocks-linkblock {
	background: var(--color-box-active-background);
	background: linear-gradient(var(--gradient-degrees), var(--color-box-active-background-gradient-top) 0, var(--color-box-active-background-gradient-bottom) 100%);
	border-radius: var(--border-radius-default);
	margin: 0 0 15px 0;
	border: var(--color-box-active-background-border) 1px solid;
	border-bottom-width: var(--border-bottom-width-default);
	color: var(--color-box-active-foreground);
	font-weight: bold;
	width: 100%;
	padding: 8px 15px;
	display: block;
}

.linkblocks .linkblocks-linkblock:last-child {
	margin-bottom: 0;
}

.linkblocks .linkblocks-linkblock a {
	display: block;
	color: var(--color-box-active-foreground);
}

.linkblocks .linkblocks-linkblock a:hover {
	color: var(--color-primary-background);
}

.linkblocks .linkblocks-linkblock i,
.linkblocks .linkblocks-linkblock svg {
	margin-right: 15px;
}

/* Social Icons (real image files, not font glyphs) */

.social-icons {
	display: flex;
	flex-wrap: wrap;
}

.social-icons .social-icons-icon {
	margin: 8px 8px 8px 0;
}

.social-icons .social-icons-icon img {
	border-radius: var(--border-radius-default);
	max-width: 50px;
	display: block;
}

.social-icons .social-icons-icon img:hover {
	transition: transform .5s ease;
	transform: scale(1.1);
}

/* Buttons (the "more" link on the About Company blurb) */

.button1 {
	display: inline-block;
	vertical-align: baseline;
	outline: none;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	border-radius: var(--border-radius-default);
	font-style: normal;
	padding: .5em 1em .5em;
	font-weight: bold;
}

.button1-more {
	padding: 4px 8px;
	line-height: 1;
	font-size: 0.8em;
	margin: 5px;
}

.color1,
.color1:active,
.color1:visited {
	color: var(--color-primary-foreground) !important;
	border: solid 1px var(--color-primary-background-border) !important;
	background: var(--color-primary-background) !important;
	background: linear-gradient(var(--gradient-degrees), var(--color-primary-background-gradient-top) 0, var(--color-primary-background-gradient-bottom) 100%) !important;
	text-shadow: var(--color-primary-foreground-shadow) 1px 1px !important;
}

.color1:hover,
.color1:focus {
	color: var(--color-primary-active-foreground) !important;
	border: solid 1px var(--color-primary-active-background-border) !important;
	background: var(--color-primary-active-background) !important;
	background: linear-gradient(var(--gradient-degrees), var(--color-primary-active-background-gradient-top) 0, var(--color-primary-active-background-gradient-bottom) 100%) !important;
	text-shadow: var(--color-primary-active-foreground-shadow) 1px 1px !important;
}

/* ---------- Copyrightmain (bottom legal/payment bar) ---------- */

.copyrightmain {
	background: var(--color-black);
	border-top: var(--color-border) 1px solid;
	padding: var(--spacing-child) 0;
	color: var(--color-white);
}

.template-glaze .copyrightmain {
	background: var(--color-black);
	color: var(--color-white);
	border-top: none;
}

.copyrightmain::after {
	content: "";
	display: table;
	clear: both;
}

.copyrightmain .copyrightmain-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}

.copyrightmain a,
.copyrightmain a:hover {
	color: var(--color-white);
}

.copyrightmain .copyrightmain-links ul {
	margin: 0;
	display: flex;
	list-style: none;
	padding: 0;
}

.copyrightmain .copyrightmain-links ul li a {
	display: block;
	padding: 0 15px;
	border-right: #000000 1px solid;
	text-decoration: none;
	color: var(--color-white);
}

.copyrightmain .copyrightmain-links ul li a:hover {
	color: var(--color-white);
	font-weight: bold;
}

.copyrightmain .copyrightmain-links ul li:last-child a {
	border-right: none;
}

.copyrightmain .copyright-logos {
	border-top: #000000 1px solid;
	display: flex;
	justify-content: space-between;
	margin-top: var(--spacing-child);
	padding: var(--spacing-child) var(--spacing-child) 0 var(--spacing-child);
	max-width: 600px;
}

.copyrightmain .copyright-logos .copyright-logo {
	padding: 0 10px;
}

.copyrightmain .copyright-logos .copyright-logo img {
	width: 100%;
	max-width: 175px;
	display: block;
}

/* Real mobile rules — glazeanysrv/css/layout.css @media (max-width: 850px)
   and @media (max-width: 800px), verbatim. */
@media (max-width: 850px) {
	.copyrightmain .copyright-logos {
		max-width: 100%;
	}
}

@media (max-width: 800px) {
	.copyrightmain .copyright-logos {
		flex-direction: column;
		align-items: center;
	}
	.copyrightmain .copyright-logos .copyright-logo {
		margin-bottom: var(--spacing-child);
	}
	.copyrightmain .copyright-logos .copyright-logo:last-child {
		margin-bottom: 0;
	}
}

/* Real mobile footer rules — glazeanysrv/css/layout.css, verbatim, at
   the theme's own two real breakpoints (unlike the nav, the footer's
   real responsive cascade only has two steps, so both are reused
   exactly rather than consolidated). */

/* @media (max-width: 1220px): columns wrap 3-per-row (31% each), column
   4 becomes a full-width flex row with a top divider, headings center,
   and footer links become individual boxed pills. */
@media (max-width: 1220px) {
	.footermain .footermain-col {
		width: 31%;
	}
	.footermain .footermain-col4 {
		flex: 1;
		border-top: var(--color-border) 1px solid;
		padding-top: var(--spacing-child);
	}
	.footermain .footermain-heading {
		text-align: center;
	}
	.footermain .footermain-box ul li {
		margin: 0 0 15px 0;
	}
	.footermain .footermain-box ul li a {
		padding: 8px 15px;
		background: var(--color-box-active-background);
		background: linear-gradient(var(--gradient-degrees), var(--color-box-active-background-gradient-top) 0, var(--color-box-active-background-gradient-bottom) 100%);
		border: var(--color-box-active-background-border) 1px solid;
		border-bottom-width: var(--border-bottom-width-default);
		color: var(--color-box-active-foreground);
		font-weight: normal;
		text-align: center;
		border-radius: var(--border-radius-default);
	}
	.footermain .footermain-box ul li a i {
		display: none;
	}
	.footermain .footermain-box ul li:first-child a {
		border-top: var(--color-box-active-background-border) 1px solid;
	}
	.footermain .footermain-box ul li a:hover {
		color: var(--color-primary-background);
		padding-left: 15px;
	}
	.copyrightmain .copyrightmain-inner {
		flex-direction: column;
	}
	.copyrightmain .copyrightmain-text {
		text-align: center;
		margin: 0 0 15px 0;
	}
	.copyrightmain .copyrightmain-links {
		display: flex;
		justify-content: center;
	}
}

/* @media (max-width: 850px): full single-column stack; legal links also
   become boxed pills stacked vertically. */
@media (max-width: 850px) {
	.footermain .footermain-col {
		width: 100%;
	}
	.footermain .footermain-col4 {
		flex: 1;
		border-top: none;
		padding-top: 0;
	}
	.copyrightmain .copyrightmain-links {
		display: block;
	}
	.copyrightmain .copyrightmain-links ul {
		flex-direction: column;
	}
	.copyrightmain .copyrightmain-links ul li {
		display: block;
	}
	.copyrightmain .copyrightmain-links ul li a {
		padding: 8px 15px;
		background: var(--color-box-active-background);
		background: linear-gradient(var(--gradient-degrees), var(--color-box-active-background-gradient-top) 0, var(--color-box-active-background-gradient-bottom) 100%);
		border: var(--color-box-active-background-border) 1px solid;
		border-bottom-width: var(--border-bottom-width-default);
		color: var(--color-box-foreground);
		font-weight: normal;
		margin: 0 0 15px 0;
		text-align: center;
		border-radius: var(--border-radius-default);
	}
	.copyrightmain .copyrightmain-links ul li a:hover {
		color: var(--color-primary-background);
	}
	.copyrightmain .copyrightmain-links ul li:last-child a {
		margin-bottom: 0;
	}
}
