/*
Theme Name: Softcare Business
Theme URI: https://www.softcarebusiness.com/
Author: Softcare Business
Description: Editorial theme for independent email-tool guides.
Version: 1.0.1
Text Domain: softcare
*/

:root {
  --ink: #172033;
  --muted: #5c6b7c;
  --paper: #f4f7f8;
  --card: #ffffff;
  --line: #d5e0e6;
  --navy: #102033;
  --teal: #0c7c74;
  --teal-deep: #085850;
  --amber: #c98412;
  --serif: "Newsreader", "Iowan Old Style", Palatino, serif;
  --sans: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.skip, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 80; }

.topline { background: var(--navy); color: #c5d2de; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.topline .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topline strong { color: #fff; font-weight: 650; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.bar { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: max-content; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: var(--teal); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 650; font-size: 22px; }
.brand-name { font-family: var(--serif); font-size: 22px; letter-spacing: -0.03em; }
.brand-name span { color: var(--teal); }
.nav { display: flex; gap: 18px; margin-left: 8px; }
.nav a { font-size: 14px; font-weight: 650; color: #314155; }
.nav a[aria-current="page"], .nav a:hover { color: var(--teal-deep); }
.search { margin-left: auto; display: flex; }
.search input { width: 180px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; }
.search input:focus { outline: 2px solid #b7e0db; border-color: var(--teal); }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; width: 42px; height: 42px; border-radius: 8px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 650; }

.hero { display: grid; grid-template-columns: 1.45fr 0.9fr; gap: 22px; padding: 28px 0 8px; }
.lead { position: relative; min-height: 460px; background: var(--navy); color: #fff; overflow: hidden; border-radius: 18px; }
.lead img, .lead .ph { width: 100%; height: 460px; object-fit: cover; }
.lead img { opacity: 0.82; }
.lead-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; background: linear-gradient(180deg, transparent, rgba(16, 32, 51, 0.94) 70%); }
.kicker { display: inline-block; background: var(--amber); color: #1b1404; font-size: 11px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; margin-bottom: 10px; }
.lead h1 { font-size: clamp(32px, 4vw, 48px); }
.lead h1 a, .lead h1 a:hover { color: #fff; }
.lead p { margin: 12px 0 0; color: #d5e0ea; max-width: 46ch; }
.stack { display: grid; gap: 12px; }
.stack a { display: grid; grid-template-columns: 108px 1fr; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.stack img, .stack .ph { width: 108px; height: 84px; object-fit: cover; border-radius: 8px; }
.stack h3 { font-size: 18px; }
.meta { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }

.bench { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 14px; padding: 22px 0 8px; }
.bench-intro, .bench article { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 18px; }
.bench-intro { background: var(--teal-deep); color: #e7f6f4; }
.bench-intro p { margin: 8px 0 0; }
.bench strong { display: block; font-size: 15px; margin-bottom: 4px; }
.bench p { margin: 0; color: var(--muted); font-size: 14px; }
.bench-intro p { color: #d7efec; font-size: 15px; }

.section { padding: 22px 0 10px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: 32px; }
.section-head a { color: var(--teal-deep); font-weight: 700; font-size: 14px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cats a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 650; }
.cats a:hover, .cats a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.card img, .card .ph { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 22px; }
.card h3 a:hover { color: var(--teal-deep); }
.ph { background: linear-gradient(145deg, #d7ebe8, #e7eef2); }

.page-hero { padding: 34px 0 12px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); max-width: 18ch; }
.lede { max-width: 62ch; color: #314155; margin-top: 10px; }

.layout { display: grid; grid-template-columns: minmax(0, 740px) 280px; gap: 42px; padding-bottom: 64px; }
.article-hero { border-radius: 16px; overflow: hidden; margin: 8px 0 22px; background: #dfe7ec; }
.article-hero img { width: 100%; max-height: 460px; object-fit: cover; }
.entry h2, .page-copy h2 { font-size: 30px; margin: 1.4em 0 0.4em; }
.entry h3, .page-copy h3 { font-size: 23px; margin: 1.2em 0 0.35em; }
.entry p, .page-copy p { margin: 0.8em 0; }
.entry a, .page-copy a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.entry ul, .entry ol, .page-copy ul, .page-copy ol { padding-left: 1.2em; }
.entry li, .page-copy li { margin: 0.35em 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.3em 0; font-size: 15px; background: #fff; }
.entry th { background: var(--navy); color: #fff; text-align: left; padding: 10px 12px; font-family: var(--sans); font-weight: 650; }
.entry td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry tr:nth-child(even) td { background: #f7fbfb; }
.entry { overflow-x: auto; }
.aside { position: sticky; top: 96px; align-self: start; }
.aside h2 { font-size: 22px; margin-bottom: 10px; }
.aside a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 650; }
.aside a:hover { color: var(--teal-deep); }

.page-copy { max-width: 760px; padding-bottom: 56px; }
.page-copy small { color: var(--muted); }

.pager { display: flex; gap: 16px; justify-content: space-between; padding: 22px 0 48px; font-weight: 700; }
.pager a { color: var(--teal-deep); }

.site-footer { background: var(--navy); color: #d5e0ea; margin-top: 28px; padding-top: 36px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h2 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.site-footer a { display: block; color: #d5e0ea; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0; color: #b7c6d4; }
.copy { border-top: 1px solid #24384d; margin-top: 22px; padding: 14px 0 18px; color: #8ea0b3; font-size: 13px; }
.fleet-reader-links { display: none; }

@media (max-width: 900px) {
  .nav, .search { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .hero, .bench, .grid, .layout, .foot { grid-template-columns: 1fr; }
  .lead, .lead img, .lead .ph { min-height: 320px; height: 320px; }
  .aside { position: static; }
  .stack a { grid-template-columns: 88px 1fr; }
}
