/*
Theme Name: Standish
Theme URI: https://www.standishmanagement.com/
Author: Standish Management
Description: Custom theme for the Standish Management website. Team members and offices are managed in the WordPress admin (Team Members, Offices).
Version: 1.1.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: standish
*/
  body { margin: 0; }
  a { color: #528bcd; text-decoration: none; }
  a:hover { color: #41538f; }
  @media (max-width: 760px) {
    header > div { padding: 14px 20px !important; flex-direction: column !important; gap: 12px !important; }
    header nav { gap: 8px 20px !important; flex-wrap: wrap !important; justify-content: center !important; }
    header nav a { font-size: 14px !important; }
    header img { height: 34px !important; }
    section[style*="padding"], footer { padding-left: 20px !important; padding-right: 20px !important; }
    [style*="height: 360px"], [style*="height:360px"] { height: auto !important; min-height: 360px; }
    [style*="padding: 0px 40px"], [style*="padding:0 40px"], [style*="padding: 20px 40px"], [style*="padding:20px 40px"] { padding: 40px 20px !important; }
    [style*="grid-template-columns: 1fr 1fr"], [style*="grid-template-columns:1fr 1fr"], [style*="repeat(3, 1fr)"], [style*="repeat(3,1fr)"] { grid-template-columns: 1fr !important; gap: 32px !important; }
    [style*="repeat(4, 1fr)"], [style*="repeat(4,1fr)"], [style*="repeat(5, 1fr)"], [style*="repeat(5,1fr)"], [style*="repeat(6, 1fr)"], [style*="repeat(6,1fr)"] { grid-template-columns: 1fr 1fr !important; }
    [style*="1.1fr"], [style*="1.2fr"] { grid-template-columns: 1fr !important; gap: 32px !important; }
    input, textarea, select { max-width: 100% !important; }
    section > div[style*="space-between"] { flex-wrap: wrap !important; }
    section > div[style*="space-between"] > input { width: 100% !important; }
    p, li { overflow-wrap: anywhere; }
    h1 { font-size: 28px !important; }
    h2 { font-size: 24px !important; }
  }
  .svc-btn { font-size:14px; font-weight:500; color:#41538f; white-space:nowrap; border-bottom:2px solid transparent; padding-bottom:2px; }
  .svc-btn:hover { color:#528bcd; border-bottom-color:#528bcd; }

/* Base */
html { scroll-behavior: auto; }
*, *::before, *::after { box-sizing: border-box; }
.site { font-family: Inter, sans-serif; background: oklch(0.99 0.002 90); color: oklch(0.22 0.01 260); width: 100%; }
img { max-width: 100%; }
/* Hero slides */
.hero-slide { transition: opacity 1.2s ease; }
/* Lightbox */
.js-lightbox { cursor: zoom-in; }
.standish-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,20,40,0.85); display: none; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.standish-lightbox.is-open { display: flex; }
.standish-lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.standish-lightbox button { position: absolute; top: 24px; right: 32px; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,0.15); color: white; font-size: 18px; cursor: pointer; }
/* Team + offices (rendered from the admin) */
.person-photo img, .office-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
/* Generic pages (e.g. pages created later in the editor) */
.entry-content { max-width: 820px; margin: 0 auto; padding: 72px 40px; font-size: 16px; line-height: 1.7; }
.entry-content h1, .entry-content h2, .entry-content h3 { font-family: 'Poppins', sans-serif; color: #1f2846; }
/* Keep the sticky header below the WordPress admin bar when logged in */
body.admin-bar header { top: 32px !important; }
@media screen and (max-width: 782px) { body.admin-bar header { top: 46px !important; } }
@media screen and (max-width: 600px) { body.admin-bar header { top: 0 !important; } }
