/* ==========================================================================
   Agency Master - site styles
   Colors, fonts and base sizes come from theme.json (semantic tokens such as
   primary, contrast, surface). This file adds layout: header, footer, section
   edges, cards, forms, motion. Never put a client's color, font or name here;
   each brand layer sets its values in its own theme.json and brand.css.
   ========================================================================== */

:root {
	--agc-primary: var(--wp--preset--color--primary);
	--agc-primary-dark: var(--wp--preset--color--primary-dark);
	/* Lighter primary for text on dark backgrounds (footer, dark header) */
	--agc-primary-light: var(--wp--preset--color--primary-light);
	--agc-contrast: var(--wp--preset--color--contrast);
	--agc-text: var(--wp--preset--color--body-text);
	--agc-surface: var(--wp--preset--color--surface);
	--agc-radius: 10px;
	--agc-shadow: 0 6px 24px color-mix(in srgb, var(--agc-contrast) 8%, transparent);
	--agc-section-pad: clamp(56px, 7vw, 112px);
	--agc-admin-bar: var(--wp-admin--admin-bar--height, 0px);
	--agc-wave-h: clamp(28px, 4vw, 60px);
	/* Color of the wave that rises through buttons on hover */
	--agc-hover-wave: var(--agc-primary-dark);
	--agc-input-border: #CBD5E1;
}

html { scroll-behavior: smooth; }
/* Jump links (/#about) stop below the header when it slides back in */
[id] { scroll-margin-top: 90px; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { height: auto; max-width: 100%; }
/* Old plugin CSS animates every image; images should snap to size when the window changes. */
.wp-site-blocks img { transition: none !important; }

/* Full-width page sections sit flush against each other */
.wp-block-post-content.is-layout-constrained > .alignfull,
.agc-main > .wp-block-post-content { margin-top: 0; margin-bottom: 0; }
.agc-main { margin-top: 0; }
.agc-main--padded { padding-top: var(--agc-section-pad); padding-bottom: var(--agc-section-pad); background: #fff; }
.agc-footer-wrap { margin-top: 0 !important; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.agc-header { position: relative; z-index: 50; width: 100%; margin: 0 !important; transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease; }
.agc-header.is-overlay { position: absolute; top: var(--agc-admin-bar); left: 0; right: 0; }
.agc-header.is-solid { background: #fff; }
.agc-header__bar { padding: 22px clamp(20px, 3vw, 40px); gap: 24px; max-width: 100%; }
.agc-logo { margin: 0 !important; flex-shrink: 0; }
.agc-logo img { width: 200px !important; display: block; transition: width .3s ease; }
.is-overlay .agc-logo img { filter: brightness(0) invert(1); }
.agc-header__right { gap: 28px; }
/* No logo image: the site title stands in */
.agc-logo--text { margin: 0; font-family: var(--wp--preset--font-family--heading); font-size: 22px; font-weight: 700; line-height: 1.2; }
.agc-logo--text a { color: var(--agc-contrast); text-decoration: none; }
.is-overlay .agc-logo--text a { color: #fff; }

.agc-nav { font-size: 16px; font-weight: 400; gap: 6px 28px; }
.agc-nav .wp-block-navigation-item__content { color: var(--agc-contrast); padding: 4px 0; }
.is-overlay .agc-nav .wp-block-navigation-item__content { color: #F5F5F5; }
.agc-nav .wp-block-navigation-item__content:hover,
.agc-nav .wp-block-navigation-item__content:focus { color: var(--agc-primary) !important; text-decoration: none; }
.agc-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--agc-primary); }
.is-overlay .agc-nav .wp-block-navigation-item__content:hover,
.is-overlay .agc-nav .wp-block-navigation-item__content:focus,
.is-overlay .agc-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--agc-primary-light) !important; }
.agc-nav .nav-mobile-only { display: none; }

.agc-header__cta { margin: 0 !important; flex-shrink: 0; }
.agc-header__cta .wp-block-button__link { font-size: 14px; padding: 14px 32px; white-space: nowrap; }

/* Sticky header: hides when scrolling down, slides back in when scrolling up */
.agc-header.is-sticky { position: fixed; top: var(--agc-admin-bar); left: 0; right: 0; transform: translateY(-110%); box-shadow: 0 2px 16px color-mix(in srgb, var(--agc-contrast) 12%, transparent); }
.agc-header.is-sticky.is-visible { transform: none; } /* "none", not translateY(0): any transform would trap the full-screen mobile menu inside the header bar */
.agc-header.is-overlay.is-sticky { background: color-mix(in srgb, var(--agc-contrast) 96%, transparent); }
.agc-header.is-solid.is-sticky { background: #fff; }
.agc-header.is-sticky .agc-header__bar { padding-top: 12px; padding-bottom: 12px; }
.agc-header.is-sticky .agc-logo img { width: 140px !important; }

/* Optional (agc-config "header"): keep a dark logo dark over the photo; a white sticky header */
.agc-logo-original .is-overlay .agc-logo img,
.agc-sticky-light .is-overlay.is-sticky .agc-logo img { filter: none; }
.agc-sticky-light .agc-header.is-overlay.is-sticky { background: #fff; }
.agc-sticky-light .is-overlay.is-sticky .agc-nav .wp-block-navigation-item__content { color: var(--agc-contrast); }
.agc-sticky-light .is-overlay.is-sticky .agc-nav .wp-block-navigation-item__content:is(:hover, :focus),
.agc-sticky-light .is-overlay.is-sticky .agc-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--agc-primary) !important; }
.agc-sticky-light .is-overlay.is-sticky .agc-logo--text a { color: var(--agc-contrast); }

/* Mobile menu: switches below 1180px so the full menu never wraps onto two lines */
.agc-nav .wp-block-navigation__responsive-container-open { background: var(--agc-primary); color: #fff; border-radius: 4px; padding: 8px; }
.agc-nav .wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; }
.agc-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--agc-contrast) !important; color: #fff !important; padding: 32px 28px; }
.agc-nav .is-menu-open .wp-block-navigation-item__content { color: #fff !important; font-size: 20px; padding: 6px 0; }
.agc-nav .is-menu-open .wp-block-navigation__responsive-container-content { gap: 10px; }
.agc-nav .is-menu-open .nav-mobile-only { display: block; margin-top: 12px; }
.agc-nav .is-menu-open .nav-mobile-only .wp-block-navigation-item__content { background: var(--agc-primary); border-radius: 30px; padding: 12px 32px; font-family: var(--wp--preset--font-family--button); font-weight: 600; text-transform: uppercase; font-size: 15px; }
.agc-nav .wp-block-navigation__responsive-container-close { color: #fff; }

@media (min-width: 1181px) and (max-width: 1320px) {
	.agc-logo img { width: 160px !important; }
	.agc-nav { gap: 6px 20px; font-size: 15px; }
	.agc-header__right { gap: 20px; }
	.agc-header__cta .wp-block-button__link { padding: 12px 24px; }
}
@media (max-width: 1180px) {
	.agc-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.agc-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.agc-header__cta { display: none !important; }
	.agc-logo img { width: 110px !important; }
	.agc-header__bar { padding-top: 14px; padding-bottom: 14px; }
	.agc-header.is-sticky .agc-logo img { width: 100px !important; }
}

.wp-block-separator.is-style-hero-line { width: 50px; border: 0; border-top: 3px solid var(--agc-primary) !important; opacity: 1; margin: 22px auto !important; background: none; }

/* --------------------------------------------------------------------------
   Wavy section edges (Group block style "Wavy edges")
   -------------------------------------------------------------------------- */
.is-style-waves { position: relative; z-index: 1; overflow: visible !important; }
.is-style-waves::before,
.is-style-waves::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: var(--agc-wave-h);
	background: inherit;
	pointer-events: none;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V34C160 6 330 0 520 14s380 40 560 28 270-30 360-38v62z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V34C160 6 330 0 520 14s380 40 560 28 270-30 360-38v62z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.is-style-waves::before { bottom: calc(100% - 1px); }
.is-style-waves::after { top: calc(100% - 1px); transform: scaleY(-1) scaleX(-1); }
.is-style-waves.no-wave-bottom::after { display: none; }

body:has(.wp-block-post-content > .is-style-waves:last-child) .agc-footer { padding-top: calc(48px + var(--agc-wave-h)); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.is-style-card { background: #fff; border-radius: var(--agc-radius); box-shadow: var(--agc-shadow); overflow: hidden; padding: 0 0 28px; }
.is-style-card > :not(.wp-block-post-featured-image):not(.wp-block-image:first-child) { padding-left: 24px; padding-right: 24px; }
.is-style-card > .wp-block-image:first-child { margin: 0 0 8px; }
.is-style-card > .wp-block-image:first-child img { border-radius: 0; width: 100%; object-fit: cover; }

.agc-carousel__btn { position: absolute; top: 125px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--agc-contrast); box-shadow: var(--agc-shadow); cursor: pointer; display: grid; place-items: center; font-size: 22px; line-height: 1; }
.agc-carousel__btn:hover { background: var(--agc-primary); color: #fff; }
.agc-carousel__btn--prev { left: -12px; }
.agc-carousel__btn--next { right: -12px; }
@media (max-width: 640px) { .agc-carousel__btn { display: none; } }

/* Featured listings carousel (agency block: Query Loop variation). CSS scroll-snap, arrows added by site.js */
.agc-carousel { position: relative; }
.agc-carousel .wp-block-post-template { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px 4px 28px; margin: 0; list-style: none; scrollbar-width: none; }
.agc-carousel .wp-block-post-template::-webkit-scrollbar { display: none; }
/* In the block editor, no snapping or smooth scrolling: selecting a card makes
   the editor scroll it into view, and with mandatory snapping Chrome can lock
   up the page. Visitors keep the snapping carousel. */
.editor-styles-wrapper .agc-carousel .wp-block-post-template { scroll-snap-type: none; scroll-behavior: auto; }
.agc-carousel .wp-block-post-template > li { flex: 0 0 calc((100% - 64px) / 3); scroll-snap-align: start; margin: 0 !important; }
@media (max-width: 1000px) { .agc-carousel .wp-block-post-template > li { flex-basis: calc((100% - 32px) / 2); } }
@media (max-width: 640px) { .agc-carousel .wp-block-post-template > li { flex-basis: 86%; } }

/* Google reviews (agency block agc/google-reviews). Rendered on the server; site.js adds arrows and Read more */
.agc-reviews, .agc-reviews :where(div, ul, li, figure) { box-sizing: border-box; }
.agc-reviews { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: center; }
.agc-reviews--no-summary { grid-template-columns: minmax(0, 1fr); }
.agc-reviews__summary { text-align: center; }
.agc-reviews__logo { margin: 0 auto 6px; }
.agc-reviews__logo img { display: inline-block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; vertical-align: bottom; }
.agc-reviews__biz { font-weight: 700; color: var(--agc-contrast); font-size: 15px; line-height: 1.35; margin: 0 !important; }
.agc-reviews__stars { color: #F6BB06; font-size: 22px; letter-spacing: 2px; margin: 2px 0 0 !important; line-height: 1.2; }
.agc-reviews__count { font-size: 14px; margin: 0 !important; }
.agc-reviews__summary .wp-block-buttons { margin-top: 10px; }
.agc-reviews__summary .wp-block-button__link { font-size: 13px; padding: 10px 22px; }
.agc-reviews__wrap { position: relative; min-width: 0; padding: 0 30px; margin-top: var(--wp--style--block-gap, 20px); }
.agc-reviews__track { display: flex; flex-wrap: nowrap; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; margin: 0; padding: 10px 4px 24px; list-style: none; scrollbar-width: none; }
.agc-reviews__track::-webkit-scrollbar { display: none; }
.agc-reviews__track > .agc-review { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; margin: 0 !important; }
.agc-review { position: relative; background: #fff; border-radius: var(--agc-radius); box-shadow: var(--agc-shadow); padding: 20px 20px 18px !important; text-align: left; }
.agc-review::after { content: ""; position: absolute; top: 18px; right: 18px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.1H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.6-.4-3.9z'/%3E%3Cpath fill='%23FF3D00' d='m6.3 14.7 6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 7.9 3l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2c-2 1.5-4.5 2.4-7.2 2.4-5.2 0-9.6-3.3-11.3-8l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.1H42V20H24v8h11.3c-.8 2.2-2.2 4.2-4.1 5.6l6.2 5.2C37 39.2 44 34 44 24c0-1.3-.1-2.6-.4-3.9z'/%3E%3C/svg%3E") center / contain no-repeat; }
.agc-review__head { display: flex; flex-wrap: nowrap; gap: 12px; align-items: center; margin-bottom: 8px; padding-right: 26px; }
.agc-review__avatar { margin: 0 !important; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--agc-primary); }
.agc-review__avatar img { width: 44px !important; height: 44px !important; border-radius: 50%; object-fit: cover; display: block; color: transparent; }
.agc-review__name { font-weight: 700; color: var(--agc-contrast); margin: 0 !important; line-height: 1.3; font-size: 15px; }
.agc-review__stars { color: #F6BB06; letter-spacing: 1px; margin: 0 0 6px !important; font-size: 17px; line-height: 1.2; }
.agc-review__text { font-size: 14.5px; line-height: 1.6; margin: 0 !important; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.agc-review.is-expanded .agc-review__text { -webkit-line-clamp: unset; display: block; }
.agc-review .agc-more { display: inline-block; margin-top: var(--wp--style--block-gap, 24px); }
.agc-reviews .agc-carousel__btn { top: 50%; transform: translateY(-60%); width: 38px; height: 38px; font-size: 20px; }
.agc-reviews .agc-carousel__btn--prev { left: -6px; }
.agc-reviews .agc-carousel__btn--next { right: -6px; }
@media (max-width: 1000px) {
	.agc-reviews { grid-template-columns: minmax(0, 1fr); }
	.agc-reviews__track > .agc-review { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 640px) {
	.agc-reviews__wrap { padding: 0; }
	.agc-reviews__track > .agc-review { flex-basis: 86%; }
}

/* --------------------------------------------------------------------------
   Lists, icon rows
   -------------------------------------------------------------------------- */
.is-style-checks { list-style: none; padding-left: 0; }
.is-style-checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.is-style-checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; background: var(--agc-contrast); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat; }

.agc-listing-nav { background: #fff; border-top: 1px solid color-mix(in srgb, var(--agc-contrast) 8%, transparent); padding: 22px clamp(20px, 3vw, 40px); margin: 0 !important; gap: 12px 24px; }
/* When the listing ends with a wavy section, leave room so the wave never covers the links */
.wp-block-post-content:has(> .is-style-waves:last-child) + .agc-listing-nav { border-top: 0; padding-top: calc(28px + var(--agc-wave-h)); }
.agc-listing-nav a { font-size: 15px; font-weight: 600; }
.agc-listing-nav .post-navigation-link__label { font-weight: 400; color: var(--agc-text); margin-right: 4px; }
.agc-listing-nav .post-navigation-link-next { margin-left: auto; text-align: right; }

/* --------------------------------------------------------------------------
   FAQ (Details block)
   -------------------------------------------------------------------------- */
.wp-block-details { border-bottom: 1px solid color-mix(in srgb, var(--agc-contrast) 10%, transparent); padding: 0; margin: 0 !important; }
.wp-block-details summary { cursor: pointer; list-style: none; position: relative; padding: 18px 44px 18px 0; font-weight: 700; color: var(--agc-contrast); font-size: 17px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--agc-primary); line-height: 1; }
.wp-block-details[open] summary::after { content: "\2212"; }
.wp-block-details > :not(summary) { padding-bottom: 14px; margin-top: 0; }

/* Eyebrow label */
.is-style-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--agc-primary); margin-bottom: 4px !important; }

.agc-more { background: none; border: 0; padding: 6px 0 0; color: var(--agc-primary); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

.agc-slider-wrap { position: relative; margin-top: 32px; }

.agc-slider-wrap .agc-carousel__btn { top: 50%; transform: translateY(-50%); }
.agc-slider-wrap .agc-carousel__btn--prev { left: 14px; }
.agc-slider-wrap .agc-carousel__btn--next { right: 14px; }
.agc-slider__count { position: absolute; right: 14px; bottom: 12px; background: color-mix(in srgb, var(--agc-contrast) 70%, transparent); color: #fff; font-size: 13px; padding: 3px 10px; border-radius: 20px; }
@media (max-width: 640px) { .agc-slider-wrap .agc-carousel__btn { display: grid; width: 36px; height: 36px; } }

/* Listing filter buttons (agc-core [agc_listing_filter]) */
.agc-listing-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 28px; }
.agc-listing-filter button { cursor: pointer; border: 2px solid var(--agc-primary); background: #fff; color: var(--agc-primary); border-radius: 30px; padding: 9px 22px; font-family: var(--wp--preset--font-family--button); font-weight: 600; font-size: 13px; text-transform: uppercase; }
.agc-listing-filter button[aria-pressed="true"],
.agc-listing-filter button:hover { background: var(--agc-primary); color: #fff; }
.wp-block-post-template > li.is-filtered-out { display: none; }

/* --------------------------------------------------------------------------
   Forms (agc-core plugin)
   -------------------------------------------------------------------------- */

.agc-form { display: grid; gap: 16px; }
.agc-form__row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .agc-form__row { grid-template-columns: minmax(0, 1fr); } }
.agc-form label { display: block; font-size: 14px; font-weight: 700; color: var(--agc-contrast); margin-bottom: 6px; }
.agc-form .agc-req { color: #C0392B; }
.agc-form input[type="text"],
.agc-form input[type="email"],
.agc-form input[type="tel"],
.agc-form input[type="date"],
.agc-form input[type="number"],
.agc-form select,
.agc-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--agc-contrast); background: #fff; border: 1px solid var(--agc-input-border); border-radius: 6px; padding: 12px 14px; }
.agc-form textarea { min-height: 140px; resize: vertical; }
.agc-form input:focus,
.agc-form select:focus,
.agc-form textarea:focus { outline: 2px solid var(--agc-primary); outline-offset: 1px; border-color: var(--agc-primary); }
.agc-form fieldset { border: 0; padding: 0; margin: 0; }
.agc-form legend { font-size: 14px; font-weight: 700; color: var(--agc-contrast); margin-bottom: 8px; padding: 0; }
.agc-form .agc-checks { display: grid; gap: 6px 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.agc-form .agc-checks label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 0; color: var(--agc-text); }
.agc-form .agc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.agc-form button { justify-self: start; cursor: pointer; border: 0; background: var(--agc-primary); color: #fff; border-radius: 30px; padding: 16px 40px; font-family: var(--wp--preset--font-family--button); font-weight: 600; font-size: 15px; text-transform: uppercase; }
.agc-form button:hover { background: var(--agc-primary-dark); }
.agc-form__note { font-size: 13px; margin: 0; }
.agc-form-msg { border-radius: 8px; padding: 14px 18px; margin-bottom: 18px; font-weight: 600; }
.agc-form-msg--ok { background: #E3F6EA; color: #1E6B3A; }
.agc-form-msg--err { background: #FDECEA; color: #8E2A1F; }

.agc-newsletter { text-align: center; gap: 20px; }
.agc-newsletter label { margin-bottom: 8px; }
.agc-newsletter input[type="email"] { text-align: left; }
.agc-newsletter__group legend { width: 100%; text-align: center; font-family: var(--wp--preset--font-family--heading); font-size: 17px; }
.agc-newsletter__group label { display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 400; color: var(--agc-text); font-size: 16px; margin: 0 0 4px; cursor: pointer; }
.agc-newsletter__group input { accent-color: var(--agc-primary); width: 16px; height: 16px; margin: 0; }
.agc-newsletter button { justify-self: stretch; }
.agc-newsletter-wrap .agc-form-msg { text-align: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.agc-footer { padding-top: 48px; padding-bottom: 40px; font-size: 15px; }
.agc-footer a { color: var(--agc-primary-light); }
.agc-footer .wp-block-button__link,
.agc-footer .wp-block-button__link:hover,
.agc-footer .wp-block-button__link:focus { color: #fff !important; text-decoration: none; }
.agc-footer .agc-footer__small a { color: #fff; }
.agc-footer__buttons { gap: 12px; }
.agc-footer__buttons .wp-block-button__link { font-size: 13px; padding: 10px 40px; min-width: 190px; text-align: center; }
.agc-footer .wp-block-social-links { gap: 14px; margin-top: 20px; }
.agc-footer__small { font-size: 14px; line-height: 1.8; margin-top: 14px; }

/* --------------------------------------------------------------------------
   Button hover: a darker wave rises through the button.
   (Outline-style buttons and the listing filter keep their own look.)
   -------------------------------------------------------------------------- */
.wp-block-button:not(.is-style-outline) > .wp-block-button__link,
.agc-form button,
.agc-nav .is-menu-open .nav-mobile-only .wp-block-navigation-item__content {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: transform .2s ease;
}
.wp-block-button:not(.is-style-outline) > .wp-block-button__link::before,
.agc-form button::before,
.agc-nav .is-menu-open .nav-mobile-only .wp-block-navigation-item__content::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	left: -5%;
	width: 110%;
	height: 190%;
	background: var(--agc-hover-wave);
	transform: translateY(100%);
	transition: transform 1.1s cubic-bezier(.3, .7, .25, 1);
	pointer-events: none;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath d='M0 20 C25 0 25 0 50 20 S75 40 100 20 V120 H0z'/%3E%3C/svg%3E") 0 0 / 90px 100% repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath d='M0 20 C25 0 25 0 50 20 S75 40 100 20 V120 H0z'/%3E%3C/svg%3E") 0 0 / 90px 100% repeat-x;
}
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:is(:hover, :focus-visible)::before,
.agc-form button:is(:hover, :focus-visible)::before,
.agc-nav .is-menu-open .nav-mobile-only .wp-block-navigation-item__content:is(:hover, :focus-visible)::before {
	transform: translateY(-32%);
	animation: agc-wave-drift 1.8s linear infinite;
}
@keyframes agc-wave-drift { to { -webkit-mask-position: 90px 0; mask-position: 90px 0; } }
/* The wave does the darkening, so the button itself keeps its color on hover */
.wp-site-blocks .wp-block-button:not(.is-style-outline) > .wp-block-button__link:is(:hover, :focus-visible),
.wp-site-blocks .agc-form button:hover {
	background-color: var(--agc-primary) !important;
	color: #fff !important;
}
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:active,
.agc-form button:active {
	transform: scale(.97);
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link::before,
	.agc-form button::before { transition: none; animation: none !important; }
}

/* Optional (agc-config "buttons.hover" = "shine"): instead of the wave, a soft
   light sweeps across, the button darkens a little and lifts. */
.agc-btn-shine .wp-block-button:not(.is-style-outline) > .wp-block-button__link,
.agc-btn-shine .agc-form button,
.agc-btn-shine .agc-nav .is-menu-open .nav-mobile-only .wp-block-navigation-item__content {
	transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.agc-btn-shine .wp-block-button:not(.is-style-outline) > .wp-block-button__link::before,
.agc-btn-shine .agc-form button::before,
.agc-btn-shine .agc-nav .is-menu-open .nav-mobile-only .wp-block-navigation-item__content::before {
	-webkit-mask: none;
	mask: none;
	left: 0;
	width: 55%;
	height: 100%;
	background: linear-gradient(105deg, transparent 15%, rgba(255, 255, 255, .38) 50%, transparent 85%);
	transform: translateX(-190%);
	transition: transform .75s cubic-bezier(.3, .7, .25, 1);
}
.agc-btn-shine .wp-block-button:not(.is-style-outline) > .wp-block-button__link:is(:hover, :focus-visible)::before,
.agc-btn-shine .agc-form button:is(:hover, :focus-visible)::before,
.agc-btn-shine .agc-nav .is-menu-open .nav-mobile-only .wp-block-navigation-item__content:is(:hover, :focus-visible)::before {
	transform: translateX(260%);
	animation: none;
}
.agc-btn-shine .wp-site-blocks .wp-block-button:not(.is-style-outline) > .wp-block-button__link:is(:hover, :focus-visible),
.agc-btn-shine .wp-site-blocks .agc-form button:is(:hover, :focus-visible) {
	background-color: var(--agc-primary-dark) !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 18px color-mix(in srgb, var(--agc-primary) 35%, transparent);
}
.agc-btn-shine .wp-block-button.is-style-outline > .wp-block-button__link { transition: transform .25s ease, background-color .25s ease, color .25s ease; }
.agc-btn-shine .wp-block-button.is-style-outline > .wp-block-button__link:is(:hover, :focus-visible) { transform: translateY(-2px); }
.agc-btn-shine .wp-block-button > .wp-block-button__link:active,
.agc-btn-shine .agc-form button:active { transform: translateY(0) scale(.98); }
@media (prefers-reduced-motion: reduce) {
	.agc-btn-shine .wp-block-button__link,
	.agc-btn-shine .agc-form button { transform: none !important; }
}

/* --------------------------------------------------------------------------
   Motion and focus
   -------------------------------------------------------------------------- */

/* 1. Cards lift on hover */
.is-style-card { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease; }
@media (hover: hover) {
	.is-style-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px color-mix(in srgb, var(--agc-contrast) 14%, transparent); }
}

/* 2. Gentle fade-up as content scrolls into view (site.js adds the classes; skipped for reduced motion) */
.agc-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.agc-reveal.is-in { opacity: 1; transform: none; }

/* 3. Clear focus outline for keyboard users */
.wp-site-blocks a:focus-visible,
.wp-site-blocks button:focus-visible,
.wp-site-blocks summary:focus-visible,
.wp-site-blocks [tabindex]:focus-visible { outline: 3px solid var(--agc-primary-light); outline-offset: 3px; border-radius: 4px; }
.wp-site-blocks .wp-block-button__link:focus-visible,
.wp-site-blocks .agc-form button:focus-visible { border-radius: 30px; }

/* 4. Smoother photo sliders: arrows fade in on hover (always shown on touch screens) */
.agc-carousel__btn { transition: opacity .3s ease, background-color .25s ease, color .25s ease, transform .25s ease; }
.agc-slider-wrap .agc-carousel__btn:hover { transform: translateY(-50%) scale(1.08); }
@media (hover: hover) {
	.agc-slider-wrap .agc-carousel__btn { opacity: 0; }
	.agc-slider-wrap:hover .agc-carousel__btn,
	.agc-slider-wrap:focus-within .agc-carousel__btn { opacity: 1; }
}

/* 5. Text links: a thin underline slides in on hover (any "...button-link" class is a button, not a text link) */
.wp-block-post-content :is(p, li, h5, h6) a:not(.wp-element-button):not([class*="button-link"]):not(.wp-block-post-excerpt__more-link),
.agc-footer p a {
	text-decoration: none !important;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
	transition: background-size .3s ease, color .2s ease;
	padding-bottom: 1px;
}
.wp-block-post-content :is(p, li, h5, h6) a:not(.wp-element-button):not([class*="button-link"]):not(.wp-block-post-excerpt__more-link):is(:hover, :focus-visible),
.agc-footer p a:is(:hover, :focus-visible) { background-size: 100% 1.5px; }

/* --------------------------------------------------------------------------
   Agency blocks: Key facts, Map, FAQ, Cover phone photo position
   -------------------------------------------------------------------------- */
.agc-facts { list-style: none; padding-left: 0; }
.agc-facts > li { position: relative; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--agc-contrast) 8%, transparent); }
.agc-facts > li:last-child { border-bottom: 0; }
.agc-facts > li strong { color: var(--agc-contrast); }
.agc-map iframe { display: block; width: 100%; height: 420px; border: 0; border-radius: var(--agc-radius); background: color-mix(in srgb, var(--agc-contrast) 6%, transparent); }
@media (max-width: 781px) {
	.agc-map iframe { height: 340px; }
	.wp-block-cover.has-agc-phone-pos img.wp-block-cover__image-background { object-position: var(--agc-phone-pos) !important; }
}

/* --------------------------------------------------------------------------
   Named styles for new sites (instead of typed class names)
   -------------------------------------------------------------------------- */
/* Cover > Styles > Page header: room for the overlay header, white title. */
.wp-block-cover.is-style-page-header { padding-top: clamp(120px, 14vw, 160px) !important; padding-bottom: clamp(60px, 8vw, 90px) !important; min-height: 420px; }
.wp-block-cover.is-style-page-header .wp-block-cover__inner-container { max-width: 1100px; }
.wp-block-cover.is-style-page-header :is(h1, h2, p) { color: #fff; text-wrap: balance; }
.wp-block-cover.is-style-page-header h1 { margin-bottom: 0; }
.wp-block-cover.is-style-page-header .wp-block-buttons { margin-top: 32px; }
.wp-block-cover.is-style-page-header .wp-block-separator.is-style-hero-line { border-top-color: rgba(255, 255, 255, .85) !important; }
/* Paragraph > Styles > Large intro */
.is-style-lead { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: var(--wp--preset--font-size--x-large); line-height: 1.3; text-wrap: balance; }

/* --------------------------------------------------------------------------
   Outline buttons (Button block style "Outline"): primary-colored ring on
   light sections, white ring on photos (Cover blocks). Core draws the ring.
   -------------------------------------------------------------------------- */
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) { color: var(--agc-primary); }
.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) { color: #fff; }

/* Testimonial cards pattern */
.agc-testimonial { height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.agc-testimonial > * { width: 100%; box-sizing: border-box; }
.agc-testimonial__quote { font-size: 17px; line-height: 1.7; font-style: italic; }
.agc-testimonial__name { font-size: 14px; line-height: 1.5; margin-top: 18px !important; }
.agc-testimonial__name strong { color: var(--agc-contrast); font-style: normal; }

/* Rotating words (Agency Core format; animated by site.js). All words share one
   grid cell sized to the longest, so the line never jumps. Only transform and
   opacity animate. */
.agc-rotate.is-ready { display: inline-grid; vertical-align: bottom; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .agc-rotate.is-ready { transition: none; } }
.agc-rotate__sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.agc-rotate__stack { display: inline-grid; justify-items: start; }
.agc-rotate__word { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(.35em); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.agc-rotate__word::before { content: attr(data-w); }
.agc-rotate__word.is-current { opacity: 1; transform: none; }
.agc-rotate__word.is-leaving { opacity: 0; transform: translateY(-.35em); }
