/* ════════════════════════════════════════════════════
   Panel Tech Systems — Custom Styles
   Complements Tailwind CSS utility classes
   ════════════════════════════════════════════════════ */

/* Prevent horizontal scroll on mobile */
html, body { max-width: 100%; overflow-x: hidden; }

/* Smooth scrollbar */
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #78ca5b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #5aad3f; }

/* Selection highlight */
::selection { background: rgba(120, 202, 91, 0.25); color: inherit; }

/* ─── Typography ─────────────────────────────────── */
h1, h2, h3 { font-family: 'Montserrat', sans-serif; }

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Header transition ──────────────────────────── */
#header {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.3s ease,
              box-shadow 0.3s ease;
}
#header.-translate-y-full { transform: translateY(-100%); }

/* ─── Hero ───────────────────────────────────────── */
section#home { min-height: 100dvh; }

/* ─── Animations ─────────────────────────────────── */
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp   { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(120, 202, 91, 0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(120, 202, 91, 0); }
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Ticker / Marquee ───────────────────────────── */
.animate-ticker { animation: ticker 30s linear infinite; }
.animate-ticker:hover { animation-play-state: paused; }

/* ─── Card hover effects ─────────────────────────── */
.card-hover {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

/* ─── Gradient text ──────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #78ca5b 0%, #b5e2a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Green glow button ──────────────────────────── */
.btn-glow:hover {
  box-shadow: 0 0 30px rgba(120, 202, 91, 0.4),
              0 8px 20px rgba(120, 202, 91, 0.2);
}

/* ─── Dark mode enhancements ─────────────────────── */
.dark body { background-color: #030712; }
.dark #header { border-bottom: 1px solid rgba(255,255,255,0.05); }

/* ─── Form focus ─────────────────────────────────── */
input:focus, textarea:focus, select:focus {
  outline: none;
  ring-color: #78ca5b;
  border-color: #78ca5b !important;
  box-shadow: 0 0 0 3px rgba(120, 202, 91, 0.15);
}

/* ─── Product grid responsive ────────────────────── */
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Section spacing ────────────────────────────── */
.section-pad { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); }

/* ─── Industrial pattern overlay ────────────────── */
.tech-overlay {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cdefs%3E%3Cpattern id='grid' width='10' height='10' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 10 0 L 0 0 0 10' fill='none' stroke='%2378ca5b' stroke-width='0.3'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23grid)'/%3E%3C/svg%3E");
  background-size: 30px 30px;
}

/* ─── Loading spinner ────────────────────────────── */
.spinner {
  border: 2px solid rgba(120, 202, 91, 0.2);
  border-top-color: #78ca5b;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ─── AOS overrides — animate both in and out ────── */
[data-aos] { will-change: transform, opacity; }

/* ─── Responsive video background ───────────────── */
.hero-video-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

/* ─── Prose (rich content from CMS/WP) ────────────── */
.pt-prose h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; font-family: 'Montserrat', sans-serif; }
.pt-prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.75rem; font-family: 'Montserrat', sans-serif; }
.pt-prose h4 { font-size: 1.1rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.pt-prose p { margin-bottom: 1rem; line-height: 1.75; }
.pt-prose ul { list-style: disc; margin-left: 1.5rem; margin-bottom: 1rem; }
.pt-prose ol { list-style: decimal; margin-left: 1.5rem; margin-bottom: 1rem; }
.pt-prose li { margin-bottom: 0.25rem; line-height: 1.75; }
.pt-prose img { border-radius: 1rem; margin: 1.5rem 0; max-width: 100%; height: auto; }
.pt-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.pt-prose td, .pt-prose th { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(0,0,0,0.1); text-align: left; }
.pt-prose a { color: #78ca5b; text-decoration: underline; }
.pt-prose a:hover { color: #5aad3f; }
.pt-prose blockquote { border-left: 4px solid #78ca5b; padding-left: 1rem; margin: 1.5rem 0; font-style: italic; color: #666; }
.dark .pt-prose td, .dark .pt-prose th { border-color: rgba(255,255,255,0.1); }
.dark .pt-prose blockquote { color: #aaa; }

/* ─── Print styles ───────────────────────────────── */
@media print {
  header, footer, #contact, .whatsapp-fab, .back-to-top { display: none !important; }
  body { background: white !important; color: black !important; }
}
