/* Zirconium Telecom Solutions — brand colors taken from the ZTS logo. */
:root {
  color-scheme: light;
  --navy: #1b3a6b;
  --navy-deep: #12284b;
  --teal: #1f9e9a;
  --teal-light: #e6f5f4;
  --ink: #1d2433;
  --muted: #5b6577;
  --line: #d9e0ea;
  --bg: #ffffff;
  --bg-tint: #f3f6fa;
  --surface: #ffffff;
  --heading: #1b3a6b;
  --link: #1b3a6b;
  --header-bg: rgba(255,255,255,.94);
  --btn-bg: #1b3a6b;
  --btn-bg-hover: #12284b;
  --btn-ink: #ffffff;
  --ghost-ink: #1b3a6b;
  --contact-bg: #1b3a6b;
  --footer-bg: #12284b;
  --shadow: rgba(27,58,107,.12);
  --logo-halo: transparent;
  --logo-edge: none;
  --radius: 14px;
}
/* Dark theme: used when the visitor picks it, or when their device is set to dark
   and they haven't picked light. theme.js sets data-theme on <html>. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --teal: #3cc8c2;
  --teal-light: rgba(60,200,194,.12);
  --ink: #dbe4f1;
  --muted: #9fb0c9;
  --line: #243858;
  --bg: #0b1628;
  --bg-tint: #101f38;
  --surface: #13233f;
  --heading: #e8f0fb;
  --link: #7fd8d3;
  --header-bg: rgba(11,22,40,.9);
  --btn-bg: #1fa9a4;
  --btn-bg-hover: #2cc3bd;
  --btn-ink: #04202a;
  --ghost-ink: #e8f0fb;
  --contact-bg: #10284f;
  --footer-bg: #07101f;
  --shadow: rgba(0,0,0,.45);
  --logo-halo: rgba(150,190,240,.24);
  --logo-edge: drop-shadow(0 0 1.5px rgba(255,255,255,.55));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --teal: #3cc8c2;
    --teal-light: rgba(60,200,194,.12);
    --ink: #dbe4f1;
    --muted: #9fb0c9;
    --line: #243858;
    --bg: #0b1628;
    --bg-tint: #101f38;
    --surface: #13233f;
    --heading: #e8f0fb;
    --link: #7fd8d3;
    --header-bg: rgba(11,22,40,.9);
    --btn-bg: #1fa9a4;
    --btn-bg-hover: #2cc3bd;
    --btn-ink: #04202a;
    --ghost-ink: #e8f0fb;
    --contact-bg: #10284f;
    --footer-bg: #07101f;
    --shadow: rgba(0,0,0,.45);
    --logo-halo: rgba(150,190,240,.24);
    --logo-edge: drop-shadow(0 0 1.5px rgba(255,255,255,.55));
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 160px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.eyebrow { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; font-weight: 600;
  border: 2px solid var(--btn-bg); transition: background .15s, color .15s;
}
.btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.btn-ghost { background: transparent; color: var(--ghost-ink); border-color: var(--ghost-ink); }
.btn-ghost:hover { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.btn-small { padding: 7px 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding-top: 12px; padding-bottom: 12px; }
.site-header .header-row { max-width: none; } /* logo sits at the far left of the page */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); font-size: 1.05rem; }
.brand img { width: 130px; height: auto; filter: var(--logo-edge); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:not(.btn):hover { color: var(--teal); }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .brand span { font-size: .95rem; }
  .brand img { width: 88px; }
  section[id] { scroll-margin-top: 116px; }
}

/* Hero */
.hero { background: linear-gradient(160deg, var(--bg-tint) 0%, var(--bg) 60%); padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero-logo { justify-self: center; width: min(480px, 100%); }

/* Animated logo: radar layer (SVG, added by zts-radar.js) sits behind the transparent PNG. */
.zts-logo { position: relative; aspect-ratio: 1; }
.zts-logo > img, .zts-logo > .zts-radar { position: absolute; inset: 0; width: 100%; height: 100%; }
.zts-logo > img { z-index: 1; filter: var(--logo-edge); }
.zts-logo::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(circle at 50% 56%, var(--logo-halo) 0%, transparent 62%); }
@media (max-width: 820px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { width: 280px; order: -1; margin: -24px 0 -40px; }
}

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--bg-tint); }
@media (max-width: 760px) { .section { padding: 56px 0; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: 32px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card-photo { display: block; width: calc(100% + 36px); max-width: none; aspect-ratio: 1 / 1; object-fit: cover; margin: -18px -18px 18px; }
.card:hover { box-shadow: 0 14px 34px var(--shadow); transform: translateY(-3px); }
.card p { color: var(--muted); margin: 0; }

.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 28px; }
.why > div { border-left: 4px solid var(--teal); padding-left: 18px; }
.why p { color: var(--muted); margin: 0; }

.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.about p { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 24px 26px; background: var(--bg-tint); border-radius: var(--radius); }
.checks li { position: relative; padding: 8px 0 8px 32px; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 24px; } }

/* Client portal (coming soon) */
.portal { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.portal-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: 0 14px 34px var(--shadow); }
.portal p:not(.eyebrow) { color: var(--muted); }
.portal .checks { background: var(--surface); }
.badge { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--teal); color: var(--bg); font-size: .72rem; font-weight: 700; letter-spacing: 1px; vertical-align: 1px; }
@media (max-width: 820px) { .portal { grid-template-columns: 1fr; gap: 24px; } .portal-photo { max-width: 420px; } }

/* Contact */
.contact { background: var(--contact-bg); color: #fff; text-align: center; }
.contact h2 { color: #fff; }
.contact .lead { color: #c9d6ea; margin: 0 auto 1.8em; }
.contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; min-width: 260px; padding: 20px 26px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; text-decoration: none; transition: background .15s; overflow-wrap: anywhere; }
.contact-card:hover { background: rgba(255,255,255,.16); }
.contact-card .label { color: #8fd3cf; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; }
.contact-card .value { font-size: 1.15rem; font-weight: 600; }
@media (max-width: 420px) { .contact-card { min-width: 0; width: 100%; } }

/* Footer */
.site-footer { background: var(--footer-bg); color: #9fb0c9; font-size: .9rem; padding: 22px 0; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* 404 page */
.notfound { text-align: center; }
.notfound img { border-radius: 20px; }
.notfound .lead { margin: 0 auto 1.5em; }

/* Theme toggle (moon in light mode, sun in dark mode) */
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: border-color .15s, color .15s; }
.theme-toggle:hover { border-color: var(--teal); color: var(--teal); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
}
