/* ==========================================================
   Telos Software — styles.css
   Brand colours sampled from the Telos logo
   ========================================================== */

:root {
  --navy: #0B384D;      /* logo dark segment   */
  --steel: #4B7792;     /* logo mid segment    */
  --mist: #9EB9CA;      /* logo light segment  */
  --ink: #121212;
  --ground: #EEF0F3;
  --white: #FFFFFF;
  --muted: #3A3A3A;
  --muted-on-dark: #D6D6D6;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;

  --border: 2px solid var(--ink);
  --radius: 24px;
  --shadow: 6px 6px 0 var(--ink);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ground);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

main { overflow-x: clip; } /* stops the tilted strip causing sideways scroll */

a { color: var(--ink); }
a:hover { color: var(--steel); }

:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0; }

.section-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.eyebrow { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.eyebrow--light { color: var(--mist); }
.eyebrow--ink { color: var(--ink); }

.lede { margin: 0; font-size: 18px; line-height: 1.55; max-width: 44ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 16px 28px;
  font: inherit; font-weight: 700; font-size: 17px;
  text-decoration: none; border: var(--border); border-radius: 14px;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn--primary { background: var(--steel); color: var(--white); box-shadow: 5px 5px 0 var(--ink); }
.btn--primary:hover { color: var(--white); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn--secondary { background: var(--white); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { color: var(--mist); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--ground); border-bottom: var(--border);
}
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px;
}
.nav__brand { display: flex; align-items: center; min-height: 44px; }
.nav__brand img { height: 48px; width: auto; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nav__links a { padding: 12px 14px; font-weight: 500; text-decoration: none; }
.nav__links .nav__cta {
  padding: 12px 20px; font-weight: 700;
  background: var(--navy); color: var(--white); border-radius: 999px;
}
.nav__links .nav__cta:hover { color: var(--mist); }

/* ---------- Hero ---------- */

.hero {
  padding-block: 72px 88px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 56px; align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.badge {
  align-self: flex-start; font-family: var(--font-mono); font-size: 14px;
  padding: 8px 14px; border: var(--border); border-radius: 999px; background: var(--mist);
}
.hero h1 {
  font-size: clamp(48px, 7vw, 96px); line-height: 0.95; letter-spacing: -0.035em;
}
.hero h1 span { color: var(--steel); }
.hero__lede { margin: 0; font-size: 20px; line-height: 1.55; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__art { position: relative; }
.hero__mark { position: absolute; left: 21%; top: 8.7%; width: 73%; height: auto; }
.hero__doodles { position: relative; width: 100%; height: auto; }

/* ---------- Ticker strip ---------- */

.strip {
  background: var(--navy); color: var(--white);
  border-block: var(--border);
  transform: rotate(-1.2deg); margin: 0 -40px;
}
.strip__inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px;
  padding: 18px 40px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -0.01em;
}
.strip__star { color: var(--mist); }

/* ---------- Sections ---------- */

.section { padding-block: 112px; display: flex; flex-direction: column; gap: 48px; }
.section__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.section__titles { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Services ---------- */

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px;
}
.card {
  border: var(--border); border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; gap: 16px; background: var(--white);
}
.card h3 { font-size: 28px; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 17px; line-height: 1.55; }
.card svg { width: 44px; height: 44px; }
.card--steel { background: var(--steel); color: var(--white); box-shadow: var(--shadow); }
.card--mist { background: var(--mist); }
.card--navy { background: var(--navy); color: var(--white); }
.card--navy svg { stroke: var(--mist); }

/* ---------- Portfolio ---------- */

.work { padding-top: 16px; }
.work-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 28px; align-items: start;
}
.project { display: flex; flex-direction: column; gap: 16px; }
/* The whole picture is always shown, whatever its shape (wide, square or tall): the panel follows the picture, and a very tall one is
   capped and centred on the panel colour instead of being cropped. */
.project__img {
  width: 100%; height: auto; max-height: 560px; aspect-ratio: auto; object-fit: contain;
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--mist);
}
.project__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px;
}
.project h3 { font-size: 26px; letter-spacing: -0.02em; }
.project p { margin: 0; font-size: 16px; line-height: 1.55; }
.tag {
  font-family: var(--font-mono); font-size: 13px;
  padding: 6px 12px; border: var(--border); border-radius: 999px; background: var(--white);
}

/* ---------- Process ---------- */

.process { background: var(--navy); color: var(--white); }
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px;
}
.step {
  border: 2px solid var(--white); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.step__num {
  font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--mist);
}
.step h3 { font-family: var(--font-body); font-size: 22px; font-weight: 700; }
.step p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted-on-dark); }

/* ---------- Why ---------- */

.why {
  padding-block: 112px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px; align-items: center;
}
.why__copy { display: flex; flex-direction: column; gap: 22px; }
.why__copy h2 em { font-weight: 500; }
.why__copy p { margin: 0; font-size: 19px; line-height: 1.6; max-width: 46ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 24px; background: var(--white); border: var(--border); border-radius: 20px;
}
.ticks__icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  background: var(--mist); border: var(--border);
  display: flex; align-items: center; justify-content: center;
}
.ticks strong { font-size: 18px; }
.ticks p { margin: 4px 0 0; font-size: 16px; line-height: 1.5; }

/* ---------- Testimonials ---------- */

.testimonials { background: var(--mist); border-block: var(--border); margin-bottom: 112px; }
.quotes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px;
}
.quote {
  margin: 0; background: var(--white); border: var(--border); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow);
}
.quote blockquote { margin: 0; font-size: 19px; line-height: 1.55; flex-grow: 1; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; background: var(--navy); object-fit: cover;
}
.avatar--steel { background: var(--steel); }
.avatar--ink { background: var(--ink); }
.quote__who { display: flex; flex-direction: column; }
.quote__who strong { font-size: 16px; }
.quote__who span { font-size: 15px; color: var(--muted); }

/* ---------- CTA band ---------- */

.cta {
  background: var(--mist); border: var(--border); border-radius: 32px;
  padding: 56px 40px; box-shadow: 8px 8px 0 var(--ink);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.cta h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.02; letter-spacing: -0.03em; max-width: 18ch; }
.cta .btn { padding: 18px 32px; font-size: 18px; }

/* ---------- Contact ---------- */

.contact {
  padding-block: 112px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px;
}
.contact__info { display: flex; flex-direction: column; gap: 24px; }
.contact__info > p { margin: 0; font-size: 18px; line-height: 1.55; max-width: 38ch; }
.contact__list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.contact__item {
  display: flex; align-items: center; gap: 14px; min-height: 44px;
  font-size: 18px; font-weight: 500; text-decoration: none;
}
.contact__item svg { width: 24px; height: 24px; flex-shrink: 0; }

.form {
  background: var(--white); border: var(--border); border-radius: 28px; padding: 32px;
  display: flex; flex-direction: column; gap: 18px; box-shadow: 8px 8px 0 var(--steel);
}
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 15px; }
.field label span { font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 14px 16px;
  border: var(--border); border-radius: 12px; background: var(--ground); color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--steel); outline-offset: 1px; }
.form .btn { align-self: flex-start; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.honeypot { position: absolute; left: -9999px; }
.form__status { margin: 0; font-weight: 500; min-height: 1.4em; }
.form__status--ok { color: #1E6B3A; }
.form__status--error { color: #B3261E; }
.form__success {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border: var(--border); border-radius: 16px;
  background: #E3F4E8; color: #14532D;
}
.form__success[hidden] { display: none; }
.form__success svg { flex-shrink: 0; }
.form__success strong { font-size: 18px; }
.form__success p { margin: 4px 0 0; font-size: 16px; }

/* ---------- Footer ---------- */

.footer { background: var(--white); border-top: var(--border); }
.footer__inner { padding-block: 56px 40px; display: flex; flex-direction: column; gap: 40px; }
.footer__logo { width: min(100%, 520px); height: auto; }
.footer__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  font-size: 15px; color: var(--muted); border-top: 1px solid #C9CED6; padding-top: 24px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Motion preference ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ==========================================================
   TelosCMS additions (not in the original one-page design)
   ========================================================== */

/* Inner pages: privacy policy, not-found and other document pages */
.page { padding-block: 72px 112px; }
.doc {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(24px, 5vw, 56px);
  display: flex; flex-direction: column; gap: 28px; max-width: 860px;
}
.doc__body { font-size: 17px; line-height: 1.65; }
.doc__body > :first-child { margin-top: 0; }
.doc__body > :last-child { margin-bottom: 0; }
.doc__body h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; margin: 40px 0 12px; }
.doc__body h3 { font-size: 21px; margin: 28px 0 8px; }
.doc__body a { color: var(--navy); text-underline-offset: 3px; }
.doc__body ul { padding-left: 1.25em; }
.doc__body li + li { margin-top: 6px; }

/* Contact form: inline error when a message couldn't be sent */
.form__error {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border: var(--border); border-radius: 16px;
  background: #FBE9E7; color: #8C1D18;
}
.form__error[hidden] { display: none; }
.form__error p { margin: 4px 0 0; font-size: 16px; }

/* Header and footer links from the CMS menus */
.nav__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }

/* Tables from the admin editor (setting EditorTableStyles). .table-scroll lets wide tables scroll sideways on phones. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; }
.tbl {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: var(--border); border-radius: 16px; overflow: hidden; background: var(--white);
  font-size: 16px; line-height: 1.5;
}
.tbl th, .tbl td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #C9CED6; }
.tbl tr:last-child > td, .tbl tr:last-child > th { border-bottom: 0; }
.tbl thead th { background: var(--navy); color: var(--white); font-weight: 700; border-bottom: var(--border); }
.tbl--striped tbody tr:nth-child(even) { background: var(--ground); }
.tbl--compact th, .tbl--compact td { padding: 6px 10px; font-size: 15px; }
.tbl--steel thead th { background: var(--steel); }

/* Announcement bar (templates: Header partial; settings Announcement*) */
.announcement-bar { background: var(--navy); color: var(--white); text-align: center; padding: 10px 24px; font-weight: 500; font-size: 15px; border-bottom: var(--border); }
.announcement-bar a { color: var(--white); text-underline-offset: 3px; }
.announcement-bar a:hover { color: var(--mist); }

/* Site search (/search) */
.search-form { display: flex; gap: .6rem; max-width: 36rem; margin: 0 0 1rem; }
.search-form input { flex: 1; min-width: 0; padding: .75rem 1rem; border: var(--border); border-radius: 14px; background: var(--white); color: var(--ink); font: inherit; }
.search-form input:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; }
.search-form button { padding: .75rem 1.4rem; border: var(--border); border-radius: 14px; background: var(--navy); color: var(--white); font: 700 1rem var(--font-body); cursor: pointer; box-shadow: 4px 4px 0 var(--ink); }
.search-form button:hover { transform: translate(-1px, -1px); }
.search-summary { color: var(--muted); }
.search-results { list-style: none; padding: 0; margin: 1.5rem 0; }
.search-result { padding: 1.1rem 0; border-bottom: 1px solid rgba(18, 18, 18, .15); }
.search-result__title { font: 800 1.3rem var(--font-display); margin: 0 0 .2rem; }
.search-result__title a { color: var(--navy); text-decoration: none; }
.search-result__title a:hover { text-decoration: underline; }
.search-result__meta { font: 500 .8rem var(--font-mono); color: var(--steel); margin: 0 0 .4rem; text-transform: uppercase; letter-spacing: .04em; }
.search-result__snippet { margin: 0; line-height: 1.6; }
.search-results mark { background: var(--mist); color: var(--ink); padding: 0 .15em; border-radius: 4px; }
.search-pager { display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 1rem; }
.search-pager a { color: var(--navy); font-weight: 700; }

/* Share buttons under articles ({{{share.buttons}}}) */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; border-top: 1px solid rgba(18, 18, 18, .15); padding-top: 1rem; margin-top: 2rem; }
.share__label { font: 700 .85rem var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--steel); margin-right: .25rem; }
.share__btn { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem; border: var(--border); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 .9rem var(--font-body); text-decoration: none; cursor: pointer; }
.share__btn:hover, .share__btn:focus-visible { background: var(--navy); color: var(--white); outline: none; }
.share__btn[hidden] { display: none; }
@media (max-width: 575.98px) { .share__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .share__btn { padding: .55rem .75rem; font-size: 1.05rem; } }
