/* ==========================================================================
   Full Spectrum Facilities Services
   Converted from gary.psd (1920 x 4045).

   Layout uses a standard 1200px content container and a conventional type
   scale rather than the comp's raw pixel values. The PSD is a flat 1920px
   raster, so every asset is capped at its natural size — displaying an image
   larger than that is what made the logo and headshots look soft.
   ========================================================================== */

:root {
  --navy:      #05217d;   /* announcement bar               */
  --orange:    #f86908;   /* header phone / consultation    */
  --dark:      #303030;   /* full-width quote bands         */
  --blue:      #3970bb;   /* band button fill               */
  --blue-edge: #638bc2;   /* band button border             */
  --lavender:  #e8e9f1;   /* "Your Vision" section          */
  --ink:       #000;
  --rule:      #e2e2e2;

  --container: 1200px;
  --gutter:    24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Lato, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- headings ---------------------------------------------------- */

h1, h2 {
  margin: 0 0 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: 36px; }
h2 { font-size: 32px; }

p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Announcement bar
   ========================================================================== */

.topbar {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
}

.topbar p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .01em;
  text-align: center;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo { flex: 0 0 auto; display: block; }
.logo img { width: 260px; }        /* natural width 570px — always downscaled */

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.primary-nav a {
  display: inline-block;
  padding: 4px 0;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover,
.primary-nav a:focus-visible { color: var(--navy); border-bottom-color: var(--navy); }

.cta-phone {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 9px 20px;
  background: var(--orange);
  border: 2px solid #000;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
}

.cta-phone:hover,
.cta-phone:focus-visible { background: #d95a06; }

.cta-phone__label  { font-size: 14px; line-height: 1.3; }
.cta-phone__number { font-size: 24px; font-weight: 700; line-height: 1.2; }

.nav-toggle {
  display: none;
  width: 46px; height: 40px;
  padding: 0;
  background: none;
  border: 1px solid #000;
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 22px; height: 2px;
  margin-inline: auto;
  background: #000;
  content: "";
}
.nav-toggle__bar::before { transform: translateY(-7px); }
.nav-toggle__bar::after  { transform: translateY(5px); }

/* ==========================================================================
   Hero strip — three photos, PSD widths 616 / 714 / 585
   ========================================================================== */

.hero-strip {
  display: flex;
  gap: 3px;
  max-width: 1920px;            /* natural width of the source composite */
  margin-inline: auto;
  height: 22.76vw;              /* 437 / 1920 */
  max-height: 437px;
  min-height: 180px;
  overflow: hidden;
}

.hero-strip img { width: 100%; height: 100%; min-width: 0; object-fit: cover; }
.hero-strip img:nth-child(1) { flex: 616 1 0; }
.hero-strip img:nth-child(2) { flex: 714 1 0; }
.hero-strip img:nth-child(3) { flex: 585 1 0; }

/* ==========================================================================
   Two-column content sections
   ========================================================================== */

.intro  { padding: 80px 0; }
.vision { padding: 80px 0; background: var(--lavender); }

.intro__grid,
.vision__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro__media img,
.vision__media img { width: 100%; }

/* services block */

.lead-in,
.service-head { font-weight: 700; }

.lead-in { margin-bottom: 16px; }
.service-head { margin-bottom: 6px; }

.service-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.service-list li { position: relative; padding-left: 18px; }
.service-list li::before { content: "\2022"; position: absolute; left: 0; }

.closer {
  margin-top: 28px;
  font-size: 19px;
  font-weight: 700;
}

/* ==========================================================================
   Dark bands
   ========================================================================== */

.band {
  background: var(--dark);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.band blockquote,
.band__title {
  max-width: 1100px;
  margin: 0 auto 28px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
}

.btn {
  display: inline-block;
  min-width: 300px;
  padding: 13px 28px;
  background: var(--blue);
  border: 1px solid var(--blue-edge);
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible { background: #2f61a3; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials { padding: 80px 0; }

/* narrower than the page container so the quotes keep a readable measure */
.testimonials .container { max-width: 1000px; }

.testimonials__title {
  margin-bottom: 56px;
  text-align: center;
}

.testimonial {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  margin: 0 0 64px;
}

.testimonial:last-child { margin-bottom: 0; }

.testimonial__person img {
  width: 130px;               /* natural width 147px — never upscaled */
  margin-bottom: 16px;
}

.testimonial figcaption {
  font-size: 15px;
  line-height: 1.5;
}

.testimonial__name { display: block; font-weight: 700; }

.testimonial blockquote { margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #000;
  color: #fff;
  padding: 64px 0 36px;
}

.footer__main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  flex-wrap: wrap;
}

.footer__logo { width: 300px; }   /* natural width 455px */

.footer__address {
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.footer__company { display: block; margin-bottom: 10px; }

.footer__address a { text-decoration: none; }
.footer__address a:hover { text-decoration: underline; }

.footer__legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin-top: 48px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.footer__legal a { text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .logo img { width: 220px; }
  .primary-nav ul { gap: 20px; }
  .primary-nav a { font-size: 15px; }
  .cta-phone__number { font-size: 21px; }
}

@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; gap: 16px; }
  .nav-toggle { display: block; order: 3; }
  .cta-phone { order: 2; margin-left: auto; }

  .primary-nav {
    order: 4;
    flex-basis: 100%;
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-top: 1px solid var(--rule); }
  .primary-nav a { display: block; padding: 13px 2px; border-bottom: 0; }

  .intro__grid, .vision__grid { grid-template-columns: 1fr; gap: 44px; }
  .intro__media, .vision__media { max-width: 640px; margin-inline: auto; }

  .intro, .vision, .testimonials { padding: 60px 0; }

  h1 { font-size: 31px; }
  h2 { font-size: 28px; }
}

@media (max-width: 760px) {
  .hero-strip { flex-direction: column; height: auto; max-height: none; gap: 6px; }
  .hero-strip img { height: 48vw; }

  h1 { font-size: 27px; }
  h2 { font-size: 25px; }

  .band { padding: 44px 0; }
  .band blockquote, .band__title { font-size: 20px; }
  .btn { min-width: 0; width: 100%; max-width: 340px; }

  .testimonial { grid-template-columns: 1fr; gap: 20px; margin-bottom: 52px; }
  .testimonial__person { display: flex; align-items: center; gap: 20px; }
  .testimonial__person img { width: 104px; margin-bottom: 0; flex: 0 0 auto; }

  .testimonials__title { margin-bottom: 40px; }

  .footer__main { gap: 32px; }
  .footer__logo { width: min(100%, 260px); }
  .footer__legal { margin-top: 32px; flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 14px var(--gutter); }
  .logo img { width: 190px; }
  .cta-phone { padding: 7px 14px; }
  .cta-phone__label { font-size: 12px; }
  .cta-phone__number { font-size: 18px; }
  .closer { font-size: 17px; }
}

/* ==========================================================================
   WordPress core & editor output
   Everything below is additive to the converted comp above.
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.alignleft   { float: left;  margin: 0 24px 20px 0; }
.alignright  { float: right; margin: 0 0 20px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { max-width: none; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; line-height: 1.5; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.entry-content h2 { font-size: 28px; margin-top: 40px; }
.entry-content h3 { font-size: 22px; font-weight: 700; margin: 32px 0 14px; line-height: 1.3; }
.entry-content h4 { font-size: 18px; font-weight: 700; margin: 28px 0 12px; }
.entry-content ul,
.entry-content ol { margin: 0 0 20px; padding-left: 22px; }
.entry-content li { margin-bottom: 8px; }
.entry-content a { color: var(--navy); text-decoration: underline; }
.entry-content a:hover { color: var(--orange); }
.entry-content blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--orange);
  font-size: 19px;
  line-height: 1.6;
}
.entry-content img { border-radius: 4px; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.entry-content th,
.entry-content td { padding: 10px 14px; border: 1px solid var(--rule); text-align: left; }
.entry-content th { background: var(--lavender); font-weight: 700; }

/* header logo fallback when no image is set -------------------------------- */

.logo__text {
  display: block;
  max-width: 320px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  text-decoration: none;
}
.logo__tagline {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dark);
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a {
  color: var(--navy);
  border-bottom-color: var(--navy);
  font-weight: 700;
}

/* sub-menus ---------------------------------------------------------------- */

.primary-nav li { position: relative; }

.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  min-width: 220px;
  margin: 0;
  padding: 6px 0;
  display: none;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: flex; }

.primary-nav .sub-menu a {
  display: block;
  padding: 8px 18px;
  border-bottom: 0;
  white-space: normal;
}
.primary-nav .sub-menu a:hover { background: var(--lavender); color: var(--navy); }

/* ==========================================================================
   Interior page hero
   ========================================================================== */

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 320px;
  padding: 72px 0;
  background: var(--navy) center / cover no-repeat;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 33, 125, .72);
}

.page-hero--plain::before { background: none; }

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  margin-bottom: 12px;
  font-size: 42px;
  color: #fff;
}

.page-hero__sub {
  max-width: 760px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
}

.breadcrumbs {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span + span::before { content: "/"; margin: 0 10px; opacity: .6; }

/* ==========================================================================
   Generic section rhythm
   ========================================================================== */

.section        { padding: 80px 0; }
.section--tint  { background: var(--lavender); }
.section--tight { padding: 56px 0; }

.section__head {
  max-width: 780px;
  margin: 0 auto 52px;
  text-align: center;
}
.section__head h2 { margin-bottom: 14px; }
.section__head p  { font-size: 18px; line-height: 1.65; }

.section__eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ==========================================================================
   Service cards
   ========================================================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 32px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 34px 32px;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--orange);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  object-fit: contain;
}

.service-card h3 {
  margin: 0 0 14px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.service-card p { font-size: 15.5px; }

.service-card .service-list { margin-top: auto; padding-top: 14px; }
.service-card .service-list li { margin-bottom: 6px; }

.service-card__media {
  margin: -34px -32px 24px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}
.service-card__media img { width: 100%; height: 220px; object-fit: cover; }

/* alternating feature rows ------------------------------------------------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row--flip .feature-row__media { order: -1; }
.feature-row__media img { width: 100%; border-radius: 6px; }

/* ==========================================================================
   Stats strip
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 32px;
  text-align: center;
}

.stat__value {
  display: block;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
}
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.section--dark { background: var(--dark); color: #fff; }
.section--dark h2 { color: #fff; }
.section--dark .stat__value { color: var(--orange); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: start;
}

.contact-details { font-size: 16px; }

.contact-detail {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.contact-detail:first-of-type { padding-top: 0; }
.contact-detail:last-of-type  { border-bottom: 0; }

.contact-detail__label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
}
.contact-detail a { text-decoration: none; }
.contact-detail a:hover { text-decoration: underline; color: var(--navy); }

.contact-map {
  margin-top: 28px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}
.contact-map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* form --------------------------------------------------------------------- */

.fs-form {
  padding: 36px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .06);
}

.section--tint .fs-form { box-shadow: 0 8px 26px rgba(0, 0, 0, .08); }

.fs-form__row { margin-bottom: 20px; }

.fs-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fs-form label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
}
.fs-form .req { color: var(--orange); }

.fs-form input[type="text"],
.fs-form input[type="email"],
.fs-form input[type="tel"],
.fs-form select,
.fs-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9c9d2;
  border-radius: 5px;
}

.fs-form textarea { min-height: 150px; resize: vertical; }

.fs-form input:focus,
.fs-form select:focus,
.fs-form textarea:focus {
  border-color: var(--navy);
  outline: 2px solid rgba(5, 33, 125, .18);
  outline-offset: 0;
}

.fs-form__hp { position: absolute; left: -9999px; }

.fs-form button {
  width: 100%;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  border: 2px solid #000;
  border-radius: 6px;
  cursor: pointer;
}
.fs-form button:hover { background: #d95a06; }
.fs-form button[disabled] { opacity: .6; cursor: default; }

.fs-form__note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: #555; }

.fs-notice {
  margin-bottom: 24px;
  padding: 15px 18px;
  border-radius: 5px;
  border-left: 4px solid;
  font-size: 15px;
  line-height: 1.6;
}
.fs-notice--ok    { background: #e8f5ec; border-color: #2f8a4d; color: #1c5c33; }
.fs-notice--error { background: #fdecea; border-color: #c0392b; color: #8c2b20; }
.fs-notice p:last-child { margin-bottom: 0; }

.fs-form .has-error input,
.fs-form .has-error select,
.fs-form .has-error textarea { border-color: #c0392b; }
.fs-form .field-error { display: block; margin-top: 6px; font-size: 13px; color: #c0392b; }

/* ==========================================================================
   Testimonials — card layout

   Real testimonials vary wildly in length: one client writes two dense
   paragraphs, the next writes three lines. Left alone that leaves a huge dead
   gap in the short card. Long quotes are therefore clamped to an even height
   with a Read-more toggle, so the row reads as a set rather than as one wall of
   text beside an empty box.
   ========================================================================== */

.testimonial--card {
  position: relative;
  display: flex;
  flex-direction: column;
  /* .testimonial is a grid with gap:48px and margin-bottom:64px for the list
     layout. Both still apply here once display flips to flex — the gap opened a
     phantom 48px under the stars, and the margin shrank every card except the
     last, so a stretched row came out uneven. Reset both. */
  gap: 0;
  margin: 0;
  padding: 34px 32px 30px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.testimonial--card:hover {
  transform: translateY(-3px);
  border-color: #d3d6e4;
  box-shadow: 0 16px 34px rgba(5, 33, 125, .10);
}

/* watermark quote glyph */
.testimonial--card::before {
  content: "\201D";
  position: absolute;
  top: 4px;
  right: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 104px;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  opacity: .07;
  pointer-events: none;
}

.testimonial__stars {
  position: relative;
  margin-bottom: 16px;
  font-size: 15px;
  letter-spacing: 4px;
  line-height: 1;
  color: var(--orange);
}

/* ---------- the quote ---------------------------------------------------- */

.testimonial__quote {
  position: relative;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: #23232b;
}

.testimonial__quote p { margin-bottom: 16px; }
.testimonial__quote p:last-child { margin-bottom: 0; }

/* Applied by JS only when the text actually overflows, so the full quote is
   still readable if scripting is unavailable. */
/* ~7 lines. Tight enough that a long quote does not tower over a short one and
   leave it looking empty, generous enough to carry the gist before the click. */
.testimonial__quote.is-clamped {
  max-height: 12.3em;
  overflow: hidden;
}

.testimonial__quote.is-clamped::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 82%);
  pointer-events: none;
}

.testimonial__more {
  align-self: flex-start;
  margin-top: 14px;
  padding: 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
  cursor: pointer;
  border-bottom: 1px solid currentColor;
}

.testimonial__more:hover { color: var(--orange); }

/* ---------- attribution -------------------------------------------------- */

.testimonial--card .testimonial__person {
  display: flex;
  align-items: center;
  gap: 15px;
  /* Pin the attribution to the bottom so names line up across the row. */
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.testimonial--card .testimonial__person img {
  width: 60px;
  height: 60px;
  margin-bottom: 0;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--rule);
}

.testimonial--card .testimonial__name {
  display: block;
  margin-bottom: 1px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.testimonial__role {
  display: block;
  font-size: 13.5px;
  line-height: 1.45;
  color: #5c5c6a;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 760px) {
  .testimonial--card { padding: 28px 24px 26px; }
  .testimonial--card::before { font-size: 80px; right: 16px; }
  .testimonial--card .testimonial__person img { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial--card { transition: none; }
  .testimonial--card:hover { transform: none; }
}

/* ==========================================================================
   Logos / partners strip
   ========================================================================== */

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.logo-strip img {
  max-height: 62px;
  width: auto;
  filter: grayscale(1);
  opacity: .68;
}
.logo-strip img:hover { filter: none; opacity: 1; }

/* ==========================================================================
   Call-to-action band variants
   ========================================================================== */

.band--split .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}
.band--split .band__title { margin: 0; max-width: 720px; }
.band--split .btn { flex: 0 0 auto; }

.btn--ghost {
  background: transparent;
  border-color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.btn--orange { background: var(--orange); border-color: #000; }
.btn--orange:hover { background: #d95a06; }

/* ==========================================================================
   Footer additions
   ========================================================================== */

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  font-size: 14px;
}
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; color: var(--orange); }

.footer__social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
}
.footer__social a:hover { background: var(--orange); border-color: var(--orange); }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }

/* ==========================================================================
   Blog / archive / 404
   ========================================================================== */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 40px;
}

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.post-card__thumb img { width: 100%; height: 210px; object-fit: cover; }
.post-card__body { padding: 26px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h2 { font-size: 21px; margin-bottom: 10px; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { color: var(--navy); }
.post-card__meta { font-size: 13px; color: #666; margin-bottom: 12px; }
.post-card__more { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--navy); text-decoration: none; }

.entry-single { max-width: 820px; margin-inline: auto; }
.entry-single .entry-thumb img { width: 100%; border-radius: 8px; margin-bottom: 32px; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  text-decoration: none;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.error-404 { padding: 110px 0; text-align: center; }
.error-404 h1 { font-size: 96px; line-height: 1; color: var(--navy); margin-bottom: 8px; }
.error-404 .search-form { margin: 32px auto 0; max-width: 440px; display: flex; gap: 10px; }
.search-form input[type="search"] {
  flex: 1;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid #c9c9d2;
  border-radius: 5px;
}
.search-form button {
  padding: 12px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

/* ==========================================================================
   Responsive additions
   ========================================================================== */

@media (max-width: 960px) {
  .page-hero { min-height: 240px; padding: 56px 0; }
  .page-hero h1 { font-size: 33px; }
  .page-hero__sub { font-size: 17px; }

  .section, .section--tight { padding: 60px 0; }
  .section__head { margin-bottom: 40px; }

  .contact-grid { grid-template-columns: 1fr; gap: 44px; }

  .feature-row { grid-template-columns: 1fr; gap: 40px; margin-bottom: 60px; }
  .feature-row--flip .feature-row__media { order: 0; }

  .band--split .container { flex-direction: column; text-align: center; }
  .band--split .band__title { margin: 0 auto; }

  .stat__value { font-size: 38px; }
}

@media (max-width: 760px) {
  .page-hero h1 { font-size: 28px; }
  .fs-form { padding: 26px 22px; }
  .fs-form__grid { grid-template-columns: 1fr; gap: 20px; }
  .service-card { padding: 28px 24px; }
  .service-card__media { margin: -28px -24px 20px; }
  .logo-strip { gap: 28px; }
  .error-404 { padding: 70px 0; }
  .error-404 h1 { font-size: 68px; }
  .error-404 .search-form { flex-direction: column; }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .topbar, .nav-toggle, .primary-nav, .cta-phone, .band, .fs-form, .site-footer { display: none !important; }
  body { color: #000; font-size: 12pt; }
}

/* Linked hero photos: the anchor becomes the flex item, the image fills it. */
.hero-strip > a { display: block; min-width: 0; height: 100%; }
.hero-strip > a img { width: 100%; height: 100%; object-fit: cover; }

/* The editor wraps intro copy in .entry-content, whose last paragraph has its
   margin stripped by the global p:last-child rule. Restore the gap the comp
   has between the closing paragraph and the services list that follows it. */
.intro__copy > .entry-content,
.vision__copy > .entry-content { margin-bottom: 20px; }
.intro__copy > .entry-content:last-child,
.vision__copy > .entry-content:last-child { margin-bottom: 0; }


/* ==========================================================================
   Process timeline

   Replaces the boxed step cards. Four shadowed boxes read as a generic feature
   grid and left dead space whenever one step's copy ran shorter than another's;
   a connected timeline says "sequence" on sight and has no box to leave empty.
   ========================================================================== */

.process-section {
  position: relative;
  overflow: hidden;
}

/* A soft wash so the tinted band is not a flat slab behind the timeline. */
.process-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58rem 26rem at 12% -10%, rgba(255, 255, 255, .85), transparent 60%),
    radial-gradient(46rem 24rem at 92% 108%, rgba(248, 105, 8, .07), transparent 62%);
  pointer-events: none;
}

.process-section > .container { position: relative; }

.process {
  display: grid;
  grid-template-columns: repeat(var(--process-count, 4), minmax(0, 1fr));
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process__step {
  position: relative;
  padding-right: 8px;
}

/* ---------- the numeral ---------------------------------------------------- */

.process__num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(5, 33, 125, .16);
  box-shadow:
    0 2px 4px rgba(5, 33, 125, .06),
    0 10px 24px rgba(5, 33, 125, .10);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  transition: background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

/* ---------- the connector -------------------------------------------------- */

/*
 * Drawn per step rather than as one line under the row, so it survives the
 * grid re-flowing at narrower widths. It bridges the 34px gap to the next
 * numeral and is switched off for the last step.
 */
.process__step::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 56px;
  right: -34px;
  height: 1px;
  background: linear-gradient(to right, rgba(5, 33, 125, .26), rgba(5, 33, 125, .10));
}

.process__step:last-child::after { display: none; }

/* ---------- copy ----------------------------------------------------------- */

.process__title {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.process__text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: #4a4a58;
  max-width: 34ch;
}

/* ---------- hover ---------------------------------------------------------- */

.process__step:hover .process__num {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 10px 26px rgba(5, 33, 125, .30);
  transform: translateY(-2px);
}

/* ==========================================================================
   Process — responsive

   Below the width where every step fits on one row the horizontal connector
   would point into empty space, so the timeline turns vertical: numerals in a
   left rail joined by a continuous line, which is the natural phone treatment
   for a sequence anyway.
   ========================================================================== */

@media (max-width: 1080px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 34px; }

  /* Only the first of each pair still has a neighbour to its right. */
  .process__step:nth-child(2n)::after { display: none; }
}

@media (max-width: 720px) {
  .process {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process__step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 22px;
    padding: 0 0 34px;
  }

  .process__step:last-child { padding-bottom: 0; }

  .process__num {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .process__title { align-self: center; margin-bottom: 8px; }

  .process__text { max-width: none; }

  /* Vertical rail joining one numeral to the next. */
  .process__step::after {
    top: 62px;
    bottom: 8px;
    left: 27px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(to bottom, rgba(5, 33, 125, .26), rgba(5, 33, 125, .08));
  }

  .process__step:nth-child(2n)::after { display: block; }
  .process__step:last-child::after { display: none; }
}

@media (max-width: 400px) {
  .process__step { grid-template-columns: 48px 1fr; column-gap: 16px; }
  .process__num { width: 48px; height: 48px; font-size: 15px; }
  .process__step::after { top: 54px; left: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .process__num { transition: none; }
  .process__step:hover .process__num { transform: none; }
}

/* ==========================================================================
   Testimonials — editorial rows

   The dedicated Testimonials page treatment. The list layout that suits the
   home page reads as an unstyled document when it is the whole page: quotes
   float in white space, the star ratings go unused, and a short quote leaves
   the row half empty. These panels give each quote containment and a focal
   point, and because each row is a single column of text there is no fixed
   height for a short quote to fail to fill.
   ========================================================================== */

.testimonials--editorial {
  position: relative;
  background:
    radial-gradient(52rem 24rem at 8% 0%, rgba(5, 33, 125, .05), transparent 62%),
    radial-gradient(44rem 22rem at 96% 100%, rgba(248, 105, 8, .06), transparent 60%),
    var(--lavender);
}

.testimonial-rows {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.testimonial--row {
  position: relative;
  display: grid;
  grid-template-columns: 168px 1fr;
  align-items: start;
  gap: 44px;
  margin: 0;
  padding: 44px 48px;
  background: #fff;
  border: 1px solid rgba(5, 33, 125, .08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(5, 33, 125, .06);
  overflow: hidden;
}

/* Mirror every second row so the page alternates rather than marching. */
.testimonial--row:nth-child(even) { grid-template-columns: 1fr 168px; }
.testimonial--row:nth-child(even) .testimonial__portrait { order: 2; }


/* ---------- portrait ------------------------------------------------------ */

.testimonial__portrait {
  position: relative;
  width: 168px;
  height: 168px;
}

.testimonial__portrait img {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 6px #fff,
    0 0 0 7px rgba(5, 33, 125, .14),
    0 14px 30px rgba(5, 33, 125, .16);
}

/* Fallback when a testimonial has no photo. */
.testimonial__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #0a3ab8);
  color: #fff;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 14px 30px rgba(5, 33, 125, .18);
}

/* ---------- body ---------------------------------------------------------- */

.testimonial--row .testimonial__body { position: relative; min-width: 0; }

.testimonial--row .testimonial__stars {
  margin-bottom: 18px;
  font-size: 16px;
  letter-spacing: 4px;
  line-height: 1;
  color: var(--orange);
}

.testimonial--row .testimonial__quote {
  margin: 0 0 26px;
  font-size: 17px;
  line-height: 1.8;
  color: #23232b;
}

.testimonial--row .testimonial__quote p { margin-bottom: 18px; }
.testimonial--row .testimonial__quote p:last-child { margin-bottom: 0; }

.testimonial__byline {
  position: relative;
  padding-top: 22px;
}

/* short accent rule above the attribution */
.testimonial__byline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
}

.testimonial--row .testimonial__name {
  display: block;
  margin-bottom: 2px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.testimonial--row .testimonial__role {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: #55555f;
}

/* ==========================================================================
   Editorial rows — responsive
   ========================================================================== */

@media (max-width: 860px) {
  .testimonial--row,
  .testimonial--row:nth-child(even) {
    grid-template-columns: 116px 1fr;
    gap: 28px;
    padding: 36px 32px;
  }

  .testimonial--row:nth-child(even) .testimonial__portrait { order: 0; }
  .testimonial--row:nth-child(even)::before { left: auto; right: 24px; }

  .testimonial__portrait { width: 116px; height: 116px; }
  .testimonial__initials { font-size: 34px; }
}

@media (max-width: 600px) {
  .testimonial--row,
  .testimonial--row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 24px;
  }

  .testimonial-rows { gap: 22px; }

  .testimonial__portrait { width: 96px; height: 96px; }
  .testimonial__initials { font-size: 30px; }

  .testimonial--row .testimonial__quote { font-size: 16px; line-height: 1.75; }
}

/* ==========================================================================
   Testimonials — section heading

   Title and intro share one centred block. Previously the intro carried an
   inline margin-top:-30px to claw back the title's large bottom margin, which
   collapsed into an overlap as soon as that margin changed.
   ========================================================================== */

.testimonials__head {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}

.testimonials__head .testimonials__title { margin-bottom: 0; }

.testimonials__intro {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.65;
  color: #45454f;
}

.testimonials__intro p:last-child { margin-bottom: 0; }

@media (max-width: 960px) {
  .testimonials__head { margin-bottom: 40px; }
  .testimonials__intro { font-size: 16.5px; }
}

/* ==========================================================================
   Testimonials — quote badge on the portrait

   Replaces the full-panel watermark. On a mirrored row the text column starts
   at the panel's top-left, which is exactly where a corner watermark sits, so
   it landed on top of the star rating. Anchoring the mark to the portrait
   instead keeps it clear of the copy whichever way the row faces.
   ========================================================================== */

.testimonial__portrait::after {
  content: "\201D";
  position: absolute;
  right: -2px;
  bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding-top: 16px;          /* the glyph sits high in its em box */
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(248, 105, 8, .34);
}

/* Point the badge inward on mirrored rows. */
.testimonial--row:nth-child(even) .testimonial__portrait::after {
  right: auto;
  left: -2px;
}

@media (max-width: 860px) {
  .testimonial__portrait::after {
    width: 36px;
    height: 36px;
    padding-top: 12px;
    font-size: 29px;
    bottom: 2px;
  }

  /* Rows stop mirroring at this width, so the badge returns to the right. */
  .testimonial--row:nth-child(even) .testimonial__portrait::after {
    right: -2px;
    left: auto;
  }
}

@media (max-width: 600px) {
  .testimonial__portrait::after {
    width: 32px;
    height: 32px;
    padding-top: 11px;
    font-size: 26px;
  }
}

/* ==========================================================================
   Contact Form 7

   The CF7 form template is authored with the theme's own row/grid classes and
   rendered inside .fs-form, so the input styling above already applies. What
   is left is CF7's own furniture: the control wrappers, submit input, spinner,
   validation tips and response bar.
   ========================================================================== */

.fs-form__heading {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.wpcf7 .hidden-fields-container { display: none; }

/* The wrapper CF7 puts round every control is a span; it has to fill the row. */
.fs-form .wpcf7-form-control-wrap { display: block; }

/* Submit is an <input>, not a <button>, so mirror the button rules. */
.fs-form input[type="submit"] {
  width: 100%;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  border: 2px solid #000;
  border-radius: 6px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.fs-form input[type="submit"]:hover { background: #d95a06; }
.fs-form input[type="submit"]:disabled { opacity: .6; cursor: default; }

/* ---------- validation ---------------------------------------------------- */

.fs-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #c0392b;
}

.fs-form .wpcf7-not-valid {
  border-color: #c0392b;
  background: #fffafa;
}

/* ---------- response bar -------------------------------------------------- */

.fs-form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 15px 18px;
  border: 0;
  border-left: 4px solid;
  border-radius: 5px;
  font-size: 15px;
  line-height: 1.6;
}

.fs-form form.sent .wpcf7-response-output {
  background: #e8f5ec;
  border-color: #2f8a4d;
  color: #1c5c33;
}

.fs-form form.invalid .wpcf7-response-output,
.fs-form form.unaccepted .wpcf7-response-output,
.fs-form form.payment-required .wpcf7-response-output {
  background: #fdecea;
  border-color: #c0392b;
  color: #8c2b20;
}

.fs-form form.failed .wpcf7-response-output,
.fs-form form.aborted .wpcf7-response-output,
.fs-form form.spam .wpcf7-response-output {
  background: #fdf3e6;
  border-color: var(--orange);
  color: #8a4b0c;
}

/* ---------- spinner ------------------------------------------------------- */

.fs-form .wpcf7-spinner {
  display: block;
  margin: 14px auto 0;
}

/* Small print sits outside the panel when a plugin renders the form. */
.fs-form__note--outside {
  margin: 14px 2px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}
