/* DHL GoGreen — corporate design (aligned with dhl.com US) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dhl-yellow: #FFCC00;
  --dhl-yellow-dark: #E6B800;
  --dhl-red: #D40511;
  --dhl-red-hover: #B0040E;
  --dhl-red-soft: #FDF2F3;
  --dhl-green: #007C39;
  --dhl-green-light: #6BA832;
  --dhl-green-dark: #005C2A;
  --dhl-green-soft: #E8F5EC;

  --text: #1A1A1A;
  --text-muted: #5C5C5C;
  --text-light: #8C8C8C;
  --border: #D9D9D9;
  --border-light: #ECECEC;
  --surface: #FFFFFF;
  --bg: #F5F5F5;
  --bg-warm: #FAFAFA;
  --footer-bg: #1A1A1A;

  --hero-image: url("/static/img/hero-bg.jpg");
  --hero-overlay: linear-gradient(
    105deg,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.35) 45%,
    rgba(0,60,30,.25) 100%
  );
  --hero-overlay-bottom: linear-gradient(
    180deg,
    rgba(0,0,0,.05) 0%,
    rgba(0,0,0,.55) 55%,
    rgba(0,0,0,.78) 100%
  );

  --font: "Delivery", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --font-mono: "Consolas", "Courier New", monospace;

  --wrap: 1200px;
  --radius: 0;
  --radius-sm: 2px;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,.12);
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--dhl-red); text-decoration: none; }
a:hover { color: var(--dhl-red-hover); }

img { display: block; max-width: 100%; }
.hidden { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.dhl-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ── Site header (dhl.com style) ── */
.dhl-site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--dhl-yellow);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.dhl-utility {
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 13px;
}

.dhl-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
}

.dhl-utility__logo { display: none; }

.dhl-utility__links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin-left: auto;
}

.dhl-utility__links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
}

.dhl-utility__links a:hover { color: var(--dhl-red); text-decoration: underline; }

.dhl-utility__locale {
  color: var(--text-muted);
  font-weight: 500;
}

.dhl-brandbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}

.dhl-brandbar__logo { flex-shrink: 0; line-height: 0; }

.dhl-brandbar__logo-img {
  height: 56px;
  width: auto;
  max-width: min(320px, 55vw);
  object-fit: contain;
}

.dhl-primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  flex: 1;
}

.dhl-primary-nav__link {
  font-size: 15px;
  font-weight: 700;
  color: var(--dhl-red);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 3px solid transparent;
  transition: border-color .15s;
}

.dhl-primary-nav__link:hover {
  color: var(--dhl-red-hover);
  text-decoration: none;
  border-bottom-color: var(--dhl-red);
}

.dhl-primary-nav__link.is-active {
  border-bottom-color: var(--dhl-red);
}

/* Legacy compact page hero (track, checkout) */
.dhl-hero {
  background: var(--dhl-yellow);
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--border-light);
}

.dhl-hero__title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.dhl-hero__sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 560px;
  line-height: 1.6;
}

.dhl-hero--compact {
  padding: 32px 0 36px;
}

.dhl-hero--compact .dhl-hero__title { font-size: 28px; margin-bottom: 8px; }
.dhl-hero--compact .dhl-hero__sub { margin-bottom: 0; font-size: 15px; }

.dhl-hero--dark {
  background: linear-gradient(135deg, #1a3a2a 0%, #2d5a3d 100%);
  color: #fff;
  border-bottom: none;
}

.dhl-hero--dark .dhl-hero__title { color: #fff; }
.dhl-hero--dark .dhl-hero__sub { color: rgba(255,255,255,.82); }

/* Track page hero (matches homepage) */
.dhl-hero--track {
  position: relative;
  min-height: clamp(360px, 42vh, 480px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  background: transparent;
  border-bottom: none;
  overflow: hidden;
}

.dhl-hero--track .dhl-hero__media,
.dhl-hero__media,
.dhl-home-hero__media {
  position: absolute;
  inset: 0;
  background-image: var(--hero-overlay-bottom), var(--hero-overlay), var(--hero-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

@media (min-width: 961px) {
  .dhl-home-hero__media,
  .dhl-hero--track .dhl-hero__media {
    background-attachment: fixed;
  }
}

.dhl-hero--track .dhl-hero__content {
  position: relative;
  z-index: 1;
  padding: 72px 24px 64px;
  color: #fff;
  width: 100%;
  animation: heroFadeUp .6s ease-out both;
}

.dhl-hero--track .dhl-hero__title {
  color: #fff;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -.03em;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
  margin-bottom: 12px;
}

.dhl-hero--track .dhl-hero__sub {
  color: rgba(255,255,255,.92);
  margin-bottom: 20px;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}

.dhl-hero--track .dhl-home-hero__hint,
.dhl-hero--track .dhl-home-hero__hint button { color: rgba(255,255,255,.75); }
.dhl-hero--track .dhl-home-hero__hint button { color: var(--dhl-yellow); }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Shared home-track form (also on track page) */
.dhl-home-track {
  display: flex;
  max-width: 760px;
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
}

.dhl-home-track input {
  flex: 1;
  border: none;
  padding: 16px 18px;
  font-size: 16px;
  font-family: var(--font);
  background: rgba(255,255,255,.95);
  min-width: 0;
  outline: none;
}

.dhl-home-track input:focus {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--dhl-red);
}

.dhl-home-track button {
  background: var(--dhl-red);
  color: #fff;
  border: none;
  padding: 0 36px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
  white-space: nowrap;
}

.dhl-home-track button:hover { background: var(--dhl-red-hover); }

.dhl-home-hero__hint {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
}

.dhl-home-hero__hint button {
  background: none;
  border: none;
  color: var(--dhl-yellow);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* Track box (inner pages) */
.dhl-track-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-md);
  max-width: 560px;
}

.dhl-track-box__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.dhl-track-form {
  display: flex;
  gap: 0;
}

.dhl-track-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-right: none;
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font);
  background: var(--surface);
  outline: none;
  min-width: 0;
}

.dhl-track-form input:focus {
  border-color: var(--dhl-red);
  box-shadow: inset 0 0 0 1px var(--dhl-red);
}

.dhl-track-form button {
  background: var(--dhl-red);
  color: #fff;
  border: none;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
  white-space: nowrap;
}

.dhl-track-form button:hover { background: var(--dhl-red-hover); }

.dhl-track-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-light);
}

.dhl-track-hint button {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dhl-red);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* Buttons */
.dhl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}

.dhl-btn--red { background: var(--dhl-red); color: #fff; }
.dhl-btn--red:hover { background: var(--dhl-red-hover); color: #fff; text-decoration: none; }

.dhl-btn--soft {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.dhl-btn--soft:hover {
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
}

.dhl-btn:disabled { background: var(--border); cursor: not-allowed; color: var(--text-light); }
.dhl-btn--block { width: 100%; }

/* Cards */
.dhl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.dhl-card__head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.dhl-card__body { padding: 24px; }

/* Forms */
.dhl-field { margin-bottom: 18px; }

.dhl-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.dhl-field input,
.dhl-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  transition: border-color .15s;
}

.dhl-field input:focus,
.dhl-field select:focus {
  outline: none;
  border-color: var(--dhl-red);
}

.dhl-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dhl-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 24px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dhl-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Alerts */
.dhl-alert {
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid;
}

.dhl-alert--error {
  background: var(--dhl-red-soft);
  border-color: #F5C6CB;
  color: var(--dhl-red);
}

.dhl-alert--success {
  background: var(--dhl-green-soft);
  border-color: #A8D5B5;
  color: var(--dhl-green-dark);
}

/* Footer (dhl.com dark) */
.dhl-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.75);
  margin-top: auto;
}

.dhl-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 24px 40px;
}

.dhl-footer__col h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.dhl-footer__col ul { list-style: none; }
.dhl-footer__col li { margin-bottom: 10px; }

.dhl-footer__col a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 13px;
}

.dhl-footer__col a:hover { color: #fff; text-decoration: underline; }

.dhl-footer__bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
}

.dhl-footer__bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
  gap: 8px;
}

.dhl-footer__disclaimer { max-width: 420px; text-align: right; }

/* Page */
.dhl-page { padding: 36px 0 52px; background: var(--bg); flex: 1; }

.dhl-page__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.dhl-page__sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

@media (max-width: 960px) {
  .dhl-footer__grid { grid-template-columns: 1fr 1fr; }
  .dhl-primary-nav { gap: 4px 16px; }
  .dhl-primary-nav__link { font-size: 14px; }
}

@media (max-width: 640px) {
  .dhl-utility__links { gap: 12px; font-size: 12px; }
  .dhl-utility__links li:first-child { display: none; }
  .dhl-brandbar__inner { flex-wrap: wrap; min-height: auto; padding: 12px 0; }
  .dhl-brandbar__logo-img { height: 44px; }
  .dhl-primary-nav { width: 100%; gap: 8px 14px; }
  .dhl-primary-nav__link { font-size: 13px; }
  .dhl-hero__title { font-size: 26px; }
  .dhl-track-form { flex-direction: column; }
  .dhl-track-form input { border-right: 1px solid var(--border); }
  .dhl-track-form button { padding: 14px; }
  .dhl-field-row { grid-template-columns: 1fr; }
  .dhl-footer__grid { grid-template-columns: 1fr; }
  .dhl-footer__disclaimer { text-align: left; }
}
