/*
 * Digital Bridge Solutions OPC website.
 * Same look as the Likha POS app: white background, navy text and buttons, gold only as small accents.
 * One size for each kind of text, used the same way on every page:
 *   title    48 serif (34 on phones)   page titles, one per page
 *   heading  28 serif (24 on phones)   section headings
 *   item     20 serif                  names inside a section (an app, a service)
 *   lead     20 (18 on phones)         the first paragraph under a title
 *   body     17                        everything else you read
 *   control  16 medium                 menu links, buttons, labels
 *   note     14                        footer and small print
 * Buttons 52 high and fully rounded, page edge 24, content width 1080.
 */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #002953;
  --navy-top: #0b3a6b;
  --gold: #db9c21;
  --slate: #56627a;
  --outline: #8a94a6;
  --hair: #e4e8ef;
  --mist: #f4f6f9;
  --white: #ffffff;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --title: 48px;
  --heading: 28px;
  --lead: 20px;
  --body: 17px;
  --control: 16px;
  --note: 14px;

  --edge: 24px;
  --width: 1080px;
  --button: 52px;
}

@media (max-width: 720px) {
  :root {
    --title: 34px;
    --heading: 24px;
    --lead: 18px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

a {
  color: var(--navy);
  text-decoration-color: var(--outline);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--navy);
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--width) + 2 * var(--edge));
  margin: 0 auto;
  padding: 0 var(--edge);
}

.skip {
  position: absolute;
  left: var(--edge);
  top: -60px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: var(--control);
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--hair);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  min-height: 80px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand img {
  width: 40px;
  height: 40px;
  flex: none;
}
.site-nav {
  display: flex;
  gap: 8px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: var(--control);
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover {
  background: var(--mist);
}
.site-nav a[aria-current="page"] {
  background: var(--mist);
}

@media (max-width: 720px) {
  .site-header .wrap {
    padding-top: 14px;
    padding-bottom: 6px;
    min-height: 0;
  }
  .site-nav {
    width: 100%;
    margin-left: -14px;
    gap: 0;
  }
}

/* Titles and text */

main {
  display: block;
}

.page-head {
  padding-top: 88px;
  padding-bottom: 56px;
}
.page-head h1,
h1 {
  font-family: var(--serif);
  font-size: var(--title);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}
/* The short gold rule under every page title, as in the app. */
h1::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 24px;
  background: var(--gold);
  border-radius: 2px;
}
.lead {
  font-size: var(--lead);
  line-height: 1.55;
  color: var(--navy);
  max-width: 34em;
  margin: 24px 0 0;
}

h2 {
  font-family: var(--serif);
  font-size: var(--heading);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 8px;
}
p {
  margin: 0 0 16px;
  max-width: 38em;
}
.muted {
  color: var(--slate);
}

@media (max-width: 720px) {
  .page-head {
    padding-top: 48px;
    padding-bottom: 40px;
  }
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button);
  padding: 0 28px;
  border-radius: 999px;
  font-size: var(--control);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--outline);
  background: var(--white);
  color: var(--navy);
}
.button:hover {
  border-color: var(--navy);
}
.button.primary {
  border-color: var(--navy);
  background-color: var(--navy);
  background-image: linear-gradient(180deg, var(--navy-top) 0%, var(--navy) 100%);
  color: var(--white);
}
.button.primary:hover {
  background-image: none;
}

@media (max-width: 480px) {
  .actions .button {
    flex: 1 1 100%;
  }
}

/* Home intro: text on the left, the DB mark on the right (computers only). */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: center;
}
.hero-mark {
  width: 280px;
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-mark {
    display: none;
  }
}

/* The divider from the logo: two lines and a small gold diamond. */

.ornament {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ornament span {
  flex: 1;
  height: 1px;
  background: var(--hair);
}
.ornament i {
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
  position: relative;
}
.ornament i::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--gold);
}

/* Sections */

.section {
  padding: 72px 0;
}
.section + .section {
  border-top: 1px solid var(--hair);
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: center;
}
.product-shot {
  border-radius: 28px;
  border: 1px solid var(--hair);
  overflow: hidden;
  background: var(--mist);
}
.product-name {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.product-name img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--hair);
}
.product-name h2 {
  margin: 0;
}

.points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 36em;
}
.points li {
  position: relative;
  padding-left: 22px;
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

@media (max-width: 720px) {
  .section {
    padding: 48px 0;
  }
  .product,
  .two {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .product-shot {
    max-width: 280px;
  }
}

/* What we do: three short items side by side */

.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin-top: 32px;
}
.three p {
  margin: 0;
}
@media (max-width: 860px) {
  .three {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* App list: one row per app, room for more */

.apps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--hair);
  max-width: 820px;
}
.app {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--hair);
}
.app img {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 14px;
  border: 1px solid var(--hair);
}
.app p {
  margin: 0 0 8px;
}
.app .links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  font-size: var(--control);
  font-weight: 500;
}
.more {
  margin-top: 24px;
}
.link-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

/* Contact details */

.details {
  margin: 0;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  border-top: 1px solid var(--hair);
  max-width: 720px;
}
.details dt,
.details dd {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--hair);
}
.details dt {
  font-size: var(--control);
  font-weight: 500;
  color: var(--slate);
}
.details dd {
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .details {
    grid-template-columns: 1fr;
  }
  .details dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .details dd {
    padding-top: 4px;
  }
}

/* Long text pages (About, Privacy) */

.prose {
  padding-bottom: 88px;
}
.prose > * {
  max-width: 720px;
}
.prose h2 {
  margin-top: 48px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.prose li {
  margin-bottom: 8px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--hair);
  padding: 40px 0 48px;
  font-size: var(--note);
  color: var(--slate);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}
.site-footer p {
  margin: 0;
}
.site-footer strong {
  color: var(--navy);
  font-weight: 600;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer a {
  color: var(--slate);
}
