/* ==========================================================================
   Proactive Express Shipping — marketing site
   Layout modelled on aeropost.com/KIN/en, styled with the PES brand palette.
   ========================================================================== */

:root {
  /* Brand — extracted from the Proactive Express Shipping logo */
  --navy: #002746;
  --navy-800: #013159;
  --navy-700: #0a3f6b;
  --blue: #0192d1;
  --blue-600: #0a7fb4;
  --blue-100: #e3f3fb;
  --green: #179b5f;
  --green-600: #13834f;
  --green-100: #e4f4ec;
  --gold: #ffcd18;
  --gold-600: #e6b400;

  --ink: #18222e;
  --body: #55636f;
  --muted: #8a95a1;
  --line: #e3e8ee;
  --tint: #f4f8fc;
  --white: #fff;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(0, 39, 70, .06);
  --shadow: 0 10px 30px rgba(0, 39, 70, .10);
  --shadow-lg: 0 18px 46px rgba(0, 39, 70, .16);

  --wrap: 1180px;
  --gutter: 20px;
  --header-h: 116px;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.22; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.35rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); letter-spacing: -.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 16px rgba(255, 205, 24, .34); }
.btn--gold:hover { background: var(--gold-600); color: var(--navy); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(1, 146, 209, .28); }
.btn--blue:hover { background: var(--blue-600); color: #fff; }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(23, 155, 95, .26); }
.btn--green:hover { background: var(--green-600); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--lg { padding: 1.05rem 2.3rem; font-size: 1.02rem; }

/* --------------------------------------------------------------- header -- */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 100; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: .9rem;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 38px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-weight: 700; font-size: 1.02rem; letter-spacing: .01em; color: #fff;
  text-transform: uppercase;
}
.brand__name em { font-style: normal; color: var(--gold); }
.brand__tag {
  font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6); margin-top: .22rem;
}
.topbar__actions { display: flex; align-items: center; gap: .65rem; }
.topbar .btn { padding: .6rem 1.35rem; font-size: .88rem; }

.mainnav { border-top: 1px solid rgba(255, 255, 255, .12); }
.mainnav__inner { display: flex; align-items: center; gap: 1.9rem; padding-block: .8rem; }
.mainnav a {
  color: rgba(255, 255, 255, .84); font-size: .92rem; font-weight: 500;
  padding-block: .25rem; border-bottom: 2px solid transparent;
}
.mainnav a:hover { color: #fff; border-bottom-color: var(--gold); }
.mainnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }

.navtoggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  color: #fff;
}
.navtoggle svg { width: 26px; height: 26px; }

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative; background: var(--navy); color: #fff; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) 0 0;
}
/* faint dotted world-grid, echoing Aeropost's map backdrop */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(1, 146, 209, .38), transparent 42%),
    radial-gradient(circle at 84% 12%, rgba(23, 155, 95, .26), transparent 46%),
    radial-gradient(rgba(255, 255, 255, .17) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
  opacity: .9; pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 { color: #fff; max-width: 21ch; margin-inline: auto; }
.hero h1 .u {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% 4px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 4px; white-space: nowrap;
}
.hero__sub {
  color: rgba(255, 255, 255, .86); font-size: clamp(1rem, 1.9vw, 1.2rem);
  max-width: 56ch; margin: 0 auto 2rem;
}
.hero__cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-bottom: clamp(3rem, 7vw, 4.5rem); }

/* three quick-action cards straddling the hero edge */
.quickbar { background: linear-gradient(var(--navy) 50%, var(--tint) 50%); }
.quickbar__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.quick {
  background: #fff; border-radius: var(--radius-lg); padding: 1.6rem 1.1rem;
  text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.quick:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quick svg { width: 38px; height: 38px; color: var(--blue); margin: 0 auto .7rem; }
.quick span { display: block; font-weight: 600; color: var(--navy); font-size: .98rem; }

/* -------------------------------------------------------------- section -- */
.section { padding: clamp(3.2rem, 7vw, 5rem) 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .84); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 62ch; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section__head p { font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green); margin-bottom: .6rem;
}
.section--navy .eyebrow { color: var(--gold); }

/* ----------------------------------------------------------------- grid -- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* benefit cards */
.feature { text-align: center; padding: 1.9rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature__icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 1rem; background: var(--blue-100); color: var(--blue);
}
.feature__icon svg { width: 28px; height: 28px; }
.feature__icon--green { background: var(--green-100); color: var(--green); }
.feature__icon--gold { background: #fff6d6; color: #b58a00; }
.feature h3 { margin-bottom: .45rem; }
.feature p { font-size: .94rem; margin: 0; }

/* numbered steps */
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.1rem 1.4rem 1.5rem; text-align: center; box-shadow: var(--shadow-sm); }
.step__n {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 700; box-shadow: 0 6px 14px rgba(1, 146, 209, .3);
}
.step h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.step p { font-size: .93rem; margin: 0; }

/* alternating image/copy rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split + .split { margin-top: clamp(3rem, 6vw, 4.5rem); }
.split--flip .split__media { order: 2; }
.split__media {
  background: linear-gradient(140deg, var(--blue-100), #fff);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.2rem; display: grid; place-items: center; min-height: 260px;
}
.split__media svg { width: 100%; max-width: 300px; height: auto; }

/* US address card */
.addr {
  background: #fff; border: 2px dashed var(--blue); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .95rem; color: var(--navy); line-height: 1.85;
}
.addr strong { color: var(--blue); }

/* ---------------------------------------------------------------- rates -- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table.rates { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; }
table.rates caption { caption-side: top; padding: 1.1rem 1.2rem; text-align: left; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
table.rates th, table.rates td { padding: .72rem 1.2rem; text-align: left; }
table.rates thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .86rem; letter-spacing: .04em; text-transform: uppercase; }
table.rates tbody tr:nth-child(even) { background: var(--tint); }
table.rates tbody tr:hover { background: var(--blue-100); }
table.rates td:last-child { font-weight: 600; color: var(--navy); text-align: right; }
table.rates thead th:last-child { text-align: right; }

.fee-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.fee { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.fee__amt { font-size: 1.5rem; font-weight: 700; color: var(--navy); display: block; line-height: 1.2; }
.fee h3 { font-size: .93rem; color: var(--body); font-weight: 600; margin: .3rem 0 .35rem; }
.fee p { font-size: .86rem; margin: 0; color: var(--muted); }

/* ----------------------------------------------------------- calculator -- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.calc__form, .calc__out {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
}
.calc__out { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, .8); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; color: var(--navy); font-size: .9rem; margin-bottom: .4rem; }
.field input, .field select {
  width: 100%; padding: .8rem .95rem; font: inherit; font-size: .95rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.field input:focus, .field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(1, 146, 209, .16); }
.field small { display: block; color: var(--muted); font-size: .82rem; margin-top: .35rem; }

.calc__total { border-bottom: 1px solid rgba(255, 255, 255, .16); padding-bottom: 1.1rem; margin-bottom: 1.1rem; }
.calc__total span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.calc__total strong { font-size: clamp(2rem, 5vw, 2.7rem); color: #fff; font-weight: 700; line-height: 1.15; display: block; }
.calc__line { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .93rem; }
.calc__line b { color: #fff; font-weight: 600; }
.calc__note { font-size: .82rem; color: rgba(255, 255, 255, .6); margin: 1rem 0 0; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: .9rem; }

/* ------------------------------------------------------------ faq / misc -- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .8rem; box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 1.3rem 1.2rem; font-size: .95rem; }

.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.quote p { font-style: italic; color: var(--ink); }
.quote footer { font-size: .88rem; color: var(--muted); font-style: normal; }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .5rem; }

.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.contact-card h3 { display: flex; align-items: center; gap: .6rem; font-size: 1rem; }
.contact-card svg { width: 20px; height: 20px; color: var(--blue); flex: none; }

/* ------------------------------------------------------------- final CTA -- */
.cta {
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  color: #fff; text-align: center; padding: clamp(3rem, 7vw, 4.5rem) 0;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .82); max-width: 54ch; margin: 0 auto 1.8rem; }

/* --------------------------------------------------------------- footer -- */
.site-footer { background: #001b31; color: rgba(255, 255, 255, .66); padding: clamp(2.6rem, 6vw, 3.6rem) 0 0; font-size: .92rem; }
.site-footer img { height: 56px; width: auto; margin-bottom: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255, 255, 255, .66); }
.site-footer a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.4rem; padding-block: 1.3rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .86rem;
}
.tagline { color: var(--gold); font-weight: 600; font-size: .9rem; }

/* ----------------------------------------------------------- responsive -- */
@media (max-width: 900px) {
  .grid--4, .fee-grid { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .split, .calc { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
}

@media (max-width: 720px) {
  .mainnav__inner {
    display: none; flex-direction: column; align-items: flex-start; gap: .2rem; padding-bottom: 1rem;
  }
  .mainnav__inner.is-open { display: flex; }
  .mainnav a { padding-block: .6rem; width: 100%; border-bottom: 0; }
  .navtoggle { display: block; }
  /* the wordmark competes with the CTAs at phone width — mark only */
  .brand__text { display: none; }
  .topbar { gap: .5rem; }
  .topbar__actions { gap: .45rem; }
  .topbar .btn { padding: .55rem 1.05rem; font-size: .84rem; }
  .quickbar__grid { grid-template-columns: 1fr; }
  .quickbar { background: linear-gradient(var(--navy) 22%, var(--tint) 22%); }
  .grid--2, .grid--3, .grid--4, .fee-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .brand img { height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
