/*
Theme Name: Theridion Consultancy
Theme URI: https://theridion.co.uk/
Author: Theridion Limited
Author URI: https://theridion.co.uk/
Description: Consultancy-led Theridion website for engineering, technology, infrastructure, systems integration and critical environments.
Version: 1.4.0
Text Domain: theridion-consultancy
*/

:root {
  --navy: #062c58;
  --navy-2: #073f79;
  --blue: #0b7fc1;
  --cyan: #35b6e6;
  --ink: #15283b;
  --muted: #5e6b78;
  --line: #dbe5ee;
  --soft: #f3f7fb;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(3, 44, 88, .12);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 9999;
  background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 8px;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 16px; }

.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.section-pad { padding: 92px 0; }
.alt { background: var(--soft); }
.eyebrow {
  margin: 0 0 10px; color: var(--blue); font-size: .78rem; letter-spacing: .16em;
  font-weight: 800; text-transform: uppercase;
}
.eyebrow.light { color: #7fd7ff; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; color: var(--navy); }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); letter-spacing: -.055em; margin-bottom: 26px; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.035em; margin-bottom: 18px; }
h3 { font-size: 1.3rem; }
p { margin-top: 0; }
.lead { font-size: clamp(1.08rem, 2vw, 1.28rem); color: #425466; max-width: 760px; }
.small { font-size: .92rem; }
.muted { color: var(--muted); }
.section-heading { max-width: 820px; margin-bottom: 42px; }
.section-heading.narrow { max-width: 760px; }
.section-heading > p:not(.eyebrow) { font-size: 1.08rem; color: var(--muted); }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.95); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219,229,238,.85);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 50px; height: 50px; color: var(--blue); flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: .86; }
.brand-text strong { font-size: 1.5rem; letter-spacing: .07em; }
.brand-text small { font-size: .62rem; letter-spacing: .42em; margin-left: 3px; margin-top: 8px; color: #758595; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a { text-decoration: none; font-weight: 650; font-size: .94rem; color: #32485c; }
.primary-nav a:hover { color: var(--blue); }
.nav-cta { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; }
.nav-toggle { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 9px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--navy); margin: 5px 0; }

.hero {
  min-height: 760px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 77% 18%, rgba(53,182,230,.14), transparent 25%),
    radial-gradient(circle at 82% 72%, rgba(6,44,88,.08), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 80%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .lead { max-width: 710px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--navy); color: #fff; box-shadow: 0 10px 30px rgba(6,44,88,.18); }
.button.primary:hover { background: var(--blue); }
.button.ghost { border: 1px solid #cddae6; color: var(--navy); background: rgba(255,255,255,.8); }
.button.full { width: 100%; }
.hero-points { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-points span { font-size: .87rem; color: #486173; padding: 8px 12px; background: #eff6fb; border-radius: 999px; }

.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.hero-visual:before {
  content: ""; position: absolute; width: 390px; height: 390px; border-radius: 50%;
  background: linear-gradient(145deg, rgba(6,44,88,.96), rgba(11,127,193,.9));
  box-shadow: 0 35px 90px rgba(6,44,88,.22);
}
.hero-visual svg { position: relative; z-index: 3; filter: drop-shadow(0 8px 28px rgba(53,182,230,.16)); }
.orbit { position: absolute; border: 1px solid rgba(11,127,193,.14); border-radius: 50%; }
.orbit-one { width: 480px; height: 480px; }
.orbit-two { width: 570px; height: 320px; transform: rotate(18deg); }
.orbit-three { width: 360px; height: 560px; transform: rotate(-26deg); }
.visual-label {
  position: absolute; z-index: 5; background: #fff; color: var(--navy);
  padding: 9px 12px; border-radius: 10px; font-weight: 800; font-size: .72rem; letter-spacing: .08em;
  box-shadow: 0 10px 25px rgba(6,44,88,.14); border: 1px solid #dbe5ee;
}
.label-one { top: 17%; left: 11%; }
.label-two { top: 28%; right: 4%; }
.label-three { bottom: 22%; left: 2%; }
.label-four { bottom: 12%; right: 12%; }

.proof-strip { background: var(--navy); color: #fff; padding: 26px 0; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.proof-grid div { display: grid; gap: 3px; }
.proof-grid strong { font-size: 1rem; }
.proof-grid span { color: #bfd1e3; font-size: .9rem; }

.process-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.process-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; background: #fff; min-height: 230px; }
.process-card span { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--soft); color: var(--blue); font-weight: 800; margin-bottom: 42px; }
.process-card h3 { margin-bottom: 8px; }
.process-card p { font-size: .92rem; color: var(--muted); margin: 0; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 10px 30px rgba(6,44,88,.05); }
.service-card.featured { border-color: rgba(11,127,193,.35); box-shadow: var(--shadow); }
.icon-box { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: #eaf5fb; color: var(--blue); font-size: 1.5rem; margin-bottom: 22px; }
.service-card p { color: var(--muted); }
ul { padding-left: 20px; }
li { margin: 7px 0; }

.expertise-panel { margin-top: 34px; border-radius: var(--radius); padding: 38px; background: linear-gradient(135deg, var(--navy), #0a558d); color: #fff; display: grid; grid-template-columns: .9fr 1.4fr; gap: 40px; align-items: center; }
.expertise-panel h2 { color: #fff; margin-bottom: 0; font-size: clamp(1.7rem,3vw,2.6rem); }
.expertise-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.expertise-tags span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); padding: 8px 11px; border-radius: 999px; font-size: .85rem; }

.sector-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.sector-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; background: #fff; min-height: 330px; position: relative; overflow: hidden; }
.sector-card:after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; bottom: -70px; border-radius: 50%; background: rgba(11,127,193,.07); }
.sector-card.dark { background: var(--navy); color: #d8e6f2; border-color: transparent; }
.sector-card.dark h3 { color: #fff; }
.sector-card.dark:after { background: rgba(255,255,255,.06); }
.sector-number { font-size: .82rem; font-weight: 800; color: var(--blue); letter-spacing: .1em; margin-bottom: 48px; }
.dark .sector-number { color: #7fd7ff; }
.sector-card h3 { font-size: 1.65rem; }
.sector-card > p { max-width: 90%; }
.sector-card .small { color: var(--muted); }
.sector-card.dark .small { color: #a9bfd3; }

.experience { background: linear-gradient(135deg, #062c58, #0a4d82); color: #d8e6f2; }
.experience-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: start; }
.experience h2 { color: #fff; }
.experience-copy > p:not(.eyebrow) { font-size: 1.05rem; color: #bfd1e3; max-width: 760px; }
.experience-list { margin-top: 34px; display: grid; gap: 18px; }
.experience-list div { display: grid; gap: 5px; padding-left: 18px; border-left: 2px solid rgba(127,215,255,.45); }
.experience-list strong { color: #fff; }
.experience-list span { color: #bfd1e3; }
.award-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 30px; box-shadow: 0 20px 70px rgba(0,0,0,.15); }
.award-card h3 { font-size: 1.7rem; margin-bottom: 12px; }
.award-title { font-weight: 900; color: var(--navy); font-size: 1.35rem; line-height: 1.18; margin-top: 28px; }
.award-year { color: var(--blue); font-weight: 800; margin: 8px 0 20px; }

.why-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.why-copy p { font-size: 1.05rem; color: #52687a; }
.platform-wrap { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line); }
.platform-title { color: #647689; font-weight: 800; margin-bottom: 18px; }
.partner-logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.partner-logo-card { min-height: 100px; display: flex; align-items: center; justify-content: center; padding: 20px 22px; background: #fff; border: 1px solid #d6e2ec; border-radius: 16px; box-shadow: 0 7px 22px rgba(3,44,88,.05); }
.partner-logo-card img { display: block; width: 100%; max-width: 150px; max-height: 56px; object-fit: contain; }
.partner-logo-card a { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: center; }
.partner-logo-card.partner-solink img { max-width: 175px; max-height: 60px; }
.partner-logo-card.partner-paxton img { max-width: 170px; max-height: 52px; }
.partner-logo-card.partner-tridium { padding-left: 6px; padding-right: 6px; overflow: hidden; }
.partner-logo-card.partner-tridium img { max-width: 210px; max-height: 72px; transform: scale(2.25); transform-origin: center; }
.partner-logo-card.partner-unifi { overflow: hidden; }
.partner-logo-card.partner-unifi img { max-width: 175px; max-height: 62px; transform: scale(1.45); transform-origin: center; }
.partner-logo-card.partner-trend img { max-width: 175px; max-height: 62px; }
.partner-logo-card.partner-logo-dark { background: #062c58; }
.partner-logo-card.partner-logo-dark img { max-height: 66px; width: auto; }
.technology-note { margin: 20px 0 0; color: #52687a; font-size: .94rem; }
.partner-status { margin: 8px 0 0; color: var(--navy); font-size: .9rem; font-weight: 700; }

.certification-panel {
  margin-top: 28px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: center;
  background: #fff;
  border: 1px solid #d6e2ec;
  border-radius: 18px;
  box-shadow: 0 7px 22px rgba(3,44,88,.05);
}
.certification-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.certification-mark img {
  display: block;
  width: 118px;
  height: auto;
}
.certification-copy .eyebrow { margin-bottom: 7px; }
.certification-copy h3 { margin-bottom: 8px; font-size: 1.35rem; }
.certification-copy p:last-child { margin-bottom: 0; color: #52687a; }

.contact { background: #0b7fc1; color: #eaf7ff; }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 58px; align-items: center; }
.contact h2 { color: #fff; }
.contact p { color: #d8effb; font-size: 1.05rem; }
.contact-card { background: #fff; color: var(--ink); padding: 28px; border-radius: var(--radius); box-shadow: 0 24px 65px rgba(0,0,0,.15); }
.contact-row { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.contact-row span { color: var(--muted); }
.contact-row a { color: var(--navy); font-weight: 800; text-decoration: none; }
.contact-card .button { margin-top: 20px; }

.site-footer { background: #041e3b; color: #b7c9d8; padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.1fr .6fr; gap: 40px; }
.footer-brand { color: #fff; }
.footer-copy { margin-top: 18px; }
.footer-grid strong { color: #fff; }
.footer-grid p { font-size: .88rem; }
.footer-links { display: grid; align-content: start; gap: 9px; }
.footer-links a { text-decoration: none; color: #dce7f0; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; font-size: .8rem; color: #849bad; }

@media (max-width: 1050px) {
  .hero-grid, .experience-grid, .contact-grid, .why-grid, .expertise-panel { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-visual { min-height: 430px; }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { max-width: 840px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partner-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .section-pad { padding: 70px 0; }
  .primary-nav {
    position: fixed; inset: 78px 0 auto 0; padding: 18px 20px 26px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 35px rgba(6,44,88,.08);
    display: grid; gap: 10px; transform: translateY(-130%); transition: transform .25s ease;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav a { padding: 10px 0; }
  .nav-toggle { display: block; }
  .hero-grid { gap: 0; }
  .hero-visual { min-height: 360px; }
  .hero-visual:before { width: 300px; height: 300px; }
  .orbit-one { width: 350px; height: 350px; }
  .orbit-two { width: 400px; height: 250px; }
  .orbit-three { width: 280px; height: 410px; }
  .proof-grid, .sector-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section-pad { padding: 58px 0; }
  h1 { font-size: 2.6rem; }
  .brand-text strong { font-size: 1.22rem; }
  .brand-mark { width: 42px; height: 42px; }
  .hero { padding-top: 64px; }
  .hero-visual { min-height: 300px; }
  .hero-visual:before { width: 245px; height: 245px; }
  .orbit { display: none; }
  .visual-label { font-size: .62rem; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { min-height: auto; }
  .process-card span { margin-bottom: 28px; }
  .service-card, .sector-card, .expertise-panel, .award-card, .contact-card { padding: 24px; }
  .contact-row { grid-template-columns: 1fr; gap: 2px; }
  .certification-panel { grid-template-columns: 1fr; text-align: center; padding: 22px; }
  .certification-mark img { width: 104px; }
  .certification-copy .eyebrow { text-align: center; }
}

/* 2026 brand refresh — based on Theridion master artwork supplied */
:root {
  --brand-blue: #0065b2;
  --brand-sky: #1598df;
  --brand-navy: #07366d;
}

.brand {
  position: relative;
  gap: 8px;
  min-width: 230px;
}
.brand-logo {
  display: block;
  width: 215px;
  height: auto;
}
.brand-limited {
  position: absolute;
  left: 67px;
  bottom: -2px;
  color: #66798b;
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .42em;
}

.site-header {
  border-top: 4px solid var(--brand-blue);
}
.primary-nav a:hover { color: var(--brand-blue); }
.nav-cta {
  border-color: rgba(0,101,178,.25);
  color: var(--brand-blue) !important;
}
.nav-cta:hover { background: #edf7fd; }

.hero {
  background:
    radial-gradient(circle at 18% 22%, rgba(21,152,223,.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}
.hero-grid { grid-template-columns: 1.02fr .98fr; gap: 54px; }
.hero-copy .eyebrow { color: var(--brand-blue); }
.button.primary { background: var(--brand-blue); }
.button.primary:hover { background: var(--brand-navy); }
.hero-points span { background: #eef7fc; }

.hero-visual {
  min-height: 540px;
  place-items: stretch;
}
.hero-visual:before,
.orbit { display: none; }
.brand-panel {
  position: relative;
  min-height: 520px;
  width: 100%;
  overflow: hidden;
  border-radius: 42px 0 42px 0;
  background:
    linear-gradient(118deg, rgba(8,56,110,.02) 0 30%, transparent 30%),
    linear-gradient(135deg, #123d73 0%, #082e63 54%, #061f49 100%);
  box-shadow: 0 28px 70px rgba(6,44,88,.20);
}
.brand-panel:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.05), transparent 46%);
  pointer-events: none;
}
.brand-panel-sweep {
  position: absolute;
  z-index: 1;
  left: -20%;
  top: -16%;
  width: 58%;
  height: 142%;
  background: linear-gradient(145deg, #0783cf 0%, #26a9ee 70%);
  transform: skewX(-15deg);
  border-radius: 0 0 44px 0;
  box-shadow: 18px 0 46px rgba(3,36,76,.18);
}
.hero-logo-white {
  position: absolute;
  z-index: 4;
  left: 8%;
  top: 9%;
  width: 72%;
  max-width: 455px;
  height: auto;
  object-fit: contain;
}
.hero-network {
  position: absolute;
  z-index: 2;
  inset: 18% -6% -2% 18%;
  opacity: .62;
}
.hero-network svg { width: 100%; height: 100%; }
.brand-panel-line {
  position: absolute;
  z-index: 5;
  left: 10%;
  bottom: 8%;
  margin: 0;
  color: rgba(255,255,255,.90);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.brand-panel-line span { color: #52c1ef; padding: 0 5px; }
.hero-visual .visual-label {
  z-index: 8;
  border: 0;
  color: #0b477d;
  box-shadow: 0 12px 30px rgba(3,36,76,.25);
}
.label-one { top: 32%; left: 3%; }
.label-two { top: 37%; right: -3%; }
.label-three { bottom: 19%; left: -2%; }
.label-four { bottom: 14%; right: 4%; }

.proof-strip { background: var(--brand-navy); }
.expertise-panel,
.experience {
  background: linear-gradient(135deg, #072f63, #075f9f);
}
.contact { background: linear-gradient(125deg, var(--brand-blue), #118fd4); }
.site-footer { background: #041f45; }
.footer-logo {
  display: block;
  width: 230px;
  height: auto;
}
.footer-brand { min-width: 0; }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { min-height: 460px; }
  .brand-panel { min-height: 440px; }
  .hero-logo-white { width: 62%; }
}

@media (max-width: 820px) {
  .brand-logo { width: 188px; }
  .brand { min-width: 205px; }
  .brand-limited { left: 59px; }
  .hero-visual { min-height: 400px; }
  .brand-panel { min-height: 380px; border-radius: 28px 0 28px 0; }
  .hero-logo-white { width: 70%; left: 8%; top: 8%; }
  .brand-panel-line { left: 8%; right: 8%; line-height: 1.6; }
}

@media (max-width: 560px) {
  .brand-logo { width: 160px; }
  .brand { min-width: 176px; }
  .brand-limited { left: 50px; bottom: -4px; font-size: .45rem; }
  .hero-visual { min-height: 330px; }
  .brand-panel { min-height: 315px; }
  .brand-panel-sweep { width: 66%; }
  .hero-logo-white { width: 79%; left: 6%; }
  .brand-panel-line { font-size: .58rem; letter-spacing: .11em; }
  .visual-label { display: none; }
  .footer-logo { width: 205px; }
}
