/* ============================================================
   Logicful — static site stylesheet
   Palette: engineering navy + safety amber + neutrals
   Type:    Space Grotesk (display) / IBM Plex Sans (body) /
            IBM Plex Mono (asset-tag labels)
   ============================================================ */

:root {
  --navy:       #14283d;
  --navy-2:     #1d3a56;
  --navy-3:     #2a4d6e;
  --amber:      #f5a524;
  --amber-deep: #c97e12;
  --ink:        #19222c;
  --muted:      #5b6b7a;
  --muted-2:    #8595a3;
  --line:       #e3e7eb;
  --line-2:     #d2d8de;
  --paper:      #fbfaf7;
  --white:      #ffffff;
  --ok:         #3aa676;

  --maxw: 1140px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(20,40,61,.05), 0 8px 24px rgba(20,40,61,.06);
  --shadow-lg: 0 24px 60px rgba(20,40,61,.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  color: var(--navy);
}

p { margin: 0 0 1.1em; }
a { color: var(--amber-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

/* ---- asset-tag eyebrow (the signature device) ---- */
.tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,165,36,.18);
  flex: none;
}
.tag--light { color: #f6c879; }
.tag--light::before { background: var(--amber); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600; font-size: 16px;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #2a1c00; box-shadow: 0 6px 18px rgba(245,165,36,.32); }
.btn-primary:hover { background: #ffb43d; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); }
.btn svg { width: 17px; height: 17px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,247,.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 20px; color: var(--navy); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(150deg, var(--navy-2), var(--navy));
  display: grid; place-items: center; flex: none;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute;
  width: 11px; height: 11px; border-radius: 50%;
  border: 2.5px solid var(--amber);
}
.brand-mark span { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 15.5px; }
.nav-links a:hover { color: var(--amber-deep); text-decoration: none; }
/* keep the dark CTA button readable inside the light nav (beats .nav-links a) */
.nav-links a.btn-dark { color: var(--white); }
.nav-links a.btn-dark:hover { color: var(--white); }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; transition: .2s; }

/* ---- hero ---- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(245,165,36,.10), transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #dfe8f0;
  padding: 92px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 500px at 70% 20%, #000, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 56px); font-weight: 600; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-lede { font-size: 19px; color: #b8c7d6; max-width: 40ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero panel — a stylised "work order" card, grounded in the CMMS world */
.wo-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(4px);
}
.wo-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; }
.wo-id { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--amber); letter-spacing: .08em; }
.wo-status { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; color: #cfe; display: inline-flex; align-items: center; gap: 7px; text-transform: uppercase; letter-spacing: .1em; }
.wo-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(58,166,118,.22); }
.wo-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; color: #c6d4e2; font-size: 14.5px; }
.wo-row + .wo-row { border-top: 1px dashed rgba(255,255,255,.09); }
.wo-row svg { width: 18px; height: 18px; color: var(--amber); flex: none; }
.wo-row b { color: #eef4f9; font-weight: 600; }
.wo-meter { margin-top: 16px; }
.wo-meter-label { display: flex; justify-content: space-between; font-family: "IBM Plex Mono", monospace; font-size: 11px; color: #9fb2c4; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 7px; }
.wo-bar { height: 7px; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; }
.wo-bar > i { display: block; height: 100%; width: 82%; background: linear-gradient(90deg, var(--amber), #ffc664); border-radius: 99px; }

/* ---- generic section ---- */
.section { padding: 84px 0; }
.section-tight { padding: 60px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; }
.section-head p { color: var(--muted); font-size: 18px; margin-bottom: 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 19px; color: var(--muted); }

/* ---- problem strip ---- */
.problem { background: var(--white); border-bottom: 1px solid var(--line); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.problem-item { display: flex; gap: 14px; }
.problem-item svg { width: 26px; height: 26px; color: var(--amber-deep); flex: none; margin-top: 2px; }
.problem-item h3 { font-size: 17px; margin-bottom: 4px; }
.problem-item p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---- service cards ---- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card-ico {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(150deg, #fff3df, #ffe6bd);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card-ico svg { width: 23px; height: 23px; color: var(--amber-deep); }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--muted); margin: 0; }
.card-num { float: right; font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted-2); letter-spacing: .1em; }

/* ---- split (why / about) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; }
.feature-list svg { width: 22px; height: 22px; color: var(--ok); flex: none; margin-top: 2px; }
.feature-list b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 1px; }
.feature-list span { color: var(--muted); font-size: 15.5px; }

.panel-navy {
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  color: #dbe6f0; border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-lg);
}
.panel-navy h3 { color: var(--white); font-size: 24px; }
.panel-navy .feature-list span { color: #aebfcf; }
.panel-navy .feature-list svg { color: var(--amber); }

/* ---- about ---- */
.about-card { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(150deg, var(--navy-2), var(--navy)); display: grid; place-items: center; color: var(--amber); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 32px; flex: none; }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat .n { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 44px; color: var(--navy); line-height: 1; }
.stat .n em { font-style: normal; color: var(--amber); }
.stat .l { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* ---- blog teaser ---- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post .kicker { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.post h3 { font-size: 18px; margin-bottom: 10px; }
.post p { font-size: 14.5px; color: var(--muted); margin: 0 0 16px; }
.post a { margin-top: auto; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }

/* ---- CTA band ---- */
.cta-band {
  background:
    radial-gradient(800px 400px at 85% 120%, rgba(245,165,36,.14), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white); text-align: center; padding: 78px 0;
}
.cta-band h2 { color: var(--white); font-size: clamp(28px, 4vw, 42px); font-weight: 600; max-width: 18ch; margin: 0 auto 16px; }
.cta-band p { color: #b8c7d6; font-size: 19px; max-width: 52ch; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info .ci-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info .ci-row:last-child { border-bottom: 0; }
.contact-info svg { width: 22px; height: 22px; color: var(--amber-deep); flex: none; margin-top: 3px; }
.contact-info b { display: block; color: var(--ink); font-weight: 600; }
.contact-info a { color: var(--muted); }
.contact-info span { color: var(--muted); font-size: 15.5px; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); transition: border .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,165,36,.18); background: var(--white);
}
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 13.5px; color: var(--muted-2); margin: 4px 0 0; }
.form-msg { display: none; padding: 14px 16px; border-radius: var(--radius); font-size: 15px; margin-bottom: 18px; }
.form-msg.ok { display: block; background: #eafaf2; border: 1px solid #b6e6cd; color: #1c7a4f; }
.form-msg.err { display: block; background: #fdeeee; border: 1px solid #f3c2c2; color: #b23b3b; }
/* links inside the error message inherit a readable colour, not the pale global amber */
.form-msg.err a { color: #b23b3b; text-decoration: underline; }

/* ---- footer ---- */
.site-footer { background: var(--navy); color: #9fb2c4; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer p { font-size: 15px; max-width: 36ch; }
.footer-col h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; font-family: "IBM Plex Sans", sans-serif; margin-bottom: 14px; }
.footer-col a { display: block; color: #9fb2c4; font-size: 15px; padding: 5px 0; }
.footer-col a:hover { color: var(--amber); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 13.5px; color: var(--muted-2); flex-wrap: wrap; gap: 10px; }

/* ---- page hero (interior pages) ---- */
.page-hero { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 100%); color: #cdd9e4; padding: 70px 0 64px; position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(800px 400px at 75% 0%, #000, transparent 75%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(32px, 4.6vw, 50px); font-weight: 600; max-width: 18ch; }
.page-hero p { color: #b8c7d6; font-size: 19px; max-width: 56ch; margin-bottom: 0; }

/* ---- feature rows (fiix page) ---- */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 36px 0; }
.frow + .frow { border-top: 1px solid var(--line); }
.frow:nth-child(even) .frow-media { order: -1; }
.frow h3 { font-size: 26px; margin-bottom: 12px; }
.frow p { color: var(--muted); margin: 0; }
.frow-media {
  background: linear-gradient(160deg, #fff, #f4f1ea);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  min-height: 230px; display: grid; place-items: center; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.frow-media svg { width: 76px; height: 76px; color: var(--amber-deep); opacity: .92; }
.frow-media::before { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(20,40,61,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(20,40,61,.04) 1px, transparent 1px); background-size: 30px 30px; }

/* ---- accessibility / motion ---- */
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid, .frow, .about-card { grid-template-columns: 1fr; }
  .frow:nth-child(even) .frow-media { order: 0; }
  .about-card { text-align: center; justify-items: center; }
  .problem-grid, .posts, .footer-grid, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3,1fr); }
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 70px; }
  .section { padding: 60px 0; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px 24px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Logo image sizing */
.brand img { height: 38px; width: 38px; display: block; object-fit: contain; }
.site-footer .brand img { height: 48px; width: 48px; }

@media (max-width: 700px) {
  .brand img { height: 32px; width: 32px; }
  .site-footer .brand img { height: 40px; width: 40px; }
}
