/*
Theme Name: Savvi
Theme URI: https://savviconsulting.com
Author: Savvi Consulting, LLC
Description: The Savvi Consulting website theme. A child theme of Twenty Twenty-Five carrying the Savvi brand (colors, Libre Baskerville, Julius Sans One and Montserrat), the site header and footer, and every approved page section as a reusable block pattern.
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: savvi
*/

/* ---------- Page structure ---------- */
.savvi-main { margin-block-start: 0; }
.savvi-section, .savvi-header, .savvi-footer { padding-inline: var(--wp--style--root--padding-right, clamp(20px, 4vw, 48px)); }
.savvi-section { padding-block: clamp(64px, 8vw, 96px); margin-block: 0 !important; }
.savvi-section--hero { padding-block: clamp(72px, 9vw, 112px) clamp(56px, 7vw, 96px); }
.savvi-section--tight { padding-block: clamp(48px, 6vw, 72px); }
.savvi-section--flush-top { padding-top: 0; }
.savvi-wrap { max-width: var(--wp--style--global--wide-size, 1200px); margin-inline: auto !important; }
.savvi-wrap > * + * { margin-block-start: 0; }
.savvi-measure { max-width: 680px; }
.savvi-split { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.savvi-split--center { align-items: center; }
.savvi-split > * { margin-block: 0 !important; }
.savvi-split__main { flex: 999 1 520px; min-width: 0; }
.savvi-split__side { flex: 1 1 320px; min-width: 0; }
.savvi-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.savvi-grid--wide-gap { gap: 40px; }
.savvi-grid--narrow { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.savvi-grid > * { margin-block: 0 !important; }
.savvi-stack > * + * { margin-block-start: 16px; }
.savvi-head { margin-bottom: 48px; }
.savvi-head > * { margin-block: 0; }
.savvi-head > .wp-block-heading + p { margin-top: 16px; }

/* ---------- Typography helpers ---------- */
.is-style-savvi-eyebrow, .savvi-eyebrow {
	font-family: var(--wp--preset--font-family--label); font-size: 13px; line-height: 20px; letter-spacing: .18em;
	text-transform: uppercase; color: var(--wp--preset--color--burgundy); margin-block: 0 8px !important;
}
.has-navy-background-color .is-style-savvi-eyebrow, .has-burgundy-background-color .is-style-savvi-eyebrow { color: var(--wp--preset--color--light-blue); }
.savvi-tag { font-size: 11px; letter-spacing: .16em; }
.savvi-display { font-size: var(--wp--preset--font-size--display) !important; line-height: 1.14 !important; letter-spacing: -.01em; max-width: 780px; }
.is-style-savvi-rule::after { content: ""; display: block; width: 56px; height: 2px; background: var(--wp--preset--color--taupe); margin-top: 16px; }
.savvi-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.6; font-weight: 300; max-width: 660px; }
.savvi-small { font-size: var(--wp--preset--font-size--small); line-height: 1.6; }
.savvi-caption { font-size: var(--wp--preset--font-size--caption); line-height: 1.55; }
.savvi-note { font-size: 13px; color: var(--wp--preset--color--burgundy); font-weight: 600; }
.savvi-quote-text { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: clamp(24px, 3vw, 34px); line-height: 1.4; }
.savvi-link a, a.savvi-link { font-weight: 600; font-size: 14px; letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.has-navy-background-color a:not(.wp-element-button), .has-burgundy-background-color a:not(.wp-element-button) { color: var(--wp--preset--color--light-blue); }
.has-navy-background-color :where(h1,h2,h3,h4), .has-burgundy-background-color :where(h1,h2,h3,h4) { color: var(--wp--preset--color--white); }

/* ---------- Buttons on dark grounds ---------- */
.has-navy-background-color .wp-block-button.is-style-outline .wp-element-button,
.has-burgundy-background-color .wp-block-button.is-style-outline .wp-element-button { color: var(--wp--preset--color--white); border-color: var(--wp--preset--color--light-blue); }
.has-navy-background-color .wp-block-button.is-style-outline .wp-element-button:hover,
.has-burgundy-background-color .wp-block-button.is-style-outline .wp-element-button:hover { background: var(--wp--preset--color--light-blue); color: var(--wp--preset--color--navy); }
.has-navy-background-color .wp-element-button:focus-visible, .has-burgundy-background-color .wp-element-button:focus-visible { outline-color: var(--wp--preset--color--light-blue); }

/* ---------- Cards ---------- */
.is-style-savvi-card { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--navy-grey); border-radius: 4px; padding: 32px; display: flex; flex-direction: column; gap: 14px; transition: border-color .15s ease; }
.is-style-savvi-card:hover { border-color: var(--wp--preset--color--navy); }
.is-style-savvi-card > * { margin-block: 0 !important; }
.is-style-savvi-card .savvi-card-for { border-top: 1px solid var(--wp--preset--color--taupe); padding-top: 14px; margin-top: auto !important; font-size: 13px; line-height: 1.55; }
.is-style-savvi-card.has-off-white-background-color { border-color: var(--wp--preset--color--off-white); }
.is-style-savvi-panel { padding: 32px; }
.is-style-savvi-panel > * { margin-block: 0 0 12px !important; }
.is-style-savvi-proof { border-top: 3px solid var(--wp--preset--color--navy); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.is-style-savvi-proof > * { margin-block: 0 !important; }
.savvi-figure > .is-style-savvi-placeholder, .savvi-figure > .wp-block-image { margin-bottom: 20px !important; }
.savvi-result { display: flex; gap: 12px; align-items: baseline; }
.savvi-result strong { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--wp--preset--color--burgundy); }
.has-navy-background-color .savvi-result strong { color: var(--wp--preset--color--light-blue); }

/* ---------- Rules and lists ---------- */
.savvi-ruled > * { border-top: 1px solid var(--wp--preset--color--taupe); padding-block: 22px; margin-block: 0 !important; }
.savvi-ruled > *:last-child { border-bottom: 1px solid var(--wp--preset--color--taupe); }
.savvi-ruled > * > * { margin-block: 0 0 6px; }
.savvi-ruled > * > *:last-child { margin-bottom: 0; }
.savvi-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.savvi-steps > * { border-top: 3px solid var(--wp--preset--color--navy); padding: 20px 24px 0 0; margin: 0 !important; }
.savvi-steps > * > * { margin-block: 0 0 8px; }
.wp-block-list.savvi-plain { list-style: none; padding: 0; }
.wp-block-list.savvi-plain li { border-bottom: 1px solid var(--wp--preset--color--taupe); padding-block: 14px; }

/* ---------- Proof numbers ---------- */
.savvi-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-block: 1px solid var(--wp--preset--color--taupe); }
.savvi-stats > * { padding: 32px 32px 32px 0; margin: 0 !important; }
.savvi-stats > * + * { border-left: 1px solid var(--wp--preset--color--taupe); padding-left: 32px; }
.savvi-stat-num { font-family: var(--wp--preset--font-family--display); font-size: 48px; line-height: 1.08; color: var(--wp--preset--color--burgundy); margin: 0 0 8px !important; }
.has-navy-background-color .savvi-stat-num { color: var(--wp--preset--color--light-blue); }
@media (max-width: 760px) { .savvi-stats > * + * { border-left: 0; border-top: 1px solid var(--wp--preset--color--taupe); padding-left: 0; } }

/* ---------- Callout (Brand Standard) ---------- */
.is-style-savvi-callout { background: var(--wp--preset--color--wash-blue); border-left: 4px solid var(--wp--preset--color--navy); padding: 28px 36px; }
.is-style-savvi-callout > * { margin-block: 0 8px !important; }
.is-style-savvi-callout > *:last-child { margin-bottom: 0 !important; }

/* ---------- Image placeholder (replace with an Image block) ---------- */
.is-style-savvi-placeholder { background: var(--wp--preset--color--navy-grey); border: 1px dashed var(--wp--preset--color--taupe); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 24px; min-height: 220px; color: var(--wp--preset--color--navy); }
.is-style-savvi-placeholder > * { margin: 0 !important; max-width: 460px; }
.is-style-savvi-placeholder .is-style-savvi-eyebrow { color: var(--wp--preset--color--navy); font-size: 11px; }
.savvi-ph--wide { aspect-ratio: 21 / 9; min-height: 0; }
.savvi-ph--portrait { aspect-ratio: 4 / 5; min-height: 0; }
.savvi-ph--card { aspect-ratio: 3 / 2; min-height: 0; }
.savvi-ph--logo { min-height: 88px; background: var(--wp--preset--color--white); padding: 12px; }
.savvi-figure .wp-block-image img { width: 100%; height: auto; object-fit: cover; }

/* ---------- Header ---------- */
.savvi-header { border-bottom: 1px solid var(--wp--preset--color--taupe); background: var(--wp--preset--color--white); }
.savvi-header__inner { min-height: 84px; gap: 32px; }
.savvi-lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--wp--preset--color--navy) !important; }
.savvi-lockup img { width: 48px; height: 48px; display: block; }
.savvi-wordmark { display: flex; flex-direction: column; align-items: center; line-height: 1; font-family: var(--wp--preset--font-family--display); font-weight: 700; color: var(--wp--preset--color--navy); }
.savvi-wordmark__name { font-size: 20px; letter-spacing: .5em; margin-right: -.5em; }
.savvi-wordmark__sub { font-size: 11px; letter-spacing: .2em; margin-right: -.2em; margin-top: 5px; }
.savvi-header .wp-block-navigation a { text-decoration: none; }
.savvi-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.savvi-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content { box-shadow: inset 0 -2px 0 var(--wp--preset--color--burgundy); }
.savvi-header .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--navy-grey) !important; padding: 8px 0; min-width: 300px !important; }
.savvi-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 10px 20px !important; }

/* ---------- Footer ---------- */
.savvi-footer { padding-block: 64px 32px; }
.savvi-footer h4 { font-family: var(--wp--preset--font-family--label); font-weight: 400; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--light-blue); margin: 0 0 16px; }
.savvi-footer p, .savvi-footer li { font-size: 14px; line-height: 2; margin: 0; }
.savvi-footer a { color: var(--wp--preset--color--off-white) !important; text-decoration: none; }
.savvi-footer a:hover { color: var(--wp--preset--color--light-blue) !important; }
.savvi-footer__base { margin-top: 48px !important; padding-top: 24px; border-top: 1px solid rgba(184, 167, 154, .45); font-size: 13px; color: var(--wp--preset--color--taupe); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.savvi-footer__base a { color: var(--wp--preset--color--taupe) !important; }

/* ---------- Forms (Contact Form 7, WPForms or similar, if used) ---------- */
.savvi-form input[type="text"], .savvi-form input[type="email"], .savvi-form input[type="tel"], .savvi-form input[type="date"], .savvi-form select, .savvi-form textarea { width: 100%; min-height: 44px; border: 1px solid var(--wp--preset--color--navy); border-radius: 2px; padding: 10px 12px; font: inherit; background: #fff; box-sizing: border-box; }
.savvi-form label { font-size: 14px; font-weight: 500; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Header layout, anchors, misc ---------- */
.savvi-header__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.savvi-header__nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.savvi-header__nav > * { margin: 0 !important; }
.savvi-main > .wp-block-post-content > * { margin-block: 0; }
[id] { scroll-margin-top: 24px; }
.savvi-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.savvi-chips .wp-element-button { padding: 8px 16px; font-size: 13px; }
.savvi-hero-panel > * + * { margin-block-start: 0; }
.savvi-hero-panel .savvi-q { font-family: var(--wp--preset--font-family--display); font-size: 22px; padding-block: 14px; border-top: 1px solid var(--wp--preset--color--taupe); margin: 0; }
.savvi-hero-panel .savvi-q:first-of-type { border-top: 0; }
.savvi-form button { background: var(--wp--preset--color--burgundy); color: var(--wp--preset--color--white); border: 0; border-radius: 2px; padding: 14px 28px; font: 600 14px/1 var(--wp--preset--font-family--body); cursor: pointer; }
.savvi-form button:hover { background: var(--wp--preset--color--navy); }
.savvi-form .savvi-form__row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 16px; }
.savvi-form .savvi-form__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.savvi-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.savvi-form fieldset label { font-weight: 400; margin-right: 16px; }

/* ---------- Refinements after the first render ---------- */
.wp-site-blocks > * { margin-block: 0; }
.is-style-savvi-card h3 a { color: var(--wp--preset--color--navy); text-decoration: none; }
.is-style-savvi-card h3 a:hover { color: var(--wp--preset--color--burgundy); text-decoration: underline; text-underline-offset: 4px; }
.has-navy-background-color.is-style-savvi-card h3 a { color: var(--wp--preset--color--white); }
.savvi-result strong { white-space: nowrap; }
.savvi-grid--wide-gap > .savvi-figure > .savvi-ph--portrait { max-width: 340px; }
.savvi-footer .wp-block-list.savvi-plain li { border: 0; padding: 0; }
.savvi-footer__logo img { width: 112px; height: auto; }
.savvi-footer__logo { margin-bottom: 16px !important; }
.savvi-split__side .savvi-stats { grid-template-columns: 1fr; }
.savvi-split__side .savvi-stats > * { padding: 20px 0; }
.savvi-split__side .savvi-stats > * + * { border-left: 0; border-top: 1px solid var(--wp--preset--color--taupe); padding-left: 0; }
.has-navy-background-color .savvi-note, .has-burgundy-background-color .savvi-note { color: var(--wp--preset--color--light-blue); }
.savvi-split__side .savvi-steps > * { padding-bottom: 16px; }
.savvi-hero-panel .savvi-q--sm { font-family: var(--wp--preset--font-family--body); font-size: 15px; font-weight: 500; line-height: 1.5; }
@media (max-width: 760px) {
	.savvi-header__inner { flex-wrap: nowrap; gap: 12px; min-height: 72px; }
	.savvi-header__nav { flex-wrap: nowrap; gap: 14px; }
	.savvi-header__nav .wp-element-button { padding: 10px 14px; font-size: 13px; }
	.savvi-lockup img { width: 40px; height: 40px; }
	.savvi-wordmark__name { font-size: 16px; }
	.savvi-wordmark__sub { font-size: 9px; }
}
@media (max-width: 400px) { .savvi-header__nav .wp-block-buttons { display: none; } }
/* Mobile menu overlay */
.savvi-header .wp-block-navigation__responsive-container.is-menu-open { padding: 24px clamp(20px, 6vw, 40px); }
.savvi-header .is-menu-open .wp-block-navigation__responsive-container-content,
.savvi-header .is-menu-open .wp-block-navigation__container,
.savvi-header .is-menu-open .wp-block-navigation-item { align-items: flex-start !important; text-align: left; }
.savvi-header .is-menu-open .wp-block-navigation__container { gap: 20px !important; font-size: 18px; }
.savvi-header .is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; padding: 8px 0 0 16px !important; min-width: 0 !important; gap: 12px; }
.savvi-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0 !important; font-size: 16px; }

.savvi-notsure { padding: 32px 40px; margin-top: 24px !important; }
/* Placed photos */
.savvi-photo img { width: 100%; height: auto; display: block; }
.savvi-grid--wide-gap > .savvi-figure > .savvi-photo--portrait { max-width: 340px; }
.savvi-figure > .savvi-photo { margin: 0 0 20px !important; }
.savvi-split__side > .savvi-photo--portrait { margin: 0; }
/* Seals and badges */
.savvi-badges { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; margin: 8px 0 40px !important; }
.savvi-badges > * { margin: 0 !important; }
.savvi-seal img { height: 104px; width: auto; display: block; }
.savvi-award .savvi-split__side { flex: 0 0 auto; }
.savvi-award .savvi-seal img { height: 150px; }
.savvi-ruled .savvi-seal { margin-top: 12px !important; }
.savvi-ruled .savvi-seal img { height: 88px; }
/* Logo wall */
.savvi-logo-frame { border: 1px solid var(--wp--preset--color--taupe); padding-bottom: 28px; margin: 0 !important; }
.savvi-logo-frame > * { margin-block: 0 !important; }
.savvi-logo-band { padding: 10px 16px; margin-bottom: 28px !important; text-align: center; }
.savvi-logo-band .savvi-logo-band__title { margin: 0; font-family: var(--wp--preset--font-family--label); font-size: 14px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--navy); }
.savvi-logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 28px; padding: 0 28px; align-items: center; }
.savvi-logo-wall > * { margin: 0 !important; }
.savvi-logo-wall .savvi-ph--logo { min-height: 104px; }
.savvi-logo-wall .savvi-logo-id { font-size: 11px; letter-spacing: .12em; color: var(--wp--preset--color--navy); }
.savvi-logo-wall .wp-block-image img { max-height: 84px; width: auto; max-width: 100%; margin: 0 auto; display: block; }
.savvi-logo-frame + .savvi-note { margin-top: 10px !important; }
@media (max-width: 760px) { .savvi-logo-wall { grid-template-columns: repeat(2, 1fr); padding: 0 16px; } }
/* Logo wall: five across */
.savvi-logo-wall--5 { grid-template-columns: repeat(5, 1fr); gap: 28px 32px; }
.savvi-logo-wall .savvi-logo { margin: 0 !important; }
.savvi-logo-wall .savvi-logo img { max-height: 72px; max-width: 100%; width: auto; height: auto; margin: 0 auto; display: block; }
@media (max-width: 960px) { .savvi-logo-wall--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .savvi-logo-wall--5 { grid-template-columns: repeat(2, 1fr); } }