/* ==========================================================================
   Footer: rounded dark panel, glass contact rows, separate copyright bar
   ========================================================================== */
.ies-footer {
	position: relative;
	margin-top: 64px;
	color: rgba(255, 255, 255, .78);
	font-size: .9375rem;
	line-height: 1.7;
}

.ies-footer__main {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-radius: 40px 40px 0 0;
	background:
		radial-gradient(900px 400px at 100% 0%, rgba(248, 159, 0, .22), transparent 60%),
		radial-gradient(700px 400px at 0% 100%, rgba(248, 159, 0, .1), transparent 60%),
		linear-gradient(160deg, #0B2E63 0%, #061A3A 100%);
}
/* Optional photo (assets/images/footer-bg.jpg|webp) under a dark overlay */
.ies-footer__main::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(6, 26, 58, .92), rgba(6, 26, 58, .85)),
		var(--ies-footer-bg, none) center / cover no-repeat;
}

.ies-footer__grid {
	display: grid;
	grid-template-columns: 1.7fr .8fr 1.2fr 1.2fr;
	gap: 48px 56px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 72px 24px 64px;
}

/* Headings */
.ies-footer__heading {
	position: relative;
	margin: 0 0 24px;
	padding-bottom: 14px;
	font-family: var(--ies-font-heading);
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -.01em;
	color: #fff;
}
.ies-footer__heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 36px;
	height: 3px;
	border-radius: 3px;
	background: var(--ies-primary);
}

/* Lists */
.ies-footer ul { list-style: none; margin: 0; padding: 0; }
.ies-footer a { color: inherit; text-decoration: none; }

/* Col 1 */
.ies-footer__logo .custom-logo-link { display: inline-block; line-height: 0; }
.ies-footer__logo .custom-logo { width: auto; max-height: 64px; }
.ies-footer__title {
	font-family: var(--ies-font-heading);
	font-size: 1.8rem;
	font-weight: 800;
	color: var(--ies-primary);
}
.ies-footer__about { margin: 22px 0 18px; max-width: 46ch; }
.ies-footer__address {
	display: grid;
	gap: 2px;
	font-style: normal;
	font-size: .875rem;
	color: rgba(255, 255, 255, .62);
}
.ies-footer__address b { font-weight: 600; color: rgba(255, 255, 255, .85); }

.ies-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px !important;
}
.ies-footer__social a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	font-size: 1rem;
	color: #fff;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 50%;
	transition: transform .3s cubic-bezier(.22, 1, .36, 1), background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ies-footer__social a:hover,
.ies-footer__social a:focus-visible {
	color: var(--ies-dark);
	background: var(--ies-primary);
	border-color: var(--ies-primary);
	transform: translateY(-4px);
}

/* Col 2: quick links */
.ies-footer__links li + li { margin-top: 4px; }
.ies-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 0;
	padding: 5px 0;
	transition: color .2s ease, gap .3s cubic-bezier(.22, 1, .36, 1);
}
.ies-footer__links a::before {
	content: "";
	width: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--ies-primary);
	transition: width .3s cubic-bezier(.22, 1, .36, 1), margin .3s cubic-bezier(.22, 1, .36, 1);
}
.ies-footer__links a:hover,
.ies-footer__links a:focus-visible,
.ies-footer__links .current-menu-item > a { color: var(--ies-primary); }
.ies-footer__links a:hover::before,
.ies-footer__links a:focus-visible::before { width: 14px; margin-right: 8px; }

/* Col 3: "View all" link */
.ies-footer__links .ies-footer__more { margin-top: 10px; }
.ies-footer__links .ies-footer__more a {
	gap: 8px;
	font-weight: 700;
	color: var(--ies-primary);
}
.ies-footer__links .ies-footer__more a::before { display: none; }
.ies-footer__links .ies-footer__more i { font-size: .8rem; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.ies-footer__links .ies-footer__more a:hover i { transform: translateX(4px); }

/* Col 4: contact */
.ies-footer__contact { display: grid; gap: 12px; }
.ies-footer__contact li > a,
.ies-footer__contact-static {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 16px;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: transform .3s cubic-bezier(.22, 1, .36, 1), background-color .2s ease, border-color .2s ease;
}
.ies-footer__contact li > a:hover,
.ies-footer__contact li > a:focus-visible {
	transform: translateY(-3px);
	background: rgba(248, 159, 0, .12);
	border-color: rgba(248, 159, 0, .5);
}
.ies-footer__contact i {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	font-size: .95rem;
	color: var(--ies-dark);
	background: var(--ies-primary);
	border-radius: 12px;
}
.ies-footer__contact span { min-width: 0; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.ies-footer__contact small {
	display: block;
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .55);
}

/* Copyright bar (separate strip) */
.ies-footer__bottom {
	background: #041229;
	border-top: 1px solid rgba(255, 255, 255, .06);
	font-size: .875rem;
	color: rgba(255, 255, 255, .6);
}
.ies-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 24px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 18px 24px;
}
.ies-footer__bottom p { margin: 0; }
.ies-footer__bottom-end {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 28px;
}
.ies-footer__credit strong { font-weight: 700; color: #fff; }
/* Back to top: fixed at the browser's bottom-right corner */
.ies-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 998;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	font-size: 1.05rem;
	color: var(--ies-dark);
	background: var(--ies-primary);
	border-radius: 50%;
	box-shadow: 0 10px 24px -6px rgba(6, 26, 58, .45);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: opacity .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1), visibility .3s, background-color .2s ease;
}
.ies-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.ies-to-top:hover,
.ies-to-top:focus-visible {
	color: var(--ies-dark);
	background: var(--ies-primary-light);
	transform: translateY(-4px);
}
.ies-to-top i { line-height: 1; }

/* ==========================================================================
   Fixed call / WhatsApp buttons: bottom-left, every page
   ========================================================================== */
.ies-fab {
	position: fixed;
	left: 20px;
	bottom: 24px;
	z-index: 998;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ies-fab__btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	color: #fff;
	border-radius: 50%;
	box-shadow: 0 10px 24px -6px rgba(6, 26, 58, .45);
	transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}
.ies-fab__btn:hover,
.ies-fab__btn:focus-visible {
	color: #fff;
	transform: translateY(-4px) scale(1.06);
}
.ies-fab__btn i { font-size: 1.4rem; }

.ies-fab__btn--whatsapp { background: #25D366; }
.ies-fab__btn--whatsapp::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #25D366;
	opacity: .55;
	animation: ies-fab-pulse 2.4s ease-out infinite;
	z-index: -1;
}
.ies-fab__btn--call { background: var(--ies-navy); }

/* Tooltip label, shown on hover/focus (desktop) */
.ies-fab__tip {
	position: absolute;
	left: calc(100% + 12px);
	top: 50%;
	transform: translateY(-50%) translateX(-6px);
	padding: 7px 14px;
	font-family: var(--ies-font-heading);
	font-size: .8125rem;
	font-weight: 700;
	white-space: nowrap;
	color: var(--ies-navy);
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 8px 20px -8px rgba(6, 26, 58, .35);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.ies-fab__btn:hover .ies-fab__tip,
.ies-fab__btn:focus-visible .ies-fab__tip {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}

@keyframes ies-fab-pulse {
	0%   { transform: scale(1);   opacity: .55; }
	70%  { transform: scale(1.7); opacity: 0; }
	100% { transform: scale(1.7); opacity: 0; }
}


/* Premium Floating Enquiry Button */

.ies-enquiry-tab {
    position: fixed;
    right: 22px;
    bottom: 75px;
    top: auto;
    z-index: 998;

    position: fixed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    padding: 15px 23px;
    writing-mode: horizontal-tb;
    text-orientation: initial;

    color: #061A3A;
    background: #F89F00;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50px;

    font-family: var(--ies-font-heading);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .3px;

    box-shadow: 0 6px 20px rgba(248,159,0,.25);
    overflow: hidden;
    cursor: pointer;

    animation: enquiryFloat 3s ease-in-out infinite;
    transition: background .3s ease, color .3s ease,
               box-shadow .3s ease;
}

.ies-enquiry-tab::before {
    content: "";
    position: absolute;
    top: 0;
    left: -110%;
    width: 65%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent,
        rgba(255,255,255,.55),
        transparent
    );
    transform: skewX(-20deg);
    animation: enquiryShine 4s ease-in-out infinite;
    pointer-events: none;
}

.ies-enquiry-tab i {
    font-size: 16px;
    transition: transform .3s ease;
}

.ies-enquiry-tab:hover,
.ies-enquiry-tab:focus-visible {
    color: #fff;
    background: #0B2E63;
    box-shadow: 0 9px 26px rgba(6,26,58,.3);
}

.ies-enquiry-tab:hover i {
    transform: translateX(4px);
}

@keyframes enquiryFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes enquiryShine {
    0%, 55% { left: -110%; }
    80%, 100% { left: 150%; }
}

@media(max-width:640px) {
    .ies-enquiry-tab {
        right: 14px;
        bottom: 125px;
        padding: 13px 18px;
        font-size: 12px;
    }
}

@media(prefers-reduced-motion: reduce) {
    .ies-enquiry-tab,
    .ies-enquiry-tab::before {
        animation: none;
    }
}

/* ==========================================================================
   Enquiry popup
   ========================================================================== */
.ies-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.ies-modal[hidden] { display: none; }
.ies-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 26, 58, .55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity .3s ease;
}
.ies-modal.is-open .ies-modal__backdrop { opacity: 1; }

.ies-modal__panel {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 40px 34px 34px;
	background: #fff;
	border-radius: 28px;
	box-shadow: 0 40px 80px -20px rgba(6, 26, 58, .5);
	opacity: 0;
	transform: translateY(24px) scale(.97);
	transition: opacity .3s cubic-bezier(.22, 1, .36, 1), transform .3s cubic-bezier(.22, 1, .36, 1);
}
.ies-modal.is-open .ies-modal__panel { opacity: 1; transform: none; }

.ies-modal__close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	color: var(--ies-navy);
	background: var(--ies-bg-alt);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.ies-modal__close:hover,
.ies-modal__close:focus-visible {
	color: #fff;
	background: var(--ies-primary);
	transform: rotate(90deg);
}

.ies-modal__title {
	margin: 0 0 8px;
	padding-right: 30px;
	font-family: var(--ies-font-heading);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--ies-navy);
}
.ies-modal__intro {
	margin: 0 0 24px;
	font-size: .9375rem;
	line-height: 1.6;
	color: var(--ies-muted);
}

.ies-enquiry-form { display: grid; gap: 16px; }
.ies-field { display: grid; gap: 6px; font-size: .875rem; }
.ies-field > span { font-weight: 700; color: var(--ies-navy); }
.ies-field em { color: var(--ies-primary-dark); font-style: normal; }
.ies-field input,
.ies-field textarea { width: 100%; padding: 11px 14px; }
.ies-field textarea { resize: vertical; }
.ies-field--hp {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ies-enquiry-form__submit {
	justify-content: center;
	width: 100%;
	margin-top: 4px;
}
.ies-enquiry-form__submit:disabled {
	cursor: default;
	opacity: .7;
	transform: none;
	box-shadow: none;
}
.ies-enquiry-form.is-sending .ies-enquiry-form__submit i { animation: ies-spin .8s linear infinite; }
@keyframes ies-spin { to { transform: rotate(360deg); } }

.ies-enquiry-form__status {
	margin: 0;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.5;
	min-height: 1.5em;
}
.ies-enquiry-form__status.is-success { color: #1B9A67; }
.ies-enquiry-form__status.is-error { color: #D63F66; }

/* Responsive */
@media (max-width: 1100px) {
	.ies-footer__grid { grid-template-columns: 1fr 1fr; gap: 48px 40px; padding-top: 56px; }
	.ies-footer__col--about { grid-column: 1 / -1; }
	.ies-footer__about { max-width: 70ch; }
}
@media (max-width: 640px) {
	.ies-footer { margin-top: 40px; }
	.ies-footer__main { border-radius: 28px 28px 0 0; }
	.ies-footer__grid { grid-template-columns: 1fr; gap: 40px; padding: 48px 20px 40px; }
	.ies-footer__bottom-inner { justify-content: center; text-align: center; padding-inline: 20px; }
	.ies-footer__bottom-end { justify-content: center; }
	.ies-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }

	.ies-fab { left: 14px; bottom: 16px; gap: 10px; }
	.ies-fab__btn { width: 48px; height: 48px; }
	.ies-fab__btn i { font-size: 1.25rem; }
	.ies-fab__tip { display: none; }

	.ies-enquiry-tab { padding: 14px 9px; font-size: .8125rem; gap: 7px; }
	.ies-enquiry-tab i { font-size: .95rem; }

	.ies-modal__panel { padding: 32px 22px 26px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.ies-footer *,
	.ies-to-top,
	.ies-fab__btn,
	.ies-enquiry-tab,
	.ies-modal__backdrop,
	.ies-modal__panel,
	.ies-modal__close { transition: none !important; }
	.ies-fab__btn--whatsapp::before { animation: none; opacity: 0; }
	.ies-enquiry-form.is-sending .ies-enquiry-form__submit i { animation: none; }
}
