/* PT Madani Intelsysdata — site styles (2026 redesign) */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green: #388e3c;        /* brand green, kept from the previous site */
  --green-dark: #2e7031;   /* hover / pressed */
  --leaf: #66bb6a;         /* light accent, kept from the previous site */
  --forest: #1f4d2b;       /* dark band */
  --forest-deep: #173a20;
  --mint: #e8f3e9;
  --ink: #1a231c;
  --muted: #56655a;
  --line: #d9e3da;
  --paper: #ffffff;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 6px;
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 750; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.6vw, 42px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--forest); color: #fff; padding: 10px 14px; border-radius: var(--radius); z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: 16px; }
.site-nav a:hover { color: var(--green); }
.site-nav .nav-cta {
  color: #fff; background: var(--green); padding: 10px 18px; border-radius: var(--radius);
}
.site-nav .nav-cta:hover { background: var(--green-dark); color: #fff; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font: inherit; font-weight: 650; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: var(--green); color: var(--green); }
.btn-ghost:hover { background: var(--mint); color: var(--green-dark); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); background: linear-gradient(180deg, var(--mint) 0, #fff 78%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(36px, 4.8vw, 58px); font-weight: 800; letter-spacing: -0.03em; max-width: 17ch; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 52ch; margin: 24px 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); max-width: 52ch; font-size: 16px; }
.hero-proof strong { color: var(--green); font-weight: 800; font-size: 22px; }

/* The one moving thing: the report codes our systems produce */
.ticker {
  background: var(--forest); color: #fff; border-radius: 10px;
  padding: 22px 0 0; overflow: hidden; position: relative;
}
.ticker-caption { margin: 0 26px 12px; font-size: 14px; color: #b9d8bc; font-weight: 550; }
.ticker-window {
  height: 400px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent 100%);
}
.ticker-list { animation: ticker-roll 42s linear infinite; }
.ticker:hover .ticker-list { animation-play-state: paused; }
.ticker-list li { padding: 14px 26px; border-top: 1px solid rgba(255,255,255,.1); }
.ticker-list .code { display: block; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; color: #fff; }
.ticker-list .name { display: block; font-size: 14px; color: #b9d8bc; margin-top: 4px; }
.ticker-list li:nth-child(3n+2) .code { color: var(--leaf); }
@keyframes ticker-roll { from { transform: translateY(0); } to { transform: translateY(-100%); } }

/* ---------- About ---------- */
.about { padding: var(--section) 0; }
.about-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); }
.about-copy h2 { margin-bottom: 24px; }
.about-copy p { color: var(--muted); max-width: 56ch; }
.values-title { font-size: 16px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.values dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.values dl > div { padding: 22px 0 26px; border-top: 2px solid var(--green); }
.values dl > div:nth-child(n+3) { border-top-color: var(--line); }
.values dt { font-size: 22px; font-weight: 750; letter-spacing: -0.01em; margin-bottom: 6px; }
.values dd { color: var(--muted); font-size: 16px; }

/* ---------- Vision / mission / strength ---------- */
.overview { background: var(--forest); color: #fff; padding: clamp(56px, 7vw, 88px) 0; }
.overview-grid { display: grid; grid-template-columns: 1.1fr .8fr 1.1fr; gap: clamp(28px, 5vw, 64px); }
.overview h3 { color: var(--leaf); font-size: 22px; margin-bottom: 12px; }
.overview p { color: #dcebdd; margin: 0; }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 32px; }
.section-head p { color: var(--muted); margin: 0; max-width: 48ch; }

/* ---------- Clients ---------- */
.clients { padding: var(--section) 0; background: #f6f9f6; border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  padding: 9px 14px; border-radius: 999px; display: inline-flex; gap: 8px; align-items: center;
}
.filter .count { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.filter:hover { border-color: var(--green); }
.filter[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.filter[aria-pressed="true"] .count { color: #d7ecd8; }

.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); background: #fff; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.logo { background: #fff; aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo img { max-height: 64px; width: auto; object-fit: contain; }
.logo[hidden] { display: none; }

/* ---------- Products ---------- */
.products { padding: var(--section) 0; }
.products-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.products h3 { font-size: 18px; font-weight: 700; padding-bottom: 14px; border-bottom: 2px solid var(--green); display: flex; justify-content: space-between; gap: 12px; }
.products h3 .count { color: var(--muted); font-weight: 500; font-size: 15px; }
.bi-list li { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; padding: 18px 0; border-bottom: 1px solid var(--line); }

.report-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.report-index li { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.report-index .code { font-weight: 800; font-size: 17px; color: var(--green); letter-spacing: 0; }
.report-index .name { color: var(--muted); font-size: 15px; line-height: 1.4; }

/* ---------- Contact ---------- */
.contact { padding: var(--section) 0; background: var(--mint); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.contact-lede { color: var(--muted); margin: 16px 0 28px; max-width: 42ch; }
.contact-list > div { display: grid; grid-template-columns: 7em minmax(0,1fr); gap: 16px; padding: 14px 0; border-top: 1px solid #c9dccb; }
.contact-list dt { font-weight: 700; }
.contact-list dd { color: var(--ink); }
.contact-list a { font-weight: 600; }
.map { border-radius: 10px; overflow: hidden; min-height: 380px; border: 1px solid #c9dccb; background: #fff; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: #b9d8bc; font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 28px; padding-bottom: 28px; }
.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .about-inner, .products-grid, .contact-inner { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .ticker-window { height: 260px; }
  .hero h1 { max-width: 20ch; }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; font: inherit; font-weight: 650; font-size: 15px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; color: var(--ink); cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }
  .header-inner { position: relative; }
  .brand img { height: 34px; }
  .values dl { grid-template-columns: 1fr; }
  .values dl > div:nth-child(2) { border-top-color: var(--line); }
  .report-index { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo { padding: 10px; }
  .logo img { max-height: 44px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-list { animation: none; }
  .ticker-list[aria-hidden="true"] { display: none; }
  .ticker-window { height: auto; -webkit-mask-image: none; mask-image: none; }
}
