/* Southbright Digital custom styles. */

/* ---------- Fonts: self-hosted (lib/fonts), Latin only, just the weights the site uses.
   Elementor's Google Fonts request is switched off in southbright-main.php (== Performance). ---------- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/poppins-300.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/libre-baskerville.woff2) format('woff2'); }
@font-face { font-family: 'Libre Baskerville'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/libre-baskerville-400-italic.woff2) format('woff2'); }

/* ---------- RainTree Care leaves: faint falling leaves drawn by a pseudo-element of any .rt-leaves section
   (rt-leaves-left keeps them on the left). No extra elements, no script.
   The acacia artwork stays in its .rt-acacia block. ---------- */
.rt-leaves { position: relative; overflow: hidden; isolation: isolate; }
.rt-leaves::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg opacity='0.15' transform='rotate(28 20 20)'%3E%3Cpath d='M4 36C10 22 22 10 36 4C32 20 20 32 4 36z' fill='none' stroke='%237c9c6e' stroke-width='2'/%3E%3Cpath d='M6 34 30 10' stroke='%237c9c6e' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E") 2.4% 44.0% / 26px 26px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg opacity='0.10' transform='rotate(179 20 20)'%3E%3Cpath d='M6 34C6 18 16 6 34 6c0 18-12 28-28 28z' fill='%237c9c6e'/%3E%3C/g%3E%3C/svg%3E") 7.8% 62.9% / 28px 28px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg opacity='0.10' transform='rotate(338 20 20)'%3E%3Cpath d='M4 36C10 22 22 10 36 4C32 20 20 32 4 36z' fill='none' stroke='%237c9c6e' stroke-width='2'/%3E%3Cpath d='M6 34 30 10' stroke='%237c9c6e' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E") 94.4% 20.5% / 30px 30px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg opacity='0.15' transform='rotate(242 20 20)'%3E%3Cpath d='M6 34C6 18 16 6 34 6c0 18-12 28-28 28z' fill='%237c9c6e'/%3E%3C/g%3E%3C/svg%3E") 91.7% 41.9% / 17px 17px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg opacity='0.15' transform='rotate(119 20 20)'%3E%3Cpath d='M6 34C6 18 16 6 34 6c0 18-12 28-28 28z' fill='%237c9c6e'/%3E%3C/g%3E%3C/svg%3E") 45.7% 25.5% / 18px 18px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg opacity='0.12' transform='rotate(318 20 20)'%3E%3Cpath d='M20 2c9 9 9 27 0 36C11 29 11 11 20 2z' fill='%237c9c6e'/%3E%3C/g%3E%3C/svg%3E") 0.8% 86.5% / 33px 33px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg opacity='0.10' transform='rotate(81 20 20)'%3E%3Cpath d='M20 2c9 9 9 27 0 36C11 29 11 11 20 2z' fill='%237c9c6e'/%3E%3C/g%3E%3C/svg%3E") 7.6% 62.4% / 20px 20px no-repeat;
}
.rt-leaves.rt-leaves-left::before {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg opacity='0.13' transform='rotate(158 20 20)'%3E%3Cpath d='M20 2c9 9 9 27 0 36C11 29 11 11 20 2z' fill='%237c9c6e'/%3E%3C/g%3E%3C/svg%3E") 25.9% 89.1% / 16px 16px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg opacity='0.12' transform='rotate(267 20 20)'%3E%3Cpath d='M6 34C6 18 16 6 34 6c0 18-12 28-28 28z' fill='%237c9c6e'/%3E%3C/g%3E%3C/svg%3E") 17.6% 28.2% / 25px 25px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg opacity='0.18' transform='rotate(269 20 20)'%3E%3Cpath d='M20 2c9 9 9 27 0 36C11 29 11 11 20 2z' fill='%237c9c6e'/%3E%3C/g%3E%3C/svg%3E") 38.7% 86.6% / 20px 20px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg opacity='0.17' transform='rotate(265 20 20)'%3E%3Cpath d='M6 34C6 18 16 6 34 6c0 18-12 28-28 28z' fill='%237c9c6e'/%3E%3C/g%3E%3C/svg%3E") 8.6% 39.6% / 27px 27px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg opacity='0.20' transform='rotate(164 20 20)'%3E%3Cpath d='M4 36C10 22 22 10 36 4C32 20 20 32 4 36z' fill='none' stroke='%237c9c6e' stroke-width='2'/%3E%3Cpath d='M6 34 30 10' stroke='%237c9c6e' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E") 17.6% 12.9% / 37px 37px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg opacity='0.09' transform='rotate(56 20 20)'%3E%3Cpath d='M4 36C10 22 22 10 36 4C32 20 20 32 4 36z' fill='none' stroke='%237c9c6e' stroke-width='2'/%3E%3Cpath d='M6 34 30 10' stroke='%237c9c6e' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E") 35.9% 28.3% / 28px 28px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg opacity='0.09' transform='rotate(29 20 20)'%3E%3Cpath d='M6 34C6 18 16 6 34 6c0 18-12 28-28 28z' fill='%237c9c6e'/%3E%3C/g%3E%3C/svg%3E") 33.2% 19.8% / 31px 31px no-repeat;
}
.rt-acacia svg { width: 100%; height: 100%; display: block; }

.rt-acacia { position: absolute !important; bottom: 0; left: -75%; width: 100%; height: 48%; pointer-events: none; z-index: 0 !important; color: #4c7043; opacity: .1; padding: 0 !important; min-width: 0 !important; }

/* A V4 paragraph or heading whose whole text is a link keeps the paragraph's own colour (set in Elementor),
   instead of the site-wide default link colour. Inline links inside text still use the link colour. */
.elementor .e-paragraph-base > a.e-paragraph-link-base, .elementor .e-heading-base > a { color: inherit; }

/* ---------- Link hover underline: on hover/focus an underline draws in from the left. Each wrapped line gets its own underline.
   Body: only links inside running text (plain <a> in paragraphs, editor text, FAQ answers, breadcrumbs); they also darken.
   Links styled as buttons, chips, "Explore ... →" text links and grid cards ("Read more →") carry a class and are left alone.
   Footer: every text link (contact details, Google reviews, quick links menu); buttons and social icons are left alone. ---------- */
.elementor :is(.e-paragraph-base, .rt-prose, .rt-faq-a, .rt-crumbs) a:not([class]),
.elementor-location-footer :is(a.e-paragraph-link-base, .e-paragraph-base a:not([class]), .elementor-nav-menu a.elementor-item) {
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
	transition: background-size .3s ease, color .2s ease;
}
.elementor-location-footer .elementor-nav-menu a.elementor-item { width: fit-content; background-origin: content-box; background-clip: content-box; } /* menu items are full-width with padding: keep the line under the text only */
.elementor :is(.e-paragraph-base, .rt-prose, .rt-faq-a, .rt-crumbs) a:not([class]):is(:hover, :focus-visible) { background-size: 100% 1px; color: #3c5a36; }
.elementor-location-footer :is(a.e-paragraph-link-base, .e-paragraph-base a:not([class]), .elementor-nav-menu a.elementor-item):is(:hover, :focus-visible) { background-size: 100% 1px; }
@media (prefers-reduced-motion: reduce) {
	.elementor :is(.e-paragraph-base, .rt-prose, .rt-faq-a, .rt-crumbs) a, .elementor-location-footer a { transition: none; }
}

/* ---------- Breadcrumbs (Yoast trail inside a .rt-crumbs element) ---------- */
.rt-crumbs a { color: #4c7043; }
.rt-crumbs a:hover { color: #3c5a36; }
.rt-crumbs > span > span:last-child { color: #2f3a2c; }
/* Elementor strips classes inside the text, so separators are the link-less spans before the last crumb. */
.rt-crumbs > span > span:not(:last-child):not(:has(a)) { color: #b5b8ad; margin: 0 4px; }

/* ---------- Inner-page hero: cream fade over the photo on the right ---------- */
.rt-hero-fade { background: linear-gradient(90deg, #fbf9f3 0%, rgba(251,249,243,.8) 12%, rgba(251,249,243,.25) 26%, rgba(251,249,243,0) 38%); }
/* Stacked hero (tablet and mobile): heading on top, photo below. Only a top fade applies (no side fade):
   the cream runs into the top of the photo; the photo ends cleanly at the bottom (owner request). */
@media (max-width: 1024px) {
	.rt-hero-fade { background: linear-gradient(180deg, #fbf9f3 0%, rgba(251,249,243,.75) 14%, rgba(251,249,243,0) 38%); }
}

/* ---------- Body text that comes from the editor (Post Content widget inside a .rt-prose block) ---------- */
.rt-prose { color: #4c514a; font-family: "Poppins", sans-serif; }
.rt-prose .elementor-widget-theme-post-content > * + * { margin-top: 16px; }
.rt-prose p, .rt-prose li { font-size: 16.5px; line-height: 1.85; }
.rt-prose h2, .rt-prose h3, .rt-prose h4 { font-family: "Libre Baskerville", serif; font-weight: 400; }
.rt-prose .elementor-widget-theme-post-content > h2 { font-size: 29px; line-height: 1.3; margin: 48px 0 14px; }
.rt-prose .elementor-widget-theme-post-content > h3 { font-size: 21px; line-height: 1.35; margin: 32px 0 10px; color: #3c5a36; }
.rt-prose .elementor-widget-theme-post-content > :is(h2, h3):first-child { margin-top: 0; }
.rt-prose .elementor-widget-theme-post-content > :is(h2, h3) + * { margin-top: 0; }
.rt-prose ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.rt-prose ol { padding-left: 22px; display: grid; gap: 8px; }
.rt-prose ul li { position: relative; padding-left: 26px; }
.rt-prose ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: #7c9c6e; }
.rt-prose a { color: #4c7043; font-weight: 500; }
.rt-prose a:hover { color: #3c5a36; }
.rt-prose strong { color: #2f3a2c; font-weight: 500; }
.rt-prose blockquote { border-left: 3px solid #7c9c6e; padding: 4px 0 4px 20px; font-family: "Libre Baskerville", serif; font-style: italic; color: #2f3a2c; }
.rt-prose .wp-block-embed, .rt-prose figure { margin: 28px 0; }
.rt-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 18px; }
.rt-prose .elementor-widget-theme-post-content > p:first-child { font-family: "Libre Baskerville", serif; font-size: 21px; line-height: 1.7; color: #2f3a2c; }

/* Team member biography */
.rt-prose.rt-prose--bio .elementor-widget-theme-post-content > * + * { margin-top: 20px; }

/* Service body: smaller lead and headings, note box, arrow link */
.rt-prose.rt-prose--service .elementor-widget-theme-post-content > p:first-child { font-size: 19px; line-height: 1.6; }
.rt-prose.rt-prose--service .elementor-widget-theme-post-content > h2 { font-size: 26px; margin: 44px 0 16px; }
.rt-prose.rt-prose--service p, .rt-prose.rt-prose--service li { font-size: 16px; line-height: 1.75; }
.rt-prose.rt-prose--service ul { gap: 10px; }
.rt-prose.rt-prose--service ul li::before { top: 11px; }
.rt-prose p.rt-note, .rt-prose.rt-prose--service p.rt-note { margin-top: 34px; padding: 24px 28px; background: #f3f6ef; border-radius: 18px; font-size: 15.5px; color: #2f3a2c; }
.rt-prose .elementor-widget-theme-post-content > p.rt-golink { margin-top: 18px; }
.rt-prose:not(.rt-prose--service) .elementor-widget-theme-post-content > p.rt-golink { margin-top: 30px; }
.rt-prose .rt-arrow-link::after { content: " \2192"; }

@media (max-width: 767px) {
	.rt-prose .elementor-widget-theme-post-content > p:first-child { font-size: 18px; }
	.rt-prose .elementor-widget-theme-post-content > h2 { font-size: 24px; margin-top: 36px; }
	.rt-prose p.rt-note, .rt-prose.rt-prose--service p.rt-note { padding: 20px 22px; }
}

/* Optional photos (e.g. a service's second side photo): an image linked to an empty field is not shown. */
img.e-image-base:not([src]), img.e-image-base[src=""] { display: none !important; }

/* Elementor Loop wrappers get the default 10px container padding; this site lays loops out edge to edge.
   Only the default variables are reset, so padding set on a loop in the editor still applies. */
.e-collection-loop-base, .e-collection-loop-layout-base {
	--padding-top: 0px; --padding-bottom: 0px; --padding-inline-start: 0px; --padding-inline-end: 0px;
	--padding-block-start: 0px; --padding-block-end: 0px; --padding-left: 0px; --padding-right: 0px;
}

/* Category chips ([raintree_category_chips]) */
.rt-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rt-chips .rt-chip { font-size: 14px; line-height: 1.4; color: #3c5a36; background: #fff; border: 1px solid #d6e0cf; border-radius: 40px; padding: 8px 18px; transition: background-color .2s; }
.rt-chips .rt-chip:hover { background: #f3f6ef; color: #3c5a36; }
.rt-chips .rt-chip.is-on { background: #4c7043; border-color: #4c7043; color: #fff; }

/* Loop pager: "← Newer posts · Page 1 of 3 · Older posts →". Elementor prints the page status for screen readers only; shown here as in the approved design. */
nav:has(> [data-e-pagination-status]) > [data-e-pagination="prev"] { order: 0; }
nav:has(> [data-e-pagination-status]) > [data-e-pagination-status] {
	order: 1; position: static !important; width: auto !important; height: auto !important; margin: 0 !important;
	clip: auto !important; clip-path: none !important; overflow: visible !important; white-space: nowrap;
	font-size: 14px; color: #6f746c;
}
nav:has(> [data-e-pagination-status]) > [data-e-pagination="next"] { order: 2; }
[data-e-pagination].e--disabled { color: #a9ada4 !important; font-weight: 400 !important; pointer-events: none; }

/* Leaf icon badge (.rt-leaf-badge, e.g. the Home promo pop-up). */
.rt-leaf-badge svg { width: min(30px, 100%); height: auto; aspect-ratio: 1; fill: none; stroke: currentColor; }

/* Home display line: the emphasised words are sage, as in the approved design. */
.rt-display em { color: #4c7043; }

/* Home promo pop-up: round white close button with a hairline, as in the approved design. */
.rt-promo-pop .dialog-close-button {
	width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid #e6e5df;
	display: flex; align-items: center; justify-content: center;
}
.rt-promo-pop .dialog-close-button svg { width: 14px; height: 14px; }
.rt-promo-pop .dialog-widget-content { overflow: hidden; }
.rt-promo-pop .dialog-close-button:focus { outline: none; }
.rt-promo-pop .dialog-close-button:focus-visible { outline: 2px solid #7c9c6e; outline-offset: 2px; }
@media (max-width: 767px) { .rt-promo-pop .dialog-widget-content { width: calc(100% - 32px) !important; } }
.rt-promo-pop .dialog-widget-content { box-shadow: inset 0 8px 0 #7c9c6e, 0 30px 80px rgba(20, 28, 18, .35) !important; }
.elementor-popup-modal.rt-promo-pop .dialog-close-button:focus-visible { outline: 2px solid #7c9c6e !important; outline-offset: 2px; box-shadow: none !important; }

/* Forms (.rt-fcard): plum asterisk after the label of every required field, as in the approved designs. */
.rt-field:has(> [required]) > .rt-flabel::after,
.rt-field:has(> * [required]) > .rt-flabel::after { content: "*"; color: #7d5e82; margin-left: 2px; }
/* Select arrow in brand green. */
select.rt-finput {
	appearance: none; -webkit-appearance: none; padding-right: 40px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234c7043' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.rt-fcard textarea.rt-finput { resize: none; }
.rt-fcard ::placeholder { color: #9a9e95; }

/* Quotation questions: plum asterisk after each question (all are required), as in the approved design. */
.rt-qt::after { content: "*"; color: #7d5e82; margin-left: 2px; }
.rt-opt:has(input:checked) { border-color: #4c7043; background: #f3f6ef; }
.rt-opt:has(input:focus-visible) { outline: 2px solid #7c9c6e; outline-offset: 2px; }

/* Testimonials: each review is clamped to 7 lines; "Read more" (shown only when text is cut) expands it. */
.rt-review-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; }
.rt-review.is-open .rt-review-text { -webkit-line-clamp: unset; display: block; }
.rt-review-more { visibility: hidden; }
.rt-review-more.is-on { visibility: visible; }
.rt-review-more:focus-visible { outline: 2px solid #7c9c6e; outline-offset: 3px; border-radius: 4px; }

/* Rates tabs (e-tabs): active tab, keyboard focus */
.elementor .rt-tab.e--selected, .elementor .rt-tab[aria-selected="true"] { background-color: #4c7043; border-color: #4c7043; color: #fff; }
.elementor .rt-tab:focus-visible { outline: 2px solid #4c7043; outline-offset: 3px; }
/* Rates: "/month*" after the price, "**" on package names */
.rt-price-amt span { font-family: Poppins, sans-serif; font-size: 15px; color: #6d7169; margin-left: 4px; }
.elementor h3 sup { color: #7d5e82; font-size: 13px; margin-left: 2px; }
/* e-svg icons: render the svg as a block so the text baseline does not push it below its box */
.elementor .e-svg-base > svg { display: block; }
/* FAQs (e-accordion = details/summary): open item in sage mist, plum-free sage links in answers, focus ring */
.elementor .rt-faq-item[open] { background-color: #f3f6ef; border-color: #dfe7d8; }
.elementor .rt-faq-item > summary { list-style: none; }
.elementor .rt-faq-item > summary::-webkit-details-marker { display: none; }
.elementor .rt-faq-item > summary:focus-visible { outline: 2px solid #4c7043; outline-offset: -2px; border-radius: 16px; }
/* Accordion question bars: no blue text-selection flash on quick clicks and no tap-highlight flash on phones (keyboard focus ring above stays). */
.elementor summary.e-accordion-item-header-base { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.rt-faq-a a { color: #4c7043; font-weight: 500; }
.rt-faq-a a:hover { color: #2f4a2a; }
/* Newsletter: year chips (built by southbright.js), hidden issue cards, card hover */
.rt-nl-years .rt-chip { background: #f3f6ef; cursor: pointer; font-family: inherit; }
.rt-nl-years .rt-chip.is-on { background: #4c7043; border-color: #4c7043; color: #fff; }
.rt-nl-years .rt-chip:focus-visible { outline: 2px solid #4c7043; outline-offset: 2px; }
.elementor .rt-issue[hidden] { display: none; }
.elementor .rt-issue:hover .rt-issue-title { color: #4c7043; }
.rt-nl-years.rt-chips { justify-content: center; }
/* Dot lists (.rt-dot-list, Privacy Policy): no side padding on items/marker slots, empty dot keeps its 8px size */
.elementor .rt-dot-list > .e-list-item-base, .elementor .rt-dot-list .e-list-item__marker { padding-left: 0; padding-right: 0; }
.elementor .rt-dot-list .e-list-item__marker > .e-div-block-base { min-width: 0; flex: none; }

/* ==========================================================================
   Header
   ========================================================================== */

/* Sticky header. The whole header sticks, offset upwards by the top bar's height, so the visit notice scrolls away
   and the main bar stays. It sits above the page content (z-index), so its dropdowns are never covered.
   southbright.js measures --rt-topbar-h and --rt-header-h (main bar height, also used by sticky sidebars and #links). */
.elementor-location-header { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--rt-topbar-h, 0px)); z-index: 1000; transition: box-shadow .3s; }
@media (max-width: 600px) { .elementor-location-header { top: calc(0px - var(--rt-topbar-h, 0px)); } } /* admin bar scrolls away on phones */
.elementor-location-header.rt-stuck { box-shadow: 0 8px 24px rgba(47, 58, 44, .08); }
html { scroll-padding-top: calc(var(--rt-header-h, 0px) + 20px); }

/* Top-bar social icons: a 25x25+ tap area (WCAG 2.2 target size) without moving the icons; they never shrink. */
.elementor-location-header a.e-svg-base { box-sizing: content-box; padding: 5px 6px; margin: -5px -6px; flex-shrink: 0; }

/* Mobile menu (hamburger) up to 1230px: Elementor switches at the tablet breakpoint (1024px), extended here. */
@media (max-width: 1230px) {
	.elementor-location-header .elementor-nav-menu--dropdown-tablet .elementor-nav-menu--main { display: none; }
	.elementor-location-header .elementor-nav-menu--dropdown-tablet .elementor-menu-toggle { display: flex; }
	.elementor-location-header .elementor-nav-menu--dropdown-tablet nav.elementor-nav-menu--dropdown { display: block; }

	/* Order: logo, button, hamburger at the end (CSS order only; same elements). */
	.elementor-location-header .e-flexbox-base:has(> .elementor-widget-nav-menu) > :first-child { margin-right: auto !important; }
	.elementor-location-header .e-flexbox-base:has(> .elementor-widget-nav-menu) > .elementor-widget-nav-menu { order: 2; flex: 0 0 auto !important; }

	/* Full-width menu panel directly under the header, square and seamless, items lined up with the page gutter. */
	.elementor-location-header .elementor-widget-nav-menu { position: static; }
	.elementor-location-header .elementor-nav-menu--dropdown.elementor-nav-menu__container {
		position: absolute; top: calc(100% + 1px); left: 0; right: 0; width: auto; margin-top: 0; z-index: 1000;
		border-radius: 0 !important; box-shadow: 0 16px 24px rgba(47, 58, 44, .08);
	}
	.elementor-location-header .elementor-nav-menu--dropdown .elementor-nav-menu > li > a { padding-left: var(--rt-pad-left, 5%) !important; padding-right: var(--rt-pad-right, 5%) !important; border-radius: 0; }
	.elementor-location-header .elementor-nav-menu--dropdown .sub-menu a { padding-left: calc(var(--rt-pad-left, 5%) + 20px) !important; border-radius: 0; }
}

/* Modern hamburger: three thin lines (the last one shorter), no background; it turns into an X when open. */
.elementor-location-header .elementor-menu-toggle { position: relative; width: 44px; height: 44px; padding: 0; background: transparent !important; border-radius: 0; color: #3c5a36; }
.elementor-location-header .elementor-menu-toggle > * { display: none !important; }
.elementor-location-header .elementor-menu-toggle::before,
.elementor-location-header .elementor-menu-toggle::after {
	content: ""; position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: currentColor;
	transition: transform .3s ease, top .3s ease, left .3s ease, box-shadow .2s ease;
}
.elementor-location-header .elementor-menu-toggle::before { top: 14px; box-shadow: 0 7px 0 currentColor; }
.elementor-location-header .elementor-menu-toggle::after { top: 28px; left: 18px; }
.elementor-location-header .elementor-menu-toggle:hover { color: #4c7043; }
.elementor-location-header .elementor-menu-toggle:focus-visible { outline: 2px solid #4c7043; outline-offset: 2px; }
.elementor-location-header .elementor-menu-toggle.elementor-active::before { top: 21px; box-shadow: none; transform: rotate(45deg); }
.elementor-location-header .elementor-menu-toggle.elementor-active::after { top: 21px; left: 10px; transform: rotate(-45deg); }

/* Desktop dropdowns (above 1230px) open at the header's bottom line, square-topped and seamless with the header.
   southbright.js measures the gap between the menu items and the header's bottom line into --rt-submenu-offset;
   an invisible strip fills that gap so the mouse can move down to the sub-menu without it closing. */
@media (min-width: 1231px) {
	.elementor-location-header .elementor-nav-menu--main > ul > li > ul.sub-menu {
		margin-top: var(--rt-submenu-offset, 0px) !important; border-top-left-radius: 0 !important; border-top-right-radius: 0 !important;
	}
	.elementor-location-header .elementor-nav-menu--main > ul > li > ul.sub-menu::before {
		content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--rt-submenu-offset, 0px);
	}
}

/* Desktop dropdown previews (southbright.js adds .rt-mega-panel / .rt-mega-preview; all dropdowns except Blog):
   page list on the left, the hovered page's photo, blurb and "View ..." button on the right. */
@media (min-width: 1231px) {
	.elementor-location-header .elementor-nav-menu--main ul.sub-menu.rt-mega-panel {
		width: 680px !important; min-width: 680px !important; max-width: none !important; min-height: 368px;
		padding: 20px 400px 20px 12px !important; box-sizing: border-box;
	}
	.elementor-location-header .elementor-nav-menu--main .rt-mega-panel > li > a.elementor-sub-item { border-radius: 8px; white-space: normal; }
	.elementor-location-header .elementor-nav-menu--main .rt-mega-panel > li > a.rt-mega-current { background-color: #eef3eb; color: #3c5a36; }
	.elementor-location-header .elementor-nav-menu--main .rt-mega-preview {
		position: absolute; top: 20px; right: 20px; width: 360px; display: flex; flex-direction: column; gap: 12px;
		padding-left: 24px; border-left: 1px solid #e6ebe2; cursor: default; font-family: "Poppins", sans-serif;
	}
	.rt-mega-photo { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #eef3eb; }
	.rt-mega-photo[hidden] { display: none; }
	.rt-mega-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
	.rt-mega-blurb {
		margin: 0; font-size: 14px; line-height: 1.55; color: #5b6157;
		display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
	}
	.elementor-location-header .elementor-nav-menu--main .rt-mega-preview a.rt-mega-btn.rt-mega-btn {
		align-self: flex-start; display: inline-flex; padding: 10px 22px !important; border-radius: 999px !important; border: 0;
		background: #4c7043 !important; color: #fff !important; font-size: 14px; font-weight: 500; line-height: 1.4; transition: background-color .2s ease;
	}
	.elementor-location-header .elementor-nav-menu--main .rt-mega-preview a.rt-mega-btn.rt-mega-btn:is(:hover, :focus-visible) { background: #3c5a36 !important; }
}
@media (max-width: 1230px) { .rt-mega-preview { display: none !important; } }

/* ==========================================================================
   Icons beside text: vertically centred with the text (top bar notice, contact rows, link labels).
   ========================================================================== */
.elementor .e-flexbox-base:has(> .e-svg-base):has(> .e-paragraph-base) { align-items: center; }
.elementor .e-flexbox-base:has(> .e-paragraph-base) > .e-svg-base { flex-shrink: 0; }
/* "More from RainTree Care" cards (image link with an icon + caption): the icon sits at the top of the caption, which can wrap to two lines. */
.elementor a.e-flexbox-base:has(> .e-image-base) > .e-flexbox-base:has(> .e-svg-base):has(> .e-paragraph-base) { align-items: flex-start; }

/* ==========================================================================
   Video: pulsing play button; the video opens in a lightbox (southbright.js)
   ========================================================================== */
.rt-video > .e-flexbox-base:has(> .e-svg-base) { isolation: isolate; transform-origin: 0 0; transition: scale .3s ease; } /* scale, not transform: the button is centred with transform: translate(-50%,-50%); origin 0 0 keeps its centre still */
.rt-video:hover > .e-flexbox-base:has(> .e-svg-base),
.rt-video:focus-visible > .e-flexbox-base:has(> .e-svg-base) { scale: 1.06; }
.rt-video > .e-flexbox-base:has(> .e-svg-base)::before,
.rt-video > .e-flexbox-base:has(> .e-svg-base)::after {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
	background: rgba(255, 255, 255, .55); animation: rt-pulse 2.6s cubic-bezier(.25, .6, .35, 1) infinite;
}
.rt-video > .e-flexbox-base:has(> .e-svg-base)::after { animation-delay: 1.3s; }
@keyframes rt-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.75); opacity: 0; } }

.rt-lightbox { width: min(1100px, 92vw); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.rt-lightbox::backdrop { background: rgba(20, 26, 18, .86); }
.rt-lightbox__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.rt-lightbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rt-lightbox__close {
	position: absolute; top: -52px; right: 0; width: 42px; height: 42px; border: 0; border-radius: 50%;
	background: #fbf9f3; color: #2f3a2c; font: 400 26px/1 sans-serif; cursor: pointer;
}
.rt-lightbox__close:hover { background: #fff; color: #4c7043; }
.rt-lightbox__close:focus-visible { outline: 2px solid #fbf9f3; outline-offset: 3px; }

/* Reduced motion: no pulsing play button, no hamburger animation. */
@media (prefers-reduced-motion: reduce) {
	.rt-video > .e-flexbox-base:has(> .e-svg-base)::before,
	.rt-video > .e-flexbox-base:has(> .e-svg-base)::after { animation: none; }
	.elementor-location-header .elementor-menu-toggle::before,
	.elementor-location-header .elementor-menu-toggle::after { transition: none; }
}
