/* =========================================================
   GO Logistic Solutions — print-ready business card
   Card geometry: 85mm x 55mm (international standard).
   ========================================================= */

:root {
  --bg:       #0B1622;
  --bg-2:     #0F1E2E;
  --ink:      #ECE6D4;
  --ink-mute: #B8B6AA;
  --ink-faint:#7A8597;
  --line:     #243A56;
  --accent:   #B59154;
  --accent-2: #C9A874;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }

/* =========================================================
   Screen chrome (hidden when printing)
   ========================================================= */

.chrome {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(11,22,34,0.9);
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(8px);
}
.chrome__back {
  font-size: 0.875rem;
  color: var(--ink-mute);
  font-weight: 500;
}
.chrome__back:hover { color: var(--ink); text-decoration: none; }
.chrome__title { text-align: center; line-height: 1.2; }
.chrome__title p { margin: 0; font-size: 0.875rem; color: var(--ink); font-weight: 500; }
.chrome__eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent) !important;
  margin-bottom: 0.2em !important;
}
.btn-primary {
  font-family: var(--sans);
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--accent);
  background: var(--accent); color: #1A1305;
  border-radius: 3px;
  cursor: pointer;
  min-height: 40px;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--accent-2); }

.foot {
  text-align: center;
  padding: 1.5rem;
  color: var(--ink-faint);
  font-size: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.notes {
  max-width: 32rem;
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-mute);
  font-size: 0.875rem;
  line-height: 1.6;
}
.notes h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.notes ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.notes ol li { margin: 0.35rem 0; }
.notes strong { color: var(--ink); font-weight: 600; }
.notes kbd {
  font-family: var(--mono);
  font-size: 0.8em;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.1em 0.4em;
  color: var(--ink);
}
.notes__small {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

/* =========================================================
   Stage + sheet (the actual cards)
   ========================================================= */

.stage {
  min-height: calc(100vh - 7rem);
  display: flex; flex-direction: column; align-items: center;
  padding: 3rem 1.5rem;
  background:
    radial-gradient(ellipse at top, rgba(15,30,46,0.7), transparent 60%),
    var(--bg);
}

/* On screen: the "sheet" is just a centered pair of cards
   sized to a fixed scale so they're easy to inspect. */
.sheet {
  display: grid;
  /* 85 × 55 mm at ~3.5x screen scale */
  grid-template-columns: repeat(2, 297.5px);
  gap: 24px;
  justify-content: center;
  align-items: start;
}

/* Card geometry: 85mm × 55mm.
   On screen we set explicit pixel size; on print we override with mm. */
.card {
  position: relative;
  width: 297.5px;          /* 85mm * 3.5 */
  height: 192.5px;         /* 55mm * 3.5 */
  padding: 14px 16px;
  border-radius: 4px;
  overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: space-between;
  font-size: 9.5px;
  line-height: 1.45;
  isolation: isolate;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 22px 50px -22px rgba(0,0,0,0.65),
    0 6px 18px -6px rgba(0,0,0,0.5);
  /* Force background colors to print in WebKit/Chromium and Gecko */
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  color-adjust: exact;
}

/* --- Front face --- */
.card--front {
  background:
    radial-gradient(ellipse at top right, #16273D 0%, #0E1B2A 55%, #0A1320 100%);
  color: var(--ink);
  border: 1px solid #1F3552;
}
.card--front::before {
  content: "";
  position: absolute;
  right: -22%; bottom: -28%;
  width: 75%; aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(181,145,84,0.12), rgba(181,145,84,0) 65%);
  z-index: 0;
}
.card--front::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--accent), rgba(181,145,84,0.2) 60%, transparent);
}

.card__head {
  display: flex; align-items: center; gap: 9px;
  position: relative; z-index: 1;
}
.card__logo {
  width: 51mm;
  max-width: 78%;
  height: auto;
  border-radius: 1.5mm;
  display: block;
}
.card__mark { width: 30px; height: 30px; color: var(--accent-2); flex: 0 0 auto; }
.card__brand { display: flex; flex-direction: column; line-height: 1.1; }
.card__name {
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.card__tag {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 3px 0 0;
}

.card__statement {
  position: relative; z-index: 1;
  font-family: var(--serif);
  font-style: italic;
  font-size: 10.5px;
  color: var(--ink);
  margin: 0;
  max-width: 26ch;
  letter-spacing: -0.005em;
  line-height: 1.32;
}

.card__contact {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  margin: 0;
}
.card__contact div { margin: 0; }
.card__contact dt {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 2px;
}
.card__contact dd {
  margin: 0;
  font-size: 7.2px;
  color: var(--ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.card__contact-right { text-align: right; }
.card__contact-right dt { text-align: right; }

/* --- Back face --- */
.card--back {
  background: linear-gradient(135deg, #C9A874 0%, #B59154 50%, #8E6E3C 100%);
  color: #0B1622;
}
.card--back::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(11,22,34,0.08) 1px, transparent 1.2px);
  background-size: 8px 8px;
  opacity: 0.6;
  z-index: 0;
}
.card--back::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: #0B1622;
  opacity: 0.45;
}
.card--back > * { position: relative; z-index: 1; }

.card__eyebrow {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(11,22,34,0.7);
  margin: 0;
}

.card__caps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 3px;
}
.card__caps li {
  position: relative;
  padding-left: 11px;
  font-size: 9px;
  color: #0B1622;
  line-height: 1.32;
  font-weight: 500;
  margin: 0;
}
.card__caps li::before {
  content: "";
  position: absolute;
  left: 0; top: 4.5px;
  width: 4.5px; height: 4.5px;
  border: 1.2px solid #0B1622;
  transform: rotate(45deg);
}

.card__signature {
  border-top: 1px solid rgba(11,22,34,0.4);
  padding-top: 6px;
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 6px;
}
.card__badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C9A874;
  background: #0B1622;
  padding: 3px 6px;
  border-radius: 2px;
  flex: 0 0 auto;
}
.card__signature p {
  margin: 0;
  font-size: 8.5px;
  color: #0B1622;
  font-style: italic;
  line-height: 1.32;
  flex: 1 1 16ch;
}

/* =========================================================
   Print rules — produce physically accurate output
   ========================================================= */

@media print {
  /* A4 portrait by default; the cards sit near the top.
     Users can also pick Letter — both have enough room for 2× 85mm wide. */
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  html, body {
    background: #ffffff !important;
    color: #000;
  }

  .screen-only { display: none !important; }

  .stage {
    background: none !important;
    padding: 0 !important;
    min-height: auto !important;
    display: block;
  }

  .sheet {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 6mm;
    page-break-inside: avoid;
  }

  .card {
    /* Exact physical dimensions */
    width: 85mm !important;
    height: 55mm !important;
    padding: 5mm 5.5mm !important;
    border-radius: 1.5mm !important;
    box-shadow: 0 0 0 0.2mm rgba(0,0,0,0.15) !important;
    font-size: 8pt !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Scale internal type to print-mm units to keep proportions */
  .card__logo      { width: 51mm !important; max-width: 78% !important; }
  .card__mark      { width: 9mm !important; height: 9mm !important; }
  .card__name      { font-size: 11pt !important; }
  .card__tag       { font-size: 5.5pt !important; }
  .card__statement { font-size: 9pt !important; }
  .card__contact dt, .card__eyebrow, .card__badge { font-size: 5.5pt !important; }
  .card__contact dd, .card__caps li, .card__signature p { font-size: 7.5pt !important; }
}

/* =========================================================
   Small screens
   ========================================================= */

@media (max-width: 720px) {
  .sheet {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .card {
    /* Slightly narrower on phones to keep readable */
    width: min(297.5px, 90vw);
    height: auto;
    aspect-ratio: 85 / 55;
  }
  .chrome { padding: 0.75rem 1rem; gap: 0.75rem; }
  .chrome__title { display: none; }
}
