/* Soho Management — Archivo headings, Source Sans 3 text, one tape-yellow highlight */
:root {
  --paper: #f4f6f5;
  --card: #ffffff;
  --ink: #142033;
  --ink-soft: #4a566a;
  --rule: #d6dcd9;
  --green: #0a6b50;
  --green-soft: #e3f1ec;
  --tape: #f3c533;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --mono: "Source Sans 3", "Helvetica Neue", Arial, sans-serif; /* labels and figures: same family, tabular numbers */
  --wrap: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--body);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; border-radius: 4px; }

/* language toggle: html.en shows English, default shows Portuguese */
.en-only { display: none !important; }
html.en .pt-only { display: none !important; }
html.en .en-only { display: revert !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }

/* header */
.site-header { background: var(--card); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand b { font: 800 21px/1 var(--display); letter-spacing: -0.01em; }
.brand span { font: 600 13px/1 var(--body); color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover { color: var(--green); }
.lang { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; font: 700 13px/1 var(--body); padding: 8px 12px; min-height: 40px; min-width: 44px; cursor: pointer; color: var(--ink-soft); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* hero */
.hero { padding-block: 72px 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font: 800 clamp(38px, 5.6vw, 62px)/1.05 var(--display); letter-spacing: -0.015em; margin: 0 0 20px; text-wrap: balance; }
.hero h1 mark { background: linear-gradient(transparent 58%, var(--tape) 58%); color: inherit; padding-inline: 2px; }
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 34em; margin: 0 0 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #075a43; }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* the shipping label card */
.label { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); font-family: var(--mono); box-shadow: 6px 6px 0 var(--ink); min-width: 0; }
.label-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1.5px dashed var(--rule); }
.label-row:last-child { border-bottom: 0; }
.label small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.label strong { font-size: 15px; font-weight: 600; }
.route { display: flex; align-items: center; justify-content: space-between; padding: 22px 18px; border-bottom: 1.5px solid var(--ink); }
.route .code { font: 800 46px/1 var(--display); letter-spacing: -0.01em; }
.route .line { flex: 1; height: 2px; margin-inline: 16px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); position: relative; }
.route .line::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--ink); }
.tape { display: inline-block; background: var(--tape); padding: 3px 8px; font-weight: 600; font-size: 13px; }

/* sections */
section.block { padding-block: 64px; border-top: 1px solid var(--rule); }
.eyebrow { font: 700 15px/1.2 var(--body); color: var(--green); margin: 0 0 10px; }
h2 { font: 800 clamp(28px, 3.6vw, 40px)/1.12 var(--display); letter-spacing: -0.01em; margin: 0 0 16px; text-wrap: balance; }
h3 { font: 700 19px/1.3 var(--display); margin: 0 0 6px; }
.intro { color: var(--ink-soft); max-width: 40em; margin: 0 0 36px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.steps li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; counter-increment: step; min-width: 0; }
.steps li::before { content: "0" counter(step); display: block; font: 800 15px/1 var(--display); color: var(--green); margin-bottom: 14px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.price-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table th { font: 600 14px/1.2 var(--body); color: var(--ink-soft); background: var(--paper); }
.price-table td:first-child { font-weight: 600; width: 34%; }
.price-table .who { font-family: var(--body); font-size: 15px; color: var(--ink-soft); white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.note { font-size: 15px; color: var(--ink-soft); margin-top: 16px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.callout { background: var(--green-soft); border-radius: var(--radius); padding: 24px; }
.callout p { margin: 0 0 10px; }
.callout p:last-child { margin: 0; }
ul.plain { padding-left: 20px; margin: 0; }
ul.plain li { margin-bottom: 6px; }

details { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-grid > div { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; min-width: 0; overflow-wrap: anywhere; }
.contact-grid small { display: block; font: 600 14px/1.2 var(--body); color: var(--ink-soft); margin-bottom: 6px; }

/* policy pages */
.doc { padding-block: 48px 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font: 800 clamp(32px, 4.4vw, 44px)/1.1 var(--display); letter-spacing: -0.01em; margin: 0 0 8px; }
.doc .meta { font: 400 15px/1.4 var(--body); color: var(--ink-soft); margin: 0 0 32px; }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc p, .doc li { color: #26324a; }

/* footer */
.site-footer { background: var(--ink); color: #c9d1dc; padding-block: 40px; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: #fff; text-decoration: none; margin-right: 18px; display: inline-block; padding: 10px 0; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { font-size: 14px; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
/* floating WhatsApp button (phones) */
.wa-float { display: none; }
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header .wrap { min-height: 56px; gap: 8px; flex-wrap: nowrap; }
  .brand b { font-size: 19px; }
  .nav { gap: 12px; flex-wrap: nowrap; }
  .contact-grid a { display: inline-block; padding: 8px 0; }
  .site-footer { padding-bottom: 96px; }
  .wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 6px 20px rgba(20, 32, 51, 0.28); }
  .wa-float:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; }
  .hero { padding-block: 40px; }
  .hero .wrap, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav a.hide-sm { display: none; }
  .route .code { font-size: 36px; }
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: auto; }
  .price-table tr { border-bottom: 1px solid var(--rule); padding: 14px 16px; }
  .price-table tr:last-child { border-bottom: 0; }
  .price-table td { border: 0; padding: 2px 0; }
  .price-table td:first-child { width: auto; }
  .price-table .who { white-space: normal; padding-top: 6px; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
  .brand { min-height: 44px; align-items: center; }
}
@media (max-width: 359px) {
  .site-header .wrap { padding-inline: 14px; }
  .brand b { font-size: 16px; }
  .nav { gap: 8px; }
  .nav a { font-size: 14px; }
  .lang button { padding: 8px 9px; min-width: 38px; }
}
html.en .label small.en-only { display: block !important; }
html.en .contact-grid small.en-only { display: block !important; }

/* cost calculator */
[hidden] { display: none !important; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.calc-form, .calc-result { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; min-width: 0; }
.calc-form { display: grid; gap: 18px; }
.calc-mode { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-mode legend { font: 700 15px/1.2 var(--body); color: var(--ink); margin-bottom: 10px; padding: 0; }
.mode-opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; }
.mode-opt:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.mode-opt input { margin-top: 4px; accent-color: var(--green); }
.mode-opt b { display: block; font-weight: 600; }
.mode-opt small { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
html.en .mode-opt b.en-only, html.en .mode-opt small.en-only { display: block !important; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.field small { font-weight: 400; font-size: 13px; color: var(--ink-soft); }
html.en .field small.en-only { display: block !important; }
.field input, .field select { font: 400 17px/1.3 var(--body); font-variant-numeric: tabular-nums; padding: 11px 12px; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus { outline: 3px solid var(--tape); outline-offset: 1px; border-color: var(--ink); }
.field-small input { max-width: 140px; }
.calc-items { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.calc-items legend { font: 700 15px/1.2 var(--body); color: var(--ink); margin-bottom: 10px; padding: 0; }
.item-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; align-items: end; padding: 12px; border: 1.5px solid var(--rule); border-radius: var(--radius); background: var(--card); }
.item-row .field > span { font-size: 14px; }
.item-row .field input, .item-row .field select { padding: 10px; }
.item-remove { width: 44px; height: 44px; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink-soft); font: 400 24px/1 var(--body); cursor: pointer; }
.item-remove:hover { color: #8a3d12; border-color: #d9b7a0; }
.item-row .item-type-f { grid-column: 1 / -1; }
.item-row:has(.item-kg-f[hidden]) { grid-template-columns: minmax(0, 1fr) 44px; }
.btn-add { justify-self: start; min-height: 44px; padding: 0 16px; border: 1.5px dashed var(--green); border-radius: 999px; background: transparent; color: var(--green); font: 700 15px/1 var(--body); cursor: pointer; }
.btn-add:hover { background: var(--green-soft); }
.items-summary { margin: 4px 0 0; font-size: 16px; }
.items-summary small { color: var(--ink-soft); font-size: 14px; }
html.en .items-summary small.en-only { display: inline !important; }
.items-note { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
.calc-saving { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: #fff6d6; color: #5c4400; font-size: 15px; font-weight: 600; }
.calc-carrier { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; min-width: 0; }
.calc-carrier legend { font: 700 15px/1.2 var(--body); color: var(--ink); margin-bottom: 10px; padding: 0; }
.carrier-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: start; border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; }
.carrier-opt:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.carrier-opt input { margin-top: 4px; accent-color: var(--green); }
.carrier-name b { display: block; font-weight: 600; line-height: 1.3; }
.carrier-name small { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
.carrier-price { text-align: right; font: 400 13px/1.35 var(--body); color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.carrier-price strong { display: block; font: 800 19px/1.2 var(--display); color: var(--ink); margin-top: 2px; }
html.en .carrier-name small.en-only, html.en .carrier-note.en-only { display: block !important; }
.carrier-note { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
@media (max-width: 420px) {
  .carrier-opt { grid-template-columns: auto 1fr; }
  .carrier-price { grid-column: 2; text-align: left; }
}
.calc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.calc-table th, .calc-table td { padding: 9px 0; border-bottom: 1px dashed var(--rule); vertical-align: top; }
.calc-table th { text-align: left; font-weight: 400; color: var(--ink-soft); padding-right: 12px; }
.calc-table td { text-align: right; font-family: var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-table td .brl { display: block; color: var(--ink); font-weight: 600; }
.calc-table td .usd { display: block; font-size: 12px; color: var(--ink-soft); }
.calc-total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; padding: 16px 0 6px; border-bottom: 2px solid var(--ink); }
.calc-total > span { font-weight: 600; }
.calc-total strong { font: 800 30px/1.1 var(--display); letter-spacing: -0.01em; text-align: right; font-variant-numeric: tabular-nums; }
.calc-total small { grid-column: 2; text-align: right; font: 400 14px/1.3 var(--body); font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.calc-compare { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.calc-compare.good { background: var(--green-soft); color: var(--green); }
.calc-compare.bad { background: #fbeee4; color: #8a3d12; }
.calc-warn { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: #fbeee4; color: #8a3d12; font-size: 15px; }
.calc-result .btn { margin-top: 18px; }
@media (max-width: 760px) {
  .calc { grid-template-columns: 1fr; }
  .calc-mode { grid-template-columns: 1fr; }
  .calc-form, .calc-result { padding: 18px; }
}
