/* Reusable UI: buttons, top bar, footer, forms, accordion, 3D viewer. */
.sav-btn { display: inline-block; padding: .85rem 1.6rem; border-radius: 999px; background: var(--sav-brand); color: #000; text-decoration: none; font-weight: 600; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.sav-btn:hover { filter: brightness(1.1); }
.sav-btn--ghost { background: transparent; color: #fff; border: 1.5px solid #fff; }
.sav-center { text-align: center; margin-top: 2.5rem; }
.sav-3d { width: 100%; background: transparent; --poster-color: transparent; }
.sav-ph { aspect-ratio: 4 / 3; border-radius: var(--sav-radius); background: linear-gradient(135deg, var(--sav-mist), var(--sav-line)); }

/* Top bar */
.sav-topbar { background: var(--sav-mist); font-size: .8rem; color: var(--sav-muted); }
.sav-topbar__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; height: var(--sav-topbar-h, 36px); }
/* Overlay pages: topbar sits transparent above the fixed header; header drops to top 0 once stuck. */
.has-header-overlay .sav-topbar { position: absolute; inset: 0 0 auto; z-index: 101; background: transparent; color: rgb(255 255 255 / 70%); }
.sav-topbar p { margin: 0; }
.sav-topbar a { text-decoration: none; }
.sav-topbar__social { display: flex; gap: 1rem; }

/* Footer */

/* Forms */
.sav-form { display: grid; gap: 1rem; background: var(--sav-paper); border: 1px solid var(--sav-line); border-radius: var(--sav-radius); padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: var(--sav-shadow); }
.sav-form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; }
.sav-form input, .sav-form textarea, .woocommerce input.input-text, .woocommerce select, .woocommerce textarea { font: inherit; padding: .75rem .9rem; border: 1px solid var(--sav-line); border-radius: 10px; background: #fff; width: 100%; }
.sav-form input:focus, .sav-form textarea:focus { outline: 2px solid var(--sav-brand); outline-offset: 1px; }
.sav-hp { position: absolute; left: -9999px; }
.sav-notice { margin: 0; padding: .8rem 1rem; border-radius: 10px; }
.sav-notice.is-ok { background: #e8f7ee; color: #14532d; }
.sav-notice.is-err { background: #fdecec; color: #7f1d1d; }

/* FAQ accordion */
.sav-faq { max-width: 820px; }
.sav-faq details { border-bottom: 1px solid var(--sav-line); padding-block: 1.1rem; }
.sav-faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.sav-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.sav-faq details[open] summary::after { content: "\2212"; }
.sav-faq p { color: var(--sav-muted); margin: .75rem 0 0; }

@media (max-width: 900px) {
	.sav-topbar__social { display: none; }
}
.sav-btn--sm { padding: .4rem 1rem; font-size: .9rem; }

/* Footer: four columns, divider, copyright bar (layout modelled on Soleil). */
.sav-footer { background: var(--sav-ink); color: #c7c9cf; padding-top: clamp(3.5rem, 7vw, 6rem); margin-top: var(--sav-section-y); font-size: 1.05rem; }
.sav-footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.sav-footer__title { color: #fff; font-size: 1.2rem; font-weight: 600; letter-spacing: -.03em; margin: 0 0 1.6rem; }
.sav-footer__col p { margin: 0 0 .75rem; line-height: 1.65; }
.sav-footer__branches { max-width: 32ch; display: flex; flex-wrap: wrap; gap: .15rem .55rem; }
/* Alternate town colours so each name reads as its own item. */
.sav-footer__branches span:nth-child(odd) { color: #fff; }
.sav-footer__branches span:nth-child(even) { color: #8d9098; }
.sav-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.sav-footer a:hover { color: #fff; }
.sav-footer__mail { text-decoration: underline !important; text-underline-offset: .45em; text-decoration-thickness: 1px !important; }
.sav-footer__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #8d9098; }
.sav-footer__phone { display: inline-block; margin-top: .2rem; color: #fff !important; font-size: 1.25rem; font-weight: 500; letter-spacing: -.02em; }
.sav-footer__phone:hover { color: var(--sav-brand) !important; }
.sav-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.sav-footer__social { display: flex; flex-wrap: wrap; gap: .4rem; }
.sav-social--icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 14%); color: #fff !important; transition: background .2s, border-color .2s, color .2s; }
.sav-social--icon:hover { background: var(--sav-brand); border-color: var(--sav-brand); color: #000 !important; }
.sav-footer__wa { margin-top: 1.25rem !important; }
.sav-footer__pay { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; justify-items: center; gap: 1.25rem; padding-block: 2rem; border-top: 1px solid rgb(255 255 255 / 12%); }
.sav-footer__pay ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.25rem 2.25rem; list-style: none; margin: 0; padding: 0; }
.sav-footer__pay img { display: block; height: 20px; width: auto; filter: brightness(0) invert(1); opacity: .55; transition: opacity .2s; }
.sav-footer__pay img:hover { opacity: 1; }
.sav-footer__pay .sav-paylogo--happypay, .sav-footer__pay .sav-paylogo--fevertree { height: 30px; }
.sav-footer__bar { margin-top: 0; }
.sav-footer__bar p { margin: 0; text-align: center; padding-block: 1.6rem; border-top: 1px solid rgb(255 255 255 / 12%); font-size: .95rem; color: #8d9098; }
.sav-footer__bar a { color: #c7c9cf; }
@media (max-width: 900px) { .sav-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.75rem; } }
@media (max-width: 560px) { .sav-footer__grid { grid-template-columns: 1fr; } }
