/*
 Theme Name:   Astra Child
 Theme URI:    https://wpastra.com/
 Description:  Child theme for Astra. LP landing page template.
 Author:       Site
 Template:     astra
 Version:      1.0.7
*/

/* Footer: icon + phone text on one line (Elementor Icon List rows) */
#colophon .elementor-widget-icon-list .elementor-icon-list-item,
.elementor-location-footer .elementor-widget-icon-list .elementor-icon-list-item,
.ast-footer-wrap .elementor-widget-icon-list .elementor-icon-list-item,
.site-footer .elementor-widget-icon-list .elementor-icon-list-item {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	gap: 0.45rem !important;
}

#colophon .elementor-widget-icon-list .elementor-icon-list-icon,
.elementor-location-footer .elementor-widget-icon-list .elementor-icon-list-icon,
.ast-footer-wrap .elementor-widget-icon-list .elementor-icon-list-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	margin-block-end: 0 !important;
	margin-bottom: 0 !important;
}

#colophon .elementor-widget-icon-list .elementor-icon-list-text,
.elementor-location-footer .elementor-widget-icon-list .elementor-icon-list-text,
.ast-footer-wrap .elementor-widget-icon-list .elementor-icon-list-text {
	display: inline !important;
	line-height: 1.3 !important;
}

/* Footer: separate Icon widget + text/tel in same column -> one row */
#colophon .elementor-widget-wrap:has(.elementor-widget-icon):has(a[href^="tel:"]),
.elementor-location-footer .elementor-widget-wrap:has(.elementor-widget-icon):has(a[href^="tel:"]),
.ast-footer-wrap .elementor-widget-wrap:has(.elementor-widget-icon):has(a[href^="tel:"]) {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	gap: 0.45rem !important;
}

#colophon .elementor-widget-wrap:has(.elementor-widget-icon):has(a[href^="tel:"]) > .elementor-element,
.elementor-location-footer .elementor-widget-wrap:has(.elementor-widget-icon):has(a[href^="tel:"]) > .elementor-element,
.ast-footer-wrap .elementor-widget-wrap:has(.elementor-widget-icon):has(a[href^="tel:"]) > .elementor-element {
	margin-block-end: 0 !important;
	margin-bottom: 0 !important;
	width: auto !important;
	max-width: 100% !important;
}

/* Footer: hide phone-row icon when link is click-to-call (Elementor icon list) */
#colophon .elementor-icon-list-item:has(a[href^="tel:"]) .elementor-icon-list-icon,
.elementor-location-footer .elementor-icon-list-item:has(a[href^="tel:"]) .elementor-icon-list-icon,
.site-footer .elementor-icon-list-item:has(a[href^="tel:"]) .elementor-icon-list-icon,
.ast-footer-wrap .elementor-icon-list-item:has(a[href^="tel:"]) .elementor-icon-list-icon {
	display: none !important;
	width: 0 !important;
	min-width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	visibility: hidden !important;
}

/* Footer: no WhatsApp brand icons (Font Awesome / similar) */
#colophon .fab.fa-whatsapp,
#colophon .fa-brands.fa-whatsapp,
#colophon i[class*="fa-whatsapp"],
.elementor-location-footer .fab.fa-whatsapp,
.elementor-location-footer .fa-brands.fa-whatsapp,
.elementor-location-footer i[class*="fa-whatsapp"],
.site-footer .fab.fa-whatsapp,
.site-footer .fa-brands.fa-whatsapp {
	display: none !important;
}

/* Footer phone: after JS switches wa.me to tel, hide any leftover icon wrappers */
#colophon .ria-footer-tel-link .elementor-icon-list-icon:empty,
.site-footer .ria-footer-tel-link .elementor-icon-list-icon:empty,
.elementor-location-footer .ria-footer-tel-link .elementor-icon-list-icon:empty,
#colophon .ria-footer-tel-link .elementor-icon:empty,
.site-footer .ria-footer-tel-link .elementor-icon:empty {
	display: none !important;
}

#colophon .ria-footer-tel-link .elementor-icon-list-icon,
.site-footer .ria-footer-tel-link .elementor-icon-list-icon,
.elementor-location-footer .ria-footer-tel-link .elementor-icon-list-icon {
	min-width: 0 !important;
	padding-inline-end: 0 !important;
}

/*
 * Footer phone column: Elementor often stacks a separate "Icon" widget (black dot / broken font)
 * above the text or icon list. Hide those widgets in any column that contains a tel: link.
 */
#colophon .elementor-column:has(a[href^="tel:"]) .elementor-widget-icon,
.elementor-location-footer .elementor-column:has(a[href^="tel:"]) .elementor-widget-icon,
.ast-footer-wrap .elementor-column:has(a[href^="tel:"]) .elementor-widget-icon,
.site-footer .elementor-column:has(a[href^="tel:"]) .elementor-widget-icon,
#colophon [class*="elementor-col"]:has(a[href^="tel:"]) .elementor-widget-icon,
.elementor-location-footer [class*="elementor-col"]:has(a[href^="tel:"]) .elementor-widget-icon {
	display: none !important;
	width: 0 !important;
	min-width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* Tel icon-list row: kill any leftover ::before marker / pseudo icon */
#colophon .elementor-icon-list-item:has(a[href^="tel:"])::before,
.elementor-location-footer .elementor-icon-list-item:has(a[href^="tel:"])::before,
.site-footer .elementor-icon-list-item:has(a[href^="tel:"])::before,
.ast-footer-wrap .elementor-icon-list-item:has(a[href^="tel:"])::before {
	content: none !important;
	display: none !important;
}

/* Icon List: remove default bullets / markers that read as a black dot (theme + Elementor) */
#colophon .elementor-widget-icon-list .elementor-icon-list-items,
.elementor-location-footer .elementor-widget-icon-list .elementor-icon-list-items,
.ast-footer-wrap .elementor-widget-icon-list .elementor-icon-list-items,
.site-footer .elementor-widget-icon-list .elementor-icon-list-items {
	list-style: none !important;
	list-style-type: none !important;
	padding-inline-start: 0 !important;
	margin: 0 !important;
}

#colophon .elementor-widget-icon-list .elementor-icon-list-item,
.elementor-location-footer .elementor-widget-icon-list .elementor-icon-list-item,
.ast-footer-wrap .elementor-widget-icon-list .elementor-icon-list-item,
.site-footer .elementor-widget-icon-list .elementor-icon-list-item {
	list-style: none !important;
	list-style-type: none !important;
}

#colophon .elementor-widget-icon-list .elementor-icon-list-item::marker,
.elementor-location-footer .elementor-widget-icon-list .elementor-icon-list-item::marker,
.site-footer .elementor-widget-icon-list .elementor-icon-list-item::marker {
	content: none !important;
	font-size: 0 !important;
}

/* —— Standalone Privacy / Terms (inc/legal-pages.php) —— */
body.ria-legal-doc .ria-legal-page {
	padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

body.ria-legal-doc .ria-legal-page__wrap {
	max-width: 48rem;
	margin: 0 auto;
}

body.ria-legal-doc .ria-legal-page__container {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.65;
	color: #333;
	background: #fff;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	border-radius: 8px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

body.ria-legal-doc .ria-legal-page__title {
	color: #1a5d1a;
	border-bottom: 2px solid #1a5d1a;
	padding-bottom: 0.65rem;
	margin: 0 0 1rem;
	font-size: clamp(1.65rem, 3vw, 2rem);
}

body.ria-legal-doc .ria-legal-page__meta {
	margin: 0 0 1.25rem;
	color: #555;
	font-size: 0.95rem;
}

body.ria-legal-doc .ria-legal-page__container h2 {
	color: #2c3e50;
	margin: 2rem 0 0.75rem;
	font-size: 1.2rem;
}

body.ria-legal-doc .ria-legal-page__container p,
body.ria-legal-doc .ria-legal-page__container li {
	margin: 0 0 1rem;
}

body.ria-legal-doc .ria-legal-page__container a {
	color: #1a5d1a;
	font-weight: 600;
	text-decoration: underline;
}

body.ria-legal-doc .ria-legal-page__container a:hover,
body.ria-legal-doc .ria-legal-page__container a:focus {
	color: #145214;
}

/* —— Front / home: no WhatsApp floating (Click to Chat) + no WA icons in header/footer —— */
body.front-page #ht-ctc-chat,
body.front-page .ht-ctc-chat,
body.front-page .ht-ctc-group,
body.front-page .ht-ctc-share,
body.front-page .ht_ctc_style,
body.front-page .ht_ctc_chat_data,
body.front-page .ctc-no-number-message,
body.front-page .ht_ctc_greetings,
body.front-page .ht-ctc-html,
body.front-page span[class*="ht_ctc"] {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
	opacity: 0 !important;
	position: absolute !important;
	left: -9999px !important;
}

body.front-page #masthead .fab.fa-whatsapp,
body.front-page #masthead .fa-brands.fa-whatsapp,
body.front-page #masthead i[class*="fa-whatsapp"],
body.front-page #masthead .eicon-whatsapp,
body.front-page .elementor-location-header .fab.fa-whatsapp,
body.front-page .elementor-location-header .fa-brands.fa-whatsapp,
body.front-page .elementor-location-header i[class*="fa-whatsapp"],
body.front-page .elementor-location-header .eicon-whatsapp,
body.front-page #colophon .fab.fa-whatsapp,
body.front-page #colophon .fa-brands.fa-whatsapp,
body.front-page .elementor-location-footer .fab.fa-whatsapp,
body.front-page .elementor-location-footer .fa-brands.fa-whatsapp {
	display: none !important;
}

body.front-page .elementor-icon-list-item:has(a[href*="wa.me"]),
body.front-page .elementor-icon-list-item:has(a[href*="whatsapp.com"]),
body.front-page .elementor-icon-list-item:has(a[href*="api.whatsapp.com"]) {
	display: none !important;
}

body.front-page #masthead a[href*="wa.me"],
body.front-page #masthead a[href*="whatsapp.com"],
body.front-page .elementor-location-header a[href*="wa.me"],
body.front-page .elementor-location-header a[href*="whatsapp.com"] {
	display: none !important;
}
