/* URNO Logistics — custom polish beyond Tailwind CDN */

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(13, 148, 136, 0.08), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(232, 163, 23, 0.07), transparent 50%),
    #fff;
}

.hero-surface {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #0B1F3A;
}

.hero-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.03);
  animation: hero-drift 22s ease-in-out infinite alternate;
}

.hero-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11, 31, 58, 0.92) 0%, rgba(11, 31, 58, 0.72) 42%, rgba(11, 31, 58, 0.35) 100%),
    linear-gradient(to top, rgba(11, 31, 58, 0.75), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

@keyframes hero-drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

.track-bar {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.96);
}

.section-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 31, 58, 0.18), transparent);
}

.service-panel {
  position: relative;
  overflow: hidden;
}

.service-panel img {
  transition: transform 0.7s ease;
}

.service-panel:hover img {
  transform: scale(1.05);
}

.timeline-rail {
  position: absolute;
  left: 1.15rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-wine), rgba(11, 31, 58, 0.15));
}

.timeline-dot {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 9999px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--brand-wine);
  background: var(--brand-wine);
}

.timeline-dot.is-pending {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(11, 31, 58, 0.25);
}

.quote-result {
  animation: fade-up 0.45s ease both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-surface::before,
  .reveal,
  .quote-result {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Built-in live chat — forced viewport floater */
.grl-chat,
#grl-live-chat {
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;
  left: auto !important;
  top: auto !important;
  z-index: 2147483000 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
  filter: none !important;
  font-family: "DM Sans", system-ui, sans-serif;
  pointer-events: none;
}

.grl-chat > *,
#grl-live-chat > * {
  pointer-events: auto;
}

.grl-chat__fab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 9999px;
  padding: 0.85rem 1.15rem;
  background: var(--brand-wine, #0D9488);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(11, 31, 58, 0.28);
  cursor: pointer;
}

.grl-chat__fab:hover {
  filter: brightness(1.08);
}

.grl-chat__panel {
  position: absolute !important;
  right: 0 !important;
  bottom: 4.25rem !important;
  left: auto !important;
  top: auto !important;
  width: min(360px, calc(100vw - 2rem));
  height: min(520px, calc(100vh - 6.5rem));
  max-height: calc(100vh - 6.5rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(11, 31, 58, 0.28);
  border: 1px solid rgba(11, 31, 58, 0.08);
  transform: none !important;
}

.grl-chat__panel[hidden] {
  display: none !important;
}

.grl-chat__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: var(--brand-navy, #0B1F3A);
  color: #fff;
}

.grl-chat__sub {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 0.15rem;
}

.grl-chat__close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.grl-chat__body {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  background: #f3f5f8;
}

.grl-chat__intro {
  margin: 0;
  font-size: 0.875rem;
  color: #5a6577;
  line-height: 1.45;
}

.grl-chat__bubble {
  max-width: 88%;
  margin-bottom: 0.65rem;
  clear: both;
}

.grl-chat__bubble-text {
  padding: 0.65rem 0.8rem;
  border-radius: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.grl-chat__bubble-time {
  font-size: 0.65rem;
  color: #5a6577;
  margin-top: 0.2rem;
}

.grl-chat__bubble--visitor {
  float: right;
  text-align: right;
}

.grl-chat__bubble--visitor .grl-chat__bubble-text {
  background: var(--brand-wine, #0D9488);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
}

.grl-chat__bubble--admin .grl-chat__bubble-text,
.grl-chat__bubble--system .grl-chat__bubble-text {
  background: #fff;
  color: #0b1f3a;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-bottom-left-radius: 0.25rem;
}

.grl-chat__bubble--system .grl-chat__bubble-text {
  font-style: italic;
  color: #5a6577;
}

.grl-chat__foot {
  border-top: 1px solid rgba(11, 31, 58, 0.08);
  padding: 0.75rem;
  background: #fff;
}

.grl-chat__form,
.grl-chat__composer {
  display: grid;
  gap: 0.45rem;
}

.grl-chat__form input,
.grl-chat__form textarea,
.grl-chat__composer input {
  width: 100%;
  border: 1px solid rgba(11, 31, 58, 0.12);
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.875rem;
  outline: none;
}

.grl-chat__form input:focus,
.grl-chat__form textarea:focus,
.grl-chat__composer input:focus {
  border-color: var(--brand-wine, #0D9488);
}

.grl-chat__form button,
.grl-chat__composer button[type="submit"] {
  border: 0;
  border-radius: 0.65rem;
  padding: 0.65rem 0.8rem;
  background: var(--brand-navy, #0B1F3A);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

.grl-chat__composer {
  grid-template-columns: 1fr auto;
}

.grl-chat__error {
  color: #0D9488;
  font-size: 0.8rem;
}

.grl-chat__reset {
  margin-top: 0.45rem;
  border: 0;
  background: transparent;
  color: #5a6577;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
}
