/* ==========================================================================
   Septic Services of LA - small CSS layer
   Everything visual is set in Elementor (Site Settings + each widget's Style
   tab). This file only covers things Elementor has no control for.
   ========================================================================== */

/* Site fonts, served from this theme (Latin subset, variable weights). The two upright files are
   preloaded in functions.php so they arrive before first paint and text doesn't reflow. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/outfit-latin.woff2") format("woff2"); }

/* Contact Form 7 (not an Elementor widget): full-width fields and tidy spacing.
   Colors, borders and the button come from Elementor Site Settings. */
.wpcf7 form p { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.wpcf7 label { display: block; font-size: 14px; font-weight: 600; }
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea,
.wpcf7 select { width: 100%; margin-top: 6px; }
.wpcf7 textarea { height: 110px; resize: vertical; }
.wpcf7 input[type="submit"] { width: 100%; min-height: 54px; cursor: pointer; }
/* Loading spinner sits inside the submit button instead of hanging past the form edge. */
.wpcf7 form p:has(input[type="submit"]) { position: relative; }
.wpcf7 .wpcf7-spinner { position: absolute; right: 16px; top: 50%; margin: -12px 0 0 !important; }

/* Tables inside blog posts (post content is not built with Elementor widgets). */
.elementor-widget-theme-post-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 15.5px; }
.elementor-widget-theme-post-content th,
.elementor-widget-theme-post-content td { padding: 11px 14px; border-bottom: 1px solid #DCE6E0; text-align: left; vertical-align: top; }
.elementor-widget-theme-post-content thead th { background: #062A1C; color: #fff; font-weight: 600; }
.elementor-widget-theme-post-content tbody tr:nth-child(even) { background: #F1F5F2; }

/* Lead Call Buttons plugin bar (not Elementor): compact, icon beside label.
   Font Awesome is not loaded, so the two icons are drawn with CSS masks. */
#lcb_main_area.main_buttons { height: auto !important; }
#lcb_main_area .callnow_area,
#lcb_main_area .schedule_area { padding: 0 !important; height: 54px !important; vertical-align: middle; }
#lcb_main_area .schedule_area { border-left: 1px solid rgb(255 255 255 / .22); }
#lcb_main_area a { display: flex !important; align-items: center; justify-content: center; height: 54px; text-decoration: none; }
#lcb_main_area .callnow_bottom,
#lcb_main_area .schedule_bottom { display: flex !important; align-items: center; justify-content: center; height: 100%; }
#lcb_main_area .b_callnow,
#lcb_main_area .b_schedule { display: inline-flex !important; align-items: center; gap: 8px; font: 600 15px/1 "Figtree", sans-serif !important; }
#lcb_main_area i.fa::before { content: none !important; }
#lcb_main_area i.fa { display: inline-block !important; width: 17px !important; height: 17px !important; margin: 0 !important; background-color: currentColor; -webkit-mask: var(--lcb-icon) center / contain no-repeat; mask: var(--lcb-icon) center / contain no-repeat; }
#lcb_main_area i.fa-phone { --lcb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
#lcb_main_area i.fa-envelope { --lcb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm1 2.4V17h16V7.4l-7.4 5.2a1 1 0 0 1-1.2 0z M5.3 7l6.7 4.7L18.7 7z'/%3E%3C/svg%3E"); }
/* The bar adds bottom spacing on phones; keep it the footer color instead of white. */
@media (max-width: 767px) {
	body:has(#lcb_main_area) { background: #062A1C; }
	body:has(#lcb_main_area) .elementor-location-single,
	body:has(#lcb_main_area) .elementor-location-archive,
	body:has(#lcb_main_area) .elementor-location-header { background: #fff; }
}

/* Locations Directory plugin A-Z buttons (not Elementor). */
.m1o1-locations-directory button {
	background: #fff !important; color: #062A1C !important; border: 1px solid #DCE6E0 !important;
	border-radius: 999px !important; min-width: 38px; padding: 6px 10px !important; font: 600 14px/1 "Figtree", sans-serif !important;
	transition: background-color .2s, color .2s, border-color .2s;
}
.m1o1-locations-directory button:hover,
.m1o1-locations-directory button.active { background: #00693F !important; color: #fff !important; border-color: #00693F !important; }

/* CookieYes banner (not Elementor). Colors and text are set in the plugin's banner settings;
   this only stops Elementor's site-wide pill button style from inflating its buttons. */
.cky-consent-container .cky-btn,
.cky-modal .cky-btn { padding: 8px 12px !important; min-height: 40px; border-radius: 4px !important; font: 600 14px/1.2 "Figtree", sans-serif !important; }
.cky-consent-container .cky-notice-btn-wrapper { flex-wrap: nowrap !important; gap: 8px; }
.cky-consent-container .cky-notice-btn-wrapper .cky-btn { flex: 1 1 0; margin: 0 !important; white-space: nowrap; }
.cky-consent-container .cky-notice-des, .cky-consent-container .cky-notice-des p { font-size: 14px !important; line-height: 1.45 !important; margin: 0 !important; }
.cky-banner-btn-close, .cky-btn-close { padding: 4px !important; background: none !important; border: 0 !important; min-height: 0 !important; }
@media (max-width: 767px) {
	/* Sit above the Lead Call Buttons bar and keep the buttons on one row. */
	body:has(#lcb_main_area) .cky-consent-container { bottom: 54px !important; }
	.cky-consent-container { left: 0 !important; right: 0 !important; width: 100% !important; max-width: none !important; }
	.cky-consent-container .cky-consent-bar { padding: 12px 14px !important; border-radius: 12px 12px 0 0 !important; }
	/* Leave room on the right for the accessibility (OneTap) icon that overlaps the corner. */
	.cky-consent-container .cky-notice-des, .cky-consent-container .cky-notice-des p { font-size: 13px !important; }
	.cky-consent-container .cky-notice-des { padding-right: 90px !important; }
	.cky-consent-container .cky-banner-btn-close { top: 6px !important; right: 64px !important; }
	.cky-consent-container .cky-notice-btn-wrapper { flex-direction: row !important; margin-top: 10px !important; }
	.cky-consent-container .cky-notice-btn-wrapper .cky-btn { min-height: 36px; padding: 0 6px !important; font-size: 13px !important; }
}

/* Keyboard focus ring (accessibility). */
:where(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid #C4EF4F; outline-offset: 3px; }
