/* Intellify IT — site styles (INT-4 v2 rebuild, 9 Nov 2026: image-led, company-first, CTAs throughout).
 * Layers: base → layout → header/nav → components → sections → footer → pop-up. Colours and fonts come from
 * tokens.css (IHS-001). Mobile-first at 390 px. One small script (/assets/js/site.js) only enhances; everything works without it. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ihs-color-paper); color: var(--ihs-color-ink);
  font-family: var(--ihs-font-body); font-weight: var(--ihs-weight-body); font-size: 1.0625rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--ihs-font-display, var(--ihs-font-headings));
  font-weight: var(--ihs-weight-headings);
  line-height: 1.15; text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, 5.5vw, 3.75rem); margin: 0.5rem 0 1rem; }
h2 { font-size: clamp(1.625rem, 3.2vw, 2.375rem); margin: 0 0 0.75rem; }
h3, .h3 { font-size: 1.25rem; }
.h3 { display: block; font-family: var(--ihs-font-display, var(--ihs-font-headings)); font-weight: 600; line-height: 1.2; }
a { color: var(--ihs-color-primary); text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--ihs-color-focus); outline-offset: 2px; }
main:focus { outline: none; }
.skip-link { position: absolute; left: 0.5rem; top: -3rem; padding: 0.5rem 1rem; background: var(--ihs-color-surface); color: var(--ihs-color-primary); z-index: 50; }
.skip-link:focus { top: 0.5rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- layout ---------- */
.wrap { max-width: 75rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3rem); }
main { padding-block: 1rem 3rem; }
main.landing { padding-block: 0; }
.page { max-width: 75rem; margin-inline: auto; padding: 2rem clamp(1rem, 4vw, 3rem) 3rem; }
.prose, .lead, .page > :where(p, ul, ol) { max-width: 68ch; }
.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band-alt { background: var(--ihs-color-surface); }
.band-ink { background: #04334E; color: #E6F0F6; }
.band-ink .eyebrow { color: #08DF92; }
.band-ink a:not(.btn) { color: #E6F0F6; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 63.99rem) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 47.99rem) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}
.plain { list-style: none; margin: 0; padding: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }

/* ---------- header + primary nav (dropdowns are <details>: work without JS) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--ihs-color-paper) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid color-mix(in srgb, var(--ihs-color-muted) 30%, transparent);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.75rem; }
.brand { display: inline-flex; min-height: 44px; align-items: center; color: var(--ihs-color-ink); text-decoration: none; }
.brand img { width: 160px; }
.nav-menu > summary {
  cursor: pointer; padding: 0.5rem 1rem; min-height: 44px; display: flex; align-items: center;
  border: 1px solid var(--ihs-color-muted); border-radius: 0.375rem; list-style: none; font-weight: 600;
}
.nav-menu summary::-webkit-details-marker, .dd summary::-webkit-details-marker { display: none; }
.nav-list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.nav-list a, .dd > summary { display: flex; align-items: center; min-height: 44px; padding: 0.25rem 0; color: var(--ihs-color-ink); text-decoration: none; font-weight: 600; }
.dd > summary { cursor: pointer; list-style: none; }
.dd > summary::after { content: ""; width: 0.45em; height: 0.45em; margin-left: 0.5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.dd[open] > summary::after { transform: rotate(-135deg); }
.dd ul { list-style: none; margin: 0; padding: 0 0 0.5rem 1rem; }
.dd ul a { font-weight: 400; }
.nav-list a:hover, .dd > summary:hover { color: var(--ihs-color-primary); }
.nav-list a[aria-current="page"], .is-active > .dd > summary { color: var(--ihs-color-primary); }
@media (max-width: 63.99rem) {
  .nav-menu > summary { display: inline-flex; }
  .nav-menu[open] .nav-list {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 0.5rem clamp(1rem, 4vw, 3rem) 1.25rem;
    background: var(--ihs-color-paper); border-bottom: 1px solid color-mix(in srgb, var(--ihs-color-muted) 30%, transparent);
    max-height: calc(100vh - 5rem); overflow-y: auto; box-shadow: 0 1rem 2rem color-mix(in srgb, #04334E 15%, transparent);
  }
  .header-inner { flex-wrap: nowrap; }
  .brand { margin-right: auto; }
}
@media (max-width: 29.99rem) { .header-inner > .btn { display: none; } }
@media (min-width: 64rem) {
  .nav-menu > summary { display: none; }
  .nav-menu { display: contents; }
  .nav-list { display: flex; gap: 0 1.75rem; margin: 0; align-items: center; }
  @supports selector(::details-content) { .nav-menu::details-content { content-visibility: visible; display: contents; } }
  @supports not selector(::details-content) { .nav-menu > summary { display: inline-flex; } .nav-menu { display: block; } } /* older browsers: keep the Menu toggle (site.js also opens it on desktop) */
  .has-sub { position: relative; }
  .dd ul {
    position: absolute; left: -1rem; top: 100%; min-width: 15rem; padding: 0.5rem 1rem; background: var(--ihs-color-surface);
    border: 1px solid color-mix(in srgb, var(--ihs-color-muted) 35%, transparent); border-radius: 0.5rem;
    box-shadow: 0 1rem 2.5rem color-mix(in srgb, #04334E 18%, transparent);
  }
}

/* ---------- components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.55rem 1.25rem;
  border: 2px solid var(--ihs-color-primary); border-radius: 0.5rem; background: var(--ihs-color-primary);
  color: var(--ihs-color-on-primary); font-weight: 600; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0.5rem 1.25rem color-mix(in srgb, var(--ihs-color-primary) 35%, transparent); }
.btn-lg { min-height: 52px; padding: 0.75rem 1.75rem; font-size: 1.0625rem; }
.btn-secondary { background: transparent; color: var(--ihs-color-primary); }
.btn-ghost { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.band-ink .btn:not(.btn-ghost), .cta-hero .btn:not(.btn-ghost), .hero-x .btn:not(.btn-ghost), .page-hero .btn:not(.btn-ghost) { background: #08DF92; border-color: #08DF92; color: #03263A; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin: 1.5rem 0 0; }
.eyebrow { margin: 0 0 0.5rem; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ihs-color-accent); }
.eyebrow a { color: inherit; }
.lead { font-size: 1.1875rem; }
.card { background: var(--ihs-color-surface); border: 1px solid color-mix(in srgb, var(--ihs-color-muted) 30%, transparent); border-radius: 0.75rem; padding: 1.5rem; }
.card h3 { margin: 0 0 0.5rem; }
.card p { margin: 0.5rem 0 0; }
.media-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.media-card img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; transition: transform .4s ease; }
.card-body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.25rem 1.5rem 1.5rem; flex: 1; }
.link-card { color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.link-card:hover { transform: translateY(-4px); box-shadow: 0 1rem 2rem color-mix(in srgb, #04334E 15%, transparent); }
.link-card:hover img, .media-card:hover img { transform: scale(1.04); }
.band-ink .card { background: #054263; border-color: #0B5A86; color: #E6F0F6; }
.more { margin-top: auto; padding-top: 0.5rem; font-weight: 600; color: var(--ihs-color-primary); }
.more::after { content: " →"; }
.tag, .badge { align-self: flex-start; display: inline-block; font-size: 0.8125rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; }
.tag { color: var(--ihs-color-accent); background: color-mix(in srgb, var(--ihs-color-accent) 12%, transparent); }
.badge { color: #03263A; background: #08DF92; }
.rounded { border-radius: 1rem; box-shadow: 0 1.25rem 3rem color-mix(in srgb, #04334E 18%, transparent); }
.checks { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.checks li { padding-left: 1.9rem; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--ihs-color-accent); -webkit-mask: none;
}
.checks li::after { content: ""; position: absolute; left: 0.4rem; top: 0.48em; width: 0.32rem; height: 0.6rem; border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.steps { counter-reset: step; list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 47.99rem) { .steps-4 { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 3.25rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--ihs-color-accent); color: #FFFFFF; font-weight: 700;
}
.steps strong { display: block; font-size: 1.125rem; }
.steps span { display: block; color: var(--ihs-color-muted); }
.faq { display: grid; gap: 0.75rem; max-width: 52rem; margin-bottom: 2.5rem; }
.faq details { padding: 1rem 1.25rem; background: var(--ihs-color-surface); border: 1px solid color-mix(in srgb, var(--ihs-color-muted) 35%, transparent); border-radius: 0.5rem; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.pill-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pill-links a, .tags li { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 1rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ihs-color-muted) 45%, transparent); background: var(--ihs-color-surface); text-decoration: none; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.note, .site { color: var(--ihs-color-muted); font-size: 0.9375rem; }
.sub { font-family: var(--ihs-font-body); font-size: 0.6em; font-weight: 400; color: var(--ihs-color-muted); }
.facts { display: grid; gap: 1rem; margin: 1.25rem 0 0; }
.facts dt { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ihs-color-accent); }
.facts dd { margin: 0.2rem 0 0; }

/* ---------- photo heroes: image behind a navy overlay, text on top ---------- */
.hero-x, .page-hero, .cta-hero { position: relative; isolation: isolate; overflow: hidden; color: #FFFFFF; background: #03263A; }
.hero-x .bg, .page-hero .bg, .cta-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-x::before, .page-hero::before, .cta-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(3, 38, 58, 0.95) 0%, rgba(4, 51, 78, 0.82) 50%, rgba(4, 51, 78, 0.45) 100%);
}
.hero-inner { padding-block: clamp(4rem, 12vw, 8.5rem); max-width: 75rem; }
.hero-inner > * { max-width: 46rem; }
.hero-x .eyebrow, .page-hero .eyebrow, .cta-hero .eyebrow { color: #08DF92; }
.hero-x .lead, .page-hero .lead { color: #D3E3EE; }
.page-hero .hero-inner { padding-block: clamp(3rem, 9vw, 6rem); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 2.5rem; color: #D3E3EE; }
.hero-facts strong { display: block; font-size: 1.75rem; color: #FFFFFF; font-family: var(--ihs-font-display, var(--ihs-font-headings)); }
.hero-x h1 { animation: rise .7s ease both; }
.hero-x .lead { animation: rise .7s .1s ease both; }
.hero-x .actions { animation: rise .7s .2s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cta-inner { padding-block: clamp(3.5rem, 9vw, 6rem); text-align: center; }
.cta-inner > * { margin-inline: auto; max-width: 44rem; }
.cta-inner .actions { justify-content: center; }
.cta-hero p { color: #D3E3EE; }

/* ---------- sections ---------- */
.pillars { margin-top: 2rem; }
.svc-cards .card-body span:not(.tag):not(.more), .prod-cards .card-body span:not(.badge) { color: var(--ihs-color-muted); }
.band-ink .prod-cards .card-body span:not(.badge) { color: #B9CEDC; }
.feature { align-items: center; }
.shots { position: relative; padding: 0 2.5rem 2.5rem 0; }
.shot-desktop { border-radius: 0.75rem; box-shadow: 0 1.5rem 3.5rem color-mix(in srgb, #04334E 25%, transparent); }
.shot-mobile { position: absolute; right: 0; bottom: 0; width: 28%; border-radius: 1rem; border: 4px solid #04334E; box-shadow: 0 1rem 2rem color-mix(in srgb, #04334E 30%, transparent); }
.svc-list { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.svc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.svc-row.flip > img { order: 2; }
.svc-row h2 { margin-top: 0.5rem; }
@media (max-width: 47.99rem) { .svc-row { grid-template-columns: minmax(0, 1fr); } .svc-row.flip > img { order: 0; } }
.statements p { margin: 0; font-size: 1.125rem; }
.motto-big { font-family: var(--ihs-font-display, var(--ihs-font-headings)); font-size: 1.75rem !important; color: #FFFFFF; }
.values .card { border-top: 4px solid var(--ihs-color-accent); }
.wip { border-top: 4px solid var(--ihs-color-primary); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 47.99rem) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-side h2 { font-size: 1.375rem; }
.contact-side h3 { font-size: 1.0625rem; margin-top: 1.5rem; }
.contact-side .steps li { padding-top: 0; padding-left: 3.25rem; min-height: 2.5rem; }

/* ---------- forms. The honeypot is off-screen, not display:none, so naive bots still fill it. ---------- */
.contact-form { max-width: 40rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 0.65rem 0.75rem; font: inherit; min-height: 44px; color: var(--ihs-color-ink);
  background: var(--ihs-color-surface); border: 1px solid var(--ihs-color-muted); border-radius: 0.5rem;
}
.contact-form button { font: inherit; cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: #03263A; color: #B9CEDC; font-size: 0.9375rem; }
.site-footer a { color: #E6F0F6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 3.5rem; }
.footer-col h2 { font-family: var(--ihs-font-body); font-size: 0.9375rem; margin: 0 0 0.75rem; color: #FFFFFF; letter-spacing: 0.04em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-col p { margin: 0 0 0.5rem; }
.motto { font-family: var(--ihs-font-display, var(--ihs-font-headings)); font-size: 1.25rem; color: #08DF92; }
@media (max-width: 47.99rem) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid .footer-col:first-child { grid-column: 1 / -1; } }

/* ---------- CTA pop-up (shown by site.js after a delay or scroll; never on the contact pages) ---------- */
.promo {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: min(22rem, calc(100vw - 2rem)); padding: 1.5rem;
  background: #04334E; color: #E6F0F6; border-radius: 1rem; border-top: 4px solid #08DF92;
  box-shadow: 0 1.5rem 3rem rgba(3, 38, 58, 0.4); animation: rise .4s ease both;
}
.promo[hidden] { display: none; }
.promo h2 { font-size: 1.375rem; margin: 0 0 0.5rem; color: #FFFFFF; }
.promo p { margin: 0 0 0.75rem; }
.promo .eyebrow { color: #08DF92; }
.promo .btn { background: #08DF92; border-color: #08DF92; color: #03263A; }
.promo-close {
  position: absolute; top: 0.5rem; right: 0.5rem; width: 44px; height: 44px; border: 0; background: transparent;
  color: #E6F0F6; font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: 50%;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- hero slider (INT-4 v3): scroll-snap track, works without JS (swipe); site.js adds autoplay, arrows, dots, pause ---------- */
.slider { padding: 0; }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; isolation: isolate; scroll-snap-align: start; min-height: clamp(30rem, 72vh, 44rem); display: flex; align-items: center; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(3, 38, 58, 0.95) 0%, rgba(4, 51, 78, 0.82) 50%, rgba(4, 51, 78, 0.45) 100%); }
.slide .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.slider.hero-x::before { display: none; }
.slide .hero-inner { width: 100%; padding-bottom: clamp(5rem, 10vw, 7rem); }
.h1 { font-size: clamp(2.125rem, 5.5vw, 3.75rem); margin: 0.5rem 0 1rem; }
.slider-controls { position: absolute; left: 0; right: 0; bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.slide-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.7); background: rgba(3, 38, 58, 0.5); color: #FFFFFF; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.slide-btn.pause { font-size: 0.75rem; margin-left: auto; }
.dots { display: flex; gap: 0.25rem; }
.dot { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.7rem; height: 0.7rem; transform: translate(-50%, -50%); border-radius: 999px; background: rgba(255, 255, 255, 0.5); transition: width .3s ease; }
.dot.is-active::after { width: 1.75rem; background: #08DF92; }
.slide:not(.is-active) .hero-inner > * { animation: none; }

/* ---------- difference cards + plans ---------- */
.diff .card { border-top: 4px solid var(--ihs-color-accent); }
.plans { align-items: stretch; margin-top: 1.5rem; }
.plan { display: flex; flex-direction: column; gap: 0.25rem; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan .checks { margin-bottom: 1rem; }
.plan.featured { border: 2px solid var(--ihs-color-primary); box-shadow: 0 1rem 2.5rem color-mix(in srgb, #04334E 15%, transparent); }
.price { font-family: var(--ihs-font-display, var(--ihs-font-headings)); font-size: 1.625rem; font-weight: 600; color: var(--ihs-color-ink); margin: 0.25rem 0 0.5rem !important; }
.per { font-family: var(--ihs-font-body); font-size: 0.9375rem; font-weight: 400; color: var(--ihs-color-muted); }
