/* Parry Tech — one-page site. No frameworks, no external requests. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f8f8;
  --surface: #ffffff;
  --border: #dbe4e4;
  --text: #0e1b1d;
  --muted: #4f6466;
  --brand: #0f5c56;
  --brand-strong: #0b4641;
  --brand-tint: #e6f2f0;
  --focus: #0f5c56;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 27, 29, .05), 0 8px 24px -12px rgba(14, 27, 29, .18);
  --maxw: 1080px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1416;
    --bg-alt: #0f1c1e;
    --surface: #12201f;
    --border: #23383a;
    --text: #e8f1f0;
    --muted: #9db2b1;
    --brand: #4fd1c0;
    --brand-strong: #7ee3d5;
    --brand-tint: #12302d;
    --focus: #4fd1c0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -14px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px; z-index: 20; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark rect { fill: var(--brand); }
.brand-mark g { stroke: #fff; stroke-width: 1.9; fill: #fff; stroke-linecap: round; }
@media (prefers-color-scheme: dark) { .brand-mark g { stroke: #0b1416; fill: #0b1416; } }
.brand-mark circle { stroke: none; }
.brand-name { font-weight: 700; letter-spacing: -.01em; font-size: 1.05rem; }

.site-nav { display: flex; gap: 26px; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.site-nav a:hover { color: var(--text); border-bottom-color: var(--brand); }

/* ---------- hero ---------- */

.hero { padding: 96px 0 84px; }
.eyebrow {
  margin: 0 0 18px; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand);
}
.hero h1 {
  margin: 0 0 24px; font-size: clamp(2.4rem, 7vw, 4.15rem); line-height: 1.04;
  letter-spacing: -.03em; font-weight: 800;
}
.lead { margin: 0 0 34px; max-width: 62ch; font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); }
.cta-row { margin: 0; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600;
  font-size: .97rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #06201d; } }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- sections ---------- */

.section { padding: 76px 0; border-top: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }
.section h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3.4vw, 2.1rem); letter-spacing: -.02em; }
.section-lead { margin: 0 0 40px; color: var(--muted); max-width: 60ch; }

/* minmax 340px forces a clean 2x2 on desktop: at 280px four cards laid out 3+1
   with an orphan on the second row. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 12px; font-size: 1.18rem; letter-spacing: -.01em; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: .97rem; }
.card-note {
  margin: auto 0 0 !important; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: .88rem !important; color: var(--text) !important; font-weight: 500;
}

.principles { list-style: none; margin: 0; padding: 0; counter-reset: p; display: grid; gap: 18px; }
.principles li {
  position: relative; padding: 0 0 0 58px; counter-increment: p; max-width: 72ch;
}
.principles li::before {
  content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 1px;
  font-variant-numeric: tabular-nums; font-weight: 800; font-size: .95rem; color: var(--brand);
  background: var(--brand-tint); border-radius: 8px; padding: 6px 9px; line-height: 1;
}
.principles strong { display: block; }
.principles li { color: var(--muted); }
.principles strong { color: var(--text); }

.coverage-inner { max-width: 70ch; }
.coverage p { color: var(--muted); margin: 0; }

/* ---------- contact ---------- */

.section-contact { background: var(--bg-alt); }
.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); max-width: 720px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 600; }
.req { color: #b4302f; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .97rem; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b4302f; }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 4px; }

.form-status { margin: 18px 0 0; font-size: .95rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--brand); }
.form-status.err { color: #b4302f; }

button[disabled] { opacity: .6; cursor: progress; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.site-footer p { margin: 0; font-size: .88rem; color: var(--muted); }

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

/* ---------- small screens ---------- */

/* Under ~700px the headline's intentional break fights natural wrapping and
   strands a word on its own line. Let it wrap on its own instead. */
@media (max-width: 700px) {
  .br-wide { display: none; }
}

/* The header is brand + three links on one row. On a phone they cannot all fit
   at a readable size (measured: needs ~400px), so stack the nav under the brand
   rather than shrinking the text or dropping the links. Height is unaffected. */
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .header-inner {
    height: auto;
    flex-wrap: wrap;
    /* longhand on purpose: a `padding` shorthand here would clobber the
       horizontal padding that .wrap sets on this same element */
    padding-top: 12px;
    padding-bottom: 10px;
  }
  .site-nav { width: 100%; gap: 20px; }
  .site-nav a { font-size: .88rem; }
}
