/* Ocean Tekno Commercial Kitchen Web App Stylesheet */
:root {
  --primary-navy: #0B192C;
  --primary-deep: #1E3E62;
  --accent-orange: #FF6500;
  --accent-orange-hover: #E05300;
  --accent-green: #008170;
  --accent-green-bright: #10B981;
  --text-dark: #0F172A;
  --text-body: #1E293B;
  --text-muted: #475569;
  --text-on-dark: #F8FAFC;
  --text-on-dark-muted: #CBD5E1;
  --bg-light: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-light: #E2E8F0;
  --border-card: #CBD5E1;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-light);
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 74px; /* Space for mobile sticky bottom bar + safe area */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Accessibility: Clear focus outline for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

/* Mobile-First: Form input typography to avoid iOS auto-zoom */
@media (max-width: 640px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Ergonomic tap target utility */
.min-tap-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Navbar */
.nav-blur {
  background-color: rgba(11, 25, 44, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-link {
  color: var(--primary-navy);
  font-weight: 600;
  white-space: nowrap !important;
  flex-shrink: 0;
  font-size: 0.8125rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

@media (min-width: 1280px) {
  .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    gap: 0.4rem;
  }
}

.nav-link:hover {
  color: var(--primary-deep);
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: var(--primary-deep);
  background-color: var(--accent-orange);
}

/* Category Filter Pills */
.category-pill {
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
  background-color: #FFFFFF;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.category-pill:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.category-pill.active {
  background-color: var(--primary-navy);
  color: #FFFFFF;
  border-color: var(--primary-navy);
  box-shadow: 0 4px 6px -1px rgba(11, 25, 44, 0.2);
}

/* Product Card */
.product-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #CBD5E1;
}

.product-img-box {
  width: 100%;
  height: 220px;
  background-color: #F1F5F9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .product-img-box {
    height: 260px;
  }
}

.product-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-box img {
  transform: scale(1.05);
}

/* Badges */
.badge-hot {
  background: linear-gradient(135deg, #FF6500, #E05300);
  color: #ffffff;
}

.badge-green {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #ffffff;
}

.badge-partner {
  background: linear-gradient(135deg, #0284C7, #0369A1);
  color: #ffffff;
}

/* Feature Spec Pill */
.spec-pill {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 0.5rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
}

.spec-pill .spec-label {
  color: var(--text-muted);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-pill .spec-val {
  font-weight: 700;
  color: var(--primary-navy);
}

/* Mobile Sticky Bottom Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #FFFFFF;
  border-top: 1px solid #CBD5E1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  z-index: 40;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.mobile-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1E293B;
  text-decoration: none;
  height: 100%;
  min-height: 48px;
  transition: all 0.2s ease;
  padding: 6px 2px;
}

.mobile-bottom-btn:active,
.mobile-bottom-btn.active {
  color: var(--accent-orange);
  background-color: #FFF7ED;
}

.mobile-bottom-btn svg {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
  flex-shrink: 0;
}

/* Modal styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 25, 44, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 1.25rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* Animations */
@keyframes pulseSubtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.pulse-button {
  animation: pulseSubtle 3s infinite ease-in-out;
}

/* SnPC partner card styling */
.snpc-card {
  border-left: 4px solid #0284C7;
  background: linear-gradient(to right bottom, #ffffff, #f0f9ff);
}

.snpc-badge {
  background-color: #0284C7;
  color: white;
}

/* Range input styling for ROI Calculator */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #E2E8F0;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-orange);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 101, 0, 0.4);
  transition: transform 0.1s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Toast alert */
#toast-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  #toast-container {
    bottom: 24px;
    right: 24px;
  }
}

.toast {
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================================================
   DROPDOWN & MEGA MENU STYLES
   ========================================================================== */
.dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.dropdown-trigger svg.chevron {
  transition: transform 0.25s ease;
}

.dropdown-wrapper:hover .dropdown-trigger svg.chevron,
.dropdown-wrapper:focus-within .dropdown-trigger svg.chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 780px;
  max-width: 95vw;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Show on hover or when opened */
.dropdown-wrapper:hover .dropdown-menu,
.dropdown-wrapper:focus-within .dropdown-menu,
.dropdown-menu.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown product card */
.dropdown-product-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-product-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 101, 0, 0.4);
  transform: translateX(2px);
}

.dropdown-product-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #020617;
  border-radius: 0.5rem;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Normal Dropdown Menu (Replaces Mega Menu) */
.dropdown-menu.normal-dropdown {
  left: 0;
  transform: translateY(8px);
  width: 340px;
  max-width: 92vw;
  padding: 0.5rem;
  border-radius: 1rem;
}

.dropdown-wrapper:hover .dropdown-menu.normal-dropdown,
.dropdown-wrapper:focus-within .dropdown-menu.normal-dropdown,
.dropdown-menu.normal-dropdown.is-active {
  transform: translateY(0);
}

/* Simplified Mega Menu (Contained & Zero Overflow) */
.dropdown-wrapper.has-mega-menu {
  position: static;
  height: 100%;
  display: inline-flex;
  align-items: center;
}

.dropdown-menu.simplified-mega-menu {
  position: absolute;
  top: 100%;
  left: 0.5rem;
  right: 0.5rem;
  width: auto;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  transform: translateY(6px);
  padding: 0;
  border-radius: 1rem;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: #0B192C;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

/* Seamless hover bridge so mouse movement never drops hover */
.dropdown-menu.simplified-mega-menu::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: transparent;
  display: block;
  z-index: 10;
}

.dropdown-wrapper.has-mega-menu:hover .dropdown-menu.simplified-mega-menu,
.dropdown-wrapper.has-mega-menu:focus-within .dropdown-menu.simplified-mega-menu,
.dropdown-wrapper.has-mega-menu.is-open .dropdown-menu.simplified-mega-menu,
.dropdown-menu.simplified-mega-menu.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-wrapper.is-open .dropdown-trigger svg.chevron {
  transform: rotate(180deg);
}

.mega-product-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.mega-product-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 101, 0, 0.5);
  transform: translateX(2px);
}

.mega-thumb {
  width: 38px;
  height: 38px;
  min-width: 38px;
  object-fit: contain;
  background: #020617;
  border-radius: 0.375rem;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.mega-product-item:hover .mega-thumb {
  border-color: rgba(255, 101, 0, 0.6);
}

.mega-item-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  transition: color 0.15s ease;
}

.mega-item-meta {
  font-size: 0.6875rem;
  color: #94A3B8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  margin-top: 1px;
  white-space: nowrap;
}

.dropdown-item-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.15s ease;
  color: #E2E8F0;
}

.dropdown-item-compact:hover {
  background: rgba(255, 101, 0, 0.15);
  color: #FF6500;
  padding-left: 0.95rem;
}

.dropdown-item-compact .item-name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
}

.dropdown-item-compact .item-badge {
  font-size: 0.65rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  color: #94A3B8;
  white-space: nowrap;
}

.dropdown-item-compact:hover .item-badge {
  background: rgba(255, 101, 0, 0.25);
  color: #FF6500;
}

/* ==========================================================================
   HERO BANNER ENHANCEMENTS
   ========================================================================== */
.hero-gradient-overlay {
  background: radial-gradient(circle at 20% 30%, rgba(255, 101, 0, 0.18) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(2, 132, 199, 0.15) 0%, transparent 50%),
              linear-gradient(180deg, #0B192C 0%, #071221 100%);
}

.hero-stats-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 0.85rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-stats-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 101, 0, 0.5);
}

.hero-glow-border {
  position: relative;
}

.hero-glow-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 101, 0, 0.6), rgba(2, 132, 199, 0.3), rgba(255, 255, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Marquee for client credentials */
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 1rem;
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 1rem;
  align-items: center;
  min-width: 100%;
  animation: marqueeScroll 35s linear infinite;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

/* ==========================================================================
   ARTICLE & BLOG STYLING
   ========================================================================== */
.prose h2, .prose h3 {
  color: #0F172A;
  font-weight: 800;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  color: #334155;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.prose strong {
  color: #0F172A;
  font-weight: 700;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #64748B;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--accent-orange);
}

.breadcrumbs span.current {
  color: #0F172A;
  font-weight: 600;
}
