/* Sarawi Industrial Services — site stylesheet
   Palette: slate + brass, taken from the materials SIS supplies.
   One typeface (Archivo variable), two widths: semi-condensed for display, normal for text. */

:root {
  --paper:  #EDEFEE;
  --panel:  #FFFFFF;
  --ink:    #16323A;
  --slate:  #0F2A31;
  --steel:  #5F6F74;
  --rule:   #C4CCCB;
  --rule-2: #DDE2E1;
  --brass:  #B0872B;
  --brass-d:#8E6C1F;

  --measure: 66ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --shell: 1220px;

  --s1: .5rem;  --s2: .875rem; --s3: 1.375rem; --s4: 2.25rem;
  --s5: 3.5rem; --s6: 5.5rem;  --s7: 8rem;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wide: 1220px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brass-d); }

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

.shell { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--slate); color: #fff; padding: .75rem 1.25rem;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------------------------------------------------------------- type */
h1, h2, h3, h4 {
  font-variation-settings: "wdth" 92;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 var(--s3);
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); max-width: 18ch; }
.pagehead h1, .hero h1 { max-width: 17ch; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); letter-spacing: -.01em; }
h4 { font-size: 1.0625rem; letter-spacing: 0; }
p  { margin: 0 0 var(--s3); max-width: var(--measure); }
.lede { font-size: clamp(1.15rem, 1.9vw, 1.35rem); line-height: 1.55; color: #24444C; }

.note { font-size: .9375rem; color: var(--steel); }

/* ---------------------------------------------------------------- header */
.masthead {
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 40;
}
.masthead__bar {
  display: flex; align-items: center; gap: var(--s4);
  min-height: 78px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; padding: .6rem 0; }
.brand img { height: 46px; width: auto; }

.nav-toggle {
  margin-left: auto; display: none;
  background: none; border: 1px solid var(--rule);
  padding: .55rem .8rem; font: inherit; font-size: .95rem;
  color: var(--ink); cursor: pointer;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a {
  text-decoration: none; font-size: 1rem; font-weight: 500;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--brass); }

.btn {
  display: inline-block; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
  padding: .78rem 1.5rem; border: 1px solid var(--slate);
  background: var(--slate); color: #fff;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { background: var(--brass-d); border-color: var(--brass-d); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: transparent; border-color: var(--brass); color: var(--brass-d); }
.btn--light { background: var(--brass); border-color: var(--brass); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--slate); }
.nav .btn { padding: .6rem 1.15rem; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; width: 100%; order: 3;
    flex-direction: column; align-items: stretch; gap: 0;
    padding-bottom: var(--s3);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--rule-2); }
  .nav a[aria-current="page"] { border-bottom-color: var(--brass); }
  .nav .btn { margin-top: var(--s2); text-align: center; border-bottom: 0; }
  .masthead__bar { flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- hero */
.hero { background: var(--panel); border-bottom: 1px solid var(--rule); }
.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.hero h1 { margin-bottom: var(--s3); }
.hero__figure { position: relative; margin: 0; }
.hero__figure img { width: 100%; }
.hero__figure figcaption {
  font-size: .875rem; color: var(--steel);
  padding-top: .7rem; border-top: 1px solid var(--rule);
  margin-top: .7rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

/* title block — the fact grid, set like the title block on a drawing sheet */
.titleblock {
  margin-top: var(--s4);
  border-top: 2px solid var(--slate);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.titleblock > div {
  padding: .85rem 1.1rem .95rem 0;
  border-bottom: 1px solid var(--rule);
}
.titleblock > div + div { padding-left: 1.35rem; border-left: 1px solid var(--rule); }
.titleblock > div:nth-child(2n+1) { padding-left: 0; border-left: 0; }
@media (max-width: 520px) {
  .titleblock { grid-template-columns: 1fr; }
  .titleblock > div + div { padding-left: 0; border-left: 0; }
}
.titleblock dt, .titleblock .k {
  font-size: .8125rem; color: var(--steel); margin-bottom: .15rem;
}
.titleblock .v { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; padding-top: var(--s5); }
  .hero__figure { order: -1; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(3.25rem, 7vw, 6rem) 0; }
.section--panel { background: var(--panel); border-block: 1px solid var(--rule); }
.section--slate { background: var(--slate); color: #E7EDEC; }
.section--slate h2, .section--slate h3 { color: #fff; }
.section--slate a { color: #fff; }
.section--slate p { color: #C7D5D4; }

.section__head { max-width: 46rem; margin-bottom: var(--s4); }
.section__head p { margin-bottom: 0; }

/* page banner for interior pages */
.pagehead { background: var(--panel); border-bottom: 1px solid var(--rule); padding: clamp(2.5rem, 5vw, 4.25rem) 0 clamp(2rem, 4vw, 3.25rem); }
.crumbs { font-size: .9375rem; color: var(--steel); margin-bottom: var(--s2); }
.crumbs a { color: var(--steel); }
.pagehead h1 { max-width: 20ch; }
.pagehead .lede { margin-bottom: 0; }

/* ---------------------------------------------------------------- divisions */
.divisions { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.division { border-top: 2px solid var(--slate); padding-top: var(--s3); }
.division h3 { margin-bottom: var(--s2); }
.division p { margin-bottom: var(--s3); }
.division ul { margin: 0; padding: 0; list-style: none; }
.division li {
  padding: .6rem 0 .6rem 1.4rem; border-bottom: 1px solid var(--rule-2);
  position: relative; font-size: 1rem;
}
.division li::before {
  content: ""; position: absolute; left: 0; top: 1.15em;
  width: .55rem; height: 1px; background: var(--brass);
}
@media (max-width: 820px) { .divisions { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- spec table */
.spec { width: 100%; border-collapse: collapse; font-size: 1rem; }
.spec caption { text-align: left; color: var(--steel); font-size: .9375rem; padding-bottom: var(--s2); }
.spec th, .spec td { text-align: left; padding: .95rem 1.25rem .95rem 0; vertical-align: top; border-bottom: 1px solid var(--rule); }
.spec thead th {
  font-size: .875rem; font-weight: 600; color: var(--steel);
  border-bottom: 2px solid var(--slate); padding-bottom: .6rem;
}
.spec tbody th { font-weight: 600; width: 30%; }
.spec td:last-child, .spec th:last-child { padding-right: 0; }
.spec tbody tr:hover { background: #F6F8F7; }
.section--panel .spec tbody tr:hover { background: #F3F6F5; }
.table-scroll { overflow-x: auto; }
@media (max-width: 700px) {
  .spec, .spec tbody, .spec tr, .spec td, .spec th { display: block; width: 100%; }
  .spec thead { display: none; }
  .spec tbody tr { border-bottom: 1px solid var(--rule); padding: var(--s2) 0; }
  .spec td, .spec tbody th { border: 0; padding: .15rem 0; }
  .spec tbody th { font-size: 1.125rem; }
  .spec td::before { content: attr(data-label) " — "; color: var(--steel); }
}

/* ---------------------------------------------------------------- project records */
.records { border-top: 2px solid var(--slate); }
.record {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  border-bottom: 1px solid var(--rule);
}
.record__meta { font-size: .9375rem; color: var(--steel); margin-bottom: .5rem; }
.record h3 { margin-bottom: var(--s2); }
.record ul { margin: 0; padding-left: 1.1rem; }
.record li { margin-bottom: .35rem; }
.record__shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; align-content: start; }
.record__shots.is-two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .record { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.shot {
  display: block; padding: 0; border: 0; background: #DDE2E1;
  cursor: zoom-in; position: relative; overflow: hidden; width: 100%;
}
.shot img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .35s ease, opacity .25s ease;
}
.shot:hover img { transform: scale(1.035); }
.shot::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 42, 49, .12);
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 26, 30, .94);
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 82vh; width: auto; }
.lightbox__cap { color: #C7D5D4; font-size: .9375rem; margin-top: .9rem; text-align: center; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox button {
  position: absolute; background: none; border: 1px solid rgba(255,255,255,.35);
  color: #fff; font: inherit; font-size: 1.35rem; line-height: 1;
  width: 3rem; height: 3rem; cursor: pointer;
}
.lightbox button:hover { border-color: var(--brass); color: var(--brass); }
.lb-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lb-prev { left: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------------- reach / countries */
.reach { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 var(--s4); }
.reach > div { padding: .95rem 0 1.05rem; border-bottom: 1px solid var(--rule); }
.reach .place { font-weight: 600; margin-bottom: .1rem; }
.reach .what { font-size: .9375rem; color: var(--steel); }
.section--slate .reach > div { border-bottom-color: rgba(255,255,255,.18); }
.section--slate .reach .place { color: #fff; }
.section--slate .reach .what { color: #A9BDBC; }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s5) var(--s4); }
.office { border-top: 2px solid var(--slate); padding-top: var(--s3); }
.office h3 { margin-bottom: var(--s2); font-size: 1.15rem; }
.office dl { margin: 0; }
.office dt { font-size: .8125rem; color: var(--steel); margin-top: .8rem; }
.office dd { margin: 0; font-weight: 500; }
.office a { text-decoration: none; }
.office a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- cta band */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4); align-items: center; }
.cta h2 { margin-bottom: .6rem; }
.cta p { margin-bottom: 0; }
.cta__actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
@media (max-width: 780px) { .cta { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer */
.footer { background: #0A2026; color: #A9BDBC; padding: var(--s5) 0 var(--s4); font-size: .9375rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s4); }
.footer h4 { color: #fff; font-size: .9375rem; margin-bottom: var(--s2); }
.footer a { color: #C7D5D4; text-decoration: none; }
.footer a:hover { color: var(--brass); text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .45rem; }
.footer img { height: 44px; width: auto; margin-bottom: var(--s2); }
.footer p { color: #A9BDBC; max-width: 34ch; }
.footer__base {
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap;
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* one orchestrated entrance, hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero .titleblock, .hero__actions, .hero__figure {
    animation: rise .7s cubic-bezier(.2, .7, .3, 1) both;
  }
  .hero .lede       { animation-delay: .07s; }
  .hero .titleblock { animation-delay: .14s; }
  .hero__actions    { animation-delay: .2s; }
  .hero__figure     { animation-delay: .1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media print {
  .masthead, .nav, .footer, .cta, .lightbox { display: none !important; }
  body { background: #fff; }
}

/* ---------------------------------------------------------------- flags */
.flags {
  display: grid; gap: var(--s3) var(--s2);
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.flag { display: flex; align-items: center; gap: .8rem; }
.flag img {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%;
}
.flag .place { font-weight: 600; line-height: 1.2; }
.flag .what { font-size: .875rem; color: var(--steel); line-height: 1.3; }
.section--slate .flag .place { color: #fff; }
.section--slate .flag .what { color: #A9BDBC; }
@media (max-width: 420px) { .flag img { width: 40px; height: 40px; } }

