/* Backyard Roo Landscape — small layer on top of theme.json. Keep it light. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.skip-link.screen-reader-text:focus { background: var(--wp--preset--color--white); padding: .75rem 1rem; z-index: 1000; }

/* ---------- Header ---------- */
.roo-topbar { font-size: .85rem; position: relative; z-index: 51; }
.roo-topbar p { margin: 0; }
.roo-topbar a { color: inherit; text-decoration: none; font-weight: 600; }
.roo-topbar a:hover { color: var(--wp--preset--color--accent); }
.roo-topbar__links { display: flex; gap: 1.25rem; }
.roo-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--wp--preset--color--leaf); margin-right: .55rem; vertical-align: middle; box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--leaf) 25%, transparent); }

.roo-site-header { position: sticky; top: 0; z-index: 50; background: var(--wp--preset--color--forest); }
.admin-bar .roo-site-header { top: 32px; }
.roo-header { box-shadow: 0 6px 24px rgba(10, 30, 16, .18); }
.roo-header__bar { gap: 1.5rem; }
.roo-header a { text-decoration: none; }

/* Logo: fixed size to prevent flickering */
.roo-header__bar { min-height: 96px; }
.roo-badge img { width: 92px !important; height: 92px !important; object-fit: contain; background: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 3px 8px rgba(0,0,0,.25)); }
.roo-wordmark .wp-block-site-title { font-size: 1.6rem; letter-spacing: -.01em; }
.roo-wordmark .wp-block-site-title a { color: #fff; }
.roo-wordmark__tag { margin: .15rem 0 0; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--accent-soft); }

/* Nav */
.roo-nav { font-size: .98rem; font-weight: 600; }
.roo-nav .wp-block-navigation-item__content { padding: .35rem 0; position: relative; color: #fff; }
.roo-nav > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--wp--preset--color--accent-soft);
	transform: scaleX(0); transition: transform .2s; transform-origin: left;
}
.roo-nav .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.roo-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.roo-nav .wp-block-navigation__submenu-container {
	background: #fff !important; color: var(--wp--preset--color--ink) !important; border: 0 !important; border-radius: 14px;
	box-shadow: 0 18px 40px rgba(10,30,16,.22); padding: .6rem !important; min-width: 270px !important; margin-top: .6rem;
}
.roo-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: var(--wp--preset--color--ink) !important; padding: .55rem .8rem !important; border-radius: 8px; font-weight: 500; }
.roo-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--moss); color: var(--wp--preset--color--forest) !important; }
.roo-nav .wp-block-navigation__submenu-container .wp-block-navigation-item:first-child .wp-block-navigation-item__content { font-weight: 700; color: var(--wp--preset--color--forest) !important; }

/* Call + CTA */
.roo-call { margin: 0; }
.roo-call a { display: grid; line-height: 1.15; padding: .35rem .2rem; color: #fff; }
.roo-call__label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--accent-soft); }
.roo-call__num { font-weight: 800; font-size: 1.05rem; }
.roo-call a:hover .roo-call__num { color: var(--wp--preset--color--accent-soft); }
.roo-header-cta .wp-block-button__link { padding: .75rem 1.3rem !important; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.roo-header-cta .wp-block-button__link:hover { background: #fff !important; color: var(--wp--preset--color--forest) !important; }

/* Pages start with a hero: leave room for the hanging badge */
.roo-header + * , main > .entry-content > :first-child { scroll-margin-top: 120px; }

@media (max-width: 1100px) { .roo-call { display: none; } .roo-nav { font-size: .92rem; } }
@media (max-width: 781px) {
	.admin-bar .roo-site-header { top: var(--roo-stick, -34px); }
	.roo-topbar .roo-hide-sm { display: none; }
	.roo-topbar__links { justify-content: center; width: 100%; }
	.roo-header__bar { min-height: 84px; }
	.roo-badge img { width: 68px !important; height: 68px !important; }
	.roo-header.is-scrolled .roo-header__bar { min-height: 64px; }
	.roo-header.is-scrolled .roo-badge img { width: 50px !important; height: 50px !important; }
	.roo-wordmark .wp-block-site-title { font-size: 1.15rem; }
	.roo-wordmark__tag { font-size: .6rem; letter-spacing: .06em; white-space: nowrap; }
	.roo-header .roo-header-cta { display: none; }
	.roo-nav .wp-block-navigation__responsive-container-open { color: #fff; }
	.roo-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
	.roo-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { box-shadow: none; background: transparent !important; padding: 0 0 0 1rem !important; }
	.roo-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: #fff !important; }
}

/* ---------- Hero ---------- */
.roo-hero { overflow: hidden; }
.roo-hero .wp-block-cover__inner-container { max-width: 1240px; }
.roo-hero h1 { color: var(--wp--preset--color--white); text-wrap: balance; }
.roo-hero p { text-wrap: pretty; }
.roo-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .8rem !important; }

/* ---------- Cards ---------- */
.is-style-roo-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	box-shadow: var(--wp--preset--shadow--soft);
	overflow: hidden;
	height: 100%;
}
.is-style-roo-card .wp-block-image { margin: 0; }
.is-style-roo-card .wp-block-image img { border-radius: 0; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.is-style-roo-card :where(h3, h4) a { text-decoration: none; color: inherit; }
.is-style-roo-card :where(h3, h4) a:hover { color: var(--wp--preset--color--accent); }
.is-style-roo-cards > .wp-block-column { display: flex; }
.is-style-roo-cards > .wp-block-column > * { flex: 1; }

/* Card links: whole card clickable feel */
.roo-card-link { font-weight: 700; text-decoration: none !important; }
.roo-card-link::after { content: " →"; }

/* ---------- Lists ---------- */
.is-style-roo-ticks { list-style: none; padding-left: 0 !important; }
.is-style-roo-ticks li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.is-style-roo-ticks li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
	background: var(--wp--preset--color--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid currentColor; background: transparent; color: var(--wp--preset--color--forest); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--white); border-color: var(--wp--preset--color--forest); }
.wp-block-button.is-style-roo-ghost > .wp-block-button__link { background: transparent; border: 2px solid rgba(255,255,255,.85); color: #fff; }
.wp-block-button.is-style-roo-ghost > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--deep); }

/* ---------- Process steps ---------- */
.roo-steps { counter-reset: roo-step; }
.roo-steps > .wp-block-column { counter-increment: roo-step; position: relative; padding-top: 3.2rem; }
.roo-steps > .wp-block-column::before {
	content: counter(roo-step, decimal-leading-zero);
	position: absolute; top: 0; left: 0;
	font-family: var(--wp--preset--font-family--heading); font-size: 2.2rem; font-weight: 600;
	color: var(--wp--preset--color--accent);
}

/* ---------- Area chips ---------- */
.roo-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0 !important; }
.roo-chips li { margin: 0; }
.roo-chips a { display: inline-block; padding: .45rem .9rem; border-radius: 999px; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--wp--preset--color--forest); }
.roo-chips a:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }

/* ---------- FAQ (details) ---------- */
.wp-block-details summary { font-weight: 700; cursor: pointer; color: var(--wp--preset--color--deep); }
.wp-block-details[open] summary { margin-bottom: .6rem; }
.wp-block-details + .wp-block-details { margin-top: .75rem; }

/* ---------- Tables (blog cost guides) ---------- */
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table :where(th, td) { border: 1px solid var(--wp--preset--color--line); padding: .6rem .75rem; text-align: left; }
.wp-block-table thead th { background: var(--wp--preset--color--moss); }
.wp-block-table { overflow-x: auto; }

/* ---------- Blog ---------- */
.roo-post-card .wp-block-post-featured-image img { aspect-ratio: 3 / 2; object-fit: cover; }
.roo-post-card .wp-block-post-title a { text-decoration: none; }
.roo-post-meta { font-size: .9rem; color: var(--wp--preset--color--stone); }
.roo-post-meta a { color: inherit; }
.wp-block-post-content > * + h2 { margin-top: 2.4rem; }
.wp-block-post-content figure.wp-block-image img { height: auto; }

/* ---------- Footer ---------- */
.roo-footer a { color: inherit; text-decoration: none; }
.roo-footer a:hover { text-decoration: underline; }
.roo-footer .wp-block-list { list-style: none; padding-left: 0; }
.roo-footer .wp-block-list li { margin-bottom: .4rem; }

/* Keep long URLs/words from causing horizontal scroll on phones. */
.wp-block-post-content { overflow-wrap: anywhere; }
