/*
Theme Name: IFS Theme
Theme URI: https://ipswichfloorsanding.com.au
Author: IFS
Description: Custom WordPress theme converted from HTML site. Manageable header, footer, and pages. SEO-friendly design for Ipswich Floor Sanding & Polishing.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ifs-theme
*/

/* ========= CSS Variables (from original site) ========= */
:root {
  --color-1: #34baf5;
  --color-2: #05659f;
  --color-3: #ffffff;
  --color-4: #000000;
  --color-5: #f9f9f9;
  --header-bg: #05659f;
  --footer-bg: #05659f;
  --footer-border: #34baf5;
  --text-dark: #333;
  --max-width: 1200px;
}

/* ========= Base ========= */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  font-family: Muli, 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--color-5);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========= Layout ========= */
html { overflow-x: hidden; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.site-main { flex: 1; min-width: 0; overflow-x: hidden; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* ========= Header (light blue bar, dark blue logo area with diagonal) ========= */
.site-header {
  background: var(--color-1);
  color: var(--color-3);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  overflow: hidden;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  position: relative;
  z-index: 1;
  min-height: 72px;
}
/* Dark blue left section with diagonal cut (slant up left-to-right) */
.site-branding-wrap {
  background: var(--color-2);
  padding: 0.85rem 1.5rem 0.85rem 20px;
  margin-left: -20px;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  min-width: 240px;
}
.site-branding a {
  display: flex;
  flex-direction: column;
  color: var(--color-3);
  text-decoration: none;
}
.site-branding a:hover { text-decoration: none; opacity: 0.95; }
.site-branding__line1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  display: block;
}
.site-branding__line2 {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.95;
  margin-top: 0.15em;
  display: block;
}
/* Nav on light blue – white text, spaced like screenshot */
.main-navigation {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  padding: 0 0.5rem;
}
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}
.main-navigation a {
  color: var(--color-3);
  font-weight: 500;
  padding: 0.5em 0;
  font-size: 1rem;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a { opacity: 0.9; text-decoration: none; }
/* Call CTA – dark blue pill button, clearly looks like a button */
.header-cta {
  display: flex;
  align-items: center;
  padding: 0.75rem 0 0.75rem 0.5rem;
}
.header-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  min-height: 44px;
  padding: 0.6rem 1.35rem;
  background: var(--color-2);
  color: var(--color-3);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  white-space: nowrap;
}
.header-cta a:hover {
  background: #044a7a;
  color: var(--color-3);
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

/* Mobile menu toggle – touch-friendly min 44px */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-3);
  color: var(--color-3);
  padding: 0.6rem 1rem;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1024px) {
  .menu-toggle { display: flex; }
  .main-navigation { display: none; width: 100%; padding: 0.5rem 0; }
  .main-navigation.toggled { display: block; }
  .header-inner { flex-wrap: wrap; gap: 0.5rem; }
  .main-navigation ul { flex-direction: column; gap: 0; }
  .main-navigation a { display: flex; align-items: center; padding: 0.75rem 0; min-height: 44px; line-height: 1.4; }
}
@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: stretch; min-height: 0; padding: 0.75rem 20px; }
  .site-branding-wrap { min-width: 0; margin-left: -20px; clip-path: none; padding: 0.75rem 1.25rem 0.75rem 20px; }
  .site-branding__line1 { font-size: 1.25rem; }
  .site-branding__line2 { font-size: 0.9rem; }
  .header-cta { padding: 0.5rem 0; justify-content: center; }
  .header-cta a { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .header-inner { padding: 0.6rem 16px; }
  .site-branding-wrap { margin-left: -16px; padding-left: 16px; }
}

/* ========= Page hero ========= */
.page-hero {
  background: var(--color-2) linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3));
  background-size: cover;
  background-position: center;
  color: var(--color-3);
  padding: 4rem 20px;
  text-align: center;
}
.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  text-shadow: 0 0 15px rgba(0,0,0,0.5);
}
.page-hero .subtitle { font-size: 1.1rem; opacity: 0.95; }

/* Wave divider (default for inner pages) */
.wave-divider {
  height: 100px;
  margin-top: -100px;
  position: relative;
  z-index: 1;
}
.wave-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========= Floor Sanding page ========= */
.page-floor-sanding .page-hero { padding: 200px 65px; }
@media (max-width: 767px) {
  .page-floor-sanding .page-hero { padding: 80px 20px 100px; }
}
.page-floor-sanding .wave-divider { height: 100px; margin-top: -100px; }

.floor-sanding-intro {
  padding: 2rem 20px;
  background: var(--color-3);
  text-align: center;
}
.floor-sanding-intro__p {
  margin: 0;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
}
.page-floor-sanding .container--narrow { max-width: 960px; margin-left: auto; margin-right: auto; }

.floor-sanding-section {
  padding: 3rem 20px;
  background: var(--color-3);
}
.floor-sanding-section--grey {
  background: var(--color-5);
}
.floor-sanding-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.floor-sanding-section__inner--reverse .floor-sanding-section__text { order: 2; }
.floor-sanding-section__inner--reverse .floor-sanding-section__image { order: 1; }
.floor-sanding-section__heading {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-2);
  text-align: center;
  line-height: 1.3;
}
.floor-sanding-section__body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  text-align: center;
}
.floor-sanding-section__body p { margin: 0 0 0.75rem; }
.floor-sanding-section__body p:last-child { margin-bottom: 0; }
.floor-sanding-section__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 3px 11px rgba(0,0,0,0.25);
  object-fit: cover;
}
.floor-sanding-cta.cta-strip,
.floor-polishing-cta.cta-strip { padding: 80px 65px; }
.floor-sanding-cta .cta-strip__p,
.floor-polishing-cta .cta-strip__p { font-size: 24px; font-weight: 400; }
@media (max-width: 1024px) {
  .floor-sanding-cta.cta-strip,
  .floor-polishing-cta.cta-strip { padding: 60px 30px; }
  .floor-sanding-cta .cta-strip__p,
  .floor-polishing-cta .cta-strip__p { font-size: 1.35rem; }
}
@media (max-width: 767px) {
  .floor-sanding-section__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .floor-sanding-section__inner--reverse .floor-sanding-section__text,
  .floor-sanding-section__inner--reverse .floor-sanding-section__image { order: unset; }
  .floor-sanding-cta.cta-strip,
  .floor-polishing-cta.cta-strip { padding: 40px 20px; }
  .floor-sanding-cta .cta-strip__p,
  .floor-polishing-cta .cta-strip__p { font-size: 1.1rem; line-height: 1.5; }
}
@media (max-width: 480px) {
  .floor-sanding-cta.cta-strip,
  .floor-polishing-cta.cta-strip { padding: 32px 16px; }
  .floor-sanding-cta .cta-strip__p,
  .floor-polishing-cta .cta-strip__p { font-size: 1rem; }
}

/* ========= Content ========= */
.page-content,
.entry-content {
  padding: 3rem 20px;
  background: var(--color-3);
}
@media (max-width: 767px) {
  .page-content,
  .entry-content { padding: 2rem 20px; }
}
@media (max-width: 480px) {
  .page-content,
  .entry-content { padding: 1.5rem 16px; }
}
.page-content .container,
.entry-content .container { max-width: 800px; margin-left: auto; margin-right: auto; }
.page-content h2 { color: var(--color-2); margin-top: 2rem; }
.page-content h3 { color: var(--color-2); margin-top: 1.5rem; }
.cta-strip {
  background: var(--color-2);
  color: var(--color-3);
  padding: 2rem 20px;
  text-align: center;
}
.cta-strip a { color: var(--color-3); font-weight: 700; }
.cta-strip a:hover { text-decoration: underline; }
.cta-strip__p { margin: 0; font-size: 1.1rem; }
.home-page .cta-strip { padding: 80px 65px; }
.home-page .cta-strip__p { font-size: 24px; font-weight: 400; }
@media (max-width: 1024px) {
  .home-page .cta-strip { padding: 60px 30px; }
  .home-page .cta-strip__p { font-size: 1.35rem; }
}
@media (max-width: 767px) {
  .home-page .cta-strip { padding: 40px 20px; }
  .home-page .cta-strip__p { font-size: 1.1rem; line-height: 1.5; }
  .cta-strip { padding: 1.5rem 20px; }
}
@media (max-width: 480px) {
  .home-page .cta-strip { padding: 32px 16px; }
  .home-page .cta-strip__p { font-size: 1rem; }
  .cta-strip { padding: 1.25rem 16px; }
  .cta-strip__p { font-size: 1rem; }
}

/* ========= Home page layout – same design as site/index.html ========= */
.home-page .container--narrow { max-width: 960px; margin-left: auto; margin-right: auto; }

/* Hero – matches index.html .dmBody .u_1976333629: padding 200px 65px, overlay 0.2 */
.home-hero {
  background-color: var(--color-2);
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  color: var(--color-3);
  padding: 200px 65px;
  text-align: center;
  position: relative;
}
.home-hero:not(.home-hero--has-bg) {
  background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2));
}
.home-hero--has-bg {
  background-color: var(--color-2);
}
@media (max-width: 1024px) {
  .home-hero { padding: 120px 30px 100px; }
}
@media (max-width: 767px) {
  .home-hero { padding: 60px 20px 80px; }
}
@media (max-width: 480px) {
  .home-hero { padding: 50px 16px 70px; }
}
.home-hero__inner { position: relative; z-index: 1; }
.home-hero__title {
  margin: 0 auto 0.5rem;
  max-width: 14em;
  font-family: Montserrat, 'Open Sans', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-3);
  text-shadow: 0 0 15px var(--color-4);
  text-align: center;
}
@media (max-width: 1024px) {
  .home-hero__title { font-size: 2rem; }
}
@media (max-width: 767px) {
  .home-hero__title { font-size: 1.6rem; max-width: none; text-align: left; }
}
@media (max-width: 480px) {
  .home-hero__title { font-size: 1.35rem; }
}
.home-hero__subtitle {
  margin: 0 0 0.25rem;
  font-size: 24px;
  font-weight: 600;
  color: var(--color-3);
  text-shadow: 0 0 15px var(--color-4);
}
@media (max-width: 767px) {
  .home-hero__subtitle { font-size: 1.1rem; text-align: left; }
}
@media (max-width: 480px) {
  .home-hero__subtitle { font-size: 1rem; }
}
.home-hero__line2 {
  margin: 0 0 1.5rem;
  font-size: 24px;
  font-weight: 600;
  color: var(--color-3);
  text-shadow: 0 0 15px var(--color-4);
}
@media (max-width: 767px) {
  .home-hero__line2 { font-size: 1.1rem; text-align: left; }
}
@media (max-width: 480px) {
  .home-hero__line2 { font-size: 1rem; }
}
/* Buttons – index.html: border-radius 50px, height ~42px, bold */
.home-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.home-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  font-family: Muli, sans-serif;
  font-weight: 700;
  font-size: 16px;
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background 0.2s, opacity 0.2s;
}
.home-hero__btn:hover { text-decoration: none; opacity: 0.95; }
.home-hero__btn--call {
  background: var(--color-2);
  color: var(--color-3);
  border: 0;
}
.home-hero__btn--call:hover { background: var(--color-1); color: var(--color-3); }
.home-hero__btn--enquire {
  background: var(--color-2);
  color: var(--color-3);
  border: 0;
}
.home-hero__btn--enquire:hover { background: var(--color-1); color: var(--color-3); }

/* Wave – index.html: 15vh, min 100px, max 180px */
.home-page .wave-divider {
  height: 15vh;
  min-height: 100px;
  max-height: 180px;
  margin-top: -100px;
}
@media (max-width: 767px) {
  .home-page .wave-divider { min-height: 60px; max-height: 100px; margin-top: -60px; }
}
@media (max-width: 480px) {
  .home-page .wave-divider { min-height: 50px; max-height: 80px; margin-top: -50px; }
}
.home-page .wave-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}
.home-page .wave-divider use:nth-child(1) { fill: rgba(5,101,159,0.85); }
.home-page .wave-divider use:nth-child(2) { fill: rgba(52,186,245,0.08); }
.home-page .wave-divider use:nth-child(3) { fill: #fff; }

/* ========= About page + Floor Sanding + Floor Polishing (same structure) ========= */
.page-about-us .about-hero,
.page-floor-sanding .about-hero,
.page-floor-polishing .about-hero,
.page-gallery .about-hero {
  background-color: var(--color-2);
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  color: var(--color-3);
  padding: 200px 65px;
  text-align: center;
  position: relative;
}
.page-about-us .about-hero__inner,
.page-floor-sanding .about-hero__inner,
.page-floor-polishing .about-hero__inner,
.page-gallery .about-hero__inner { position: relative; z-index: 1; }
.page-about-us .about-hero__title,
.page-floor-sanding .about-hero__title,
.page-floor-polishing .about-hero__title,
.page-gallery .about-hero__title {
  margin: 0;
  font-family: Montserrat, 'Open Sans', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-3);
  text-shadow: 0 0 15px var(--color-4);
}
@media (max-width: 1024px) {
  .page-about-us .about-hero,
  .page-floor-sanding .about-hero,
  .page-floor-polishing .about-hero,
  .page-gallery .about-hero { padding: 120px 30px 100px; }
}
@media (max-width: 767px) {
  .page-about-us .about-hero,
  .page-floor-sanding .about-hero,
  .page-floor-polishing .about-hero,
  .page-gallery .about-hero { padding: 60px 20px 80px; }
  .page-about-us .about-hero__title,
  .page-floor-sanding .about-hero__title,
  .page-floor-polishing .about-hero__title,
  .page-gallery .about-hero__title { font-size: 1.35rem; line-height: 1.25; }
}
@media (max-width: 480px) {
  .page-about-us .about-hero,
  .page-floor-sanding .about-hero,
  .page-floor-polishing .about-hero,
  .page-gallery .about-hero { padding: 50px 16px 70px; }
  .page-about-us .about-hero__title,
  .page-floor-sanding .about-hero__title,
  .page-floor-polishing .about-hero__title,
  .page-gallery .about-hero__title { font-size: 1.2rem; }
}

.page-about-us .wave-divider,
.page-floor-sanding .wave-divider,
.page-floor-polishing .wave-divider,
.page-contact .wave-divider,
.page-gallery .wave-divider {
  height: 100px;
  margin-top: -100px;
  position: relative;
  z-index: 1;
}
@media (max-width: 767px) {
  .page-about-us .wave-divider,
  .page-floor-sanding .wave-divider,
  .page-floor-polishing .wave-divider,
  .page-contact .wave-divider,
  .page-gallery .wave-divider { height: 60px; margin-top: -60px; }
}
@media (max-width: 480px) {
  .page-about-us .wave-divider,
  .page-floor-sanding .wave-divider,
  .page-floor-polishing .wave-divider,
  .page-contact .wave-divider,
  .page-gallery .wave-divider { height: 50px; margin-top: -50px; }
}
.page-about-us .wave-divider svg,
.page-floor-sanding .wave-divider svg,
.page-floor-polishing .wave-divider svg,
.page-contact .wave-divider svg,
.page-gallery .wave-divider svg { width: 100%; height: 100%; display: block; }

/* ========= Gallery Page: Flooring Projects – clean minimal UI ========= */
.gallery-content {
  background: #fff;
  padding: 3rem 20px 4rem;
}
.gallery-content__heading {
  margin: 0 0 2rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a6b8a;
  font-family: "Open Sans", "Muli", sans-serif;
  text-align: left;
  letter-spacing: 0.01em;
}
.gallery-content__inner {
  margin: 0;
}
.page-gallery .gallery-content .container {
  max-width: 1400px;
  padding-left: 24px;
  padding-right: 24px;
}
/* 3-column grid, large thumbnails for clear view */
.page-gallery .gallery-content__inner .gallery,
.page-gallery .gallery-content__inner .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 400px));
  justify-content: start;
  gap: 1.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.page-gallery .gallery-content__inner .gallery.gallery-columns-3 { grid-template-columns: repeat(3, minmax(320px, 400px)); justify-content: start; }
.page-gallery .gallery-content__inner .gallery .gallery-item,
.page-gallery .gallery-content__inner .wp-block-gallery .wp-block-image {
  margin: 0;
  padding: 0;
}
.page-gallery .gallery-content__inner .gallery .gallery-item a,
.page-gallery .gallery-content__inner .gallery .gallery-item img,
.page-gallery .gallery-content__inner .wp-block-gallery .wp-block-image a,
.page-gallery .gallery-content__inner .wp-block-gallery .wp-block-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.page-gallery .gallery-content__inner .gallery .gallery-item a:hover,
.page-gallery .gallery-content__inner .wp-block-gallery .wp-block-image a:hover {
  opacity: 0.9;
}
@media (max-width: 1280px) {
  .page-gallery .gallery-content__inner .gallery,
  .page-gallery .gallery-content__inner .wp-block-gallery {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  .page-gallery .gallery-content__inner .gallery.gallery-columns-3 { grid-template-columns: repeat(2, minmax(280px, 1fr)); }
}
@media (max-width: 1020px) {
  .page-gallery .gallery-content__inner .gallery,
  .page-gallery .gallery-content__inner .wp-block-gallery {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    justify-content: start;
    gap: 1.5rem;
  }
  .page-gallery .gallery-content__inner .gallery.gallery-columns-3 { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}
@media (max-width: 768px) {
  .page-gallery .gallery-content__inner .gallery,
  .page-gallery .gallery-content__inner .wp-block-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-content: stretch;
  }
  .page-gallery .gallery-content__inner .gallery.gallery-columns-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-content { padding: 2rem 16px 3rem; }
  .page-gallery .gallery-content .container { padding-left: 16px; padding-right: 16px; }
  .gallery-content__heading { font-size: 1.5rem; margin-bottom: 1.5rem; }
  .page-gallery .gallery-content__inner .gallery,
  .page-gallery .gallery-content__inner .wp-block-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .page-gallery .gallery-content__inner .gallery.gallery-columns-3 { grid-template-columns: 1fr; }
}

/* ========= Before and After – drag view comparison sliders ========= */
.before-after-section {
  background: #f5f5f5;
  padding: 3rem 20px 4rem;
}
.before-after-section__container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.before-after-section__heading {
  margin: 0 0 2rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a6b8a;
  font-family: "Open Sans", "Muli", sans-serif;
  text-align: left;
}
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .before-after-grid { grid-template-columns: 1fr; gap: 1rem; }
  .before-after-section { padding: 2rem 16px 3rem; }
  .before-after-section__container { padding-left: 16px; padding-right: 16px; }
  .before-after-section__heading { font-size: 1.5rem; margin-bottom: 1.5rem; }
}
.before-after-compare {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
  user-select: none;
  touch-action: none;
}
.before-after-compare__after,
.before-after-compare__before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.before-after-compare__after {
  z-index: 0;
}
.before-after-compare__after img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}
.before-after-compare__before {
  z-index: 1;
  overflow: hidden;
}
.before-after-compare__before img {
  display: block;
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  vertical-align: middle;
}
.before-after-compare__handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  margin-left: -2px;
  transform: translateX(-50%);
  z-index: 2;
  cursor: ew-resize;
  background: #34baf5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.before-after-compare__handle:focus {
  outline: 2px solid #05659f;
  outline-offset: 2px;
}
.before-after-compare__handle-inner {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #34baf5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
.before-after-compare__arrow {
  font-size: 1.1rem;
  font-weight: 700;
  color: #05659f;
}
.before-after-compare__label {
  display: none;
}
.before-after-compare__label--before { left: 12px; }
.before-after-compare__label--after { right: 12px; }
/* Aspect ratio so sliders have height before image loads */
.before-after-compare::before {
  content: "";
  display: block;
  padding-bottom: 66.67%;
}

/* ========= Gallery lightbox ========= */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.gallery-lightbox.gallery-lightbox--open {
  opacity: 1;
  visibility: visible;
}
.gallery-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}
.gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.35);
}
.gallery-lightbox__prev,
.gallery-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}
.gallery-lightbox__prev:hover,
.gallery-lightbox__next:hover {
  background: rgba(255, 255, 255, 0.35);
}
.gallery-lightbox__prev { left: 1rem; }
.gallery-lightbox__next { right: 1rem; }
.gallery-lightbox__inner {
  max-width: 90vw;
  max-height: 90vh;
  padding: 2rem;
}
.gallery-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ========= Contact Page – hero same as home page (full-height, cover image) ========= */
.page-contact .contact-hero {
  background-color: var(--color-2);
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  color: var(--color-3);
  padding: 200px 65px;
  text-align: center;
  position: relative;
}
.page-contact .contact-hero:not(.contact-hero--has-bg) {
  background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2));
}
.page-contact .contact-hero--has-bg {
  background-color: var(--color-2);
}
@media (max-width: 1024px) {
  .page-contact .contact-hero { padding: 120px 30px 100px; }
}
@media (max-width: 767px) {
  .page-contact .contact-hero { padding: 60px 20px 80px; }
}
@media (max-width: 480px) {
  .page-contact .contact-hero { padding: 50px 16px 70px; }
}
.contact-hero__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.page-contact .contact-hero__title {
  margin: 0;
  font-family: Montserrat, 'Open Sans', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-3);
  text-shadow: 0 0 15px var(--color-4);
}
@media (max-width: 767px) {
  .page-contact .contact-hero__title { font-size: 1.35rem; line-height: 1.25; }
}
@media (max-width: 480px) {
  .page-contact .contact-hero__title { font-size: 1.2rem; }
}

/* Contact info: three cards with connecting line and circular light-blue icons */
.contact-info {
  background: var(--color-3);
  padding: 3rem 20px 3.5rem;
}
.contact-info__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  position: relative;
  align-items: stretch;
}
.contact-info__line {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 23px;
  height: 3px;
  background: var(--color-1);
  z-index: 0;
  border-radius: 2px;
}
.contact-info__col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
}
.contact-info__card {
  background: var(--color-3);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 1.25rem 1.75rem;
  width: 100%;
  max-width: 280px;
  position: relative;
  margin-top: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-info__icon {
  width: 70px;
  height: 70px;
  margin: -52px auto 1.25rem;
  border-radius: 50%;
  background: var(--color-1);
  color: var(--color-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info__icon svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}
.contact-info__text-wrap { margin: 0; }
.contact-info__text {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-2);
}
.contact-info__text:last-child { margin-bottom: 0; }
.contact-info__link {
  font-weight: 600;
  text-decoration: underline;
  color: var(--color-2);
}
.contact-info__link:hover { text-decoration: none; color: var(--color-2); }
.contact-info__yellowpages {
  display: inline-block;
  margin-top: 0.75rem;
  line-height: 0;
}
.contact-info__yellowpages:hover { text-decoration: none; opacity: 0.9; }
.contact-info__yellowpages svg {
  width: 48px;
  height: 48px;
  display: block;
}
@media (max-width: 768px) {
  .contact-info__grid { grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
  .contact-info__line { display: none; }
  .contact-info__card { max-width: 320px; margin-left: auto; margin-right: auto; }
  .contact-info__icon { margin-top: 0; }
  .contact-info { padding: 2.5rem 20px 3rem; }
}

/* Contact form section: dark blue right side, white panel with rounded left corners */
.contact-form-section {
  background: var(--color-2);
  padding: 3rem 20px 4rem;
  position: relative;
}
.contact-form-section .container {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.contact-form-panel {
  background: var(--color-3);
  border-radius: 16px 0 0 16px;
  padding: 2.5rem 2rem 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.contact-form-section__intro {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-2);
}
.contact-form-section__intro p { margin: 0 0 0.75rem; }
.contact-form-section__intro p:last-child { margin-bottom: 0; }
.contact-form-section__phone {
  font-weight: 700;
  text-decoration: underline;
  color: var(--color-2);
}
.contact-form-section__phone:hover { text-decoration: none; }
.contact-form-message {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 1rem;
}
.contact-form-message--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.contact-form-message--error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

.contact-form { margin: 0; }
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-bottom: 0;
}
.contact-form__field {
  margin: 0 0 1.25rem;
}
.contact-form__field--full { grid-column: 1 / -1; margin-bottom: 1.25rem; }
.contact-form__field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.contact-form__field .required { color: #c62828; }
.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.5;
  color: var(--text-dark);
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: var(--color-3);
  box-sizing: border-box;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-2);
  box-shadow: 0 0 0 2px rgba(5, 101, 159, 0.15);
}
.contact-form__field textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form__captcha { margin-bottom: 1.25rem; }
.contact-form__submit { margin: 1.5rem 0 0; }
.contact-form__btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--color-3);
  background: var(--color-2);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form__btn:hover { background: #045080; text-decoration: none; color: var(--color-3); }
@media (max-width: 600px) {
  .contact-form__row { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .contact-form-section { padding: 2rem 16px 3rem; }
  .contact-form-panel { padding: 1.75rem 1.25rem; border-radius: 16px 0 0 16px; }
}

.about-intro {
  background: var(--color-3);
  padding: 2.5rem 20px;
  text-align: center;
  overflow-x: hidden;
}
@media (max-width: 767px) {
  .about-intro { padding: 1.75rem 20px; }
}
@media (max-width: 480px) {
  .about-intro { padding: 1.5rem 16px; }
}
.about-intro__inner {
  max-width: 570px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  width: 100%;
}
.about-intro__p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-2);
  text-align: center;
  max-width: 100%;
}
@media (max-width: 767px) {
  .about-intro__p { line-height: 1.6; }
}
@media (max-width: 480px) {
  .about-intro__p { font-size: 1rem; line-height: 1.65; }
}

.page-about-us .about-content,
.page-floor-sanding .about-content,
.page-floor-polishing .about-content {
  padding-top: 2rem;
  padding-bottom: 3rem;
}
@media (max-width: 767px) {
  .page-about-us .about-content,
  .page-floor-sanding .about-content,
  .page-floor-polishing .about-content { padding-top: 1.5rem; padding-bottom: 2rem; }
}
@media (max-width: 480px) {
  .page-about-us .about-content,
  .page-floor-sanding .about-content,
  .page-floor-polishing .about-content { padding-top: 1.25rem; padding-bottom: 1.5rem; }
}
.page-about-us .about-content h2,
.page-floor-sanding .about-content h2,
.page-floor-polishing .about-content h2 {
  color: var(--color-2);
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.page-about-us .about-content h2:first-child,
.page-floor-sanding .about-content h2:first-child,
.page-floor-polishing .about-content h2:first-child { margin-top: 0; }
.page-about-us .about-content p,
.page-floor-sanding .about-content p,
.page-floor-polishing .about-content p { text-align: center; }

/* Floor Polishing: content below Timber Floor Polish uses same style as Section 2 (blue headings, left-aligned body) */
.page-floor-polishing .about-content {
  text-align: left;
  font-size: 1rem;
  line-height: 1.65;
  color: #4a5f73;
}
.page-floor-polishing .about-content h2,
.page-floor-polishing .about-content h3 {
  color: var(--color-2);
  text-align: left;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.page-floor-polishing .about-content h3 {
  font-size: 1.1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.page-floor-polishing .about-content h2 { font-size: 1.35rem; }
.page-floor-polishing .about-content h2:first-child,
.page-floor-polishing .about-content h3:first-child { margin-top: 0; }
.page-floor-polishing .about-content p {
  margin: 0 0 0.75rem;
  text-align: left;
}
.page-floor-polishing .about-content p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
  .page-floor-polishing .about-content h2 { font-size: 1.2rem; margin-top: 1.5rem; }
  .page-floor-polishing .about-content h3 { font-size: 1.05rem; margin-top: 1rem; }
}

/* About John section – light grey left, angled blue right (single diagonal), text left, image right */
.about-john {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  background: #f0f0f0;
}
@media (max-width: 768px) {
  .about-john { overflow: hidden; }
}
.about-john__blue {
  position: absolute;
  left: 45%;
  top: 0;
  bottom: 0;
  right: 0;
  background: var(--color-2);
  /* Single diagonal: blue’s left edge from top to bottom */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
  z-index: 0;
}
.about-john__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: center;
  min-height: 320px;
}
.about-john__text {
  max-width: 520px;
  padding: 0.5rem 0 0 0.25rem;
  text-align: left;
}
.about-john__heading {
  margin: 0 0 1rem;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-2);
  line-height: 1.3;
  text-align: left;
}
.about-john__body {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #5a6b7a;
  text-align: left;
}
.about-john__body p { margin: 0 0 1rem; }
.about-john__body p:last-child { margin-bottom: 0; }
.about-john__image {
  position: relative;
  z-index: 2;
  margin-left: -2rem;
}
.about-john__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  object-fit: cover;
  min-height: 280px;
}
@media (max-width: 1024px) {
  .about-john { padding: 3rem 0; }
  .about-john__inner { gap: 2rem 2rem; min-height: 280px; }
}
@media (max-width: 768px) {
  .about-john { padding: 2.5rem 0; }
  .about-john__blue { left: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%); }
  .about-john__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: 0;
    padding-left: 20px;
    padding-right: 20px;
  }
  .about-john__text {
    position: relative;
    z-index: 3;
    padding-left: 0;
    padding-right: 0;
  }
  .about-john__heading { font-size: 1.5rem; color: #fff; }
  .about-john__body { font-size: 1rem; color: #fff; }
  .about-john__image { margin-left: 0; order: -1; z-index: 1; margin-bottom: 0; }
  .about-john__image img { min-height: 220px; max-width: 100%; }
}
@media (max-width: 480px) {
  .about-john { padding: 2rem 0; }
  .about-john__inner {
    padding-left: 16px;
    padding-right: 16px;
    gap: 1.25rem;
  }
  .about-john__text { padding-left: 0; }
  .about-john__heading { font-size: 1.35rem; }
  .about-john__image img { min-height: 200px; }
}

/* About team section – same as About John: light grey left, angled blue right, text left, image right */
.about-team {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  background: #f0f0f0;
}
@media (max-width: 768px) {
  .about-team { overflow: hidden; }
}
.about-team__blue {
  position: absolute;
  left: 45%;
  top: 0;
  bottom: 0;
  right: 0;
  background: var(--color-2);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
  z-index: 0;
}
.about-team__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: center;
  min-height: 320px;
}
.about-team__text {
  max-width: 520px;
  padding: 0.5rem 0 0 0.25rem;
  text-align: left;
}
.about-team__heading {
  margin: 0 0 1rem;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-2);
  line-height: 1.3;
  text-align: left;
}
.about-team__body {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #5a6b7a;
  text-align: left;
}
.about-team__body p { margin: 0 0 1rem; }
.about-team__body p:last-child { margin-bottom: 0; }
.about-team__image {
  position: relative;
  z-index: 2;
  margin-left: -2rem;
}
.about-team__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  object-fit: cover;
  min-height: 280px;
}
@media (max-width: 1024px) {
  .about-team { padding: 3rem 0; }
  .about-team__inner { gap: 2rem 2rem; min-height: 280px; }
}
@media (max-width: 768px) {
  .about-team { padding: 2.5rem 0; }
  .about-team__blue { left: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%); }
  .about-team__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: 0;
    padding-left: 20px;
    padding-right: 20px;
  }
  .about-team__text {
    position: relative;
    z-index: 3;
    padding-left: 0;
    padding-right: 0;
  }
  .about-team__heading { font-size: 1.5rem; color: #fff; }
  .about-team__body { font-size: 1rem; color: #fff; }
  .about-team__image { margin-left: 0; order: -1; z-index: 1; margin-bottom: 0; }
  .about-team__image img { min-height: 220px; max-width: 100%; }
}
@media (max-width: 480px) {
  .about-team { padding: 2rem 0; }
  .about-team__inner {
    padding-left: 16px;
    padding-right: 16px;
    gap: 1.25rem;
  }
  .about-team__text { padding-left: 0; }
  .about-team__heading { font-size: 1.35rem; }
  .about-team__image img { min-height: 200px; }
}

/* About EJ section – image left, text right, white bg */
.about-ej {
  padding: 4rem 0;
  background: var(--color-3);
}
.about-ej__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 2rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.about-ej__image {
  order: 1;
}
.about-ej__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  object-fit: cover;
  min-height: 280px;
}
.about-ej__text {
  order: 2;
  max-width: 520px;
  padding: 0.5rem 0 0 0.25rem;
  text-align: left;
}
.about-ej__heading {
  margin: 0 0 1rem;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-2);
  line-height: 1.3;
  text-align: left;
}
.about-ej__body {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #4a5f73;
  text-align: left;
}
.about-ej__body p { margin: 0 0 1rem; }
.about-ej__body p:last-child { margin-bottom: 0; }
@media (max-width: 1024px) {
  .about-ej__inner { padding: 0 20px; gap: 2rem; }
}
@media (max-width: 768px) {
  .about-ej { padding: 2.5rem 0; }
  .about-ej__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-left: 20px;
    padding-right: 20px;
  }
  .about-ej__text { max-width: none; padding-left: 0; }
  .about-ej__heading { font-size: 1.5rem; }
  .about-ej__body { font-size: 1rem; }
  .about-ej__image { order: -1; }
  .about-ej__image img { min-height: 220px; }
}
@media (max-width: 480px) {
  .about-ej { padding: 2rem 0; }
  .about-ej__inner {
    padding-left: 16px;
    padding-right: 16px;
    gap: 1.25rem;
  }
  .about-ej__heading { font-size: 1.35rem; }
  .about-ej__image img { min-height: 200px; }
}

/* Floor Polishing Section 2 – detail content (polish types, step tread) in right column */
.about-ej__text--has-detail .about-ej__detail {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #4a5f73;
  text-align: left;
}
.about-ej__detail h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-2);
  line-height: 1.3;
}
.about-ej__detail h2:first-child { margin-top: 0; }
.about-ej__detail h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-2);
  line-height: 1.3;
}
.about-ej__detail p {
  margin: 0 0 0.75rem;
}
.about-ej__detail p:last-child { margin-bottom: 0; }
.about-ej--floor-polishing-detail .about-ej__text { max-width: none; }
.about-ej--floor-polishing-detail .about-ej__inner { align-items: flex-start; }
@media (max-width: 768px) {
  .about-ej__text--has-detail .about-ej__detail { margin-top: 1.25rem; }
  .about-ej__detail h2 { font-size: 1.2rem; margin-top: 1.5rem; }
  .about-ej__detail h3 { font-size: 1.05rem; margin-top: 1rem; }
}

/* Timber Floor Polish section – center-aligned, consistent blue, design spec (font sizes & spacing) */
.about-ej--floor-polishing-detail .about-ej__text {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.about-ej--floor-polishing-detail .about-ej__heading {
  font-size: 1.875rem; /* ~30px */
  margin-bottom: 1.5rem;
  color: #2172a2;
  text-align: center;
}
.about-ej--floor-polishing-detail .about-ej__body,
.about-ej--floor-polishing-detail .about-ej__body p {
  font-size: 1.125rem; /* ~18px */
  line-height: 1.6;
  color: #2172a2;
  text-align: center;
  margin-bottom: 1.25rem;
}
.about-ej--floor-polishing-detail .about-ej__body p:last-child { margin-bottom: 2rem; }
/* Detail blocks (Solvent Based, Water Based, etc.) – same structure as Timber Floor Polish block above */
.about-ej--floor-polishing-detail .about-ej__text--has-detail .about-ej__detail {
  text-align: center;
  color: #2172a2;
  font-size: 1.125rem; /* same as intro paragraph */
  line-height: 1.6;
  margin-top: 0;
}
.about-ej--floor-polishing-detail .about-ej__detail h2,
.about-ej--floor-polishing-detail .about-ej__detail h3 {
  font-weight: 700;
  color: #2172a2;
  text-align: center;
  margin-top: 2rem; /* same separation as between intro and first detail block */
  margin-bottom: 1.5rem; /* same as main heading → intro */
  line-height: 1.3;
}
.about-ej--floor-polishing-detail .about-ej__detail h2 {
  font-size: 1.875rem; /* same as Timber Floor Polish heading */
}
.about-ej--floor-polishing-detail .about-ej__detail h3 {
  font-size: 1.875rem; /* same as Timber Floor Polish heading */
}
.about-ej--floor-polishing-detail .about-ej__detail h2:first-child,
.about-ej--floor-polishing-detail .about-ej__detail h3:first-child { margin-top: 0; }
.about-ej--floor-polishing-detail .about-ej__detail p {
  font-size: 1.125rem; /* same as intro paragraph */
  line-height: 1.6;
  color: #2172a2;
  text-align: center;
  margin-bottom: 1.25rem; /* same as intro paragraph */
}
.about-ej--floor-polishing-detail .about-ej__detail p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
  .about-ej--floor-polishing-detail .about-ej__heading { font-size: 1.6rem; }
  .about-ej--floor-polishing-detail .about-ej__body,
  .about-ej--floor-polishing-detail .about-ej__body p { font-size: 1.0625rem; }
  .about-ej--floor-polishing-detail .about-ej__detail h2,
  .about-ej--floor-polishing-detail .about-ej__detail h3 { font-size: 1.6rem; margin-top: 1.75rem; margin-bottom: 1.25rem; }
  .about-ej--floor-polishing-detail .about-ej__detail p { font-size: 1.0625rem; margin-bottom: 1rem; }
}

/* Intro – blue strip with white text (matches hero image) */
.home-intro {
  padding: 80px 65px;
  background: var(--color-2);
  color: var(--color-3);
}
@media (max-width: 1024px) {
  .home-intro { padding: 60px 30px; }
}
@media (max-width: 767px) {
  .home-intro { padding: 40px 20px; }
}
@media (max-width: 480px) {
  .home-intro { padding: 32px 16px; }
  .home-intro__heading { font-size: 1.35rem; }
  .home-intro__text { font-size: 1rem; }
}
.home-intro__heading {
  margin: 0 0 1rem;
  font-family: Muli, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-3);
  text-align: center;
  line-height: 1.4;
}
.home-intro__text {
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-3);
}
.home-intro__text p { margin: 0 0 0.75rem; }
.home-intro__text p:last-child { margin-bottom: 0; }

/* Services – two equal cards, single clean background */
.home-services {
  padding: 80px 65px;
  background: var(--color-5);
}
@media (max-width: 1024px) {
  .home-services { padding: 60px 30px; }
}
@media (max-width: 767px) {
  .home-services { padding: 40px 20px; }
  .home-services__title { font-size: 1.5rem; margin-bottom: 2rem; }
}
@media (max-width: 480px) {
  .home-services { padding: 32px 16px; }
  .home-services__title { font-size: 1.35rem; margin-bottom: 1.5rem; }
}
.home-services__title {
  margin: 0 0 2.5rem;
  font-family: Muli, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-2);
  text-align: center;
  line-height: 1.3;
}
.home-services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .home-services__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.home-service-card {
  background: var(--color-3);
  padding: 0;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.home-service-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}
.home-service-card__img-link {
  display: block;
  line-height: 0;
  text-decoration: none;
  overflow: hidden;
}
.home-service-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}
.home-service-card__title {
  margin: 0;
  padding: 1.5rem 1.5rem 0.5rem;
  font-family: Muli, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-2);
}
.home-service-card__text {
  margin: 0 0 1.5rem;
  padding: 0 1.5rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-dark);
}
.home-service-card__btn {
  display: inline-block;
  background: var(--color-2);
  color: var(--color-3);
  padding: 12px 28px;
  margin-bottom: 1.5rem;
  min-height: 44px;
  line-height: 20px;
  border-radius: 50px;
  font-family: Muli, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: 0;
}
.home-service-card__btn:hover { background: var(--color-1); text-decoration: none; color: var(--color-3); }

/* Dedicated – card style: image left, text right, soft shadow, white bg */
.home-dedicated {
  padding: 80px 65px;
  background: var(--color-5);
}
@media (max-width: 1024px) {
  .home-dedicated { padding: 60px 30px; }
}
@media (max-width: 767px) {
  .home-dedicated { padding: 40px 20px; }
}
@media (max-width: 480px) {
  .home-dedicated { padding: 32px 16px; }
  .home-dedicated__content { padding: 1.5rem 1.25rem !important; }
  .home-dedicated__heading { font-size: 1.3rem; }
}
.home-dedicated__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  background: var(--color-3);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
}
@media (max-width: 768px) {
  .home-dedicated__card { grid-template-columns: 1fr; }
  .home-dedicated__image { order: -1; }
}
.home-dedicated__image {
  overflow: hidden;
  min-height: 280px;
}
.home-dedicated__image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}
.home-dedicated__content {
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 768px) {
  .home-dedicated__content { padding: 2rem 1.5rem; }
}
.home-dedicated__heading {
  margin: 0 0 1.25rem;
  font-family: Muli, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-2);
  line-height: 1.3;
  text-align: left;
}
@media (max-width: 767px) {
  .home-dedicated__heading { font-size: 1.4rem; }
}
.home-dedicated__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #5a6b7a;
  text-align: left;
}
.home-dedicated__text p { margin: 0 0 0.75rem; }
.home-dedicated__text p:last-child { margin-bottom: 0; }
.home-dedicated--no-image .home-dedicated__card { grid-template-columns: 1fr; max-width: 700px; }
.home-dedicated--no-image .home-dedicated__content { padding: 2.5rem; }

/* Home page: Google reviews (Trustindex) */
.home-reviews {
  padding: 3rem 20px 4rem;
  background: var(--color-3);
}
.home-reviews .container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .home-reviews { padding: 2rem 16px 3rem; }
}

/* ========= Footer ========= */
.site-footer {
  margin-top: auto;
}

/* Top: CTA band (blue) */
.footer-cta {
  background: var(--footer-bg);
  color: var(--color-3);
  padding: 1.25rem 20px;
  text-align: center;
}
@media (max-width: 480px) {
  .footer-cta { padding: 1rem 16px; }
  .footer-cta__p { font-size: 1rem; }
}
.footer-cta__p {
  margin: 0;
  font-size: 1.1rem;
}
.footer-cta a {
  color: var(--color-3);
  font-weight: 700;
  text-decoration: none;
}
.footer-cta__phone { text-decoration: underline; }
.footer-cta a:hover { text-decoration: underline; }

/* Middle: three columns (white) */
.footer-main {
  background: var(--color-3);
  color: var(--color-4);
  padding: 2.5rem 20px;
}
@media (max-width: 767px) {
  .footer-main { padding: 2rem 20px; }
  .footer-grid { gap: 1.5rem; }
}
@media (max-width: 480px) {
  .footer-main { padding: 1.5rem 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; text-align: center; }
  .footer-menu { text-align: center; }
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-col__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-2);
}
.footer-main p {
  margin: 0 0 0.5rem;
  color: var(--color-4);
  font-size: 0.95rem;
}
.footer-main a {
  color: var(--color-2);
}
.footer-main a:hover { text-decoration: underline; }
.footer-contact__licence { color: var(--color-4); }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 0.35rem; }
.footer-menu a { color: var(--color-2); }

/* Bottom: copyright (white, light blue border) */
.footer-bottom {
  background: var(--color-3);
  border-top: 2px solid var(--footer-border);
  padding: 1rem 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-4);
}
@media (max-width: 480px) {
  .footer-bottom { padding: 0.875rem 16px; font-size: 0.75rem; line-height: 1.5; }
}
.footer-bottom a { color: var(--color-2); }
.footer-bottom__sep { color: var(--color-4); }
@media (max-width: 480px) {
  .footer-bottom a { display: inline-block; margin-top: 0.25rem; }
}

/* ========= SEO: Semantic & accessibility ========= */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}
