/* Tree City IT — single-page site. Dark navy theme; brand blue #004aad from the logo. */

@font-face { font-family: "Teko"; src: url("/assets/fonts/teko-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Teko"; src: url("/assets/fonts/teko-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Asap"; src: url("/assets/fonts/asap-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Asap"; src: url("/assets/fonts/asap-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Asap"; src: url("/assets/fonts/asap-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0b1626;          /* page navy */
  --bg-alt: #0f1d31;      /* alternating sections */
  --surface: #13243b;     /* cards */
  --border: #22364f;
  --text: #e8eef6;
  --muted: #9fb0c5;
  --brand: #004aad;       /* logo blue */
  --accent: #2f7fe0;      /* lighter blue for buttons/links on dark */
  --accent-hover: #4a93ec;
  --ok: #4cc38a;
  --err: #ff8a7a;
  --radius: 14px;
  --wrap: 1120px;
  --head: "Teko", "Arial Narrow", sans-serif;
  --body: "Asap", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-hover); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; line-height: .95; margin: 0 0 .4em; }
h1 { font-size: clamp(3rem, 7.5vw, 5.75rem); }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); }
h3 { font-size: 1.75rem; line-height: 1; }
p { margin: 0 0 1em; }
.eyebrow { font: 600 .8rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-hover); margin-bottom: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; background: var(--accent); color: #fff; font: 600 1rem/1 var(--body); padding: .95em 1.6em; border-radius: 999px; border: 1.5px solid var(--accent); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-sm { padding: .6em 1.15em; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,22,38,.82); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; }
.brand-mark { width: 44px; height: auto; }
.brand-text { font: 600 1.75rem/1 var(--head); text-transform: uppercase; letter-spacing: .03em; padding-top: .2em; }
.nav ul { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--accent-hover); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(88px, 14vw, 160px) 0 clamp(150px, 18vw, 230px);
  background:
    radial-gradient(1000px 520px at 78% 8%, rgba(47,127,224,.28), transparent 60%),
    radial-gradient(700px 400px at 8% 30%, rgba(0,74,173,.30), transparent 65%),
    linear-gradient(180deg, #102440 0%, var(--bg) 100%); }
.hero-inner { position: relative; z-index: 2; }
.hero h1 { max-width: 12ch; }
.hero-inner > * { max-width: 34rem; }
.hero-mark { position: absolute; z-index: 1; right: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); top: 50%; transform: translateY(-62%); width: clamp(260px, 28vw, 400px); height: auto; }
@media (max-width: 1060px) { .hero-mark { display: none; } .hero-inner > * { max-width: 40rem; } }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: #c9d6e6; max-width: 40rem; margin-bottom: 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.ridges { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(120px, 18vw, 260px); z-index: 1; }
.ridges .r1 { fill: #16304f; }
.ridges .r2 { fill: #0f2340; }
.ridges .r3 { fill: var(--bg); }

/* Sections */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.04); }
.section-lede { color: var(--muted); max-width: 44rem; font-size: 1.125rem; margin-bottom: 2.75rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem 1.5rem 1.5rem; transition: border-color .2s, transform .2s; }
.card:hover { border-color: #33557d; transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,74,173,.35); border: 1px solid rgba(74,147,236,.35); margin-bottom: 1.25rem; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: #cfe0f7; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-icon circle { fill: #cfe0f7; stroke: none; }
.card-icon rect + circle { fill: #cfe0f7; }

.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; counter-reset: none; }
.steps li { border-top: 2px solid var(--border); padding-top: 1.25rem; }
.steps li:first-child { border-top-color: var(--accent); }
.steps p { color: var(--muted); font-size: 1rem; margin: 0; }
.step-n { display: block; font: 500 1.1rem/1 var(--head); color: var(--accent-hover); letter-spacing: .08em; margin-bottom: .75rem; }

.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.about p { color: #c9d6e6; max-width: 38rem; }
.about-logo { width: min(320px, 100%); justify-self: center; opacity: .95; }
.clients { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.clients li { font: 500 1.35rem/1 var(--head); text-transform: uppercase; letter-spacing: .05em; padding: .55rem 1rem .4rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: var(--surface); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3rem; align-items: start; }
.contact > div p { color: #c9d6e6; }
.contact-direct { margin-top: 1.5rem; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-weight: 500; font-size: .95rem; }
.opt { color: var(--muted); font-weight: 400; }
input, textarea { font: inherit; font-size: 1rem; color: var(--text); background: #0c1a2c; border: 1px solid var(--border); border-radius: 10px; padding: .75rem .9rem; width: 100%; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 130px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,127,224,.25); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; min-height: 1.5em; font-size: .95rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* Footer */
.site-footer { padding: 2.5rem 0 3rem; border-top: 1px solid rgba(255,255,255,.06); color: var(--muted); font-size: .95rem; }
.footer-inner { display: grid; gap: .75rem; }
.site-footer .brand-mark { width: 36px; }
.site-footer .brand-text { font-size: 1.5rem; }
.site-footer p { margin: 0; }
.social { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: .25rem 0; padding: 0; }
.social a { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); text-decoration: none; font-size: .95rem; }
.social a:hover { color: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.fine { font-size: .8rem; color: #71839a; max-width: 52rem; }

/* Small screens */
@media (max-width: 820px) {
  .about, .contact { grid-template-columns: 1fr; gap: 2rem; }
  .about-logo { width: 220px; justify-self: start; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav ul li:not(:last-child) { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .brand-text { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.cf-turnstile { margin: .25rem 0 1.1rem; min-height: 65px; }
input::placeholder, textarea::placeholder { color: #6f8299; opacity: 1; }
