/*
Theme Name: Hello Elementor Child
Theme URI: https://carpetcleaningauckland.info/
Description: Child theme of Hello Elementor for ABC Carpet Cleaning.
Author: smegoweb
Template: hello-elementor
Version: 2.0.0
Requires PHP: 7.4
Text Domain: hello-elementor-child
*/

/* Moved from the parent theme's Customizer > Additional CSS (it does not carry over on theme switch) */
.home_schema {
	height: 0;
}

/* Contact Form 7 "Free Quote Form" (Home + Service pages, inside the white Elementor card).
   Desktop: Name|Phone and Email|Suburb side by side (the first 4 <p>), the rest full width. Mobile: one per row. */
.wpcf7-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 20px;
}
.wpcf7-form > * {
	grid-column: 1 / -1;
}
.wpcf7-form > p:nth-of-type(-n+4) {
	grid-column: auto;
}
@media (max-width: 767px) {
	.wpcf7-form {
		grid-template-columns: 1fr;
	}
	.wpcf7-form > p:nth-of-type(-n+4) {
		grid-column: 1 / -1;
	}
}
.wpcf7-form p {
	margin: 0 0 16px;
}
.wpcf7-form label {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: #333;
}
.wpcf7-form br {
	display: none;
}
.wpcf7 input:not([type="submit"]),
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	font-size: 15px;
	font-weight: 400;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	transition: border-color .2s, box-shadow .2s;
}
.wpcf7 input:not([type="submit"]):focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: #2196F3;
	box-shadow: 0 0 0 3px rgba(33, 150, 243, .15);
}
.wpcf7 textarea {
	height: 120px;
	resize: vertical;
}
.wpcf7 input[type="submit"] {
	width: 100%;
	background-color: #2196F3;
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s;
}
.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus {
	background-color: #1976D2;
}
.wpcf7 .wpcf7-spinner {
	display: block;
	margin: 10px auto 0;
}
.wpcf7 form .wpcf7-response-output {
	margin: 0 0 16px;
	border-radius: 4px;
}

/* HTML sitemap ([cca_sitemap] on /sitemap/) */
.cca-sitemap,
.cca-sitemap ul {
	margin: 0;
	padding-left: 22px;
}
.cca-sitemap li {
	margin: 6px 0;
	font-size: 17px;
}
.cca-sitemap > li {
	font-weight: 600;
}
.cca-sitemap ul li {
	font-weight: 400;
	font-size: 16px;
}

/* v1.9: breadcrumb bar under the header */
.cca-breadcrumbs {
	background: #E6E6E6;
	font-size: 14px;
}
.cca-breadcrumbs ol {
	max-width: 1200px; /* v2.0: matches the Elementor container width */
	margin: 0 auto;
	padding: 10px;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
}
.cca-breadcrumbs li {
	color: #54595F;
}
.cca-breadcrumbs li + li::before {
	content: "\203A";
	margin: 0 8px;
	color: #7A7A7A;
}
.cca-breadcrumbs a {
	color: #2196F3;
}
.cca-breadcrumbs a:hover {
	text-decoration: underline;
}

/* ===== v2.0 layout (classes are set in Elementor > Advanced > CSS Classes) ===== */

/* Header 13: sticky nav row (Elementor Pro Sticky) gets a soft shadow once the page scrolls */
.cca-header.elementor-sticky--effects {
	box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}

/* Testimonial carousels (home + /testimonials/): Elementor sizes slides by their text, so cards end up uneven */
.cca-testimonials .swiper-slide {
	height: auto;
}
.cca-testimonials .elementor-testimonial {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.cca-testimonials .elementor-testimonial__footer {
	flex-shrink: 0;
	margin-bottom: 22px; /* Elementor zeroes the name row's vertical padding, so the card ended right under the name */
}
.cca-testimonials .elementor-testimonial__content {
	flex: 1 1 auto;
	border-radius: 10px 10px 0 0;
}

/* Services/Areas single templates: classic page content rendered by the Post Content widget */
.cca-entry .elementor-widget-container {
	max-width: 900px;
	margin: 0 auto;
}
.cca-entry h2,
.cca-entry h3,
.cca-entry h4 {
	margin: 1.6em 0 .5em;
}
.cca-entry h2:first-child,
.cca-entry h3:first-child {
	margin-top: 0;
}
.cca-entry img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	margin: 6px 0 12px;
}
.cca-entry ul,
.cca-entry ol {
	padding-left: 1.3em;
	margin: 0 0 1em;
}

/* FAQ toggle (page 397): roomier rows */
.cca-faq .elementor-tab-title {
	padding: 18px 20px;
}
.cca-faq .elementor-tab-content {
	padding: 4px 20px 20px;
}

/* ===== v2.0 hover effects (Elementor has no setting for these) ===== */

/* text links inside content: underline + smooth colour change */
.elementor-widget-text-editor a,
.cca-entry a,
.elementor-widget-theme-post-content a {
	transition: color .2s ease, text-decoration-color .2s ease;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
}
.elementor-widget-text-editor a:hover,
.cca-entry a:hover,
.elementor-widget-theme-post-content a:hover {
	text-decoration-color: currentColor;
}

/* icon lists with links (top bar, footer, contact) */
.elementor-icon-list-item > a {
	transition: color .2s ease, opacity .2s ease;
}
.elementor-location-header .elementor-icon-list-item > a:hover .elementor-icon-list-text {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* all buttons (Elementor + CF7 submit): small lift; colour change is the native Hover setting */
.elementor-button,
.wpcf7-submit {
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
}
.elementor-button:hover,
.wpcf7-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}
.wpcf7-submit:hover {
	filter: brightness(.9);
}

/* feature cards (class cca-card on the Elementor columns), post cards, price tables: lift on hover */
.cca-card,
.elementor-post__card,
.elementor-price-table {
	transition: transform .25s ease, box-shadow .25s ease;
}
.cca-card:hover,
.elementor-post__card:hover,
.elementor-widget-price-table:hover .elementor-price-table {
	transform: translateY(-4px);
}
.elementor-post__card:hover {
	box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
}

/* post card image zoom + title colour */
.elementor-post__thumbnail img {
	transition: transform .4s ease, filter .3s; /* keep Elementor's filter transition */
}
.elementor-post__card:hover .elementor-post__thumbnail img {
	transform: scale(1.06) translate(-50%, -50%); /* same order as Elementor's base transform */
}
.elementor-post__title a {
	transition: color .2s ease;
}
.elementor-post__title a:hover {
	color: var(--e-global-color-primary);
}
.elementor-post__read-more:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* FAQ toggle titles */
.cca-faq .elementor-tab-title a {
	transition: color .2s ease;
}
.cca-faq .elementor-tab-title:hover a {
	color: var(--e-global-color-secondary);
}

/* keyboard users see where they are */
a:focus-visible,
.elementor-button:focus-visible,
.wpcf7-submit:focus-visible {
	outline: 2px solid var(--e-global-color-primary);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.cca-card, .elementor-post__card, .elementor-price-table, .elementor-button, .wpcf7-submit, .elementor-post__thumbnail img {
		transition: none;
		transform: none !important;
	}
}

/* Pricing page: a long paragraph block is marked up as <h5> in the content; give it reading line-height */
.cca-longtext h5 {
	line-height: 1.6;
}
