/* IOM Scaffolding Ltd — main stylesheet (monochrome, matched to logo) */
:root {
  --black: #0b0b0b;
  --black-2: #1a1a1a;
  --grey-1: #f3f3f3;   /* light panels */
  --grey-2: #e6e6e6;   /* rosette tone */
  --grey-3: #cfcfcf;
  --grey-4: #8a8a8a;
  --line: #dddddd;
  --white: #ffffff;
  --text: #1c1c1c;
  --muted: #5e5e5e;
  --radius: 4px;
  --wrap: 1180px;
  --head: "League Spartan", "Futura", "Century Gothic", "Arial Black", sans-serif;
  --body: "Inter", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6;
  color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--head); font-weight: 800; line-height: 1; letter-spacing: -.005em;
  margin: 0 0 .5em; color: var(--black); text-transform: uppercase;
}
h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section--grey { background: var(--grey-1); }
.section--dark { background: var(--black); color: #c4c4c4; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .18em; color: var(--grey-4); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }
.section--dark .eyebrow { color: #9a9a9a; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section--dark .lead { color: #b0b0b0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px 13px; border-radius: var(--radius);
  font-family: var(--head); font-weight: 800; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none; line-height: 1;
  border: 2px solid transparent; cursor: pointer; transition: .15s ease;
}
.btn svg { width: 18px; height: 18px; margin-top: -2px; }
.btn--primary { background: var(--black); color: #fff; }
.btn--primary:hover { background: #333; }
.btn--outline { border-color: var(--black); color: var(--black); }
.btn--outline:hover { background: var(--black); color: #fff; }
.btn--light { background: #fff; color: var(--black); }
.btn--light:hover { background: var(--grey-2); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--whatsapp { background: #25d366; color: #06301a; }
.btn--whatsapp:hover { background: #1ebe5b; }

/* Top bar + header */
.topbar { background: var(--black); color: #a8a8a8; font-size: .85rem; font-weight: 500; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: #eee; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__items { display: flex; gap: 22px; flex-wrap: wrap; }

.header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 20px; }
.logo { display: block; flex: none; }
.logo img { height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  font-family: var(--head); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; color: var(--black); padding: 10px 14px 8px;
}
.nav a:not(.btn):hover { background: var(--grey-1); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--black); }
.nav .btn { margin-left: 10px; padding: 13px 20px 11px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--black); }
.header-quote { display: none; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 880px) {
  .header .wrap { height: 72px; }
  .logo img { height: 46px; }
  .nav-toggle { display: block; }
  .header-quote {
    display: inline-flex; margin-left: auto; margin-right: 4px;
    padding: 11px 14px 9px; font-size: .9rem; white-space: nowrap;
  }
  .header .wrap { gap: 10px; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 18px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--black); padding-left: 14px; }
  .nav .btn { margin: 14px 0 0; }
  .topbar__hide-sm { display: none; }
}
@media (max-width: 400px) {
  .logo img { height: 38px; }
  .header-quote { padding: 10px 11px 8px; font-size: .82rem; letter-spacing: .02em; }
  .header .wrap { gap: 6px; }
  .nav-toggle { padding: 6px; }
}

/* Rosette motif (from the logo) */
.rosette { pointer-events: none; user-select: none; height: auto; opacity: .5; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--grey-1); border-bottom: 1px solid var(--line); }
.hero .rosette {
  position: absolute; z-index: 0; width: 1150px; max-width: none;
  right: -470px; top: 50%; transform: translateY(-50%);
}
.hero .wrap { position: relative; z-index: 1; padding: clamp(64px, 9vw, 124px) 0; }
.hero__content { max-width: 640px; }
.hero h1 { margin-bottom: .35em; }
.hero h1 span { display: block; color: var(--grey-4); }
.hero p { font-size: 1.2rem; color: #3a3a3a; max-width: 540px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero__badges { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 44px; padding-top: 26px; border-top: 2px solid var(--black); max-width: 600px; }
.hero__badges div { font-size: .92rem; color: var(--muted); }
.hero__badges strong { display: block; font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 1.45rem; color: var(--black); line-height: 1.1; }
@media (max-width: 900px) {
  .hero .rosette { width: 760px; right: -420px; top: auto; bottom: -80px; transform: none; opacity: .6; }
}

/* Page hero (inner pages) */
.page-hero { background: var(--grey-1); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .rosette { position: absolute; width: 900px; max-width: none; right: -280px; top: 50%; transform: translateY(-50%); }
.page-hero .wrap { position: relative; padding: clamp(56px, 7vw, 92px) 0; }
.page-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); }
.page-hero p { font-size: 1.15rem; max-width: 600px; margin: 0; color: #3a3a3a; }
.crumbs { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; color: var(--grey-4); }
.crumbs a { color: var(--black); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.card {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--black);
  border-radius: var(--radius); padding: 30px 28px; transition: .2s ease;
}
.card:hover { box-shadow: 0 16px 34px -20px rgba(0,0,0,.4); transform: translateY(-2px); }
.card__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--black); display: grid; place-items: center; margin-bottom: 20px; }
.card__icon svg { width: 26px; height: 26px; color: #fff; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card__link { display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; font-weight: 700; text-decoration: none; color: var(--black); font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; }
.card__link:hover { text-decoration: underline; }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 8'/%3E%3C/svg%3E") center/14px no-repeat;
}
.section:not(.section--dark) .ticks li::before { background-color: var(--black); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 8'/%3E%3C/svg%3E"); }
.ticks strong { display: block; color: var(--black); }
.section--dark .ticks strong { color: #fff; }

.media-frame { border-radius: var(--radius); overflow: hidden; background: var(--black-2); aspect-ratio: 4/3; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame picture { display: block; width: 100%; height: 100%; }
.media-frame--portrait { aspect-ratio: 3/4; max-width: 480px; justify-self: center; width: 100%; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.media-frame--portrait img { object-position: center 40%; }

/* Steps */
.steps { counter-reset: step; }
.step { border-top: 4px solid var(--black); padding-top: 22px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--head); font-weight: 900; font-size: 3rem; color: var(--grey-2); display: block; line-height: 1; margin-bottom: 10px;
}
.step h3 { font-size: 1.3rem; }
.step p { font-size: .97rem; margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--black); color: #c4c4c4; position: relative; overflow: hidden; }
.cta-band .rosette { position: absolute; width: 1000px; max-width: none; right: -420px; top: 50%; transform: translateY(-50%); opacity: .5; }
.cta-band .wrap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 56px 0; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: #fff; }
.cta-band p { margin: 0; }
.cta-band__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Services detail */
.service { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.service:first-child { border-top: 0; padding-top: 0; }
.service__head { display: flex; flex-direction: column; gap: 16px; }
.service__head .card__icon { margin: 0; }
.service h2 { font-size: 1.9rem; margin: 0; }
.service ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); columns: 2; column-gap: 32px; }
.service ul li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 18px; } .service ul { columns: 1; } }

/* Projects */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter {
  font-family: var(--head); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em;
  border: 2px solid var(--black); background: #fff; padding: 10px 18px 8px; border-radius: 999px; cursor: pointer; color: var(--black);
}
.filter.is-active, .filter:hover { background: var(--black); color: #fff; }
.project { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.project[hidden] { display: none; }
.project__img { aspect-ratio: 4/3; background: var(--black-2); position: relative; overflow: hidden; }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project:hover .project__img img { transform: scale(1.04); }
.project__tag {
  position: absolute; top: 14px; left: 14px; background: #fff; color: var(--black);
  font-family: var(--head); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px 4px; border-radius: 3px;
}
.project__body { padding: 20px 22px 24px; }
.project__body h3 { font-size: 1.3rem; margin-bottom: 6px; }
.project__body p { margin: 0; color: var(--muted); font-size: .95rem; }
.project__loc { font-size: .78rem !important; color: var(--grey-4) !important; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 8px !important; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--black); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--black); }
.field label span { color: #b42318; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #c4c4c4; border-radius: var(--radius); background: #fff; color: var(--text); width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(0,0,0,.18); border-color: var(--black); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 22px; font-weight: 500; display: none; }
.alert.is-shown { display: block; }
.alert--ok { background: #e7f6ec; color: #135b2c; border: 1px solid #b4e1c3; }
.alert--err { background: #fdecec; color: #8a1c1c; border: 1px solid #f3c0c0; }

.info-card { background: var(--black); color: #bdbdbd; border-radius: var(--radius); padding: 32px; }
.info-card h3 { color: #fff; }
.info-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; }
.info-list svg { width: 22px; height: 22px; flex: none; color: #fff; margin-top: 3px; }
.info-list strong { display: block; color: #fff; font-weight: 600; }
.info-list a { color: #e6e6e6; text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.info-card .btn { width: 100%; }
.hours { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .95rem; }
.hours div { display: flex; justify-content: space-between; padding: 4px 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--grey-3); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--black); list-style: none; display: flex; justify-content: space-between; gap: 20px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--head); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Footer */
.footer { background: var(--black); color: #9a9a9a; font-size: .95rem; border-top: 1px solid #222; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 64px 0 40px; }
@media (max-width: 860px) { .footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer .wrap { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 1.05rem; letter-spacing: .06em; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { text-decoration: none; color: #cfcfcf; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .logo { margin-bottom: 20px; }
.footer .logo img { height: 64px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.socials a:hover { background: #fff; color: var(--black); }
.socials svg { width: 18px; height: 18px; }
.footer__base { border-top: 1px solid rgba(255,255,255,.08); }
.footer__base .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: .85rem; flex-wrap: wrap; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }

/* Utilities */
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--black); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
:focus-visible { outline: 3px solid #555; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
