/*
Theme Name: SiteSync Brian Scott
Description: Theme for Brian Scott Physiotherapy & Well-Being Clinic, a rebuild of the 2016 Avada site that keeps its look (blue and white, Raleway, the grey pages with the Quick Search Menu sidebar, the light footer under a blue bar) without Avada, so the site runs on current PHP. Content comes from the SiteSync plugin; this theme only renders it.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Author: SiteSync
Text Domain: sitesync-brian-scott
Update URI: false
*/

/* The old site's Google Fonts (SIL Open Font License 1.1), Latin subset, served with the theme:
   Raleway everywhere, Oswald for the footer's column titles. */
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/raleway-400.woff2) format("woff2"); }
@font-face { font-family: "Raleway"; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/raleway-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/raleway-600.woff2) format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/raleway-700.woff2) format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/oswald-400.woff2) format("woff2"); }

:root {
	/* The old site's colours: the logo's blue, the deep blue bars (#20359e), the light link blue
	   (#609ddb), grey page background (#f6f6f6), dark text (#333) and the contact form's dark
	   band (#29303b). */
	--blue: #2a5ba8;
	--blue-d: #20359e;
	--blue-l: #4a86c8;
	--blue-xl: #e8f0fa;
	--teal: #4a9b98;
	--ink: #333;
	--text: #555;
	--muted: #747474;
	--line: #e5e5e5;
	--grey: #f6f6f6;
	--dark: #29303b;
	--white: #fff;
	--wrap: 1200px;
	--radius: 10px;
	--shadow: 0 6px 24px rgba(20, 35, 70, .08);
	--font: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.75; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-l); text-decoration: none; }
a:hover, a:focus-visible { color: var(--blue-d); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue-d); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 700; text-wrap: balance; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
.icon { width: 1em; height: 1em; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.nowrap { white-space: nowrap; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; clip-path: none; padding: 10px 16px; background: var(--white); color: var(--ink); }
.btn { display: inline-block; padding: 12px 26px; border-radius: 6px; background: var(--blue); color: var(--white); font-weight: 700; }
.btn:hover { background: var(--blue-d); color: var(--white); }

/* Header: the thin strip over the white bar, with the old site's deep blue line on top. */
.site-header { position: relative; z-index: 20; background: var(--white); border-top: 3px solid var(--blue-d); }
.topbar { border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; }
.topbar p { margin: 0; }
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--blue-d); }
.topbar__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue) !important; font-size: 15px; white-space: nowrap; }
.site-header__bar { border-bottom: 1px solid var(--blue-d); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.site-header__logo img { width: 350px; height: auto; }
.site-nav > ul { display: flex; align-items: stretch; gap: 0 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav > ul > li > a { display: flex; align-items: center; height: 92px; padding: 0 16px; color: var(--ink); font-size: 16px; border-top: 3px solid transparent; white-space: nowrap; }
.site-nav > ul > li > a:hover, .site-nav > ul > li.is-current > a { color: var(--blue-l); border-top-color: var(--blue-l); }
.site-nav__sub { position: absolute; top: 100%; left: 0; min-width: 250px; list-style: none; margin: 0; padding: 6px 0; background: var(--white); border-top: 3px solid var(--blue-l); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.site-nav li.has-sub:hover > .site-nav__sub, .site-nav li.has-sub:focus-within > .site-nav__sub { opacity: 1; visibility: visible; transform: none; }
.site-nav__sub a { display: block; padding: 9px 20px; color: var(--ink); font-size: 15px; border-bottom: 1px solid #f0f0f0; }
.site-nav__sub li:last-child a { border-bottom: 0; }
.site-nav__sub a:hover, .site-nav__sub .is-current a { color: var(--blue-l); background: var(--grey); }
.menu-toggle { display: none; }

/* Slider: the old photos with their wording, full width; capped in height on wide screens. */
.section--slider { position: relative; background: #dfe6ee; }
.slider__track { display: grid; }
.slider__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }
.slider__slide.is-active { opacity: 1; visibility: visible; }
.slider__slide img { width: 100%; aspect-ratio: 1350 / 534; max-height: 600px; object-fit: cover; }
.slider__dots { position: absolute; right: 18px; bottom: 16px; display: flex; gap: 8px; }
.slider__dots button { width: 12px; height: 12px; padding: 0; border: 2px solid var(--white); border-radius: 50%; background: rgba(255, 255, 255, .35); cursor: pointer; }
.slider__dots button.is-active { background: var(--white); }

/* Page body: grey, the content beside the white sidebar (on the left, as on the old site). */
.page-body { background: var(--grey); padding: 60px 0 80px; }
.page-body__inner { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 0 70px; align-items: start; }
.page-body__content { grid-column: 2; grid-row: 1; min-width: 0; }
.sidebar { grid-column: 1; grid-row: 1; background: var(--white); padding: 34px 32px 14px; border-radius: var(--radius); box-shadow: var(--shadow); font-size: 15px; }
.sidebar__block { margin-bottom: 30px; }
.sidebar__title { margin: 0 0 14px; color: var(--ink); font-weight: 700; font-size: 15px; }
.side-menu { list-style: none; margin: 0; padding: 0; }
.side-menu a { display: flex; align-items: baseline; gap: 6px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--blue-l); line-height: 1.45; }
.side-menu a .icon { width: 11px; height: 11px; position: relative; top: 1px; }
.side-menu a:hover, .side-menu li.is-current > a { color: var(--blue-d); }
.side-menu--sub { padding-left: 14px; }
.side-menu--sub a { font-size: 14.5px; }
.contact-info { list-style: none; margin: 0; padding: 0; }
.contact-info li { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; line-height: 1.6; }
.contact-info .icon { width: 15px; height: 15px; color: var(--blue); position: relative; top: 2px; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; line-height: 1.5; }
.hours li span:first-child { font-weight: 600; color: var(--ink); }
.hours--centred li { justify-content: center; gap: 6px; }
.hours--centred li span:first-child::after { content: ":"; }

/* Headings with the thin rule after them, as on the old pages. */
.heading { display: flex; align-items: center; gap: 18px; }
.heading::after { content: ""; flex: 1 1 40px; min-width: 40px; height: 1px; background: #d8d8d8; }
.heading--1 { font-size: 36px; margin-bottom: 26px; }
.heading--2 { font-size: 28px; }
.heading--3 { font-size: 22px; margin-top: 1.4em; }
.heading--3::after { display: none; }
.heading--small { font-size: 19px; margin: 0 0 22px; }
.heading--small::after { background: var(--ink); }
.section--text + .section--text .heading--3 { margin-top: .4em; }
.prose h4 { font-size: 18px; margin: 1.6em 0 .5em; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .2em; }
.prose li::marker { color: var(--blue-l); }
.prose .lead { font-size: 19px; color: var(--ink); }
.prose blockquote { margin: 1.5em 0; padding: 18px 26px; background: var(--white); border-left: 4px solid var(--blue-l); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.section + .section { margin-top: 40px; }

/* Image links: the homepage cards and the Physiotherapy tiles. */
.image-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.image-links--cards .image-links { grid-template-columns: repeat(3, 1fr); text-align: center; }
.image-links--cards a { display: block; color: var(--ink); }
.image-links--cards img { width: 100%; max-width: 240px; margin: 0 auto 10px; border-radius: 12px; aspect-ratio: 197 / 126; object-fit: cover; transition: transform .2s, box-shadow .2s; }
.image-links--cards a:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.image-links__title { font-size: 19px; font-weight: 700; }
.image-links--cards a:hover .image-links__title { color: var(--blue-l); }
.image-links--tiles .image-links { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.image-links--tiles a { display: block; overflow: hidden; border-radius: var(--radius); }
.image-links--tiles img { width: 100%; aspect-ratio: 560 / 357; object-fit: cover; transition: transform .3s; }
.image-links--tiles a:hover img { transform: scale(1.04); }

/* Logos in white boxes. */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--logos, 5), 1fr); gap: 14px; }
.logos li { display: flex; align-items: center; justify-content: center; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; aspect-ratio: 4 / 3; }
.logos img { max-height: 100%; width: auto; object-fit: contain; }

/* Contact page: the boxed details, then the dark band with the form. */
.section--contact-details { padding: 50px 0 60px; }
.details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 44px 30px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; font-size: 15px; }
.details__item .icon { width: 40px; height: 40px; color: var(--teal); margin: 0 auto 14px; }
.details__item h2 { font-size: 19px; margin-bottom: 14px; }
.details__item p { margin: 0; }
.section--enquiry { background: var(--dark); color: #d9dde3; padding: 80px 0; margin: 0 !important; }
.enquiry { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }
.enquiry__intro h2 { color: var(--white); text-transform: uppercase; font-size: 20px; }
.enquiry__intro p { font-style: italic; }
.enquiry__form form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; }
.enquiry__form form > * { grid-column: 1 / -1; margin: 0; }
.enquiry__form form > .sitesync-field:not(.sitesync-field--textarea) { grid-column: auto; }
.enquiry__form label { display: block; margin-bottom: 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; color: var(--white); }
.enquiry__form input:not([type="hidden"]):not([type="checkbox"]), .enquiry__form textarea, .enquiry__form select { width: 100%; padding: 11px 13px; border: 1px solid #c9ced6; border-radius: 4px; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); }
.enquiry__form textarea { min-height: 150px; }
.enquiry__form button, .enquiry__form [type="submit"] { justify-self: start; padding: 13px 30px; border: 0; border-radius: 6px; background: var(--blue-l); color: var(--white); font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.enquiry__form button:hover, .enquiry__form [type="submit"]:hover { background: #3a75b8; }
.enquiry__form a { color: #9cc4f0; }

/* 404 and plain WordPress pages. */
.wp-page, .notfound { padding: 0 24px; }

/* Footer: light, under the deep blue bar, as on the old site. */
.site-footer { border-top: 12px solid var(--blue-d); background: var(--white); font-size: 15px; }
.site-footer__cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 30px; padding-bottom: 36px; }
.site-footer__title { margin: 0 0 22px; font-family: "Oswald", var(--font); font-size: 18px; text-transform: uppercase; color: var(--blue-l); letter-spacing: .01em; }
.site-footer__logo img { width: 220px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { padding: 3px 0; }
.site-footer__links a { color: var(--text); }
.site-footer__links a:hover { color: var(--blue-l); }
.site-footer .hours li { justify-content: flex-start; }
.site-footer .hours li span:first-child { min-width: 92px; }
.site-footer__bottom { border-top: 1px solid var(--blue-d); padding: 22px 0; font-size: 12.5px; color: var(--muted); }
.site-footer__bottom p { margin: 0 auto; }

/* Back to top (bottom left) and the phone bar. */
.to-top { position: fixed; left: 18px; bottom: 18px; z-index: 30; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-d); color: var(--white); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.to-top.is-on { opacity: .9; visibility: visible; }
.to-top:hover { color: var(--white); opacity: 1; }
.phone-bar { display: none; }

/* Tablets and phones. */
@media (max-width: 1180px) {
	.site-nav > ul > li > a { padding: 0 11px; font-size: 15px; }
	.site-header__logo img { width: 290px; }
}
@media (max-width: 1023px) {
	.topbar { display: none; }
	.site-header { position: sticky; top: 0; }
	.site-header__inner { min-height: 68px; padding-right: 14px; }
	.site-header__logo img { width: 230px; }
	.menu-toggle { display: grid; place-items: center; width: 46px; height: 46px; margin-right: 8px; padding: 0; border: 0; border-radius: 8px; background: var(--blue); color: var(--white); cursor: pointer; }
	.menu-toggle .icon { width: 24px; height: 24px; grid-area: 1 / 1; }
	.menu-toggle .icon--close, .menu-open .menu-toggle .icon--menu { display: none; }
	.menu-open .menu-toggle .icon--close { display: block; }
	.site-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 68px); overflow-y: auto; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .12); display: none; }
	.menu-open .site-nav { display: block; }
	.site-nav > ul { display: block; padding: 6px 0 14px; }
	.site-nav > ul > li > a { height: auto; padding: 12px 24px; border: 0; font-size: 17px; }
	.site-nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 18px; min-width: 0; }
	.site-nav__sub a { border: 0; padding: 7px 24px; }
	.page-body { padding: 36px 0 50px; }
	.page-body__inner { grid-template-columns: 1fr; gap: 40px; }
	.page-body__content, .sidebar { grid-column: 1; grid-row: auto; }
	.details { grid-template-columns: repeat(2, 1fr); }
	.logos { grid-template-columns: repeat(3, 1fr); }
	.enquiry { grid-template-columns: 1fr; gap: 20px; }
	.site-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	body { font-size: 16px; padding-bottom: 58px; }
	.wrap { padding: 0 16px; }
	.site-header__inner { padding-right: 0; padding-left: 0; }
	.site-header__logo { padding-left: 16px; }
	.site-header__logo img { width: 210px; }
	.menu-toggle { margin-right: 6px; }
	.slider__slide img { aspect-ratio: 16 / 10; object-position: 40% 50%; }
	.slider__dots { right: 12px; bottom: 10px; }
	.heading { text-align: center; justify-content: center; }
	.heading::after { display: none; }
	.heading--1 { font-size: 28px; }
	.heading--3 { font-size: 20px; }
	.image-links--cards .image-links, .image-links--tiles .image-links { grid-template-columns: 1fr; }
	.logos { grid-template-columns: repeat(2, 1fr); }
	.details { grid-template-columns: 1fr; padding: 30px 16px; }
	.enquiry__form form { grid-template-columns: 1fr; }
	.section--enquiry { padding: 50px 0; }
	.enquiry__intro { text-align: center; }
	.site-footer__cols { grid-template-columns: 1fr; gap: 26px; text-align: center; }
	.site-footer__logo img { margin: 0 auto; }
	.site-footer .hours li, .site-footer .contact-info li { justify-content: center; }
	.site-footer__bottom { text-align: center; }
	.to-top { bottom: 72px; width: 40px; height: 40px; }
	.phone-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; box-shadow: 0 -4px 14px rgba(0, 0, 0, .12); }
	.phone-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; color: var(--white); font-weight: 700; background: var(--blue-d); }
	.phone-bar a + a { background: var(--blue-l); }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
