/*
Theme Name: Lady Bug Pest Control
Theme URI: https://ladybugpci.com/
Author: Lady Bug Pest Control
Description: Block theme for Lady Bug Pest Control, rebuilt from the original GoDaddy Website Builder site. Edit everything under Appearance > Editor.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ladybug-pest
*/

/* ---------- Header ---------- */
.lb-topbar a { text-decoration: none; }
.lb-topbar a:hover { text-decoration: underline; }
.lb-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.lb-header .wp-block-site-title a { text-decoration: none; }
.lb-header .wp-block-navigation .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--line) !important;
	min-width: 15rem;
	padding: .35rem 0;
}
.lb-header .wp-block-navigation .wp-block-navigation__submenu-container a { padding: .4rem 1rem; }
.lb-header .wp-block-navigation .wp-block-navigation__submenu-container a:hover { background: var(--wp--preset--color--mist); }

/* ---------- Hero ---------- */
.lb-hero .wp-block-cover__image-background { filter: grayscale(1) contrast(1.05); }
.lb-hero h1 { max-width: 14ch; text-wrap: balance; margin-top: 1rem; }
.lb-hero .wp-block-buttons { margin-top: 2rem; }
.lb-hero .lb-since {
	display: inline-block;
	border: 2px solid currentColor;
	border-radius: 999px;
	padding: .2rem .9rem;
}

/* The one decorative device: a ladybug spot marking section headings */
.lb-spot::before {
	content: "";
	display: inline-block;
	width: .55em; height: .55em;
	margin-right: .45em;
	border-radius: 50%;
	background: var(--wp--preset--color--brand-red);
	box-shadow: .2em 0 0 -.05em var(--wp--preset--color--ink);
	vertical-align: .08em;
}

/* ---------- Pest pages ---------- */
.lb-pest-figure img { width: 100%; height: auto; mix-blend-mode: multiply; }
.lb-pest-card a { text-decoration: none; color: inherit; }
.lb-pest-card a:hover h3 { color: var(--wp--preset--color--red-deep); text-decoration: underline; }
.lb-pest-card img { aspect-ratio: 1; object-fit: contain; background: var(--wp--preset--color--mist); padding: 1rem; }

/* ---------- Hours table ---------- */
.lb-hours table { border-collapse: collapse; width: 100%; }
.lb-hours td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: .45rem 0; }
.lb-hours td:last-child { text-align: right; }

/* ---------- Quote form ---------- */
.lb-form { display: grid; gap: 1rem; }
.lb-form .lb-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.lb-form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.lb-form input[type=text], .lb-form input[type=email], .lb-form input[type=tel], .lb-form textarea {
	width: 100%; box-sizing: border-box;
	padding: .75rem .85rem;
	border: 1px solid #b9bebb; border-radius: 4px;
	font: inherit; background: #fff; color: inherit;
}
.lb-form textarea { min-height: 7rem; resize: vertical; }
.lb-form input:focus, .lb-form textarea:focus { outline: 3px solid var(--wp--preset--color--brand-red); outline-offset: 1px; border-color: transparent; }
.lb-form .lb-hp { position: absolute !important; left: -9999px !important; }
.lb-form button {
	justify-self: start;
	background: var(--wp--preset--color--red-deep); color: #fff;
	border: 0; border-radius: 4px; padding: .85rem 1.6rem;
	font: inherit; font-weight: 700; cursor: pointer;
}
.lb-form button:hover { background: var(--wp--preset--color--ink); }
.lb-form .lb-hint { display: block; font-size: .85rem; color: var(--wp--preset--color--ink-soft); margin: .25rem 0 0; }
.lb-notice { padding: 1rem 1.2rem; border-left: 5px solid; margin-bottom: 1.25rem; }
.lb-notice--ok { border-color: #2e7d32; background: #edf7ee; }
.lb-notice--err { border-color: var(--wp--preset--color--red-deep); background: #fdecee; }
@media (max-width: 640px) { .lb-form .lb-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.lb-footer a { color: inherit; }
.lb-footer .wp-block-navigation a { text-decoration: none; }
.lb-footer .wp-block-navigation a:hover { text-decoration: underline; }

/* ---------- Accessibility ---------- */
:where(a, button, input, textarea, summary):focus-visible { outline: 3px solid var(--wp--preset--color--brand-red); outline-offset: 2px; }
html { scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Text tile for pests without an illustration yet */
.lb-tile { aspect-ratio: 1; background: var(--wp--preset--color--mist); font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: var(--wp--preset--font-size--x-large); }
.lb-tile a { color: var(--wp--preset--color--ink-soft); text-decoration: none; }
