/* Applying base styles using the new colour variables */
:root {
	--color-growth-green: #1A6349;
	--color-dark-moss: #0A271C;
	--color-sea-foam: '#EAF2EB';
	--color-silt: #E8EAE5;
	--color-white: #FFFFFF;
	--color-roam-accent: #30FFB2;
}

body { 
	font-family: 'Questrial', sans-serif; 
	background-color: var(--color-white); 
	color: var(--color-dark-moss);
}
section {
	padding: 40px 0; /* Vertical spacing between sections */
}
section.no-pad-top {
	padding-top: 0;
}
section.no-pad-btm {
	padding-bottom: 0;
}
.section-fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section-fade-in.visible {
	opacity: 1;
	transform: translateY(0);
	transform: unset;
}

/* buttons */
.btn.next,
.btn.prev {
	position: relative;
}

.btn.next:before,
.btn.prev:before {
	content: ' ';
	position: absolute;
	top: 10px;
	left: 10px;
	height: 12px;
	width: 12px;
}

.btn.next:before {
    background-image: url("../images/icons/arrow-right-green-12.svg")
}
.btn.next:hover:before {
    background-image: url("../images/icons/arrow-right-white-12.svg")
}

.btn.prev:before {
    background-image: url("../images/icons/arrow-left-green-12.svg")
}
.btn.prev:hover:before {
    background-image: url("../images/icons/arrow-left-white-12.svg")
}

/* choice cards */

.choice-card {
	border: 2px solid var(--color-silt);
	background-color: var(--color-white);
	transition: all 0.2s ease-in-out;
}
.choice-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 14px 0 rgba(26, 99, 73, 0.15);
}
.choice-card.active {
	background-color: var(--color-sea-foam);
	border-color: var(--color-growth-green);
	box-shadow: 0 6px 18px 0 rgba(26, 99, 73, 0.25);
	transform: translateY(-4px);
}
.choice-card.selected {
	border-color: var(--color-growth-green);
	background-color: var(--color-sea-foam);
	box-shadow: 0 6px 18px 0 rgba(26, 99, 73, 0.2);
}

.hidden-section {
	display: none;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
}
.hidden-section.visible {
	display: block;
	opacity: 1;
}
.add-btn {
	background-color: var(--color-silt); color: var(--color-dark-moss); font-weight: bold;
	border-radius: 9999px; width: 32px; height: 32px;
	display: flex; align-items: center; justify-content: center;
	transition: all 0.2s ease-in-out; border: none; cursor: pointer; flex-shrink: 0;
}
.add-btn:hover { background-color: #d8dbd6; }
.add-btn.added { background-color: var(--color-growth-green); color: white; cursor: default; }
.add-btn.added:hover { background-color: var(--color-growth-green); }
#sticky-cta-bar {
	transition: transform 0.4s ease-in-out;
	transform: translateY(100%);
}
#sticky-cta-bar.visible {
	transform: translateY(0);
}
.growth-stage-card {
	transition: transform 0.3s ease;
}
.growth-stage-card:hover {
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.growth-stage-card.active-stage {
	transform: translateY(-4px);
	box-shadow: 0 0 0 3px var(--color-growth-green);
}

/* Animation for the "Aha Moment" */

.metric-item {
	opacity: 0;
	transform: scale(0.9);
	transition: opacity 0.5s ease, transform 0.5s ease;
}
.metric-item.visible {
	opacity: 1;
	transform: scale(1);
}

/* Testimonial Slider */

.testimonial-slide {
	display: none;
}
.testimonial-slide.active {
	display: block;
}
#testimonial-slider-container {
	/* Ensures consistent height for the container */
	min-height: 350px;
	display: flex;
	align-items: center;
	transition: height 0.3s ease-in-out;
}
.custom-icon {
	width: 40px;
	height: 40px;
	stroke-width: 1.5;
	stroke: var(--color-growth-green);
}
.objective-card {
	background-color: white;
	border: 2px solid var(--color-silt);
	transition: border-color 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
	cursor: pointer;
}
.objective-card.selected {
	border-color: var(--color-growth-green);
}

/* true objectives */

.quiz-question {
	display: none;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
}
.quiz-question.active {
	display: block;
	opacity: 1;
}
.progress-bar-fill {
	transition: width 0.5s ease-in-out;
}
.report-card {
	transition: all 0.3s ease-in-out;
	opacity: 0;
	transform: translateY(20px);
}
.report-card.visible {
	opacity: 1;
	transform: translateY(0);
}

/* growth audit */

.fade-in-up {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in-up.visible {
	opacity: 1;
	transform: translateY(0);
}
.input-focus:focus {
	box-shadow: 0 0 0 2px #1A6349;
}
.form-submitted .form-content {
	transition: opacity 0.5s ease-out, transform 0.5s ease-out;
	opacity: 0;
	transform: scale(0.95);
	height: 0;
	overflow: hidden;
}
.form-submitted .success-message {
	display: flex;
}

/* growth-engine */

.pillar-card {
	background-color: white;
	border: 1px solid #E8EAE5;
	transition: all 0.3s ease;
}
.pillar-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px -5px rgba(0,0,0,0.07), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* growth-sprint */

.sprint-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sprint-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* growth-css */

.form-step { display: none; }
.form-step.active { display: block; }

/* growth-benchmark */

.analysis-step {
	opacity: 0.3;
	transition: opacity 0.5s ease-in-out;
}
.analysis-step.active {
	opacity: 1;
}
.solution-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.solution-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.metric-lozenge {
	transition: transform 0.3s ease;
}
.metric-lozenge:hover {
	transform: scale(1.05);
}
.progress-circle {
	transform: rotate(-90deg);
	transform-origin: 50% 50%;
}
.progress-circle-bar {
	transition: stroke-dashoffset 1.5s ease-out;
}


/* Consent Bar */
#cconsent-bar {
	opacity: 0.9;
	background-color: var(--color-growth-green) !important;
	z-index: 2000000001 !important;
}
#cconsent-bar button.consent-give {
	color: var(--color-growth-green) !important;
}

/* google ads audit */
.result-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.result-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
}
.pulse-shadow {
	box-shadow: 0 0 0 0 rgba(48, 255, 178, 0.7);
	animation: pulse-accent 2s infinite;
}
@keyframes pulse-accent {
	0% { box-shadow: 0 0 0 0 rgba(48, 255, 178, 0.7); }
	70% { box-shadow: 0 0 0 15px rgba(48, 255, 178, 0); }
	100% { box-shadow: 0 0 0 0 rgba(48, 255, 178, 0); }
}

/* FAQ */
.fade-in-up {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in-up.visible {
	opacity: 1;
	transform: translateY(0);
}
.faq-item .faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
	padding-top: 0;
	padding-bottom: 0;
}
.faq-item.open .faq-answer {
	max-height: 500px; /* Adjust as needed */
	padding-top: 1rem;
	padding-bottom: 1rem;
}
.faq-item.open .faq-toggle-icon {
	transform: rotate(45deg);
}
.faq-toggle-icon {
	transition: transform 0.3s ease-in-out;
}

/* Map Container */
#map-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	background: #fff;
}
.leaflet-control-attribution, .leaflet-control-container {
	display: none !important;
}
.hero-content {
	position: relative;
	z-index: 10;
}
.map-fade {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 50%;
	background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 100%);
	z-index: 1;
	pointer-events: none;
}

/* particles */
canvas#hero-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}


/* Tools */
.blur-content { filter: blur(3px); pointer-events: none; user-select: none; transition: filter 0.8s ease; will-change: filter; }
.no-blur { filter: blur(0); pointer-events: auto; user-select: auto; will-change: filter; }
#hero-particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-content { position: relative; z-index: 10; }

/* Toast */
#toast-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 100;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
        
/* Toast Notification Styles */
.toast {
	background: white;
	border-left: 4px solid #1A6349;
	padding: 16px 24px;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	display: flex;
	align-items: center;
	gap: 12px;
	transform: translateX(100%);
	opacity: 0;
	transition: all 0.3s ease-out;
	max-width: 300px;
}
.toast.show {
	transform: translateX(0);
	opacity: 1;
}
.toast.error { border-left-color: #ef4444; }
.toast.success { border-left-color: #1A6349; }

/* Metric Bars */
.metric-track {
	height: 8px;
	width: 100%;
	border-radius: 4px;
	position: relative;
	opacity: 0.3;
}

.metric-marker {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 14px;
	height: 14px;
	border: 2px solid white;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0,0,0,0.3);
	transition: left 1s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 10;
}

/* Accordion Styles */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary ~ * { animation: sweep .5s ease-in-out; }

@keyframes sweep {
	0%    {opacity: 0; transform: translateY(-10px)}
	100%  {opacity: 1; transform: translateY(0)}
}

/* Data Tables */
.data-table { width: 100%; font-size: 0.8rem; border-collapse: collapse; } 
.data-table th { padding: 8px; border-bottom: 2px solid #E8EAE5; color: #555; text-transform: uppercase; font-size: 0.7rem; position: sticky; top: 0; background: white; z-index: 10; }
.data-table td { padding: 8px; border-bottom: 1px solid #f0f0f0; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: none; }
.data-mono { font-family: 'JetBrains Mono', monospace; }

/* Custom Scrollbar for tables */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #ACD1B8; border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #2A856A; }

/* Chart Container */
.chart-wrapper {
	position: relative;
	height: 180px;
	width: 180px;
	margin: 0 auto;
}

/* Tech specific styling */
.terminal-text { font-family: 'JetBrains Mono', monospace; }
