/* ============================================
   PPC PAGE - PROFESSIONAL DESIGN
   Brand Color: Grape #7A1E4F
   ============================================ */

:root {
	--grape-primary: #7A1E4F;
	--grape-hover: #5d1a3d;
	--grape-soft: rgba(122, 30, 79, 0.05);
	--grape-soft-md: rgba(122, 30, 79, 0.1);
	--text-navy: #343f52;
}

/* Global Utilities */
.text-grape {
	color: var(--grape-primary) !important;
}

.btn-grape {
	background-color: var(--grape-primary) !important;
	border-color: var(--grape-primary) !important;
	color: #fff !important;
	font-weight: 700;
}

.btn-grape:hover {
	background-color: var(--grape-hover) !important;
	border-color: var(--grape-hover) !important;
	transform: translateY(-2px);
}

.btn-outline-grape {
	color: var(--grape-primary) !important;
	border-color: var(--grape-primary) !important;
	background: transparent !important;
	font-weight: 700;
}

.btn-outline-grape:hover {
	background-color: var(--grape-primary) !important;
	color: #fff !important;
}

.btn-white {
	background: #fff !important;
	color: var(--grape-primary) !important;
	border: none !important;
	font-weight: 700;
}

.btn-white:hover {
	background: #f8f9fa !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.bg-gradient-primary {
	background: linear-gradient(135deg, var(--grape-primary) 0%, var(--grape-hover) 100%) !important;
}

.hover-grape:hover {
	color: var(--grape-primary) !important;
}

/* Accordion Section */
.accordion-wrapper-clean {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.accordion-item-clean {
	background: #fff;
	border: 1px solid rgba(122, 30, 79, 0.08);
	border-radius: 1rem;
	overflow: hidden;
	transition: all 0.3s ease;
}

.accordion-item-clean:hover {
	border-color: var(--grape-primary);
	box-shadow: 0 8px 20px rgba(122, 30, 79, 0.08);
}

.accordion-header-clean {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 1.5rem 2rem;
	cursor: pointer;
	transition: all 0.3s ease;
}

.accordion-header-clean:hover {
	background: var(--grape-soft);
}

.number-circle {
	width: 45px;
	height: 45px;
	background: var(--grape-soft-md);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	color: var(--grape-primary);
	font-size: 1rem;
	flex-shrink: 0;
}

.accordion-header-clean h5 {
	flex: 1;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--text-navy);
}

.accordion-toggle-icon {
	font-size: 1.5rem;
	color: var(--grape-primary);
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.accordion-item-clean.active .accordion-toggle-icon {
	transform: rotate(180deg);
}

.accordion-content-clean {
	padding: 0 2rem 2rem 6.5rem;
	display: none;
}

.accordion-item-clean.active .accordion-content-clean {
	display: block;
	animation: fadeInContent 0.3s ease;
}

@keyframes fadeInContent {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.problem-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.problem-tag {
	background: var(--grape-soft-md);
	color: var(--grape-primary);
	padding: 0.35rem 0.9rem;
	border-radius: 100px;
	font-size: 0.85rem;
	font-weight: 600;
}

.tracking-widest {
	letter-spacing: 0.12em;
}

/* Platform Cards */
.platform-cards-horizontal {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.platform-card-h {
	background: #fff;
	border: 1px solid rgba(122, 30, 79, 0.08);
	border-radius: 1.25rem;
	display: flex;
	align-items: stretch;
	overflow: hidden;
	transition: all 0.3s ease;
}

.platform-card-h:hover {
	border-color: var(--grape-primary);
	box-shadow: 0 12px 30px rgba(122, 30, 79, 0.1);
	transform: translateY(-3px);
}

.platform-visual-col {
	width: 120px;
	background: var(--grape-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.platform-logo-circle {
	width: 65px;
	height: 65px;
	background: var(--grape-primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}

.platform-card-h:hover .platform-logo-circle {
	transform: scale(1.1);
}

.platform-logo-circle i {
	font-size: 1.75rem;
	color: #fff;
}

.platform-content-col {
	flex: 1;
	padding: 2rem 2.5rem;
}

.platform-specialties {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.specialty-pill {
	background: var(--grape-soft);
	color: var(--grape-primary);
	padding: 0.35rem 0.9rem;
	border-radius: 100px;
	font-size: 0.85rem;
	font-weight: 600;
}

.platform-metric-inline {
	display: flex;
	gap: 2.5rem;
}

.metric-pair {
	display: flex;
	flex-direction: column;
}

.metric-pair strong {
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 0.25rem;
}

.metric-pair span {
	font-size: 0.85rem;
	color: var(--text-navy);
	font-weight: 600;
}

/* Methodology Flow */
.approach-flow-horizontal {
	position: relative;
}

.flow-item-row {
	background: #fff;
	border: 1px solid rgba(122, 30, 79, 0.08);
	border-radius: 1.25rem;
	padding: 2rem 2.5rem;
	display: flex;
	align-items: center;
	gap: 2.5rem;
	transition: all 0.3s ease;
	margin-bottom: 1.25rem;
}

.flow-item-row:hover {
	border-color: var(--grape-primary);
	box-shadow: 0 12px 30px rgba(122, 30, 79, 0.08);
	transform: scale(1.01);
}

.flow-number-box {
	width: 70px;
	height: 70px;
	background: linear-gradient(135deg, var(--grape-primary) 0%, var(--grape-hover) 100%);
	border-radius: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 900;
	font-size: 1.5rem;
	line-height: 1;
	flex-shrink: 0;
}

.flow-number-box small {
	font-size: 0.65rem;
	opacity: 0.8;
	font-weight: 600;
}

.flow-content-area {
	flex: 1;
}

.flow-content-area h4 {
	font-size: 1.2rem;
	margin-bottom: 0.6rem;
	font-weight: 700;
}

.flow-content-area p {
	margin: 0;
	color: var(--text-navy);
	line-height: 1.6;
	font-size: 0.95rem;
}

/* Deliverables Grid */
.deliverables-offset-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}

.deliverable-card-offset {
	background: #fff;
	border: 1px solid rgba(122, 30, 79, 0.08);
	border-radius: 1.25rem;
	padding: 2.5rem 2rem;
	transition: all 0.3s ease;
	position: relative;
}

.deliverable-card-offset:nth-child(even) {
	transform: translateY(1.5rem);
}

.deliverable-card-offset:hover {
	border-color: var(--grape-primary);
	box-shadow: 0 15px 40px rgba(122, 30, 79, 0.1);
	transform: translateY(-5px) !important;
}

.deliverable-number-badge {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	width: 40px;
	height: 40px;
	background: var(--grape-soft);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	color: var(--grape-primary);
	font-size: 1.1rem;
}

.deliverable-icon-box-large {
	width: 60px;
	height: 60px;
	background: var(--grape-primary);
	border-radius: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.deliverable-icon-box-large i {
	font-size: 1.75rem;
	color: #fff;
}

.deliverable-card-offset h4 {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
	font-weight: 700;
}

.deliverable-features {
	list-style: none;
	padding: 0;
	margin: 1.25rem 0 0 0;
}

.deliverable-features li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin-bottom: 0.6rem;
	font-size: 0.9rem;
	color: var(--text-navy);
}

.deliverable-features i {
	color: var(--grape-primary);
	font-size: 1rem;
	flex-shrink: 0;
	margin-top: 2px;
}

/* Case Study */
.case-magazine-layout {
	background: #fff;
	border-radius: 1.5rem;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.case-header-bar {
	background: var(--grape-primary);
	padding: 1.75rem 2.5rem;
	color: #fff;
}

.case-category {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.9;
	margin-bottom: 0.5rem;
}

.case-header-bar h3 {
	font-size: 1.75rem;
	font-weight: 800;
	color: #fff;
	margin: 0;
}

.case-body-content {
	padding: 3rem 2.5rem;
}

.case-story-intro {
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--text-navy);
	margin-bottom: 2.5rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid rgba(122, 30, 79, 0.1);
}

.case-metrics-showcase {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

.metric-box-large {
	text-align: center;
	padding: 1.75rem 1rem;
	background: var(--grape-soft);
	border-radius: 1rem;
	transition: all 0.3s ease;
}

.metric-box-large:hover {
	background: var(--grape-soft-md);
	transform: translateY(-3px);
}

.metric-box-large h3 {
	font-size: 2.25rem;
	font-weight: 900;
	color: var(--grape-primary);
	margin-bottom: 0.5rem;
	line-height: 1;
}

.metric-box-large p {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-navy);
	margin: 0;
}

.case-insights-section {
	background: var(--grape-soft);
	padding: 2rem;
	border-radius: 1.25rem;
}

.case-insights-section h5 {
	color: var(--grape-primary);
	margin-bottom: 1.25rem;
	font-weight: 800;
}

.insight-points {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.85rem;
}

.insight-point {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	background: #fff;
	padding: 1rem;
	border-radius: 0.75rem;
}

.insight-point i {
	color: var(--grape-primary);
	font-size: 1.15rem;
	flex-shrink: 0;
	margin-top: 2px;
}

.insight-point span {
	font-size: 0.9rem;
	color: var(--text-navy);
	font-weight: 500;
}

/* Modal */
#modal-ppc-audit .form-control:focus {
	border-color: var(--grape-primary);
	box-shadow: 0 0 0 0.25rem rgba(122, 30, 79, 0.1);
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 991px) {
	body,
	.content-wrapper {
		overflow-x: hidden;
	}
}

/* Responsive */
@media (max-width: 991px) {
	.platform-card-h {
		flex-direction: column;
	}

	.platform-visual-col {
		width: 100%;
		padding: 1.5rem;
	}

	.flow-item-row {
		flex-direction: column;
		text-align: center;
		gap: 1.25rem;
	}

	.deliverables-offset-grid {
		grid-template-columns: 1fr;
	}

	.deliverable-card-offset:nth-child(even) {
		transform: translateY(0);
	}

	.case-metrics-showcase {
		grid-template-columns: repeat(2, 1fr);
	}

	.insight-points {
		grid-template-columns: 1fr;
	}

	.accordion-content-clean {
		padding: 0 2rem 2rem 2rem;
	}
}

@media (max-width: 767px) {
	/* Section padding */
	section.wrapper .container,
	.wrapper .container {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
		max-width: 100%;
	}

	img.img-fluid {
		max-width: 100%;
		height: auto;
	}

	/* Hero */
	.display-2 {
		font-size: 1.75rem !important;
		line-height: 1.25;
	}

	.lead.fs-lg {
		font-size: 1rem !important;
	}

	/* Hero stats */
	.col-sm-4 h3 {
		font-size: 1.5rem !important;
	}

	/* Buttons */
	.d-flex.flex-wrap.gap-3 .btn-lg {
		width: 100%;
		justify-content: center;
	}

	/* Accordion */
	.accordion-header-clean {
		padding: 1.25rem 1.5rem;
		gap: 1rem;
		flex-wrap: wrap;
	}

	.accordion-header-clean h5 {
		font-size: 1rem;
		order: 1;
		flex: 1 1 100%;
		padding-right: 2.5rem;
	}

	.number-circle {
		width: 38px;
		height: 38px;
		font-size: 0.9rem;
	}

	.accordion-content-clean {
		padding: 0 1.5rem 1.5rem 1.5rem;
	}

	.problem-tags {
		gap: 0.4rem;
	}

	.problem-tag {
		font-size: 0.8rem;
		padding: 0.3rem 0.75rem;
	}

	/* Platform cards */
	.platform-content-col {
		padding: 1.75rem 1.5rem;
	}

	.platform-content-col h4 {
		font-size: 1.1rem !important;
	}

	.platform-specialties {
		gap: 0.4rem;
	}

	.specialty-pill {
		font-size: 0.8rem;
		padding: 0.3rem 0.75rem;
	}

	.platform-metric-inline {
		gap: 1.5rem;
	}

	.metric-pair strong {
		font-size: 1.25rem;
	}

	/* Flow items */
	.flow-item-row {
		padding: 1.5rem 1.25rem;
	}

	.flow-number-box {
		width: 60px;
		height: 60px;
		font-size: 1.25rem;
	}

	.flow-content-area h4 {
		font-size: 1.1rem !important;
	}

	/* Deliverables */
	.deliverable-card-offset {
		padding: 2rem 1.5rem;
	}

	.deliverable-card-offset h4 {
		font-size: 1.1rem !important;
	}

	/* Case study */
	.case-header-bar {
		padding: 1.5rem 1.25rem;
	}

	.case-header-bar h3 {
		font-size: 1.35rem !important;
	}

	.case-category {
		font-size: 0.75rem;
	}

	.case-body-content {
		padding: 2.25rem 1.5rem;
	}

	.case-story-intro {
		font-size: 1rem;
		margin-bottom: 1.5rem;
		padding-bottom: 1.5rem;
	}

	.case-metrics-showcase {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.metric-box-large {
		padding: 1.25rem 1rem;
	}

	.metric-box-large h3 {
		font-size: 1.75rem;
	}

	.case-insights-section {
		padding: 1.5rem 1.25rem;
	}

	.insight-point {
		padding: 0.85rem;
	}

	.insight-point span {
		font-size: 0.85rem;
	}

	/* Read the Full Case Study button - center properly on mobile */
	.case-body-content .text-center.mt-8 {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
	}

	.case-body-content .text-center.mt-8 .btn {
		display: inline-block;
		width: auto;
	}

	/* CTA section */
	.display-4 {
		font-size: 1.5rem !important;
	}

	.card.shadow-lg .card-body {
		padding: 1.5rem !important;
	}

	/* PPC Modal */
	#modal-ppc-audit .modal-body {
		padding: 1.5rem !important;
	}

	#modal-ppc-audit .form-floating {
		margin-bottom: 0.75rem;
	}

	/* Center Read the Full Case Study button on mobile */
	.case-body-content .text-center.mt-8,
	.case-body-content .mt-8.text-center {
		display: flex;
		justify-content: center;
		width: 100%;
	}

	.case-body-content .text-center.mt-8 .btn,
	.case-body-content .mt-8.text-center .btn {
		width: 100%;
		max-width: 320px;
		display: block;
		text-align: center;
	}
}

@media (max-width: 575px) {
	.wrapper .container {
		padding-left: 0.75rem !important;
		padding-right: 0.75rem !important;
	}

	.display-2 {
		font-size: 1.5rem !important;
	}

	.display-3 {
		font-size: 1.35rem !important;
	}

	.accordion-header-clean {
		padding: 1rem 1.25rem;
	}

	.accordion-header-clean h5 {
		font-size: 0.95rem;
	}

	footer .d-md-flex {
		flex-direction: column;
		align-items: flex-start !important;
		gap: 1rem;
	}
}


/* Fix for Twitter/X Logo Visibility */
.uil-twitter::before,
.x-social-icon i::before {
	content: "\edc5" !important;
	/* The 'X' icon Unicode for Unicons */
	font-family: "unicons" !important;
	font-style: normal;
	font-weight: normal;
	display: inline-block;
	text-decoration: inherit;
	color: #ffffff;
	/* Ensures it's white */
	opacity: 1 !important;
}

/* Fix Space Inconsistency */
.offset-lg-1 {
	margin-left: 8.33333333% !important;
	/* Standard Bootstrap offset */
}

/* Ensure the container uses flexbox for alignment */
.nav.social.social-white {
	display: flex !important;
	align-items: center !important;
	gap: 20px !important;
	/* This creates exactly equal 20px space between every icon */
}

/* Reset anchor tags to ensure they don't have inherited margins */
.nav.social.social-white a {
	margin: 0 !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #ffffff !important;
	line-height: 1 !important;
}

/* Align the SVG Twitter-X icon perfectly with FontIcons */
.x-social-icon {
	height: 14px;
	/* Matches the SVG height for a tight bounding box */
}

.x-social-icon svg {
	display: block;
	fill: #ffffff !important;
	/* Ensures the X is white */
}

/* Ensure Unicons match the visual center */
.nav.social.social-white i {
	font-size: 1rem;
	display: block;
	line-height: 1;
}

.widget-title {
    margin-bottom: 1.25rem !important;
    font-size: 0.95rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: #ffffff !important;
}

footer .fs-sm,
footer address,
footer p,
footer li a {
    font-size: 0.85rem !important;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6) !important;
}
/* Hover effect */
.hover-grape:hover {
    color: #7a1e4f !important;
}
