/* Ocean Horizon Footer – isolated
   Uses existing brand colors. No heavy !important.
   Slow wave drift respects prefers-reduced-motion.
*/

.ngs-footer {
	--ngs-footer-aqua: #26C6DA;
	--ngs-footer-deep: #0B3C5D;
	--ngs-footer-orange: #F97316;
	--ngs-footer-white: #FFFFFF;
	--ngs-footer-text: rgba(255, 255, 255, 0.82);
	position: relative;
	isolation: isolate;
	margin: 0;
	padding: 0;
	font-family: inherit;
	color: var(--ngs-footer-white);
	background: var(--ngs-footer-deep);
}

/* ---------- CTA AREA ---------- */
.ngs-footer-cta {
	position: relative;
	background: var(--ngs-footer-aqua);
	color: var(--ngs-footer-deep);
	padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2rem) 0;
	overflow: hidden;
}

.ngs-footer-cta__inner {
	width: min(100%, 75rem);
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
	position: relative;
	z-index: 2;
}

.ngs-footer-cta__heading {
	margin: 0 0 1rem;
	font-size: clamp(1.65rem, 3.2vw, 2.35rem);
	font-weight: 800;
	line-height: 1.2;
	color: var(--ngs-footer-deep);
}

.ngs-footer-cta__text {
	margin: 0 0 1.75rem;
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	line-height: 1.6;
	color: rgba(11, 60, 93, 0.88);
	max-width: 36rem;
}

.ngs-footer-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.75rem;
	border-radius: 999px;
	background: var(--ngs-footer-orange);
	color: var(--ngs-footer-white);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	transition: background 0.25s ease, transform 0.2s ease;
}

.ngs-footer-cta__button:hover,
.ngs-footer-cta__button:focus-visible {
	background: var(--ngs-footer-deep);
	color: var(--ngs-footer-white);
	transform: translateY(-2px);
}

.ngs-footer-cta__visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.ngs-footer-illustration {
	width: min(100%, 580px);
	height: auto;
	overflow: visible;
}

/* ---------- WAVES ---------- */
.ngs-footer-waves {
	position: relative;
	height: 0;
	line-height: 0;
	margin-top: clamp(2rem, 4vw, 3.5rem);
}

.ngs-footer-wave {
	display: block;
	width: 100%;
	height: auto;
}

.ngs-footer-wave--1 {
	position: relative;
	z-index: 1;
	margin-bottom: -2px;
	animation: ngs-wave-drift 28s linear infinite;
}

.ngs-footer-wave--2 {
	position: relative;
	z-index: 2;
	margin-top: -40px;
}

@keyframes ngs-wave-drift {
	0%   { transform: translateX(0); }
	50%  { transform: translateX(-1.5%); }
	100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
	.ngs-footer-wave--1 {
		animation: none;
	}
}

/* ---------- DEEP FOOTER ---------- */
.ngs-footer-main {
	background: var(--ngs-footer-deep);
	padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem) 2rem;
}

.ngs-footer-main__inner {
	width: min(100%, 75rem);
	margin-inline: auto;
}

.ngs-footer-availability {
	margin: 0 0 2rem;
	font-size: 0.875rem;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.55);
	text-align: center;
}

.ngs-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 0.9fr;
	gap: clamp(1.75rem, 3vw, 2.75rem);
	margin-bottom: 2.5rem;
}

.ngs-footer-brand-name {
	margin: 0 0 0.25rem;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--ngs-footer-white);
}

.ngs-footer-brand-title {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ngs-footer-aqua);
}

.ngs-footer-brand-text {
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--ngs-footer-text);
}

.ngs-footer-contact-btn {
	display: inline-flex;
	padding: 0.65rem 1.35rem;
	border-radius: 999px;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	color: var(--ngs-footer-white);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.ngs-footer-contact-btn:hover,
.ngs-footer-contact-btn:focus-visible {
	background: var(--ngs-footer-orange);
	border-color: var(--ngs-footer-orange);
	color: var(--ngs-footer-white);
}

.ngs-footer-col-title {
	margin: 0 0 1rem;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ngs-footer-white);
}

.ngs-footer-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ngs-footer-list li {
	margin: 0 0 0.55rem;
}

.ngs-footer-list a {
	color: var(--ngs-footer-text);
	text-decoration: none;
	font-size: 0.9375rem;
	transition: color 0.2s ease;
}

.ngs-footer-list a:hover,
.ngs-footer-list a:focus-visible {
	color: var(--ngs-footer-aqua);
}

/* Social icons */
.ngs-footer-social {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.ngs-footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	color: var(--ngs-footer-white);
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ngs-footer-social a:hover,
.ngs-footer-social a:focus-visible {
	background: var(--ngs-footer-orange);
	border-color: var(--ngs-footer-orange);
	color: var(--ngs-footer-white);
}

.ngs-footer-social svg {
	display: block;
}

/* Accordion toggles – hidden on desktop */
.ngs-footer-accordion-toggle {
	display: none;
}

/* Bottom bar */
.ngs-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-top: 1.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ngs-footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

.ngs-footer-legal a {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.8125rem;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ngs-footer-legal a:hover,
.ngs-footer-legal a:focus-visible {
	color: var(--ngs-footer-aqua);
}

.ngs-footer-copyright {
	margin: 0;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.45);
}

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
	.ngs-footer-cta__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.ngs-footer-cta__text {
		margin-inline: auto;
	}

	.ngs-footer-cta__visual {
		order: -1;
	}

	.ngs-footer-illustration {
		width: min(100%, 420px);
	}

	.ngs-footer-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.ngs-footer-col--brand {
		margin-bottom: 1.75rem;
		text-align: center;
	}

	.ngs-footer-col--brand .ngs-footer-contact-btn {
		margin-inline: auto;
	}

	/* Accordion behaviour */
	.ngs-footer-accordion-toggle {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: space-between;
		padding: 1rem 0;
		border: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
		background: transparent;
		color: var(--ngs-footer-white);
		font-size: 0.95rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		cursor: pointer;
	}

	.ngs-footer-accordion-icon {
		width: 0.65rem;
		height: 0.65rem;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform 0.25s ease;
	}

	.ngs-footer-accordion-toggle[aria-expanded="true"] .ngs-footer-accordion-icon {
		transform: rotate(-135deg);
	}

	.ngs-footer-col-title {
		display: none;
	}

	.ngs-footer-accordion-panel {
		display: none;
		padding: 0.75rem 0 1.25rem;
	}

	.ngs-footer-accordion-panel.is-open {
		display: block;
	}

	.ngs-footer-bottom {
		flex-direction: column;
		text-align: center;
	}
}

@media (min-width: 901px) {
	.ngs-footer-accordion-panel {
		display: block !important; /* ensure visible on desktop */
	}
}




/* ---------- ILLUSTRATION ANIMATIONS (looped story) ---------- */
.ngs-footer-illustration {
	width: min(100%, 560px);
	max-width: 100%;
	height: auto;
	overflow: visible;
}

/*
  --ngs-type-w is set by footer.js from measured text width.
  Fallback keeps a sensible default if JS is off.
*/
.ngs-illu-type-clip {
	animation: ngs-type-reveal 14s linear infinite;
}
@keyframes ngs-type-reveal {
	0%, 2%   { width: 0; }
	18%      { width: var(--ngs-type-w, 200px); }
	90%      { width: var(--ngs-type-w, 200px); }
	96%,100% { width: 0; }
}

/* Cursor travels WITH typing and stops at end of text (not bar edge) */
.ngs-illu-cursor {
	animation: ngs-cursor-type 14s linear infinite;
}
@keyframes ngs-cursor-type {
	0%, 2%   { transform: translateX(0); opacity: 1; }
	18%      { transform: translateX(var(--ngs-type-w, 200px)); opacity: 1; }
	/* blink at text end */
	20%, 22% { opacity: 0; }
	24%, 26% { opacity: 1; }
	28%, 30% { opacity: 0; }
	32%, 90% { transform: translateX(var(--ngs-type-w, 200px)); opacity: 1; }
	93%      { opacity: 0; }
	96%,100% { transform: translateX(0); opacity: 1; }
}

/*
  People walk one-by-one to the front door, then ENTER (scale down + fade into doorway).
  Star ranking rises as each person enters.
  14s loop.
*/
.ngs-illu-person--1 { animation: ngs-enter-p1 14s ease-in-out infinite; }
.ngs-illu-person--2 { animation: ngs-enter-p2 14s ease-in-out infinite; }
.ngs-illu-person--3 { animation: ngs-enter-p3 14s ease-in-out infinite; }

/* Doorway target ~ (348, 200) near front door of house */
@keyframes ngs-enter-p1 {
	0%, 18%   { transform: translate(115px, 185px) scale(1); opacity: 1; }
	32%       { transform: translate(340px, 200px) scale(1); opacity: 1; }
	36%       { transform: translate(348px, 198px) scale(0.35); opacity: 0; }
	36.1%, 90%{ transform: translate(348px, 198px) scale(0.2); opacity: 0; }
	100%      { transform: translate(115px, 185px) scale(1); opacity: 1; }
}
@keyframes ngs-enter-p2 {
	0%, 36%   { transform: translate(80px, 192px) scale(1); opacity: 1; }
	50%       { transform: translate(330px, 202px) scale(1); opacity: 1; }
	54%       { transform: translate(348px, 198px) scale(0.35); opacity: 0; }
	54.1%, 90%{ transform: translate(348px, 198px) scale(0.2); opacity: 0; }
	100%      { transform: translate(80px, 192px) scale(1); opacity: 1; }
}
@keyframes ngs-enter-p3 {
	0%, 54%   { transform: translate(48px, 198px) scale(1); opacity: 1; }
	68%       { transform: translate(320px, 204px) scale(1); opacity: 1; }
	72%       { transform: translate(348px, 198px) scale(0.35); opacity: 0; }
	72.1%, 90%{ transform: translate(348px, 198px) scale(0.2); opacity: 0; }
	100%      { transform: translate(48px, 198px) scale(1); opacity: 1; }
}

/* Stars: start at 2; unlock 3/4/5 when each person enters */
.ngs-illu-star { transform-origin: center; transform-box: fill-box; }
.ngs-illu-star--1,
.ngs-illu-star--2 { opacity: 1; animation: none; }
.ngs-illu-star--3 {
	opacity: 0;
	animation: ngs-star-3 14s ease-out infinite;
}
.ngs-illu-star--4 {
	opacity: 0;
	animation: ngs-star-4 14s ease-out infinite;
}
.ngs-illu-star--5 {
	opacity: 0;
	animation: ngs-star-5 14s ease-out infinite;
}
@keyframes ngs-star-3 {
	0%, 34%  { opacity: 0; transform: scale(0.35); }
	37%      { opacity: 1; transform: scale(1.2); }
	40%, 90% { opacity: 1; transform: scale(1); }
	100%     { opacity: 0; transform: scale(0.35); }
}
@keyframes ngs-star-4 {
	0%, 52%  { opacity: 0; transform: scale(0.35); }
	55%      { opacity: 1; transform: scale(1.2); }
	58%, 90% { opacity: 1; transform: scale(1); }
	100%     { opacity: 0; transform: scale(0.35); }
}
@keyframes ngs-star-5 {
	0%, 70%  { opacity: 0; transform: scale(0.35); }
	73%      { opacity: 1; transform: scale(1.2); }
	76%, 90% { opacity: 1; transform: scale(1); }
	100%     { opacity: 0; transform: scale(0.35); }
}

.ngs-illu-growth {
	opacity: 0;
	animation: ngs-growth-loop 14s ease-out infinite;
}
@keyframes ngs-growth-loop {
	0%, 72%  { opacity: 0; transform: translateY(8px); }
	76%, 90% { opacity: 1; transform: translateY(0); }
	100%     { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 900px) {
	.ngs-footer-illustration {
		width: min(100%, 420px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ngs-illu-type-clip { animation: none; width: var(--ngs-type-w, 200px); }
	.ngs-illu-cursor { animation: none; opacity: 0; transform: translateX(var(--ngs-type-w, 200px)); }
	.ngs-illu-person--1,
	.ngs-illu-person--2,
	.ngs-illu-person--3 { animation: none; opacity: 0; }
	.ngs-illu-star--3,
	.ngs-illu-star--4,
	.ngs-illu-star--5 { animation: none; opacity: 1; transform: scale(1); }
	.ngs-illu-growth { animation: none; opacity: 1; }
}
