/*
@media only screen and (min-width: ) and (max-width: ){

}
*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap');

#testimonials-section{
	display: none;
}

body{
	background-color: #4a4a4a;
	color: #fff;
	font-family: 'Noto Sans', sans-serif;
	overflow-x: hidden;
}

.content-container{
	width: 90%;
	max-width: 1280px;
	margin: 0 auto;
}

.spotible-yellow{
	color: #eec817;
}

h1, h2, h3{
	font-weight: bold;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 3px;
	line-height: 130%;
    padding: 0 0 3% 0;
}

h1{
	font-size: 3.9vw;
}

h2{
	font-size: 3.1vw;
}

h3{
	font-size: 2.3vw;
}

p{
	text-align: center;
	font-size: 1.4vw;
	line-height: 150%;
}

img{
	display: block;
}

.flex-container{
	display: flex;
}

sup.regmark{
    font-size: 0.3em;
    line-height: 0;
    vertical-align: baseline;
    position: relative;
    top: -1.7em;
}


/* ----- YELLOW BUTTON -----------------------------------------------------------------*/
.button-wrapper{
	text-align: center;
}

.cta-button{
	display: inline-block;
	background: #eec817;
	color: white;
	font-weight: 600;
	font-size: 1.4vw;
	padding: 1% 2%;
	border-radius: 999px;
	text-decoration: none;
	text-align: center;
	transition: background 0.25s ease, transform 0.25s ease;
	margin: 0 auto;
}

/* Hover */
.cta-button:hover{
	background: #f2d45e;
	transform: translateY(-2px);
}

/* Active */
.cta-button:active{
	background: #d7b534;
	transform: translateY(0);
}


/* ----- NAV BAR -------------------------------------------------------------------*/
#nav-bar{
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: #000;
	z-index: 1000;
	padding: 8px 0;
	transform: translateY(-100%);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

/* when visible */
#nav-bar.is-visible{
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

/* layout inside nav */
#nav-bar .content-container{
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

/* logo size in nav */
#nav-bar img{
	height: 50px;
	width: auto;
}

/* horizontal nav links (desktop) */
#nav-bar .nav-links{
	list-style: none;
	display: flex;
	gap: 24px;
	margin: 0 24px 0 40px;
	padding: 0;
}

#nav-bar .nav-links a{
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

#nav-bar .nav-links a:hover{
	color: #eec817;
}

/* keep CTA tidy in header */
#nav-bar .button-wrapper{
	margin-left: auto;
}

#nav-bar .cta-button{
	font-size: 14px;
	padding: 8px 24px;
}

/* burger button */
#nav-bar .nav-toggle{
	display: none;               /* desktop hidden */
	background: none;
	border: none;
	cursor: pointer;
	margin-left: 8px;
	padding: 4px;
}

#nav-bar .nav-toggle span{
	display: block;
	width: 18px;
	height: 2px;
	background: #fff;
	margin: 3px 0;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/* X animation */
#nav-bar.menu-open .nav-toggle span:nth-child(1){
	transform: translateY(5px) rotate(45deg);
}
#nav-bar.menu-open .nav-toggle span:nth-child(2){
	opacity: 0;
}
#nav-bar.menu-open .nav-toggle span:nth-child(3){
	transform: translateY(-5px) rotate(-45deg);
}


/* ----- TOP SECTION -------------------------------------------------------------------*/
#top-section{
	width: 100%;
	max-height: 686px;
	overflow: hidden;
	position: relative;
}

#top-section p{
    padding: 1% 0 4% 0;
}

/* Gradient overlay */
#top-section::after{
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 150px; /* adjust as needed */
	pointer-events: none;

	background: linear-gradient(
		to top,
		#4a4a4a 0%,
		rgba(65,65,65,0.7) 40%,
		rgba(65,65,65,0.3) 70%,
		transparent 100%
	);
}

/* Maintains aspect ratio */
#top-wrapper{
	width: 100%;
	height: 0;
	padding-bottom: 53.61%; /* 1544 / 2880 */
	position: relative;
	background: #414141 url('../images/home/top_image.png') no-repeat top right;
	background-size: cover;
}

#logo{
	width: 15%;
	height: auto;
	margin: 0 auto;
	padding: 4% 0;
}


/* ----- VIDEO SECTION --------------------------------------------------------------*/
#video-section{
	margin-bottom: 4%;
}

video{
	width: 100%;
	height: auto;
	margin-top: 4%;
}


/* ----- BRANDS SECTION ----------------------------------------------------------------*/
#brands-section{
	background-color: #eec817;
	padding: 1.5% 0 2% 0;
	margin-bottom: 4%;
}

#brands-section h2{
	font-size: 2.3vw;
}

#brands-section img{
	width: 15%;
	height: auto;
} 

#brands-section img#mlb-logo{
	width: 13%;
	height: auto;
} 

#brands-section .flex-container{
	flex-wrap: nowrap;
	justify-content: space-evenly;
	align-items: center;
}


/* ----- DESCRIPTION SECTION -----------------------------------------------------------------*/
#description-section{
	overflow-x: hidden;
}

#description-section h3{
	margin-top: 30%;
}

#description-section img{
	width: 100%;
	height: auto;
}

#description-section .content p{
	max-width: 75%;
}

#description-section .images p{
	font-size: 12px
}

#description-section .images p.top{
	padding: 0 0 2% 0;
}

#description-section .images p.bottom{
	padding: 2% 0 0 0;
}

#description-section .images p.right{
	text-align: right;
}

#description-section .images p.left{
	text-align: left;
}

#description-section .flex-container{
	margin-bottom: 5%;
}

#description-section .flex-container:last-of-type{
	margin-bottom: 7%;
}

#description-section .flex-container div{
	width: 50%;
}

#description-section .flex-container:nth-of-type(1) .content h3,
#description-section .flex-container:nth-of-type(1) .content p,
#description-section .flex-container:nth-of-type(3) .content h3,
#description-section .flex-container:nth-of-type(3) .content p{
	text-align: left;
}

#description-section .flex-container:nth-of-type(2) .content h3,
#description-section .flex-container:nth-of-type(2) .content p{
	text-align: right;
	margin-left: auto; 	
}


/* ----- DESCRIPTION SECTION ANIMATIONS -------------------------------------------*/

/* base state: hidden + off-screen a bit */
#description-section .images{
	opacity: 0;
	transform: translateX(80px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

/* direction variants */
#description-section .images.from-left{
	transform: translateX(-80px);
}

#description-section .images.from-right{
	transform: translateX(80px);
}

/* when triggered */
#description-section .images.in-view{
	opacity: 1;
	transform: translateX(0);
}


/* ----- ENGINE CAROUSEL SECTION --------------------------------------------------------------*/
#engine-info-section{
	margin-bottom: 5%;
}

#engine-info-section h2{
	padding: 0 0 5% 0;
}

/* Carousel container */
#carousel{
	display: flex;
	align-items: center;         /* centers arrows vertically */
	justify-content: center;
	gap: 20px;
	position: relative;
}

/* Arrow buttons */
#carousel .nav{
	background: none;
	border: none;
	color: white;
	font-size: 32px;
	cursor: pointer;
	padding: 0;
}

/* This is the visible window */
#carousel .viewport{
	width: 60%;               /* carousel card width */
	overflow: hidden;           /* hides all other slides */
}

/* Slide track */
#carousel .slides{
	display: flex;
	transition: transform 0.4s ease;
}

/* Each slide */
#carousel .slide{
	min-width: 100%;
	box-sizing: border-box;

	background: #2b2b2b;        /* card background */
	border-radius: 10px;         /* rounded corners */
	padding: 40px 50px;          /* spacing inside card */
	box-shadow: 0 4px 18px rgba(0,0,0,0.4);  /* subtle depth */
	
	display: flex;
	flex-direction: column;
	justify-content: center;   /* vertical centering */
}


/* ----- CHARTS SECTION --------------------------------------------------------------*/
#charts-section{
	color: #fff;
	margin-bottom: 5%;
}

#charts-section h2{
	margin-bottom: 40px;
}

.charts-row{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 60px;
	flex-wrap: wrap;
}

.charts-row--bottom{
	margin-top: 40px;
}

/* base chart */
.chart{
	text-align: center;
}

/* --- Size --- */
.chart-bar,
.chart-ring{
	width: 20%;
}

/* --- Ring charts --- */
.chart-ring{
	position: relative;
}

.chart-ring svg{
	width: 100%;
	height: auto;
}

.chart-ring circle{
	fill: none;
	stroke-width: 10;
}

.chart-ring circle.bg{
	stroke: #666;
	opacity: 0.6;
}

/* Rings start empty */
.chart-ring circle.progress{
	stroke-dasharray: 0 999;   /* effectively no arc drawn */
	stroke-dashoffset: 0;
	opacity: 0.25;             /* dim until animated */
}

/* Bars start empty */
.bar-fill{
	height: 100%;
	width: 0%;                 /* already there, but ensure it stays */
	background: #f4c629;
	transition: width 1.2s ease-out;
}


.chart-ring circle.progress{
	stroke: #f4c629;
	stroke-linecap: round;
	transform: rotate(-90deg);
	transform-origin: 50% 50%;
	transition: stroke-dashoffset 1.2s ease-out;
}

.chart-ring .chart-text{
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.chart-ring .value{
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 4px;
}

.chart-ring .label{
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* --- Bar chart --- */
.chart-bar{
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.chart-bar .value{
	font-size: 24px;
	font-weight: 700;
}

.chart-bar .label{
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.chart-bar .legend{
	font-size: 10px;
	display: flex;
	gap: 12px;
	align-items: center;
	opacity: 0.8;
}

.legend-item{
	display: flex;
	align-items: center;
	gap: 4px;
}

.swatch{
	display: inline-block;
	width: 10px;
	height: 10px;
}

.swatch-other{
	background: #ccc;
}

.swatch-us{
	background: #f4c629;
}

.bar-track{
	width: 100%;
	height: 10px;
	background: #666;
	margin-top: 6px;
	overflow: hidden;
}

.bar-fill{
	height: 100%;
	width: 0%;                /* start empty, JS will animate to % */
	background: #f4c629;
	transition: width 1.2s ease-out;
}

/* icon-style charts ------------------------------------------------------*/
.chart-icon{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
	width: 20%;
}

.chart-icon svg{
	width: 60px;
	height: auto;
}

.chart-icon .value{
	font-size: 24px;
	font-weight: 700;
}

.chart-icon .label{
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* interaction icon --------------------------------------------------------*/
.interaction-svg .interaction-pointer{
	/* already correct fill from SVG */
}

.interaction-svg .interaction-ray{
	opacity: 0;
}

/* play ONCE when .animate is added */
.chart-icon--interaction.animate .interaction-pointer{
	animation: interaction-click 0.7s ease-out forwards;
	transform-origin: 32px 32px;
}

.chart-icon--interaction.animate .interaction-ray{
	animation: interaction-rays 0.7s ease-out forwards;
}

/* keyframes */
@keyframes interaction-click{
	0%  { transform: scale(1); }
	20% { transform: scale(0.9) translate(1px,1px); }
	40% { transform: scale(1.02); }
	100%{ transform: scale(1); }
}

@keyframes interaction-rays{
	0%  { opacity: 0; transform: scale(0.6); }
	20% { opacity: 1; transform: scale(1); }
	60% { opacity: 0; transform: scale(1.2); }
	100%{ opacity: 0; transform: scale(1.2); }
}


/* hover icon --------------------------------------------------------------*/
.hover-svg .hover-box{
	/* stroke is already set in SVG */
}

.hover-svg .hover-pointer{
	/* filled yellow via SVG */
}

/* play ONCE when .animate is added */
.chart-icon--hover.animate .hover-pointer{
	animation: hover-move 1.1s ease-out forwards;
	transform-origin: 46px 40px;
}

/* pointer moves toward box and settles */
@keyframes hover-move{
	0%  { transform: translate(4px, 8px); opacity: 0; }
	30% { transform: translate(0, 0); opacity: 1; }
	60% { transform: translate(-2px, -1px); }
	100%{ transform: translate(0, 0); }
}


/* ----- TESTIMONIALS SECTION --------------------------------------------------------------*/
#testimonials-section{
	color: #fff;
	margin-bottom: 6%;
}

#testimonials-section h2{
	margin: 0 0 40px;
}

/* grid of cards */
.testimonials-grid{
	display: flex;
	justify-content: center;
	gap: 40px;
	flex-wrap: wrap;
}

/* card */
.testimonial-card{
	position: relative;
	width: 240px;
	background: #fff;
	color: #444;
	border-radius: 16px;
	padding: 60px 24px 28px;  /* extra top padding for badge overlap */
	box-shadow: 0 4px 16px rgba(0,0,0,0.3);
	text-align: center;
}

/* yellow circle badge */
.testimonial-badge{
	position: absolute;
	top: -36px;
	left: 50%;
	transform: translateX(-50%);
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #f4c629;
	display: flex;
	align-items: center;
	justify-content: center;
	text-transform: uppercase;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #fff;
}

/* body text */
.testimonial-body h3{
	margin: 0 0 10px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.testimonial-body p{
	margin: 0;
	font-size: 12px;
	line-height: 1.6;
}

/* responsive */
@media (max-width: 900px){
	.testimonial-card{
		width: 280px;
	}
}



/* ----- CONTACT US --------------------------------------------------------------*/
/* Section background */
footer,
#contact-us-section{
	background: #dcdcdc;          /* light grey like screenshot */
	padding: 60px 0 20px;
}

/* Centered section title */
#contact-us-section h2{
	margin: 0 0 40px;
	color: #3b3b3b;
}

#contact-us-section p{
	text-align: left;
}

/* Two-column layout */
#contact-us-section .contact-layout{
	display: grid;
	grid-template-columns: 1.1fr 1.2fr;
	column-gap: 80px;
	align-items: flex-start;
}

.contact-layout{
	padding-bottom: 60px;
}

/* Left copy column */
.contact-copy h3{
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-bottom: 16px;
	color: #3b3b3b;
}

.contact-copy p{
	margin: 0 0 12px;
	color: #555;
	font-size: 14px;
	line-height: 1.6;
}

.contact-note{
	margin-top: 24px;
	font-size: 13px;
}

.contact-note a{
	color: #333;
	text-decoration: underline;
}

/* Right form column */
.contact-form{
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.field-group{
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	color: #555;
}

.field-group label{
	font-weight: 600;
}

.contact-form input,
.contact-form textarea{
	width: 100%;
	border-radius: 999px;
	border: none;
	padding: 10px 14px;
	font-size: 14px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
	box-sizing: border-box;
}

.contact-form textarea{
	border-radius: 16px;    /* softer corners like screenshot */
	resize: vertical;
	min-height: 160px;
}

/* focus style */
.contact-form input:focus,
.contact-form textarea:focus{
	outline: none;
	box-shadow: 0 0 0 2px #f4c629;
}

/* Submit button – match your brand */
.btn-primary{
	align-self: flex-start;
	margin-top: 8px;
	padding: 10px 26px;
	border-radius: 999px;
	border: none;
	background: #3b3b3b;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	cursor: pointer;
}

.btn-primary:hover{
	background: #262626;
}

.form-success{
	color: #1a7f37;
	margin-bottom: 16px;
	font-size: 14px;
}

.form-error{
	color: #b3261e;
	margin-bottom: 16px;
	font-size: 14px;
}

#badges{
	margin-bottom: 30px;
}

#copyright p{
	text-align: center;
	font-size: 14px;
	color: #555;
}

/* ----- CONTACT CONTENT ANIMATION -----------------------------------------------*/
#contact-us-section .content-container{
	opacity: 0;
	transform: translateY(60px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

#contact-us-section .content-container.in-view{
	opacity: 1;
	transform: translateY(0);
}


/* ----- MEDIA QUERIES -------------------------------------------------------------------*/
@media only screen and (min-width: 1280px){
	h1{
		font-size: 50px;
	}
	
	h2{
		font-size: 40px;
	}
	
	h3,
	#brands-section h2{
		font-size: 30px;
	}
	
	p{
		font-size: 18px;
	}
	
	#description-section .images p{
		font-size: 14px;
	}
	
	.cta-button{
		font-size: 18px;
	}
}

@media (min-width: 901px){
	.mobile-only{
		display: none;
	}
	
	.desktop-only{
		display: block;
	}
}

@media (max-width: 900px){
	.mobile-only{
		display: block;
	}
	
	.desktop-only{
		display: none;
	}
	
	#video-section,
	#brands-section,
	#engine-info-section{
		margin-bottom: 10%;
	}

	/* typography – switch from vw to px so it doesn't get tiny */
	h1{
		font-size: 28px;
		line-height: 1.3;
	}

	h2{
		font-size: 22px;
		line-height: 1.3;
	}

	h3,
	#brands-section h2{
		font-size: 18px;
		line-height: 1.4;
	}

	p{
		font-size: 14px;
	}

	.cta-button{
		font-size: 14px;
		padding: 10px 20px;
	}

	.content-container{
		width: 92%;
	}

	/* nav bar tweaks */
	#nav-bar{
		padding: 6px 0;
	}

	#nav-bar img{
		height: 35px;
	}

	#nav-bar .cta-button{
		font-size: 13px;
		padding: 6px 18px;
	}
	
	/* nav: burger + dropdown */
	#nav-bar .nav-links{
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #000;
		flex-direction: column;
		align-items: flex-start;
		padding: 10px 20px 16px;
		gap: 10px;
		display: none;           /* hidden by default on mobile */
	}

	#nav-bar.menu-open .nav-links{
		display: flex;
	}

	#nav-bar .nav-toggle{
		display: block;          /* show burger on mobile */
	}

	/* keep CTA + burger on the right */
	#nav-bar .button-wrapper{
		margin-left: auto;
	}


	/* hero / top section */
	#top-section{
		max-height: none;
	}

	#top-wrapper{
		padding-bottom: 80%;              /* taller image slice on narrow screens */
		background-position: center top;
	}

	#logo{
		width: 40%;
		padding: 8% 0 4%;
	}

	#top-section p{
		padding: 8px 0 16px;
	}

	/* brands – allow wrapping */
	#brands-section .flex-container{
		flex-wrap: wrap;
		gap: 16px;
		justify-content: center;
	}

	#brands-section img{
		max-width: 30%;
		height: auto;
	}

	/* description rows – stack text and image */
	#description-section .flex-container{
		flex-direction: column;
		gap: 18px;
		margin-bottom: 40px;
	}

	#description-section .flex-container div{
		width: 100%;
	}

	#description-section h3{
		margin-top: 0;                    /* remove huge desktop offset */
		text-align: left;
	}

	#description-section .content p{
		max-width: 100%;
		text-align: left;
	}

	/* engine carousel – full width card */
	#engine-info-section h2{
		padding-bottom: 24px;
	}

	#carousel .viewport{
		width: 100%;
	}

	#carousel .slide{
		padding: 24px 18px;
	}

	#carousel .nav{
		font-size: 24px;
	}

	/* charts – stack vertically, make them big enough to read */
	.charts-row{
		flex-direction: column;
		gap: 32px;
	}

	.chart-ring,
	.chart-bar,
	.chart-icon{
		width: 70%;
	}

	.chart-ring .value,
	.chart-bar .value,
	.chart-icon .value{
		font-size: 20px;
	}

	.chart-ring .label,
	.chart-bar .label,
	.chart-icon .label{
		font-size: 11px;
	}

	/* testimonials – cards already wrap, just give them a bit more width */
	.testimonial-card{
		width: 90%;
		max-width: 320px;
	}

	/* contact section – stack copy + form (you already had grid->1col) */
	#contact-us-section .contact-layout{
		grid-template-columns: 1fr;
		row-gap: 32px;
	}

	.contact-form{
		max-width: 100%;
	}
}

@media (max-width: 600px){	
	/* headings a bit smaller */
	h1{
		font-size: 24px;
	}

	h2{
		font-size: 20px;
	}

	h3,
	#brands-section h2{
		font-size: 16px;
	}
	
	h1, h2, h3{
		padding: 0 0 7% 0;
	}

	p{
		font-size: 13px;
	}

	.cta-button{
		font-size: 13px;
		padding: 8px 18px;
	}

	/* nav bar */
	#nav-bar img{
		height: 35px;
	}

	#nav-bar .content-container{
		gap: 12px;
	}

	/* hero spacing */
	#logo{
		width: 50%;
		padding-top: 10%;
	}

	#top-section p{
		margin: 0;
	}
	
	#top-section::after{
		background: linear-gradient(
				to top,
				#4a4a4a 0%,
				rgba(65,65,65,0.7) 7%,
				rgba(65,65,65,0.3) 10%,
				transparent 100%
			);
	}
	
	#top-wrapper{
		padding-bottom: unset;
		height: auto;
	}

	/* charts narrower so they don't touch edges */
	.chart-ring,
	.chart-bar,
	.chart-icon{
		width: 85%;
	}

	/* testimonials spacing */
	.testimonials-grid{
		gap: 24px;
	}
	
	#brands-section .flex-container{
		display: block;
	}
	
	#brands-section .flex-container img{
		margin: 0 auto 80px auto;
		width: 80%;
		max-width: unset;
		height: auto;
	}
	
	#brands-section .flex-container img#mlb-logo{
		width: 60%;
	}
	
	#description-section h3{
		padding-bottom: 1%;
	}
}
