/*
Theme Name: PSD Group
Theme URI: https://www.psdgroup.co.uk
Author: PSD Group
Description: Corporate hub theme for PSD Group — v1.4. Service cards: icons removed, title moved into coloured header band.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: psd-group
*/

/* ─── PALETTE ───────────────────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --sc:      #4a7bbf;  --sc-bg:  #eaf1f9; --sc-mid: #d0e4f5; --sc-dk: #2d5a94;
  --bb:      #e5007d;  --bb-bg:  #fce8f3; --bb-mid: #f9c6e3; --bb-dk: #b3005f;
  --ccc:     #e8212a;  --ccc-bg: #fdeced; --ccc-mid:#fac8ca; --ccc-dk:#b8181f;
  --lc:      #39cc00;  --lc-bg:  #edfade; --lc-mid: #d0f5b4; --lc-dk: #2a9900;
  --cs:      #29c8d8;  --cs-bg:  #e5f9fb; --cs-mid: #b8eff4; --cs-dk: #1a9aaa;

  /* SchoolCare-derived neutrals */
  --navy:    #1e3a5f;   /* deep anchor — SchoolCare's dark tone */
  --ink:     #1a202c;
  --body:    #4a5568;
  --muted:   #718096;
  --line:    #e2e8f0;
  --bg:      #ffffff;
  --band:    #f4f7fb;   /* slightly cooler/richer than before */
  --band2:   #edf2f8;

  --maxw:    1140px;
  --radius:  8px;       /* SchoolCare uses tighter radius than the previous 14px */
}

/* ─── RESET & BASE ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sc); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { color: var(--navy); font-weight: 700; line-height: 1.2; letter-spacing:-0.02em; margin:0; }
ul { margin:0; padding:0; list-style:none; }

/* ─── LAYOUT ────────────────────────────────────────────────────────────── */
.psd-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.psd-eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.75);
  margin: 0 0 14px;
}
.psd-eyebrow--dark { color: var(--sc); }

/* ─── BUTTONS ───────────────────────────────────────────────────────────── */
.psd-btn {
  display: inline-block; border-radius: var(--radius);
  padding: 13px 26px; font-size: .95rem; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; line-height: 1;
  transition: background .15s, transform .1s; white-space: nowrap;
}
.psd-btn:hover { text-decoration: none; transform: translateY(-1px); }
.psd-btn--primary { background: var(--sc);  color: #fff; border-color: var(--sc);  }
.psd-btn--primary:hover { background: var(--sc-dk); border-color: var(--sc-dk); }
.psd-btn--white   { background: #fff; color: var(--navy); border-color: #fff; }
.psd-btn--white:hover { background: #f0f4f8; border-color: #f0f4f8; }
.psd-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.psd-btn--outline:hover { background: rgba(255,255,255,.1); }
.psd-btn--ghost   { background: #fff; color: var(--ink); border-color: var(--line); }
.psd-btn--ghost:hover { border-color: var(--navy); }
/* Brand variants */
.psd-btn--sc  { background: var(--sc);    color:#fff; border-color:var(--sc);    }
.psd-btn--sc:hover  { background: var(--sc-dk);  border-color:var(--sc-dk);  }
.psd-btn--bb  { background: var(--bb);    color:#fff; border-color:var(--bb);    }
.psd-btn--bb:hover  { background: var(--bb-dk);  border-color:var(--bb-dk);  }
.psd-btn--ccc { background: var(--ccc);   color:#fff; border-color:var(--ccc);   }
.psd-btn--ccc:hover { background: var(--ccc-dk); border-color:var(--ccc-dk); }
.psd-btn--lc  { background: var(--lc-dk); color:#fff; border-color:var(--lc-dk); }
.psd-btn--lc:hover  { background: #1e7300; border-color:#1e7300; }
.psd-btn--cs  { background: var(--cs-dk); color:#fff; border-color:var(--cs-dk); }
.psd-btn--cs:hover  { background: #127a88; border-color:#127a88; }

/* ─── HEADER ────────────────────────────────────────────────────────────── */
/* SchoolCare: white sticky header, logo left, phone + CTA far right */
.psd-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.psd-header__inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 0;
  height: 64px;
}
.psd-logo, .psd-logo a, .psd-logo .custom-logo-link {
  display: flex; align-items: center; flex-shrink: 0; height: 100%;
}
.psd-logo img, .psd-logo .custom-logo {
  height: 38px !important; width: auto !important; max-width: none; display: block;
}
.psd-nav {
  display: flex; align-items: center;
  gap: 2px; flex-wrap: nowrap; flex-shrink: 1; min-width: 0;
}
.psd-nav li { display: flex; align-items: center; list-style: none; flex-shrink: 0; }
.psd-nav li a, .psd-nav > a:not(.psd-btn) {
  display: block; color: var(--body); font-size: .84rem; font-weight: 500;
  white-space: nowrap; padding: 5px 10px; border-radius: 5px; text-decoration: none;
}
.psd-nav li a:hover, .psd-nav > a:not(.psd-btn):hover {
  color: var(--navy); background: var(--band);
}
.psd-nav .psd-btn {
  font-size: .84rem; padding: 9px 16px;
  white-space: nowrap; flex-shrink: 0; margin-left: 10px;
}

/* ─── HOMEPAGE HERO ─────────────────────────────────────────────────────── */
/* Full-bleed photo with a left-to-right dark gradient fade so text stays legible */
.psd-hero {
  position: relative;
  padding: 96px 0 80px;
  background: #1e3a5f;          /* fallback colour if no image set */
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
/* Image layer (set inline from Customizer / featured image) */
.psd-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
/* Gradient fade — opaque navy on the left, transparent toward the right */
.psd-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(20,32,48,.96) 0%,
    rgba(20,32,48,.92) 28%,
    rgba(20,32,48,.70) 50%,
    rgba(20,32,48,.35) 72%,
    rgba(20,32,48,.15) 100%
  );
}
.psd-hero .psd-wrap { position: relative; z-index: 2; }

.psd-hero__inner { max-width: 640px; margin-bottom: 52px; }
.psd-hero__brandmark { margin-bottom: 36px; }
.psd-hero__brandmark img { height: 46px; width: auto; filter: brightness(0) invert(1); }
.psd-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  color: #fff; margin-bottom: 8px; letter-spacing: -.03em;
}
.psd-hero__sub {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: #fff; font-weight: 700; margin-bottom: 0; letter-spacing: -.02em;
}
/* Short accent rule under the headline, echoing the mockup */
.psd-hero__rule {
  width: 80px; height: 4px; background: var(--sc);
  border: none; margin: 24px 0; border-radius: 2px;
}
.psd-hero__lead {
  font-size: 1.05rem; color: rgba(255,255,255,.82);
  max-width: 46ch; margin: 0 0 32px; line-height: 1.75;
}
.psd-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Stats bar — solid navy band directly below the hero (always legible) */
.psd-stats-bar {
  background: #142030;
  padding: 36px 0;
}
.psd-stats-bar__inner {
  display: grid; grid-template-columns: repeat(4,1fr);
}
.psd-stat-item {
  padding: 0 32px; border-right: 1px solid rgba(255,255,255,.15);
}
.psd-stat-item:first-child { padding-left: 0; }
.psd-stat-item:last-child { border-right: none; padding-right: 0; }
.psd-stat-item__num {
  font-size: 2.4rem; font-weight: 700; color: #fff;
  line-height: 1; letter-spacing: -.04em; margin-bottom: 6px;
}
.psd-stat-item__label { font-size: .85rem; color: rgba(255,255,255,.65); }

/* ─── TRUST STRIP ───────────────────────────────────────────────────────── */
/* SchoolCare: white strip with partner logos, subtle label */
.psd-trust {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.psd-trust__inner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
}
.psd-trust__label { font-size: .8rem; font-weight: 600; color: var(--muted); margin-right: 8px; text-transform: uppercase; letter-spacing: .05em; }
.psd-chip {
  font-size: .82rem; font-weight: 500; color: var(--body);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 5px 14px; background: var(--band);
}

/* ─── BRANDS SECTION ────────────────────────────────────────────────────── */
/* SchoolCare: light grey band, section eyebrow, card grid with hover lift */
.psd-brands { padding: 80px 0; background: var(--band); }
.psd-brands__head { margin-bottom: 48px; }
.psd-brands__head h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 12px;
}
.psd-brands__head p { font-size: 1.05rem; color: var(--body); max-width: 52ch; margin: 0; }

.psd-sector { margin-bottom: 44px; }
.psd-sector__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}
.psd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 24px; }

/* Brand card — SchoolCare image-topped card style */
.psd-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .18s;
}
.psd-card:hover:not(.psd-card--soon) {
  box-shadow: 0 8px 32px rgba(30,58,95,.12);
  transform: translateY(-3px);
}
.psd-card--soon { opacity: .85; cursor: default; }

/* Coloured top band — 4px, brand colour */
.psd-card--sc  { border-top: 4px solid var(--sc);  }
.psd-card--bb  { border-top: 4px solid var(--bb);  }
.psd-card--ccc { border-top: 4px solid var(--ccc); }
.psd-card--lc  { border-top: 4px solid var(--lc);  }
.psd-card--cs  { border-top: 4px solid var(--cs);  }

/* Logo zone — fixed height tinted area */
.psd-card__logo-zone {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  min-height: 80px;
}
.psd-card--sc  .psd-card__logo-zone { background: var(--sc-bg);  }
.psd-card--bb  .psd-card__logo-zone { background: var(--bb-bg);  }
.psd-card--ccc .psd-card__logo-zone { background: var(--ccc-bg); }
.psd-card--lc  .psd-card__logo-zone { background: var(--lc-bg);  }
.psd-card--cs  .psd-card__logo-zone { background: var(--cs-bg);  }

.psd-card__logo { height: 38px; width: auto; max-width: 240px; object-fit: contain; object-position: left center; }

.psd-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.psd-card p { margin: 0 0 20px; font-size: .97rem; color: var(--body); line-height: 1.65; flex: 1; }
.psd-card__link { font-size: .9rem; font-weight: 700; }
.psd-card--sc  .psd-card__link { color: var(--sc);    }
.psd-card--bb  .psd-card__link { color: var(--bb);    }
.psd-card--ccc .psd-card__link { color: var(--ccc);   }
.psd-card--lc  .psd-card__link { color: var(--lc-dk); }
.psd-card--cs  .psd-card__link { color: var(--cs-dk); }

.psd-badge {
  font-size: .72rem; font-weight: 700; border-radius: 4px;
  padding: 4px 10px; background: var(--cs-bg); color: var(--cs-dk);
  flex-shrink: 0;
}

/* ─── NARRATIVE ─────────────────────────────────────────────────────────── */
/* SchoolCare: full-width dark navy band with white text */
.psd-narrative {
  background: var(--navy);
  padding: 72px 0;
}
.psd-narrative h2 { font-size: clamp(1.6rem,2.6vw,2.1rem); color: #fff; margin-bottom: 16px; }
.psd-narrative p  { max-width: 62ch; font-size: 1.05rem; color: rgba(255,255,255,.78); margin: 0; }

/* ─── CONTACT CTA ───────────────────────────────────────────────────────── */
/* SchoolCare: medium-dark band, centred or split layout */
.psd-cta {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--sc-dk) 0%, var(--navy) 100%);
}
.psd-cta__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 28px;
}
.psd-cta__title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.psd-cta__sub   { font-size: 1rem; color: rgba(255,255,255,.78); }
.psd-cta__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.psd-cta__phone { font-weight: 700; color: #fff; font-size: 1.1rem; }
.psd-cta__phone:hover { text-decoration: underline; color: #fff; }

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
/* SchoolCare: dark navy footer */
.psd-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 28px 0;
}
.psd-footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.psd-footer span, .psd-footer a { font-size: .85rem; color: rgba(255,255,255,.55); }
.psd-footer a:hover { color: rgba(255,255,255,.85); text-decoration: none; }
.psd-footer__links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════════════
   BRAND OVERVIEW PAGES
   ══════════════════════════════════════════════════════════════════════════ */

/* Brand hero — full-bleed photo with a brand-coloured left fade */
.brand-hero {
  padding: 76px 0 64px;
  position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
/* Fallback solid colour per brand (shows if no image set) */
.brand-hero--sc  { background-color: var(--sc-dk);  }
.brand-hero--bb  { background-color: var(--bb-dk);  }
.brand-hero--ccc { background-color: var(--ccc-dk); }
.brand-hero--lc  { background-color: #1e7300;       }
.brand-hero--cs  { background-color: var(--cs-dk);  }

.brand-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
/* Brand-coloured gradient fade, opaque left → transparent right */
.brand-hero__overlay { position: absolute; inset: 0; z-index: 1; }
.brand-hero--sc  .brand-hero__overlay { background: linear-gradient(90deg, var(--sc-dk) 0%, rgba(45,90,148,.92) 30%, rgba(45,90,148,.55) 60%, rgba(45,90,148,.15) 100%); }
.brand-hero--bb  .brand-hero__overlay { background: linear-gradient(90deg, var(--bb-dk) 0%, rgba(179,0,95,.92) 30%, rgba(179,0,95,.55) 60%, rgba(179,0,95,.15) 100%); }
.brand-hero--ccc .brand-hero__overlay { background: linear-gradient(90deg, var(--ccc-dk) 0%, rgba(184,24,31,.92) 30%, rgba(184,24,31,.55) 60%, rgba(184,24,31,.15) 100%); }
.brand-hero--lc  .brand-hero__overlay { background: linear-gradient(90deg, #1e7300 0%, rgba(42,153,0,.92) 30%, rgba(42,153,0,.55) 60%, rgba(42,153,0,.15) 100%); }
.brand-hero--cs  .brand-hero__overlay { background: linear-gradient(90deg, var(--cs-dk) 0%, rgba(26,154,170,.92) 30%, rgba(26,154,170,.55) 60%, rgba(26,154,170,.15) 100%); }

.brand-hero .psd-wrap { position: relative; z-index: 2; }
.brand-hero__inner { max-width: 620px; }
.brand-hero__content { min-width: 0; }
.brand-hero__logo-wrap { margin-bottom: 20px; }
.brand-hero__logo {
  height: 52px; width: auto; max-width: 340px;
  filter: brightness(0) invert(1);
}
.brand-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff; margin-bottom: 14px;
}
.brand-hero__strapline { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 54ch; margin: 0 0 24px; }
.brand-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.brand-pill {
  font-size: .78rem; font-weight: 600; border-radius: 4px;
  padding: 5px 12px; background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35); color: #fff;
}
.brand-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 20px;
}
.brand-back:hover { color: #fff; text-decoration: none; }

/* Section bands */
.brand-section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.brand-section--tint  { background: var(--band);  }
.brand-section--tint2 { background: var(--band2); }
.brand-section--dark  { background: var(--navy);  border-color: transparent; }
.brand-section--dark h2, .brand-section--dark h3 { color: #fff; }
.brand-section--dark p { color: rgba(255,255,255,.78); }

.brand-section__head { margin-bottom: 40px; }
.brand-section__head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }
.brand-section__head p  { font-size: 1.05rem; color: var(--body); max-width: 56ch; margin: 0; }

/* Service cards — coloured title header replaces the old icon zone */
.brand-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 24px; }
.brand-service {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .15s;
}
.brand-service:hover { box-shadow: 0 6px 24px rgba(30,58,95,.1); transform: translateY(-2px); }
/* Title sits in the tinted header band (where the icon used to be) */
.brand-service__head {
  padding: 16px 20px; display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand-service__head h3 { font-size: 1.02rem; margin: 0; line-height: 1.25; }
.ic-sc  { background: var(--sc-bg);  }
.ic-bb  { background: var(--bb-bg);  }
.ic-ccc { background: var(--ccc-bg); }
.ic-lc  { background: var(--lc-bg);  }
.ic-cs  { background: var(--cs-bg);  }
.brand-service__body { padding: 18px 20px 20px; flex: 1; }
.brand-service p  { font-size: .93rem; color: var(--body); margin: 0; line-height: 1.6; }

/* Key facts */
.brand-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.brand-fact { text-align: center; padding: 28px 16px; background: #fff; }
.brand-fact__num   { font-size: 2.2rem; font-weight: 700; color: var(--navy); letter-spacing: -.04em; line-height: 1; }
.brand-fact__label { font-size: .84rem; color: var(--muted); margin-top: 6px; }

/* CTA band */
.brand-cta { padding: 64px 0; text-align: center; }
.brand-cta--sc  { background: linear-gradient(135deg, var(--sc-dk), var(--navy));  }
.brand-cta--bb  { background: linear-gradient(135deg, var(--bb-dk), #7a003f);      }
.brand-cta--ccc { background: linear-gradient(135deg, var(--ccc-dk), #7a0008);     }
.brand-cta--lc  { background: linear-gradient(135deg, #1e7300, #0a4d00);           }
.brand-cta--cs  { background: linear-gradient(135deg, var(--cs-dk), #0d5f6a);      }
.brand-cta__logo { height: 44px; width: auto; max-width: 280px; margin: 0 auto 24px; filter: brightness(0) invert(1); }
.brand-cta h2    { font-size: clamp(1.5rem,2.4vw,2rem); color: #fff; margin-bottom: 12px; }
.brand-cta p     { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 50ch; margin: 0 auto 28px; }
.brand-cta__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* Service list */
.brand-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 0 24px; }
.brand-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .96rem; color: var(--body); line-height: 1.5;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.brand-list li::before { content: "✓"; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.brand-list--sc  li::before { color: var(--sc);    }
.brand-list--bb  li::before { color: var(--bb);    }
.brand-list--ccc li::before { color: var(--ccc);   }
.brand-list--lc  li::before { color: var(--lc-dk); }
.brand-list--cs  li::before { color: var(--cs-dk); }

/* Two-column layout */
.brand-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.brand-two-col--wide { grid-template-columns: 3fr 2fr; }

/* Aside */
.brand-aside { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.brand-aside--sc  { background: var(--sc-bg);  border-color: var(--sc-mid);  }
.brand-aside--bb  { background: var(--bb-bg);  border-color: var(--bb-mid);  }
.brand-aside--ccc { background: var(--ccc-bg); border-color: var(--ccc-mid); }
.brand-aside--lc  { background: var(--lc-bg);  border-color: var(--lc-mid);  }
.brand-aside--cs  { background: var(--cs-bg);  border-color: var(--cs-mid);  }
.brand-aside h3   { font-size: 1rem; margin-bottom: 12px; color: var(--navy); }
.brand-aside p    { font-size: .96rem; color: var(--body); margin: 0; line-height: 1.65; }

/* ─── INNER PAGE ─────────────────────────────────────────────────────────── */
.psd-page { padding: 64px 0; }
.psd-page h1 { font-size: clamp(1.8rem,3vw,2.5rem); margin-bottom: 24px; }
.psd-page .entry-content p { margin: 0 0 18px; }

/* ─── MOBILE NAV TOGGLE (hidden on desktop) ─────────────────────────────── */
.psd-nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: 8px; color: var(--navy); flex-shrink: 0;
}
.psd-nav__toggle svg { width: 26px; height: 26px; display: block; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — three tiers: desktop (>1024) / tablet (≤1024) / mobile (≤640)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── TABLET & small laptop (≤1024px) ── */
@media (max-width: 1024px) {
  .psd-wrap { padding: 0 24px; }

  /* Collapse nav into a slide-down mobile menu */
  .psd-nav__toggle { display: inline-flex; align-items: center; }
  .psd-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    padding: 8px 0; display: none;
  }
  .psd-nav.is-open { display: flex; }
  .psd-nav li { display: block; width: 100%; }
  .psd-nav li a, .psd-nav > a:not(.psd-btn) {
    display: block; width: 100%; font-size: 1rem;
    padding: 13px 24px; border-radius: 0;
  }
  .psd-nav li a:hover, .psd-nav > a:not(.psd-btn):hover { background: var(--band); }
  .psd-nav .psd-btn {
    margin: 10px 24px 6px; text-align: center; font-size: 1rem; padding: 13px 20px;
  }
  .psd-header { position: relative; }   /* anchor the absolute menu */

  /* Hero text spans wider on tablet */
  .psd-hero__inner, .brand-hero__inner { max-width: 80%; }

  /* Stats → 2×2 grid */
  .psd-stats-bar__inner { grid-template-columns: repeat(2,1fr); gap: 24px 0; }
  .psd-stat-item:nth-child(2) { border-right: none; }
  .psd-stat-item { padding: 12px 24px; border-right: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.1); }
  .psd-stat-item:first-child { padding-left: 24px; }

  /* Two-column page sections stack */
  .brand-two-col, .brand-two-col--wide { grid-template-columns: 1fr; gap: 36px; }

  /* Card grids: allow 2-up minimum */
  .psd-grid { grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
}

/* ── MOBILE (≤640px) ── */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .psd-wrap { padding: 0 18px; }

  /* Hero — full width text, tighter padding */
  .psd-hero { padding: 56px 0 48px; }
  .psd-hero__inner, .brand-hero__inner { max-width: 100%; }
  .psd-hero h1 { font-size: 1.85rem; }
  .psd-hero__sub { font-size: 1.25rem; }
  .psd-hero__brandmark img { height: 38px; }
  .psd-hero__lead { font-size: 1rem; }
  .psd-hero__cta { gap: 10px; }
  .psd-hero__cta .psd-btn { flex: 1 1 auto; text-align: center; }

  /* Brand hero */
  .brand-hero { padding: 48px 0 40px; }
  .brand-hero h1 { font-size: 1.65rem; }
  .brand-hero__logo { height: 42px; }
  .brand-hero__strapline { font-size: 1rem; }

  /* Stats stack to a single column */
  .psd-stats-bar { padding: 28px 0; }
  .psd-stats-bar__inner { grid-template-columns: 1fr 1fr; }
  .psd-stat-item__num { font-size: 2rem; }

  /* Section spacing */
  .brand-section, .psd-brands { padding: 44px 0; }
  .psd-narrative, .psd-cta { padding: 48px 0; }

  /* Single-column card grids */
  .psd-grid, .brand-services, .brand-list { grid-template-columns: 1fr; }

  /* CTA + footer stack */
  .psd-cta__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .psd-footer__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .brand-facts { grid-template-columns: 1fr 1fr; }

  /* Brand pills wrap comfortably */
  .brand-hero__meta { gap: 6px; }
  .brand-pill { font-size: .74rem; padding: 4px 10px; }
}

/* ── SMALL MOBILE (≤380px) ── */
@media (max-width: 380px) {
  .psd-hero h1 { font-size: 1.6rem; }
  .brand-facts { grid-template-columns: 1fr; }
  .psd-stats-bar__inner { grid-template-columns: 1fr; }
  .psd-stat-item { border-right: none; }
}

@media (prefers-reduced-motion: reduce) {
  .psd-btn, .psd-card, .brand-service { transition: none; }
  html { scroll-behavior: auto; }
}
