/**
 * Landing Page Styles
 * Conversion-focused landing pages for Google Ads
 *
 * Colors: Certo Branding
 * - Primary CTA: #0473A9
 * - Teal sections: #00A09A
 * - Navy CTA: #08506D
 * - Headings: #424547
 * - Body: #333333
 * - Off white: #f3f2f2
 */

/* ========================================
   Landing Hero
   ======================================== */

.landing-hero {
	position: relative;
	min-height: 500px;
	background-color: #222222;
	display: flex;
	align-items: center;
	padding: 80px 0;
	overflow: hidden;
}

.landing-hero__picture,
.landing-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.landing-hero__bg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.landing-hero__overlay {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 1;
}

.landing-hero__content {
	position: relative;
	z-index: 2;
}

.landing-hero__title {
	font-family: Panton, sans-serif;
	font-weight: 700;
	font-size: 2.5rem;
	color: #ffffff;
	line-height: 1.2;
	margin-bottom: 15px;
}

.landing-hero__subtitle {
	font-size: 1.125rem;
	color: #ffffff;
	line-height: 1.6;
	margin-bottom: 30px;
	max-width: 600px;
}

.landing-hero__ctas {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.landing-hero__btn {
	background-color: #0473A9 !important;
	color: #ffffff !important;
	border-radius: 5px !important;
	padding: 1rem 2rem !important;
	font-size: 1rem;
	font-weight: 600;
	border: none !important;
	transition: background-color 0.3s ease-out;
}

.landing-hero__btn:hover {
	background-color: #007095 !important;
}

.landing-hero__secondary-cta {
	color: #ffffff;
	font-size: 1rem;
	text-decoration: none;
	border-bottom: 1px solid rgba(255,255,255,0.5);
	padding-bottom: 2px;
	transition: border-color 0.3s ease;
}

.landing-hero__secondary-cta:hover {
	color: #ffffff;
	border-bottom-color: #ffffff;
}

.landing-hero__badges {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.landing-hero__badge {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.875rem;
	padding-left: 22px;
	position: relative;
}

.landing-hero__badge::before {
	content: '\2713';
	position: absolute;
	left: 0;
	color: #00A09A;
	font-weight: 700;
}

/* ========================================
   Proof Bar
   ======================================== */

.proof-bar {
	background-color: #f3f2f2;
	padding: 15px 0;
	border-bottom: 1px solid #e2e1e1;
}

.proof-bar__items {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
}

.proof-bar__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-right: 40px;
	border-right: 1px solid #e2e1e1;
}

.proof-bar__item:last-child {
	padding-right: 0;
	border-right: none;
}

.proof-bar__icon {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.proof-bar__label {
	font-family: Panton, sans-serif;
	font-weight: 700;
	font-size: 0.9375rem;
	color: #424547;
	line-height: 1.2;
}

.proof-bar__sublabel {
	font-size: 0.75rem;
	color: #5e5e5e;
	line-height: 1.2;
	display: block;
}

/* ========================================
   Service Grid
   ======================================== */

.service-grid {
	padding: 50px 0 30px;
	background-color: #f3f2f2;
}

.service-grid__intro {
	color: #333333;
	margin-bottom: 30px;
}

.service-grid__items {
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding: 0 15px;
}

.service-grid__item {
	flex: 0 0 calc(25% - 24px);
	max-width: calc(25% - 24px);
	margin: 0 12px 24px;
	text-align: center;
}

@media only screen and (min-width: 641px) and (max-width: 1024px) {
	.service-grid__item {
		flex: 0 0 calc(33.333% - 24px);
		max-width: calc(33.333% - 24px);
	}
}

.service-grid__card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	height: 100%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-grid__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	color: inherit;
}

.service-grid__image {
	width: 100%;
	height: 190px;
	overflow: hidden;
}

.service-grid__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.service-grid__card:hover .service-grid__image img {
	transform: scale(1.06);
}

.service-grid__title {
	font-family: Panton, sans-serif;
	font-weight: 700;
	font-size: 1.0625rem;
	color: #424547;
	margin: 0;
	padding: 16px 18px 4px;
}

.service-grid__desc {
	font-size: 0.8125rem;
	color: #5e5e5e;
	line-height: 1.55;
	padding: 0 18px 18px;
	margin-bottom: 0;
	flex-grow: 1;
}

.service-grid__footer-link {
	display: inline-block;
	margin-top: 6px;
	margin-bottom: 20px;
	color: #0473A9;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.3s ease;
}

.service-grid__footer-link:hover {
	color: #007095;
}

/* ========================================
   Why Certo
   ======================================== */

.why-certo {
	background-color: #00A09A;
	padding: 50px 0;
}

.why-certo__grid {
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding: 0 15px;
}

.why-certo__item-wrap {
	flex: 0 0 calc(33.333% - 24px);
	max-width: calc(33.333% - 24px);
	margin: 0 12px 24px;
	padding: 0;
	width: auto;
}

.why-certo__card {
	background: #ffffff;
	border-radius: 10px;
	padding: 28px 22px;
	text-align: center;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.why-certo__icon {
	width: 48px;
	height: 48px;
	margin-bottom: 15px;
	object-fit: contain;
}

.why-certo__card-title {
	font-family: Panton, sans-serif;
	font-weight: 700;
	font-size: 1.125rem;
	color: #424547;
	margin-bottom: 10px;
}

.why-certo__card-text {
	font-size: 0.875rem;
	color: #333333;
	line-height: 1.6;
	margin-bottom: 0;
}

/* ========================================
   Steps
   ======================================== */

.steps-section {
	padding: 50px 0;
	background-color: #ffffff;
}

.steps-section__grid {
	max-width: 1000px;
	margin: 0 auto 30px;
	text-align: center;
}

.steps-section__item {
	padding: 0 20px;
	margin-bottom: 30px;
}

.steps-section__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: #00A09A;
	color: #ffffff;
	font-family: Panton, sans-serif;
	font-weight: 700;
	font-size: 1.5rem;
	margin-bottom: 15px;
}

.steps-section__title {
	font-family: Panton, sans-serif;
	font-weight: 700;
	font-size: 1rem;
	color: #424547;
	margin-bottom: 8px;
}

.steps-section__text {
	font-size: 0.875rem;
	color: #333333;
	line-height: 1.6;
}

.steps-section__cta {
	background-color: #0473A9 !important;
	color: #ffffff !important;
	border-radius: 5px !important;
	font-weight: 600;
	padding: 1rem 2rem !important;
}

.steps-section__cta:hover {
	background-color: #007095 !important;
}

/* ========================================
   Reviews
   ======================================== */

.reviews-section {
	padding: 50px 0;
	background-color: #ffffff;
}

.reviews-section__card {
	background: #f3f2f2;
	border-radius: 5px;
	padding: 25px 30px;
	margin-bottom: 20px;
}

.reviews-section__stars {
	color: #f5a623;
	font-size: 1.25rem;
	margin-bottom: 10px;
	letter-spacing: 2px;
}

.reviews-section__quote {
	font-size: 1rem;
	font-style: italic;
	color: #333333;
	line-height: 1.6;
	margin: 0 0 15px;
	padding: 0;
	border: none;
}

.reviews-section__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.8125rem;
}

.reviews-section__name {
	font-family: Panton, sans-serif;
	font-weight: 700;
	color: #424547;
}

.reviews-section__source,
.reviews-section__date {
	color: #5e5e5e;
}

.reviews-section__source::before,
.reviews-section__date::before {
	content: '\00B7';
	margin-left: 2px;
	margin-right: 8px;
}

.reviews-section__footer {
	display: inline-block;
	margin-top: 10px;
	color: #0473A9;
	font-size: 0.9375rem;
	text-decoration: none;
}

.reviews-section__footer:hover {
	color: #007095;
}

/* ========================================
   CTA Form
   ======================================== */

.cta-form {
	background-color: #00A09A;
	padding: 50px 0;
}

.cta-form__card {
	background: #ffffff;
	border-radius: 5px;
	padding: 40px;
}

.cta-form__title {
	font-family: Panton, sans-serif;
	font-weight: 700;
	font-size: 1.5rem;
	color: #424547;
	text-align: center;
	margin-bottom: 10px;
}

.cta-form__subtitle {
	text-align: center;
	color: #333333;
	font-size: 1rem;
	margin-bottom: 25px;
}

.cta-form__form input[type="text"],
.cta-form__form input[type="email"],
.cta-form__form input[type="tel"],
.cta-form__form select,
.cta-form__form textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #cccccc;
	border-radius: 3px;
	font-size: 1rem;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	transition: border-color 0.3s ease;
	margin-bottom: 15px;
}

.cta-form__form input:focus,
.cta-form__form select:focus,
.cta-form__form textarea:focus {
	border-color: #0473A9;
	outline: none;
	box-shadow: 0 0 0 2px rgba(4, 115, 169, 0.1);
}

.cta-form__form input[type="submit"],
.cta-form__form .wpcf7-submit {
	background-color: #0473A9;
	color: #ffffff;
	border: none;
	border-radius: 5px;
	padding: 15px 30px;
	font-size: 1.125rem;
	font-family: Panton, sans-serif;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	transition: background-color 0.3s ease-out;
}

.cta-form__form input[type="submit"]:hover,
.cta-form__form .wpcf7-submit:hover {
	background-color: #007095;
}

.cta-form__trust {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.cta-form__trust-item {
	font-size: 0.8125rem;
	color: #00A09A;
	font-weight: 600;
}

.cta-form__button-wrap {
	text-align: center;
	margin: 10px 0 5px;
}

.cta-form__btn {
	background-color: #0473A9 !important;
	color: #ffffff !important;
	border-radius: 5px !important;
	padding: 15px 40px !important;
	font-size: 1.125rem;
	font-family: Panton, sans-serif;
	font-weight: 600;
	display: inline-block;
}

.cta-form__btn:hover {
	background-color: #007095 !important;
}

.cta-form__alt {
	text-align: center;
	color: #ffffff;
	font-size: 1rem;
	margin-top: 20px;
}

.cta-form__phone {
	color: #ffffff;
	font-weight: 700;
	text-decoration: underline;
}

.cta-form__phone:hover {
	color: #ffffff;
}

/* ========================================
   Local Info
   ======================================== */

.local-info {
	background-color: #f3f2f2;
	padding: 50px 0;
}

.local-info__map iframe {
	width: 100%;
	height: 300px;
	border: none;
	border-radius: 5px;
}

.local-info__desc {
	font-size: 1rem;
	color: #333333;
	line-height: 1.6;
	margin-bottom: 20px;
}

.local-info__list {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.local-info__list-item {
	padding: 5px 0 5px 28px;
	position: relative;
	font-size: 0.9375rem;
	color: #333333;
}

.local-info__list-item--address::before { content: '\1F4CD'; position: absolute; left: 0; }
.local-info__list-item--phone::before { content: '\1F4DE'; position: absolute; left: 0; }
.local-info__list-item--hours::before { content: '\1F550'; position: absolute; left: 0; }

.local-info__list-item a {
	color: #0473A9;
	text-decoration: none;
	font-weight: 600;
}

.local-info__extra {
	font-size: 0.9375rem;
	color: #333333;
	font-style: italic;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #e2e1e1;
}

/* ========================================
   CTA Banner
   ======================================== */

.cta-banner {
	background-color: #08506D;
	padding: 40px 0;
}

.cta-banner__title {
	color: #ffffff;
	font-family: Panton, sans-serif;
	font-weight: 700;
	font-size: 1.25rem;
	margin-bottom: 20px;
}

.cta-banner .button.outline-white {
	background: transparent;
	border: 2px solid #ffffff;
	color: #ffffff;
	border-radius: 5px;
	padding: 0.875rem 2rem;
	font-weight: 600;
	transition: all 0.3s ease;
}

.cta-banner .button.outline-white:hover {
	background: #ffffff;
	color: #08506D;
}

/* ========================================
   Scroll Reveal Animations
   Pure CSS + IntersectionObserver (no library)
   ======================================== */

/* Base state: invisible, slightly shifted */
.lp-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Revealed state */
.lp-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Stagger children: cards, steps, proof items */
.lp-stagger > .lp-reveal:nth-child(1) { transition-delay: 0s; }
.lp-stagger > .lp-reveal:nth-child(2) { transition-delay: 0.08s; }
.lp-stagger > .lp-reveal:nth-child(3) { transition-delay: 0.16s; }
.lp-stagger > .lp-reveal:nth-child(4) { transition-delay: 0.24s; }
.lp-stagger > .lp-reveal:nth-child(5) { transition-delay: 0.32s; }
.lp-stagger > .lp-reveal:nth-child(6) { transition-delay: 0.40s; }

/* Hero: fade in from below, slightly slower */
.landing-hero__content {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s,
	            transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.landing-hero.is-visible .landing-hero__content {
	opacity: 1;
	transform: translateY(0);
}

/* Hero badges: fade in after title */
.landing-hero__badges {
	opacity: 0;
	transition: opacity 0.5s ease 0.7s;
}

.landing-hero.is-visible .landing-hero__badges {
	opacity: 1;
}

/* Proof bar items: subtle slide up with stagger */
.proof-bar__item {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.proof-bar.is-visible .proof-bar__item:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.proof-bar.is-visible .proof-bar__item:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
.proof-bar.is-visible .proof-bar__item:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.19s; }
.proof-bar.is-visible .proof-bar__item:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }

/* Steps numbers: scale pop */
.steps-section__number {
	transform: scale(0.7);
	opacity: 0;
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
	            opacity 0.4s ease;
}

.steps-section__item.is-visible .steps-section__number {
	transform: scale(1);
	opacity: 1;
}

/* Review cards: subtle slide from left */
.reviews-section__card {
	opacity: 0;
	transform: translateX(-16px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.reviews-section__card.is-visible {
	opacity: 1;
	transform: translateX(0);
}

.reviews-section__card:nth-child(2) { transition-delay: 0.1s; }
.reviews-section__card:nth-child(3) { transition-delay: 0.2s; }

/* CTA form card: scale up gently */
.cta-form__card {
	opacity: 0;
	transform: scale(0.97);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.cta-form.is-visible .cta-form__card {
	opacity: 1;
	transform: scale(1);
}

/* CTA banner: fade in */
.cta-banner__title,
.cta-banner .button {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.cta-banner.is-visible .cta-banner__title {
	opacity: 1;
	transform: translateY(0);
}

.cta-banner.is-visible .button {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.15s;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	.lp-reveal,
	.landing-hero__content,
	.landing-hero__badges,
	.proof-bar__item,
	.steps-section__number,
	.reviews-section__card,
	.cta-form__card,
	.cta-banner__title,
	.cta-banner .button {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* ========================================
   Responsive
   ======================================== */

@media only screen and (max-width: 640px) {
	.landing-hero {
		min-height: 400px;
		padding: 60px 0;
	}
	.landing-hero__title {
		font-size: 1.75rem;
	}
	.landing-hero__ctas {
		flex-direction: column;
		align-items: flex-start;
	}
	.service-grid__item {
		flex: 0 0 calc(50% - 16px);
		max-width: calc(50% - 16px);
		margin: 0 8px 16px;
	}
	.proof-bar__items {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px 16px;
		justify-content: stretch;
		align-items: start;
	}
	.proof-bar__item {
		padding-right: 0;
		border-right: none;
		gap: 8px;
		min-width: 0;
	}
	.proof-bar__item:nth-child(odd) {
		border-right: 1px solid #e2e1e1;
		padding-right: 16px;
	}
	.proof-bar__text {
		min-width: 0;
	}
	.proof-bar__label { font-size: 0.8125rem; }
	.proof-bar__sublabel { font-size: 0.6875rem; }
	.why-certo__item-wrap {
		flex: 0 0 calc(50% - 16px);
		max-width: calc(50% - 16px);
		margin: 0 8px 16px;
	}
	.why-certo__card {
		padding: 20px 15px;
	}
	.steps-section__item {
		display: flex;
		align-items: flex-start;
		gap: 15px;
		text-align: left;
	}
	.steps-section__number {
		flex-shrink: 0;
		width: 40px;
		height: 40px;
		font-size: 1.25rem;
	}
	.cta-form__card {
		padding: 25px 20px;
	}
	.cta-form__trust {
		flex-direction: column;
		align-items: center;
		gap: 8px;
	}
	.reviews-section__meta {
		flex-wrap: wrap;
	}
}
