/* GGR Systems website. Colours sampled from the approved design. */
@font-face { font-family: "Sora"; src: url("fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Michroma"; src: url("fonts/michroma.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --navy: #0b1b3f;
  --navy-btn: #1c2f6a;
  --navy-card: #12265b;
  --navy-line: #24396f;
  --accent: #2595e1;
  --ink: #0b1b3f;
  --text: #3d4659;
  --muted: #5d6678;
  --grey: #f5f6fa;
  --line: #e2e5ec;
  --white: #ffffff;
  --green-bg: #e2f3e3; --green: #1e6b3a;
  --amber-bg: #ffeed6; --amber: #8a5a0b;
  --red-bg: #f7e7e7; --red: #a1251f;
  --radius: 10px;
  --heading: "Sora", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --wide: "Michroma", "Sora", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--heading); color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); line-height: 1.15; font-weight: 700; }
h3 { font-size: 1.06rem; line-height: 1.35; font-weight: 600; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons and labels */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 6px; font: 600 0.93rem/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-navy { background: var(--navy-btn); color: #fff; }
.btn-navy:hover { background: var(--navy); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #e9edf5; }
.btn-outline { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline:hover { border-color: #fff; }
.eyebrow { font: 400 0.72rem/1.4 var(--wide); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.eyebrow-light { color: #c9d3ea; }
.eyebrow .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 2px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 0.75rem/1.5 var(--body); white-space: nowrap; }
.pill-green { background: var(--green-bg); color: var(--green); }
.pill-amber { background: var(--amber-bg); color: var(--amber); }
.pill-red { background: var(--red-bg); color: var(--red); }

/* Line icons as masks: colour follows currentColor. */
.ico { display: inline-block; width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico-id { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Ccircle cx='8' cy='12' r='2'/%3E%3Cpath d='M14 10h4M14 14h4M5 16c.6-1.2 1.7-2 3-2s2.4.8 3 2'/%3E%3C/svg%3E"); }
.ico-user { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E"); }
.ico-cal { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.ico-list { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6h12M9 12h12M9 18h12M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E"); }
.ico-key { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='4.5'/%3E%3Cpath d='M10.7 12.3 21 2M16 7l3 3M18 5l2 2'/%3E%3C/svg%3E"); }
.ico-shield { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-3.5 8-10V5l-8-3-8 3v7c0 6.5 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.ico-flask { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6L4.5 19A1.5 1.5 0 0 0 5.8 21h12.4a1.5 1.5 0 0 0 1.3-2L14 9V3'/%3E%3Cpath d='M7 15h10'/%3E%3C/svg%3E"); }
.ico-wallet { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0 0 4h15v14H5a2 2 0 0 1-2-2V5'/%3E%3Cpath d='M16 14h.01'/%3E%3C/svg%3E"); }
.ico-bolt { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7l1-8z'/%3E%3C/svg%3E"); }
.ico-server { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='8' rx='2'/%3E%3Crect x='3' y='13' width='18' height='8' rx='2'/%3E%3Cpath d='M7 7h.01M7 17h.01'/%3E%3C/svg%3E"); }
.ico-building { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V7l7-4 7 4v14'/%3E%3Cpath d='M9 21v-6h6v6M9 10h.01M15 10h.01'/%3E%3C/svg%3E"); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: auto; height: 40px; }
.brand-text { display: grid; font-family: var(--wide); color: var(--navy); line-height: 1.15; }
.brand-text span:first-child { font-size: 0.95rem; letter-spacing: .12em; }
.brand-text span:last-child { font-size: 0.6rem; letter-spacing: .5em; color: #6b7280; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: var(--navy); margin: auto; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #d6ddee; padding: clamp(56px, 9vw, 104px) 0 clamp(64px, 9vw, 96px); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .lead { max-width: 34rem; font-size: 1.05rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pixels { position: absolute; top: 22px; right: 40px; width: 64px; height: 64px; }
.pixels i { position: absolute; width: 12px; height: 12px; background: #2a4a9a; }
.pixels i:nth-child(1) { left: 0; top: 2px; } .pixels i:nth-child(2) { left: 36px; top: 10px; width: 10px; height: 10px; background: #3b6fd0; }
.pixels i:nth-child(3) { left: 14px; top: 22px; width: 8px; height: 8px; background: #4b5f86; } .pixels i:nth-child(4) { left: 50px; top: 30px; background: #24429a; }
.pixels i:nth-child(5) { left: 28px; top: 44px; width: 7px; height: 7px; background: #4b5f86; } .pixels i:nth-child(6) { left: 4px; top: 50px; width: 9px; height: 9px; background: #1c3a86; }
.result-wrap { position: relative; display: grid; place-items: center; }
.orbit { position: absolute; inset: -6% -4%; border: 2px solid rgba(70,110,200,.45); border-radius: 50%; transform: rotate(-12deg); }
.result-card { position: relative; margin: 0; width: min(100%, 420px); background: #fff; color: var(--text); border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; }
.result-head { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.result-head strong { color: var(--ink); font-size: .95rem; }
.result-head span { color: var(--muted); }
.result-rows { margin: 0; }
.result-rows div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: .87rem; }
.result-rows dt { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.result-rows dt .ico { width: 16px; height: 16px; color: var(--muted); }
.result-rows dd { margin: 0; }
.result-rows .val { font-weight: 600; color: var(--ink); text-align: right; }
.result-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--grey); font-size: .85rem; }
.result-foot strong { font-family: var(--heading); font-size: 1.15rem; color: var(--ink); }

/* Stats */
.stats { background: var(--grey); border-bottom: 1px solid var(--line); padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { font: 700 1.6rem/1.2 var(--heading); color: var(--navy-btn); margin-bottom: 4px; }
.stats-grid p:not(.stat) { font-size: .82rem; color: var(--muted); max-width: 18rem; }

/* Sections */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-grey { background: var(--grey); }
.section h2 { margin-bottom: 18px; }
.sub { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.two-col > div > p:not(.eyebrow) { max-width: 32rem; }
.facts { border-top: 2px solid var(--navy-btn); }
.facts > div { padding: 22px 0; }
.facts > div + div { border-top: 1px solid var(--line); }
.facts h3 { margin-bottom: 10px; }

.steps { list-style: none; padding: 0; margin: 36px 0 28px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--accent); }
.num { font: 400 .85rem/1 var(--wide); color: var(--ink); letter-spacing: .08em; }
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: .87rem; color: var(--muted); }
.step-dark { background: var(--navy) !important; border-color: var(--navy) !important; }
.step-dark h3, .step-dark .num { color: #fff; }
.step-dark p { color: #c9d3ea !important; }
.outcomes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .87rem; color: var(--muted); }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; margin-top: 40px; }
.why-grid h3 { margin-bottom: 10px; }
.why-grid article p { font-size: .9rem; color: var(--muted); }
.callout { background: var(--grey); border-radius: var(--radius); padding: 26px; align-self: start; }
.callout p { font: 600 1.02rem/1.45 var(--heading); color: var(--ink); margin-bottom: 18px; }
.callout a { font-weight: 600; color: var(--ink); font-size: .9rem; }

.section-navy { background: var(--navy); color: #c9d3ea; }
.section-navy h2 { color: #fff; }
.services-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 36px; }
.services-head > p { max-width: 22rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { background: var(--navy-card); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 26px 24px; color: #c9d3ea; font-size: .9rem; }
.service .ico { width: 24px; height: 24px; color: var(--accent); margin-bottom: 16px; }
.service h3 { color: #fff; margin-bottom: 12px; }
.service-light { background: #fff; border-color: #fff; color: var(--muted); }
.service-light h3 { color: var(--ink); }
.service-light .ico { color: var(--navy-btn); }
.service-light a { display: inline-block; margin-top: 18px; color: var(--ink); font-weight: 600; }

.contact-list { margin: 28px 0 0; display: grid; gap: 10px; font-size: .93rem; }
.contact-list div { display: grid; grid-template-columns: 80px 1fr; }
.contact-list dt { font-weight: 600; color: var(--ink); }
.contact-list dd { margin: 0; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea { font: 400 .95rem/1.4 var(--body); color: var(--ink); border: 1px solid #cfd4de; border-radius: 6px; padding: 10px 12px; background: #fff; min-height: 44px; width: 100%; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); outline: 2px solid rgba(37,149,225,.25); }
.contact-form [aria-invalid="true"] { border-color: var(--red); }
.contact-form .btn { justify-self: start; }
.form-status { font-size: .88rem; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.error { color: var(--red); }

/* Footer */
.site-footer { background: var(--navy); color: #c9d3ea; padding: 48px 0 28px; font-size: .88rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--navy-line); }
.footer-grid img { width: 200px; margin-bottom: 14px; }
.footer-grid p { max-width: 18rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 56px; align-content: start; }
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; }
.tagline { font: 400 .68rem/1.6 var(--wide); letter-spacing: .25em; text-transform: uppercase; }

/* Tablet */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:last-child { grid-column: span 2; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .services-head { flex-direction: column; align-items: start; }
}
/* Phone */
@media (max-width: 760px) {
  .menu-toggle { display: grid; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; }
  .brand img { height: 34px; }
  .hero-grid, .two-col, .why-grid, .field-row, .stats-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .orbit, .pixels { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps li:last-child { grid-column: auto; }
  .footer-grid { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
