/**
 * HalOk Phase 1 — Design tokens & homepage components
 * Append / merge into Elementor Site Settings → Custom CSS
 * or child theme style.css alongside existing rules.
 */

:root {
  --halok-green: #1a3026;
  --halok-green-soft: #243d32;
  --halok-green-mid: #2f4a3c;
  --halok-botanical: #e8efe9;
  --halok-gold: #c5a04d;
  --halok-gold-hover: #b8923f;
  --halok-cream: #f5f2eb;
  --halok-beige: #ebe4d8;
  --halok-charcoal: #141414;
  --halok-text: #1a1a1a;
  --halok-muted: #6b7280;
  --halok-white: #ffffff;
  --halok-radius: 10px;
  --halok-max: 1280px;
  --halok-pad: clamp(64px, 9vw, 128px);
  --halok-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --halok-font-body: Inter, "DM Sans", system-ui, sans-serif;
}

/* Buttons — gold on the link only, never the Elementor widget wrapper */
.halok-btn.elementor-widget,
.halok-btn.elementor-widget:hover {
  background: transparent !important;
  padding: 0 !important;
  transform: none;
}

.halok-btn .elementor-button,
a.halok-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  background: var(--halok-gold) !important;
  color: var(--halok-charcoal) !important;
  border: 0 !important;
  border-radius: 2px !important;
  font-family: var(--halok-font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 14px 26px !important;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.halok-btn .elementor-button:hover,
a.halok-btn:hover {
  background: var(--halok-gold-hover) !important;
  transform: translateY(-1px);
}

.halok-btn-outline,
a.halok-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent !important;
  color: var(--halok-white) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 2px !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 13px 24px !important;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.halok-btn-outline:hover {
  border-color: var(--halok-gold) !important;
  color: var(--halok-gold) !important;
}

.halok-btn-outline.is-dark {
  color: var(--halok-green) !important;
  border-color: rgba(26, 48, 38, 0.35) !important;
}

.halok-btn-outline.is-dark:hover {
  border-color: var(--halok-green) !important;
  color: var(--halok-green) !important;
}

/* Header position is locked in halok-header.css (fixed 72px). */

/* Section helpers */
.halok-section {
  padding: var(--halok-pad) 0;
}

.halok-section--cream {
  background: var(--halok-cream);
}

.halok-section--botanical {
  background: var(--halok-botanical);
}

.halok-section--green {
  background: var(--halok-green);
  color: var(--halok-white);
}

.halok-content-width {
  width: min(var(--halok-max), calc(100% - 48px));
  margin-inline: auto;
}

.halok-label,
.halok-eyebrow {
  margin: 0 0 14px;
  color: var(--halok-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.halok-display {
  margin: 0 0 18px;
  font-family: var(--halok-font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.2vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--halok-green);
}

.halok-section--green .halok-display {
  color: var(--halok-white);
}

.halok-lede {
  margin: 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--halok-muted);
}

.halok-section--green .halok-lede {
  color: rgba(255, 255, 255, 0.82);
}

/* Image placeholders */
.halok-ph {
  position: relative;
  display: grid;
  place-items: end start;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--halok-radius);
  background-color: var(--halok-beige);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.halok-ph::after {
  content: attr(data-label);
  margin: 16px;
  padding: 8px 12px;
  background: rgba(26, 48, 38, 0.88);
  color: var(--halok-cream);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}

.halok-ph--tall {
  min-height: 420px;
}

.halok-ph--hero {
  min-height: min(72vh, 640px);
}

/* Category image cards */
.halok-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.halok-cat-card {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--halok-radius);
  text-decoration: none;
  color: var(--halok-white);
}

.halok-cat-card .halok-ph {
  position: absolute;
  inset: 0;
  min-height: 100%;
  border-radius: 0;
  transition: transform 0.5s ease;
}

.halok-cat-card:hover .halok-ph {
  transform: scale(1.05);
}

.halok-cat-card__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 24px;
  background: linear-gradient(transparent, rgba(20, 20, 20, 0.78));
}

.halok-cat-card__content h3 {
  margin: 0 0 6px;
  font-family: var(--halok-font-display);
  font-size: 1.45rem;
  font-weight: 500;
}

.halok-cat-card__content p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.9;
}

.halok-cat-card__content span {
  display: inline-block;
  margin-top: 12px;
  color: var(--halok-gold);
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.halok-cat-card:hover .halok-cat-card__content span {
  transform: translateX(4px);
}

/* Featured product cards */
.halok-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.halok-feat-card {
  background: var(--halok-white);
  border: 1px solid rgba(26, 48, 38, 0.1);
  border-radius: var(--halok-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.halok-feat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26, 48, 38, 0.1);
}

.halok-feat-card .halok-ph {
  min-height: 220px;
  border-radius: 0;
}

.halok-feat-card__body {
  padding: 20px 22px 24px;
}

.halok-feat-card__meta {
  color: var(--halok-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.halok-feat-card__body h3 {
  margin: 8px 0 6px;
  font-family: var(--halok-font-display);
  font-size: 1.25rem;
  color: var(--halok-green);
}

.halok-feat-card__body p {
  margin: 0;
  color: var(--halok-muted);
  font-size: 0.9rem;
}

/* Journey timeline */
.halok-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 48px;
  counter-reset: step;
}

.halok-timeline article {
  position: relative;
  padding: 20px 16px;
  background: var(--halok-white);
  border-top: 3px solid var(--halok-gold);
  border-radius: 0 0 var(--halok-radius) var(--halok-radius);
}

.halok-timeline article::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  color: var(--halok-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.halok-timeline h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--halok-green);
}

.halok-timeline p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--halok-muted);
}

/* Halal chain */
.halok-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 36px;
}

.halok-chain span {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--halok-white);
  font-size: 0.82rem;
  font-weight: 600;
}

.halok-chain i {
  color: var(--halok-gold);
  font-style: normal;
}

/* Stylized map */
.halok-map {
  position: relative;
  min-height: 360px;
  border-radius: var(--halok-radius);
  background:
    radial-gradient(circle at 72% 38%, rgba(197, 160, 77, 0.25), transparent 22%),
    radial-gradient(circle at 28% 58%, rgba(47, 74, 60, 0.35), transparent 28%),
    linear-gradient(160deg, #243d32, #1a3026 55%, #14241d);
  overflow: hidden;
}

.halok-map__route {
  position: absolute;
  inset: 28% 18% auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--halok-gold), transparent);
  opacity: 0.7;
}

.halok-map__pin {
  position: absolute;
  min-width: 140px;
  padding: 12px 14px;
  background: rgba(245, 242, 235, 0.95);
  border-left: 3px solid var(--halok-gold);
  color: var(--halok-green);
  font-size: 0.82rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.halok-map__pin strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.halok-map__pin--sg { top: 52%; left: 22%; }
.halok-map__pin--swk { top: 58%; left: 12%; }
.halok-map__pin--rtm { top: 28%; left: 58%; }
.halok-map__pin--eu { top: 22%; left: 72%; }

/* Why reasons */
.halok-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
  margin-top: 48px;
}

.halok-why-grid article h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--halok-green);
}

.halok-why-grid article p {
  margin: 0;
  color: var(--halok-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.halok-why-grid article::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--halok-gold);
}

/* Resources */
.halok-resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.halok-resource-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(197, 160, 77, 0.45);
  border-top: 3px solid var(--halok-gold);
}

.halok-resource-card h3 {
  margin: 0 0 10px;
  font-family: var(--halok-font-display);
  font-size: 1.6rem;
  color: var(--halok-white);
}

.halok-resource-card p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.halok-resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Partner CTA */
.halok-partner-cta {
  padding: var(--halok-pad) 0;
  text-align: center;
  background: var(--halok-green);
}

.halok-partner-cta .halok-display {
  max-width: 18ch;
  margin-inline: auto;
}

.halok-partner-cta .halok-lede {
  max-width: 40rem;
  margin: 0 auto 28px;
}

.halok-partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Footer multi-column */
.halok-footer-rich {
  background: var(--halok-green);
  color: rgba(255, 255, 255, 0.82);
  padding: 64px 0 0;
}

.halok-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.halok-footer-grid h4 {
  margin: 0 0 16px;
  color: var(--halok-gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.halok-footer-grid a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
}

.halok-footer-grid a:hover {
  color: var(--halok-gold);
}

.halok-footer-brand p {
  max-width: 28ch;
  margin: 14px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.halok-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
}

.halok-footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-left: 16px;
}

/* Reveal — visible by default; motion only when JS adds .halok-js-motion */
.halok-home-enhancement {
  opacity: 1;
  transform: none;
}

.halok-js-motion .halok-home-enhancement:not(.is-visible) {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.halok-js-motion .halok-home-enhancement.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .halok-home-enhancement,
  .halok-cat-card .halok-ph,
  .halok-btn,
  a.halok-btn {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 1024px) {
  .halok-cat-grid,
  .halok-feat-grid,
  .halok-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .halok-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .halok-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .halok-trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .halok-cat-grid,
  .halok-feat-grid,
  .halok-why-grid,
  .halok-resource-grid,
  .halok-timeline,
  .halok-footer-grid {
    grid-template-columns: 1fr;
  }

  .halok-phase1-root [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .halok-map__pin {
    position: relative;
    top: auto !important;
    left: auto !important;
    margin: 10px 16px;
    display: block;
  }

  .halok-map {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: auto;
    padding: 16px 0;
  }

  .halok-map__route {
    display: none;
  }

  .halok-trust-grid {
    grid-template-columns: 1fr;
  }

  .halok-trust-grid span + span {
    border-left: 0;
    border-top: 1px solid rgba(26, 48, 38, 0.16);
  }
}
