/* Small additions on top of the compiled design CSS (styles.css). Safe to edit. */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 5rem; }
:focus-visible { outline: 2px solid #1d6fd6; outline-offset: 2px; }
.scheme-1 :focus-visible, .scheme-4 :focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Navigation: 7 plain links, tighter on laptops, hamburger turns into an X */
@media (min-width: 1024px) { .site-nav-links a { padding-left: .7rem; padding-right: .7rem; font-size: .95rem; white-space: nowrap; } }
@media (min-width: 1180px) and (max-width: 1399px) { .site-nav-links a { padding-left: .6rem; padding-right: .6rem; font-size: .94rem; } }
@media (min-width: 1400px) { .site-nav-links a { padding-left: 1rem; padding-right: 1rem; font-size: 1rem; } }
button[aria-label="Toggle menu"] span { transition: transform .25s ease, opacity .2s ease; }
button[aria-label="Toggle menu"][aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
button[aria-label="Toggle menu"][aria-expanded="true"] span:nth-child(2) { opacity: 0; }
button[aria-label="Toggle menu"][aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Honeypot field stays off-screen */
.hp-field { position: absolute; left: -9999px; width: 0; height: 0; overflow: hidden; }

/* Header: logo | links | button — flexible columns so 7 links fit from 1024px up */
@media (min-width: 1024px) {
  section.sticky > div { grid-template-columns: auto minmax(0, 1fr) auto !important; column-gap: .75rem !important; }
  .site-nav-links { flex-wrap: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1179px) {
  .site-nav-links a { padding-left: .35rem; padding-right: .35rem; font-size: .8rem; }
  section.sticky > div > div:last-child a { font-size: .8rem; padding-left: .75rem; padding-right: .75rem; }
}

/* Five-step deployment process (HSE page) */
@media (min-width: 1024px) { .five-steps { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } }
/* Readable tags on dark sections */
.scheme-1 [data-slot="badge"], .scheme-4 [data-slot="badge"] { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); }

/* =====================================================================================
   TYPOGRAPHY — fonts and text sizes
   FONT CHOICE: change these four lines to switch fonts (ready-made sets are in fonts.css).
   --fs-body / --fs-head are small size corrections so each font fits the layouts.
   ===================================================================================== */
:root {
  --font-body: "Barlow", system-ui, sans-serif;
  --font-heading: "Barlow Semi Condensed", "Barlow", sans-serif;
  --fs-body: 1;
  --fs-head: 1;
}
body, button, input, select, textarea { font-family: var(--font-body); }
h1, h2, h3, h4, h5, h6, .text-h1, .text-h2, .text-h3, .text-h4, .text-h5, .text-h6 { font-family: var(--font-heading); }
/* Long words wrap inside their box instead of sticking out of cards and sections */
h1, h2, h3, h4, h5, h6, p, li, a, label, span { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { hyphens: auto; -webkit-hyphens: auto; }

/* Text sizes (phones) */
* {
  --text-h1: calc(2.9rem * var(--fs-head));   --text-h1--letter-spacing: 0;
  --text-h2: calc(2.65rem * var(--fs-head));  --text-h2--letter-spacing: 0;
  --text-h3: calc(2.1rem * var(--fs-head));   --text-h3--letter-spacing: 0;
  --text-h4: calc(1.6rem * var(--fs-head));   --text-h4--letter-spacing: 0;
  --text-h5: calc(1.35rem * var(--fs-head));  --text-h5--letter-spacing: 0;
  --text-h6: calc(1.2rem * var(--fs-head));   --text-h6--letter-spacing: 0;
  --text-medium: calc(1.125rem * var(--fs-body));
  --text-regular: calc(1rem * var(--fs-body));
  --text-small: calc(.9375rem * var(--fs-body));
  --text-tiny: calc(.75rem * var(--fs-body));
}
body { font-size: calc(1.0625rem * var(--fs-body)); }

/* Laptops and small desktops */
@media (min-width: 992px) {
  * {
    --text-h1: calc(4.5rem * var(--fs-head));  --text-h2: calc(3.25rem * var(--fs-head));
    --text-h3: calc(2.75rem * var(--fs-head)); --text-h4: calc(2.25rem * var(--fs-head));
    --text-h5: calc(1.75rem * var(--fs-head)); --text-h6: calc(1.4rem * var(--fs-head));
    --text-medium: calc(1.3125rem * var(--fs-body)); --text-regular: calc(1.125rem * var(--fs-body));
    --text-small: calc(1rem * var(--fs-body));       --text-tiny: calc(.8125rem * var(--fs-body));
  }
  body { font-size: calc(1.125rem * var(--fs-body)); }
}
/* Large screens: headings can grow a little more */
@media (min-width: 1280px) {
  * {
    --text-h1: calc(4.9rem * var(--fs-head));  --text-h2: calc(3.5rem * var(--fs-head));
    --text-h3: calc(3rem * var(--fs-head));    --text-h4: calc(2.4rem * var(--fs-head));
    --text-h5: calc(1.9rem * var(--fs-head));  --text-h6: calc(1.5rem * var(--fs-head));
  }
}

/* Menu icon lines were transparent (missing colour utility) — draw them in the text colour */
.bg-scheme-text { background-color: currentColor; }
button[aria-label="Toggle menu"] { color: inherit; }

/* =====================================================================================
   NAVIGATION HOVER — blue text + underline that slides in; stays on for the current page
   ===================================================================================== */
:root { --brand: #0f5bac; }
.site-nav-links a {
  background-image: linear-gradient(var(--brand), var(--brand));
  background-repeat: no-repeat; background-origin: content-box; background-position: 0 100%; background-size: 0 2px;
  transition: background-size .28s ease, color .2s ease;
}
.site-nav-links a:hover, .site-nav-links a:focus-visible, .site-nav-links a[aria-current="page"] { color: var(--brand); background-size: 100% 2px; }
.site-nav-links a[aria-current="page"] { font-weight: 600; }
@media (max-width: 1023px) { .site-nav-links a { display: block; width: fit-content; margin-left: auto; margin-right: auto; } }

/* =====================================================================================
   FOOTER — everything centred, even spacing, visible divider, hover states
   ===================================================================================== */
.bg-scheme-border { background-color: var(--color-scheme-border); }           /* divider line was invisible */
.site-footer a[aria-label] { align-items: center; text-align: center; }          /* logo lines centred on each other */
.site-footer .container > div:first-child { padding-bottom: 2rem; }
.site-footer ul { display: flex !important; flex-wrap: wrap; justify-content: center; gap: .75rem 2rem; margin-top: .25rem; }
.site-footer address { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; padding-bottom: 2.5rem; }
@media (min-width: 1100px) { .site-footer address { column-gap: 2rem; } }
@media (max-width: 639px) { .site-footer address { flex-direction: column; align-items: center; } }
.site-footer .container > div:last-child { justify-content: center; text-align: center; padding-top: 1.5rem; padding-bottom: 0; }
.site-footer .container > div:last-child p { margin-top: 0; }
.site-footer a:not([data-slot="button"]) { transition: opacity .2s ease; text-underline-offset: 4px; }
.site-footer a:not([data-slot="button"]):hover, .site-footer a:not([data-slot="button"]):focus-visible { opacity: .75; text-decoration: underline; }
.site-footer ul a:hover { text-decoration-thickness: 2px; }

/* =====================================================================================
   IMAGE HOVER — a small zoom that lifts the image slightly forward (mouse devices only)
   Works for the grey placeholders and for real photos. Change 1.04 to make it stronger/weaker.
   ===================================================================================== */
@media (hover: hover) and (pointer: fine) {
  [data-image-id] {
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease;
    will-change: transform;
  }
  [data-image-id]:hover {
    transform: scale(1.04);
    z-index: 2;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .16);
  }
}
@media (prefers-reduced-motion: reduce) { [data-image-id]:hover { transform: none; } }

/* =====================================================================================
   HERO — photo fills the whole hero behind the text, softened by a navy tint (no blur).
   Make the photo show through more: lower the two 0.xx numbers in .hero-tint. Darker: raise them.
   ===================================================================================== */
.hero-section { position: relative; isolation: isolate; overflow: hidden; min-height: min(86vh, 760px); display: flex; align-items: center; }
.hero-section > .hero-content { position: relative; z-index: 2; width: 100%; padding-top: 2rem; padding-bottom: 2rem; }
.hero-bg { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; aspect-ratio: auto !important; z-index: 0; border-radius: 0 !important; object-fit: cover; box-shadow: none !important; transform: none !important; background: #0b3d75; }
.hero-tint { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,38,78,.78) 0%, rgba(10,50,100,.66) 55%, rgba(8,38,78,.82) 100%); }
.hero-section h1, .hero-section p { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-section .max-w-lg { max-width: 48rem; }
@media (max-width: 767px) { .hero-section { min-height: 0; } }

/* Logo */
.site-logo{display:inline-flex;align-items:center;line-height:0;flex-shrink:0}
.site-logo img{display:block;width:auto;max-width:100%}
.site-logo-header img{height:66px}
.site-logo-footer img{height:130px}
@media (max-width:767px){.site-logo-header img{height:56px}.site-logo-footer img{height:110px}}

/* Pre-loader (logo only) */
.preloader{position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;background:#fff;transition:opacity .6s ease,visibility .6s ease}
.preloader.is-done{opacity:0;visibility:hidden;pointer-events:none}
.preloader img{width:min(240px,60vw);height:auto;animation:pl-in .9s cubic-bezier(.2,.7,.2,1) both,pl-pulse 1.8s ease-in-out .9s infinite}
.preloader-bar{width:min(150px,40vw);height:3px;background:#dbe6f3;border-radius:3px;overflow:hidden}
.preloader-bar::after{content:"";display:block;height:100%;width:40%;background:#0f5bac;border-radius:3px;animation:pl-bar 1.1s ease-in-out infinite}
@keyframes pl-in{from{opacity:0;transform:scale(.88) translateY(8px)}to{opacity:1;transform:none}}
@keyframes pl-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
@keyframes pl-bar{0%{transform:translateX(-110%)}100%{transform:translateX(280%)}}
html.preloaded .preloader{display:none}
@media (prefers-reduced-motion:reduce){.preloader img,.preloader-bar::after{animation:none}}

/* CTA banners: photo behind the text, same tinted look as the hero */
.cta-banner{position:relative;overflow:hidden;color:#fff}
.cta-banner>.cta-content{position:relative;z-index:2}
.cta-banner h2,.cta-banner p{color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.35)}
.cta-banner a[data-variant="secondary"]{color:#fff;border-color:rgba(255,255,255,.55)}
.cta-banner a[data-variant="secondary"]:hover{background:rgba(255,255,255,.14);border-color:#fff}
.cta-banner .hero-bg{z-index:0}
.cta-banner .hero-bg svg,.cta-banner .hero-bg span{opacity:.35;color:#fff}

/* Hover effects: buttons and cards */
@media (hover:hover) and (pointer:fine){
  [data-slot="button"],button[type="submit"]{transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease,border-color .2s ease}
  [data-slot="button"]:hover,button[type="submit"]:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(8,38,78,.18)}
  [data-slot="button"]:active,button[type="submit"]:active{transform:translateY(0);box-shadow:none}
  .rounded-card.border:not(:has(form)){transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
  .rounded-card.border:not(:has(form)):hover{transform:translateY(-4px);box-shadow:0 14px 32px rgba(8,38,78,.14);border-color:#0f5bac}
}
@media (prefers-reduced-motion:reduce){[data-slot="button"]:hover,.rounded-card.border:hover{transform:none!important}}

/* Legal / long-form text */
.legal p{margin-bottom:1rem;line-height:1.7}
.cta-banner .hero-bg{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem}
@media (min-width:768px){.three-up{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Layouts after removing the company-image columns */
.one-col{grid-template-columns:minmax(0,1fr)!important;max-width:48rem;margin-inline:auto}
@media (min-width:1024px){.two-up{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Video slot */
.video-frame{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;aspect-ratio:16/9;width:100%;overflow:hidden;background:rgba(127,127,127,.12);box-shadow:inset 0 0 0 1px rgba(127,127,127,.25)}
.video-frame video,.video-frame iframe{width:100%;height:100%;border:0;display:block;background:#000}
#crawler-crane .container>div:first-child{margin-bottom:2.5rem}

/* ===== About page ===== */
/* Floating WhatsApp button */
.wa-float{position:fixed;right:1rem;bottom:1rem;z-index:60;display:inline-flex;align-items:center;gap:.6rem;height:3.5rem;min-width:3.5rem;padding:0 .9rem;border-radius:9999px;background:#25d366;color:#fff;text-decoration:none;font-weight:600;box-shadow:0 6px 18px rgba(0,0,0,.28);transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.wa-float svg{flex:none}
.wa-float-label{display:none;font-size:.95rem;white-space:nowrap}
.wa-float:hover{background:#1ebe5b;transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.32)}
.wa-float:focus-visible{outline:3px solid #fff;outline-offset:2px;box-shadow:0 0 0 6px #0b2a5b}
@media(min-width:768px){.wa-float{right:1.5rem;bottom:1.5rem;padding:0 1.2rem 0 1rem}.wa-float-label{display:inline}}
@media print{.wa-float{display:none}}
