/* stsohio.com — one mobile-first stylesheet. Breakpoints: 640px (two columns), 1024px (desktop nav, 12-col grids). */

:root {
  --ground: #F4F1EA;
  --ground-alt: #E9E4D8;
  --card: #FFFFFF;
  --line: #DCD7CC;
  --field-line: #B8B2A6;
  --navy: #101B2D;
  --navy-2: #162440;
  --navy-line: #34435C;
  --navy-ghost: #4A5A73;
  --footer: #0B1220;
  --ink: #14181F;
  --muted: #4B5563;
  --on-navy: #F4F1EA;
  --on-navy-muted: #D7DCE5;
  --on-navy-faint: #A9B4C6;
  --accent: #C8541B;
  --accent-text: #B5491A;
  --accent-text-hover: #8E3812;
  --accent-on-navy: #F2A06A;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --gutter: 20px;
  --radius: 16px;
  --section-y: 44px;
}
@media (min-width: 640px) { :root { --gutter: 32px; --section-y: 64px; } }
@media (min-width: 1024px) { :root { --gutter: 64px; --section-y: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  background: var(--ground);
  color: var(--ink);
}
@media (min-width: 1024px) { body { font-size: 18px; } }
img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
a[href^="tel:"] { white-space: nowrap; }
a:hover { color: var(--accent-text-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 16px; background: var(--card); color: var(--ink); border-radius: 8px; }
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(1152px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight-top { padding-top: calc(var(--section-y) / 2); }
.section--tight-bottom { padding-bottom: calc(var(--section-y) / 2); }
.section--alt { background: var(--ground-alt); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--lg { gap: 32px; }
.stack--tight { gap: 8px; }
.self-start { align-self: flex-start; }
.measure { max-width: 720px; }

/* ---------- Type ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.section--navy .eyebrow, .hero .eyebrow { color: var(--accent-on-navy); }
.h1 { font-weight: 800; font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.04; letter-spacing: -0.025em; }
.h1--xl { font-size: clamp(2.5rem, 5.5vw, 4rem); line-height: 1.02; }
.h2 { font-size: clamp(1.875rem, 3.4vw, 2.5rem); }
.h3 { font-size: clamp(1.375rem, 2vw, 1.625rem); line-height: 1.15; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); }
.muted { color: var(--muted); }
.section--navy .muted, .hero .muted { color: var(--on-navy-muted); }
.faint { color: var(--on-navy-faint); font-size: 15px; }
@media (min-width: 640px) { .eyebrow { font-size: 15px; } }

.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
@media (min-width: 1024px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
  .section-head > p { max-width: 440px; }
}
.arrow-link { font-weight: 700; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 10px;
  font: inherit; font-weight: 700; font-size: 18px; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
}
.btn--accent { background: var(--accent); color: #FFFFFF; }
.btn--accent:hover { background: var(--accent-text-hover); color: #FFFFFF; }
.btn--ghost { border-color: var(--navy-ghost); color: var(--on-navy); }
.btn--ghost:hover { border-color: var(--on-navy); color: var(--on-navy); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--ground); }
.btn--sm { min-height: 48px; padding: 0 22px; font-size: 17px; }
.btn-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .btn-row { flex-direction: row; flex-wrap: wrap; gap: 16px; } }

/* ---------- Header ---------- */
.site-header { position: relative; background: var(--navy); color: var(--on-navy); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-navy); text-decoration: none; }
.brand:hover { color: var(--on-navy); }
.brand__mark { width: 84px; height: 34px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; border-left: 1px solid var(--navy-line); padding-left: 12px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 14px; max-width: 9.5em; }
.brand__place { display: none; font-size: 13px; opacity: 0.8; letter-spacing: 0.06em; text-transform: uppercase; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.btn--call { min-height: 44px; width: 44px; padding: 0; border-radius: 8px; font-size: 16px; }
.btn--call__number { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: transparent; border: 2px solid var(--navy-ghost); border-radius: 8px; color: var(--on-navy); cursor: pointer;
}
.menu-toggle__close { display: none; }
.site-header.is-open .menu-toggle__open { display: none; }
.site-header.is-open .menu-toggle__close { display: block; }

/* Mobile nav: a panel under the bar. Without JS it's always shown so the links stay reachable. */
.site-nav { display: flex; flex-direction: column; background: var(--navy-2); padding: 8px var(--gutter) 16px; font-size: 18px; font-weight: 600; order: 3; }
.site-nav a { display: flex; align-items: center; min-height: 48px; color: var(--on-navy); text-decoration: none; border-bottom: 1px solid #253552; }
.site-nav a:last-child { border-bottom: 0; }
.site-nav a[aria-current="page"] { color: var(--accent-on-navy); }
.js .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; z-index: 20; }
.js .site-header.is-open .site-nav { display: flex; }
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .site-header__bar { flex-wrap: wrap; height: auto; padding-block: 10px; }
html:not(.js) .site-nav { width: 100%; }

@media (min-width: 640px) {
  .btn--call { width: auto; padding: 0 18px; }
  .btn--call__number { display: inline; }
  .brand__name { max-width: none; font-size: 16px; }
}
@media (min-width: 1024px) {
  .site-header__bar { height: 84px; }
  .brand { gap: 16px; }
  .brand__mark { width: 104px; height: 42px; }
  .brand__text { padding-left: 16px; }
  .brand__name { font-size: 18px; }
  .brand__place { display: block; }
  .menu-toggle { display: none; }
  .site-nav, .js .site-nav, html:not(.js) .site-nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 32px;
    background: none; padding: 0; font-size: 16px; width: auto; order: 0;
  }
  .site-nav a { min-height: 44px; border-bottom: 2px solid transparent; }
  .site-nav a:last-child { border-bottom: 2px solid transparent; }
  .site-nav a:hover { border-bottom-color: var(--navy-ghost); }
  .site-nav a[aria-current="page"] { color: var(--on-navy); border-bottom-color: var(--accent); }
  .btn--call { padding: 0 20px; }
  html:not(.js) .site-header__bar { flex-wrap: nowrap; height: 84px; padding-block: 0; }
}
/* Between tablet and desktop the full name no longer fits beside the nav. */
@media (min-width: 1024px) and (max-width: 1199px) { .brand__text { display: none; } .site-nav { gap: 24px; } }

/* ---------- Heroes ---------- */
.hero { background: var(--navy); color: var(--on-navy); padding-block: 40px 44px; }
.hero__inner { display: flex; flex-direction: column; gap: 20px; }
.hero--center .hero__inner { align-items: center; text-align: center; gap: 24px; }
.hero__logo { width: 100%; max-width: 900px; height: auto; aspect-ratio: 5 / 1; object-fit: contain; }
.hero .lead { color: var(--on-navy-muted); max-width: 760px; }
.hero .btn-row { padding-top: 4px; width: 100%; }
.hero--center .btn-row { justify-content: center; }
@media (min-width: 640px) { .hero .btn-row { width: auto; } }
@media (min-width: 1024px) {
  .hero { padding-block: 80px 64px; }
  .hero--center { padding-block: 72px 80px; }
  .hero__inner { max-width: calc(8 / 12 * 100%); }
  .hero--center .hero__inner { max-width: none; gap: 28px; }
  .hero--center .h1 { max-width: 880px; }
}
/* Light page intro (Services, Remote Support, Contact) */
.intro { padding-block: var(--section-y) 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid { gap: 24px; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}
.grid--2-always { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1024px) {
  .grid--2-always { gap: 20px; }
  .grid--2-always.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Two-part rows: text on the left (5 cols), content on the right (6 cols) */
.split { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .split > :first-child { grid-column: 1 / span 5; }
  .split > :last-child { grid-column: 7 / span 6; }
  .split--wide-left > :first-child { grid-column: 1 / span 6; }
  .split--wide-left > :last-child { grid-column: 8 / span 5; }
  .split--center { align-items: center; }
}

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
@media (min-width: 1024px) { .card { padding: 28px; border-radius: var(--radius); gap: 16px; } .card--roomy { padding: 36px; } }
.card p { color: var(--muted); }
.card ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

a.card { color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
a.card .icon { color: var(--accent-text); width: 40px; height: 40px; }
a.card .card__more { margin-top: auto; font-weight: 700; color: var(--accent-text); }
@media (max-width: 639px) { .door .icon { display: none; } }

.card--navy { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.card--navy p { color: var(--on-navy-muted); }

.tile { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--ground); border-radius: 10px; }
.tile strong { font-size: 15px; }
.tile span { display: none; font-size: 16px; color: var(--muted); }
@media (min-width: 640px) { .tile { padding: 22px; border-radius: 12px; } .tile strong { font-size: 18px; } .tile span { display: block; } }

.services-card h2 { font-size: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.services-card ul { padding-left: 20px; font-size: 17px; color: var(--ink); }

/* ---------- Stats ---------- */
.stat { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--card); border-top: 3px solid var(--accent); border-radius: 0 0 10px 10px; }
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: 25px; line-height: 1; }
@media (min-width: 640px) { .stat__value { font-size: 30px; } }
.stat__label { font-size: 14px; color: var(--muted); }
@media (min-width: 1024px) {
  .stat { padding: 24px; gap: 6px; border-radius: 0 0 12px 12px; }
  .stat__value { font-size: 40px; }
  .stat__label { font-size: 16px; }
}
.stat--plain { padding: 0; background: none; border: 0; gap: 8px; }
.stat--plain .stat__value { font-size: 30px; }
.stat--plain .stat__label { font-size: 17px; }
@media (min-width: 1024px) { .stat--plain .stat__value { font-size: 36px; } .stat--plain .stat__label { font-size: 18px; } }

/* ---------- Lists ---------- */
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 20px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.num {
  flex-shrink: 0; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accent); color: #FFFFFF; font-family: var(--font-display); font-weight: 800; font-size: 18px;
}
.num--lg { width: 44px; height: 44px; font-size: 20px; }

.dots { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.dots li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.dots li::before { content: ""; flex-shrink: 0; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Offices ---------- */
.offices { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); font-size: 17px; }
@media (min-width: 640px) { .offices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.office { display: flex; flex-direction: column; gap: 2px; }
.office a { font-weight: 700; text-decoration: none; margin-top: 4px; }
.office--card { gap: 6px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.office--card strong { font-family: var(--font-display); font-size: 20px; }

/* ---------- CTA band ---------- */
.cta-band { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) {
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .cta-band .btn-row { flex-shrink: 0; flex-wrap: nowrap; }
}

/* ---------- Remote support ---------- */
.download-card { gap: 14px; padding: 28px; align-self: start; }
.download-card .btn { min-height: 60px; }
.download-card__label { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.download-card a:not(.btn) { color: var(--accent-on-navy); }
.warning {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px 20px;
  background: #FBEFE6; border: 1px solid #EBC7AE; border-radius: 12px; color: #5A2A0E;
}
.warning .icon { flex-shrink: 0; color: #8E3812; margin-top: 2px; width: 28px; height: 28px; }
.warning strong { display: block; font-size: 18px; margin-bottom: 4px; }
.warning a { color: #5A2A0E; font-weight: 700; }
@media (min-width: 1024px) { .warning { padding: 28px 32px; gap: 20px; } }

/* ---------- Contact ---------- */
.label { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-phone { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--ink); text-decoration: none; }
.contact-email { font-size: 22px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }

.form { display: flex; flex-direction: column; gap: 16px; padding: 24px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
@media (min-width: 1024px) { .form { padding: 40px; gap: 18px; border-radius: var(--radius); } }
.form__row { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: 15px; padding: 0; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  min-height: 48px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 8px;
  font: inherit; font-size: 17px; background: #FFFFFF; color: var(--ink); width: 100%;
}
.field textarea { padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
fieldset.field { margin: 0; border: 0; padding: 0; }
.choices { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
@media (min-width: 640px) { .choices { flex-direction: row; gap: 12px; } }
.field .choice { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--field-line); border-radius: 8px; cursor: pointer; }
.choice input { margin: 0; width: 18px; height: 18px; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); }
.form .btn { width: 100%; }
.form__note { font-size: 14px; color: var(--muted); }
.form__status:empty { display: none; }
.form__status { padding: 12px 16px; border-radius: 8px; background: var(--ground); font-weight: 600; }
.form__status[data-state="error"] { background: #FBEFE6; color: #5A2A0E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.social-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.social-buttons a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.social-buttons a:hover { border-color: var(--accent); color: var(--ink); }
.social-buttons .icon { color: #1877F2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #C9D0DB; padding-block: 32px 28px; font-size: 15px; }
.site-footer a { color: #C9D0DB; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer__grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.site-footer__about { display: flex; flex-direction: column; gap: 14px; }
.site-footer__about img { width: 240px; height: 48px; object-fit: contain; object-position: left; opacity: 0.9; }
.site-footer__heading { font-family: var(--font-body); font-size: inherit; font-weight: 700; letter-spacing: 0; color: var(--on-navy); margin-bottom: 8px; }
.site-footer .social { flex-direction: row; gap: 12px; }
.site-footer .social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #2A3850; border-radius: 8px; }
.site-footer .social a:hover { border-color: #C9D0DB; text-decoration: none; }
.site-footer__legal { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; padding-top: 16px; border-top: 1px solid #1F2A3D; font-size: 13px; color: #8C96A8; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .site-footer { padding-block: 48px 40px; font-size: 16px; }
  .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
  .site-footer__about img { width: 260px; height: 52px; }
  .site-footer__legal { flex-direction: row; justify-content: space-between; margin-top: 32px; padding-top: 20px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.btn-row--stack { flex-direction: column; }
@media (min-width: 640px) { .btn-row--stack { flex-direction: row; } }
@media (min-width: 1024px) { .btn-row--stack { flex-direction: column; } }
