/* ==========================================================================
   Monzo — contacts page
   Loaded after style.css (the page uses the site's header + main.js).
   One design for every width: rounded hero-photo panel (title, buttons)
   + white contact grid in the site's light-section style, both aligned to
   the header's gutter. Phones: panel on top, grid below. Desktop
   (≥1025px, where the header stops being a burger): sticky panel on the
   left, grid on the right.
   ========================================================================== */

:root {
  --green: #afd353;
  --green-2: #b0d94f;
  --green-hover: #9bc23c;
  --ink: #0c121d;
  --navy: #061929;
  --navy-2: #071931;
  --panel: #06142a;
  --gray: #76797b;
  --soft: rgba(12, 18, 29, 0.03);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #fff; }
body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: var(--ink);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 10px; }

/* ==========================================================================
   Photo panel
   ========================================================================== */
.lk { padding: 4px var(--gutter, 20px) 0; }
.lk-side {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: min(600px, calc(100svh - var(--header-h, 84px) - 16px));
  padding: 20px 20px 24px;
  border-radius: 24px;
  background: var(--panel);
  color: #fff;
}
.lk-side::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/hero.webp") 68% center / cover no-repeat;
  animation: heroZoom 1.8s var(--ease-out) both;
}
.lk-side::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 20, 42, 0.55) 0%, rgba(6, 20, 42, 0.05) 20%, rgba(6, 20, 42, 0.3) 36%, rgba(6, 20, 42, 0.92) 60%, var(--panel) 100%),
    linear-gradient(90deg, rgba(6, 20, 42, 0.45) 0%, rgba(6, 20, 42, 0) 65%);
}


.lk-head { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; }
.lk-tag {
  order: -1;
  margin-bottom: 20px;
  padding: 9px 10px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}
.lk-tag i { font-style: normal; color: var(--green); padding: 0 4px; }
.lk-title { max-width: 9.5em; font-size: 38px; line-height: 0.98; font-weight: 600; letter-spacing: -1.5px; }
.lk-title span { color: var(--green-2); }
.lk-lead { margin-top: 18px; max-width: 470px; font-size: 16px; line-height: 22px; color: rgba(255, 255, 255, 0.8); }

.lk-btns { display: flex; gap: 10px; margin-top: 26px; }
.lk-cta, .lk-ghost {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lk-cta { flex: 1.4; background: var(--green-2); color: var(--navy-2); }
.lk-ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.lk-cta span, .lk-ghost span { position: relative; z-index: 1; }
/* shine sweep, as on the site's buttons */
.lk-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.lk-cta:active, .lk-ghost:active { transform: scale(0.98); transition-duration: 0.1s; }

.lk-foot { font-size: 14px; color: var(--gray); }
.lk-side .lk-foot { display: none; }
.lk-foot--page { margin-top: 32px; text-align: center; }

/* ==========================================================================
   Contact grid
   ========================================================================== */
.lk-main { padding: 40px 0 32px; }
.lk-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 28px; }
.lk-itag { padding: 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5); font-size: 16px; line-height: 16px; }
.lk-intro h2 { font-size: 34px; line-height: 0.98; font-weight: 600; letter-spacing: -1px; }
.lk-intro p { font-size: 16px; line-height: 22px; color: var(--gray); }

.lk-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.lk-item--site { display: none; }
.lk-card { position: relative; border-radius: 20px; background: var(--soft); transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease); }

.lk-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(12, 18, 29, 0.05);
  color: var(--navy-2);
  transition: background-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.lk-ico svg { width: 24px; height: 24px; transition: transform 0.5s var(--ease); }
.lk-txt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lk-txt b { font-size: 18px; line-height: 1.2; font-weight: 600; }
.lk-txt span { font-size: 14px; line-height: 1.3; color: var(--gray); }
.lk-go {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(12, 18, 29, 0.18);
  color: var(--ink);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.lk-go svg { width: 16px; height: 16px; }

/* social cards: round icon + name in one row, arrow on the right */
a.lk-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 34px; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; }
a.lk-row .lk-go { position: static; }

/* phones + offices: full-width card with white tiles */
.lk-card--group { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px; }
.lk-card--offices { order: 1; }
.lk-row--head { display: flex; align-items: center; gap: 14px; padding-bottom: 6px; }
.lk-card--group .lk-ico { background: var(--green); width: 48px; height: 48px; }
.lk-card--group .lk-txt b { font-size: 20px; }
.lk-sub {
  position: relative;
  display: block;
  padding: 14px 58px 14px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(12, 18, 29, 0.04);
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.lk-sub .lk-go { top: calc(50% - 16px); right: 12px; width: 32px; height: 32px; }
.lk-sub__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lk-sub__t b { font-size: 14px; font-weight: 500; color: var(--gray); transition: color 0.3s var(--ease); }
.lk-sub__t span { font-size: 17px; line-height: 1.25; font-weight: 600; transition: color 0.3s var(--ease); }
.lk-card--phones .lk-sub__t span { white-space: nowrap; }
.lk-sub small { display: block; font-size: 13px; line-height: 1.45; color: var(--gray); transition: color 0.3s var(--ease); }
.lk-sub small i { display: none; font-style: normal; }

@media (hover: hover) {
  .lk-cta:hover { background: var(--green-hover); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(143, 184, 46, 0.75); }
  .lk-cta:hover::after { transform: translateX(120%); }
  .lk-ghost:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #fff; transform: translateY(-2px); }
  a.lk-card:hover { transform: translateY(-4px); background: rgba(12, 18, 29, 0.05); box-shadow: 0 24px 40px -28px rgba(6, 25, 41, 0.45); }
  a.lk-card:hover .lk-ico { background: var(--green); transform: scale(1.05); }
  a.lk-card:hover .lk-ico svg { transform: scale(1.08) rotate(-4deg); }
  a.lk-card:hover .lk-go { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -8px rgba(12, 18, 29, 0.6); transform: translateX(2px); }
  .lk-sub:hover { background: var(--navy); transform: translateY(-4px); box-shadow: 0 20px 34px -22px rgba(6, 25, 41, 0.7); }
  .lk-sub:hover .lk-sub__t b, .lk-sub:hover small { color: rgba(255, 255, 255, 0.6); }
  .lk-sub:hover .lk-sub__t span { color: #fff; }
  .lk-sub:hover .lk-go { background: var(--green); color: var(--navy-2); box-shadow: none; transform: translateX(2px); }
}
a.lk-card:active, .lk-sub:active { transform: scale(0.985); transition-duration: 0.1s; }

/* ---------- entrance ---------- */
.lk-head > :nth-child(1) { animation-delay: 0.08s; }
.lk-head > :nth-child(2) { animation-delay: 0.14s; }
.lk-head > :nth-child(3) { animation-delay: 0.2s; }
.lk-btns { animation-delay: 0.26s; }
.lk-intro > :nth-child(2) { animation-delay: 0.08s; }
.lk-intro > :nth-child(3) { animation-delay: 0.14s; }
.lk-list > :nth-child(1) { animation-delay: 0.2s; }
.lk-list > :nth-child(2) { animation-delay: 0.26s; }
.lk-list > :nth-child(3) { animation-delay: 0.3s; }
.lk-list > :nth-child(4) { animation-delay: 0.34s; }
.lk-list > :nth-child(6) { animation-delay: 0.42s; }
.lk-list > :nth-child(7) { animation-delay: 0.38s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: none; } }

@media (max-width: 359px) {
  .lk-title { font-size: 33px; }
  .lk-tag { font-size: 12.5px; }
  .lk-cta, .lk-ghost { font-size: 16px; padding: 0 12px; }
  a.lk-row { grid-template-columns: 46px minmax(0, 1fr) 32px; gap: 12px; }
  a.lk-row .lk-ico { width: 46px; height: 46px; }
}

/* ---------- tablets ---------- */
@media (min-width: 600px) and (max-width: 1024px) {
  .lk-side { min-height: 600px; padding: 28px 32px 36px; }
  .lk-title { font-size: 52px; letter-spacing: -2px; }
  .lk-lead { font-size: 18px; line-height: 24px; }
  .lk-btns { margin-top: 32px; }
  .lk-cta, .lk-ghost { flex: none; height: 53px; padding: 0 36px; font-size: 18px; }
  .lk-main { padding: 56px 0 40px; }
  .lk-intro h2 { font-size: 44px; }
  .lk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  a.lk-row { padding: 18px 20px 18px 18px; }
  .lk-card--group { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px; }
  .lk-row--head { grid-column: 1 / -1; }
  .lk-sub { padding: 16px 16px 18px; }
  .lk-sub .lk-go { top: 12px; }
}

/* ==========================================================================
   Desktop: sticky panel left, grid right
   ========================================================================== */
@media (min-width: 1025px) {
  .lk {
    display: grid;
    grid-template-columns: clamp(400px, 38vw, 600px) minmax(0, 1fr);
    column-gap: clamp(40px, 4.6vw, 88px);
    align-items: start;
    padding: 8px var(--gutter) 64px;
  }
  /* sticks under the compact (scrolled) header, which is 81px tall */
  .lk-side {
    position: sticky;
    top: 93px;
    height: calc(100vh - var(--header-h) - 24px);
    min-height: 560px;
    padding: 34px 44px;
  }
  .lk-side::before { background-position: 66% center; }
  .lk-side::after {
    background:
      linear-gradient(180deg, rgba(6, 20, 42, 0.55) 0%, rgba(6, 20, 42, 0.1) 22%, rgba(6, 20, 42, 0.35) 42%, rgba(6, 20, 42, 0.92) 68%, var(--panel) 100%),
      linear-gradient(90deg, rgba(6, 20, 42, 0.5) 0%, rgba(6, 20, 42, 0) 60%);
  }
  .lk-tag { margin-bottom: 26px; padding: 10px; font-size: 16px; }
  .lk-title { font-size: clamp(44px, 4.2vw, 62px); line-height: 0.96; letter-spacing: -2px; }
  .lk-lead { margin-top: 26px; font-size: 18px; line-height: 24px; }
  .lk-btns { margin-top: 38px; }
  .lk-cta, .lk-ghost { flex: none; height: 53px; padding: 0 40px; font-size: 18px; }
  .lk-side .lk-foot { display: block; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 15px; color: rgba(255, 255, 255, 0.5); }
  .lk-foot--page { display: none; }

  .lk-main { padding: clamp(28px, 6vh, 64px) 0 0; max-width: 980px; }
  .lk-intro { gap: 28px; margin-bottom: 52px; }
  .lk-itag { font-size: 18px; line-height: 18px; }
  .lk-intro h2 { font-size: clamp(40px, 3.6vw, 52px); line-height: 0.95; }
  .lk-intro p { font-size: 18px; line-height: 24px; }

  .lk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  a.lk-row { grid-template-columns: 60px minmax(0, 1fr) 40px; gap: 18px; padding: 22px 24px 22px 22px; }
  a.lk-row .lk-ico { width: 60px; height: 60px; }
  a.lk-row .lk-ico svg { width: 26px; height: 26px; }
  a.lk-row .lk-txt { gap: 6px; }
  a.lk-row .lk-txt b { font-size: 22px; }
  a.lk-row .lk-txt span { font-size: 16px; }
  a.lk-row .lk-go { width: 40px; height: 40px; }

  .lk-card--group { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 24px; }
  .lk-row--head { grid-column: 1 / -1; gap: 18px; padding-bottom: 10px; }
  .lk-card--group .lk-ico { width: 56px; height: 56px; }
  .lk-card--group .lk-txt b { font-size: 22px; }
  .lk-sub { min-height: 132px; padding: 20px 20px 22px; }
  .lk-sub .lk-go { top: 14px; right: 14px; }
  .lk-sub__t { gap: 6px; }
  .lk-sub__t b { font-size: 15px; }
  .lk-sub__t span { font-size: 19px; }
  .lk-card--phones .lk-sub__t span { font-size: 18px; }
  .lk-sub small { padding-top: 4px; font-size: 14px; white-space: nowrap; }
}
@media (min-width: 1025px) and (max-width: 1279px) {
  .lk-side { padding-left: 32px; padding-right: 32px; }
  .lk-cta, .lk-ghost { padding: 0 28px; }
}
/* narrow desktops: tiles become compact rows */
@media (min-width: 1025px) and (max-width: 1199px) {
  .lk-card--group { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lk-sub { min-height: 0; padding: 16px 64px 16px 20px; }
  .lk-sub .lk-go { top: calc(50% - 16px); }
  .lk-sub__t { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: baseline; column-gap: 14px; row-gap: 2px; }
  .lk-sub__t span, .lk-card--phones .lk-sub__t span { font-size: 18px; }
  .lk-sub small { grid-column: 2; padding: 0; white-space: normal; }
  .lk-sub small br { display: none; }
  .lk-sub small i { display: inline; }
}
@media (min-width: 1025px) and (max-height: 820px) {
  .lk-lead { display: none; }
  .lk-side .lk-foot { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
}
