:root {
  --bg: #f3f7ff;
  --panel: rgba(255,255,255,0.9);
  --panel-strong: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.12);
  --accent: #14b8a6;
  --text: #0f172a;
  --muted: #475569;
  --line: #dfe7f5;
  --success: #16a34a;
  --warning: #f59e0b;
  --shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(20,184,166,0.12), transparent 28%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

button, input { font: inherit; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a,
button,
input {
  max-width: 100%;
}

#home,
#about,
#details,
#contact {
  scroll-margin-top: 96px;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.topbar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 28px;
  background-color: #1d6db5;
  background-image: url("boxdrop.jpg");
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(15,23,42,0.06);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 35, 72, 0.28);
  pointer-events: none;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff;
  box-shadow: 0 10px 18px rgba(37,99,235,0.25);
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
}

.topnav a {
  position: relative;
  color: rgba(255,255,255,0.94);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.topnav a:hover,
.topnav a:focus-visible,
.topnav a.active {
  color: #fff;
}

.topnav a:hover::after,
.topnav a:focus-visible::after,
.topnav a.active::after,
.topnav a:focus-visible::after {
  transform: scaleX(1);
}

.topnav a.active {
  font-weight: 800;
}

.container {
  display: grid;
  gap: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  padding: 24px 20px;
}

.info-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.info-card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-spaced {
  gap: 28px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 30px;
  background: rgba(255,255,255,0.8);
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
}

.page-hero .hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-hero .hero-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.page-hero .hero-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.hero-image-frame {
  min-height: 280px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.hero-image {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--primary);
  min-height: 44px;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
}

.ghost-btn {
  background: transparent;
  color: var(--primary);
}

.content-card,
.service-grid,
.tracking-panel,
.result-panel {
  border-radius: 24px;
  border: 1px solid rgba(148,163,184,0.28);
  background: rgba(255,255,255,0.82);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  padding: 20px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.service-card h3 {
  margin: 16px 0 12px;
  font-size: 1.05rem;
  color: var(--text);
}

.service-card p {
  color: var(--muted);
  line-height: 1.7;
  min-height: 96px;
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--primary-soft);
  border: 1px solid var(--line);
}

.service-icon {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 12px;
}

.service-link {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.testimonials-section {
  margin-top: 28px;
  border-radius: 24px;
  border: 1px solid rgba(148,163,184,0.28);
  background: rgba(255,255,255,0.82);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-header h2 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  line-height: 1.2;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.15);
}

.secondary-btn:hover {
  background: var(--primary-dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.testimonials-grid-single {
  grid-template-columns: minmax(280px, 1fr);
  max-width: 680px;
}

.testimonials-grid-all {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(310px, 0.92fr) minmax(420px, 1.08fr);
  gap: 28px;
  align-items: center;
  background: rgba(255,255,255,0.82);
  border-radius: 24px;
  border: 1px solid rgba(148,163,184,0.28);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
}

.faq-image-wrap {
  min-height: 280px;
  display: grid;
  place-items: center;
  background: var(--panel-strong);
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.faq-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

.faq-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-content h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  line-height: 1.2;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.faq-question-text {
  flex: 1;
}

.faq-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 1.2rem;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-question:hover .faq-icon,
.faq-question:focus-visible .faq-icon {
  background: var(--primary);
  color: #fff;
}

.faq-question:hover,
.faq-question:focus-visible {
  color: var(--primary);
}

.faq-question:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 280px;
}

.faq-item.active .faq-icon {
  color: #fff;
  background: var(--primary);
}

.faq-item.active .faq-question {
  color: var(--primary);
}

.testimonial-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 20px rgba(15,23,42,0.04);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--line);
  overflow: hidden;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author-copy {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-weight: 800;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--muted);
}

.testimonial-quote {
  color: var(--muted);
  line-height: 1.7;
  margin: 16px 0 14px;
}

.testimonial-rating {
  color: var(--warning);
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.feature-list > div {
  color: var(--text);
}

.checkmark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
  margin-right: 10px;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: 28px;
  background: rgba(255,255,255,0.78);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.feature-copy h2 {
  margin: 14px 0;
  font-size: clamp(2rem, 2.4vw, 2.5rem);
  line-height: 1.2;
}

.feature-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.feature-image-wrap {
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-section,
.contact-section {
  scroll-margin-top: 96px;
  border-radius: 24px;
  border: 1px solid rgba(148,163,184,0.28);
  background: rgba(255,255,255,0.82);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
}

.about-intro,
.contact-intro {
  max-width: 960px;
}

.section-kicker {
  display: inline-flex;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-intro h2,
.contact-intro h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.about-intro p,
.contact-intro p {
  color: var(--muted);
  line-height: 1.7;
}

.about-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.8fr);
  gap: 20px;
  align-items: center;
}

.about-image-wrap {
  min-height: 260px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.about-image {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.contact-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.contact-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-link {
  display: block;
  margin-top: 10px;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus {
  color: var(--primary-dark);
}

.contact-placeholder {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.resources-section {
  background: rgba(255,255,255,0.84);
  border-radius: 24px;
  border: 1px solid rgba(148,163,184,0.28);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
}

.resources-title {
  text-align: center;
  margin-bottom: 22px;
}

.resources-title h2 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  line-height: 1.2;
  color: var(--text);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.resource-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(37,99,235,0.12);
}

.resource-image-wrap {
  height: 180px;
  background: var(--primary-soft);
  overflow: hidden;
}

.resource-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.resource-body {
  padding: 20px;
}

.resource-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.resource-category {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--primary);
  text-transform: uppercase;
}

.resource-date {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}

.resource-body h3 {
  margin: 0 0 12px;
  font-size: 1.24rem;
  line-height: 1.4;
  color: var(--text);
}

.resource-body p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.resource-link {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.resource-link:hover,
.resource-link:focus-visible {
  color: var(--primary-dark);
}

.carrier-section {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.carrier-title {
  margin-bottom: 14px;
}

.carrier-title h3 {
  margin: 10px 0 0;
  font-size: clamp(1.6rem, 2vw, 2rem);
  color: var(--text);
}

.carrier-carousel {
  overflow: hidden;
  background: rgba(255,255,255,0.58);
  border-radius: 16px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.04);
}

.carrier-carousel-window {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.carrier-carousel-window::-webkit-scrollbar {
  display: none;
}

.carrier-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  transition: transform 420ms ease;
}

.carrier-slide {
  flex: 0 0 210px;
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrier-logo-wrap {
  display: grid;
  place-items: center;
  min-width: 110px;
  width: 180px;
  height: 90px;
  padding: 10px;
  background: var(--panel-strong);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.carrier-logo {
  max-height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(1) saturate(0.95);
}

.carousel-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  min-height: 8px;
  padding: 0;
  border-radius: 50%;
  background: var(--line);
  border: 0;
  box-shadow: none;
  cursor: pointer;
}

.carousel-dot.active {
  width: 30px;
  border-radius: 999px;
  background: var(--primary);
}

.site-footer {
  margin-top: 36px;
  padding: 34px 24px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--muted);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(160px, 0.8fr) minmax(190px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.footer-brand-block {
  max-width: 360px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.footer-brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.site-footer p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-column h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--primary);
  transform: translateX(2px);
}

.footer-highlights {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-highlights li {
  position: relative;
  padding-left: 16px;
}

.footer-highlights li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.78rem;
  line-height: 1.5;
}

.card-panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(239,246,255,0.9));
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0;
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.search-box {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 22px;
  padding: 18px;
}

.input-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

input[type="text"] {
  flex: 1;
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.8);
  padding: 0 18px;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus {
  border-color: rgba(37,99,235,0.7);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
  outline: none;
}

button {
  min-height: 54px;
  border: none;
  border-radius: 14px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 12px 18px rgba(37,99,235,0.16);
}

button:hover,
button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 22px rgba(37,99,235,0.2);
}

button:active { transform: translateY(0); }

.ghost-btn {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.message {
  min-height: 22px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.result-panel {
  display: grid;
  gap: 16px;
}

.card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 24px;
  box-shadow: 0 16px 28px rgba(15,23,42,0.06);
  padding: 24px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card h3 {
  margin: 0 0 18px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.shipment-result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.shipment-result-heading h3 {
  margin: 6px 0 0;
}

.shipment-result-kicker {
  display: block;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shipment-status {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
}

.shipment-status-icon {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 1.2rem;
  font-weight: 800;
}

.shipment-status-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.shipment-status-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shipment-status-copy strong {
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.shipment-status.status-delivered {
  border-color: rgba(22, 163, 74, 0.25);
  background: rgba(240, 253, 244, 0.9);
}

.shipment-status.status-delivered .shipment-status-icon {
  background: #dcfce7;
  color: #15803d;
}

.shipment-status.status-in-transit,
.shipment-status.status-out-for-delivery {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(239, 246, 255, 0.9);
}

.shipment-status.status-in-transit .shipment-status-icon,
.shipment-status.status-out-for-delivery .shipment-status-icon {
  background: #dbeafe;
  color: var(--primary-dark);
}

.shipment-status.status-pending {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(255, 251, 235, 0.92);
}

.shipment-status.status-pending .shipment-status-icon {
  background: #fef3c7;
  color: #b45309;
}

.shipment-status.status-exception {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(254, 242, 242, 0.92);
}

.shipment-status.status-exception .shipment-status-icon {
  background: #fee2e2;
  color: #b91c1c;
}

.shipment-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.shipment-info-group {
  margin-top: 24px;
}

.shipment-key-group {
  margin-top: 0;
}

.shipment-group-heading {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shipment-info-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.72);
}

.shipment-info-featured {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(239, 246, 255, 0.72);
}

.shipment-info-wide {
  grid-column: 1 / -1;
}

.shipment-photo-wrap {
  display: grid;
  gap: 10px;
  max-width: 100%;
  margin-top: 12px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.72);
}

.shipment-map-wrap {
  display: grid;
  gap: 12px;
  max-width: 100%;
  margin-top: 12px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.9), rgba(248, 250, 252, 0.9));
}

.shipment-map-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shipment-map-current {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.shipment-map {
  width: 100%;
  min-height: 280px;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.8), rgba(255, 255, 255, 0.8));
}

.shipment-map-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 24px 16px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-weight: 600;
}

.shipment-map .leaflet-container {
  width: 100%;
  height: 100%;
  min-height: 280px;
  font: inherit;
}

.shipment-photo {
  width: min(100%, 360px);
  max-width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  border-radius: 10px;
}

.shipment-info-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.shipment-info-value {
  min-width: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card strong {
  color: var(--text);
}

.card h4 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.shipment-timeline-section,
.shipment-history-section {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.shipment-timeline-section .timeline {
  margin-top: 0;
}

.shipment-history-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.shipment-history-section p {
  margin: 0;
}

.invoice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.hidden { display: none !important; }

.timeline {
  position: relative;
  margin: 18px 0 20px;
  padding-left: 26px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(37,99,235,0.18), rgba(20,184,166,0.2));
}

.timeline-step {
  position: relative;
  margin-bottom: 16px;
  padding-left: 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.timeline-step:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -18px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #cbd5e1;
  box-shadow: 0 0 0 4px rgba(148,163,184,0.12);
}

.timeline-step.completed .timeline-marker {
  background: var(--success);
  border-color: var(--success);
  box-shadow: 0 0 0 4px rgba(22,163,74,0.12);
}

.timeline-step.current .timeline-marker {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  box-shadow: 0 0 0 5px rgba(37,99,235,0.12);
}

.timeline-step.current::after {
  content: "→";
  position: absolute;
  left: 28px;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}

.timeline-content {
  margin-left: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.timeline-step-title {
  font-size: 0.96rem;
  font-weight: 700;
}

.timeline-step-note,
.timeline-step-location,
.timeline-step-time {
  font-size: 0.82rem;
  color: var(--muted);
}

.timeline-step-location {
  margin-top: 4px;
  color: var(--text);
  font-weight: 600;
}

.timeline-step.completed .timeline-step-title { color: var(--success); }
.timeline-step.current .timeline-step-title { color: var(--primary); }
.timeline-step.upcoming .timeline-step-title,
.timeline-step.upcoming .timeline-step-note,
.timeline-step.upcoming .timeline-step-time { color: #94a3b8; }

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .page-shell {
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
    box-sizing: border-box;
    background-position: 72% 60%;
  }

  .topnav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    padding-top: 4px;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
  }

  .topnav a {
    font-size: 0.96rem;
    max-width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
    box-sizing: border-box;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    line-height: 1.15;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .hero-copy p {
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero .search-box {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .page-hero .hero-copy h1,
  .page-hero .hero-copy p,
  .result-panel,
  .card,
  .card p,
  .timeline,
  .timeline-step,
  .timeline-content,
  .invoice-actions,
  .footer-links,
  .topnav,
  .tracking-panel .search-box,
  .tracking-panel .input-row,
  .shipment-map-wrap,
  .shipment-map-current,
  .shipment-map-empty {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .shipment-map {
    min-height: 240px;
    height: 260px;
  }

  .service-grid,
  .contact-grid,
  .info-grid,
  .resources-grid,
  .testimonials-grid,
  .testimonials-grid-all,
  .testimonials-grid-single,
  .split-feature,
  .about-grid,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .page-hero .hero-copy h1 {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .tracking-panel,
  .result-panel,
  .card {
    width: 100%;
    max-width: 100%;
  }

  .input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .input-row input,
  .input-row button,
  #trackBtn,
  #trackingInput {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .input-row button,
  #trackBtn {
    min-width: 0;
  }

  .invoice-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
  }

  .invoice-actions button {
    width: 100%;
    max-width: 100%;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimonials-grid,
  .testimonials-grid-all,
  .testimonials-grid-single {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .faq-section {
    grid-template-columns: 1fr;
  }

  .faq-image-wrap,
  .faq-image {
    min-height: 240px;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .resource-image-wrap {
    height: 220px;
  }

  .resource-card,
  .testimonial-card,
  .contact-card {
    max-width: 100%;
    box-sizing: border-box;
  }

  .carrier-grid {
    justify-content: center;
  }

  .carrier-carousel {
    overflow: hidden;
  }

  .carrier-carousel-window {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .carrier-track {
    gap: 12px;
  }

  .carrier-slide {
    flex-basis: 50%;
    min-width: 50%;
  }

  .carrier-logo-wrap {
    width: min(180px, 100%);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand-block {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .site-footer p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .site-footer .footer-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .site-footer .footer-links a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .shipment-info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .shipment-info-wide {
    grid-column: auto;
  }

  .shipment-info-item {
    padding: 13px 14px;
  }

  .shipment-status {
    margin-bottom: 20px;
    padding: 14px;
  }

  .shipment-info-group {
    margin-top: 22px;
  }

  .shipment-timeline-section,
  .shipment-history-section {
    margin-top: 26px;
    padding-top: 18px;
  }

  body.home-page main.container,
  body.home-page main.container > section {
    width: 100%;
    min-width: 0;
  }

  body.home-page .carrier-section,
  body.home-page .carrier-carousel,
  body.home-page .carrier-carousel-window {
    min-width: 0;
    max-width: 100%;
  }
}

@media print {
  body * { visibility: hidden; }
  .invoice-print, .invoice-print * { visibility: visible; }
  .invoice-print {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
  }

  #invoiceControls,
  #trackingInput,
  #trackBtn,
  #message,
  .card,
  .timeline {
    display: none !important;
  }
}

.invoice-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.44);
  z-index: 1000;
}

.invoice-modal.hidden { display: none; }

.invoice-print {
  width: min(920px, calc(100vw - 32px));
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 36px rgba(15, 23, 42, 0.25);
  padding: 18px;
  color: var(--text);
  font-family: 'Inter', Arial, sans-serif;
}

.invoice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.invoice-logo {
  display: block;
  width: 210px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(20,184,166,0.12));
  text-align: center;
  line-height: 54px;
  font-weight: 800;
  color: var(--primary);
}

.company-left p,
.company-right p,
.contact-block p,
.tracking-line p {
  margin: 4px 0;
  color: var(--muted);
}

.company-right {
  text-align: right;
}

.cashier-badge {
  display: inline-grid;
  place-items: center;
  width: 120px;
  height: 54px;
  border-radius: 12px;
  background: rgba(15,23,42,0.04);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.invoice-contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.contact-block h4 {
  margin: 0 0 10px;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-block .big-text {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.barcode-block {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.invoice-barcode {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.invoice-barcode svg {
  width: min(100%, 270px);
  height: 60px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.invoice-table th,
.invoice-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.invoice-table th {
  background: #f8fbff;
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.invoice-table td {
  color: var(--muted);
}

.invoice-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-pill {
  min-width: 70px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f8fbff;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.72rem;
}

.stamp-block {
  text-align: right;
  color: var(--muted);
}

.stamp-mark {
  display: inline-grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(20,184,166,0.35);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .invoice-contacts {
    grid-template-columns: 1fr;
  }

  .barcode-block {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 14px;
  }
}
