/*
Theme Name: SiteSync Inverness Roofers
Description: Theme for the Inverness Roofers one-page sites (flat roofs, roof repairs, emergency roof repairs), a rebuild of their old Elementor layout that looks the same, in the Inverness Roofers navy and green with its logo. Content comes from the SiteSync plugin; this theme only renders it.
Version: 1.1.2
Requires at least: 6.2
Requires PHP: 7.4
Author: SiteSync
Text Domain: sitesync-inverness-roofers
Update URI: false
*/

/* The old sites' Google Fonts (SIL Open Font License 1.1), Latin subset, served with the theme. */
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/titillium-web-400.woff2) format("woff2"); }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/titillium-web-600.woff2) format("woff2"); }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/titillium-web-700.woff2) format("woff2"); }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 900; font-display: swap; src: url(assets/fonts/titillium-web-900.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/roboto-600.woff2) format("woff2"); }

/*
 * The colours. The old sites were blue #005779, gold #bc9b3c and cream #f8f5ef; each now takes
 * the Inverness Roofers colour that plays the same part (site.json brand colours override the
 * first two). --link is a deeper shade of the green for text links on light backgrounds.
 */
:root {
	--brand: var(--sitesync-primary, #002f47);
	--accent: var(--sitesync-accent, #09d793);
	--light: #e9f7f2;
	--sky: #004466;
	--grey: #54595f;
	--link: #05875e;
	--star: #f0ad4e;
	--wrap: 1500px; /* desktop: every section's content is 1400px wide, centred, with 50px each side */
	--font: "Titillium Web", "Helvetica Neue", Arial, sans-serif;
	--system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--system); font-size: 16px; line-height: 1.5; color: #333; background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font); line-height: 1.1; }
p { margin: 0 0 .9em; }
a { color: var(--link); text-decoration: none; }
a:hover { color: #000; }
svg { display: block; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: #000; z-index: 1000; }
.anchor { display: block; position: relative; top: -20px; visibility: hidden; }
.rich > :last-child { margin-bottom: 0; }
/* Elementor's text blocks: paragraphs .9rem apart, and the block pulled up 10px at the end. */
.body-text p { margin: 0 0 .9rem; }
.body-text.rich > :last-child { margin-bottom: .9rem; }
.body-text { margin-bottom: -10px; }

/* Buttons as Elementor drew them: 12px 24px, 3px corners, bold Titillium. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 3px; font-family: var(--font); font-size: 16px; font-weight: 700; line-height: 1.1; color: #fff; background: var(--brand); text-decoration: none; transition: background-color .3s, color .3s; }
.btn:hover, .btn:focus, .btn:visited { color: #fff; }
.btn--accent { background: var(--accent); }
.btn--swap:hover, .btn--swap:focus { background: var(--light); color: var(--brand); }
.btn svg { width: 1em; height: 1em; fill: currentColor; }

/* Ticked lists. */
.ticks { list-style: none; margin: 0; padding: 0; font-family: var(--font); font-size: 18px; font-weight: 900; line-height: 1.7; color: var(--brand); }
.ticks li { display: flex; align-items: center; gap: 6px; }
.ticks svg { width: 16px; height: 16px; fill: var(--accent); flex: none; }
.ticks--inline { display: flex; flex-wrap: wrap; gap: 0 4px; }
.ticks--inline li { margin-right: 2px; }

/* ---------- Header ---------- */
.topbar { background: #fff; padding: 8px 0; }
.topbar ul { list-style: none; margin: 0 auto; padding: 0 10px; max-width: 1400px; display: flex; flex-wrap: wrap; gap: 0 22px; font-family: var(--font); font-size: 18px; line-height: 1.7; }
.topbar li { display: flex; align-items: center; gap: 4px; color: var(--brand); }
.topbar a { color: var(--brand); text-decoration: none; display: flex; align-items: center; gap: 4px; }
.topbar a:hover { color: var(--brand); }
.topbar svg { width: 16px; height: 16px; fill: var(--accent); flex: none; margin-right: 5px; }

.site-header { background: var(--brand); padding: 0 10px; position: relative; }
.site-header__inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; }
.site-header__logo { flex: 0 0 20%; padding: 10px; }
.site-header__logo img { width: 80%; }
.site-header__logo span { font-family: var(--font); font-weight: 700; font-size: 24px; color: #fff; }
.site-header__right { flex: 0 0 80%; display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding: 10px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.site-nav a { position: relative; display: block; padding: 13px 10px; font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 1.1; color: #fff; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); opacity: 0; transition: opacity .3s; }
.site-nav a:hover, .site-nav a:focus { color: #fff; }
.site-nav a:hover::after, .site-nav a:focus::after { opacity: 1; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 3px; background: var(--accent); color: #fff; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero with the quote form ---------- */
.hero { position: relative; min-height: 595px; padding: 75px 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero__slides, .hero__slides span { position: absolute; inset: 0; }
.hero__slides span { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s; }
.hero__slides span.is-on { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background-image: linear-gradient(180deg, var(--brand) 0%, rgba(233, 247, 242, .47) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 20px; }
.hero__main { flex: 0 1 56%; display: flex; flex-direction: column; justify-content: space-between; gap: 5px; padding: 10px; }
.stars { display: flex; gap: 29px; margin-bottom: 5px; }
.stars svg { width: 38px; height: 38px; fill: var(--star); }
.hero h1 { margin-top: 8px; color: #fff; font-size: 60px; font-weight: 700; }
.hero__text { padding-right: 70px; margin-top: 15px; color: #fff; font-family: var(--font); font-size: 18px; line-height: 1.7; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px; margin: 0 -10px; }
.hero__stats { display: flex; gap: 20px; padding-top: 15px; }
.stat { flex: 1 1 0; display: flex; align-items: center; gap: 15px; padding: 16px 20px; border-radius: 10px; background: var(--light); color: var(--brand); }
.stat__text { flex: 1; font-family: var(--font); }
.stat strong { display: block; font-size: 40px; font-weight: 700; line-height: 1; }
.stat span { font-family: var(--system); font-size: 16px; line-height: 1.5; }
.stat svg { width: 42px; height: 42px; fill: var(--accent); flex: none; }

.quote-box { border: 10px solid var(--light); border-radius: 10px; background: var(--accent); padding: 20px 35px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.hero .quote-box { flex: 0 1 45%; }
.quote-box__title { margin: 8px 0 15px; text-align: center; color: #fff; font-size: 46px; font-weight: 700; }
.hero .quote-box__title { color: var(--light); }
.quote-box__text { margin-bottom: 15px; text-align: center; color: var(--light); font-family: var(--font); font-size: 18px; line-height: 1.7; }
.quote-box__text p { margin: 0; }
.quote-box__text strong { font-weight: 700; color: #fff; }

/* The form, laid out as the old Elementor form: two fields a row, labels above. */
.sitesync-form { display: flex; flex-wrap: wrap; margin: 0 -5px; }
.sitesync-field { width: 100%; margin: 0 0 10px; padding: 0 5px; }
.sitesync-field--text, .sitesync-field--email, .sitesync-field--tel { width: 50%; }
.sitesync-form label { display: block; color: #000; font-family: var(--system); font-size: 16px; line-height: 1; }
.sitesync-form label span { display: none; }
.sitesync-form input, .sitesync-form select, .sitesync-form textarea { display: block; width: 100%; min-height: 40px; padding: 8px 16px; border: 1px solid #69727d; border-radius: 3px; background: #fff; color: #947777; font-family: var(--system); font-size: 15px; line-height: 1.4; }
.sitesync-form textarea { min-height: 0; height: 54px; padding: 5px 14px; resize: vertical; }
.sitesync-form select { appearance: none; -webkit-appearance: none; padding: 5px 36px 5px 14px; font-size: 16px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 571.4 571.4'%3E%3Cpath fill='%23947777' d='M571 393Q571 407 561 418L311 668Q300 679 286 679T261 668L11 418Q0 407 0 393T11 368 36 357H536Q550 357 561 368T571 393Z' transform='translate(0 -220)'/%3E%3C/svg%3E") no-repeat right 12px center / 12px; }
.sitesync-form ::placeholder { color: #947777; opacity: .6; }
.sitesync-submit { width: 100%; margin: 0; padding: 0 5px; }
.sitesync-submit .button { display: block; width: 100%; min-height: 40px; padding: 0 24px; border: 0; border-radius: 3px; background: var(--brand); color: #fff; font-family: var(--font); font-size: 22px; font-weight: 500; line-height: 1.1; cursor: pointer; transition: color .3s; }
.sitesync-submit .button:hover { color: #000; }
.sitesync-form-message { margin-bottom: 10px; padding: 12px 16px; border-radius: 3px; background: #fff; color: var(--brand); font-family: var(--font); font-size: 18px; }
.sitesync-form-message--error { color: #a00; }

/* ---------- About: two photos and the text ---------- */
.intro { position: relative; padding: 75px 0; background-size: cover; background-position: center; }
.intro__inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: stretch; gap: 50px; }
.intro__photos { flex: 0 1 606px; display: flex; gap: 20px; }
.intro__card { flex: 0 0 49.5%; margin: 60px 0; border-radius: 15px; background-size: cover; background-position: center; min-height: 360px; }
.intro__photo { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 3px; }
.intro__photo > img:first-child { width: 100%; border-radius: 10px; }
.intro__badge { position: absolute; left: -143px; top: calc(50% + 4px); width: 100%; }
.intro__text { flex: 0 1 484px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.intro h2 { margin: 5px 0 0; color: var(--brand); font-size: 38px; font-weight: 600; }
.body-text { color: #000; font-family: var(--font); font-size: 18px; line-height: 1.7; }
.intro .ticks, .feature .ticks { margin: 0 0 10px; }
.intro .btn { align-self: flex-start; }

/* ---------- Feature card over the blue band ---------- */
.feature { position: relative; padding: 50px 0; background: var(--brand) center / auto; }
.feature::before { content: ""; position: absolute; inset: 0; background: var(--brand); opacity: .55; }
.feature__inner { position: relative; max-width: 1140px; margin: 35px auto 0; display: flex; gap: 20px; }
.feature__card { flex: 0 0 63%; display: flex; flex-direction: column; justify-content: center; padding: 20px 25px; background: var(--light); }
.feature h2 { margin: 5px 0 0; color: var(--brand); font-size: 34px; font-weight: 600; }
.feature .btn { align-self: flex-start; flex-direction: row-reverse; }
.feature__photo { flex: 1; min-height: 425px; border-radius: 10px; background-size: cover; background-position: center; }

/* ---------- Numbered service cards ---------- */
.cards { padding: 40px 0 40px; }
.cards__head { max-width: 1140px; margin: 0 auto 40px; padding: 0 10px; text-align: center; }
.cards__head h2 { margin: 5px 0 27px; color: var(--brand); font-size: 60px; font-weight: 600; }
.cards__head .body-text { text-align: center; }
.cards__grid { max-width: 1600px; margin: 0 auto; padding: 10px 50px 0; display: flex; gap: 10px; }
.card { position: relative; flex: 1 1 0; margin-right: 20px; display: flex; flex-direction: column; justify-content: flex-start; gap: 20px; padding: 20px; border-bottom: 7px solid var(--grey); background: var(--sky) center / cover; }
.card::before { content: ""; position: absolute; inset: 0; background: var(--brand); opacity: .8; transition: background-color .5s, opacity .5s; }
.card:hover::before { background: #000; opacity: .5; }
.card > * { position: relative; }
.card__num { align-self: stretch; text-align: right; margin: 2px -25px 0 0; padding: 0 25px; background: var(--accent); color: #fff; font-family: "Roboto", var(--system); font-size: 60px; font-weight: 600; line-height: 1; }
.card h3 { margin-bottom: 16px; color: #fff; font-size: 30px; font-weight: 700; }
.card p { margin: 0; color: #fff; font-family: var(--font); font-size: 18px; line-height: 1.7; }
.card .btn { align-self: flex-start; margin-top: auto; } /* numbers line up at the top, buttons at the bottom */

/* ---------- Materials carousel and the gallery ---------- */
.materials { max-width: 1160px; margin: 0 auto; padding: 0 10px 40px; display: flex; flex-direction: column; gap: 20px; }
.materials .anchor { top: 0; }
.materials h2, .materials h3 { margin: 5px 0 7px; text-align: center; color: var(--brand); font-size: 48px; font-weight: 600; }
.materials .body-text { text-align: center; }
.logos { position: relative; }
.logos__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.logos__track::-webkit-scrollbar { display: none; }
.logos__track li { list-style: none; flex: 0 0 20%; scroll-snap-align: start; padding: 0 5px; }
.logos__track { margin: 0; padding: 0; }
.logos__track img { width: 100%; }
.logos__nav { position: absolute; top: 40%; transform: translateY(-50%); width: 25px; height: 25px; padding: 0; border: 0; background: none; color: rgba(238, 238, 238, .9); cursor: pointer; }
.logos__nav svg { width: 25px; height: 25px; fill: currentColor; }
.logos__nav--prev { left: -30px; }
.logos__nav--next { right: -30px; }
.logos__dots { display: flex; justify-content: center; gap: 12px; margin-top: 15px; }
.logos__dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #000; opacity: .2; cursor: pointer; }
.logos__dots button.is-on { opacity: 1; }
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 10px; }
.gallery a { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.gallery a::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .8s; }
.gallery a:hover::after { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .9); padding: 40px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 90vh; width: auto; }
.lightbox button { position: absolute; padding: 10px; border: 0; background: none; color: #fff; cursor: pointer; }
.lightbox button svg { width: 30px; height: 30px; fill: currentColor; }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Why choose us ---------- */
.why { position: relative; padding: 40px 50px; border-top: 8px solid var(--grey); border-bottom: 8px solid var(--grey); background-size: cover; background-position: center; }
.why::before { content: ""; position: absolute; inset: 0; background: var(--brand); opacity: .78; transition: opacity .3s; }
.why:hover::before { opacity: .72; }
.why__inner { position: relative; max-width: 1440px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 10px; }
.why__text { flex: 1 1 0; padding-right: 25px; }
.why__title { display: block; color: var(--accent); font-family: var(--font); font-size: 48px; font-weight: 600; line-height: 1; }
.why__intro { color: #fff; font-family: var(--font); font-size: 18px; line-height: 1.7; }
.why__intro p { margin: 0; }
.why h3 { margin-bottom: 5px; color: var(--accent); font-size: 36px; font-weight: 600; }
.why__item p { margin: 0; color: #fff; font-family: var(--font); font-size: 18px; line-height: 1.7; }
.why__photos { flex: 1 1 0; display: flex; padding: 10px 10px 10px 35px; }
.why__photos > div { flex: 1 1 0; }
.why__photos > div:first-child { padding: 25px 12.5px 0 0; }
.why__photos > div:last-child { padding-left: 12.5px; }

/* ---------- Reviews ---------- */
.reviews { position: relative; padding: 30px 0; background: #d2eee4 center / cover; }
.reviews::before { content: ""; position: absolute; inset: 0; background: rgba(233, 247, 242, .72); }
.reviews__inner { position: relative; max-width: 1140px; margin: 0 auto; padding: 0 10px; display: flex; }
.reviews__cards { flex: 0 0 57%; display: flex; gap: 20px; min-height: 460px; padding: 0 0 0 0; }
.review { flex: 1 1 0; align-self: flex-start; display: flex; flex-direction: column; justify-content: center; padding: 20px 30px 20px 20px; border-radius: 10px; background: var(--light); box-shadow: 0 0 10px rgba(0, 0, 0, .5); }
.review:nth-child(odd) { margin-bottom: 70px; padding-top: 27px; padding-bottom: 27px; }
.review:nth-child(even) { margin-top: 90px; padding-top: 65px; padding-bottom: 65px; }
.review blockquote { margin: 0; }
.review p { margin: 0; color: #000; font-family: var(--system); font-size: 16px; line-height: 1.5; }
.review cite { display: block; margin-top: 10px; color: var(--accent); font-style: normal; font-family: var(--system); font-size: 16px; font-weight: 700; }
.reviews__text { flex: 0 0 43%; display: flex; flex-direction: column; justify-content: center; padding-left: 50px; }
.pill { align-self: flex-start; margin-bottom: 20px; padding: 8px 14px 8px 12px; border-radius: 100px; background: var(--accent); color: #fff; font-family: "Roboto", var(--system); font-size: 15px; font-weight: 600; line-height: 1; }
.reviews__text h2 { margin: 5px 0 27px; color: var(--brand); font-size: 48px; font-weight: 600; }

/* ---------- Contact ---------- */
.contact { position: relative; min-height: 595px; padding: 75px 0; display: flex; flex-direction: column; justify-content: center; background: var(--brand) center / cover no-repeat; }
.contact::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(180deg, var(--sky) 0%, rgba(0, 47, 71, .61) 58%); }
.contact__inner { position: relative; padding: 0 20px; display: flex; justify-content: space-between; gap: 5px; }
.contact__details { flex: 0 0 54.128%; display: flex; flex-direction: column; justify-content: center; }
.contact__details h2 { margin-top: 8px; color: #fff; font-size: 60px; font-weight: 700; }
.contact__text { padding-right: 70px; margin-top: 20px; color: #fff; font-family: var(--font); font-size: 18px; line-height: 1.7; }
.contact__label { display: block; margin-top: 8px; color: var(--accent); font-family: var(--font); font-size: 44px; font-weight: 700; line-height: 1.1; }
.contact__big { display: block; color: #fff; font-family: var(--font); font-size: 60px; font-weight: 700; line-height: 1.1; text-decoration: none; }
.contact__big--email { font-size: 40px; overflow-wrap: anywhere; }
.contact__big--phone-only { display: none; }
.contact__big:hover, .contact__big:visited { color: #fff; }
.contact .quote-box { flex: 1 1 0; }

/* ---------- Footer ---------- */
.site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; padding: 10px; background: var(--brand); color: #fff; font-family: var(--font); font-size: 18px; line-height: 1.7; text-align: center; }
.site-footer p { margin: 0; padding: 7px 0; }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { color: #000; }

/* ---------- Contact buttons on the left edge ---------- */
.contact-tabs { position: fixed; left: 0; bottom: 45px; z-index: 50; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.contact-tabs a { display: flex; align-items: center; justify-content: flex-end; padding: 12px; border-radius: 0 50px 50px 0; background: var(--brand); color: #fff; font-family: var(--system); font-size: 14px; font-weight: 500; text-decoration: none; transform: translateX(calc(-100% + 46px)); transition: transform .3s; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.contact-tabs a:hover, .contact-tabs a:focus { transform: none; color: #fff; }
.contact-tabs a span { padding: 0 12px; white-space: nowrap; }
.contact-tabs svg { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* A WordPress page SiteSync doesn't manage, and the 404 page. */
.wp-page, .notfound { max-width: 900px; margin: 0 auto; padding: 60px 20px; font-family: var(--font); font-size: 18px; line-height: 1.7; color: #000; }
.wp-page h1, .notfound h1 { margin-bottom: 20px; color: var(--brand); font-size: 48px; font-weight: 600; }

/* ---------- Tablet ---------- */
/* ---------- Desktop: one width for every section ----------
 * The old page mixed 1140, 1160, 1440 and 1600px rows. On desktop every section's content now
 * lines up in the same centred 1400px column; the 50px sides keep it clear of the contact tabs. */
@media (min-width: 1025px) {
	.topbar ul, .site-header__inner, .hero__inner, .intro__inner, .feature__inner, .cards__grid,
	.materials, .why__inner, .reviews__inner, .contact__inner { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 50px; padding-right: 50px; }
	.intro__photos { flex: 1 1 606px; }
	.intro__text { flex: 1 1 484px; }
	.cards__grid { gap: 30px; }
	.card { margin-right: 0; }
	.card__num { margin-right: -20px; padding: 0 20px; }
	.why { padding-left: 0; padding-right: 0; }
	.site-header { padding: 0; }
	.site-header__logo { flex: 0 1 280px; padding-left: 0; }
	.site-header__right { flex: 1 1 auto; padding-right: 0; }
	.site-nav a, .site-header .btn { white-space: nowrap; }
	.reviews__text { padding-left: 80px; }
}

/* Smaller laptops: a tighter menu so it stays on one line inside the column. */
@media (min-width: 1025px) and (max-width: 1365px) {
	.site-header__logo { flex-basis: 200px; }
	.site-header__right { gap: 10px; }
	.site-nav a { padding: 13px 6px; font-size: 15px; }
	.site-header .btn { padding: 12px 16px; }
}

@media (max-width: 1024px) {
	.topbar ul { justify-content: center; padding: 0 30px; font-size: 16px; }
	.site-header__logo img { width: 100%; }
	.menu-toggle { display: inline-flex; margin: 0 auto; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: var(--brand); }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; }
	.site-nav a { padding: 15px 20px; font-size: 22px; }
	.site-nav a::after { display: none; }
	.site-nav a:hover, .site-nav a:focus { background: var(--accent); }
	.site-header .btn { font-size: 14px; }
	.btn { font-size: 14px; }

	.hero { padding: 70px 30px 175px; }
	.hero__inner { flex-direction: column; padding: 0 20px; }
	.hero__main, .hero .quote-box { flex: none; width: 100%; }
	.stars { justify-content: center; }
	.hero h1 { text-align: center; font-size: 48px; }
	.hero__text { padding-right: 0; text-align: center; }
	.hero__buttons { justify-content: center; }
	.hero__stats { margin: 15px 0; }
	.stat strong { font-size: 36px; }
	.quote-box { padding: 25px; }
	.quote-box__title { font-size: 48px; }
	.sitesync-submit .button { font-size: 14px; }

	.intro { padding: 70px 30px; }
	.intro__inner { flex-direction: column-reverse; }
	.intro__photos, .intro__text { flex: none; width: 100%; }
	.intro h2 { font-size: 48px; }
	.ticks { font-size: 16px; }

	.feature { padding: 70px 30px; }
	.feature__inner { flex-direction: column; }
	.feature__card { flex: none; width: 100%; padding: 35px; }
	.feature h2 { font-size: 48px; }

	.cards { padding: 15px; }
	.cards__head h2 { font-size: 48px; }
	.cards__grid { flex-direction: column; padding: 50px 15px; gap: 10px; }
	.card { margin-right: 12.5px; }
	.card h3 { font-size: 48px; }

	.materials { padding: 25px; }
	.materials .body-text { font-size: 16px; }
	.logos__track li { flex-basis: 33.333%; }
	.gallery { grid-template-columns: repeat(4, 1fr); }
	.logos__nav--prev { left: -24px; }
	.logos__nav--next { right: -24px; }

	.why { padding: 40px 15px 50px; }
	.why__inner { flex-direction: column; }
	.why__text { padding: 25px 0 0; text-align: center; width: 100%; }
	.why__photos { width: 100%; padding-left: 10px; }
	.why__intro, .why__item p { font-size: 16px; }
	.why h3 { font-size: 34px; }

	.reviews { padding: 70px 30px; }
	.reviews__inner { flex-direction: column-reverse; }
	.reviews__cards { flex: none; margin-top: 30px; }
	.reviews__text { flex: none; padding-left: 0; text-align: center; }
	.pill { align-self: center; }

	.contact { padding: 70px 30px 175px; background-position: left center; }
	.contact__inner { flex-direction: column; align-items: center; }
	.contact__details { flex: none; width: 100%; text-align: center; }
	.contact__details h2, .contact__label, .contact__big { font-size: 48px; }
	.contact__text { padding-right: 0; }
	.contact .quote-box { width: 100%; margin-top: 40px; }

	.site-footer { flex-direction: column; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
	.topbar { padding: 5px; }
	.topbar ul { padding: 0; font-size: 15px; gap: 0 22px; }
	.site-header__inner { flex-direction: column; }
	.site-header__logo, .site-header__right { flex: none; width: 100%; }
	.site-header__right { flex-direction: column; justify-content: center; }
	.site-header .btn { font-size: 13px; }
	.btn { font-size: 18px; }

	.hero { padding: 70px 20px 25px; }
	.hero__inner { padding: 0; }
	.hero__main { padding: 10px 0; }
	.stars { gap: 25px; }
	.stars svg { width: 22px; height: 22px; }
	.hero h1 { font-size: 32px; }
	.hero__buttons { flex-direction: column; align-items: center; }
	.hero__stats { flex-direction: column; }
	.stat strong { font-size: 32px; }
	.quote-box__title { font-size: 32px; }
	.sitesync-submit .button { font-size: 18px; }
	.sitesync-field--text, .sitesync-field--email, .sitesync-field--tel { width: 100%; }

	.intro { padding: 70px 20px; }
	.intro__photos { flex-direction: column; }
	.intro__card { display: none; }
	.intro__badge { left: 0; top: 431px; width: 75%; }
	.intro h2 { font-size: 32px; text-align: center; }
	.intro .body-text { text-align: center; }
	.intro .ticks { align-items: center; display: flex; flex-direction: column; font-size: 18px; }
	.intro .btn { align-self: center; }

	.feature { padding: 70px 20px; }
	.feature__card { padding: 25px; text-align: center; }
	.feature h2 { font-size: 32px; }
	.feature .ticks { font-size: 18px; }
	.feature .btn { align-self: center; }

	.cards { padding: 20px 0 0; }
	.cards__head { padding: 0 20px; }
	.cards__grid { padding: 50px 15px; }
	.cards__head h2 { font-size: 32px; }
	.card h3 { font-size: 32px; }

	.materials h2, .materials h3 { font-size: 32px; }
	.materials .body-text { font-size: 18px; }
	.logos__track li { flex-basis: 50%; }

	.why__photos, .materials h2 { display: none; }
	.why__title { font-size: 32px; }
	.why__intro, .why__item p { font-size: 18px; }
	.why h3 { font-size: 32px; }

	.reviews { padding: 70px 20px; }
	.reviews__cards { flex-direction: column; gap: 0; min-height: 0; }
	.review:nth-child(odd) { margin-bottom: 50px; }
	.review:nth-child(even) { margin-top: 0; padding-top: 40px; padding-bottom: 40px; }
	.review p { font-size: 18px; }
	.reviews__text h2 { font-size: 32px; }

	.contact { padding: 70px 20px 25px; }
	.contact__details h2, .contact__label, .contact__big, .contact__big--email { font-size: 32px; }
	.contact__big--email { display: none; }
	.contact__big--phone-only { display: block; }
	.quote-box__title { font-size: 32px; }

	.site-footer { font-size: 15px; }
}

/* Elementor Pro's own floating contact buttons and pop-ups stay hidden: the theme has its own tabs. */
.e-contact-buttons, .e-floating-bars, [data-elementor-type="floating-buttons"], [data-elementor-type="popup"] { display: none !important; }
