/* Logispot landing — global styles */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #0B0D10;
  color: #E9ECEF;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: #4C9A63; text-decoration: none; }
a:hover { color: #3F8353; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #5FBE7C !important;
}

button { font-family: inherit; }

/* Animations */
@keyframes lpfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes lppulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Card & button hover */
.lp-card {
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, border-color .25s ease;
}
.lp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(16,24,32,0.12);
  border-color: #3F8353 !important;
}
.lp-btn-primary {
  transition: background-color .2s ease, color .2s ease;
}
.lp-btn-primary:hover {
  background-color: #3F8353 !important;
  color: #fff !important;
}
.lp-btn-secondary {
  transition: background-color .2s ease, border-color .2s ease;
}
.lp-btn-secondary:hover {
  background-color: rgba(255,255,255,0.14) !important;
  border-color: rgba(255,255,255,0.32) !important;
}

/* Nav / footer links */
a.lp-nav-link {
  transition: color .2s ease;
}
a.lp-nav-link:hover {
  color: #5FBE7C !important;
}

/* FAQ chevron */
.lp-faq-chev {
  transition: background-color .2s ease, color .2s ease, transform .3s ease;
}
.lp-faq-btn:hover .lp-faq-chev {
  background-color: #DFF3E4 !important;
  color: #2F6B41 !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 700px) {
  .lp-nav-links { display: none !important; }
}


/* Four-item grids: only ever 4 or 2 across, never an orphan 3+1 */
.lp-quad {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
@media (max-width: 1000px) {
  .lp-quad {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 520px) {
  .lp-quad {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Gallery arrows: outside the frame on wide screens, tucked in on narrow ones */
.lp-shot-nav {
  position: absolute;
  top: 50%;
  margin-top: -34px;
  transform: translateY(-50%);
  transition: background-color .2s ease, box-shadow .2s ease;
  z-index: 2;
}
.lp-shot-nav:hover {
  background: #2E6B41 !important;
  box-shadow: 0 8px 22px rgba(16,24,32,0.26) !important;
}
.lp-shot-nav-prev { left: -72px; }
.lp-shot-nav-next { right: -72px; }
@media (max-width: 1330px) {
  .lp-shot-nav-prev { left: 12px; }
  .lp-shot-nav-next { right: 12px; }
}

.lp-shot-frame {
  transition: border-color .25s ease, box-shadow .25s ease;
}
.lp-shot-frame:hover {
  border-color: #3F8353 !important;
  box-shadow: 0 10px 30px rgba(47,107,65,0.14) !important;
}

/* Feature grids: always 3 across, then 2, then 1 — never an orphan */
.lp-tri { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 980px) { .lp-tri { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 620px) { .lp-tri { grid-template-columns: minmax(0, 1fr) !important; } }

/* Three lead cards: 3 across or stacked — never 2+1 */
@media (max-width: 980px) {
  .lp-tri-lead { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ROI calculator */
.lp-calc-in { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.lp-calc-out { grid-auto-flow: column !important; grid-auto-columns: minmax(0, 1fr) !important; }
@media (max-width: 860px) {
  .lp-calc-in { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
  .lp-calc-in { grid-template-columns: minmax(0, 1fr) !important; }
  .lp-calc-out { grid-auto-flow: row !important; }
}
