/*
Theme Name: Service Tools Report
Theme URI: https://servicetoolsreport.com/
Author: Service Tools Report
Author URI: https://servicetoolsreport.com/
Description: A fast, accessible editorial theme for independent software coverage of very small service businesses.
Version: 1.2.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: service-tools-report
*/

:root {
  --str-ink: #172226;
  --str-muted: #5b696d;
  --str-paper: #ffffff;
  --str-canvas: #f5f3ed;
  --str-navy: #12364a;
  --str-teal: #08766e;
  --str-teal-dark: #075c56;
  --str-sand: #e8deca;
  --str-line: #d8dfdf;
  --str-focus: #f2a900;
  --str-radius: 0.75rem;
  --str-shadow: 0 12px 35px rgba(18, 54, 74, 0.08);
  --str-content: 46rem;
  --str-wide: 74rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--str-ink);
  background: var(--str-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--str-teal-dark); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--str-navy); }
:focus-visible { outline: 3px solid var(--str-focus); outline-offset: 3px; }

.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;
}
.screen-reader-text:focus { position: fixed; top: 1rem; left: 1rem; z-index: 9999; width: auto; height: auto; clip: auto; padding: 0.75rem 1rem; background: #fff; }

.str-wrap { width: min(calc(100% - 2rem), var(--str-wide)); margin-inline: auto; }
.str-reading { width: min(calc(100% - 2rem), var(--str-content)); margin-inline: auto; }
.str-section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.str-section--soft { background: var(--str-canvas); }
.str-section--dark { color: #fff; background: var(--str-navy); }
.str-section__head { max-width: 43rem; margin-bottom: 2rem; }
.str-section__head p { color: var(--str-muted); }
.str-section--dark .str-section__head p { color: #d7e3e6; }
.str-eyebrow { margin: 0 0 0.6rem; color: var(--str-teal-dark); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.str-section--dark .str-eyebrow { color: #7ed6cb; }
h1, h2, h3, h4 { color: var(--str-navy); font-family: Georgia, "Times New Roman", serif; line-height: 1.12; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin: 0 0 1rem; }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); margin: 0 0 0.65rem; }
.str-section--dark h2, .str-section--dark h3 { color: #fff; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--str-line); background: rgba(255,255,255,0.97); }
.site-header__inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-brand { display: inline-flex; align-items: center; gap: 0.7rem; min-height: 2.75rem; color: var(--str-navy); font-weight: 850; text-decoration: none; letter-spacing: -0.02em; }
.site-brand__mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; color: #fff; background: var(--str-teal); font-family: Georgia, serif; font-size: 1.25rem; }
.site-nav ul { display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding-block: 1.65rem; color: var(--str-ink); font-size: 0.92rem; font-weight: 720; text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { color: var(--str-teal-dark); }
.site-nav .sub-menu { position: absolute; top: calc(100% - 0.55rem); left: -1rem; display: none; min-width: 17rem; padding: 0.6rem; border: 1px solid var(--str-line); border-radius: 0.55rem; background: #fff; box-shadow: var(--str-shadow); }
.site-nav .sub-menu a { padding: 0.65rem 0.75rem; border-radius: 0.35rem; font-weight: 620; }
.site-nav .sub-menu a:hover { background: var(--str-canvas); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
.menu-toggle { display: none; min-width: 2.75rem; min-height: 2.75rem; border: 1px solid var(--str-line); border-radius: 0.4rem; color: var(--str-ink); background: #fff; font: inherit; font-weight: 750; cursor: pointer; }

.str-hero { overflow: hidden; background: linear-gradient(140deg, #f6f3eb 0%, #fff 58%, #e9f5f3 100%); }
.str-hero__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.65fr); align-items: center; gap: clamp(3rem, 8vw, 7rem); min-height: 38rem; padding-block: clamp(4rem, 9vw, 8rem); }
.str-hero__copy { max-width: 49rem; }
.str-hero__copy > p:not(.str-eyebrow) { max-width: 42rem; color: var(--str-muted); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.str-hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.str-button, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.7rem 1.1rem; border: 2px solid var(--str-teal); border-radius: 0.38rem; color: #fff; background: var(--str-teal); font-size: 0.95rem; font-weight: 780; line-height: 1.2; text-decoration: none; }
.str-button:hover, .wp-block-button__link:hover { border-color: var(--str-teal-dark); color: #fff; background: var(--str-teal-dark); }
.str-button--secondary { color: var(--str-navy); background: transparent; border-color: var(--str-navy); }
.str-button--secondary:hover { color: #fff; background: var(--str-navy); }
.str-hero__visual { position: relative; display: grid; gap: 0.75rem; padding: 1.25rem; border: 1px solid rgba(18,54,74,.13); border-radius: 1rem; background: rgba(255,255,255,.78); box-shadow: var(--str-shadow); }
.str-hero__visual::before { content: "A practical fit check"; color: var(--str-muted); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.str-fit-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.95rem; border-radius: 0.55rem; background: #fff; box-shadow: 0 2px 12px rgba(18,54,74,.06); }
.str-fit-row strong { display: block; color: var(--str-navy); font-size: 0.95rem; }
.str-fit-row span:last-child { display: block; color: var(--str-muted); font-size: 0.8rem; }
.str-fit-icon { flex: 0 0 auto; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; color: var(--str-teal-dark); background: #dff1ee; font-weight: 850; }

.str-grid { display: grid; gap: 1.15rem; }
.str-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.str-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.str-card { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 1.45rem; border: 1px solid var(--str-line); border-radius: var(--str-radius); background: #fff; box-shadow: 0 1px 0 rgba(18,54,74,.03); }
.str-card:hover { border-color: #aebebe; box-shadow: var(--str-shadow); transform: translateY(-2px); transition: .18s ease; }
.str-card p { margin: 0 0 1rem; color: var(--str-muted); font-size: 0.95rem; }
.str-card__link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: auto; font-weight: 780; }
.str-card__link::after { content: " →"; }
.str-card__icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; margin-bottom: 1rem; border-radius: 0.55rem; color: var(--str-teal-dark); background: #e5f3f1; font-weight: 850; }
.str-card__meta { margin-bottom: 0.7rem; color: var(--str-teal-dark); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.str-evaluation { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.str-score-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: score; }
.str-score-list li { padding: 1.2rem; border-top: 3px solid var(--str-teal); background: #fff; box-shadow: var(--str-shadow); }
.str-score-list strong { display: block; margin-bottom: 0.25rem; color: var(--str-navy); }
.str-score-list span { color: var(--str-muted); font-size: 0.9rem; }
.str-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.str-trust-item { padding-left: 1.1rem; border-left: 3px solid #7ed6cb; }
.str-trust-item p { margin: 0; color: #d7e3e6; font-size: 0.94rem; }
.str-disclosure { padding: 1rem 1.1rem; border-left: 4px solid var(--str-focus); color: #56420a; background: #fff8dc; font-size: 0.9rem; }

.str-page-hero { padding-block: clamp(3rem, 7vw, 6rem); background: var(--str-canvas); border-bottom: 1px solid var(--str-line); }
.str-page-hero h1 { max-width: 55rem; font-size: clamp(2.4rem, 5vw, 4.25rem); }
.str-page-hero p { max-width: 43rem; color: var(--str-muted); font-size: 1.2rem; }
.str-content { padding-block: clamp(3rem, 7vw, 6rem); }
.str-entry > * { width: min(calc(100% - 2rem), var(--str-content)); max-width: var(--str-content); margin-inline: auto; }
.str-entry > .alignwide { width: min(calc(100% - 2rem), var(--str-wide)); max-width: var(--str-wide); }
.str-entry > .alignfull { width: 100%; max-width: none; }
.str-entry h2 { margin-top: 2.6rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.str-entry h3 { margin-top: 2rem; }
.str-entry p, .str-entry li { overflow-wrap: break-word; }
.str-entry a { overflow-wrap: anywhere; }
.str-entry li + li { margin-top: 0.42rem; }
.str-entry table { width: 100%; min-width: 44rem; border-collapse: collapse; font-size: 0.93rem; }
.str-entry th, .str-entry td { padding: 0.8rem; border: 1px solid var(--str-line); text-align: left; vertical-align: top; }
.str-entry th { color: var(--str-navy); background: var(--str-canvas); }
.wp-block-table { display: block; margin-block: 1.5rem; padding-bottom: 0.35rem; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.str-entry pre { max-width: 100%; overflow-x: auto; }
.str-breadcrumbs { padding-block: 0.85rem; color: var(--str-muted); font-size: 0.82rem; }
.str-breadcrumbs a { color: inherit; }
.str-post-meta { color: var(--str-muted); font-size: 0.88rem; }
.str-post-list { display: grid; gap: 1rem; }
.str-post-card { padding: 1.4rem; border: 1px solid var(--str-line); border-radius: var(--str-radius); }
.str-post-card h2 { margin: 0 0 0.55rem; font-size: 1.55rem; }
.str-post-card p { color: var(--str-muted); }
.str-pagination { margin-top: 2rem; }

.site-footer { color: #d7e3e6; background: #0d2938; }
.site-footer__main { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; padding-block: 4rem; }
.site-footer .site-brand { color: #fff; }
.site-footer p { max-width: 36rem; font-size: 0.92rem; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 2rem; margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #fff; font-size: 0.9rem; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.site-footer__bottom { padding-block: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); font-size: 0.8rem; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; max-height: calc(100vh - 5rem); overflow-y: auto; padding: 0.5rem 1rem 1.25rem; border-bottom: 1px solid var(--str-line); background: #fff; }
  .site-nav.is-open { display: block; }
  .site-nav ul, .site-nav .sub-menu { position: static; display: block; min-width: 0; padding: 0; border: 0; box-shadow: none; }
  .site-nav .sub-menu { padding-left: 1rem; }
  .site-nav a, .site-nav .sub-menu a { min-height: 2.75rem; padding: 0.7rem 0.4rem; border-bottom: 1px solid #edf0f0; }
  .str-hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .str-hero__visual { max-width: 34rem; }
  .str-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .str-wrap, .str-reading { width: min(calc(100% - 1.25rem), var(--str-wide)); }
  .str-entry > *, .str-entry > .alignwide { width: min(calc(100% - 1.25rem), var(--str-wide)); }
  .str-page-hero { padding-block: 2.75rem; }
  .str-page-hero h1 { font-size: clamp(2rem, 9vw, 2.65rem); }
  .str-page-hero p { font-size: 1.05rem; }
  .str-entry h2 { font-size: clamp(1.65rem, 8vw, 2.15rem); }
  .str-entry h3 { font-size: clamp(1.25rem, 6vw, 1.5rem); }
  .str-entry table { min-width: 42rem; font-size: 0.88rem; }
  .str-entry th, .str-entry td { padding: 0.68rem; }
  .str-disclosure { padding: 0.9rem; }
  .str-grid--3, .str-grid--4, .str-evaluation, .str-trust-grid, .site-footer__main { grid-template-columns: 1fr; }
  .str-score-list { grid-template-columns: 1fr; }
  .str-hero__inner { gap: 2.5rem; padding-block: 4rem; }
  .str-hero__actions { align-items: stretch; flex-direction: column; }
  .str-button { width: 100%; }
  .site-footer__main { gap: 2.5rem; padding-block: 3rem; }
  .footer-nav ul { gap: 0.3rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .str-breadcrumbs { display: none; }
  a { color: inherit; text-decoration: underline; }
}
