/* Intellicorp Australia — modern rebuild mockup
   Brand held over from the current site: olive wordmark (#5E5016),
   turquoise circuit-trace accent, slate-blue + beige support colours,
   "Established Since 1989". Mobile-first, system fonts, no CDNs. */

:root {
  --olive: #5E5016;
  --olive-deep: #453B10;
  --cyan: #3ED6CE;
  --teal: #0E7C74;
  --slate: #97A8C6;
  --slate-deep: #2E3A50;
  --slate-wash: #EEF2F8;
  --beige: #E8E0D1;
  --beige-wash: #F7F3EB;
  --orange: #BF4A0A;
  --ink: #26221A;
  --muted: #5C574B;
  --line: #DDD8CC;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--olive); }

/* keyboard focus — visible on both light and dark surfaces */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
.topbar :focus-visible, .homehero :focus-visible, .sitefoot :focus-visible { outline-color: var(--cyan); }

/* subtle, intentional interaction motion */
a, .btn, .card, .mainnav a, .pdf-pill, .nav-toggle, .topbar a,
.sitefoot a, .cform input, .cform textarea, .cform select {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.homehero h1, .pagehero h1, .prose h2, .prose h3 { text-wrap: balance; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }

/* ---------- top bar ---------- */
.topbar { background: var(--slate-deep); color: #E7ECF5; font-size: 0.83rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; padding-block: 7px; }
.topbar a { color: #E7ECF5; text-decoration: none; }
.topbar a:hover { color: var(--cyan); }
.topbar .spacer { flex: 1; }
.topbar strong { font-weight: 600; letter-spacing: 0.02em; }

/* ---------- header / brand ---------- */
.sitehead { border-bottom: 1px solid var(--line); background: #fff; }
.brandrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 26px; padding-block: 22px 16px; }
.brand { text-decoration: none; display: block; }
.brand-name {
  display: block;
  font-size: clamp(1.55rem, 4.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  line-height: 1.1;
}
.brand-trace { display: block; margin-top: 4px; }
.brand-side { display: flex; flex-direction: column; gap: 1px; padding-bottom: 2px; }
.brand-sub {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--olive);
}
.brand-est { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- nav ---------- */
.nav-toggle-box { display: none; }
.nav-toggle {
  display: none;
  align-items: center; gap: 8px;
  padding: 10px 0; cursor: pointer;
  font-weight: 700; color: var(--olive); font-size: 0.95rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.nav-toggle .bars { display: inline-block; width: 20px; height: 2px; background: var(--olive); position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--olive);
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

.mainnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 4px; }
.mainnav a {
  display: block; padding: 10px 11px 12px;
  text-decoration: none; color: var(--ink);
  font-size: 0.92rem; font-weight: 600;
  border-bottom: 3px solid transparent;
}
.mainnav a:hover { color: var(--olive); border-bottom-color: var(--beige); }
.mainnav a[aria-current="page"] { color: var(--olive); border-bottom-color: var(--cyan); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .mainnav { display: none; padding-bottom: 12px; }
  .nav-toggle-box:checked ~ .mainnav { display: block; }
  .mainnav ul { flex-direction: column; gap: 0; }
  .mainnav a { border-bottom: 1px solid var(--line); border-left: 3px solid transparent; padding: 11px 10px; }
  .mainnav a[aria-current="page"] { border-left-color: var(--cyan); border-bottom-color: var(--line); background: var(--beige-wash); }
}

/* ---------- page hero ---------- */
.pagehero { background: var(--slate-wash); border-bottom: 1px solid #DFE6F0; }
.pagehero .wrap { padding-block: 30px 26px; }
.crumbs { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); text-decoration: underline; }
.pagehero h1 { color: var(--olive-deep); font-size: clamp(1.5rem, 4vw, 2.05rem); line-height: 1.2; }
.pagehero .rule { width: 64px; height: 4px; background: var(--cyan); margin-top: 12px; border-radius: 2px; }
.pagehero .lead { margin-top: 12px; max-width: 62ch; color: var(--muted); font-size: 1.02rem; }

/* ---------- content ---------- */
main { padding-block: 34px 50px; }
.prose { max-width: 74ch; }
.prose p, .prose ul, .prose ol { margin-bottom: 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose h2 { color: var(--olive); font-size: 1.32rem; margin: 1.6em 0 0.55em; line-height: 1.25; }
.prose h3 { color: var(--olive-deep); font-size: 1.08rem; margin: 1.4em 0 0.45em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.8em 0; }
.prose em { color: var(--muted); }
.prose .imgbox {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px; margin: 1.2em 0; display: inline-block;
}
.prose .imgbox img { border-radius: 4px; }
.prose .imgbox figcaption { font-size: 0.8rem; color: var(--muted); padding-top: 6px; }

.sos { color: var(--orange); font-weight: 700; }
a.sos:hover { color: var(--orange); text-decoration: underline; }

/* buttons */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 6px;
  background: var(--olive); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 0.93rem; letter-spacing: 0.02em;
  border: 2px solid var(--olive);
}
.btn:hover { background: var(--olive-deep); border-color: var(--olive-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--olive); }
.btn-outline:hover { background: var(--beige-wash); color: var(--olive-deep); }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0; }

/* labelled note (migration / preview annotations — clearly not client copy) */
.note {
  border: 1px solid var(--slate);
  background: var(--slate-wash);
  padding: 12px 16px; border-radius: 6px;
  font-size: 0.88rem; color: var(--muted);
  margin: 1.4em 0; max-width: 74ch;
}
.note strong { color: var(--slate-deep); }

/* ---------- link cards (section children / home actions) ---------- */
.cards {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  margin: 1.6em 0;
}
.card {
  display: block; text-decoration: none;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 16px 18px; background: #fff;
  color: var(--ink);
}
.card:hover { border-color: var(--cyan); box-shadow: 0 2px 10px rgba(46, 58, 80, 0.08); color: var(--ink); }
.card h3 { color: var(--olive); font-size: 1rem; margin-bottom: 5px; }
.card p { font-size: 0.86rem; color: var(--muted); }
.card .go { display: inline-block; margin-top: 8px; font-size: 0.82rem; font-weight: 700; color: var(--teal); }

/* ---------- home hero ---------- */
.homehero { background: var(--slate-deep); color: #fff; }
.homehero .wrap { padding-block: 52px 56px; }
.homehero h1 { font-size: clamp(1.65rem, 5vw, 2.5rem); line-height: 1.18; max-width: 24ch; }
.homehero .est {
  display: inline-block; margin-bottom: 16px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(62, 214, 206, 0.45); border-radius: 99px; padding: 5px 14px;
}
.homehero p { margin-top: 16px; max-width: 62ch; color: #D6DEEC; font-size: 1.05rem; }
.homehero .btnrow { margin-top: 26px; }
.homehero .btn { background: var(--cyan); border-color: var(--cyan); color: #12312E; }
.homehero .btn:hover { background: #6BE2DC; border-color: #6BE2DC; }
.homehero .btn-ghost { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.homehero .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: transparent; }

/* ---------- pehamed product rows ---------- */
.product {
  display: grid; grid-template-columns: 120px 1fr; gap: 18px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 18px; margin-bottom: 16px; background: #fff;
}
.product .pimg {
  background: var(--beige-wash); border: 1px solid var(--line); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px; align-self: start;
}
.product h3 { color: var(--olive-deep); font-size: 1.05rem; margin-bottom: 2px; }
.product h3 a { color: inherit; text-decoration: none; }
.product h3 a:hover { color: var(--teal); }
.product .pbody p, .product .pbody ul { margin-bottom: 0.7em; font-size: 0.95rem; }
.product .pbody ul { padding-left: 1.2em; }
.product .pbody > :last-child { margin-bottom: 0; }
.pdf-pill {
  display: inline-block; margin: 2px 0 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--teal); border: 1px solid var(--teal); border-radius: 99px;
  padding: 2px 10px; text-decoration: none;
}
.pdf-pill:hover { background: var(--teal); color: #fff; }
@media (max-width: 560px) {
  .product { grid-template-columns: 1fr; }
  .product .pimg { max-width: 150px; }
}

/* ---------- contact form (visual mock) ---------- */
.contact-grid { display: grid; gap: 34px; grid-template-columns: 1fr; max-width: 74ch; }
.cform { border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: var(--beige-wash); }
.cform h2 { color: var(--olive); font-size: 1.15rem; margin-bottom: 14px; }
.cform label { display: block; font-size: 0.88rem; font-weight: 600; margin: 12px 0 4px; }
.cform .req { color: #A33; }
.cform input[type="text"], .cform input[type="email"], .cform input[type="tel"], .cform textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #C9C2B2; border-radius: 6px;
  font: inherit; font-size: 0.95rem; background: #fff; color: var(--ink);
}
.cform textarea { min-height: 120px; resize: vertical; }
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }
.cform .btn { margin-top: 16px; cursor: pointer; font: inherit; font-weight: 700; }
.cform .formnote { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }
.cform select {
  padding: 9px 11px; border: 1px solid #C9C2B2; border-radius: 6px;
  font: inherit; font-size: 0.95rem; background: #fff; color: var(--ink);
}
.dsrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dsrow .www { font-weight: 700; color: var(--muted); }
.dsrow input[type="text"] { flex: 1; min-width: 140px; width: auto; }

.contact-details p { margin-bottom: 0.4em; }
.contact-details .num { font-weight: 700; color: var(--olive-deep); white-space: nowrap; }

/* under construction (Software page) */
.construction {
  border: 1px dashed var(--slate); border-radius: 8px;
  background: var(--slate-wash); color: var(--muted);
  padding: 34px 22px; text-align: center; max-width: 74ch; margin-top: 6px;
}
.construction .mark { font-size: 1.5rem; font-weight: 800; color: var(--slate-deep); letter-spacing: 0.08em; }

/* ---------- footer ---------- */
.sitefoot { background: var(--slate-deep); color: #C9D2E2; margin-top: 30px; font-size: 0.88rem; }
.sitefoot .wrap { padding-block: 36px 20px; }
.footgrid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.sitefoot h2 { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.sitefoot a { color: #E7ECF5; text-decoration: none; }
.sitefoot a:hover { color: var(--cyan); }
.sitefoot ul { list-style: none; }
.sitefoot li { margin-bottom: 5px; }
.sitefoot p { margin-bottom: 5px; }
.footbase {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 28px; padding-top: 14px;
  font-size: 0.78rem; color: #AEB8CC;
  display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between;
}
