/* =========================================================
   Baba Jaganath Car Transport — custom styles
   Design tokens are declared in the Tailwind config (index.html)
   This file holds bespoke shapes, patterns and motion that
   utility classes alone can't express cleanly.
   ========================================================= */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-feature-settings: "ss01";
}

::selection {
  background: #E8A93D;
  color: #0E0D0C;
}

/* focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #E8A93D;
  outline-offset: 2px;
  border-radius: 2px;
}

/* subtle asphalt/grid backdrop used behind dark sections */
.hero-grid {
  background-image:
    linear-gradient(rgba(246,241,231,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,241,231,0.6) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

/* nav links */
.nav-link {
  position: relative;
  padding-bottom: 4px;
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: #E8A93D;
  transition: width .25s ease;
}
.nav-link:hover { color: #F6F1E7; }
.nav-link:hover::after { width: 100%; }

.mobile-link {
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid rgba(246,241,231,0.08);
}
.mobile-link:last-of-type { border-bottom: none; }

/* header shrink state (toggled via JS) */
#site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0,0,0,0.6); }

/* hero diagonal accent panel behind image */
.diagonal-clip {
  clip-path: polygon(6% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* waybill mini strip (hero) */
.waybill-mini {
  border-top: 1px dashed rgba(246,241,231,0.25);
  border-bottom: 1px dashed rgba(246,241,231,0.25);
}
.text-signal-light { color: #6fd39c; }

/* trust strip items */
.trust-item { display: flex; flex-direction: column; }

/* service cards */
.service-card {
  background: rgba(246,241,231,0.03);
  border: 1px solid rgba(246,241,231,0.08);
  border-radius: 2px;
  padding: 2rem 1.75rem;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,169,61,0.5);
  background: rgba(246,241,231,0.05);
}
.service-icon {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(195,30,46,0.15);
  color: #C31E2E;
  border: 1px solid rgba(195,30,46,0.35);
  border-radius: 2px;
}

/* how it works */
.step-line {
  height: 1px;
  background-image: linear-gradient(90deg, #C31E2E 0 10px, transparent 10px 20px);
  background-size: 20px 1px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 9999px;
  background: #0E0D0C;
  color: #E8A93D;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid #E8A93D;
  position: relative;
  z-index: 10;
}

/* ===== waybill ticket (coverage signature element) ===== */
.waybill {
  position: relative;
  background: linear-gradient(180deg, rgba(246,241,231,0.05), rgba(246,241,231,0.02));
  border: 1px solid rgba(246,241,231,0.12);
  border-radius: 4px;
  padding: 2.25rem 1.5rem;
}
@media (min-width: 640px) {
  .waybill { padding: 2.75rem 3rem; }
}
.waybill::before,
.waybill::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 0;
  border-top: 2px dashed rgba(246,241,231,0.2);
}
.waybill::before { top: 0; }
.waybill::after { bottom: 0; }

.waybill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.waybill-divider {
  margin-top: 1.75rem;
  border-top: 1px dashed rgba(246,241,231,0.18);
}
.region { min-width: 0; }

.route-track {
  position: relative;
  flex: 1 1 160px;
  min-width: 140px;
  height: 24px;
  display: flex;
  align-items: center;
}
.route-line {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 0;
  border-top: 2px dashed rgba(232,169,61,0.45);
  transform: translateY(-50%);
}
.route-truck {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  animation: drive 5s linear infinite;
}
@keyframes drive {
  0%   { left: 0%; }
  50%  { left: calc(100% - 48px); }
  100% { left: 0%; }
}
@media (prefers-reduced-motion: reduce) {
  .route-truck { animation: none; left: 45%; }
}

/* why-us list */
.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

/* contact rows */
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.contact-icon {
  width: 2.25rem; height: 2.25rem;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,169,61,0.12);
  color: #E8A93D;
  border-radius: 2px;
}

/* form */
.form-label {
  display: block;
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(246,241,231,0.55);
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  background: rgba(246,241,231,0.04);
  border: 1px solid rgba(246,241,231,0.18);
  color: #F6F1E7;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  border-radius: 2px;
  transition: border-color .2s ease, background .2s ease;
}
.form-input::placeholder { color: rgba(246,241,231,0.32); }
.form-input:focus {
  border-color: #E8A93D;
  background: rgba(246,241,231,0.06);
  outline: none;
}
.form-input.invalid { border-color: #C31E2E; }

/* faq */
.faq-item { padding: 1.25rem 0; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
  color: #0E0D0C;
}
.faq-caret { color: #C31E2E; transition: transform .25s ease; flex-shrink: 0; }
.faq-item.open .faq-caret { transform: rotate(180deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq-a > p {
  overflow: hidden;
  color: #4B5157;
  font-size: 0.925rem;
  line-height: 1.6;
  padding-top: 0;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > p { padding-top: 0.85rem; }
.faq-a { overflow: hidden; }
.faq-a > p { min-height: 0; }

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: .08s; }
.reveal-delay-2.in-view { transition-delay: .16s; }
.reveal-delay-3.in-view { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* slow pulse for the top-bar dot */
@keyframes pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.animate-pulse-slow { animation: pulse-slow 2.4s ease-in-out infinite; }

/* floating contact actions (WhatsApp + Call, right side) */
.fc-btn {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F6F1E7;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,0.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fc-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 30px -8px rgba(0,0,0,0.5);
}
.fc-whatsapp { background: #25D366; }
.fc-whatsapp:hover { background: #1ebe5b; }
.fc-call { background: #C31E2E; }
.fc-call:hover { background: #a61927; }
.fc-tip {
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: #0E0D0C;
  color: #F6F1E7;
  border: 1px solid rgba(246,241,231,0.14);
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .fc-btn:hover .fc-tip { opacity: 1; }
}

/* back to top button visible state (toggled via JS) */
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
