/* ---------------------------------------------------------------
   LP3 Solutions
   --------------------------------------------------------------- */

:root {
  /* Brand palette, per SITE.md. */
  --primary: #546896;
  --secondary: #df6613;
  --tertiary: #6d973f;

  /* Darkened variants of the brand colours, used wherever the colour
     carries small text. The brand values themselves clear 3:1 but not
     the 4.5:1 that body-size text needs. */
  --primary-dark: #3c4c72;
  --secondary-text: #c25610;
  --secondary-deep: #c05810;
  --tertiary-text: #5d8136;

  --ink: #1f2430;
  --ink-soft: #4a5262;
  --rule: #dfe3ea;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;

  --wrap: 1100px;
  --radius: 6px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  /* Keep in-page anchors clear of the sticky header. */
  scroll-padding-top: 90px;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.2;
  color: var(--primary-dark);
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.8rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

a { color: var(--secondary-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover,
a:focus-visible { color: var(--secondary-deep); }

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

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 0.5rem; top: -3rem;
  z-index: 100;
  background: var(--primary-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  transition: top 0.15s;
}
.skip-link:focus { top: 0.5rem; color: #fff; }

/* --- Header ---------------------------------------------------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.site-header__logo img { width: 168px; height: auto; }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--secondary-text); border-bottom-color: var(--secondary); }
.site-nav a[aria-current="page"] { color: var(--secondary-text); border-bottom-color: var(--secondary); }

.site-nav__login {
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius);
  padding: 0.5rem 0.95rem !important;
  border-bottom: 0 !important;
}
.site-nav__login:hover,
.site-nav__login:focus-visible { background: var(--primary-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 10px 24px rgba(31, 36, 48, 0.09);
  }
  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .site-nav li + li { border-top: 1px solid var(--rule); }
  .site-nav a { padding: 0.85rem 0; border-bottom: 0; }
  .site-nav__login { margin-top: 0.9rem; justify-content: center; }
}

/* --- Hero ------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  display: grid;
  align-items: center;
  min-height: clamp(380px, 52vw, 520px);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(105deg,
      rgba(28, 38, 64, 0.92) 0%,
      rgba(43, 56, 92, 0.82) 45%,
      rgba(84, 104, 150, 0.62) 100%),
    url("/assets/img/hero-chillers.jpg");
  background-size: cover;
  background-position: center 60%;
}

.hero__inner { padding: 3.5rem 0; max-width: 46rem; }

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #b9c6e4;
  margin-bottom: 0.9rem;
}

.hero__title {
  color: #fff;
  font-size: clamp(1.95rem, 1.2rem + 3vw, 3.05rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}

.hero__lede {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  color: #e4eaf6;
  max-width: 38rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  background: var(--secondary-deep);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid var(--secondary-deep);
}
.btn:hover,
.btn:focus-visible { background: #a8490c; border-color: #a8490c; }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover,
.btn--ghost:focus-visible { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* --- Front page sections --------------------------------------- */

.intro {
  padding: 3.25rem 0 1rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 54rem;
}

.section-title {
  border-top: 3px solid var(--tertiary);
  padding-top: 0.9rem;
  display: inline-block;
}

.services { padding: 2rem 0 3.5rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card p { margin-bottom: 0; color: var(--ink-soft); }
.card__title { color: var(--primary); }

.band {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 3.5rem 0;
}

.band__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.band__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.band__list li {
  padding: 0.7rem 0 0.7rem 1.6rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  color: var(--ink-soft);
}
.band__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.25rem;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--tertiary);
}

@media (max-width: 767px) {
  .band__inner { grid-template-columns: 1fr; gap: 1.75rem; }
}

.cta {
  text-align: center;
  padding: 3.5rem 0 4rem;
}
.cta p { color: var(--ink-soft); }

/* --- Interior pages -------------------------------------------- */

.page-head {
  background: var(--primary-dark);
  color: #fff;
  padding: 2.75rem 0;
  margin-bottom: 2.75rem;
}
.page-head h1 { color: #fff; margin-bottom: 0; }
.page-head__intro {
  color: #ccd6ec;
  margin: 0.6rem 0 0;
  font-size: 1.08rem;
}

/* --- Team ------------------------------------------------------ */

.team {
  list-style: none;
  margin: 0 0 4rem;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.person {
  display: flex;
  gap: 1.1rem;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
}

.person__photo {
  width: 96px;
  height: 96px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  background: var(--bg-soft);
}

.person__body { min-width: 0; }
.person__name { font-size: 1.1rem; margin-bottom: 0.15rem; }
.person__title {
  color: var(--tertiary-text);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}
.person__blurb {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* --- Blog ------------------------------------------------------ */

.post-list {
  list-style: none;
  margin: 0 0 4rem;
  padding: 0;
}

.post-list__item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.post-list__item:first-child { padding-top: 0; }
.post-list__title { margin-bottom: 0.5rem; }
.post-list__title a { color: var(--primary-dark); text-decoration: none; }
.post-list__title a:hover,
.post-list__title a:focus-visible { color: var(--secondary-text); text-decoration: underline; }

.post__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.page-head .post__meta { color: #ccd6ec; }

.tag {
  background: var(--tertiary-text);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
}

.more { font-weight: 600; text-decoration: none; }
.more:hover, .more:focus-visible { text-decoration: underline; }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose blockquote {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.2rem;
  background: var(--bg-soft);
  border-left: 4px solid var(--tertiary);
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

.post__back { padding: 2rem 0 4rem; }

/* --- Footer ---------------------------------------------------- */

.site-footer {
  background: var(--primary-dark);
  color: #d5deef;
  padding: 2rem 0 2.5rem;
  margin-top: auto;
}

.back-to-top { text-align: right; margin-bottom: 1.5rem; }
.back-to-top a,
.site-footer a { color: #fff; text-decoration: none; }
.back-to-top a:hover,
.site-footer a:hover,
.site-footer a:focus-visible { text-decoration: underline; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer__logo {
  width: 168px;
  background: #fff;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
}

.site-footer__tagline {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: 0.95rem;
}

.site-footer h2 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.site-footer address { font-style: normal; line-height: 1.6; }

.site-footer__legal {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: #b0bed9;
}

@media (max-width: 767px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}
