/* ============================================================
   ICM Group site
   Light, clean, modern. ICM brand blue #0178c1 with deep navy.
   Schibsted Grotesk (headings and body), Spline Sans Mono (labels)
   ============================================================ */

:root {
  --blue: #0178c1;
  --blue-dark: #015e98;
  --blue-tint: #eaf4fb;
  --navy: #0c2337;
  --navy-2: #123551;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --line: #e2e9f0;
  --text: #16283a;
  --text-dim: #506275;
  --white: #ffffff;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Sans Mono", "SF Mono", "Courier New", monospace;
  --radius: 16px;
  --container: 1180px;
  --section-space: 80px;
  --shadow-card: 0 1px 2px rgba(12, 35, 55, 0.05), 0 12px 32px -18px rgba(12, 35, 55, 0.18);
  --shadow-lift: 0 2px 4px rgba(12, 35, 55, 0.06), 0 24px 48px -20px rgba(12, 35, 55, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
figure { margin: 0; }

::selection { background: var(--blue); color: var(--white); }

section { scroll-margin-top: 90px; }

/* ---------- Type ---------- */
h1, h2 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 1.2rem; }

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin-bottom: 1rem;
}
.section-label.light { color: #7cc4ee; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8em 1.7em;
  border-radius: 10px;
  border: 1.5px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 10px 24px -10px rgba(1, 120, 193, 0.55);
}
.btn-outline {
  border-color: var(--line);
  color: var(--navy);
  background: var(--white);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-small { padding: 0.55em 1.2em; font-size: 0.88rem; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 34px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 46px; width: auto; }
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 30px;
}
.site-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--blue); }

/* Mobile menu, CSS only */
.nav-burger { display: none; }
.mobile-nav { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 160px 0 0;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(1, 120, 193, 0.09), transparent 60%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 85%);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.4rem;
}
.hero h1 { margin-bottom: 1.4rem; }
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 2.2rem;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero collage */
.hero-visual {
  position: relative;
  min-height: 430px;
}
.hero-img-main {
  position: absolute;
  inset: 0 0 40px 60px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.hero-img-main img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 58%; }
.hero-img-small {
  position: absolute;
  width: 42%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lift);
}
.hero-img-small img { width: 100%; height: 100%; object-fit: cover; }
/* Both tiles sit high so the lower-right of the main image stays clear
   for the people in the crop; the AI card overlays plain wheat. */
.hero-img-a { left: 0; top: 2%; }
.hero-img-b { right: -4%; top: 14%; }
/* Focus the Peechelba tile on cattle beneath the shade shelters. */
.hero-img-b img { transform: scale(2); transform-origin: center bottom; }

/* Load-in reveals */
.reveal-load {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--d, 0) * 0.12s + 0.05s);
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* Stats */
.stat-band {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 2rem 1.5rem 2.4rem 0; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.stat-value {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  display: block;
  line-height: 1.1;
}
.stat-value .plus { color: var(--blue); }
.stat-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   Businesses
   ============================================================ */
.businesses { padding: var(--section-space) 0; }
.businesses h2 { margin-bottom: 2.6rem; }
.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
  gap: 24px;
}
.biz-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.28s, border-color 0.28s;
}
.biz-card:hover {
  transform: translateY(-6px);
  border-color: rgba(1, 120, 193, 0.35);
  box-shadow: var(--shadow-lift);
}
.biz-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-soft);
}
.biz-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.biz-card:hover .biz-img img { transform: scale(1.04); }


/* AI result card in hero */
.ai-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 204px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px 0;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  animation: floaty 6s ease-in-out infinite;
}
/* AI hue rim */
.ai-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(120deg, #0e9440, #12b39a 45%, #6f5bf0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.ai-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--white);
  padding: 3px 10px 3px 8px;
  border-radius: 100px;
  background: linear-gradient(110deg, #0e9440, #12b39a 55%, #6f5bf0);
}
.ai-orb {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: orb 2.2s ease-out infinite;
}
@keyframes orb {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.75); }
  70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.ai-metric {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(100deg, #0b8a4b, #12b39a 50%, #6f5bf0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.ai-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-top: 2px;
}
.ai-graph {
  width: 100%;
  height: 52px;
  display: block;
  margin: 8px -16px 0;
  width: calc(100% + 32px);
}
.ai-line {
  fill: none;
  stroke: url(#aiStroke);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw 2.4s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}
.ai-area { opacity: 0; animation: fadeIn 1.4s ease 1.6s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.biz-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}
.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: -46px;
  margin-bottom: 14px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.logo-chip img { max-height: 28px; width: auto; max-width: 120px; }
.logo-chip-dark { background: var(--navy); border-color: var(--navy); }
.logo-chip-text {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.logo-chip-text b { color: var(--blue); font-weight: 800; }
.biz-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.biz-card p { font-size: 0.94rem; color: var(--text-dim); }
/* Business name lives only here, as the card's call to action */
.biz-cta {
  margin-top: auto;
  padding-top: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--blue);
}
.biz-cta .arrow { transition: transform 0.25s ease; }
.biz-card:hover .biz-cta .arrow { transform: translateX(5px); }

/* ============================================================
   Technology
   ============================================================ */
.tech {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 110px 0;
}
.tech-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: center;
}
.tech-copy > p { color: var(--text-dim); max-width: 520px; }

/* Flipped layout: product shot leads on the left */
.tech-flipped .tech-visual { order: 1; }
.tech-flipped .tech-copy { order: 2; }
.tech-visual { position: relative; padding-bottom: 34px; }
.tech-shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  background: var(--white);
}
.tech-shot img { width: 100%; height: auto; display: block; }
.tech-shot-float {
  position: absolute;
  right: -18px;
  bottom: 0;
  width: 58%;
  max-width: 290px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-lift);
  animation: floaty 6.5s ease-in-out infinite;
}
.tech-shot-float img { width: 100%; height: auto; display: block; }

/* Screenshot thumbnails inside the growth panels */
.panel-shot {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  margin-bottom: 16px;
  aspect-ratio: 16 / 10;
}
.panel-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.growth-panels {
  list-style: none;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.growth-panels li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 20px 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.growth-panels li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.panel-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #14a04c;
  display: block;
  margin-bottom: 0.6rem;
}
.growth-panels h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.growth-panels p { font-size: 0.86rem; color: var(--text-dim); }

/* Small caps label, used in contact cards and the AI card */
.c-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.chip-good { color: #0b8a4b; background: #e7f6ee; border-color: #cdeeda; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ============================================================
   About
   ============================================================ */
/* Businesses and About share a background, so use one gap between them. */
.about { padding: 0 0 var(--section-space); }
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { color: var(--text-dim); margin-bottom: 1rem; max-width: 520px; }
.brand-strip {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.brand-strip .logo-chip { margin: 0; }

/* ============================================================
   Contact
   ============================================================ */
.contact {
  background:
    radial-gradient(700px 380px at 90% 110%, rgba(1, 120, 193, 0.25), transparent 60%),
    var(--navy);
  padding: var(--section-space) 0;
  color: var(--white);
}
.contact h2 { color: var(--white); }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.contact-copy p { color: rgba(255, 255, 255, 0.72); margin-top: 1rem; max-width: 400px; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.05);
}
.contact-card .c-label { color: #7cc4ee; }
.contact-card p { margin-top: 0.6rem; font-size: 1.02rem; line-height: 1.8; }
.contact-card a {
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 196, 238, 0.5);
  transition: color 0.2s, border-color 0.2s;
}
.contact-card a:hover { color: #7cc4ee; border-color: #7cc4ee; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand .brand-logo { height: 52px; }
.footer-brand p {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.7rem;
}
.footer-nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--blue); }
.footer-legal {
  width: 100%;
  font-size: 0.82rem;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 8px;
}

/* Section content stays visible without waiting for scroll animations. */

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-layout, .tech-layout, .about-layout, .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero { padding-top: 130px; }
  .hero-visual { min-height: 380px; }
  .growth-panels { grid-template-columns: 1fr; }
  .about-img { order: 2; }
}
@media (max-width: 720px) {
  :root { --section-space: 56px; }
  body { font-size: 16px; }
  .container, .header-inner { padding-left: 20px; padding-right: 20px; }

  /* Header becomes logo + burger */
  .site-nav, .header-cta { display: none; }
  .header-inner { gap: 16px; }
  .brand-logo { height: 40px; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    background: var(--white);
  }
  .nav-burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-nav {
    display: grid;
    width: 100%;
    order: 3;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-toggle:checked ~ .mobile-nav { max-height: 320px; }
  .mobile-nav a {
    padding: 14px 2px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--navy);
    border-top: 1px solid var(--line);
  }

  .stat-band { grid-template-columns: 1fr; margin-top: 48px; }
  .stat { padding: 1.2rem 0; }
  .stat + .stat { padding-left: 0; border-left: none; border-top: 1px solid var(--line); }

  /* Hero collage simplifies on small screens */
  .hero-visual { min-height: 260px; }
  .hero-img-main { inset: 0 0 0 22%; }
  .hero-img-small { width: 44%; }
  .hero-img-a { top: 0; }
  .hero-img-b { display: none; }
  .ai-card { left: 0; bottom: -6px; width: 178px; padding: 11px 13px 0; }
  .ai-metric { font-size: 1.5rem; }
  .ai-label { font-size: 0.55rem; letter-spacing: 0.08em; }
  .ai-card .chip, .ai-badge { font-size: 0.58rem; padding: 2px 8px; }
  .ai-graph { height: 40px; margin: 6px -13px 0; width: calc(100% + 26px); }

  .businesses, .tech, .contact { padding: var(--section-space) 0; }
  .tech-visual { padding-bottom: 26px; }
  .tech-shot-float { right: 0; width: 66%; }
  .growth-panels { margin-top: 40px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-load { opacity: 1; transform: none; animation: none; transition: none; }
  .graph-line { stroke-dashoffset: 0; animation: none; }
  .biz-card:hover .biz-img img { transform: none; }
  .biz-card:hover .biz-cta .arrow { transform: none; }
  .ai-card, .ai-orb, .tech-shot-float { animation: none; }
  .ai-line { stroke-dashoffset: 0; animation: none; }
  .ai-area { opacity: 1; animation: none; }
}
