/* Integra Technical Services: the site shell and the platform's fixes.

   integra-homepage.css is Sophia's page design, copied UNTOUCHED from her
   export by scripts/convert_integra_site.py, so a fresh export can be dropped
   over it. Everything the platform adds lives here instead: the header and
   its full-screen phone menu, the footer, the phone action bar, the real
   enquiry form, and the client's own design fix (no decorative dash before a
   section's small line). */

:root {
  color-scheme: light;
  --it-blue: #2e4362;
  --it-navy: #13162f;
  --it-ink: #28344a;
  --it-accent: #50769d;
  --it-foot: #121a2b;
  --it-line: #e4e9f0;
  --it-header-h: 84px;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--it-header-h) + 12px); -webkit-text-size-adjust: 100%; }
body.it-site { margin: 0; background: #fff; color: #444; font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.it-site button, body.it-site input, body.it-site select, body.it-site textarea { font-family: inherit; }
[hidden] { display: none !important; }
#main-content:focus { outline: none; }

.it-skip { position: absolute; left: 12px; top: -120px; z-index: 1000; background: #fff; color: var(--it-blue); padding: 12px 20px; border: 2px solid var(--it-blue); border-radius: 8px; font-weight: 700; }
.it-skip:focus { top: 10px; }

/* The client asked for the decorative line before the small kicker to go. */
.ith-page .ith-kicker::before { content: none !important; display: none !important; }
.ith-page .ith-kicker { gap: 0; }

/* ───────────────────────── header (desktop) ───────────────────────── */
.it-header { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--it-line); box-shadow: 0 4px 28px rgba(19,22,47,.04); }
@supports (backdrop-filter: blur(12px)) { @media (min-width: 1081px) { .it-header { backdrop-filter: blur(12px); } } }
.it-header-inner { max-width: 1400px; margin: 0 auto; padding: 8px 27px; min-height: var(--it-header-h); display: flex; align-items: center; gap: 24px; box-sizing: border-box; }
.it-logo { display: flex; align-items: center; flex: 0 0 auto; }
.it-logo img { width: 176px; height: auto; display: block; }
.it-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.it-links { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 24px); }
.it-links > a, .it-group-btn { color: var(--it-ink); font-weight: 700; font-size: 12.5px; white-space: nowrap; text-decoration: none; transition: color .2s; background: none; border: 0; padding: 8px 0; cursor: pointer; font-family: inherit; }
.it-links > a:hover, .it-group-btn:hover, .it-links > a[aria-current="page"], .it-group.is-current > .it-group-btn { color: var(--it-accent); }
.it-links > a[aria-current="page"] { box-shadow: 0 2px var(--it-accent); }
.it-group { position: relative; }
.it-chev { display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.it-group-btn[aria-expanded="true"] .it-chev { transform: translateY(0) rotate(-135deg); }
.it-group-links { position: absolute; top: calc(100% + 18px); left: -22px; min-width: 230px; padding: 10px; display: none; gap: 2px; background: #fff; border: 1px solid #e3e8ef; border-radius: 16px; box-shadow: 0 18px 50px rgba(19,22,47,.16); }
.it-group-btn[aria-expanded="true"] + .it-group-links { display: grid; }
@media (hover: hover) and (min-width: 1081px) {
  .it-group:hover .it-group-links, .it-group:focus-within .it-group-links { display: grid; }
  .it-group::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 20px; }
}
.it-group-links a { padding: 11px 12px; border-radius: 9px; color: var(--it-blue); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.it-group-links a:hover, .it-group-links a[aria-current="page"] { background: #f0f4f8; }
.it-header-cta { flex: 0 0 auto; font-size: 12.5px; font-weight: 800; color: #fff; text-decoration: none; background: var(--it-blue); border-radius: 999px; padding: 13px 18px; white-space: nowrap; transition: background .2s; }
.it-header-cta:hover { background: var(--it-navy); }
.it-header-cta span { margin-left: 6px; }
.it-burger { display: none; }
.it-sheet-top, .it-sheet-foot { display: none; }

@media (max-width: 1260px) and (min-width: 1081px) {
  .it-header-inner { gap: 16px; padding-inline: 20px; }
  .it-logo img { width: 150px; }
  .it-links { gap: 12px; }
  .it-links > a, .it-group-btn { font-size: 11.5px; }
  .it-header-cta { font-size: 11.5px; padding: 11px 14px; }
}

/* ─────────────── header (tablet and phone): the full-screen sheet ─────────────── */
@media (max-width: 1080px) {
  :root { --it-header-h: 68px; }
  .it-header-inner { padding: 6px 16px; gap: 12px; justify-content: space-between; }
  .it-logo img { width: 150px; }
  .it-header-cta { margin-left: auto; font-size: 12px; padding: 11px 15px; }
  .it-burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 46px; height: 46px; padding: 0; margin-right: -6px; background: none; border: 0; border-radius: 12px; cursor: pointer; color: var(--it-navy); }
  .it-burger span { width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
  .it-burger:focus-visible, .it-close:focus-visible { outline: 3px solid var(--it-accent); outline-offset: 2px; }

  .it-nav { position: fixed; inset: 0; z-index: 400; display: none; flex-direction: column; justify-content: flex-start; background: #fff; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 calc(24px + env(safe-area-inset-bottom)); }
  body.it-nav-open .it-nav { display: flex; animation: itSheet .22s ease-out; }
  body.it-nav-open { overflow: hidden; }
  .it-sheet-top { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; min-height: var(--it-header-h); padding: 6px 16px; box-sizing: border-box; background: #fff; border-bottom: 1px solid var(--it-line); }
  .it-close { position: relative; width: 46px; height: 46px; margin-right: -6px; background: none; border: 0; border-radius: 12px; cursor: pointer; color: var(--it-navy); }
  .it-close span::before, .it-close span::after { content: ""; position: absolute; left: 11px; top: 22px; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
  .it-close span::after { transform: rotate(-45deg); }

  .it-links { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 4px; }
  .it-links > a, .it-group-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: 0 4px; font-size: 19px; font-weight: 700; color: var(--it-navy); border-bottom: 1px solid #eef1f5; text-align: left; box-sizing: border-box; }
  .it-links > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--it-accent); padding-left: 14px; color: var(--it-blue); }
  .it-chev { width: 9px; height: 9px; margin-right: 6px; }
  /* On a phone the industries sit open under their heading: three rows are
     cheaper than a tap, and hidden pages are pages nobody visits. */
  .it-group-btn { pointer-events: none; color: #6b778a; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; min-height: 44px; border-bottom: 0; }
  .it-group-btn .it-chev { display: none; }
  .it-group-links { position: static; display: grid; min-width: 0; padding: 0 0 6px; border: 0; border-bottom: 1px solid #eef1f5; border-radius: 0; box-shadow: none; background: none; }
  .it-group-links a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; font-size: 17px; font-weight: 650; color: var(--it-blue); border-radius: 10px; }
  .it-group-links a[aria-current="page"] { background: #eef3f8; }

  .it-sheet-foot { display: grid; gap: 4px; padding: 20px 20px 0; }
  .it-sheet-foot .it-btn { margin-bottom: 18px; }
  .it-sheet-label { margin: 0 0 2px; color: #6b778a; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
  .it-sheet-contact { display: flex; align-items: center; min-height: 44px; color: var(--it-blue); font-size: 16px; font-weight: 650; text-decoration: none; word-break: break-word; }
}
@keyframes itSheet { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .it-header-cta { display: none; } .it-logo img { width: 142px; } }

.it-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 800; text-decoration: none; }
.it-btn-primary { background: var(--it-blue); color: #fff; }
.it-btn-primary:hover { background: var(--it-navy); }

/* ───────────────────────── footer ───────────────────────── */
.it-footer { background: var(--it-foot); color: #fff; padding: 64px 28px 24px; }
.it-footer-inner { width: min(1300px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px 48px; }
.it-footer-logo { display: inline-block; padding: 14px 18px; background: #fff; border-radius: 16px; }
.it-footer-logo img { display: block; width: 190px; height: auto; }
.it-footer-brand p { margin: 18px 0 0; max-width: 300px; color: #c9d2df; font-size: 14px; line-height: 1.6; }
.it-footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.it-footer-col h2 { margin: 0 0 8px; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.it-footer-col a, .it-footer-col p { color: #c9d2df; font-size: 14px; line-height: 1.55; text-decoration: none; margin: 0; padding: 5px 0; word-break: break-word; }
.it-footer-col a:hover { color: #fff; }
.it-footer-bottom { max-width: 1300px; margin: 44px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; color: #b2becc; font-size: 13px; }
.it-footer-bottom a { color: #b2becc; text-decoration: none; padding: 4px 0; }
.it-footer-bottom a:hover { color: #fff; }
@media (max-width: 900px) {
  .it-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .it-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .it-footer { padding: 44px 20px 22px; }
  .it-footer-inner { gap: 28px 18px; }
  .it-footer-col a { min-height: 40px; display: flex; align-items: center; padding: 0; }
  .it-footer-col:last-child { grid-column: 1 / -1; }
  .it-footer-bottom { margin-top: 28px; flex-direction: column; }
}

/* ───────────────── the phone action bar: call, WhatsApp, assessment ───────────────── */
.it-actionbar { display: none; }
@media (max-width: 760px) {
  .it-actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; display: flex; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); border-top: 1px solid var(--it-line); box-shadow: 0 -8px 26px rgba(19,22,47,.08); }
  /* Room for the bar under the FOOTER, not the body: padding on the body shows
     as a white band under the dark footer. */
  .it-footer { padding-bottom: calc(22px + 70px + env(safe-area-inset-bottom)); }
  body.it-nav-open .it-actionbar { display: none; }
  .it-act { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 62px; min-height: 50px; border-radius: 14px; color: var(--it-blue); background: #f0f4f8; font-size: 11.5px; font-weight: 750; text-decoration: none; }
  .it-act svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
  .it-act-wa { color: #0f6e4f; background: #e9f6f0; }
  .it-act-wa svg { fill: currentColor; stroke: none; }
  .it-act-cta { flex: 1; flex-direction: row; gap: 8px; color: #fff; background: var(--it-blue); font-size: 14.5px; padding: 0 14px; }
}

/* ───────────────────────── the enquiry form ───────────────────────── */
.it-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.it-form-msg { margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; font-size: 14.5px; line-height: 1.55; font-weight: 600; }
.it-form-ok { background: #ecf7f1; border: 1px solid #b6e1c9; color: #155b3a; }
.it-form-err { background: #fdf0f0; border: 1px solid #f2c4c4; color: #8f1d1d; }
.ith-photo-field input[type="file"] { display: block; width: 100%; margin-top: 8px; padding: 12px; border: 1.5px dashed #b9c7d8; border-radius: 12px; background: #f7f9fc; color: var(--it-ink); font-size: 14px; box-sizing: border-box; cursor: pointer; }
.ith-photo-field input[type="file"]::file-selector-button { margin-right: 12px; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--it-blue); color: #fff; font-weight: 700; cursor: pointer; }
.ith-photo-hint { display: block; margin-top: 6px; color: #6b778a; font-size: 12.5px; font-weight: 500; }
.ith-form-note a { color: var(--it-blue); text-decoration: underline; }
.ith-lead-form button[type="submit"][aria-busy="true"] { opacity: .7; pointer-events: none; }
@media (max-width: 1080px) {
  /* iOS zooms the whole page on focus when a field is under 16px. */
  .ith-page input:not([type="hidden"]):not([type="file"]), .ith-page select, .ith-page textarea { font-size: 16px !important; }
}

/* ───────────────────────── phone polish over the export ───────────────────────── */
@media (max-width: 767px) {
  /* The hero photo was 440px of portrait on a 390px screen before a visitor
     reached anything. Shorter, so the button and the next section show. */
  .ith-hero-image-wrap { min-height: 360px !important; }
  .ith-inner-hero .ith-hero-image-wrap { min-height: 320px !important; }
  .ith-hero-copy h1, .ith-contact-copy h1 { overflow-wrap: anywhere; hyphens: auto; }
  .ith-button { min-height: 50px; }
  .ith-faq summary { min-height: 56px; }
  .ith-contact-details a { min-height: 48px; }
  /* The closing band's buttons match every other full-width button on a phone. */
  .ith-cta-actions .ith-button { width: 100%; }
  /* The export set these at 9px and 11px, which no one reads on a phone. */
  .ith-proof-item strong { font-size: 12.5px !important; }
  .ith-proof-item span:not(.ith-proof-icon) { font-size: 11.5px !important; line-height: 1.35; }
  /* The process picture was a 760px strip to swipe sideways, half of it off
     screen. It is an illustration and the four steps are written out above
     it, so on a phone it is shown WHOLE, at the width of the screen. */
  .ith-process-visual { overflow: hidden !important; }
  .ith-process-diagram { width: 100% !important; min-width: 0 !important; min-height: 0 !important; padding: 6px !important; }
}
@media (max-width: 380px) {
  .ith-shell { width: calc(100% - 24px) !important; }
  .ith-hero-copy h1 { font-size: 33px !important; }
}

/* ───────────────────────── 404 ───────────────────────── */
.it-404 { padding: 90px 0 110px; text-align: center; }
.it-404 h1 { margin: 10px 0 14px; color: var(--it-navy); font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -.03em; }
.it-404 p { max-width: 560px; margin: 0 auto 26px; color: #555; font-size: 16px; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.it-nav-open .it-nav { animation: none; }
}
