/* =====================================================================
   3 Grands Ice Cream - footer refresh (all pages). Linked from footer.php.
   Keeps the agency's wavy footer shape and cone pictures, but fills the wave with a
   deep berry-night gradient + candy sprinkles, edges it with the orange brand swirl,
   and turns the four columns into friendly, tappable pieces.
   ===================================================================== */

footer.footer.tg-foot {
	--f-text: #efe6ff;
	--f-soft: rgba(239, 230, 255, .78);
	--f-pink: #fd3464;
	--f-yellow: #ffc22e;
	--f-display: "Fredoka", "Poppins", system-ui, sans-serif;
	background-image: none !important;
	color: var(--f-text);
	isolation: isolate;
}

/* the wave: the theme's footer picture is used as a stencil, filled with our own colours */
.tg-foot__bgwrap { position: absolute; inset: 0; z-index: -1; pointer-events: none; filter: drop-shadow(0 -7px 0 #f68f18); }
.tg-foot__bg {
	position: absolute; inset: 0;
	background:
		radial-gradient(circle at 14px 20px, rgba(253, 52, 100, .7) 0 2.6px, transparent 3.2px),
		radial-gradient(circle at 74px 44px, rgba(255, 194, 46, .7) 0 2.6px, transparent 3.2px),
		radial-gradient(circle at 118px 96px, rgba(31, 192, 214, .7) 0 2.6px, transparent 3.2px),
		radial-gradient(circle at 42px 118px, rgba(139, 92, 246, .75) 0 2.6px, transparent 3.2px),
		radial-gradient(circle at 98px 14px, rgba(59, 178, 115, .7) 0 2.2px, transparent 2.8px),
		radial-gradient(70% 50% at 50% 30%, rgba(253, 52, 100, .22), transparent 70%),
		linear-gradient(180deg, #43206b 0%, #2d1650 45%, #1c0d36 100%);
	background-size: 140px 140px, 140px 140px, 140px 140px, 140px 140px, 140px 140px, 100% 100%, 100% 100%;
	-webkit-mask: url(/wp-content/uploads/2026/10/footer-bg.png) 0 0 / cover no-repeat;
	mask: url(/wp-content/uploads/2026/10/footer-bg.png) 0 0 / cover no-repeat;
}
@media (max-width: 999px) {
	.tg-foot__bg { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
}
@media (max-width: 500px) {
	.tg-foot__bg { -webkit-mask-size: cover; mask-size: cover; }
}
footer.footer.tg-foot::before, footer.footer.tg-foot::after { z-index: 1; }
footer.footer.tg-foot > .container { position: relative; z-index: 2; }

/* headings with a little yellow squiggle */
footer.footer.tg-foot h4 {
	font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: .01em; text-transform: none;
	color: #fff; margin: 0 0 26px; padding-bottom: 14px; position: relative;
}
footer.footer.tg-foot h4::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 8px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 8'%3E%3Cpath d='M2 5 Q9 1 16 5 T30 5 T44 5 T58 5' fill='none' stroke='%23ffc22e' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}
footer.footer.tg-foot p { color: var(--f-soft); font-size: 15px; line-height: 1.75; font-weight: 400; }

/* about column: logo badge + Facebook */
.tg-foot__logo {
	display: inline-block; width: 104px; height: 104px; border-radius: 50%; background: #fff; margin-bottom: 22px;
	box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--f-pink), 0 14px 30px rgba(0, 0, 0, .35);
	transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
}
.tg-foot__logo img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.tg-foot__logo:hover { transform: rotate(-10deg) scale(1.07); }
.tg-foot__social {
	display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 9px 16px 9px 9px; border-radius: 999px;
	color: #fff !important; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 15px;
	background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18);
	transition: background-color .2s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.tg-foot__social i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #1877f2; color: #fff; font-size: 15px; }
.tg-foot__social:hover { background: #1877f2; transform: translateY(-3px); }
.tg-foot__social:hover i { background: #fff; color: #1877f2; }

/* opening hours: a soft card */
footer.footer.tg-foot .tg-foot__widgets {
	list-style: none; margin: 0; padding: 16px 18px; border-radius: 20px;
	background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14);
}
.tg-foot__widgets li { list-style: none; margin: 0 !important; padding: 8px 0; display: block !important; }
.tg-foot__widgets li + li { border-top: 1px dashed rgba(255, 255, 255, .16); }
.tg-foot__widgets p { margin: 0 !important; color: var(--f-text) !important; font-family: var(--f-display); font-weight: 500; font-size: 16px !important; line-height: 1.4 !important; }

/* quick links: slide + arrow */
footer.footer.tg-foot .tg-foot__links .menu-header ul li { margin: 0; }
footer.footer.tg-foot .tg-foot__links .menu-header ul li a {
	display: inline-flex; align-items: center; gap: 10px; padding: 7px 0; line-height: 1.2;
	font-family: var(--f-display); font-weight: 500; font-size: 17px; color: var(--f-text);
	transition: color .2s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
footer.footer.tg-foot .tg-foot__links .menu-header ul li a::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--f-pink); box-shadow: 0 0 0 3px rgba(253, 52, 100, .25);
	transition: transform .3s cubic-bezier(.3, 1.8, .5, 1), background-color .2s;
}
footer.footer.tg-foot .tg-foot__links .menu-header ul li:hover a { color: var(--f-yellow); transform: translateX(6px); }
footer.footer.tg-foot .tg-foot__links .menu-header ul li:hover a::before { background: var(--f-yellow); transform: scale(1.4); }
footer.footer.tg-foot .tg-foot__links .menu-header ul li.current-menu-item a { color: var(--f-yellow); }

/* get in touch: coloured icon circles + book button */
footer.footer.tg-foot .tg-foot__contact ul li { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
footer.footer.tg-foot .tg-foot__contact ul li i {
	flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 15px;
	background: var(--f-pink); box-shadow: 0 4px 0 rgba(0, 0, 0, .25); transition: transform .35s cubic-bezier(.3, 1.8, .5, 1);
}
footer.footer.tg-foot .tg-foot__contact ul li:nth-child(2) i { background: #0073d1; }
footer.footer.tg-foot .tg-foot__contact ul li:nth-child(3) i { background: #0f98ad; }
footer.footer.tg-foot .tg-foot__contact ul li:hover i { transform: rotate(-12deg) scale(1.12); }
footer.footer.tg-foot .tg-foot__contact ul li h6,
footer.footer.tg-foot .tg-foot__contact ul li a { color: var(--f-text); font-size: 15px; font-weight: 400; line-height: 1.45; margin: 0; word-break: break-word; }
footer.footer.tg-foot .tg-foot__contact ul li a:hover { color: var(--f-yellow); }
.tg-foot__book {
	display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; padding: 14px 26px 13px; border-radius: 999px;
	font-family: var(--f-display); font-weight: 600; font-size: 17px; color: #fff !important; text-decoration: none; background: var(--f-pink);
	box-shadow: 0 5px 0 #c8174a, 0 12px 24px rgba(253, 52, 100, .35);
	transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s ease;
}
.tg-foot__book:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 0 #c8174a, 0 18px 30px rgba(253, 52, 100, .45); }

/* bottom bar + back-to-top */
section.cop.tg-cop { background: #140a28; border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; }
.tg-cop .copy { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; }
.tg-cop p { margin: 0; color: rgba(239, 230, 255, .72); font-size: 14px; text-align: center; padding: 0 56px; }
.tg-totop {
	position: absolute; right: 12px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; color: #fff; background: var(--f-pink, #fd3464); box-shadow: 0 4px 0 #c8174a;
	transition: transform .35s cubic-bezier(.3, 1.8, .5, 1);
}
.tg-totop svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.tg-totop:hover { transform: translateY(-4px); color: #fff; }
.tg-cop { --f-pink: #fd3464; }

/* tablets + phones: centred columns */
@media (max-width: 991px) {
	.tg-foot__grid > div { text-align: center; margin-bottom: 34px; }
	footer.footer.tg-foot h4::after { left: 50%; translate: -50% 0; }
	footer.footer.tg-foot .tg-foot__widgets { max-width: 340px; margin: 0 auto; }
	footer.footer.tg-foot .tg-foot__links .menu-header ul { align-items: center; }
	footer.footer.tg-foot .tg-foot__contact ul { display: inline-block; text-align: left; }
	footer.footer.tg-foot .tg-foot__contact ul li { justify-content: flex-start; }
}
@media (max-width: 500px) {
	.tg-cop p { padding: 0 52px 0 8px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
	.tg-foot *, .tg-cop * { transition: none !important; }
}

/* the theme hides every ".menu-header ul" on phones (for its old collapsible menu) - keep the footer links visible */
footer.footer.tg-foot .tg-foot__links .menu-header ul { display: flex !important; flex-direction: column; width: auto; }
footer.footer.tg-foot .tg-foot__links .menu-header #menu-button { display: none !important; }
footer.footer.tg-foot .tg-foot__links .menu-header ul li { width: auto; border-top: 0; }
@media (max-width: 500px) { .tg-foot__logo { margin-top: 18px; } }

/* designer credit in the bottom bar */
.tg-cop__credit a { color: #ffc22e !important; font-weight: 600; text-decoration: none; border-bottom: 1px dashed rgba(255, 194, 46, .6); transition: color .2s ease, border-color .2s ease; }
.tg-cop__credit a:hover { color: #fff !important; border-bottom-color: #fff; }
@media (max-width: 500px) { .tg-cop__sep { display: none; } .tg-cop__credit { display: block; margin-top: 4px; } }
