/* Reliable Shipping Services — rssiusa.com */
:root {
  --navy: #0b1f4b;
  --navy-2: #12306e;
  --blue: #1f6fd1;
  --sky: #cfe6fb;
  --ink: #1b2433;
  --muted: #5a6577;
  --line: #dfe4ec;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(11, 31, 75, .18);
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 64ch; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 8px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none; transition: background .15s, transform .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-block { width: 100%; font-size: 1.2rem; padding: .9em; }
.ext::after { content: ""; display: inline-block; width: .85em; height: .85em; margin-left: .15em;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg, .brand .logo { width: 62px; height: auto; flex: none; }
.brand-name { display: block; font-weight: 800; font-size: 1.15rem; color: var(--navy); letter-spacing: .01em; line-height: 1.15; }
.brand-tag { display: block; font-size: .68rem; font-weight: 700; color: var(--blue); letter-spacing: .16em; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav > a, .nav-drop > button { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.05rem; border: 0; font-family: inherit; cursor: pointer; padding: 6px 0; }
.nav-drop > button { background: none; }
.nav > a:hover, .nav-drop > button:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav > a.btn { color: #fff; padding: .7em 1.4em; font-weight: 700; }
.nav > a.btn:hover, .nav > a.btn[aria-current="page"] { color: #fff; }
.nav-drop { position: relative; }
.nav-drop > button::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.nav-drop .menu { position: absolute; top: 100%; left: -16px; min-width: 210px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); display: none; }
.nav-drop:hover .menu, .nav-drop:focus-within .menu, .nav-drop.open .menu { display: block; }
.nav-drop .menu a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.nav-drop .menu a:hover { background: var(--bg-soft); color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--navy); border-radius: 2px; }

/* ── Hero ── */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; background: url("hero-ocean.jpg") center 40%/cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,22,56,.92) 0%, rgba(8,22,56,.72) 38%, rgba(8,22,56,.25) 70%, rgba(8,22,56,.35) 100%),
              linear-gradient(0deg, rgba(8,22,56,.65) 0%, rgba(8,22,56,0) 35%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 36px; }
.hero h1 { color: #fff; }
.hero .sub { font-size: clamp(1.2rem, 2.2vw, 1.75rem); line-height: 1.35; opacity: .95; margin-bottom: 1.3em; }
.hero-link { color: #fff; font-weight: 700; font-size: 1.2rem; text-decoration: none; border-bottom: 2px solid #fff; padding-bottom: 3px; }
.hero-link:hover { color: var(--sky); border-color: var(--sky); }
.hero-modes { position: relative; display: flex; justify-content: center; gap: 0; padding: 0 0 28px; }
.hero-modes a { display: flex; align-items: center; gap: 12px; padding: 10px 28px 14px; color: #fff; text-decoration: none; font-size: 1.1rem; border-right: 1px solid rgba(255,255,255,.45); }
.hero-modes a:last-child { border-right: 0; }
.hero-modes a:hover { color: var(--sky); }
.hero-modes svg { width: 40px; height: 28px; }

/* ── Rate card ── */
.rate-card { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 30px 32px; }
.rate-card h2 { font-size: 1.75rem; margin-bottom: .7em; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; border: 1.5px solid #c9d1dd; border-radius: 8px; background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,209,.18); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid #c9d1dd; border-radius: 8px; overflow: hidden; margin: 6px 0 22px; }
.modes label { position: relative; cursor: pointer; }
.modes input { position: absolute; opacity: 0; }
.modes span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; font-weight: 500; border-right: 1.5px solid #c9d1dd; }
.modes label:last-child span { border-right: 0; }
.modes svg { width: 36px; height: 26px; }
.modes input:checked + span { background: var(--sky); color: var(--navy); font-weight: 700; }
.modes input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: -3px; }

/* ── Sections ── */
section { padding: 84px 0; }
.soft { background: var(--bg-soft); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; }
.service { display: flex; gap: 20px; padding: 0 30px; border-right: 1px solid var(--line); }
.service:first-child { padding-left: 0; }
.service:last-child { border-right: 0; }
.service svg { width: 84px; height: 60px; flex: none; color: var(--navy); }
.service p { color: var(--muted); font-size: .97rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card .body { padding: 24px 26px 28px; }
.card p { color: var(--muted); }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.specialties { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.spec { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 20px; display: flex; align-items: center; gap: 14px; font-weight: 700; color: var(--navy); }
.spec svg { width: 34px; height: 34px; flex: none; color: var(--blue); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat { background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 26px; }
.stat b { display: block; font-size: 2.4rem; color: var(--navy); line-height: 1; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: .95rem; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.badges li { background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .08em; padding: 8px 14px; border-radius: 999px; }
.cta-band { background: var(--navy); color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: .4em 0 0; opacity: .85; }
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.office h3 { margin-bottom: .4em; }
.office p { color: var(--muted); margin: 0; }

/* ── Page hero (inner pages) ── */
.page-hero { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 72px 0 64px; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.page-hero p { font-size: 1.2rem; opacity: .9; max-width: 60ch; margin: 0; }

/* ── Track page ── */
.track-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; margin-top: -40px; position: relative; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: flex; gap: 16px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--sky); color: var(--navy); font-weight: 800; display: grid; place-items: center; }

/* ── Form page ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.form-grid .full { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 8px; display: none; }
.form-status.ok { display: block; background: #e7f6ec; color: #135c2c; }
.form-status.err { display: block; background: #fdecec; color: #8a1c1c; }
.aside { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; }
.aside h3 { font-size: 1.1rem; }
.aside p { color: var(--muted); }
.layout-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }

/* ── Footer ── */
.site-footer { background: #081638; color: #c8d3ea; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand-name { color: #fff; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* ── Ask RSSI ── */
.ask { position: fixed; right: 22px; bottom: 22px; z-index: 60; }
.ask-btn { display: flex; align-items: center; gap: 10px; background: var(--blue); color: #fff; border: 0; border-radius: 999px; padding: 14px 22px; font: inherit; font-weight: 700; font-size: 1.05rem; box-shadow: 0 10px 26px rgba(31,111,209,.4); cursor: pointer; }
.ask-btn svg { width: 26px; height: 26px; }
.ask-panel { position: absolute; right: 0; bottom: 70px; width: 300px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: none; }
.ask.open .ask-panel { display: block; }
.ask-panel h3 { font-size: 1.1rem; margin-bottom: .3em; }
.ask-panel p { color: var(--muted); font-size: .92rem; }
.ask-panel a { display: block; padding: 11px 14px; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--navy); font-weight: 600; }
.ask-panel a:hover { border-color: var(--blue); background: var(--bg-soft); }

/* ── Responsive ── */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; }
  .services, .cards, .offices { grid-template-columns: 1fr; gap: 28px; }
  .service { padding: 0 0 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .service:last-child { border-bottom: 0; }
  .specialties { grid-template-columns: repeat(2, 1fr); }
  .split, .layout-2 { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 22px; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(0,0,0,.08); }
  .site-header.open .nav { display: flex; }
  .nav > a, .nav-drop > button { padding: 12px 0; text-align: left; width: 100%; }
  .nav-drop .menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .nav .btn { margin-top: 10px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  section { padding: 60px 0; }
  .site-header .wrap { min-height: 72px; }
  .brand svg, .brand .logo { width: 46px; height: auto; }
  .brand-name { font-size: .95rem; }
  .brand-tag { font-size: .58rem; letter-spacing: .1em; }
  .rate-card { padding: 22px 18px; }
  .hero-modes a { padding: 8px 12px 12px; font-size: .95rem; gap: 8px; }
  .hero-modes svg { width: 30px; }
  .specialties { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .track-box { padding: 26px 20px; }
  .ask { right: 14px; bottom: 14px; }
  .ask-btn { padding: 12px 18px; }
  .ask-panel { width: calc(100vw - 28px); }
}

/* ── Ask RSSI chat window ── */
.ask-panel.chat { width: 360px; padding: 0; overflow: hidden; display: none; flex-direction: column; max-height: min(560px, calc(100vh - 120px)); }
.ask.open .ask-panel.chat { display: flex; }
.chat-head { background: var(--navy); color: #fff; padding: 14px 18px; }
.chat-head strong { display: block; font-size: 1.05rem; }
.chat-head span { font-size: .8rem; opacity: .8; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-soft); min-height: 220px; }
.chat-log .msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: .93rem; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.chat-log .msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-log .msg.me { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-log .msg.me a { color: #fff; }
.chat-log .typing { color: var(--muted); }
.chat-opts { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: #fff; }
.chat-opts:empty { display: none; }
.chat-opts button { font: inherit; font-size: .85rem; border: 1.5px solid var(--navy); color: var(--navy); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chat-opts button:hover { background: var(--navy); color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; font: inherit; padding: 10px 12px; border: 1.5px solid #c9d1dd; border-radius: 8px; min-width: 0; }
.chat-form input:focus { outline: none; border-color: var(--blue); }
.chat-form button { font: inherit; font-weight: 700; background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 0 14px; cursor: pointer; }
.chat-form .hp { position: absolute; left: -9999px; width: 1px; }
.chat-foot { font-size: .78rem; color: var(--muted); padding: 0 12px 10px; background: #fff; }
.chat-foot a { display: inline; padding: 0; border: 0; margin: 0; }
@media (max-width: 600px) { .ask-panel.chat { width: calc(100vw - 28px); } }
.ask-panel.chat .msg a { display: inline; padding: 0; border: 0; margin: 0; background: none; font-weight: 600; color: var(--blue); }
