/* UniHail Solutions — shared styles */
/* Self-hosted fonts (SIL Open Font License — see fonts/OFL-*.txt). No requests to Google. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque.woff") format("woff"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/hanken-grotesk.woff") format("woff"); font-weight: 100 900; font-display: swap; }

:root {
  --gold: #FFB901;
  --gold-dim: #c99200;
  --black: #000000;
  --ink: #0d0d0e;
  --panel: #141416;
  --line: #2a2a2e;
  --text: #f2f0ea;
  --muted: #c4c0b8;
  --radius: 14px;
  --max: 1320px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 48px; }
@media (max-width: 1024px) { .wrap { padding: 0 32px; } }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 56px; height: auto; }
.brand span { font-family: var(--display); font-weight: 700; letter-spacing: .06em; font-size: 15px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); font-size: 17px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); text-decoration: none; background: var(--panel); }
.nav a[aria-current="page"] { color: var(--gold); }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 15px; cursor: pointer; }
@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #000; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--gold);
  background: var(--gold); color: #000 !important; cursor: pointer; transition: background .15s;
}
.btn:hover { background: #ffc933; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--gold) !important; }
.btn.ghost:hover { background: rgba(255,185,1,.08); }

/* Type */
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 16px; letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0 0 16px; }
.eyebrow { display: inline-block; color: var(--gold); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.lead { font-size: clamp(19px, 2.2vw, 23px); color: var(--muted); max-width: 52ch; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }

/* Sections */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
@media (max-width: 600px) { section { padding: 60px 0; } }

.hero { padding: 104px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -60% auto; width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(255,185,1,.14), transparent 62%); pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 14ch; }
.spec { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 0; padding: 8px 16px; border: 1px solid #3a3220; border-radius: 999px; color: var(--text); font-size: 16px; font-weight: 600; background: rgba(255,185,1,.06); }
.spec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.page-hero { padding: 80px 0 64px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); max-width: 20ch; }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 880px) { .grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; } }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.card p:last-child { margin-bottom: 0; }
.card .num { font-family: var(--display); color: var(--gold); font-size: 15px; font-weight: 600; margin-bottom: 12px; letter-spacing: .08em; }
.card.platform { padding: 36px; border-color: #3a3220; }
.card.platform h3 { font-size: 28px; }
.card.platform .more { margin-top: auto; padding-top: 20px; font-weight: 600; }
.card ul { margin: 4px 0 16px; padding-left: 20px; color: var(--muted); }
.card li { margin-bottom: 6px; }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); position: relative; }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* Partner strip */
.partners { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.partner-chip {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--muted); background: rgba(20,20,22,.7);
}
.partner-chip b { color: var(--text); font-weight: 600; }
.badge-slot { /* Replace with the official badge image from each partner portal */
  display: flex; align-items: center; justify-content: center; min-height: 72px; min-width: 150px;
  border: 1px dashed #4a4a50; border-radius: 10px; color: #777; font-size: 12px; text-align: center; padding: 8px;
}

/* Callout / disclosure */
.notice {
  border: 1px solid #3a3220; background: rgba(255,185,1,.05); border-radius: var(--radius);
  padding: 20px 24px; font-size: 17px; color: var(--muted);
}
.notice strong { color: var(--text); }

.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 28px; }

/* Case studies */
.case { gap: 6px; }
.case .tag { font-size: 13px; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.case .more { margin-top: auto; padding-top: 16px; font-weight: 600; }

/* Forms */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
label .req { color: var(--gold); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #0b0b0c;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 15.5px; color: var(--muted); }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* Legal text */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 36px; font-size: 17px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--display); color: var(--text); font-size: 17px; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold); }
.footer-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.65; }
.legal p { margin: 0 0 8px; }

.hero-mark { position: absolute; right: 48px; top: 50%; transform: translateY(-50%); width: min(40%, 440px); opacity: .95; pointer-events: none; }
@media (max-width: 880px) { .hero-mark { display: none; } }

/* Official partner badges — shown unaltered, at least 80px wide, with clear space */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 40px; }
.site-footer .badges { margin-top: 20px; }
.badges img { height: 88px; width: auto; }
@media (max-width: 600px) { .badges { gap: 16px; } .badges img { height: 56px; } }

/* Salesforce logo in the Salesforce-specific area: official file, unaltered, clear space around it */
.platform-logo { display: block; width: 160px; height: auto; margin: 0 0 36px; }
.product-head { display: flex; align-items: center; gap: 20px; }
.product-head img { width: 96px; height: 96px; border-radius: 22px; }
.product-head h2 { margin-bottom: 0; }

/* Utility classes (replace inline styles so the CSP can block inline CSS) */
.u-mt14 { margin-top: 14px; } .u-mt16 { margin-top: 16px; } .u-mt20 { margin-top: 20px; }
.u-mt28 { margin-top: 28px; } .u-mt36 { margin-top: 36px; } .u-mt40 { margin-top: 40px; }
.u-mtauto { margin-top: auto; } .u-mw820 { max-width: 820px; }
.u-flush { border-top: 0; padding-top: 24px; } .u-pb24 { padding-bottom: 24px; }
