/*
Theme Name: Total Station Child
Theme URI: https://totalstation.net/
Description: Mobile-first WooCommerce storefront for professional survey instruments.
Author: Total Station
Template: estore-woocommerce
Version: 1.0.0
Text Domain: totalstation-child
*/

:root {
  --ts-blue: #004B87;
  --ts-blue-dark: #00345f;
  --ts-graphite: #4A4A4A;
  --ts-ink: #17212b;
  --ts-surface: #f4f7f9;
  --ts-white: #ffffff;
  --ts-line: #d7e0e6;
  --ts-focus: #f4b740;
  --ts-radius: 14px;
  --ts-shadow: 0 18px 50px rgba(18, 45, 66, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ts-ink);
  background: var(--ts-white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ts-blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ts-focus); outline-offset: 3px; }
.ts-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.ts-header { position: sticky; top: 0; z-index: 40; color: var(--ts-white); background: rgba(23, 33, 43, .97); border-bottom: 1px solid rgba(255,255,255,.12); }
.ts-nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ts-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ts-white); text-decoration: none; font: 700 1.05rem Poppins, Inter, sans-serif; letter-spacing: -.02em; }
.ts-brand-mark { position: relative; width: 34px; height: 34px; border: 2px solid #78b8ea; border-radius: 50%; }
.ts-brand-mark::before, .ts-brand-mark::after { content: ""; position: absolute; inset: 50% auto auto 50%; background: #78b8ea; transform: translate(-50%,-50%); }
.ts-brand-mark::before { width: 22px; height: 1px; }
.ts-brand-mark::after { width: 1px; height: 22px; }
.ts-menu { display: none; align-items: center; gap: 26px; }
.ts-menu a { color: #eef6fc; font-size: .9rem; font-weight: 650; text-decoration: none; }
.ts-menu a:hover { color: #8dc7f2; }
.ts-nav-cta { min-height: 44px; display: inline-flex; align-items: center; padding: 0 17px; border: 1px solid rgba(255,255,255,.42); border-radius: 8px; }

.ts-hero { position: relative; overflow: hidden; color: var(--ts-white); background: linear-gradient(112deg, #00345f 0%, var(--ts-blue) 58%, #0d669f 100%); }
.ts-hero::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, transparent, #000); }
.ts-hero-grid { position: relative; min-height: 630px; padding: 78px 0 70px; display: grid; align-items: center; gap: 52px; }
.ts-eyebrow { margin: 0 0 16px; color: #acd7f6; font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.ts-hero h1 { max-width: 720px; margin: 0; color: var(--ts-white); font: 750 clamp(3.2rem, 13vw, 6.8rem)/.91 Poppins, Inter, sans-serif; letter-spacing: -.065em; }
.ts-lead { max-width: 650px; margin: 26px 0 0; color: #e7f4fd; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.ts-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ts-btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 21px; border: 1px solid transparent; border-radius: 8px; color: var(--ts-white); background: var(--ts-graphite); font-weight: 750; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.ts-btn:hover { color: var(--ts-white); background: #333; transform: translateY(-2px); }
.ts-btn--ghost { border-color: rgba(255,255,255,.5); background: transparent; }
.ts-btn--ghost:hover { background: rgba(255,255,255,.1); }
.ts-reticle { position: relative; width: min(72vw, 360px); aspect-ratio: 1; margin: 0 auto; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.045), 0 0 0 74px rgba(255,255,255,.025); }
.ts-reticle::before, .ts-reticle::after { content: ""; position: absolute; top: 50%; left: 50%; background: rgba(255,255,255,.58); transform: translate(-50%,-50%); }
.ts-reticle::before { width: 122%; height: 1px; }
.ts-reticle::after { width: 1px; height: 122%; }
.ts-reticle-center { position: absolute; inset: 25%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.56); border-radius: 50%; }
.ts-reticle-center::after { content: "PRECISION / FIELD READY"; width: 86px; color: #d8efff; font: 700 .64rem/1.45 Inter, sans-serif; letter-spacing: .12em; text-align: center; }

.ts-trust { background: var(--ts-graphite); color: var(--ts-white); }
.ts-trust-grid { display: grid; grid-template-columns: 1fr; }
.ts-trust-item { min-height: 88px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.ts-trust-item:last-child { border-bottom: 0; }
.ts-trust-item strong { display: block; font: 700 .98rem Poppins, sans-serif; }
.ts-trust-item span { color: #d4d8db; font-size: .84rem; }

.ts-section { padding: 74px 0; }
.ts-section--muted { background: var(--ts-surface); }
.ts-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 32px; }
.ts-heading h2 { margin: 0; color: var(--ts-ink); font: 730 clamp(2rem, 7vw, 3.35rem)/1.04 Poppins, sans-serif; letter-spacing: -.045em; }
.ts-heading p { max-width: 590px; margin: 0; color: #5e6b75; }
.ts-text-link { font-weight: 750; text-underline-offset: 4px; }
.ts-products { display: grid; grid-template-columns: 1fr; gap: 18px; }
.ts-product { overflow: hidden; background: var(--ts-white); border: 1px solid var(--ts-line); border-radius: var(--ts-radius); box-shadow: 0 7px 24px rgba(18,45,66,.06); transition: transform .2s ease, box-shadow .2s ease; }
.ts-product:hover { transform: translateY(-5px); box-shadow: var(--ts-shadow); }
.ts-product-media { aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; background: #eef3f6; }
.ts-product-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ts-product-body { padding: 19px; }
.ts-product-kicker { margin: 0 0 7px; color: var(--ts-blue); font-size: .69rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ts-product h3 { min-height: 2.7em; margin: 0; color: var(--ts-ink); font: 680 1rem/1.35 Poppins, sans-serif; }
.ts-price { margin: 14px 0 0; color: var(--ts-graphite); font-weight: 800; }
.ts-product a { color: inherit; text-decoration: none; }
.ts-empty { grid-column: 1/-1; padding: 30px; border: 1px dashed #aebbc5; border-radius: var(--ts-radius); text-align: center; }

.ts-support { display: grid; gap: 26px; padding: 34px; border-left: 5px solid var(--ts-blue); border-radius: var(--ts-radius); color: var(--ts-white); background: var(--ts-graphite); }
.ts-support h2 { margin: 0 0 8px; color: var(--ts-white); font: 700 clamp(1.8rem, 6vw, 2.8rem)/1.1 Poppins, sans-serif; }
.ts-support p { margin: 0; color: #e2e5e7; }
.ts-support .ts-btn { align-self: center; background: var(--ts-blue); }

.ts-footer { padding: 42px 0; color: #cbd3d9; background: var(--ts-ink); }
.ts-footer-grid { display: grid; gap: 22px; }
.ts-footer p { margin: 8px 0 0; max-width: 560px; }
.ts-footer a { color: #dbeeff; }

@media (min-width: 620px) {
  .ts-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-trust-grid { grid-template-columns: repeat(3, 1fr); }
  .ts-trust-item { padding-left: 22px; border-right: 1px solid rgba(255,255,255,.14); border-bottom: 0; }
  .ts-trust-item:first-child { padding-left: 0; }
  .ts-trust-item:last-child { border-right: 0; }
  .ts-heading { flex-direction: row; align-items: end; justify-content: space-between; }
  .ts-support { grid-template-columns: 1fr auto; align-items: center; padding: 44px; }
  .ts-footer-grid { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 900px) {
  .ts-menu { display: flex; }
  .ts-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); }
  .ts-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

