/* ─── Hero ───────────────────────────────────────── */
.hero-section {
	height: 100vh;
	max-height: 1108px;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	background-color: #000;
}

.hero-background {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.hero-background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
}

.hero-title {
	font-size: clamp(80px, 15vw, 200px);
	font-weight: var(--fw-regular);
	color: var(--text-white);
	letter-spacing: -0.02em;
}

/* ─── Brands Section ─────────────────────────────── */
.brands-section {
	padding: var(--section-padding-y) 0;
	display: flex;
	flex-direction: column;
	gap: 49px;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 var(--section-padding);
}

.brands-scroll {
	display: flex;
	gap: 80px;
	padding: 0 var(--section-padding);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.brands-scroll::-webkit-scrollbar {
	display: none;
}

.brand-card {
	display: flex;
	gap: 20px;
	align-items: center;
	flex-shrink: 0;
	scroll-snap-align: start;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-card:hover {
	transform: translateY(-4px);
}

.brand-image {
	width: 703px;
	height: 703px;
	border-radius: var(--radius);
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
	display: flex;
	align-items: flex-start;
	padding: 289px 223px;
}

.brand-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.brand-overlay {
	position: absolute;
	inset: 0;
	background: var(--overlay, rgba(220, 31, 62, 0.7));
	border-radius: var(--radius);
}

.brand-logo {
	position: relative;
	z-index: 1;
	max-height: 125px;
	width: auto;
}

.brand-logo-text {
	position: relative;
	z-index: 1;
	font-size: 48px;
	font-weight: var(--fw-bold);
	color: var(--text-white);
}

.brand-content {
	width: 503px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 332px;
}

.brand-description {
	font-size: 20px;
	font-weight: var(--fw-light);
	line-height: 1.5;
}

/* ─── Services Section ───────────────────────────── */
.services-section {
	background: var(--bg-light);
	padding: var(--section-padding-y) var(--section-padding);
	display: flex;
	flex-direction: column;
	gap: 50px;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.services-header {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 33px;
}

.services-subtitle {
	font-size: 20px;
	font-weight: var(--fw-regular);
	line-height: 1.5;
	max-width: 700px;
}

.services-accordion {
	width: 100%;
	position: relative;
}

.service-item {
	border-top: 1px solid var(--text-dark);
	position: relative;
}

.service-item:last-child {
	border-bottom: 1px solid var(--text-dark);
}

.service-item-header {
	display: flex;
	gap: 40px;
	align-items: center;
	width: 100%;
	padding: 20px 8px;
	text-align: left;
	cursor: pointer;
	color: var(--text-dark);
	transition: opacity 0.2s;
}

.service-item-header:hover {
	opacity: 0.7;
}

.service-number {
	font-size: 16px;
	font-weight: var(--fw-extra-light);
	color: var(--primary-red);
	flex-shrink: 0;
	min-width: 28px;
}

.service-title {
	font-size: clamp(36px, 5vw, 70px);
	font-weight: var(--fw-light);
	line-height: 1;
	flex: 1;
}

.service-toggle {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: var(--text-dark);
}

.service-toggle-v {
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-item--active .service-toggle-v {
	transform: scaleY(0);
	opacity: 0;
}

.service-item-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
	            padding 0.5s cubic-bezier(0.16, 1, 0.3, 1),
	            opacity 0.4s ease;
	padding: 0 8px 0 76px;
	opacity: 0;
}

.service-item--active .service-item-body {
	max-height: 200px;
	padding: 0 8px 30px 76px;
	opacity: 1;
}

.service-description {
	font-size: 16px;
	font-weight: var(--fw-regular);
	max-width: 600px;
	line-height: 1.5;
}

/* Floating image that breaks out of layout */
.service-image-float {
	position: absolute;
	right: -40px;
	top: 50%;
	width: 380px;
	height: 320px;
	transform: translateY(-50%) rotate(var(--rotate, -6deg)) scale(0.9);
	border-radius: var(--radius);
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
	            transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 2;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-item--active .service-image-float {
	opacity: 1;
	transform: translateY(-50%) rotate(var(--rotate, -6deg)) scale(1);
}

.service-image-float img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ─── About / What We Are Section (scroll-driven) ── */
.about-scroll-wrapper {
	height: 400vh;
	position: relative;
}

.about-section {
	position: sticky;
	top: 0;
	height: 100vh;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.about-logo-scroll {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 39.524px;
	height: 45px;
	transform: translate(-50%, -50%) scale(1) rotate(0deg);
	will-change: transform;
	z-index: 2;
}

.about-logo-scroll svg {
	display: block;
	width: 100%;
	height: 100%;
}

.about-bg-fill {
	position: absolute;
	inset: 0;
	background: var(--primary-red);
	opacity: 0;
	z-index: 1;
	will-change: opacity;
}

.about-content {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 93px;
	align-items: center;
	max-width: 1345px;
	padding: 0 var(--section-padding);
	opacity: 0;
	will-change: opacity;
}

.about-heading {
	font-size: 36px;
	font-weight: var(--fw-regular);
	color: var(--text-white);
}

.about-description {
	font-size: 40px;
	font-weight: var(--fw-extra-light);
	color: var(--text-white);
	text-align: center;
	line-height: 1.3;
}

/* ─── Featured Work Section ──────────────────────── */
.work-section {
	padding: 141px var(--section-padding);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 120px;
}

.work-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.work-icon {
	color: var(--text-dark);
}

.work-divider {
	width: 1px;
	height: 98px;
	background: var(--text-dark);
}

.work-grid {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	column-gap: 22px;
	row-gap: 120px;
	justify-content: space-between;
}

/* Center solo card on first row */
.work-grid .project-card:first-child {
	margin: 0 auto;
}

/* ─── Clients Section ────────────────────────────── */
.clients-section {
	padding: var(--section-padding-y) var(--section-padding);
}

.clients-inner {
	display: flex;
	flex-direction: column;
	gap: 50px;
}

.clients-marquee {
	overflow: hidden;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.clients-track {
	display: flex;
	gap: 22px;
	width: max-content;
}

.clients-track--row1 {
	animation: marquee-left 40s linear infinite;
	will-change: transform;
}

.clients-track--row2 {
	animation: marquee-right 40s linear infinite;
	will-change: transform;
}

.client-logo {
	width: 412px;
	height: 214px;
	background: #f2f3f6;
	border-radius: var(--radius);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.client-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.client-logo-placeholder {
	font-size: 24px;
	font-weight: var(--fw-medium);
	color: var(--text-gray);
}

@keyframes marquee-left {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
	0% { transform: translateX(-50%); }
	100% { transform: translateX(0); }
}

/* ─── Testimonials Section ───────────────────────── */
.testimonials-section {
	padding: 236px var(--section-padding);
	display: flex;
	gap: 300px;
	align-items: center;
	overflow: hidden;
}

.testimonials-header {
	flex-shrink: 0;
}

.testimonials-title {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.testimonials-scroll {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.testimonials-scroll::-webkit-scrollbar {
	display: none;
}

/* Testimonial card overrides for homepage context */
.testimonials-scroll .testimonial-card {
	scroll-snap-align: start;
}

/* ─── Resources Section ──────────────────────────── */
.resources-section {
	padding: 74px 99px;
	display: flex;
	flex-direction: column;
	gap: 92px;
	align-items: center;
}

.resources-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	width: 100%;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1200px) {
	.brand-image {
		width: 500px;
		height: 500px;
		padding: 200px 120px;
	}
	.brand-content {
		width: 350px;
		gap: 150px;
	}
	.testimonials-section {
		gap: 80px;
		padding: 100px var(--section-padding);
	}
	.resources-section {
		padding: 74px var(--section-padding);
	}
	.client-logo {
		width: 300px;
		height: 156px;
	}
	.work-section {
		padding: 100px var(--section-padding);
		gap: 80px;
	}
	.about-section {
		min-height: 800px;
	}
	.about-description {
		font-size: 32px;
	}
}

@media (max-width: 1024px) {
	.brands-scroll {
		gap: 40px;
	}
	.brand-card {
		flex-direction: column;
	}
	.brand-image {
		width: 100%;
		max-width: 500px;
		height: 400px;
		padding: 150px 80px;
	}
	.brand-content {
		width: 100%;
		max-width: 500px;
		gap: 40px;
	}
	.service-image-float {
		display: none;
	}
	.service-item-body {
		padding: 0 8px 0 48px;
	}
	.service-item--active .service-item-body {
		padding: 0 8px 30px 48px;
	}
	.testimonials-section {
		flex-direction: column;
		gap: 40px;
		padding: 80px var(--section-padding);
	}
	.about-logo img {
		height: 300px;
	}
	.about-section {
		min-height: 700px;
	}
	.about-content {
		gap: 60px;
	}
	.resources-grid {
		gap: 30px;
	}
}

@media (max-width: 768px) {
	.hero-section {
		height: 600px;
	}
	.brands-section {
		padding: 60px 0;
		gap: 30px;
	}
	.brands-scroll {
		gap: 24px;
		padding: 0 20px;
	}
	.brand-image {
		height: 300px;
		padding: 100px 60px;
	}
	.brand-logo-text {
		font-size: 32px;
	}
	.brand-description {
		font-size: 16px;
	}
	.section-header {
		flex-direction: column;
		gap: 20px;
		align-items: flex-start;
		padding: 0 20px;
	}
	.services-section {
		padding: 60px 20px;
		gap: 30px;
	}
	.service-item-header {
		gap: 16px;
		padding: 16px 4px;
	}
	.service-title {
		font-size: 28px;
	}
	.service-item-body {
		padding: 0 4px 0 32px;
	}
	.service-item--active .service-item-body {
		padding: 0 4px 20px 32px;
	}
	.about-section {
		min-height: 500px;
	}
	.about-heading {
		font-size: 28px;
	}
	.about-content {
		gap: 40px;
	}
	.about-description {
		font-size: 22px;
	}
	.about-logo img {
		height: 200px;
	}
	.work-section {
		padding: 60px 20px;
		gap: 40px;
	}
	.work-divider {
		height: 48px;
	}
	.clients-section {
		padding: 40px 20px;
	}
	.client-logo {
		width: 250px;
		height: 130px;
	}
	.testimonials-section {
		padding: 60px 20px;
		gap: 30px;
	}
	.resources-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.resources-section {
		padding: 60px 20px;
		gap: 40px;
	}
}
