:root {
  --ink: #0f1720;
  --ink-2: #16212d;
  --steel: #233243;
  --line: #2c3d50;
  --text: #e6edf3;
  --muted: #9fb0c1;
  --blue: #2f6cc0;
  --blue-2: #3d7fd6;
  --red: #e2332b;
  --paper: #f4f6f8;
  --paper-ink: #1a2633;
  --paper-muted: #55667a;
  --radius: 10px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--paper-ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: "Barlow Condensed", Inter, sans-serif;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }

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

.eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  font-size: .95rem;
  color: var(--red);
  margin-bottom: .6em;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: .8em 1.4em;
  border-radius: 6px;
  border: 2px solid var(--blue);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--blue-2); border-color: var(--blue-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: var(--muted); }
.btn-small { padding: .45em 1em; font-size: .92rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 32, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; }
.logo-text { font-family: "Barlow Condensed", sans-serif; font-size: 1.45rem; letter-spacing: .08em; font-weight: 500; }
.logo-text b { font-weight: 700; color: #6ea2ea; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--text); }
.site-nav a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 520px at 50% -10%, #1f3f6e 0%, transparent 60%), var(--ink);
  color: var(--text);
  padding: 40px 0 64px;
}
.hero-grid {
  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: 40px 40px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); margin-bottom: .3em; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 640px; margin: 0 auto; }

/* Inline chat. The mount has no styling of its own, so nothing shows if widget.js fails. */
.hero-chat { max-width: 720px; margin: 26px auto 0; text-align: left; }
/* Beats the widget's own "#ic-wp.ic-hero { height:520px }" for this site only,
   so the input is above the fold at 1366x768 */
#hero-chat #ic-wp.ic-hero {
  height: clamp(320px, calc(100svh - 330px), 480px);
  max-height: none;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(110,162,234,.18);
}

/* Phone CTA: full buttons when there's no chat, one quiet line once the chat is live */
.hero-call { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.hero-call-line { display: none; margin: 16px 0 0; color: var(--muted); font-size: .98rem; }
.hero-call-line a { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--red); }
.hero.chat-on .hero-call { display: none; }
.hero.chat-on .hero-call-line { display: block; }

/* Return-to-chat button, shown after the hero scrolls away */
.chat-return {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .95rem; color: #fff;
  background: var(--blue); border: 0; border-radius: 999px; padding: .75em 1.15em; cursor: pointer;
  box-shadow: 0 8px 24px rgba(15,23,32,.3);
  transition: background .15s, transform .15s;
}
.chat-return:hover { background: var(--blue-2); transform: translateY(-1px); }
.chat-return svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.chat-return[hidden] { display: none; }

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: #e9edf1; }
.section-intro { color: var(--paper-muted); max-width: 620px; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card {
  background: #fff; border: 1px solid #dde3e9; border-radius: var(--radius);
  padding: 28px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,32,.07); }
.card p { color: var(--paper-muted); margin: 0; font-size: .97rem; }
.card-icon {
  width: 44px; height: 44px; border-radius: 8px; background: var(--ink);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: #6ea2ea; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.sector { border-left: 3px solid var(--blue); padding: 6px 0 6px 22px; }
.sector p { color: var(--paper-muted); margin: 0; }

/* Gallery */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 22px; }
.gallery-filters button {
  font: inherit; font-size: .9rem; font-weight: 500;
  padding: .45em 1em; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid #d3dbe3; color: var(--paper-muted);
}
.gallery-filters button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile {
  position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 4 / 5; background: #cfd6dd;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px; text-align: left; color: #fff; font-size: .92rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(10,16,22,.8));
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
.tile:hover span, .tile:focus-visible span { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8,12,16,.94);
  display: flex; align-items: center; justify-content: center; padding: 40px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: #cfd8e1; margin-top: 12px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 10px 16px; line-height: 1; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* How we work */
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.split > div p { color: var(--paper-muted); }
.note { font-weight: 600; color: var(--paper-ink) !important; }
.case {
  margin: 38px 0 0; background: #fff; border: 1px solid #dde3e9; border-top: 4px solid var(--red);
  border-radius: var(--radius); padding: 28px;
}
.case p { color: var(--paper-muted); font-size: .97rem; }
.case p:last-child { margin: 0; }
.case-label { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--blue) !important; margin-bottom: .3em; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: start; }
.about p { color: var(--paper-muted); }
.facts { list-style: none; padding: 0; margin: 38px 0 0; background: #fff; border-radius: var(--radius); border: 1px solid #dde3e9; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid #e6ebf0; }
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--paper-muted); }
.facts b { text-align: right; font-weight: 600; }

/* Contact */
.contact { background: var(--ink); color: var(--text); }
.contact p { color: var(--muted); max-width: 520px; }
.contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px;
  transition: border-color .15s;
}
.contact-card:hover { border-color: var(--blue-2); }
.contact-card span { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-card b { font-size: 1.25rem; font-weight: 600; }

/* Footer */
.site-footer { background: #0a1016; color: #6f8193; font-size: .88rem; padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Responsive */
@media (max-width: 900px) {
  .cards, .sectors, .gallery { grid-template-columns: repeat(2, 1fr); }
  .about, .contact-inner, .split { grid-template-columns: 1fr; gap: 30px; }
  .case { margin-top: 0; }
  .facts { margin-top: 0; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .site-nav a.btn { margin: 14px 24px; text-align: center; }
  .hero { padding: 32px 0 48px; }
  .hero-inner { padding: 0 16px; }
  .hero-chat { margin-top: 20px; }
  #hero-chat #ic-wp.ic-hero { height: 420px; }
  .chat-return { right: 14px; bottom: 14px; }
  .section { padding: 70px 0; }
  .cards, .sectors, .gallery { grid-template-columns: 1fr; }
  .lightbox { padding: 20px; }
  .site-footer { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
/* Privacy line under the hero chat (shown only once the chat has loaded) */
.hero-privacy { display: none; margin: 8px 0 0; color: var(--muted); font-size: .82rem; }
.hero-privacy a { color: var(--muted); }
.hero.chat-on .hero-privacy { display: block; }
.site-footer a { color: inherit; }
