/*
Theme Name: Trusty Naked Classic
Theme URI: https://www.thetrustyhandyman.com.au/
Author: Custom rebuild starter
Description: A tiny classic WordPress starter theme for rebuilding The Trusty Handyman style site without legacy PHP baggage.
Version: 5.1.5
Requires at least: 6.8
Tested up to: 6.9
Requires PHP: 8.3
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trusty-naked-classic
*/

/*
 * Bebas Neue was used by the previous site.
 * Font files are deliberately not bundled here.
 * Copy your existing licensed files into assets/fonts/ if you want the exact original rendering:
 *   assets/fonts/bebasneueregular.woff
 *   assets/fonts/bebasneueregular.ttf
 */
@font-face {
  font-family: "BebasNeueRegular";
  src: url("assets/fonts/bebasneueregular.woff") format("woff"),
       url("assets/fonts/bebasneueregular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colours lifted from the old Retro theme defaults and tuned to the archived Trusty page. */
  --trusty-blue: #2475BC;
  --trusty-blue-dark: #1E5F99;
  --trusty-cream: #E2DDCD;
  --trusty-cream-warm: #EEE7D3;
  --trusty-cream-light: #FCFAF7;
  --trusty-ink: #383A3C;
  --trusty-muted: #5b5d5f;
  --trusty-red: #1E73BE;
  --trusty-rule: rgba(56, 58, 60, 0.24);
  --trusty-width: 1120px;
  --trusty-header-offset: 132px;
  --trusty-heading-font: "BebasNeueRegular", "Arial Narrow", "Arial Narrow Bold", Impact, Haettenschweiler, sans-serif;
  --trusty-body-font: "Roboto Slab", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--trusty-header-offset) + 18px);
}

body {
  margin: 0;
  color: var(--trusty-ink);
  background-color: var(--trusty-cream);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.28) 1px, transparent 0),
    radial-gradient(circle at 4px 5px, rgba(56,58,60,0.045) 1px, transparent 0),
    linear-gradient(90deg, rgba(255,255,255,0.16), rgba(0,0,0,0.025));
  background-size: 8px 8px, 11px 11px, 100% 100%;
  font-family: var(--trusty-body-font);
  font-size: 17px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 36px, rgba(255,255,255,0.14) 36px 37px, transparent 37px 74px),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(0,0,0,0.018) 48px 49px, transparent 49px 96px);
  opacity: 0.36;
  z-index: -1;
}

a { color: var(--trusty-blue-dark); }
a:hover, a:focus { color: #0e3f6c; }

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

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.trusty-wrap {
  width: min(var(--trusty-width), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--trusty-blue);
  color: var(--trusty-ink);
  border-bottom: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 2px 0 rgba(0,0,0,0.16);
  background-image:
    radial-gradient(circle at 2px 2px, rgba(255,255,255,0.18) 1px, transparent 0),
    radial-gradient(circle at 6px 5px, rgba(56,58,60,0.06) 1px, transparent 0),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(0,0,0,0.06));
  background-size: 8px 8px, 10px 10px, 100% 100%;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px dashed rgba(0,0,0,0.25);
  border-bottom: 1px dashed rgba(255,255,255,0.32);
  pointer-events: none;
}

.site-header::before { top: 10px; }
.site-header::after { bottom: 10px; }

.site-header__inner {
  min-height: var(--trusty-header-offset);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-branding {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.site-branding img,
.custom-logo {
  max-height: 96px;
  width: auto;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,0.16));
}

.site-title {
  margin: 0;
  font-family: var(--trusty-heading-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 1px 2px var(--trusty-cream-light), 3px 4px rgba(0,0,0,0.20);
}

.site-title a { color: var(--trusty-ink); text-decoration: none; }

.primary-nav {
  width: 100%;
  min-height: var(--trusty-header-offset);
  display: flex;
  align-items: center;
  justify-content: center;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 102px);
}

.primary-nav li:nth-child(2) { margin-right: clamp(130px, 18vw, 240px); }

.primary-nav a {
  color: var(--trusty-ink);
  text-decoration: none;
  font-family: var(--trusty-heading-font);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow: 1px 2px var(--trusty-cream-light), 3px 4px rgba(0,0,0,0.18);
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--trusty-cream-light);
}

.hero-portrait {
  padding: 42px 0 52px;
  border-bottom: 1px dashed var(--trusty-rule);
  background: rgba(246,237,216,0.38);
}

.hero-portrait__image {
  display: block;
  width: min(520px, 74vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
}

.trusty-section {
  padding: 68px 0;
  border-top: 1px dashed rgba(255,255,255,0.55);
  border-bottom: 1px dashed var(--trusty-rule);
  scroll-margin-top: calc(var(--trusty-header-offset) + 18px);
}

.trusty-section__header {
  text-align: center;
  margin-bottom: 42px;
}

.trusty-kicker {
  margin: 0;
  font-family: var(--trusty-heading-font);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--trusty-ink);
}

.trusty-heading {
  margin: 0;
  font-family: var(--trusty-heading-font);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
  font-size: clamp(3rem, 8vw, 5.2rem);
  color: var(--trusty-ink);
  text-transform: uppercase;
  text-shadow:
    1px 2px var(--trusty-cream-light),
    3px 4px #484A4D;
}

.trusty-flourish {
  margin: 12px 0 6px;
  font-family: var(--trusty-heading-font);
  letter-spacing: 0.16em;
}

.trusty-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 5vw, 64px);
}

.trusty-info-card { text-align: center; }

.trusty-icon {
  width: 152px;
  height: 152px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--trusty-red);
  border: 5px solid var(--trusty-cream-light);
  outline: 5px solid var(--trusty-red);
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);
  position: relative;
}

.trusty-icon span,
.trusty-icon span::before,
.trusty-icon span::after {
  content: "";
  position: absolute;
  display: block;
  border: 5px solid var(--trusty-cream-light);
}

.trusty-icon--who span {
  width: 48px;
  height: 64px;
  border-radius: 50%;
  top: 31px;
  left: 50%;
  transform: translateX(-50%);
}

.trusty-icon--who span::before {
  width: 86px;
  height: 38px;
  border-top-left-radius: 80px;
  border-top-right-radius: 80px;
  border-bottom: 0;
  left: 50%;
  top: 61px;
  transform: translateX(-50%);
}

.trusty-icon--what span {
  width: 58px;
  height: 76px;
  border-radius: 50% 50% 42% 42%;
  top: 27px;
  left: 50%;
  transform: translateX(-50%);
}

.trusty-icon--what span::before {
  width: 38px;
  height: 18px;
  border-top: 0;
  border-left-width: 4px;
  border-right-width: 4px;
  border-bottom-width: 5px;
  left: 50%;
  top: 62px;
  transform: translateX(-50%);
}

.trusty-icon--what span::after {
  width: 30px;
  height: 9px;
  border-top: 0;
  left: 50%;
  top: 82px;
  transform: translateX(-50%);
}

.trusty-icon--where span {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.trusty-icon--where span::before {
  inset: 10px 28px;
  border-top: 0;
  border-bottom: 0;
}

.trusty-icon--where span::after {
  width: 78px;
  height: 28px;
  border-left: 0;
  border-right: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.trusty-card-title {
  margin: 0 0 10px;
  font-family: var(--trusty-heading-font);
  text-transform: uppercase;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
}

.trusty-card-subtitle {
  margin: 0 0 12px;
  font-family: var(--trusty-heading-font);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.trusty-mini-rule {
  width: 48px;
  height: 3px;
  margin: 0 auto 16px;
  background: rgba(0,0,0,0.65);
}

.trusty-info-card p { text-align: left; }

.trusty-extra-content { margin-top: 48px; }

.trusty-services-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 28px;
}

.trusty-filter-button,
.trusty-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--trusty-red);
  color: var(--trusty-cream-light);
  font-family: var(--trusty-heading-font);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 1rem;
  line-height: 1;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 0 rgba(0,0,0,0.16);
}

.trusty-filter-button:hover,
.trusty-filter-button:focus,
.trusty-filter-button.is-active,
.trusty-button:hover,
.trusty-button:focus {
  background: #B7473A;
  color: var(--trusty-cream-light);
}

.trusty-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trusty-service-card {
  background: rgba(255,255,255,0.38);
  border: 1px dashed var(--trusty-rule);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset;
  overflow: hidden;
}

.trusty-service-card.is-hidden { display: none; }

.trusty-service-card__image,
.trusty-service-card__placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.trusty-service-card__placeholder {
  place-items: center;
  color: rgba(255,255,255,0.82);
  background: var(--trusty-blue);
  font-family: var(--trusty-heading-font);
  font-size: 4rem;
  text-decoration: none;
}

.trusty-service-card__body { padding: 14px; }

.trusty-service-card h3 {
  margin: 0 0 8px;
  font-family: var(--trusty-heading-font);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.trusty-service-card h3 a { text-decoration: none; }
.trusty-service-card p { margin-bottom: 0; }

.trusty-testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.trusty-testimonial {
  background: rgba(255,255,255,0.38);
  border: 1px dashed var(--trusty-rule);
  padding: 22px;
}

.trusty-testimonial h3 {
  margin-top: 0;
  font-family: var(--trusty-heading-font);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.trusty-testimonial__source {
  margin-bottom: 0;
  font-weight: 700;
}

.trusty-contact-box {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px;
  background: rgba(255,255,255,0.36);
  border: 1px dashed var(--trusty-rule);
}

.trusty-contact-box input,
.trusty-contact-box textarea,
.trusty-contact-box select {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(0,0,0,0.25);
  padding: 12px;
  font: inherit;
  background: var(--trusty-cream-light);
}

.trusty-contact-box button,
.trusty-contact-box input[type="submit"] {
  width: auto;
  border: 0;
  border-radius: 999px;
  background: var(--trusty-red);
  color: var(--trusty-cream-light);
  font-family: var(--trusty-heading-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 22px;
  cursor: pointer;
}

.site-footer {
  padding: 34px 0;
  background: #383A3C;
  color: rgba(255,255,255,0.82);
  text-align: center;
}

.site-footer a { color: #fff; }

@media (max-width: 980px) {
  :root { --trusty-header-offset: 118px; }
  .primary-nav li:nth-child(2) { margin-right: clamp(120px, 18vw, 190px); }
  .primary-nav ul { gap: 22px; }
}

@media (max-width: 820px) {
  :root { --trusty-header-offset: 0px; }
  html { scroll-padding-top: 0; }
  .site-header { position: static; }
  .site-header__inner {
    min-height: auto;
    padding: 16px 0 18px;
    flex-direction: column;
  }
  .site-branding {
    position: static;
    transform: none;
    margin-bottom: 14px;
  }
  .site-branding img,
  .custom-logo { max-height: 92px; }
  .primary-nav { min-height: auto; }
  .primary-nav ul { gap: 18px; flex-wrap: wrap; }
  .primary-nav li:nth-child(2) { margin-right: 0; }
  .trusty-section { scroll-margin-top: 0; }
  .trusty-columns,
  .trusty-testimonials { grid-template-columns: 1fr; }
  .trusty-service-grid { grid-template-columns: repeat(2, 1fr); }
  .trusty-info-card p { text-align: center; }
}

@media (max-width: 560px) {
  .trusty-wrap { width: min(100% - 28px, var(--trusty-width)); }
  .primary-nav a { font-size: 1.25rem; }
  .hero-portrait { padding-block: 26px; }
  .trusty-section { padding-block: 48px; }
  .trusty-heading { font-size: clamp(2.7rem, 16vw, 4.2rem); }
  .trusty-service-grid { grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   Trusty archive-match pass v0.4.0
   --------------------------------------------------------------------------
   These values were tuned from the archived screenshot:
   header/icon blue around #2475BC, paper background around #E2DDCD,
   and old Retro-style repeated grain texture.

   Optional local assets you can copy into this theme:
   - Retro-4/images/grain.png        -> assets/images/grain.png
   - your Trusty logo PNG/SVG        -> set in Appearance > Customize > Site Identity
   - BebasNeueRegular font files     -> assets/fonts/ (already referenced above)
*/

body,
.hero-portrait,
.trusty-section {
  background-color: var(--trusty-cream);
  background-image:
    url("assets/images/grain.png"),
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.18) 1px, transparent 0),
    radial-gradient(circle at 5px 6px, rgba(56,58,60,0.035) 1px, transparent 0);
  background-repeat: repeat, repeat, repeat;
  background-size: auto, 8px 8px, 11px 11px;
}

.site-header {
  background-color: var(--trusty-blue);
  background-image:
    url("assets/images/grain.png"),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.06));
  background-repeat: repeat, repeat;
  background-size: auto, 100% 100%;
}

.site-branding img,
.custom-logo {
  max-height: 104px;
  width: auto;
}

.primary-nav a,
.site-title {
  color: #F9F1DD;
  text-shadow: 1px 2px rgba(56,58,60,0.55), 3px 4px rgba(0,0,0,0.18);
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: #ffffff;
}

.trusty-heading {
  text-shadow: 1px 2px #FCFAF7, 3px 4px #484A4D;
}

.trusty-icon {
  background: var(--trusty-blue);
  outline-color: var(--trusty-blue);
  border-color: #F5EEE3;
  box-shadow:
    inset 0 0 0 4px var(--trusty-blue),
    inset 0 0 0 8px #F5EEE3,
    0 2px 0 rgba(0,0,0,0.15);
}

.trusty-icon span,
.trusty-icon span::before,
.trusty-icon span::after {
  border-color: #F5EEE3;
}

.trusty-filter-button,
.trusty-button {
  background: var(--trusty-blue);
}

.trusty-filter-button:hover,
.trusty-filter-button:focus,
.trusty-filter-button.is-active,
.trusty-button:hover,
.trusty-button:focus {
  background: #1A5F9C;
}

/*
 * Retro icon font support.
 * Copy these from your old theme into assets/fonts/ if you want the original icon look:
 *   assets/fonts/retro-icons.eot
 *   assets/fonts/retro-icons.svg
 *   assets/fonts/retro-icons.ttf
 *   assets/fonts/retro-icons.woff
 */
@font-face {
  font-family: "retro-icons";
  src: url("assets/fonts/retro-icons.eot");
  src: url("assets/fonts/retro-icons.eot?#iefix") format("embedded-opentype"),
       url("assets/fonts/retro-icons.woff") format("woff"),
       url("assets/fonts/retro-icons.ttf") format("truetype"),
       url("assets/fonts/retro-icons.svg#retro-icons") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

[data-icon]::before {
  font-family: "retro-icons";
  content: attr(data-icon);
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  speak: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[class^="retroicon-"]::before,
[class*=" retroicon-"]::before {
  font-family: "retro-icons" !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  speak: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.retroicon-bulb::before { content: "\63"; }
.retroicon-user::before { content: "\52"; }
.retroicon-world::before { content: "\56"; }

/* Override earlier CSS-drawn icons so the About section uses the original icon treatment. */
.trusty-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 110px;
  height: 110px;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: var(--trusty-cream-light);
  background-color: var(--trusty-blue);
  box-shadow: inset 0 0 0 4px var(--trusty-blue), inset 0 0 0 8px var(--trusty-cream-light);
}

.trusty-icon .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  font-size: 48px;
  line-height: 1;
}

.trusty-icon .icon::before {
  display: block;
}

.trusty-service-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.trusty-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(36,117,188,0.22);
  background: rgba(255,255,255,0.55);
  color: var(--trusty-blue-dark);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--trusty-heading-font);
}

.trusty-service-card__meta {
  margin: 0 0 10px;
  color: var(--trusty-muted);
  font-size: 13px;
}

/* v0.6.0 services section closer to the original Retro portfolio layout */
.retroicon-photo::before { content: "\45"; }

.trusty-services-filter {
  justify-content: flex-start;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 24px;
}

.trusty-filter-label {
  font-size: 18px;
  line-height: 1.2;
  margin-right: 6px;
}

.trusty-filter-button,
.trusty-reset-link {
  appearance: none;
  border: 0;
  position: relative;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  padding: 6px 10px 6px 14px;
  margin-left: 12px;
  color: var(--trusty-ink);
  background-color: var(--trusty-cream-light);
  text-decoration: none;
  cursor: pointer;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  box-shadow: 1px 1px 1px rgba(0,0,0,0.2);
  font-family: var(--trusty-body-font);
  letter-spacing: 0;
  text-transform: none;
}

.trusty-filter-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -12px;
  width: 0;
  height: 0;
  border-color: transparent var(--trusty-cream-light) transparent transparent;
  border-style: solid;
  border-width: 12px 12px 12px 0;
}

.trusty-filter-button::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 1px;
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: #959ca3;
}

.trusty-filter-button:hover,
.trusty-filter-button:focus,
.trusty-filter-button.is-active {
  background: var(--trusty-ink);
  color: var(--trusty-cream-light);
}

.trusty-filter-button:hover::before,
.trusty-filter-button:focus::before,
.trusty-filter-button.is-active::before {
  border-color: transparent var(--trusty-ink) transparent transparent;
}

.trusty-filter-button:hover::after,
.trusty-filter-button:focus::after,
.trusty-filter-button.is-active::after {
  background: rgba(255,255,255,0.72);
}

.trusty-service-grid--retro {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.trusty-service-card--retro {
  overflow: visible;
  background: none;
  border: 0;
  box-shadow: none;
}

.trusty-service-card__link {
  display: block;
  border: 4px solid var(--trusty-cream-light);
  background-color: var(--trusty-cream-light);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  color: var(--trusty-ink);
  text-decoration: none;
}

.trusty-service-card__link:hover .trusty-service-card__icon,
.trusty-service-card__link:focus .trusty-service-card__icon {
  transform: translateY(-5px);
}

.trusty-service-card--retro .trusty-service-card__image,
.trusty-service-card--retro .trusty-service-card__placeholder {
  aspect-ratio: 4 / 3;
}

.trusty-service-card--retro .trusty-service-card__placeholder {
  background: linear-gradient(180deg, #91b7d7, var(--trusty-blue));
}

.trusty-service-card__icon {
  position: relative;
  top: -18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--trusty-cream-light);
  color: #828c8e;
  font-size: 24px;
  line-height: 1;
  transition: transform 0.2s ease;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}

.trusty-service-card--retro h3 {
  margin: -8px 10px 14px;
  font-family: var(--trusty-body-font);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: center;
  min-height: 32px;
}

.more-posts--services {
  text-align: center;
  margin-top: 22px;
}

.trusty-reset-link {
  background: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
  font-family: var(--trusty-heading-font);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.trusty-reset-link::before,
.trusty-reset-link::after {
  content: none;
}

.trusty-reset-link:hover,
.trusty-reset-link:focus {
  color: var(--trusty-blue-dark);
  background: none;
}

.trusty-reset-link {
  position: relative;
}

.trusty-reset-link::marker { content: none; }

.trusty-reset-link span { pointer-events: none; }

.trusty-reset-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  width: 100%;
  height: 2px;
  background: var(--trusty-ink);
  transform: scaleX(0.6);
  transition: transform 0.3s ease;
}

.trusty-reset-link:hover::before,
.trusty-reset-link:focus::before {
  transform: scaleX(1);
}

@media (max-width: 980px) {
  .trusty-service-grid--retro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .trusty-services-filter {
    gap: 6px 8px;
  }

  .trusty-filter-label {
    width: 100%;
    margin-bottom: 4px;
  }

  .trusty-service-grid--retro {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Trusty archive-match pass v0.6.0: Services section
   --------------------------------------------------------------------------
   Makes Services match the old Retro portfolio treatment more closely:
   tag-shaped filters, white image cards, small icon badge, small uppercase titles,
   and a centred Browse All control.
*/

.retroicon-photo::before { content: "\45"; }
.retroicon-note::before { content: "\6e"; }
.retroicon-gallery::before { content: "\39"; }
.retroicon-clip::before { content: "\66"; }

.trusty-services-filter {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  width: min(960px, 100%);
  margin: 0 auto 22px;
  text-align: left;
}

.trusty-filter-label {
  flex: 0 0 auto;
  margin: 2px 10px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--trusty-ink);
}

.trusty-filter-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 8px;
}

.trusty-filter-button {
  appearance: none;
  position: relative;
  border: 0;
  border-radius: 0 3px 3px 0;
  margin: 0 6px 4px 12px;
  padding: 4px 8px 4px 12px;
  background-color: #FCFAF7;
  color: #383A3C !important;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  box-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.trusty-filter-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -12px;
  width: 0;
  height: 0;
  border-color: transparent #FCFAF7 transparent transparent;
  border-style: solid;
  border-width: 12px 12px 12px 0;
}

.trusty-filter-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #959CA3;
}

.trusty-filter-button:hover,
.trusty-filter-button:focus,
.trusty-filter-button.is-active,
.trusty-filter-button.active {
  background-color: #383A3C;
  color: #FCFAF7 !important;
}

.trusty-filter-button:hover::before,
.trusty-filter-button:focus::before,
.trusty-filter-button.is-active::before,
.trusty-filter-button.active::before {
  border-right-color: #383A3C;
}

.trusty-service-grid {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.trusty-service-card {
  display: block;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.trusty-service-card.is-hidden {
  display: none;
}

.trusty-service-card__link {
  display: block;
  min-height: 100%;
  padding: 4px 4px 10px;
  border: 0;
  border-radius: 3px;
  background-color: #FCFAF7;
  color: #383A3C !important;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.trusty-service-card__image,
.trusty-service-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 1px;
}

.trusty-service-card__placeholder {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.82);
  background: var(--trusty-blue);
  font-family: var(--trusty-heading-font);
  font-size: 4rem;
}

.trusty-service-card__icon {
  position: relative;
  top: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 50%;
  color: #828C8E;
  background-color: #FCFAF7;
  font-size: 24px;
  line-height: 1;
  text-align: center;
  transition: top 0.2s ease;
}

.trusty-service-card__link:hover .trusty-service-card__icon,
.trusty-service-card__link:focus .trusty-service-card__icon {
  top: -25px;
}

.trusty-service-card h3 {
  position: relative;
  margin: -24px 6px 0;
  color: #383A3C !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.trusty-service-card h3 a {
  color: inherit;
  text-decoration: none;
}

.trusty-service-card__body,
.trusty-service-card__excerpt,
.trusty-service-card__chips,
.trusty-service-card__meta {
  display: none;
}

.trusty-services-browse-all {
  width: min(960px, 100%);
  margin: 26px auto 0;
  text-align: center;
}

.trusty-services-browse-all button {
  appearance: none;
  position: relative;
  border: 0;
  background: transparent;
  color: #383A3C;
  cursor: pointer;
  font-family: var(--trusty-heading-font);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.trusty-services-browse-all button::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 120%;
  width: 100%;
  height: 2px;
  background: #383A3C;
  transform: scaleX(0.6);
  transition: transform 0.3s;
}

.trusty-services-browse-all button:hover::before,
.trusty-services-browse-all button:focus::before {
  transform: scaleX(1);
}

@media (max-width: 900px) {
  .trusty-services-filter {
    display: block;
    text-align: center;
  }

  .trusty-filter-label {
    display: block;
    margin: 0 0 10px;
  }

  .trusty-filter-tags {
    justify-content: center;
  }

  .trusty-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .trusty-service-grid {
    grid-template-columns: 1fr;
  }
}


/* v5.1.1 — full Retro icon mapping for WordPress-editable homepage icons. */
.retroicon-banknote::before {
  content: "\61";
}
.retroicon-bubble::before {
  content: "\62";
}
.retroicon-bulb::before {
  content: "\63";
}
.retroicon-calendar::before {
  content: "\64";
}
.retroicon-camera::before {
  content: "\65";
}
.retroicon-clip::before {
  content: "\66";
}
.retroicon-clock::before {
  content: "\67";
}
.retroicon-cloud::before {
  content: "\68";
}
.retroicon-cup::before {
  content: "\69";
}
.retroicon-data::before {
  content: "\6a";
}
.retroicon-diamond::before {
  content: "\6b";
}
.retroicon-display::before {
  content: "\6c";
}
.retroicon-eye::before {
  content: "\6d";
}
.retroicon-note::before {
  content: "\6e";
}
.retroicon-news::before {
  content: "\6f";
}
.retroicon-megaphone::before {
  content: "\70";
}
.retroicon-music::before {
  content: "\71";
}
.retroicon-mail::before {
  content: "\72";
}
.retroicon-lock::before {
  content: "\73";
}
.retroicon-location::before {
  content: "\74";
}
.retroicon-like::before {
  content: "\75";
}
.retroicon-lab::before {
  content: "\76";
}
.retroicon-key::before {
  content: "\77";
}
.retroicon-heart::before {
  content: "\78";
}
.retroicon-food::before {
  content: "\79";
}
.retroicon-fire::before {
  content: "\7a";
}
.retroicon-paperplane::before {
  content: "\41";
}
.retroicon-params::before {
  content: "\42";
}
.retroicon-pen::before {
  content: "\43";
}
.retroicon-phone::before {
  content: "\44";
}
.retroicon-photo::before {
  content: "\45";
}
.retroicon-search::before {
  content: "\46";
}
.retroicon-settings::before {
  content: "\47";
}
.retroicon-shop::before {
  content: "\48";
}
.retroicon-sound::before {
  content: "\49";
}
.retroicon-stack::before {
  content: "\4a";
}
.retroicon-star::before {
  content: "\4b";
}
.retroicon-study::before {
  content: "\4c";
}
.retroicon-t-shirt::before {
  content: "\4d";
}
.retroicon-tag::before {
  content: "\4e";
}
.retroicon-trash::before {
  content: "\4f";
}
.retroicon-truck::before {
  content: "\50";
}
.retroicon-tv::before {
  content: "\51";
}
.retroicon-user::before {
  content: "\52";
}
.retroicon-vallet::before {
  content: "\53";
}
.retroicon-video::before {
  content: "\54";
}
.retroicon-vynil::before {
  content: "\55";
}
.retroicon-world::before {
  content: "\56";
}
.retroicon-twitter::before {
  content: "\57";
}
.retroicon-skype::before {
  content: "\58";
}
.retroicon-dribbble::before {
  content: "\59";
}
.retroicon-tumblr::before {
  content: "\5a";
}
.retroicon-dropbox::before {
  content: "\30";
}
.retroicon-flickr::before {
  content: "\31";
}
.retroicon-youtube::before {
  content: "\33";
}
.retroicon-linkedin::before {
  content: "\34";
}
.retroicon-gplus::before {
  content: "\35";
}
.retroicon-pinterest::before {
  content: "\36";
}
.retroicon-instagram::before {
  content: "\37";
}
.retroicon-email::before {
  content: "\38";
}
.retroicon-github-1::before {
  content: "\39";
}
.retroicon-facebook::before {
  content: "\22";
}
.retroicon-chevron-left::before {
  content: "\32";
}
.retroicon-chevron-right::before {
  content: "\21";
}
.retroicon-folder::before {
  content: "\25";
}
.retroicon-gallery::before {
  content: "\23";
}
.retroicon-alert::before {
  content: "\24";
}
.retroicon-prohibited::before {
  content: "\26";
}
.retroicon-behance::before {
  content: "\27";
}
.retroicon-vimeo::before {
  content: "\28";
}

/* v5.1.1 — original-style section separators: dashed / solid / dashed. */
.trusty-section {
  position: relative;
  border-top: 0;
  border-bottom: 1px solid rgba(0,0,0,0.20);
  padding-block: 76px;
}

.trusty-section::before,
.trusty-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px dashed rgba(0,0,0,0.25);
  border-bottom: 1px dashed rgba(255,255,255,0.25);
  pointer-events: none;
  z-index: 0;
}

.trusty-section::before { top: 10px; }
.trusty-section::after { bottom: 10px; }

.trusty-section > .trusty-wrap {
  position: relative;
  z-index: 1;
}

.trusty-card-content p:first-child { margin-top: 0; }
.trusty-card-content p:last-child { margin-bottom: 0; }

/* v5.1.2 About card icon fixes
 * The early rebuild had CSS-drawn icon placeholder rules targeting `.trusty-icon span`.
 * The real editable Retro icons now use an <i> element and these final rules ensure
 * the chosen icon is displayed and the About subtitles stay centred.
 */
.trusty-info-card .trusty-card-subtitle {
  text-align: center;
}

.trusty-icon .icon {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--trusty-cream-light);
  font-family: "retro-icons" !important;
  font-size: 52px;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.trusty-icon .icon::before {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

.trusty-icon .icon::after {
  content: none !important;
  display: none !important;
}

/* v5.1.3 Service YouTube lightbox */
.trusty-video-trigger {
  cursor: pointer;
}

.trusty-video-modal[hidden] {
  display: none;
}

.trusty-video-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.trusty-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.trusty-video-modal__dialog {
  position: relative;
  width: min(960px, calc(100vw - 48px));
  background: var(--trusty-cream-light);
  border: 4px solid var(--trusty-cream-light);
  border-radius: 4px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.45);
  padding: 18px;
}

.trusty-video-modal__close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  border: 3px solid var(--trusty-cream-light);
  border-radius: 50%;
  background: var(--trusty-ink);
  color: var(--trusty-cream-light);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 3px rgba(0,0,0,0.3);
}

.trusty-video-modal__title {
  margin: 0 42px 12px 0;
  font-family: var(--trusty-heading-font);
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--trusty-ink);
}

.trusty-video-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.trusty-video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.trusty-video-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .trusty-video-modal {
    padding: 14px;
  }

  .trusty-video-modal__dialog {
    width: calc(100vw - 28px);
    padding: 12px;
  }

  .trusty-video-modal__title {
    font-size: 1.45rem;
  }
}
