/* ==========================================================================
   OutSouth — Glasgow media edition
   Extends the landing-page system (lp-*) with richer, finance-grade
   section layouts, imagery treatments and motion. Brand tokens unchanged:
   navy #001D4F, accent #0A58A0, sky #58b8e8, Questrial + Roboto.
   ========================================================================== */

/* ---------- section framework ---------- */
.gm-main { width: 100%; overflow-x: clip; }
.gm-section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px 28px;
  box-sizing: border-box;
  position: relative;
}
.gm-compact { min-height: 0; padding: 84px 28px; }
.gm-inner { max-width: 1180px; margin: 0 auto; width: 100%; position: relative; z-index: 2; }
.gm-center { text-align: center; }

/* palettes */
.gm-light { background-color: #ffffff; color: #4a4d55; }
.gm-grey  { background-color: #f7f9fc; color: #4a4d55; }
.gm-navy {
  background-color: #001D4F;
  background-image: linear-gradient(rgba(0, 29, 79, .66), rgba(0, 29, 79, .82)),
    url("../images/codioful-formerly-gradienta-OzfD79w8ptA-unsplash-scaled.jpg");
  background-size: cover;
  background-position: center right;
  color: #fff;
}

/* photo bands: navy duotone over imagery for brand cohesion */
.gm-photo { background-size: cover; background-position: center; color: #fff; }
.gm-photo-london    { background-image: linear-gradient(rgba(0,29,79,.78), rgba(0,29,79,.6)),  url("../images/os-london-city.jpg"); }
.gm-photo-panorama  { background-image: linear-gradient(rgba(0,29,79,.55), rgba(0,29,79,.72)), url("../images/os-london-panorama.jpg"); }
.gm-photo-capetown  { background-image: linear-gradient(rgba(0,29,79,.6), rgba(0,29,79,.78)),  url("../images/os-capetown.jpg"); }
.gm-photo-analytics { background-image: linear-gradient(rgba(0,29,79,.82), rgba(0,29,79,.66)), url("../images/os-analytics.jpg"); }
.gm-photo-team      { background-image: linear-gradient(rgba(0,29,79,.78), rgba(0,29,79,.66)), url("../images/os-team-city.jpg"); }

/* subtle patterns so light sections are never flat */
.gm-grid-pattern {
  background-image: linear-gradient(rgba(10,88,160,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,88,160,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.gm-dot-pattern {
  background-image: radial-gradient(rgba(10,88,160,.08) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
}
/* soft radial glows on dark bands */
.gm-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 380px at 12% 18%, rgba(88,184,232,.16), transparent 70%),
    radial-gradient(640px 420px at 88% 85%, rgba(10,88,160,.3), transparent 72%);
  pointer-events: none;
  z-index: 1;
}

/* ---------- type ---------- */
.gm-kicker {
  font: 700 13px/1 "Roboto", Helvetica, Arial, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #0A58A0;
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.gm-kicker::before { content: ""; width: 34px; height: 2px; background: #58b8e8; }
.gm-center .gm-kicker::after { content: ""; width: 34px; height: 2px; background: #58b8e8; }
.gm-navy .gm-kicker, .gm-photo .gm-kicker { color: #58b8e8; }

.gm-h1, .gm-h2 {
  font-family: "Questrial", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: #001D4F;
  line-height: 1.12;
  margin: 0 0 22px;
}
.gm-h1 { font-size: clamp(38px, 5.2vw, 64px); }
.gm-h2 { font-size: clamp(30px, 3.6vw, 44px); }
.gm-navy .gm-h1, .gm-navy .gm-h2, .gm-photo .gm-h1, .gm-photo .gm-h2 { color: #fff; }
.gm-accent { color: #58b8e8; }

.gm-lede {
  font: 400 clamp(16px, 1.55vw, 19px)/1.7 "Roboto", Helvetica, Arial, sans-serif;
  max-width: 720px;
  margin: 0 0 34px;
  color: #5a5e66;
}
.gm-center .gm-lede { margin-left: auto; margin-right: auto; }
.gm-navy .gm-lede, .gm-photo .gm-lede { color: rgba(255,255,255,.88); }

/* ---------- split layout ---------- */
.gm-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
.gm-split.gm-flip > .gm-media { order: -1; }
.gm-media { position: relative; }
.gm-media img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  display: block;
  box-shadow: 0 30px 60px rgba(0, 29, 79, .22);
}
/* offset accent frame behind images */
.gm-media::before {
  content: "";
  position: absolute;
  inset: 26px -26px -26px 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(10,88,160,.16), rgba(88,184,232,.1));
  z-index: -1;
}
.gm-media .gm-media-badge {
  position: absolute;
  left: -18px;
  bottom: 26px;
  background: #001D4F;
  color: #fff;
  border-radius: 14px;
  padding: 16px 22px;
  box-shadow: 0 18px 40px rgba(0,29,79,.35);
  font-family: "Roboto", sans-serif;
}
.gm-media .gm-media-badge strong {
  display: block;
  font-family: "Questrial", sans-serif;
  font-weight: 400;
  font-size: 26px;
  color: #58b8e8;
  line-height: 1.1;
}
.gm-media .gm-media-badge span { font-size: 12.5px; color: rgba(255,255,255,.75); }

/* ---------- service feature cards (home) ---------- */
.gm-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 46px;
  text-align: left;
}
.gm-service {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 29, 79, .1);
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex;
  flex-direction: column;
}
.gm-service:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(0, 29, 79, .18); }
.gm-service .gm-service-img { height: 230px; overflow: hidden; }
.gm-service .gm-service-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s ease;
}
.gm-service:hover .gm-service-img img { transform: scale(1.06); }
.gm-service .gm-service-body { padding: 30px 30px 34px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.gm-service h3 {
  font-family: "Questrial", sans-serif;
  font-weight: 400;
  font-size: 26px;
  color: #001D4F;
  margin: 0 0 10px;
}
.gm-service p { margin: 0 0 22px; color: #5a5e66; font-size: 15px; line-height: 1.65; flex: 1; }

/* ---------- stats with counters ---------- */
.gm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
  width: 100%;
}
.gm-stat {
  text-align: center;
  padding: 30px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
}
.gm-light .gm-stat, .gm-grey .gm-stat {
  background: #fff;
  border: 1px solid rgba(10,88,160,.12);
  box-shadow: 0 12px 32px rgba(0,29,79,.07);
}
.gm-stat-num {
  font-family: "Questrial", sans-serif;
  font-size: clamp(40px, 4.4vw, 58px);
  color: #58b8e8;
  line-height: 1.05;
}
.gm-light .gm-stat-num, .gm-grey .gm-stat-num { color: #0A58A0; }
.gm-stat-label { font-size: 14px; margin-top: 8px; color: rgba(255,255,255,.75); }
.gm-light .gm-stat-label, .gm-grey .gm-stat-label { color: #6a6e76; }

/* ---------- process timeline ---------- */
.gm-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  counter-reset: gmstep;
  margin: 44px 0 10px;
  text-align: left;
}
.gm-step {
  background: #fff;
  border-radius: 16px;
  padding: 26px 22px 24px;
  border-top: 3px solid #0A58A0;
  box-shadow: 0 12px 30px rgba(0,29,79,.08);
  position: relative;
  transition: transform .3s ease;
}
.gm-step:hover { transform: translateY(-6px); }
.gm-step::before {
  counter-increment: gmstep;
  content: counter(gmstep, decimal-leading-zero);
  font-family: "Questrial", sans-serif;
  font-size: 15px;
  color: #fff;
  background: #0A58A0;
  border-radius: 8px;
  padding: 5px 10px;
  display: inline-block;
  margin-bottom: 14px;
}
.gm-step h4 { font-family: "Questrial", sans-serif; font-weight: 400; font-size: 19px; color: #001D4F; margin: 0 0 8px; }
.gm-step p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #6a6e76; }

/* even 3-per-row variant (3 top, 3 bottom) */
.gm-steps-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .gm-steps-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .gm-steps-3 { grid-template-columns: 1fr; } }

/* ---------- vertical timeline (How It Works) ---------- */
.gm-timeline { position: relative; max-width: 900px; margin: 52px auto 8px; text-align: left; }
.gm-timeline::before {
  content: "";
  position: absolute;
  left: 50%; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, #58b8e8, #0A58A0 65%, rgba(10,88,160,.15));
  transform: translateX(-50%);
}
.gm-tl-item { position: relative; width: 50%; padding: 0 56px 48px 0; text-align: right; box-sizing: border-box; }
.gm-tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 48px 56px; text-align: left; }
.gm-tl-item:last-child { padding-bottom: 6px; }
.gm-tl-item::after {
  content: attr(data-step);
  position: absolute;
  top: -4px; right: -26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #001D4F;
  border: 2px solid #58b8e8;
  color: #58b8e8;
  font: 400 17px/48px "Questrial", sans-serif;
  text-align: center;
  box-shadow: 0 0 0 7px rgba(88,184,232,.14);
}
.gm-tl-item:nth-child(even)::after { right: auto; left: -26px; }
.gm-tl-item h4 { font-family: "Questrial", sans-serif; font-weight: 400; font-size: 23px; color: #001D4F; margin: 8px 0 8px; }
.gm-tl-item p { margin: 0; font-size: 14.5px; line-height: 1.65; color: #6a6e76; max-width: 340px; display: inline-block; }
@media (max-width: 760px) {
  .gm-timeline::before { left: 23px; transform: none; }
  .gm-tl-item, .gm-tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 40px 72px; text-align: left; }
  .gm-tl-item::after, .gm-tl-item:nth-child(even)::after { left: 0; right: auto; }
}

/* ---------- editorial value rows (We believe in) ---------- */
.gm-values { max-width: 880px; margin: 44px auto 0; text-align: left; }
.gm-value {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 14px;
  border-top: 1px solid rgba(255,255,255,.16);
  transition: background .3s ease, transform .3s ease, padding-left .3s ease;
}
.gm-value:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.gm-value:hover { background: rgba(255,255,255,.05); transform: translateX(10px); }
.gm-value-num {
  font-family: "Questrial", sans-serif;
  font-size: 62px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(88,184,232,.85);
  text-stroke: 1.5px rgba(88,184,232,.85);
}
.gm-value h4 { font-family: "Questrial", sans-serif; font-weight: 400; font-size: 25px; color: #fff; margin: 4px 0 8px; }
.gm-value p { margin: 0; font-size: 15.5px; line-height: 1.65; color: rgba(255,255,255,.82); }
@media (max-width: 620px) {
  .gm-value { grid-template-columns: 64px 1fr; gap: 18px; padding: 26px 6px; }
  .gm-value-num { font-size: 38px; }
}

/* ---------- readability on photo bands ---------- */
.gm-photo-capetown { background-image: linear-gradient(rgba(0,22,58,.76), rgba(0,22,58,.86)), url("../images/os-capetown.jpg"); }
.gm-photo .gm-card {
  background: rgba(0, 22, 58, .58);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border-color: rgba(255,255,255,.22);
}
.gm-photo .gm-card h4 { font-size: 21px; }
.gm-photo .gm-card p { color: rgba(255,255,255,.94); font-size: 15px; }
.gm-photo .gm-lede { color: rgba(255,255,255,.95); }

/* ---------- marquee ---------- */
.gm-marquee {
  overflow: hidden;
  padding: 26px 0;
  background: #001D4F;
  border-top: 1px solid rgba(88,184,232,.25);
  border-bottom: 1px solid rgba(88,184,232,.25);
  display: flex;
}
.gm-marquee-track {
  display: flex;
  flex-shrink: 0;
  min-width: 100%;
  gap: 64px;
  padding-right: 64px;
  align-items: center;
  animation: gm-marquee 44s linear infinite;
  will-change: transform;
}
.gm-marquee:hover .gm-marquee-track { animation-play-state: paused; }
.gm-marquee-track span {
  font: 400 15px/1 "Questrial", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 64px;
}
.gm-marquee-track span::after { content: "\2726"; color: #58b8e8; font-size: 11px; }
@keyframes gm-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- chips ---------- */
.gm-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 30px 0 8px; }
.gm-chip {
  font: 500 14.5px/1.3 "Roboto", sans-serif;
  color: #001D4F;
  background: #f0f6fb;
  border: 1.5px solid rgba(10,88,160,.25);
  border-radius: 100px;
  padding: 11px 22px;
  transition: transform .25s ease, background .25s ease;
}
.gm-chip:hover { transform: translateY(-3px); background: #e2eef8; }
.gm-navy .gm-chip, .gm-photo .gm-chip {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}

/* ---------- value / reason cards ---------- */
.gm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 42px 0 8px; text-align: left; }
.gm-card {
  background: #fff;
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: 0 14px 36px rgba(0,29,79,.08);
  border: 1px solid rgba(10,88,160,.07);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gm-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,29,79,.14); }
.gm-card .gm-ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0A58A0, #58b8e8);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: #fff;
}
.gm-card h4 { font-family: "Questrial", sans-serif; font-weight: 400; font-size: 20px; color: #001D4F; margin: 0 0 8px; }
.gm-card p { margin: 0; font-size: 14px; line-height: 1.65; color: #6a6e76; }
.gm-navy .gm-card, .gm-photo .gm-card {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
}
.gm-navy .gm-card h4, .gm-photo .gm-card h4 { color: #fff; }
.gm-navy .gm-card p, .gm-photo .gm-card p { color: rgba(255,255,255,.8); }

/* ---------- checklist (two column) ---------- */
.gm-checks {
  list-style: none; margin: 34px 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 13px 36px; text-align: left;
}
.gm-checks li { position: relative; padding-left: 34px; font-size: 15.5px; line-height: 1.6; }
.gm-checks li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 21px; height: 21px; border-radius: 50%;
  background: #0A58A0 url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 5-5L12.6 5z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.gm-navy .gm-checks li, .gm-photo .gm-checks li { color: rgba(255,255,255,.9); }

/* ---------- buttons (extends lp-btn) ---------- */
.gm-btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.gm-center .gm-btn-row { justify-content: center; }
.lp-btn { position: relative; overflow: hidden; }
.lp-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.lp-btn:hover::after { left: 130%; }

/* ---------- hero ---------- */
.gm-hero { overflow: hidden; }
.gm-hero .gm-inner { max-width: 1180px; }
.gm-hero-bg-zoom { animation: gm-zoom 22s ease-in-out infinite alternate; }
@keyframes gm-zoom { from { background-size: 100% auto; } to { background-size: 112% auto; } }
@media (max-width: 900px) { .gm-hero-bg-zoom { animation: none; background-size: cover; } }
.gm-scroll-cue {
  position: absolute;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 16px;
  z-index: 3;
}
.gm-scroll-cue::before {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 9px;
  margin-left: -2px;
  border-radius: 3px;
  background: #58b8e8;
  animation: gm-cue 1.8s ease-in-out infinite;
}
@keyframes gm-cue { 0%,100% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(13px); opacity: 0; } }

/* ---------- reveal-on-scroll ---------- */
[data-rv] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--rv-delay, 0s);
  will-change: opacity, transform;
}
[data-rv="left"]  { transform: translateX(-44px); }
[data-rv="right"] { transform: translateX(44px); }
[data-rv="scale"] { transform: scale(.92); }
.rv-in[data-rv], [data-rv].rv-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-rv] { opacity: 1; transform: none; transition: none; }
  .gm-hero-bg-zoom, .gm-marquee-track, .gm-scroll-cue::before { animation: none; }
}

/* ---------- contact form ---------- */
.gm-form {
  text-align: left;
  font-family: "Roboto", sans-serif;
  background: #ffffff;
  border: 1.5px solid rgba(10, 88, 160, .18);
  border-radius: 20px;
  padding: 32px 28px 28px;
  box-shadow: 0 20px 48px rgba(0, 29, 79, .12);
}
.gm-form label { display: block; margin: 0 0 18px; font-weight: 700; font-size: 14px; color: #001D4F; }
.gm-form input[type="text"], .gm-form input[type="email"], .gm-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 15px 18px;
  border: 2px solid rgba(10, 88, 160, .38);
  border-radius: 12px;
  font: 400 15.5px/1.4 "Roboto", sans-serif;
  color: #22262e;
  background: #f4f8fc;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.gm-form input::placeholder, .gm-form textarea::placeholder { color: #8fa3b8; }
.gm-form input:focus, .gm-form textarea:focus {
  outline: none;
  border-color: #0A58A0;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(10, 88, 160, .14);
}
.gm-form fieldset {
  border: 2px solid rgba(10, 88, 160, .3);
  border-radius: 12px;
  padding: 16px 18px 10px;
  margin: 0 0 18px;
  background: #f9fbfe;
}
.gm-form legend { font-weight: 700; font-size: 13px; color: #0A58A0; padding: 0 8px; }
.gm-form .gm-check-inline { font-weight: 400; font-size: 14px; color: #4a4d55; display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; }
.gm-form .gm-check-inline input { margin-top: 3px; accent-color: #0A58A0; }
.gm-form button.lp-btn { border: none; cursor: pointer; font-size: 15px; }
.gm-form-note { font-size: 12.5px; color: #8b8d94; margin-top: 12px; }

/* ---------- neutralise theme wrappers on gm pages ---------- */
.gm-page .wf-container-main, .gm-page .content {
  padding: 0 !important; margin: 0 !important; max-width: 100% !important;
  float: none !important; width: 100% !important;
}
.gm-page .wf-wrap { max-width: 100% !important; padding: 0 !important; width: 100% !important; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .gm-split { grid-template-columns: 1fr; gap: 44px; }
  .gm-split.gm-flip > .gm-media { order: 0; }
  .gm-media::before { inset: 16px -14px -14px 16px; }
  .gm-services { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .gm-section { padding: 84px 20px; }
  .gm-media .gm-media-badge { left: 10px; }
}
