/**
 * Footer Styles
 *
 * @package IOTA_Diagnostic
 */

/* ============================================
   Footer Base Styles
   ============================================ */
.site-footer {
	position: relative;
	width: 100%;
	background-color: #003547;
	padding: 150px 0;
	overflow: hidden;
}

/* ============================================
   Footer Animation Initial States
   ============================================ */
.iota-footer-col-animate {
	opacity: 0;
	transform: translateY(40px);
}

.iota-footer-middle-animate {
	opacity: 0;
	transform: translateY(40px);
}

.iota-footer-bottom-animate {
	opacity: 0;
	transform: translateY(40px);
}

/* ============================================
   Footer Top Row (4 Columns)
   ============================================ */
.iota-footer-top-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	margin-bottom: 0;
}

.footer-column {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

/* Footer Column Titles */
.footer-column-title {
/* 	font-family: 'Mona Sans', sans-serif; */
	font-family: "Exo", sans-serif;
	font-weight: 500;
	font-size: 29px;
	line-height: 36px;
	letter-spacing: 0;
	color: #FFFFFF;
	margin: 0;
}

/* Footer Menus */
.footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer-menu li {
	margin: 0;
	padding: 0;
}

.footer-menu a {
/* 	font-family: 'Mona Sans', sans-serif; */
	font-family: "Exo", sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 30px;
	letter-spacing: 0;
	color: #6192A3;
	text-decoration: none;
	transition: color 0.3s ease;
	display: inline-block;
}

.footer-menu a:hover {
	color: #FFFFFF;
}

/* Footer Contact Info */
.footer-contact-info {
	display: flex;
	flex-direction: column;
	gap: 0px;
}

.footer-contact-info .footer-address {
    padding-bottom: 30px;
}


.footer-contact-info p {
/* 	font-family: 'Mona Sans', sans-serif; */
	font-family: "Exo", sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 30px;
	letter-spacing: 0;
	color: #6192A3;
	margin: 0;
}

.footer-contact-info a {
	color: #6192A3;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-contact-info a:hover {
	color: #FFFFFF;
}

/* Footer Newsletter */
.footer-newsletter {
	margin-top: 10px;
}

.footer-newsletter .wpcf7 {
	margin: 0;
}

.footer-newsletter .wpcf7-form {
	margin: 0;
}

.footer-newsletter .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

/* Newsletter Inline Design - Contact Form 7 */
.newsletter {
    max-width: 350px;
    margin: 0 auto;
	border: 1px solid #6192A3;
	position: relative;
}

.newsletter form {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px;
    gap: 0;
}

.newsletter p {
    margin: 0 !important;
    padding: 0 !important;
    flex: 1;
    display: flex;
    align-items: center;
}

.newsletter p:first-child {
    flex: 1;
}

.newsletter p:last-child {
    flex: 0 0 auto;
}

.newsletter label {
    width: 100%;
    margin: 0 !important;
}

.newsletter input[type="email"] {
    width: 100%;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 18px 25px !important;
    font-size: 14px;
    outline: none !important;
    box-shadow: none !important;
	height: 60px;
}

.newsletter input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter .submit-news {
    background: transparent !important;
    border: none !important;
    color: transparent !important;
    padding: 12px 18px !important;
    cursor: pointer;
    font-size: 0 !important;
    min-width: 60px; 
    width: 50px;
    height: 44px;
    transition: all 0.3s ease;
    box-shadow: none !important;
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg width="15" height="12" viewBox="0 0 15 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.75 5.75H13.1591M9.02273 0.75L13.75 5.75L9.02273 10.75" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 15px 12px !important;
	 position: absolute;
    top: 0;
    right: 0;
    height: 100%;
}

/* Arrow icon for submit button */
.newsletter .submit-news::before {
    content: '→';
    font-size: 20px;
    display: inline-block; 
}

.newsletter .wpcf7-spinner {
    display: none;
}

/* Remove Contact Form 7 default styles */
.newsletter .wpcf7-form-control-wrap {
    width: 100%;
}

.footer-newsletter input[type="email"] {
	width: 100%;
	padding: 12px 20px;
/* 	font-family: 'Mona Sans', sans-serif; */
	font-family: "Exo", sans-serif;
	font-size: 16px;
	line-height: 24px;
	color: #003547;
	background-color: #FFFFFF;
	border: 1px solid #6192A3;
	border-radius: 8px;
	transition: border-color 0.3s ease;
}

.footer-newsletter input[type="email"]:focus {
	outline: none;
	border-color: #FFFFFF;
}



/* ============================================
   Footer Middle Row (Logo & Bottom Menu)
   ============================================ */
.iota-footer-middle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
	margin-top: 100px;
}

.footer-logo {
	flex-shrink: 0;
}

.footer-logo a {
	display: inline-block;
	line-height: 0;
}

.footer-logo img,
.footer-logo-image {
	height: auto;
	max-height: 60px;
	width: auto;
	display: block;
}

/* Bottom Menu (Horizontal) */
.footer-bottom-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 61px;
	align-items: center;
}

.footer-bottom-menu li {
	margin: 0;
	padding: 0;
}

.footer-bottom-menu a {
/* 	font-family: 'Mona Sans', sans-serif; */
	font-family: "Exo", sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 30px;
	letter-spacing: 0;
	color: #6192A3;
	text-decoration: none;
	transition: color 0.3s ease;
	display: inline-block;
}

.footer-bottom-menu a:hover {
	color: #FFFFFF;
}

/* ============================================
   Footer Border
   ============================================ */
.iota-footer-border {
	width: 100%;
	height: 1px;
	background-color: #004C66;
	margin-top: 50px;
	border: none;
	border-top: 1px solid #004C66;
}

/* ============================================
   Footer Bottom Row (Social & Copyright)
   ============================================ */
.iota-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
	margin-top: 30px;
}

/* Social Media Icons */
.iota-footer-social {
	display: flex;
	align-items: center;
	gap: 20px;
}

.iota-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	text-decoration: none;
	transition: transform 0.3s ease;
}



.iota-social-icon svg {
	width: 23px;
	height: auto;
	max-height: 23px;
}

.iota-social-icon svg path {
	fill: #6192A3;
	transition: fill 0.3s ease;
}

.iota-social-icon:hover svg path {
	fill: #FFFFFF;
}

/* Copyright Text */
.footer-copyright {
/* 	font-family: 'Instrument Sans', sans-serif; */
	font-family: "Exo", sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 30px;
	letter-spacing: 0;
	color: #6192A3;
	margin: 0;
}

.footer-copyright a {
	color: #6192A3;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-copyright a:hover {
	color: #FFFFFF;
}

/* ============================================
   Footer Background Graphic
   ============================================ */
.iota-footer-graphic {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 500px;
	height: 500px;
	pointer-events: none;
	z-index: 0;
}

.iota-footer-graphic img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Ensure footer content is above graphic */
.site-footer .container {
	position: relative;
	z-index: 1;
}

/* ============================================
   Responsive Styles
   ============================================ */

/* Tablet (max-width: 1024px) */
@media screen and (max-width: 1024px) {
	.site-footer {
		padding: 100px 0 !important;
	}

	.iota-footer-top-row {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}

	.footer-column-title {
		font-size: 26px;
		line-height: 32px;
		margin-bottom: 0px;
	}

	.footer-menu a,
	.footer-contact-info p {
		font-size: 18px;
		line-height: 28px;
	}

	.iota-footer-middle-row {
		margin-top: 80px !important;	
		gap: 30px;
	}

	.footer-bottom-menu {
		gap: 20px;
	}

	.footer-bottom-menu a {
		font-size: 16px;
		line-height: 26px;
	}

	.iota-footer-border {
		margin-top: 40px !important;
	}

	.iota-footer-bottom {
		margin-top: 25px !important;
		gap: 30px;
	}

	.footer-copyright {
		font-size: 16px;
		line-height: 26px;
	}

	.iota-footer-graphic {
		width: 400px;
		height: 400px;
	}
}

/* Mobile (max-width: 768px) */
@media screen and (max-width: 768px) {
	.site-footer {
		padding: 80px 0 !important;
	}

	.iota-footer-top-row {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.footer-column {
		text-align: center;
	}

	.footer-column-title {
		font-size: 24px;
		line-height: 30px;
		margin-bottom: 0px;
	}

	.footer-menu {
		align-items: center;
		gap: 10px;
	}

	.footer-menu a,
	.footer-contact-info p {
		font-size: 16px;
		line-height: 26px;
	}

	.footer-contact-info {
		align-items: center;
		text-align: center;
	}

	.iota-footer-middle-row {
		margin-top: 60px !important;
		flex-direction: column;
		gap: 25px;
		text-align: center;
	}

	.footer-logo {
		margin: 0 auto;
	}

	.footer-bottom-menu {
		justify-content: center;
		gap: 15px;
	}

	.footer-bottom-menu a {
		font-size: 14px;
		line-height: 24px;
	}

	.iota-footer-border {
		margin-top: 30px !important;
	}

	.iota-footer-bottom {
		margin-top: 20px !important;
		flex-direction: column;
		gap: 20px;
		text-align: center;
	}

	.iota-footer-social {
		justify-content: center;
		gap: 16px;
	}

	.footer-copyright {
		font-size: 14px;
		line-height: 24px;
		text-align: center;
	}

	.iota-footer-graphic {
		width: 300px;
		height: 300px;
	}
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
	.footer-column {
		gap: 10px;
		text-align: left;
	}
	.footer-menu {
        align-items: flex-start;
        gap: 5px;
    }
	.site-footer {
		padding: 40px 0 !important;
	}

	.footer-contact-info {
		align-items: flex-start;
		text-align: left;
	}

	.footer-logo {
        margin: 0 auto 0 0;
    }


	.iota-footer-top-row {
		gap: 30px;
	}

	.footer-column-title {
		font-size: 22px;
		line-height: 28px;
		margin-bottom: 0px;
	}

	.footer-menu a,
	.footer-contact-info p {
		font-size: 15px;
		line-height: 24px;
	}
	.footer-contact-info p{ padding-bottom: 10px !important; }
	.iota-footer-middle-row {
		margin-top: 40px !important;
		gap: 20px;
	}

	.footer-logo img {
		max-height: 50px;
	}

	.footer-bottom-menu {
		flex-direction: column;
		gap: 5px;
		justify-content: center;
		width: 100%;
        text-align: left;
	}

	.footer-bottom-menu li {
		display: block;
		width: 100%;
	}

	.footer-bottom-menu a {
		font-size: 13px;
		line-height: 22px;
	}

	.iota-footer-border {
		margin-top: 25px !important;
	}

	.iota-footer-bottom {
		margin-top: 18px !important;
		gap: 10px;
		text-align: left;
        align-items: self-start;
	}

	.iota-footer-social {
		gap: 14px;
	}

	.iota-social-icon {
		width: 36px;
		height: 36px;
	}

	.iota-social-icon svg {
		width: 20px;
		max-height: 20px;
	}

	.footer-copyright {
		font-size: 13px;
		line-height: 22px;
	}

	.iota-footer-graphic {
		width: 250px;
		height: 250px;
	}
}

/* ============================================
   Page Speed Optimizations
   ============================================ */

/* Reduce repaints and reflows */
.footer-menu a,
.footer-contact-info a,
.footer-bottom-menu a,
.iota-social-icon {
	will-change: color, transform;
}

/* GPU acceleration for smooth animations */

/* Optimize font rendering */
.site-footer {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Reduce layout shifts */
.footer-logo img {
	display: block;
}

/* Optimize hover states */
@media (hover: none) {
	.footer-menu a:hover,
	.footer-contact-info a:hover,
	.footer-bottom-menu a:hover,
	.iota-social-icon:hover {
		color: inherit;
		transform: none;
	}

	.iota-social-icon:hover svg path {
		fill: inherit;
	}
}

