/* BE Customs & Trade Solutions corporate page. Same palette as the portal:
   charcoal #263238, teal #00838f, pale mint, white. No framework, no JS. */
:root {
  --charcoal: #263238; --charcoal-deep: #1b252b; --teal: #00838f; --teal-deep: #00707a;
  --teal-ink: #24565f; --mint: #e6f1ee; --mint-edge: #cddfd9; --chip: #e8f3f4;
  --border: #e3eaec; --ink: #1d282d; --ink-2: #4c5b62; --slate: #50636a; --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--white); }
a { color: var(--teal-deep); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
.shell { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.25rem; min-height: 58px; padding: 0.65rem 2rem; background: var(--charcoal); color: var(--white); }
.brand { display: flex; align-items: center; gap: 0.25rem; margin-right: auto; color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.brand-mark { height: 26px; width: auto; display: block; }
.topnav { display: flex; gap: 1.5rem; }
.topnav a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.topnav a:hover { color: var(--white); border-bottom-color: rgba(255,255,255,.6); }

/* hero */
.hero { background: var(--charcoal); color: var(--white); padding: 96px 0 84px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 600; text-wrap: balance; margin-bottom: 18px; }
.lede { max-width: 58ch; font-size: 1.125rem; color: rgba(255,255,255,.82); margin: 0 0 32px; }
.eyebrow { margin: 0 0 14px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.eyebrow--dark { color: var(--teal-ink); }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; padding: 12px 26px; border-radius: 6px; border: 1px solid transparent; font-weight: 600; font-size: .975rem; text-decoration: none; transition: background-color .18s, border-color .18s; }
.btn-primary { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn-quiet { background: transparent; border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-quiet:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }

/* bands */
.band { padding: 88px 0; }
.band--white { background: var(--white); }
.band--mint { background: var(--mint); border-top: 1px solid var(--mint-edge); border-bottom: 1px solid var(--mint-edge); }
.band h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 600; margin-bottom: 14px; text-wrap: balance; }

/* service cards */
.cards { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--teal); }
.card h3 { font-size: 1.075rem; font-weight: 600; }
.card p { margin: 0; color: var(--ink-2); }
.card--muted { background: #f7fafa; border-style: dashed; }
.card--muted h3, .card--muted p { color: var(--ink-2); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 9px; background: var(--chip); color: var(--teal); }
.card--muted .card-icon { color: var(--teal-ink); background: #eef4f5; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pill { align-self: flex-start; margin-top: auto; padding: 4px 14px; border-radius: 999px; background: #e2f2f4; border: 1px solid #c6e3e6; color: var(--teal-deep); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* portal band */
.portal { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.portal-copy p { color: var(--ink-2); margin: 0 0 14px; max-width: 58ch; }
.portal-note { font-size: .95rem; color: var(--slate); }
.portal-copy .btn { margin-top: 10px; }
.portal-mark { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 24px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.portal-mark img { width: 220px; height: auto; }

/* contact */
.contact p { color: var(--ink-2); max-width: 58ch; }
.contact-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.contact-list a { display: inline-flex; align-items: center; padding: 9px 20px; border: 1px solid #cfe0e2; border-radius: 999px; color: var(--teal-ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { background: var(--chip); }

/* footer */
.footer { background: var(--charcoal-deep); color: rgba(255,255,255,.85); padding: 40px 0 24px; }
.footer-grid { display: flex; flex-direction: column; gap: 6px; }
.footer-brand { display: flex; align-items: center; gap: .25rem; font-weight: 700; font-size: 1.15rem; color: var(--white); }
.footer-mark { height: 26px; width: auto; }
.footer-tagline { margin: 4px 0 0; color: #7fd6de; font-weight: 600; letter-spacing: .02em; }
.footer-attribution { margin: 0; font-size: .9rem; color: rgba(255,255,255,.62); }
.footer-copyright { max-width: 1100px; margin: 24px auto 0; padding: 18px 32px 0; border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: .85rem; color: rgba(255,255,255,.5); }

/* responsive */
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0,1fr)); } .portal { grid-template-columns: 1fr; } .portal-mark { max-width: 360px; } }
@media (max-width: 640px) {
  .shell { padding: 0 20px; } .band { padding: 56px 0; } .hero { padding: 64px 0 52px; }
  .topbar { padding: .5rem 1rem; gap: .75rem; } .brand { font-size: .95rem; } .brand-mark { height: 20px; } .topnav { gap: 1rem; } .topnav a { font-size: .875rem; }
  .cards { grid-template-columns: 1fr; } .btn { width: 100%; justify-content: center; }
}
/* Narrow phones: the corporate wordmark is long, so the bar wraps onto two
   rows (brand, then the three links) instead of clipping. */
@media (max-width: 480px) {
  .topbar { flex-wrap: wrap; row-gap: .25rem; padding: .5rem 1rem .6rem; }
  .brand { flex: 1 1 100%; font-size: .95rem; }
  .brand-mark { height: 20px; }
  .topnav { flex: 1 1 100%; gap: 1.25rem; }
  .topnav a { font-size: .9rem; padding: .35rem 0; }
}
