/* Imran Ali & Partners – Dark Blue + White theme */
:root {
  --navy-950: #0B1426;
  --navy-900: #0F1C2E;
  --navy-800: #1A2B45;
  --navy-700: #243B5C;
  --navy-600: #2E4A6E;
  --navy-100: #E8EEF5;
  --navy-50: #F4F7FB;
  --white: #FFFFFF;
  --accent: #3B82F6;
  --accent-light: #60A5FA;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--navy-900);
  background: var(--navy-50);
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.font-display { font-family: 'Playfair Display', Georgia, serif; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(11,20,38,0.06);
}
.logo-img {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
@media (min-width: 768px) {
  .logo-img { height: 52px; max-width: 240px; }
}

/* Buttons */
.btn-primary {
  background: var(--navy-900);
  color: #fff !important;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.7rem 1.35rem;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
}
.btn-primary:hover {
  background: var(--navy-700);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(15,28,46,0.4);
}
.btn-accent {
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.7rem 1.35rem;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
}
.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* Hero slider – critical: always show content */
.hero-slider {
  position: relative;
  min-height: 70vh;
  min-height: 70dvh;
  overflow: hidden;
  background: var(--navy-950);
  display: flex;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-slider { min-height: 85vh; min-height: 85dvh; }
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: cover;
  background-position: center;
  background-color: var(--navy-900);
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(11,20,38,0.94) 0%, rgba(15,28,46,0.88) 45%, rgba(26,43,69,0.78) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 3rem;
  padding-bottom: 4rem;
}
.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.5rem;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.hero-dot.active {
  background: var(--accent);
  width: 24px;
}

.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -12px rgba(11,20,38,0.18);
}
.product-img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  background: #e2e8f0;
}

.filter-chip {
  transition: all 0.2s ease;
  cursor: pointer;
}
.filter-chip.active {
  background: var(--navy-900) !important;
  color: #fff !important;
  border-color: var(--navy-900) !important;
}

.branch-active {
  background: var(--navy-800) !important;
  color: #fff !important;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.floating-wa {
  animation: pulseGlow 2.8s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* Utility top bar */
.top-bar {
  background: var(--navy-950);
  color: #fff;
  font-size: 0.75rem;
}
@media (min-width: 640px) {
  .top-bar { font-size: 0.8125rem; }
}

/* Mobile nav */
#mobile-nav {
  max-height: 80vh;
  overflow-y: auto;
}

/* Safe areas for notched phones */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .floating-wa-wrap {
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    right: max(1.5rem, env(safe-area-inset-right));
  }
}

/* Touch targets */
button, a.btn-primary, a.btn-accent {
  min-height: 44px;
}
@media (hover: none) {
  .card-hover:hover { transform: none; }
}

/* Admin helpers kept for other pages */
.admin-sidebar { background: var(--navy-950); min-height: 100vh; }
.admin-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
}
.admin-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

/* Larger logo */
.logo-img-lg {
  height: 56px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}
@media (min-width: 640px) {
  .logo-img-lg {
    height: 64px;
    max-width: 300px;
  }
}
@media (min-width: 1024px) {
  .logo-img-lg {
    height: 72px;
    max-width: 340px;
  }
}
.logo-img {
  height: 52px;
  max-width: 240px;
}
@media (min-width: 768px) {
  .logo-img { height: 64px; max-width: 300px; }
}
@media (min-width: 1024px) {
  .logo-img { height: 72px; max-width: 340px; }
}

/* Unique small slide indicators – leaf/diamond style */
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem;
  background: rgba(11, 20, 38, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transform: rotate(45deg);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-dot:hover {
  background: rgba(255,255,255,0.65);
}
.hero-dot.active {
  background: #fff;
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
  transform: rotate(45deg) scale(1.15);
}

/* Hero side arrows – Suhol-style */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(11, 20, 38, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  padding: 0;
}
.hero-nav-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
}
.hero-nav-btn:active { transform: translateY(-50%) scale(0.95); }
.hero-nav-prev { left: 12px; }
.hero-nav-next { right: 12px; }
@media (min-width: 768px) {
  .hero-nav-btn { width: 52px; height: 52px; }
  .hero-nav-prev { left: 24px; }
  .hero-nav-next { right: 24px; }
}
.hero-nav-btn svg { width: 22px; height: 22px; }

/* Hide old diamond dots when arrows are primary */
.hero-dots { display: none !important; }

/* Smooth page enter animation */
@keyframes pageIn {
  from { opacity: 0.96; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
  to { opacity: 1; transform: translateY(0); }
}
.page-enter {
  animation: pageIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
body.is-leaving {
  opacity: 0.4;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

/* Centered filter bar for catalog */
.filters-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.filters-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.filters-label {
  width: 100%;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.15rem;
}

/* Fixed header height – never jumps between pages */
.site-header .header-inner,
header.site-header > div > div:first-child {
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
}
@media (max-width: 639px) {
  .site-header .header-inner,
  header.site-header > div > div:first-child {
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
  }
}

/* Prevent white flash on navigation */
html, body {
  background-color: #F4F7FB !important;
}
/* Navigation: no flash – instant handoff, soft enter only */
body.is-leaving {
  /* do not fade to transparent (causes white flash) */
  pointer-events: none;
}

  to { opacity: 1; transform: translateY(0); }
}
.page-enter {
  animation: pageIn 0.28s ease-out forwards;
}

/* Catalog – normal image size (not massive) */
.product-img {
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  width: 100%;
  height: auto;
  max-height: 180px;
}
@media (min-width: 640px) {
  .product-img { max-height: 200px; }
}
.catalog-card {
  max-width: 100%;
}
.catalog-card .img-wrap {
  height: 160px;
  overflow: hidden;
  background: #e8eef5;
}
@media (min-width: 640px) {
  .catalog-card .img-wrap { height: 180px; }
}
.catalog-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image performance */
img {
  content-visibility: auto;
}
img[loading="lazy"] {
  background: linear-gradient(110deg, #e8eef5 25%, #f4f7fb 50%, #e8eef5 75%);
  background-size: 200% 100%;
}
.img-wrap img,
.product-img,
.hero-slide {
  will-change: opacity;
}
.hero-slide {
  background-color: #0B1426;
}


/* Proudly distributing to — logo strip */
.clients-section {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}
.clients-marquee {
  display: flex;
  width: max-content;
  animation: clientsScroll 28s linear infinite;
  gap: 1rem;
}
.clients-marquee:hover {
  animation-play-state: paused;
}
@keyframes clientsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-card {
  flex: 0 0 auto;
  width: 176px;
  height: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid #e8eef5;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 28, 46, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.client-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 28, 46, 0.08);
  transform: translateY(-2px);
}
.client-logo-wrap {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
}
.client-card img {
  max-height: 68px;
  max-width: 148px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.client-card .client-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  text-align: center;
  line-height: 1.2;
}
@media (min-width: 640px) {
  .client-card { width: 190px; height: 136px; }
  .client-logo-wrap { height: 78px; }
  .client-card img { max-height: 74px; max-width: 158px; }
}


/* KFC circular logo — no white plate behind */
.client-card img[alt="KFC"] {
  background-color: transparent !important;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  max-height: 76px !important;
  max-width: 76px !important;
  width: 76px !important;
  height: 76px !important;
  object-fit: contain;
}
