/* Mogro Mining Services: the Kanvas web style (site.css, Lion Pride preset) in Mogro's
   colours, plus the pieces this site adds. Load after site.css. */

/* Fonts, self-hosted (Latin): Montserrat (one variable file, 300-700) and Abel. */
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Abel"; src: url("fonts/abel-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* Mogro: the red of the logo, black and dark greys. A deeper red where white text sits on it. */
:root {
  --brand: #c8242a;          /* panels with text on them (white text reads at 5:1) */
  --brand-strong: #b31f25;   /* buttons */
  --mark: #ed3237;           /* the logo's red: numbers, rules, the wheels of the track */
  --ink: #151516;
  --body: #3d3f43;
  --muted: #8d9096;
  --tint: #f3f1ee;
  --grey: #f4f4f4;
  --mid: #232427;
  --dark: #151516;
  --night: #0e0e0f;
}
body { font-size: 17px; }

/* Header: the logo carries the name, so no text beside it */
.brand img { height: 48px; }
.site-head { box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.site-head .container { min-height: 78px; }

/* The menu: short words in caps, a red line that grows from the middle on hover and stays under the page you are on */
.nav ul { align-items: center; gap: 30px; }
[data-theme="lionpride"] .nav a, .nav a {
  position: relative; display: inline-block; padding: 8px 0; color: var(--ink);
  font: 600 12.5px/1 var(--font-head); letter-spacing: .09em; text-transform: uppercase; text-decoration: none; transition: color .2s;
}
.nav > ul > li > a::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--mark);
  transform: scaleX(0); transition: transform .25s ease;
}
.nav > ul > li > a:hover, .nav > ul > li > a:focus-visible, .nav a[aria-current="page"] { color: var(--brand-strong); }
.nav > ul > li > a:hover::before, .nav > ul > li > a:focus-visible::before, .nav > ul > li > a[aria-current="page"]::before { transform: scaleX(1); }
.has-sub:has([aria-current="page"]) > a { color: var(--brand-strong); }
.has-sub:has([aria-current="page"]) > a::before { transform: scaleX(1); }
/* the phone, as a small red button at the end of the menu */
.nav .nav-call a { padding: 11px 14px; background: var(--brand-strong); color: #fff; letter-spacing: .04em; transition: background .2s; }
.nav .nav-call a::before { display: none; }
.nav .nav-call a:hover { background: var(--ink); color: #fff; }

/* Services opens a dark list of the three, each with its number; the item slides on hover */
.nav .has-sub { position: relative; }
.nav .sub { display: none; position: absolute; top: calc(100% + 8px); left: -20px; min-width: 250px; margin: 0; padding: 8px 0; list-style: none; background: var(--dark); border-top: 3px solid var(--mark); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }    /* keeps it open on the way down */
.nav .sub a { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 12px 20px; color: #e6e6e6; letter-spacing: .06em; transition: background .2s, padding .2s, color .2s; }
.nav .sub a small { font: 300 13px var(--font-head); color: var(--mark); letter-spacing: 0; }
.nav .sub a:hover, .nav .sub a[aria-current="page"] { background: #232427; color: #fff; padding-left: 28px; box-shadow: inset 3px 0 0 var(--mark); }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: block; }
@media (min-width: 761px) { .nav .has-sub > a::after { content: ""; display: inline-block; margin-left: 7px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: 1px; } }
.nav .nav-mail { display: none; }

/* The phone menu: a dark panel from the right, under the header, the page held still behind it.
   The three bars turn into a cross while it is open. */
@media (max-width: 760px) {
  .site-head .container { min-height: 66px; }
  .brand img { height: 40px; }
  .menu-toggle { position: relative; width: 44px; height: 44px; padding: 0; }
  .menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; margin: 0; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
  .menu-toggle span:nth-child(1) { top: 14px; } .menu-toggle span:nth-child(2) { top: 21px; } .menu-toggle span:nth-child(3) { top: 28px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav { position: fixed; top: 66px; left: 0; right: 0; bottom: 0; display: block; padding: 8px 24px 32px; background: var(--dark); border-top: 3px solid var(--mark);
         overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
  .nav.open { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.09); }
  [data-theme="lionpride"] .nav > ul > li > a, .nav > ul > li > a { display: block; padding: 18px 0; color: #fff; font-size: 15px; letter-spacing: .1em; }
  .nav > ul > li > a::before, .nav .has-sub > a::after { display: none; }
  [data-theme="lionpride"] .nav > ul > li > a[aria-current="page"], [data-theme="lionpride"] .nav > ul > li.has-sub:has([aria-current="page"]) > a { color: var(--mark); }
  .nav .sub, .nav .has-sub:hover .sub { display: block; position: static; min-width: 0; margin: -6px 0 0; padding: 0 0 14px; background: none; border: 0; box-shadow: none; }
  .nav .sub::before { display: none; }
  .nav .sub a { padding: 9px 0 9px 2px; color: #c9cacd; font-size: 13px; }
  .nav .sub a small { min-width: 22px; }
  .nav .sub a:hover, .nav .sub a[aria-current="page"] { background: none; box-shadow: none; padding-left: 2px; color: #fff; }
  .nav .nav-call, .nav .nav-mail { border-bottom: 0; }
  .nav .nav-call { margin-top: 24px; }
  .nav .nav-call a { display: block; padding: 16px; text-align: center; font-size: 15px; }
  .nav .nav-mail { display: block; margin-top: 14px; text-align: center; }
  [data-theme="lionpride"] .nav > ul > li.nav-mail > a { display: inline-block; padding: 6px 0; color: #c9cacd; font: 400 15px var(--font-body); letter-spacing: 0; text-transform: none; }
  body.menu-open { overflow: hidden; }
}

/* Parallax: the big photos move with the page, but slowly. The photo sits in a layer taller
   than its section; mogro.js moves the layer by a fraction of the scroll (--py). */
.parallax { position: relative; overflow: hidden; isolation: isolate; background-image: none !important; }
.parallax::before {
  content: ""; position: absolute; left: 0; right: 0; top: -140px; bottom: -140px; z-index: -1;
  background: var(--img) center / cover no-repeat; transform: translate3d(0, var(--py, 0px), 0); will-change: transform;
}

/* Home hero: the photo bright and slowly moving; the words on a slanted dark panel
   (the cut of the Mogro profile cover) with a red edge; the first words in machinery yellow */
.home-hero { min-height: min(90vh, 820px); display: flex; align-items: center; padding: 100px 0 160px; }
.home-hero.parallax::before { animation: hero-drift 28s ease-in-out infinite alternate; }
@keyframes hero-drift { from { scale: 1; } to { scale: 1.08; } }
.home-hero__shade { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.home-hero__shade i, .home-hero__shade b { position: absolute; top: 0; bottom: 0; left: 0; }
.home-hero__shade b { width: 64%; background: rgba(14,14,15,.9); clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
/* the red edge: only the 14 px strip beside the slant, so the panel stays see-through */
.home-hero__shade i { width: calc(64% + 14px); background: var(--mark); clip-path: polygon(calc(100% - 14px) 0, 100% 0, calc(78% + 3.08px) 100%, calc(78% - 10.92px) 100%); }
.home-hero .container { position: relative; z-index: 1; }
.home-hero__text { max-width: 640px; }
.home-hero .kicker { margin: 0 0 18px; font: 600 12.5px var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: #d8d9dc; }
.home-hero h1 { margin-bottom: 22px; line-height: 1.04; }
.home-hero .h1-main { display: block; font-weight: 700; font-size: clamp(36px, 4.6vw, 66px); letter-spacing: -.01em; }
.home-hero .h1-main em { font-style: normal; color: #f2b33d; }
.home-hero .h1-sub { display: block; margin-top: 14px; font-weight: 300; font-size: clamp(20px, 2vw, 28px); line-height: 1.25; color: #e8e8e8; }
.hero-lead { max-width: 520px; margin: 0 0 34px; font-size: 18px; line-height: 1.55; color: #c9cacd; }
.home-hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.btn--big { padding: 16px 26px; font-size: 13px !important; letter-spacing: .1em !important; }
.btn--big::after { content: " \2192"; }
.home-hero .call { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font: 400 20px/1.1 var(--font-head); }
.home-hero .call small { display: block; margin-bottom: 3px; font: 600 11px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: #a9abb0; }
.call__icon { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--mark); border-radius: 50%; transition: background .2s; }
.call__icon svg { width: 20px; height: 20px; fill: #fff; }
.home-hero .call:hover .call__icon { background: var(--mark); }
/* the four wheels of the track light up in turn, like a running track */
.track--run circle { animation: wheel 1.6s ease-in-out infinite; }
.track--run circle:nth-of-type(2) { animation-delay: .2s; } .track--run circle:nth-of-type(3) { animation-delay: .4s; } .track--run circle:nth-of-type(4) { animation-delay: .6s; }
@keyframes wheel { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .home-hero.parallax::before, .track--run circle { animation: none; } }
@media (max-width: 900px) {
  .home-hero__shade b { width: 100%; clip-path: none; background: rgba(14,14,15,.82); }
  .home-hero__shade i { display: none; }
}
@media (max-width: 600px) { .home-hero { padding: 64px 0 120px; } .hero-lead { font-size: 16px; } }
.track--light rect { stroke: #fff; }
.page-hero .track--light circle { fill: #fff; }      /* red wheels would disappear on the brick red */

/* Features run edge to edge like the welcome split: half photo, half dark panel.
   feature--flip puts the words on the left. On phones the words come before the photo,
   so no two photos ever meet where sections join. */
.feature { padding: 0; }
.feature__inner { width: 100%; min-height: 560px; }
.feature__inner .photo { min-height: 420px; }
.feature__text { display: flex; flex-direction: column; justify-content: center; padding: var(--band-pad) max(var(--gutter), 6vw); background: var(--panel, var(--grey)); }
.feature__text > * { max-width: 520px; }
.feature--dark .feature__text { --panel: var(--mid); }
.feature--flip .feature__text { order: -1; }
@media (max-width: 760px) {
  .feature__inner { min-height: 0; }
  .feature__inner .photo { min-height: 320px; }
  .feature__text { order: -1; }
}

/* The service bar: the three services in blocks of red, charcoal and black, over the foot of the hero */
.svc-bar { position: relative; z-index: 2; margin-top: -96px; }
.svc-bar__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.svc-bar__item { display: flex; flex-direction: column; gap: 8px; padding: 32px 30px 28px; color: #fff; text-decoration: none; background: var(--brand); transition: transform .25s ease, box-shadow .25s ease; }
.svc-bar__item:nth-child(2) { background: var(--mid); }
.svc-bar__item:nth-child(3) { background: var(--dark); }
.svc-bar__item:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(0,0,0,.25); }
.svc-bar__no { font: 300 38px/1 var(--font-head); color: rgba(255,255,255,.55); }
.svc-bar__item:nth-child(n+2) .svc-bar__no { color: var(--mark); }
.svc-bar__item b { font: 400 22px var(--font-head); }
.svc-bar__item span:not(.svc-bar__no) { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.82); }
.svc-bar__item i { margin-top: auto; padding-top: 10px; font: 600 12px var(--font-head); font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.svc-bar__item i::after { content: " \2192"; transition: margin .2s; }
.svc-bar__item:hover i::after { margin-left: 6px; }
@media (max-width: 900px) { .svc-bar { margin-top: -70px; } .svc-bar__grid { grid-template-columns: 1fr; } }
.svc-bar + .split { margin-top: 80px; }

/* Inner page hero: the photo under a see-through brick red, the trail, the title and one line */
.page-hero { padding: 70px 0 76px; }
.crumbs { margin-bottom: 26px; font: 600 11.5px var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.crumbs a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.crumbs a:hover { border-bottom-color: #fff; }
.crumbs span { margin: 0 10px; opacity: .6; }
.crumbs b { font-weight: 600; color: rgba(255,255,255,.75); }
.page-hero h1 { font-weight: 300; font-size: clamp(34px, 5vw, 64px); line-height: 1.05; margin-bottom: 14px; }
.page-hero__sub { max-width: 720px; margin: 0; font: 300 clamp(17px, 1.6vw, 21px)/1.45 var(--font-head); color: rgba(255,255,255,.92); }

/* The track from the Mogro logo: a rounded band with four red wheels, used as a divider */
.track { display: block; width: 92px; height: 26px; margin: 0 0 22px; }
.track--centre { margin-inline: auto; }
.on-dark .track rect { stroke: #fff; }

/* Hero: the panel carries the logo; the numbers under it are the ways to reach Mogro */
.hero-panel { min-height: 600px; align-items: flex-end; padding: 70px 0; }
.hero-panel .panel { background: rgba(255,255,255,.92); border-left: 6px solid var(--mark); }
.hero-panel .panel img { height: 70px; }
.hero-panel .reach { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.hero-panel .reach a { color: var(--ink); text-decoration: none; }

/* Welcome on the brand red: short text only */
.split--brand .split__text p { font-size: 18px; }

/* Our services on the home page: one numbered row per service, photo and the real detail */
.ledger { display: grid; gap: 0; }
.ledger__row { display: grid; grid-template-columns: 90px 1fr 1.1fr; gap: 40px; align-items: center; padding: 44px 0; border-top: 1px solid #e3e1dd; }
.ledger__row:last-child { border-bottom: 1px solid #e3e1dd; }
.ledger__no { font: 300 64px/1 var(--font-head); color: var(--mark); }
.ledger__row .photo { aspect-ratio: 16 / 10; }
.ledger__row h3 { font-size: 26px; font-weight: 400; margin-bottom: 10px; }
.ledger__row ul { columns: 2; column-gap: 24px; margin: 0 0 18px; }
.more { font: 600 13px var(--font-head); color: var(--brand-strong); text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.more::after { content: " \2192"; }
.more:hover { color: var(--ink); }
@media (max-width: 900px) { .ledger__row { grid-template-columns: 1fr; gap: 18px; } .ledger__no { font-size: 46px; } }
@media (max-width: 520px) { .ledger__row ul { columns: 1; } }

/* Section heading with its intro beside it on wide screens */
.head-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 36px; }
.head-row p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .head-row { grid-template-columns: 1fr; gap: 10px; } }

/* Industries: the list itself, in a line, on dark */
.strap-list { display: flex; flex-wrap: wrap; align-items: baseline; margin: 0; padding: 0; list-style: none; font: 300 clamp(20px, 2.4vw, 30px)/1.6 var(--font-head); color: #fff; }
.strap-list li { max-width: 100%; }
.strap-list li + li::before { content: "\25CF"; color: var(--mark); font-size: .5em; vertical-align: .35em; margin: 0 .7em; }
@media (max-width: 600px) { .strap-list { display: block; } .strap-list li + li::before { content: none; } .strap-list li { border-top: 1px solid rgba(255,255,255,.12); padding: 4px 0; } }

/* A quote the company stands by: large and light, with the red bar */
.quote { margin: 0; padding: 6px 0 6px 30px; border-left: 6px solid var(--mark); font: 300 clamp(22px, 2.6vw, 32px)/1.35 var(--font-head); color: var(--ink); max-width: 900px; }

/* Two columns of text, ending where their words end */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 30px; } }

/* Feature text panel on the dark side band: a little more room for the list */
.feature__text .ticks li { padding: 4px 0; }
.feature--dark .ticks li::before { color: var(--mark); }

/* "What to tell us": a numbered checklist for a quote request */
.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 50px; }
.steps li { counter-increment: step; position: relative; padding-left: 58px; min-height: 40px; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -4px; font: 300 32px/1 var(--font-head); color: var(--mark); }
.steps b { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 15px; margin-bottom: 2px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

/* Also from Mogro: the other two services, as photo links */
.also { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.also a { display: flex; align-items: flex-end; min-height: 260px; padding: 26px; color: #fff; text-decoration: none; }
.also a span { font: 300 26px/1.1 var(--font-head); }
.also a small { display: block; font: 600 12px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #ddd; margin-bottom: 6px; }
.also a:hover span { text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 6px; }
@media (max-width: 640px) { .also { grid-template-columns: 1fr; } }

/* Service tiles: Mogro's three, with a fourth for the call */
.tile { padding: 50px 30px; }
.tile ul { font-size: 15px; line-height: 1.7; }
.tile .more { color: #fff; display: inline-block; margin-top: 18px; }
.tile--brand .btn--light { margin-top: 10px; }
@media (min-width: 1001px) { .tiles--3 { grid-template-columns: repeat(3, 1fr) 0.9fr; } }

/* Contact: the form card is white inside a dark band, so its heading stays dark */
.on-dark .form-card h3 { color: var(--ink); }
/* the answer after sending */
.form-msg { margin: 0 0 16px; padding: 10px 12px; font-size: 14px; }
.form-msg--err { background: #fdecec; color: #8a1c1f; }
.form-msg a { color: inherit; }
.form-msg[hidden] { display: none; }
.details a { color: #fff; }
/* the quick sum against robots: the question beside a short answer box */
.math { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 4px 0 16px; font-size: 15px; color: var(--ink); }
.math b { color: var(--brand-strong); font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.math .field { width: 96px; flex: 0 0 96px; margin: 0; text-align: center; border: 1px solid #ccc; padding: 9px 6px; }
/* the thank-you after sending: a white window over the darkened page, the logo's red on top */
.sent-modal { width: min(440px, calc(100% - 32px)); max-width: none; padding: 36px 32px 30px; border: 0; border-top: 5px solid var(--mark); background: #fff; color: var(--body); text-align: center; }
.sent-modal::backdrop { background: rgba(14,14,15,.72); }
.sent-modal[open]:not(:modal) { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 1000; box-shadow: 0 0 0 100vmax rgba(14,14,15,.72); }
.sent-modal__mark { width: 60px; height: 60px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--brand-strong); color: #fff; }
.sent-modal h2 { margin: 0 0 12px; font-size: 30px; font-weight: 300; color: var(--ink); }
.sent-modal p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.sent-modal b { color: var(--ink); }
.sent-modal__small { font-size: 14px !important; color: var(--muted); }
.sent-modal__small a { color: var(--brand-strong); }
.sent-modal .btn { margin-top: 14px; }
/* the hidden field robots fill in */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Inner page header: the photo darkened a little behind the white logo box */
.page-head { padding: 64px 0 80px; }
.logo-box img { height: 70px; }
.title-bar h1 { font-weight: 600; }

/* Footer: three columns, the services as links */
.branches a { color: var(--muted); text-decoration: none; }
.branches a:hover { color: #fff; }
.branches ul { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.9; }
.branches h4 { color: #fff; }
.branches h4::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 10px; background: var(--mark); }
.branches h4 { border-bottom: 0; padding-bottom: 0; }
.foot-brand img { height: 64px; }
.foot-brand .small a { color: inherit; text-decoration: none; }
