/* ==========================================================================
   BluePeak Logistics — Custom Brand Styles & Micro-Interactions
   ========================================================================== */

:root {
  --bp-navy-deep: #071630;
  --bp-navy-royal: #0E326D;
  --bp-gold: #D89B28;
  --bp-gold-bright: #F3C45B;
  --bp-gold-bronze: #9C6A14;
  --bp-asphalt: #0B111E;
  --bp-slate: #1E293B;
  --bp-highway-gray: #F4F6F9;
  --bp-chrome: #CBD5E1;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--bp-asphalt);
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Display Headings — Forward-motion Italic Montserrat matching Logo */
.font-display {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  letter-spacing: -0.02em;
}

.font-subheading {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* Metallic Gold Gradient Text */
.text-gold-metallic {
  background: linear-gradient(135deg, #F3C45B 0%, #D89B28 52%, #B57D1B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Metallic Gold CTA Button with Sheen Sweep */
.btn-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #D89B28 0%, #E5AE3C 50%, #C6891D 100%);
  color: #071630;
  font-weight: 800;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease,
              background 0.25s ease;
  box-shadow: 0 8px 24px -6px rgba(216, 155, 40, 0.48),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 75%;
  height: 100%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-22deg);
  transition: left 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #F3C45B 0%, #D89B28 55%, #9C6A14 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgba(216, 155, 40, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-gold:hover::before {
  left: 145%;
}

.btn-gold:active {
  transform: translateY(0);
}

/* Outlined Secondary Hero Button */
.btn-outline-gold {
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: #FFFFFF;
  background: rgba(7, 22, 48, 0.35);
  backdrop-filter: blur(8px);
  transition: all 0.22s ease;
}

.btn-outline-gold:hover {
  border-color: #F3C45B;
  color: #F3C45B;
  background: rgba(216, 155, 40, 0.12);
  transform: translateY(-2px);
}

/* Sticky Navbar Scroll State */
.navbar-scrolled {
  background-color: rgba(7, 22, 48, 0.96) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
  border-bottom-color: rgba(216, 155, 40, 0.28) !important;
}

/* Hero Background Layering */
.hero-section {
  background-color: #071630;
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  background-image:
    linear-gradient(
      98deg,
      rgba(7, 22, 48, 0.95) 0%,
      rgba(7, 22, 48, 0.86) 46%,
      rgba(14, 50, 109, 0.52) 76%,
      rgba(7, 22, 48, 0.78) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7, 22, 48, 0.65) 0%,
      rgba(7, 22, 48, 0.25) 45%,
      rgba(7, 22, 48, 0.96) 100%
    ),
    url('assets/hero-highway.jpg');
  background-size: cover;
  background-position: center center;
}

/* Equipment Card Hover Accent */
.equipment-card {
  position: relative;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

.equipment-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #9C6A14, #D89B28, #F3C45B);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 14px 14px 0 0;
}

.equipment-card:hover {
  transform: translateY(-5px);
  border-color: #D89B28;
  box-shadow: 0 20px 38px -14px rgba(7, 22, 48, 0.16);
}

.equipment-card:hover::after {
  opacity: 1;
}

/* Service Bento Card on Deep Navy */
.service-card {
  background: linear-gradient(155deg, rgba(14, 50, 109, 0.42) 0%, rgba(7, 22, 48, 0.92) 100%);
  border: 1px solid rgba(203, 213, 225, 0.14);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 155, 40, 0.65);
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.45);
}

/* FAQ Smooth Accordion */
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[data-open="true"] .faq-content {
  grid-template-rows: 1fr;
}

.faq-inner {
  overflow: hidden;
}

.faq-chevron {
  transition: transform 0.28s ease;
}

.faq-item[data-open="true"] .faq-chevron {
  transform: rotate(180deg);
}

/* Form Input Focus Polish */
.bp-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bp-input:focus {
  outline: none;
  border-color: #D89B28;
  box-shadow: 0 0 0 3px rgba(216, 155, 40, 0.22);
}

.bp-input.input-error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

/* Modal Animation */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  transform: scale(0.95) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop.is-visible .modal-panel {
  transform: scale(1) translateY(0);
}

/* Subtle Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn-gold::before {
    display: none;
  }
}

/* ==========================================================================
   Elementor-Style Visual Editor & Admin Studio
   ========================================================================== */
body.bp-editor-active {
  padding-top: 56px;
}

body.bp-editor-active #navbar {
  top: 56px;
}

body.bp-editor-active [data-cms-id] {
  cursor: pointer;
  transition: outline-color 0.15s ease, background-color 0.15s ease;
}

body.bp-editor-active [data-cms-id]:hover {
  outline: 2px dashed #F3C45B !important;
  outline-offset: 3px;
}

body.bp-editor-active [data-cms-id].bp-cms-selected {
  outline: 2px solid #D89B28 !important;
  outline-offset: 3px;
}

body.bp-editor-active [data-cms-id][contenteditable="true"] {
  outline: 2px solid #10B981 !important;
  outline-offset: 4px;
  cursor: text;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

body.bp-editor-active [data-cms-img] {
  cursor: pointer;
  outline: 2px dashed rgba(243, 196, 91, 0.75);
  outline-offset: 4px;
  border-radius: 8px;
}

body.bp-editor-active [data-cms-img]:hover {
  outline-color: #10B981;
  filter: brightness(1.08);
}

/* Custom Scrollbar for Admin Panel */
.bp-admin-scroll::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
.bp-admin-scroll::-webkit-scrollbar-track {
  background: rgba(7, 22, 48, 0.4);
}
.bp-admin-scroll::-webkit-scrollbar-thumb {
  background: rgba(216, 155, 40, 0.45);
  border-radius: 999px;
}
.bp-admin-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(243, 196, 91, 0.8);
}

