/*
Theme Name: Cadogan Solutions
Theme URI: https://cadogansolutions.co.uk/
Author: Cadogan Solutions
Description: Premium technology search theme for Cadogan Solutions.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: cadogan-solutions
*/

:root {
  --ink: #252542;
  --muted: #65677a;
  --line: #dedee8;
  --paper: #f6f5f2;
  --white: #ffffff;
  --navy: #252542;
  --navy-dark: #19192f;
  --gold: #b9a06c;
  --plum: #54445b;
  --mist: #ececf3;
  --shadow: 0 22px 60px rgba(20, 21, 45, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

body.admin-bar .site-header {
  top: 32px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 245, 242, 0.93);
  border-bottom: 1px solid rgba(37, 37, 66, 0.1);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

.brand-mark {
  width: 46px;
  height: 40px;
  object-fit: contain;
  border-radius: 3px;
  background: var(--navy);
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-copy span {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle::before,
.nav-toggle::after,
.nav-toggle span {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 12px;
  color: #3e3e5b;
  font-size: 0.91rem;
  font-weight: 650;
  border-radius: 6px;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--navy);
  background: rgba(37, 37, 66, 0.08);
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--navy-dark);
  box-shadow: 0 12px 28px rgba(37, 37, 66, 0.2);
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn.light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 30%, rgba(76, 201, 240, 0.26), transparent 28%),
    linear-gradient(90deg, rgba(20, 21, 45, 0.94) 0%, rgba(20, 21, 45, 0.75) 42%, rgba(20, 21, 45, 0.2) 82%),
    url("assets/cadogan-hero.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  background: linear-gradient(0deg, rgba(246, 245, 242, 1), rgba(246, 245, 242, 0));
}

.hero-inner,
.section-inner,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 112px 0 92px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
}

h1 {
  max-width: 720px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  font-weight: 700;
}

h3 {
  font-size: 1.08rem;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions .btn.secondary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.hero-actions .btn.secondary:hover {
  background: var(--white);
  color: var(--navy-dark);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 58px;
  max-width: 760px;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.metric {
  padding: 22px;
  background: rgba(20, 21, 45, 0.58);
}

.metric strong {
  display: block;
  color: var(--white);
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 2.35rem;
  line-height: 1;
}

.metric span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--white);
}

.section.deep {
  background: var(--ink);
  color: var(--white);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 38px;
}

.section-header p,
.page-intro p,
.card p,
.split p,
.job p,
.form-note,
.footer p {
  color: var(--muted);
}

.deep .section-header p,
.deep .card p,
.deep .split p {
  color: rgba(255, 255, 255, 0.7);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  min-height: 100%;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(23, 33, 31, 0.03);
}

.deep .card,
.deep .panel {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.card .number {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--navy);
  background: var(--mist);
  border-radius: 50%;
  font-weight: 800;
}

.deep .card .number {
  color: var(--gold);
  background: rgba(185, 147, 83, 0.12);
}

.page-hero {
  padding: 86px 0 58px;
  background:
    linear-gradient(135deg, rgba(37, 37, 66, 0.13), rgba(185, 160, 108, 0.1)),
    var(--paper);
}

.page-intro {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-intro h1 {
  max-width: 920px;
  color: var(--ink);
}

.page-intro p {
  max-width: 760px;
  font-size: 1.16rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: 42px;
  align-items: start;
}

.panel {
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.list li {
  padding-left: 24px;
  position: relative;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.logo-tile {
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: var(--white);
  color: #50506a;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}

.job-list {
  display: grid;
  gap: 16px;
}

.job {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--navy-dark);
  background: var(--mist);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #3e3e5b;
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid #cfcfe0;
  border-radius: 6px;
  background: #fffdfa;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input[type="file"] {
  padding: 10px;
  background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(37, 37, 66, 0.18);
  border-color: var(--navy);
}

.success,
.notice-success {
  display: block;
  padding: 14px 16px;
  color: #252542;
  background: #ededf7;
  border: 1px solid #c9c9dd;
  border-radius: 6px;
  font-weight: 700;
}

.success:empty {
  display: none;
}

.notice-error {
  display: block;
  padding: 14px 16px;
  color: #6b1b2b;
  background: #fae7ea;
  border: 1px solid #ebb8c1;
  border-radius: 6px;
  font-weight: 700;
}

.contact-band {
  padding: 54px 0;
  background: var(--navy);
  color: var(--white);
}

.contact-band .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact-band p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer {
  padding: 48px 0;
  background: var(--navy-dark);
  color: var(--white);
}

.footer .brand {
  color: var(--white);
}

.footer .brand-copy span {
  color: rgba(255, 255, 255, 0.68);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-social {
  display: grid;
  gap: 10px;
  justify-items: end;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.social-link {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 86px 0 72px;
  }

  .metrics,
  .grid.three,
  .grid.two,
  .section-header,
  .split,
  .form-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-social {
    justify-items: start;
  }

  .logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .job {
    grid-template-columns: 1fr;
  }

  .contact-band .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 1.16rem;
  }

  .brand-mark {
    width: 40px;
    height: 36px;
  }

  .brand-copy span {
    font-size: 0.56rem;
  }

  .hero::before {
    background:
      radial-gradient(circle at 72% 22%, rgba(76, 201, 240, 0.22), transparent 26%),
      linear-gradient(90deg, rgba(20, 21, 45, 0.94), rgba(20, 21, 45, 0.54)),
      url("assets/cadogan-hero.png") 58% center / cover no-repeat;
  }

  .section {
    padding: 62px 0;
  }

  .page-hero {
    padding: 60px 0 42px;
  }

  .card,
  .panel,
  .job {
    padding: 22px;
  }

  .logos {
    grid-template-columns: 1fr;
  }
}
