/*
Theme Name: Poolemead
Theme URI: https://www.tjldesigns.com/
Author: TJL Designs
Author URI: https://www.tjldesigns.com/
Description: Custom WordPress theme for Poolemead Accountants (Winchester) Ltd. A faithful recreation of the existing poolemead-winchester.co.uk design - Encode Sans Semi Condensed typography, Winchester blue palette, hero slider area, service cards, testimonials carousel and dark footer.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: poolemead
Tags: two-columns, custom-menu, custom-logo, featured-images
*/

/* ==========================================================================
   1. Variables / base
   ========================================================================== */
:root {
  --pm-blue: #325aa5;        /* primary brand blue: headings, links, nav   */
  --pm-blue-dark: #2c4f91;   /* darker blue: card buttons, hovers          */
  --pm-sky: #38a9e1;         /* bright blue: primary buttons, footer phone */
  --pm-sky-light: #5bc0de;   /* light blue: secondary buttons              */
  --pm-text: #585756;        /* body copy grey                             */
  --pm-grey-bg: #ececec;     /* testimonial band background                */
  --pm-footer: #2e2e2e;      /* footer background                          */
  --pm-white: #ffffff;
  --pm-radius: 8px;
  --pm-font: "Encode Sans Semi Condensed", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* on-brand scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #e6edf7; }
::-webkit-scrollbar-thumb {
  background: var(--pm-blue);
  border-radius: 8px;
  border: 2px solid #e6edf7;
}
::-webkit-scrollbar-thumb:hover { background: var(--pm-blue-dark); }
@supports not selector(::-webkit-scrollbar) {
  /* Firefox */
  html { scrollbar-width: thin; scrollbar-color: #325aa5 #e6edf7; }
}

body {
  margin: 0;
  font-family: var(--pm-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pm-text);
  background: var(--pm-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--pm-blue); text-decoration: none; }
a:hover, a:focus { color: var(--pm-blue-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pm-font);
  font-weight: 600;
  color: var(--pm-blue);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: 42px; }
h2 { font-size: 36px; }
h3 { font-size: 26px; }
h4 { font-size: 20px; }

p { margin: 0 0 1.2em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }

.pm-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto;
  background: var(--pm-white); color: var(--pm-blue);
  display: block; padding: 12px 20px; z-index: 100000;
  left: 6px; top: 6px; font-weight: 600;
}

/* ==========================================================================
   2. Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--pm-radius);
  font-family: var(--pm-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--pm-white);
  background: var(--pm-sky);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn:hover, .btn:focus { background: var(--pm-blue-dark); color: var(--pm-white); text-decoration: none; }
.btn-info { background: var(--pm-sky-light); }
.btn-info:hover { background: var(--pm-sky); }
.btn-sm { padding: 5px 14px; font-size: 14px; border-radius: 2px; background: var(--pm-blue-dark); }
.btn-sm:hover { background: var(--pm-sky); }

/* ==========================================================================
   3. Top bar + header + navigation
   ========================================================================== */
.pm-topbar {
  background: var(--pm-blue);
  color: var(--pm-white);
  font-size: 13px;
  padding: 6px 0;
}
.pm-topbar a { color: var(--pm-white); }
.pm-topbar .pm-container { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pm-topbar-item { display: inline-flex; align-items: center; gap: 5px; }
.pm-topbar-icon { width: 14px; height: 14px; }

.pm-header {
  background: var(--pm-white);
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-bar .pm-header { top: 32px; }
.pm-header .pm-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  gap: 24px;
}
.pm-branding { display: flex; align-items: center; }
.pm-branding img { max-height: 64px; width: auto; }
.pm-site-title {
  font-size: 30px; font-weight: 600; color: var(--pm-blue);
  line-height: 1; display: block;
}
.pm-site-title span { color: var(--pm-sky); }
.pm-site-tagline {
  display: block; font-size: 10.5px; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--pm-text); margin-top: 4px;
}
.pm-branding a:hover { text-decoration: none; }

/* nav */
.pm-nav-toggle {
  display: none;
  background: var(--pm-blue); color: #fff; border: 0;
  border-radius: 4px; padding: 10px 14px; font-size: 16px; cursor: pointer;
}
.pm-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.pm-nav li { position: relative; }
.pm-nav a {
  display: block;
  padding: 12px 22px;
  color: var(--pm-blue);
  font-size: 14px;
  font-weight: 600;
}
.pm-nav a:hover { text-decoration: none; color: var(--pm-blue-dark); }
.pm-nav .current-menu-item > a,
.pm-nav .current-menu-ancestor > a { color: var(--pm-blue-dark); }

/* dropdowns */
.pm-nav .menu-item-has-children > a::after {
  content: "\25BE"; margin-left: 6px; font-size: 11px;
}
.pm-nav .sub-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--pm-white);
  border: 1px solid #e5e5e5;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  min-width: 280px;
  flex-direction: column;
  z-index: 60;
}
@media (min-width: 992px) {
  .pm-nav li:hover > .sub-menu,
  .pm-nav li:focus-within > .sub-menu { display: flex; }
}
.pm-nav .sub-menu { gap: 0; padding: 4px 0; }
.pm-nav .sub-menu a { padding: 8px 18px; font-size: 14px; }
.pm-nav .sub-menu a:hover { background: #f4f7fb; }

/* ==========================================================================
   4. Hero
   ========================================================================== */
.pm-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #6c85c0 0%, #8fa6d4 45%, #a9b6d8 100%);
  background-image: url(img/jumbotron-bg.jpg);
  background-size: cover;
  background-position: center;
  color: var(--pm-white);
}
.pm-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,68,120,0.35) 0%, rgba(45,68,120,0.15) 60%, rgba(255,255,255,0) 100%);
}
.pm-hero .pm-container { position: relative; width: 100%; }
.pm-hero .pm-hero-strap {
  font-size: 30px; line-height: 1.4; margin: 0 0 0.2em; color: var(--pm-white);
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.pm-hero .pm-hero-heading {
  font-size: 64px;
  line-height: 1.2;
  color: var(--pm-white);
  margin: 0 0 0.4em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}
.pm-hero .pm-hero-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* ==========================================================================
   5. Sections
   ========================================================================== */
.pm-section { padding: 70px 0; }
.pm-section-blue { background: #ebf6fc; }
.pm-section-grey { background: var(--pm-grey-bg); }
.pm-section h2 { margin-bottom: 0.5em; }
.pm-lead { font-size: 22px; color: var(--pm-blue); line-height: 1.45; }

/* service cards */
.pm-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 90px;
}
.pm-card {
  position: relative;
  background: var(--pm-blue);
  border-radius: var(--pm-radius);
  color: var(--pm-white);
  text-align: center;
  padding: 80px 26px 30px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.pm-card h3 { color: var(--pm-white); font-size: 22px; }
.pm-card p { font-size: 15px; }
.pm-card-icon {
  position: absolute; top: -55px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--pm-sky);
  border: 5px solid #e0e6f1;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.pm-card:hover .pm-card-icon { transform: translateX(-50%) translateY(-10px); }
.pm-card-icon img, .pm-card-icon svg { width: 56px; height: 56px; }
.pm-card .btn-sm { margin-top: 8px; }

/* split (team) section - full-bleed photo left, card vertically centred right */
.pm-split { position: relative; margin: 40px 0 0; }
.pm-split-img { width: 62%; }
.pm-split-img img,
.pm-split-img > div {
  width: 100%; height: 560px; object-fit: cover; display: block;
  background-size: cover; background-position: center;
}
.pm-split-overlay {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 1170px; padding: 0 20px;
  display: flex; align-items: center; justify-content: flex-end;
}
.pm-split-body {
  width: 56%; background: var(--pm-white);
  padding: 42px 50px 46px;
  border-bottom: 6px solid var(--pm-blue);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.07);
}
.pm-split-body h2 { font-size: 30px; }

/* ==========================================================================
   6. Testimonials
   ========================================================================== */
.pm-testimonials { text-align: center; }
.pm-testimonials h2 { margin-bottom: 1.2em; }
.pm-t-slider { position: relative; max-width: 900px; margin: 0 auto; }
.pm-t-slide { display: none; animation: pmFade 0.5s ease; }
.pm-t-slide.is-active { display: block; }
@keyframes pmFade { from { opacity: 0; } to { opacity: 1; } }
.pm-t-slide blockquote { margin: 0; font-size: 17px; }
.pm-t-slide cite {
  display: block; margin-top: 14px; font-style: normal;
  color: var(--pm-sky); font-weight: 600;
}
.pm-t-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #9b9b9b; font-size: 44px;
  cursor: pointer; line-height: 1; padding: 0 10px;
}
.pm-t-arrow:hover { color: var(--pm-blue); }
.pm-t-prev { left: -70px; }
.pm-t-next { right: -70px; }
.pm-t-dots { margin-top: 26px; display: flex; gap: 10px; justify-content: center; }
.pm-t-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; padding: 0; background: #bcbcbc; cursor: pointer;
}
.pm-t-dot.is-active { background: var(--pm-blue); }

/* accreditation strip (sits above the footer on every page) */
.pm-accreditations { padding: 45px 0; background: var(--pm-white); }
.pm-accreditations .pm-container {
  display: flex; gap: 55px; align-items: center; justify-content: center; flex-wrap: wrap;
}
.pm-accreditations img { max-height: 70px; width: auto; }
.pm-accreditations .pm-xero { max-height: 62px; border-radius: 50%; }

/* ==========================================================================
   7. Page layouts
   ========================================================================== */
.pm-page-header { padding: 55px 0 10px; }
.pm-page-header h1 { margin-bottom: 0.2em; }
.pm-page-header .pm-lead { margin-bottom: 0; }
.pm-content { padding: 55px 0 70px; }

/* Big banded inner-page header - matches live: the content sheet overlaps
   the bottom 30px of the blue band with a rounded top-right corner (the
   band shows through the corner notch), and a translucent container-width
   pill straddles the band/sheet junction. No white gap anywhere. */
.pm-page-header-band {
  position: relative;
  background: rgba(50, 90, 165, 0.7); /* over white = live's band blue */
  padding: 100px 0 105px; /* bottom 30px sits behind the content sheet */
  text-align: center;
}
.pm-page-header-band h1 { color: var(--pm-white); font-size: 52px; margin: 0; }
.pm-page-header-band p, .pm-page-header-band a { color: #eaf3fb; }
.pm-page-header-band .pm-container::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 15px; /* centred on the junction 30px up */
  z-index: 10; /* above the overlapping content sheet */
  margin: 0 auto;
  width: min(1170px, calc(100% - 40px));
  height: 30px;
  border-radius: 20px;
  background: rgba(56, 169, 225, 0.5);
}
.pm-content-sheet {
  position: relative;
  background: var(--pm-white);
  border-radius: 0 30px 0 0;
  margin-top: -30px;
  overflow: hidden;
}

/* breadcrumb chips in the band header */
.pm-crumbs { margin: 0 0 14px; }
.pm-crumb {
  display: inline-block; background: rgba(255,255,255,0.16);
  color: var(--pm-white) !important; font-size: 13px; font-weight: 600;
  padding: 4px 12px; border-radius: 4px;
}
.pm-crumb:hover { background: rgba(255,255,255,0.28); text-decoration: none; }
.pm-crumb-sep { color: rgba(255,255,255,0.7); margin: 0 4px; }

/* factsheet sidebar navigation */
.pm-fs-nav {
  border: 1px solid #dde6f2; border-radius: 6px; overflow: hidden;
  margin-bottom: 28px; background: var(--pm-white);
}
.pm-fs-nav ul { list-style: none; margin: 0; padding: 0; }
.pm-fs-nav li { border-bottom: 1px solid #e8eef6; }
.pm-fs-nav li:last-child { border-bottom: 0; }
.pm-fs-nav a { display: block; padding: 11px 16px; font-size: 14.5px; color: #4a4a4a; }
.pm-fs-nav a:hover { background: #f4f7fb; text-decoration: none; }
.pm-fs-nav .is-current a { background: var(--pm-blue); color: var(--pm-white); font-weight: 600; }

/* about page split */
.pm-about-split { background: #ebf6fc; padding: 55px 0; }
.pm-about-split-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center;
}
.pm-about-lead h2,
.pm-about-lead p, .pm-about-lead .pm-lead {
  font-size: 36px; line-height: 1.1; color: var(--pm-blue); font-weight: 600;
  margin: 0;
}
.pm-about-lead > * + * { margin-top: 0.6em; }
.pm-about-photo img { border-radius: 4px; display: block; }

/* service detail two-column */
.pm-service-layout {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 60px; align-items: start;
  padding-top: 25px; /* extra breathing room below the banner */
}
.pm-aside-box {
  background: #f4f7fb;
  border: 1px solid #dde6f2;
  border-radius: var(--pm-radius);
  padding: 26px 28px;
  margin-bottom: 28px;
}
.pm-aside-box h3 { font-size: 26px; }
.pm-aside-box ul { list-style: none; padding: 0; margin: 0; }
.pm-aside-box li { padding: 7px 0; border-bottom: 1px solid #dde6f2; }
.pm-aside-box li:last-child { border-bottom: 0; }
.pm-aside-phone { font-size: 26px; font-weight: 600; color: var(--pm-sky); display: block; margin: 6px 0 14px; }
.pm-enquiry-box { margin: 40px 0 0; }
.pm-aside-illustration { margin-bottom: 28px; text-align: center; }
.pm-aside-illustration img { width: 100%; max-width: 240px; height: auto; }

/* rich text with a side image (Services intro) */
.pm-rt-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px; align-items: center;
}
.pm-rt-text .pm-lead,
.pm-rt-text p.lead {
  color: var(--pm-blue); font-size: 24px; font-weight: 200; line-height: 1.4;
}
.pm-rt-image { text-align: center; }

/* staggered service cards (Services page "Our Services" section) */
.pm-scards-wrap { overflow: hidden; padding: 50px 0 70px; }
.pm-scards-wrap.pm-section-blue { background: #ebeff6; }
.pm-scards-heading { text-align: center; font-size: 28px; margin-bottom: 45px; }
.pm-scards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px; align-items: start;
}
.pm-scard { position: relative; display: block; text-decoration: none; }
.pm-scard:hover { text-decoration: none; }
.pm-scard-1 { margin-top: 56px; }
.pm-scard-3 { margin-top: 146px; }
.pm-scard-icon {
  display: flex; align-items: center; justify-content: center;
  width: 125px; height: 125px; margin: 0 auto -15px;
  background: var(--pm-sky);
  border: 5px solid #e0e6f1;
  border-radius: 50%;
  position: relative; z-index: 3;
  transition: transform 0.3s ease;
}
.pm-scard:hover .pm-scard-icon { transform: translateY(-10px); }
.pm-scard-icon img { width: 76px; height: 76px; }
.pm-scard-body {
  display: block; position: relative; z-index: 1;
  max-width: 220px; margin: 0 auto;
  background: var(--pm-blue); color: var(--pm-white);
  border-radius: 10px; padding: 15px 20px; text-align: center;
  transition: background 0.3s ease;
}
.pm-scard:hover .pm-scard-body { background: var(--pm-blue-dark); }
.pm-scard-title {
  display: block; font-size: 20px; font-weight: 600; margin: 10px 0;
  color: var(--pm-white);
}
.pm-scard-text { display: block; font-size: 16px; margin-bottom: 12px; }
.pm-scard-more {
  display: inline-block; background: var(--pm-blue-dark); color: var(--pm-white);
  font-size: 14px; font-weight: 600; padding: 5px 10px; border-radius: 2px;
  margin-bottom: 4px;
  transition: background 0.3s ease;
}
.pm-scard:hover .pm-scard-more { background: var(--pm-sky); }
.pm-scard-fig { display: block; z-index: 2; pointer-events: none; }
.pm-scard-fig img { width: 100%; height: auto; display: block; }
.pm-scard-1 .pm-scard-fig { position: absolute; left: 0; right: 0; bottom: -20px; }
.pm-scard-2 .pm-scard-fig { position: relative; width: 60%; margin: 10px auto 0; }
.pm-scard-3 .pm-scard-fig { position: absolute; left: 41%; right: -60px; bottom: -20px; }

/* single testimonial module */
.pm-testimonial-single { padding: 55px 0; }
.pm-t1-heading { font-size: 28px; margin-bottom: 14px; }
.pm-t1 { margin: 0; padding: 15px 0 0 40px; position: relative; }
.pm-t1::before {
  content: "\0022";
  position: absolute; top: 0; left: -30px;
  font-family: var(--pm-font); font-style: italic; font-weight: 400;
  font-size: 135px; line-height: 135px;
  color: var(--pm-blue);
  pointer-events: none;
}
.pm-t1-avatar {
  float: left; width: 120px; height: 120px; border-radius: 50%;
  margin: 0 30px 10px 0;
}
.pm-t1-body { overflow: hidden; }
.pm-t1-body p { font-size: 16px; margin-bottom: 10px; }
.pm-t1-body footer { color: #999999; font-size: 12.8px; }

/* site map list (match live: full-width rows, blue rules, no bullets) */
.pm-sitemap, .pm-sitemap ul { list-style: none; margin: 0; padding: 0; }
.pm-sitemap { margin-bottom: 40px; max-width: 960px; }
.pm-sitemap li { margin: 0; padding: 0; border-bottom: 1px solid var(--pm-blue); }
.pm-sitemap li li { border-bottom: 1px solid rgba(50, 90, 165, 0.7); background: #f7f9fc; }
.pm-sitemap li li:last-child { border-bottom: 0; }
.pm-sitemap a { display: block; padding: 10px 18px; color: var(--pm-blue); }
.pm-sitemap li li a { padding-left: 36px; font-size: 14px; }
.pm-sitemap a:hover { background: #eef3fa; text-decoration: none; }

/* legal pages: jump menus, definition blocks and tables (match live) */
.pm-content .pm-jump-menu { list-style: none; margin: 0 0 30px; padding: 0; max-width: 720px; }
.pm-content .pm-jump-menu li { margin: 0 0 -1px; padding: 0; }
.pm-content .pm-jump-menu a {
  display: block; padding: 10px 15px;
  border: 1px solid #dddddd; color: #555555; background: var(--pm-white);
}
.pm-content .pm-jump-menu li:first-child a { border-radius: 8px 8px 0 0; }
.pm-content .pm-jump-menu li:last-child a { border-radius: 0 0 8px 8px; }
.pm-content .pm-jump-menu a:hover { background: #f5f5f5; text-decoration: none; }
.pm-content dl { margin: 0 0 22px; }
.pm-content dl dt { padding: 11px; border: 1px solid #adbddb; font-weight: 700; margin: 0; }
.pm-content dl dd { padding: 11px; margin: 0 0 15px; background: #d6deed; }
.pm-content dl dd ul { margin-bottom: 0; }
.pm-content table { width: 100%; border-collapse: collapse; border: 1px solid #dddddd; margin: 0 0 22px; }
.pm-content table th {
  background: var(--pm-blue); color: var(--pm-white);
  padding: 8px; font-size: 12px; text-align: left; border: 1px solid #dddddd;
}
.pm-content table td { padding: 8px; border: 1px solid #dddddd; vertical-align: top; font-size: 14px; }
.pm-content table tbody tr:nth-child(odd) td { background: #f9f9f9; }

/* contact page */
.pm-contact-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.pm-form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--pm-blue); }
.pm-form input[type="text"],
.pm-form input[type="tel"],
.pm-form input[type="email"],
.pm-form textarea {
  width: 100%; padding: 11px 14px; margin-bottom: 18px;
  border: 1px solid #c7c7c7; border-radius: 4px;
  font-family: var(--pm-font); font-size: 16px; color: var(--pm-text);
}
.pm-form input:focus, .pm-form textarea:focus {
  outline: 2px solid var(--pm-sky); border-color: var(--pm-sky);
}
.pm-form textarea { min-height: 150px; resize: vertical; }
.pm-form-notice {
  padding: 14px 18px; border-radius: 6px; margin-bottom: 20px; font-weight: 600;
}
.pm-form-notice.success { background: #e7f6ec; color: #1c7a3d; border: 1px solid #b8e2c5; }
.pm-form-notice.error { background: #fdecec; color: #b02a2a; border: 1px solid #f2c4c4; }
.pm-hp-field { position: absolute; left: -9999px; }

/* ==========================================================================
   7b. Lists, news, search
   ========================================================================== */
.pm-factsheet-list { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.pm-factsheet-list li { padding: 9px 0; border-bottom: 1px solid #e4ebf4; font-size: 17px; }
.pm-factsheet-list li:last-child { border-bottom: 0; }

/* content tables (tax rates etc) */
.pm-content table {
  width: 100%; border-collapse: collapse; margin: 0 0 1.6em;
  font-size: 15px;
}
.pm-content th, .pm-content td {
  border: 1px solid #dde6f2; padding: 9px 12px; text-align: left;
  vertical-align: top;
}
.pm-content thead th, .pm-content tr:first-child th {
  background: var(--pm-blue); color: var(--pm-white); font-weight: 600;
}
.pm-content tbody tr:nth-child(even) { background: #f4f7fb; }

/* news */
.pm-news-list { max-width: 800px; }
.pm-news-item { padding: 26px 0; border-bottom: 1px solid #e5e5e5; }
.pm-news-item h2 { font-size: 24px; margin-bottom: 0.2em; }
.pm-news-meta { color: #8a8a8a; font-size: 13.5px; }

/* search */
.pm-searchform { display: flex; gap: 10px; max-width: 560px; }
.pm-searchform input[type="search"] {
  flex: 1; padding: 11px 14px; border: 1px solid #c7c7c7; border-radius: 4px;
  font-family: var(--pm-font); font-size: 16px;
}

@media (max-width: 767px) {
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
.pm-footer { color: #cfcfcf; font-size: 14px; }
.pm-footer h4 { color: var(--pm-white); font-size: 17px; margin-bottom: 0.7em; }
.pm-footer a { color: #cfcfcf; }
.pm-footer a:hover { color: var(--pm-white); }
.pm-footer ul { list-style: none; margin: 0; padding: 0; }
.pm-footer li { padding: 3px 0; }

/* band 1: address + contact us today (dark grey, lighter than band 2) */
.pm-footer-contact { background: #2e2e2e; padding: 40px 0; }
.pm-footer-contact .pm-container {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start;
}
.pm-footer-cta { text-align: right; }
.pm-footer a.pm-footer-phone {
  font-size: 38px; font-weight: 600; color: var(--pm-sky);
  display: block; line-height: 1.2;
}
.pm-footer a.pm-footer-phone:hover { color: var(--pm-sky-light); text-decoration: none; }

/* band 2: logo + hours + link columns (black, matching live) */
.pm-footer-main { background: #000000; padding: 50px 0 35px; }
.pm-footer-main .pm-container {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.pm-footer-brand img { max-width: 210px; height: auto; }

/* legal strip + site search */
.pm-footer-legal {
  background: #000000;
  border-top: 1px solid #222222;
  padding: 26px 0;
  font-size: 12.5px; color: #a5a5a5;
}

/* contact page map */
.pm-map { margin-top: 50px; }
.pm-map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* Contact Form 7 compatibility - same look as the built-in form */
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea {
  width: 100%; padding: 11px 14px; margin-bottom: 6px;
  border: 1px solid #c7c7c7; border-radius: 4px;
  font-family: var(--pm-font); font-size: 16px; color: var(--pm-text);
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--pm-sky); border-color: var(--pm-sky); }
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--pm-blue); }
.wpcf7 input[type="submit"] {
  display: inline-block; padding: 10px 18px; border: 0;
  border-radius: var(--pm-radius); font-family: var(--pm-font);
  font-size: 16px; font-weight: 600; color: var(--pm-white);
  background: var(--pm-sky); cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--pm-blue-dark); }
.pm-footer-legal p { margin-bottom: 0.6em; }
.pm-footer-legal-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px; align-items: start; }
.pm-footer-search form { display: flex; }
.pm-footer-search input[type="search"] {
  flex: 1; padding: 9px 12px; border: 0; border-radius: 3px 0 0 3px;
  font-family: var(--pm-font); font-size: 14px;
}
.pm-footer-search button {
  border: 0; background: var(--pm-white); border-left: 1px solid #ddd;
  border-radius: 0 3px 3px 0; padding: 0 14px; cursor: pointer; font-size: 15px;
}
.pm-footer-search button:hover { background: var(--pm-sky); color: var(--pm-white); }

/* ==========================================================================
   8b. Fade-up on scroll (class added by JS; no-JS users see everything)
   ========================================================================== */
.pm-fade {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--pm-fade-delay, 0s);
}
.pm-fade.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .pm-fade { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   9. WP core alignment helpers
   ========================================================================== */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: #8a8a8a; text-align: center; }

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 991px) {
  h1 { font-size: 34px; }
  h2 { font-size: 29px; }
  .pm-hero .pm-hero-heading { font-size: 44px; }
  .pm-hero { min-height: 480px; }
  .pm-cards { grid-template-columns: 1fr; gap: 80px; }
  .pm-split { margin-top: 20px; padding-bottom: 20px; }
  .pm-split-img { width: 100%; }
  .pm-split-img img, .pm-split-img > div { height: 380px; }
  .pm-split-overlay { position: static; transform: none; display: block; padding: 0; }
  .pm-split-body { width: auto; margin: -40px 16px 0; padding: 32px 26px; position: relative; }
  .pm-service-layout, .pm-contact-layout { grid-template-columns: 1fr; gap: 30px; }
  .pm-footer-main .pm-container { grid-template-columns: 1fr 1fr; }
  .pm-footer-contact .pm-container, .pm-footer-legal-grid { grid-template-columns: 1fr; }
  .pm-footer-cta { text-align: left; }
  .pm-page-header-band h1 { font-size: 36px; }
  .pm-t-prev { left: -12px; }
  .pm-t-next { right: -12px; }

  /* mobile nav */
  .pm-nav-toggle { display: block; }
  .pm-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--pm-white); border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  }
  .pm-nav.is-open { display: block; }
  .pm-nav ul { flex-direction: column; gap: 0; }
  .pm-nav a { padding: 13px 24px; border-top: 1px solid #efefef; }
  .pm-nav .sub-menu {
    display: none; position: static; border: 0; box-shadow: none; min-width: 0;
    padding: 0;
  }
  .pm-nav li.pm-sub-open > .sub-menu { display: block; }
  .pm-nav .sub-menu a { padding: 13px 24px 13px 44px; background: #f8fafd; }
  .pm-nav .menu-item-has-children.pm-sub-open > a::after { content: "\25B4"; }
}

@media (max-width: 600px) {
  .pm-hero .pm-hero-heading { font-size: 34px; }
  .pm-hero .pm-hero-strap { font-size: 21px; }
  .pm-footer-main .pm-container { grid-template-columns: 1fr; }
  .pm-header .pm-container { min-height: 80px; }
  .pm-branding img { max-height: 52px; }
}

@media (max-width: 900px) {
  .pm-about-split-grid { grid-template-columns: 1fr; gap: 30px; }
  .pm-about-lead h2, .pm-about-lead p, .pm-about-lead .pm-lead { font-size: 24px; }
  .pm-rt-split { grid-template-columns: 1fr; gap: 30px; }
  .pm-scards { grid-template-columns: 1fr; gap: 45px; }
  .pm-scard-1, .pm-scard-3 { margin-top: 0; }
  /* Stacked: keep the silhouettes hugging the 220px boxes - centred and
     capped so they never blow up to full column width. */
  .pm-scard-1 .pm-scard-fig {
    position: absolute; left: 0; right: 0; bottom: -20px;
    width: min(340px, 100%); margin: 0 auto;
  }
  /* the pusher is drawn in the right half of his SVG - anchor him so his
     hands land on the box's right edge and his body sits beside it */
  .pm-scard-3 .pm-scard-fig {
    position: absolute; bottom: -20px;
    left: calc(50% - 25px); right: auto;
    width: 235px; margin: 0;
  }
  .pm-scard-2 .pm-scard-fig { width: min(220px, 70%); margin: 10px auto 0; }
  .pm-t1-avatar { float: none; display: block; margin: 0 0 16px; }
  .pm-t1 { padding: 42px 0 0; }
  .pm-t1::before { left: 0; top: -16px; font-size: 64px; line-height: 64px; }
}
