/*
Theme Name: Palmal Group of Industries
Theme URI: https://palmalgroup.com
Author: Palmal Group
Description: Official corporate website for Palmal Group of Industries — premium apparel manufacturer, Bangladesh. v2.5 Royal Edition: Palmal Sections Elementor widgets, filterable factory network, royal gold/navy design system.
Version: 3.8.0
License: Proprietary
Text Domain: palmal
Tags: corporate, business, full-width-template
*/

/* v2.6: NO remote @import — it render-blocked the whole stylesheet on
   machines without internet. Web fonts now load async via JS (optional);
   these system stacks look sharp on every OS with zero network access. */
:root {
  --font-sans:  'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ── VARIABLES ── */
:root {
  --blue:        #2C4A8C;
  --blue-light:  #4A7AC7;
  --blue-pale:   #E8F0FB;
  --gray-light:  #F4F6F9;
  --soft-white:  #FAFBFD;
  --purple-light:#EEF0FA;
  --green:       #5FBF9F;
  --gold:        #D4A85A;
  --text-dark:   #1A2340;
  --text-mid:    #4A5568;
  --text-light:  #718096;
  --border:      #E2E8F0;
  --white:       #FFFFFF;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-sans); }

/* ── WORDPRESS OVERRIDES — hide default header/footer ── */
.site-header,
#masthead,
.site-footer,
#colophon,
.wp-site-blocks > header,
.wp-site-blocks > footer { display: none !important; }

/* Push page content below WP admin bar when logged in */
body.admin-bar #palmal-nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar #palmal-nav { top: 46px; }
}

/* Remove default page padding that WP themes add */
#page { padding-top: 0 !important; margin-top: 0 !important; }
.entry-content, .page-content { margin: 0 !important; padding: 0 !important; }
.wp-block-post-content { margin: 0 !important; }

/* ── NAVIGATION ── */
#palmal-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: box-shadow 0.3s;
}
#palmal-nav.scrolled { box-shadow: 0 4px 30px rgba(44,74,140,0.10); }

.palmal-logo { display: flex; align-items: center; gap: 12px; }
.palmal-logo-text { font-size: 18px; font-weight: 700; color: var(--blue); line-height: 1.1; }
.palmal-logo-sub  { font-size: 10px; font-weight: 400; color: var(--text-light); letter-spacing: 2px; text-transform: uppercase; }

.palmal-nav-links { display: flex; gap: 28px; list-style: none; }
.palmal-nav-links a {
  font-size: 13px; font-weight: 500; color: var(--text-mid);
  letter-spacing: 0.5px; text-transform: uppercase;
  position: relative; transition: color 0.2s;
}
.palmal-nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--blue); transition: width 0.3s;
}
.palmal-nav-links a:hover { color: var(--blue); }
.palmal-nav-links a:hover::after { width: 100%; }

.palmal-nav-cta {
  background: var(--blue); color: #fff; border: none;
  padding: 10px 22px; border-radius: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.palmal-nav-cta:hover { background: var(--blue-light); transform: translateY(-1px); }

.palmal-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.palmal-hamburger span { display: block; width: 24px; height: 2px; background: var(--blue); border-radius: 2px; }

.palmal-mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.98);
  z-index: 9998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.palmal-mobile-menu.open { display: flex; }
.palmal-mobile-menu a { font-size: 22px; font-weight: 500; color: var(--text-dark); }
.palmal-mobile-close { position: absolute; top: 20px; right: 24px; font-size: 30px; background: none; border: none; color: var(--text-dark); }

/* ── SHARED SECTION STYLES ── */
.palmal-section { padding: 96px 0; }
.palmal-container { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

.palmal-eyebrow { font-size: 11px; font-weight: 700; color: var(--green); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.palmal-divider { width: 44px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 2px; margin-bottom: 18px; }
.palmal-title { font-size: clamp(26px, 4vw, 42px); font-weight: 700; color: var(--text-dark); line-height: 1.15; margin-bottom: 14px; }
.palmal-title.light { color: #fff; }
.palmal-title span { color: var(--blue); }
.palmal-title span.gold { color: var(--gold); }
.palmal-title span.grnc { color: var(--green); }
.palmal-subtitle { font-size: 16px; font-weight: 300; color: var(--text-mid); max-width: 620px; line-height: 1.75; }
.palmal-subtitle.light { color: rgba(255,255,255,0.65); }

/* Fade animations */
.palmal-fade { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.palmal-fade.in { opacity: 1; transform: translateY(0); }
.palmal-fade.delay-1 { transition-delay: 0.1s; }
.palmal-fade.delay-2 { transition-delay: 0.2s; }
.palmal-fade.delay-3 { transition-delay: 0.3s; }
.palmal-fade.delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════════
   HERO — FIXED VERSION
══════════════════════════════════════════ */
#palmal-hero {
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, #0D1B3E 0%, #1A3263 45%, #2C4A8C 100%) !important;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Push below the 68px nav */
  padding-top: 68px;
  padding-bottom: 40px;
}

/* WP admin bar offset for hero */
body.admin-bar #palmal-hero { padding-top: 100px; }
@media screen and (max-width: 782px) {
  body.admin-bar #palmal-hero { padding-top: 114px; }
}

/* Grid overlay */
.palmal-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Animated particles container */
.palmal-hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.palmal-particle {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  animation: palParticleFloat linear infinite;
}
@keyframes palParticleFloat {
  0%   { transform: translateY(110vh); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(-120px); opacity: 0; }
}

/* Hero inner content */
.palmal-hero-inner {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 880px; width: 100%;
}

/* Badge */
.palmal-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px; padding: 7px 20px;
  margin-bottom: 28px;
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.88); letter-spacing: 1px; text-transform: uppercase;
}
.palmal-hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: palBadgePulse 2s ease infinite;
  flex-shrink: 0;
}
@keyframes palBadgePulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:0.6} }

/* ── SLIDES ── */
.palmal-slide { display: none; animation: palSlideIn 0.7s ease; }
.palmal-slide.active { display: block; }
@keyframes palSlideIn { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

.palmal-slide h1 {
  font-size: clamp(30px, 5.5vw, 62px);
  font-weight: 700; color: #fff; line-height: 1.1;
  margin-bottom: 16px; letter-spacing: -0.5px;
}
.palmal-slide h1 em { font-style: normal; color: var(--gold); }
.palmal-slide > p {
  font-size: 17px; font-weight: 300;
  color: rgba(255,255,255,0.72); margin-bottom: 32px;
}

/* Hero stats row */
.palmal-hero-stats {
  display: flex; justify-content: center;
  gap: 48px; flex-wrap: wrap; margin-bottom: 8px;
}
.palmal-hero-stat-num {
  font-size: 38px; font-weight: 700; color: var(--gold); line-height: 1;
}
.palmal-hero-stat-label {
  font-size: 11px; font-weight: 400;
  color: rgba(255,255,255,0.55); letter-spacing: 1px;
  text-transform: uppercase; margin-top: 4px;
}

/* Hero CTA buttons */
.palmal-hero-cta {
  display: flex; gap: 14px; justify-content: center;
  margin-top: 40px; flex-wrap: wrap;
}
.palmal-btn-gold {
  background: linear-gradient(135deg, var(--gold), #e8c07a);
  color: #1A2340; padding: 15px 32px; border-radius: 8px;
  font-size: 14px; font-weight: 700; border: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s; text-decoration: none;
}
.palmal-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,168,90,0.38); color: #1A2340; }
.palmal-btn-outline {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff; padding: 15px 32px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.2s; text-decoration: none;
}
.palmal-btn-outline:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); color: #fff; }

/* Slide indicator dots */
.palmal-hero-dots {
  display: flex; gap: 10px; justify-content: center; margin-top: 44px;
}
.palmal-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.28); border: none;
  transition: all 0.3s; padding: 0;
}
.palmal-dot.active { background: var(--gold); width: 26px; border-radius: 4px; }

/* ── SECTION BACKGROUNDS ── */
.pal-bg-gray   { background: var(--gray-light); }
.pal-bg-white  { background: var(--white); }
.pal-bg-soft   { background: var(--soft-white); }
.pal-bg-purple { background: var(--purple-light); }
.pal-bg-dark   { background: linear-gradient(135deg, #0D1B3E 0%, #1A3263 100%); }
.pal-bg-green  {
  background: linear-gradient(135deg, #0a2a1f 0%, #0e3d2b 50%, #1a4d35 100%);
  position: relative; overflow: hidden;
}
.pal-bg-green::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(95,191,159,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(95,191,159,0.08) 0%, transparent 60%);
}

/* ── ABOUT ── */
.palmal-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-top: 52px; }
.palmal-about-text p { font-size: 15px; font-weight: 300; color: var(--text-mid); line-height: 1.85; margin-bottom: 16px; }
.palmal-strengths { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 26px; }
.palmal-chip { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; font-size: 13px; font-weight: 500; color: var(--text-dark); }
.palmal-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

.palmal-counters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.palmal-counter-card {
  background: var(--white); border-radius: 16px; padding: 28px 20px; text-align: center;
  border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(44,74,140,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.palmal-counter-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(44,74,140,0.11); }
.palmal-counter-icon { font-size: 24px; margin-bottom: 9px; }
.palmal-counter-num { font-size: 36px; font-weight: 700; line-height: 1; }
.palmal-counter-num.c1{color:var(--blue)}.palmal-counter-num.c2{color:var(--green)}.palmal-counter-num.c3{color:var(--gold)}.palmal-counter-num.c4{color:#8B7EC8}.palmal-counter-num.c5{color:var(--blue-light)}.palmal-counter-num.c6{color:#E85D75}
.palmal-counter-label { font-size: 12px; font-weight: 400; color: var(--text-light); margin-top: 5px; }

/* ── BUSINESS CARDS ── */
.palmal-biz-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 52px; }
.palmal-biz-card {
  background: var(--gray-light); border-radius: 20px; padding: 32px 24px;
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.palmal-biz-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 20px 20px 0 0; }
.palmal-biz-card.b1::before { background: linear-gradient(90deg,var(--blue),var(--blue-light)); }
.palmal-biz-card.b2::before { background: linear-gradient(90deg,var(--green),#7DD4B6); }
.palmal-biz-card.b3::before { background: linear-gradient(90deg,var(--gold),#E8C47A); }
.palmal-biz-card:hover { transform: translateY(-6px); box-shadow: 0 16px 44px rgba(44,74,140,0.11); }
.palmal-biz-icon { font-size: 32px; margin-bottom: 14px; }
.palmal-biz-card h3 { font-size: 19px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.palmal-biz-card p { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 16px; }
.palmal-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.palmal-tag { font-size: 11px; font-weight: 500; color: var(--blue); background: var(--blue-pale); border-radius: 100px; padding: 4px 12px; }

/* ── PROCESS ── */
.palmal-process { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 56px; }
.palmal-process-step { display: flex; flex-direction: column; align-items: center; position: relative; min-width: 100px; padding: 0 8px; }
.palmal-process-step:not(:last-child)::after { content: '→'; position: absolute; right: -12px; top: 22px; font-size: 16px; color: rgba(255,255,255,0.25); }
.palmal-process-circle { width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,0.07); border: 2px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 9px; transition: all 0.3s; }
.palmal-process-circle:hover { background: rgba(95,191,159,0.18); border-color: var(--green); transform: scale(1.1); }
.palmal-process-num { font-size: 10px; font-weight: 700; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
.palmal-process-label { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.78); text-align: center; }

/* ── CAPACITY DASHBOARD ── */
.palmal-cap-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 52px; }
.palmal-cap-card {
  background: var(--white); border-radius: 20px; padding: 36px 24px; text-align: center;
  border: 1px solid var(--border); box-shadow: 0 2px 16px rgba(44,74,140,0.05);
  position: relative; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s;
}
.palmal-cap-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; }
.palmal-cap-card.d1::after{background:var(--blue)}.palmal-cap-card.d2::after{background:var(--green)}.palmal-cap-card.d3::after{background:var(--gold)}.palmal-cap-card.d4::after{background:#8B7EC8}.palmal-cap-card.d5::after{background:var(--blue-light)}.palmal-cap-card.d6::after{background:#E85D75}
.palmal-cap-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(44,74,140,0.10); }
.palmal-cap-icon { font-size: 32px; margin-bottom: 12px; }
.palmal-cap-number { font-size: 44px; font-weight: 700; color: var(--blue); line-height: 1; margin-bottom: 4px; }
.palmal-cap-unit { font-size: 18px; font-weight: 400; color: var(--text-mid); }
.palmal-cap-label { font-size: 13px; color: var(--text-light); margin-top: 7px; }

/* ── CHARTS ── */
.palmal-charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 52px; }
.palmal-chart-card { background: var(--gray-light); border-radius: 20px; padding: 30px; border: 1px solid var(--border); }
.palmal-chart-card.full { grid-column: 1 / -1; }
.palmal-chart-card h3 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 18px; }
.palmal-chart-wrap { position: relative; height: 240px; }
.palmal-chart-wrap.tall { height: 280px; }

/* ── SUSTAINABILITY ── */
.palmal-sust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 52px; }
.palmal-sust-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 32px 20px; text-align: center; backdrop-filter: blur(8px); transition: all 0.3s; }
.palmal-sust-card:hover { background: rgba(255,255,255,0.10); transform: translateY(-4px); border-color: rgba(95,191,159,0.3); }
.palmal-sust-icon { font-size: 34px; margin-bottom: 12px; }
.palmal-sust-num { font-size: 32px; font-weight: 700; color: var(--green); line-height: 1; }
.palmal-sust-unit { font-size: 14px; font-weight: 400; }
.palmal-sust-label { font-size: 12px; color: rgba(255,255,255,0.62); margin-top: 7px; line-height: 1.55; }
.palmal-sust-pillars { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin-top: 40px; position: relative; z-index: 1; }
.palmal-pillar { background: rgba(255,255,255,0.05); border: 1px solid rgba(95,191,159,0.2); border-radius: 12px; padding: 16px 10px; text-align: center; }
.palmal-pillar-icon { font-size: 22px; margin-bottom: 7px; }
.palmal-pillar-text { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.78); }

/* ── WORLD MAP (Global Markets) ── */
.palmal-markets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 52px; }

/* Map wrapper — keeps aspect ratio */
.palmal-world-map-wrap {
  position: relative;
  width: 100%;
  background: #EEF4FF;
  border-radius: 16px;
  overflow: hidden;
  padding: 20px;
}
.palmal-world-map-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Pulsing hotspot circles on the map */
.map-hotspot {
  cursor: default;
}
.map-hotspot .pulse-ring {
  animation: mapPulse 2.5s ease infinite;
  transform-origin: center;
}
.map-hotspot:nth-child(2) .pulse-ring { animation-delay: 0.4s; }
.map-hotspot:nth-child(3) .pulse-ring { animation-delay: 0.8s; }
.map-hotspot:nth-child(4) .pulse-ring { animation-delay: 1.2s; }
.map-hotspot:nth-child(5) .pulse-ring { animation-delay: 1.6s; }
@keyframes mapPulse {
  0%   { opacity: 0.6; transform: scale(1); }
  50%  { opacity: 0.15; transform: scale(1.8); }
  100% { opacity: 0.6; transform: scale(1); }
}

.palmal-export-bars { display: flex; flex-direction: column; gap: 18px; }
.palmal-bar-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; color: var(--text-dark); margin-bottom: 7px; }
.palmal-bar-pct { font-weight: 700; color: var(--blue); }
.palmal-bar-track { height: 10px; background: var(--border); border-radius: 100px; overflow: hidden; }
.palmal-bar-fill { height: 100%; border-radius: 100px; width: 0; transition: width 1.4s cubic-bezier(0.16,1,0.3,1); }

/* ── LOGO WALL ── */
.palmal-logo-wall { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; margin-top: 44px; }
.palmal-logo-cell { background: var(--gray-light); border: 1px solid var(--border); border-radius: 12px; padding: 16px 12px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--text-mid); text-align: center; min-height: 54px; transition: all 0.3s; }
.palmal-logo-cell:hover { background: var(--blue-pale); border-color: var(--blue); color: var(--blue); transform: scale(1.04); }

/* ── INNOVATION ── */
.palmal-inno-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 52px; }
.palmal-inno-card { background: var(--white); border-radius: 16px; padding: 28px 20px; border: 1px solid var(--border); text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.palmal-inno-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(44,74,140,0.09); }
.palmal-inno-icon { font-size: 34px; margin-bottom: 12px; }
.palmal-inno-card h3 { font-size: 17px; font-weight: 700; color: var(--text-dark); margin-bottom: 7px; }
.palmal-inno-card p { font-size: 13px; color: var(--text-mid); line-height: 1.7; }

/* ── EXPANSION ── */
.palmal-exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 52px; }
.palmal-exp-card { background: var(--gray-light); border-radius: 14px; padding: 22px 20px; border: 1px solid var(--border); display: flex; gap: 14px; align-items: flex-start; transition: all 0.3s; }
.palmal-exp-card:hover { border-color: var(--blue); background: var(--blue-pale); transform: translateX(4px); }
.palmal-exp-num { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.palmal-exp-text h4 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.palmal-exp-text p { font-size: 13px; color: var(--text-mid); line-height: 1.6; }

/* ── CONTACT ── */
.palmal-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 52px; }
.palmal-contact-info h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 22px; }
.palmal-contact-detail { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.palmal-contact-icon { font-size: 17px; flex-shrink: 0; margin-top: 2px; }
.palmal-contact-text { font-size: 14px; color: rgba(255,255,255,0.72); line-height: 1.65; }
.palmal-contact-text strong { color: #fff; display: block; margin-bottom: 2px; }
.palmal-map-wrap { margin-top: 20px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); }

.palmal-form { display: flex; flex-direction: column; gap: 13px; }
.palmal-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.palmal-form input,
.palmal-form select,
.palmal-form textarea { width: 100%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; padding: 13px 15px; font-size: 14px; color: #fff; font-family: var(--font-sans); outline: none; transition: border-color 0.2s; }
.palmal-form input::placeholder, .palmal-form textarea::placeholder { color: rgba(255,255,255,0.38); }
.palmal-form input:focus, .palmal-form select:focus, .palmal-form textarea:focus { border-color: var(--green); }
.palmal-form select option { background: #1A3263; color: #fff; }
.palmal-form textarea { min-height: 108px; resize: vertical; }
.palmal-form-submit { background: linear-gradient(135deg,var(--green),#3daa82); color: #fff; border: none; border-radius: 10px; padding: 14px 34px; font-size: 14px; font-weight: 700; letter-spacing: 0.5px; align-self: flex-start; transition: transform 0.2s, box-shadow 0.2s; }
.palmal-form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(95,191,159,0.28); }
.palmal-form-success { display: none; color: var(--green); font-size: 14px; font-weight: 500; margin-top: 6px; }

/* ── FOOTER ── */
#palmal-footer { background: #060E21; padding: 56px 0 28px; }
.palmal-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 40px; }
.palmal-footer-brand-name { font-size: 19px; font-weight: 700; color: #fff; }
.palmal-footer-brand-sub { font-size: 9px; color: rgba(255,255,255,0.4); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.palmal-footer-brand p { font-size: 13px; color: rgba(255,255,255,0.48); line-height: 1.7; max-width: 255px; margin-top: 10px; }
.palmal-footer-col h4 { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.85); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.palmal-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.palmal-footer-col ul a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.palmal-footer-col ul a:hover { color: var(--green); }
.palmal-social { display: flex; gap: 10px; margin-top: 16px; }
.palmal-social a { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; font-size: 12px; color: rgba(255,255,255,0.6); transition: background 0.2s, transform 0.2s; }
.palmal-social a:hover { background: var(--blue); transform: translateY(-2px); }
.palmal-footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.palmal-footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.28); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .palmal-biz-grid, .palmal-inno-grid { grid-template-columns: 1fr 1fr; }
  .palmal-footer-grid { grid-template-columns: 1fr 1fr; }
  .palmal-sust-pillars { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 900px) {
  #palmal-nav .palmal-nav-links, #palmal-nav .palmal-nav-cta { display: none; }
  .palmal-hamburger { display: flex; }
  .palmal-about-grid, .palmal-markets-grid, .palmal-contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .palmal-charts-grid { grid-template-columns: 1fr; }
  .palmal-chart-card.full { grid-column: auto; }
  .palmal-cap-grid { grid-template-columns: 1fr 1fr; }
  .palmal-logo-wall { grid-template-columns: repeat(3,1fr); }
  .palmal-exp-grid { grid-template-columns: 1fr; }
  .palmal-form-row { grid-template-columns: 1fr; }
  #palmal-nav { padding: 0 24px; }
  .palmal-container { padding: 0 22px; }
}
@media (max-width: 640px) {
  .palmal-section { padding: 60px 0; }
  .palmal-biz-grid, .palmal-inno-grid, .palmal-cap-grid, .palmal-sust-grid { grid-template-columns: 1fr; }
  .palmal-logo-wall { grid-template-columns: repeat(2,1fr); }
  .palmal-counters { grid-template-columns: 1fr 1fr; }
  .palmal-strengths { grid-template-columns: 1fr; }
  .palmal-sust-pillars { grid-template-columns: 1fr 1fr; }
  .palmal-footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .palmal-footer-bottom { flex-direction: column; text-align: center; }
  .palmal-hero-stats { gap: 22px; }
  .palmal-process-step:not(:last-child)::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ══════════════════════════════════════════
   LOGO IMAGE in NAV
══════════════════════════════════════════ */
.palmal-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

/* ══════════════════════════════════════════
   WORLD MAP — real image with CSS hotspots
══════════════════════════════════════════ */
.pal-map-container {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #dce8f5;
  box-shadow: 0 4px 24px rgba(44,74,140,0.10);
}

.pal-map-img {
  width: 100%;
  height: auto;
  display: block;
  /* slight blue tint to match our palette */
  filter: saturate(0.5) sepia(0.15) hue-rotate(180deg) brightness(1.05);
}

/* Each pin is absolutely positioned over the map image */
.pal-pin {
  position: absolute;
  transform: translate(0, 0);
  cursor: default;
}

/* Solid filled dot */
.pal-pin-dot {
  display: block;
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  /* default size — overridden inline */
  width: 16px; height: 16px;
  margin-left: -8px; margin-top: -8px;
}

/* Pulsing outer ring */
.pal-pin-ring {
  display: block;
  border-radius: 50%;
  border-width: 2px;
  border-style: solid;
  position: absolute;
  top: 50%; left: 50%;
  animation: pinPulse 2.5s ease infinite;
  /* size and colour set inline */
}
@keyframes pinPulse {
  0%   { opacity: 0.7; transform: scale(1); }
  60%  { opacity: 0;   transform: scale(1.6); }
  100% { opacity: 0;   transform: scale(1.6); }
}

/* Animated dot itself */
.pal-pulse {
  animation: dotBreath 2.5s ease infinite;
}
@keyframes dotBreath {
  0%,100% { transform: translate(-50%,-50%) scale(1);   opacity: 1; }
  50%      { transform: translate(-50%,-50%) scale(0.88); opacity: 0.85; }
}
/* Because .pal-pin-dot uses absolute positioning with margin offsets, 
   we need a separate transform for the pulse */
.pal-pin-dot.pal-pulse {
  animation: dotPulseAbs 2.5s ease infinite;
}
@keyframes dotPulseAbs {
  0%,100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  50%      { opacity: 0.85; box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

/* Badge label that appears on hover / always visible */
.pal-pin-badge {
  position: absolute;
  top: -52px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  /* Small triangle arrow */
}
.pal-pin-badge::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid inherit;
}

/* HQ pin — simpler style */
.pal-pin-hq .pal-pin-dot {
  width: 10px; height: 10px;
  margin-left: -5px; margin-top: -5px;
}
.pal-pin-label {
  position: absolute;
  top: -20px;
  left: 12px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* ── Responsive map ── */
@media (max-width: 900px) {
  .palmal-markets-grid { grid-template-columns: 1fr; }
  .pal-map-container { margin-bottom: 24px; }
}
@media (max-width: 640px) {
  .pal-pin-badge { font-size: 9px; padding: 3px 7px; top: -44px; }
}

/* ══════════════════════════════════════════
   HERO BACKGROUND IMAGES + DARK OVERLAY
══════════════════════════════════════════ */

/* Each slide gets its own background image panel */
.palmal-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 0;
}
.palmal-hero-bg.active {
  opacity: 1;
}

/* Dark overlay — sits on top of the image, below the text */
.palmal-hero-overlay {
  position: absolute;
  inset: 0;
  /* Dark gradient — stronger at bottom so text stays legible */
  background: linear-gradient(
    160deg,
    rgba(8, 18, 44, 0.78) 0%,
    rgba(13, 27, 62, 0.72) 40%,
    rgba(20, 40, 80, 0.65) 70%,
    rgba(8, 18, 44, 0.82) 100%
  );
  z-index: 1;
}

/* Hero grid and particles sit above overlay */
.palmal-hero-grid { z-index: 2; }
.palmal-hero-particles { z-index: 2; }

/* Hero inner content sits above everything */
.palmal-hero-inner { z-index: 3; }

/* ══════════════════════════════════════════
   BRAND LOGO TICKER — Infinite sliding bar
══════════════════════════════════════════ */
.pal-ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  /* Fade edges left and right */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.pal-ticker {
  display: flex;
  gap: 0;
  width: max-content;
  animation: palTicker 32s linear infinite;
}
.pal-ticker:hover { animation-play-state: paused; }

@keyframes palTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }  /* moves exactly half = one full set */
}

.pal-ticker-item {
  flex-shrink: 0;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Each brand logo pill */
.pal-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  min-width: 120px;
  padding: 0 24px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: default;
}
.pal-brand-logo:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 20px rgba(44,74,140,0.14);
}

/* Individual brand color themes */
.pal-logo-hm       { background:#e8031c; color:#fff; border-color:#e8031c; }
.pal-logo-gap      { background:#0a1f5c; color:#fff; border-color:#0a1f5c; }
.pal-logo-levis    { background:#c41200; color:#fff; border-color:#c41200; }
.pal-logo-george   { background:#1a1a1a; color:#fff; border-color:#1a1a1a; }
.pal-logo-walmart  { background:#0071ce; color:#fff; border-color:#0071ce; }
.pal-logo-oldnavy  { background:#003087; color:#fff; border-color:#003087; }
.pal-logo-next     { background:#000;    color:#fff; border-color:#000; }
.pal-logo-zara     { background:#1a1a1a; color:#fff; border-color:#1a1a1a; font-style:italic; letter-spacing:3px; }
.pal-logo-sains    { background:#f36f21; color:#fff; border-color:#f36f21; }
.pal-logo-champion { background:#e31837; color:#fff; border-color:#e31837; }

/* ══════════════════════════════════════════
   ELEMENTOR COMPATIBILITY
══════════════════════════════════════════ */
/* Ensure the_content() hidden div doesn't create space */
body .palmal-elementor-compat { display: none !important; height: 0 !important; overflow: hidden !important; }

/* ══════════════════════════════════════════
   TICKER — Real logo image cards  (v1.4)
   Replaces the old text-pill .pal-brand-logo
══════════════════════════════════════════ */

/* White card that holds each logo image */
.pal-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  min-width: 160px;
  padding: 12px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44,74,140,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.pal-logo-card:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 28px rgba(44,74,140,0.13);
  border-color: var(--blue-light);
}

/* The logo image itself — contain within card, no stretch */
.pal-logo-card img {
  max-height: 44px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  /* Remove transparency noise on PNGs with alpha */
  mix-blend-mode: multiply;
}

/* Ticker gap between cards */
.pal-ticker-item {
  flex-shrink: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

/* Slow it down a touch so logos are readable */
.pal-ticker { animation-duration: 40s; }

/* ══════════════════════════════════════════
   FACTORIES — Archive listing page
══════════════════════════════════════════ */
.pal-factories-hero {
  background: linear-gradient(135deg, #0D1B3E 0%, #1A3263 45%, #2C4A8C 100%);
  padding: 150px 0 70px;
  text-align: center;
}
body.admin-bar .pal-factories-hero { padding-top: 182px; }

.pal-factory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pal-factory-card {
  display: block;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 14px rgba(44,74,140,0.06);
}
.pal-factory-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(44,74,140,0.14);
}

.pal-factory-card-img {
  position: relative;
  height: 200px;
  background: var(--gray-light);
  overflow: hidden;
}
.pal-factory-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.pal-factory-card:hover .pal-factory-card-img img { transform: scale(1.08); }

.pal-factory-card-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 48px; color: var(--border);
  background: linear-gradient(135deg, var(--gray-light), var(--blue-pale));
}

.pal-factory-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(13,27,62,0.85);
  color: #fff; font-size: 11px; font-weight: 600;
  padding: 5px 12px; border-radius: 100px;
  letter-spacing: 0.3px;
}

.pal-factory-card-body { padding: 22px 22px 24px; }
.pal-factory-card-body h3 { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.pal-factory-unit { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.pal-factory-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-mid); margin-bottom: 8px; }
.pal-factory-capacity { font-size: 12px; color: var(--text-mid); margin-bottom: 14px; }
.pal-factory-link { font-size: 13px; font-weight: 700; color: var(--blue); }

.pal-factory-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--white);
  border-radius: 20px;
  border: 2px dashed var(--border);
}
.pal-factory-empty h3 { font-size: 22px; color: var(--text-dark); margin-bottom: 10px; }
.pal-factory-empty p { color: var(--text-mid); max-width: 460px; margin: 0 auto; }

/* ══════════════════════════════════════════
   SINGLE FACTORY — Detail page
══════════════════════════════════════════ */
.pal-factory-detail-hero {
  position: relative;
  min-height: 56vh;
  background: linear-gradient(135deg, #0D1B3E 0%, #1A3263 45%, #2C4A8C 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding-top: 68px;
}
body.admin-bar .pal-factory-detail-hero { padding-top: 100px; }

.pal-factory-detail-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,18,44,0.55) 0%, rgba(8,18,44,0.85) 100%);
}
.pal-factory-hero-content {
  position: relative; z-index: 2;
  padding-bottom: 56px;
}
.pal-back-link {
  display: inline-block;
  color: rgba(255,255,255,0.75);
  font-size: 13px; font-weight: 500;
  margin-bottom: 18px;
  text-decoration: none;
  transition: color 0.2s;
}
.pal-back-link:hover { color: var(--gold); }

.pal-factory-stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.pal-factory-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  text-align: center;
}
.pal-stat-block { padding: 0 12px; }
.pal-stat-icon { font-size: 26px; margin-bottom: 8px; }
.pal-stat-val { font-size: 22px; font-weight: 700; color: var(--blue); line-height: 1.2; }
.pal-stat-label { font-size: 12px; color: var(--text-light); margin-top: 4px; }

.pal-factory-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 52px;
}
.pal-factory-description { font-size: 15px; color: var(--text-mid); line-height: 1.85; }
.pal-factory-description p { margin-bottom: 16px; }

.pal-cert-row { margin-top: 28px; }
.pal-cert-label { font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.pal-cert-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pal-cert-tag {
  background: var(--blue-pale); color: var(--blue);
  font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 100px;
}

.pal-factory-sidebar-card {
  background: var(--gray-light);
  border-radius: 16px;
  padding: 26px 24px;
  border: 1px solid var(--border);
  position: sticky;
  top: 90px;
}
.pal-factory-sidebar-card h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 14px; }
.pal-factory-sidebar-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pal-factory-sidebar-card li { font-size: 13px; color: var(--text-mid); }
.pal-factory-sidebar-card li strong { color: var(--text-dark); }

.pal-factory-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.pal-gallery-thumb {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.pal-gallery-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.pal-gallery-thumb:hover img { transform: scale(1.08); }

.pal-factory-cta {
  background: linear-gradient(135deg, #0a2a1f 0%, #1a4d35 100%);
  padding: 70px 0;
}

/* Lightbox */
.pal-lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(8,18,44,0.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.pal-lightbox.open { display: flex; }
.pal-lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.pal-lightbox-close {
  position: absolute; top: 24px; right: 32px;
  color: #fff; font-size: 36px; cursor: pointer; line-height: 1;
}

/* ══ RESPONSIVE — Factories ══ */
@media (max-width: 900px) {
  .pal-factory-grid { grid-template-columns: 1fr 1fr; }
  .pal-factory-content-grid { grid-template-columns: 1fr; }
  .pal-factory-sidebar-card { position: static; }
  .pal-factory-gallery-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .pal-factory-grid { grid-template-columns: 1fr; }
  .pal-factory-gallery-grid { grid-template-columns: 1fr; }
  .pal-factory-stats-grid { grid-template-columns: repeat(2,1fr); }
}

/* ══════════════════════════════════════════
   FACTORY DOCUMENTS — Licenses/Certificates PDFs
══════════════════════════════════════════ */
.pal-docs-row { margin-top: 28px; }
.pal-docs-list { display: flex; flex-direction: column; gap: 10px; }
.pal-doc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  transition: all 0.2s;
}
.pal-doc-card:hover {
  background: var(--blue-pale);
  border-color: var(--blue);
  transform: translateX(3px);
}
.pal-doc-icon { font-size: 22px; flex-shrink: 0; }
.pal-doc-info { flex: 1; display: flex; flex-direction: column; }
.pal-doc-name { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.pal-doc-type { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.pal-doc-arrow { font-size: 16px; color: var(--blue); flex-shrink: 0; }

/* ══════════════════════════════════════════
   MULTI-PAGE SUPPORT — spacing fix for pages
   that don't have the full hero (About, Business, etc.)
══════════════════════════════════════════ */
body.admin-bar .pal-page-about,
body.admin-bar .pal-page-business,
body.admin-bar .pal-page-sustainability,
body.admin-bar .pal-page-markets,
body.admin-bar .pal-page-customers,
body.admin-bar .pal-page-contact {
  margin-top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .pal-page-about,
  body.admin-bar .pal-page-business,
  body.admin-bar .pal-page-sustainability,
  body.admin-bar .pal-page-markets,
  body.admin-bar .pal-page-customers,
  body.admin-bar .pal-page-contact {
    margin-top: 46px;
  }
}

/* ══════════════════════════════════════════════════════════
   SITE PRELOADER — Logo animation on page load
══════════════════════════════════════════════════════════ */
#palmal-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0D1B3E 0%, #1A3263 50%, #0D1B3E 100%);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#palmal-preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Logo mark inside preloader */
.pal-preloader-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  animation: pal-logo-breath 1.6s ease infinite;
  margin-bottom: 28px;
}
@keyframes pal-logo-breath {
  0%, 100% { transform: scale(1);    opacity: 0.95; }
  50%       { transform: scale(1.08); opacity: 1;    }
}

/* Brand name under logo */
.pal-preloader-name {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 6px;
  animation: pal-fade-in 0.8s ease 0.3s both;
}
.pal-preloader-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 36px;
  animation: pal-fade-in 0.8s ease 0.5s both;
}
@keyframes pal-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Progress bar */
.pal-preloader-bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 100px;
  overflow: hidden;
  animation: pal-fade-in 0.6s ease 0.6s both;
}
.pal-preloader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green,#5FBF9F), var(--gold,#D4A85A));
  border-radius: 100px;
  animation: pal-progress 2s cubic-bezier(0.4,0,0.2,1) 0.4s forwards;
}
@keyframes pal-progress {
  0%   { width: 0%; }
  60%  { width: 75%; }
  100% { width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   VISUAL RICHNESS UPGRADES
══════════════════════════════════════════════════════════ */

/* ── 1. About section: floating graphic cards behind counters ── */
.palmal-counters { position: relative; }
.palmal-counter-card {
  position: relative;
  overflow: hidden;
}
.palmal-counter-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 80px; height: 80px;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--blue);
}
.palmal-counter-card:nth-child(2)::before { background: var(--green); }
.palmal-counter-card:nth-child(3)::before { background: var(--gold); }

/* ── 2. Business cards: richer gradient top bar ── */
.palmal-biz-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(255,255,255,0.06), transparent);
  pointer-events: none;
}

/* ── 3. Section dividers: animated gradient line ── */
.palmal-divider {
  animation: dividerGrow 0.8s ease both;
  transform-origin: left;
}
@keyframes dividerGrow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* ── 4. Hero: richer animated gradient orbs ── */
.palmal-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  animation: orbFloat ease-in-out infinite;
}
.palmal-hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(95,191,159,0.18) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-duration: 12s;
}
.palmal-hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,168,90,0.12) 0%, transparent 70%);
  bottom: -80px; right: -80px;
  animation-duration: 16s;
  animation-delay: -5s;
}
.palmal-hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(74,122,199,0.14) 0%, transparent 70%);
  top: 40%; right: 20%;
  animation-duration: 10s;
  animation-delay: -8s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.05); }
  66%      { transform: translate(-20px, 30px) scale(0.96); }
}

/* ── 5. Capacity cards: animated count number glow ── */
.palmal-cap-number {
  text-shadow: 0 0 30px rgba(44,74,140,0.2);
}

/* ── 6. Sustainability section: animated leaf particles ── */
.pal-sust-particle {
  position: absolute;
  font-size: 18px;
  opacity: 0.12;
  animation: leafDrift linear infinite;
  pointer-events: none;
  user-select: none;
}
@keyframes leafDrift {
  0%   { transform: translateY(100%) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.12; }
  90%  { opacity: 0.12; }
  100% { transform: translateY(-120px) rotate(360deg); opacity: 0; }
}

/* ── 7. Process circles: staggered entrance animation ── */
.palmal-process-step { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.palmal-process-step.in { opacity: 1; transform: translateY(0); }

/* ── 8. Enhanced hero stats — gold underline ── */
.palmal-hero-stat-num {
  position: relative;
  display: inline-block;
}
.palmal-hero-stat-num::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold, #D4A85A);
  border-radius: 2px;
  margin: 6px auto 0;
  opacity: 0.7;
}

/* ── 9. Section eyebrow — animated dot ── */
.palmal-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 8px;
  vertical-align: middle;
  animation: palmal-pulse 2s ease infinite;
}

/* ── 10. Markets section: dark bg variant for visual contrast ── */
#markets.pal-bg-gray {
  background: linear-gradient(180deg, var(--gray-light) 0%, #EEF4FF 100%);
}

/* ── 11. Factory cards: image zoom ring hover ── */
.pal-factory-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 2px solid transparent;
  transition: border-color 0.3s;
  pointer-events: none;
}
.pal-factory-card:hover::after { border-color: var(--blue-light, #4A7AC7); }

/* ── 12. Ticker standalone wrapper spacing ── */
.pal-ticker-standalone {
  padding: 48px 0;
  background: var(--soft-white, #FAFBFD);
  border-top: 1px solid var(--border, #E2E8F0);
}

/* ── 13. Glassmorphism card style for innovation ── */
.palmal-inno-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.9);
}
.pal-bg-purple .palmal-inno-card {
  background: rgba(255,255,255,0.75);
  box-shadow: 0 4px 24px rgba(100,90,180,0.10);
}

/* ── 14. Expansion cards: numbered badge glow ── */
.palmal-exp-num {
  box-shadow: 0 4px 14px rgba(44,74,140,0.25);
}

/* ── 15. Footer: subtle top gradient border ── */
#palmal-footer {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue,#2C4A8C), var(--green,#5FBF9F), var(--gold,#D4A85A)) 1;
}


/* ══════════════════════════════════════════════════════════
   v1.9 — ALL FIXES
══════════════════════════════════════════════════════════ */

/* ── 1. NAV SPACER — matches section background so no white gap ── */
.pal-nav-spacer {
  height: 68px;
  display: block;
  margin: 0; padding: 0;
}
body.admin-bar .pal-nav-spacer { height: 100px; }
@media screen and (max-width: 782px) {
  body.admin-bar .pal-nav-spacer { height: 114px; }
}
.pal-nav-spacer--gray   { background: var(--gray-light); }
.pal-nav-spacer--white  { background: var(--white); }
.pal-nav-spacer--soft   { background: var(--soft-white); }
.pal-nav-spacer--purple { background: var(--purple-light); }
.pal-nav-spacer--dark   { background: #0D1B3E; }
.pal-nav-spacer--green  { background: #0a2a1f; }

/* ── 2. BLOCK EDITOR CONTENT AREA
   Shown above section content when admin adds blocks in WP editor ── */
.pal-page-content-wrap {
  width: 100%;
}
.pal-page-blocks {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 40px 0;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.75;
}
.pal-page-blocks h1, .pal-page-blocks h2, .pal-page-blocks h3,
.pal-page-blocks h4, .pal-page-blocks h5, .pal-page-blocks h6 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 12px;
}
.pal-page-blocks p { margin-bottom: 16px; }
.pal-page-blocks img { max-width: 100%; border-radius: 8px; }
.pal-page-blocks--home { display: none; } /* hide on homepage — only show if admin adds content */

/* ── 3. HEADING TYPOGRAPHY — weight 400, dark normal, blue italic ── */

/* All section headings: weight 400 */
.palmal-title {
  font-weight: 400 !important;
  line-height: 1.2;
}

/* The dark part of a split title: normal style */
.palmal-title,
.palmal-title.light {
  font-style: normal;
}

/* The blue highlighted span inside a title: italic */
.palmal-title span {
  font-style: italic;
  color: var(--blue);
  font-weight: 400;
}
/* Gold variant (used in dark sections) */
.palmal-title span.gold {
  font-style: italic;
  color: var(--gold);
}
/* Green variant */
.palmal-title span.grnc {
  font-style: italic;
  color: var(--green);
}
/* Hero slide titles follow same pattern */
.palmal-slide h1 {
  font-weight: 400 !important;
  font-style: normal;
}
.palmal-slide h1 em {
  font-style: italic;
  color: var(--gold);
}

/* Single factory page title */
.pal-factory-hero-content .palmal-title { font-weight: 400 !important; }
/* Factory cards */
.pal-factory-card-body h3 { font-weight: 500; }
/* Factories archive hero */
.pal-factories-hero .palmal-title { font-weight: 400 !important; }

/* ── 4. WORDPRESS NAV MENU STYLING
   wp_nav_menu() outputs <ul class="palmal-nav-links"> ── */

/* Desktop nav — the <ul> itself */
.palmal-nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.palmal-nav-links > li {
  position: relative;
}
.palmal-nav-links > li > a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.palmal-nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.3s;
}
.palmal-nav-links > li > a:hover,
.palmal-nav-links > li.current-menu-item > a,
.palmal-nav-links > li.current_page_item > a {
  color: var(--blue);
}
.palmal-nav-links > li > a:hover::after,
.palmal-nav-links > li.current-menu-item > a::after,
.palmal-nav-links > li.current_page_item > a::after {
  width: 100%;
}

/* Sub-menus (dropdown) — if admin adds children */
.palmal-nav-links .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(44,74,140,0.12);
  padding: 8px 0;
  z-index: 9998;
  list-style: none;
}
.palmal-nav-links > li:hover .sub-menu { display: block; }
.palmal-nav-links .sub-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-mid);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.palmal-nav-links .sub-menu li a:hover {
  background: var(--blue-pale);
  color: var(--blue);
}

/* Mobile menu list items from wp_nav_menu */
.palmal-mobile-nav-list { display: none; } /* hidden, items rendered bare */
#palMobileMenu li {
  list-style: none;
}
#palMobileMenu li a {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  display: block;
  padding: 6px 0;
}
#palMobileMenu li a:hover { color: var(--blue); }

/* ── 5. REMOVE OLD MULTI-PAGE SPACING OVERRIDES that fought the spacer ── */
body.admin-bar .pal-page-about,
body.admin-bar .pal-page-business,
body.admin-bar .pal-page-sustainability,
body.admin-bar .pal-page-markets,
body.admin-bar .pal-page-customers,
body.admin-bar .pal-page-contact {
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  .palmal-nav-links { display: none; }
}


/* ══════════════════════════════════════════════════════════
   ELEMENTOR INTEGRATION — v2.0
══════════════════════════════════════════════════════════ */

/* Nav spacer for Elementor pages */
.pal-elementor-nav-spacer {
  height: 68px;
  display: block;
  width: 100%;
}
body.admin-bar .pal-elementor-nav-spacer { height: 100px; }
@media screen and (max-width: 782px) {
  body.admin-bar .pal-elementor-nav-spacer { height: 114px; }
}

/* Main Elementor content wrapper */
.pal-elementor-main {
  min-height: 40vh;
  width: 100%;
}

/* Inside Elementor — make sure our Roboto font applies */
.elementor-widget-container,
.elementor-heading-title,
.elementor-text-editor {
  font-family: var(--font-sans);
}

/* Our Customizer CSS variables available inside Elementor widgets */
.elementor-section,
.elementor-container,
.e-container {
  --e-global-color-primary:     var(--blue,    #2C4A8C);
  --e-global-color-secondary:   var(--green,   #5FBF9F);
  --e-global-color-accent:      var(--gold,    #D4A85A);
  --e-global-color-text:        var(--text-mid,#4A5568);
  --e-global-typography-primary-font-family: 'Roboto';
}

/* Elementor full-width fix — remove default page padding that fights our layout */
.elementor-page .site-content,
.elementor-page .entry-content,
.elementor-page #primary,
.elementor-page #content,
.elementor-page .content-area,
.elementor-page main.site-main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* When Elementor is active on a page — hide the default page title WP adds */
.elementor-page h1.entry-title,
.elementor-page .page-title,
.elementor-page .wp-block-post-title {
  display: none;
}

/* Elementor canvas template — our nav sits on top correctly */
body.elementor-template-canvas #palmal-nav {
  z-index: 9999;
}
body.elementor-template-canvas .pal-elementor-nav-spacer {
  display: none; /* Canvas manages its own spacing */
}

/* Prevent Elementor from inheriting our .palmal-section padding on its wrappers */
.elementor-section.palmal-section {
  padding: 0;
}

/* Make Elementor buttons match our style if admin uses default button widget */
.elementor-button-wrapper .elementor-button {
  font-family: 'Roboto', sans-serif !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}

/* Responsive: hide our custom nav inside Elementor preview iframe
   (Elementor shows its own responsive preview toolbar) */
.elementor-editor-active #palmal-nav {
  pointer-events: none;
}


/* ══════════════════════════════════════════════════════════
   ELEMENTOR COMPAT v2.2
   the_content() must always be called for Elementor's editor
   scanner to work. In static mode we hide it completely.
══════════════════════════════════════════════════════════ */
.pal-hidden-content {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   ██  PALMAL v2.0 — ROYAL EDITION  ██
   Richer royal palette · Playfair Display serif headings ·
   more animation · SVG icon styling · factory filters ·
   buyer/contact blocks · Elementor compatibility
═══════════════════════════════════════════════════════════════ */

/* ── 1. ROYAL PALETTE OVERRIDES ── */
:root {
  --blue:        #1E3A8A;          /* royal blue */
  --blue-deep:   #101C44;          /* midnight royal navy */
  --blue-light:  #3B5BB5;
  --blue-pale:   #E9EEFA;
  --gold:        #C9A24B;          /* rich antique gold */
  --gold-light:  #E8C878;
  --gold-grad:   linear-gradient(120deg, #E8C878 0%, #C9A24B 45%, #A87F2E 100%);
  --royal-grad:  linear-gradient(135deg, #0B1533 0%, #1E3A8A 60%, #2C4A8C 100%);
  --burgundy:    #6E1E33;          /* subtle royal accent */
  --text-dark:   #131C38;
}

/* ── 2. ROYAL SERIF HEADINGS ── */
.palmal-title,
.palmal-hero-inner h1,
.pal-factory-card-body h3,
.pal-el-card h3,
.pal-factory-sidebar-card h4 {
  font-family: var(--font-serif);
  letter-spacing: 0.2px;
}
.palmal-hero-inner h1 em,
.palmal-title span { font-style: italic; }
.palmal-title span {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: palGoldShimmer 5s linear infinite;
}
@keyframes palGoldShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.palmal-divider {
  background: var(--gold-grad);
  height: 3px; width: 56px;
  position: relative;
}
.palmal-divider::after {
  content: '';
  position: absolute; right: -12px; top: -2px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
}
.palmal-eyebrow { color: var(--gold); }

/* ── 3. SVG ICON STYLES ── */
.pal-icon { display: inline-block; vertical-align: -4px; color: var(--gold); }
.pal-stat-icon .pal-icon { color: var(--gold); vertical-align: middle; }
.pal-cert-label .pal-icon,
.pal-factory-stats .pal-icon,
.pal-factory-capacity .pal-icon { vertical-align: -3px; margin-right: 2px; }
.pal-factory-badge .pal-icon { color: var(--gold-light); vertical-align: -2px; }

/* ── 4. FACTORY FILTER BAR ── */
.pal-factory-filters {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: flex-end;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: 0 6px 30px rgba(16,28,68,0.07);
}
.pal-filter-group { flex: 1 1 180px; min-width: 160px; }
.pal-filter-group label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue-deep);
  margin-bottom: 7px;
}
.pal-filter-group select {
  width: 100%; padding: 11px 12px;
  border: 1px solid var(--border); border-radius: 9px;
  font-family: var(--font-sans); font-size: 14px;
  color: var(--text-dark); background: var(--soft-white);
  outline: none; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pal-filter-group select:focus,
.pal-filter-group select:hover { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,0.15); }
.pal-filter-reset {
  padding: 11px 18px; border: 1px solid var(--border);
  background: transparent; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--text-mid);
  transition: all 0.2s; white-space: nowrap;
}
.pal-filter-reset:hover { border-color: var(--burgundy); color: var(--burgundy); background: rgba(110,30,51,0.05); }
.pal-filter-count { font-size: 13px; color: var(--text-light); margin: 0 4px 18px; min-height: 18px; }
.pal-card-hidden { display: none !important; }
.pal-filter-noresults { margin-top: 8px; }

/* ── 5. BUYER / PRODUCT CHIPS & TAGS ── */
.pal-factory-buyer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.pal-buyer-chip {
  font-size: 11px; font-weight: 600; letter-spacing: 0.4px;
  color: var(--blue-deep);
  background: var(--blue-pale);
  border: 1px solid rgba(30,58,138,0.18);
  border-radius: 999px; padding: 3px 10px;
}
.pal-buyer-chip-more { background: var(--gold-grad); color: #fff; border: none; }
.pal-buyer-tag  { background: var(--blue-pale); border-color: rgba(30,58,138,0.2); color: var(--blue-deep); }
.pal-product-tag{ background: #FBF5E8; border-color: rgba(201,162,75,0.35); color: #7A5C1E; }
.pal-buyers-row { margin-top: 18px; }

/* ── 6. FACTORY CONTACT CARD (single page sidebar) ── */
.pal-contact-card { margin-top: 18px; border-top: 3px solid var(--gold); }
.pal-contact-card h4 { display: flex; align-items: center; gap: 8px; }
.pal-contact-list { list-style: none; margin: 0; padding: 0; }
.pal-contact-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--border);
  font-size: 14px; color: var(--text-mid);
}
.pal-contact-list li:last-child { border-bottom: none; }
.pal-contact-list a { color: var(--blue); font-weight: 500; transition: color 0.2s; }
.pal-contact-list a:hover { color: var(--gold); }

/* ── 7. RICHER CARD ANIMATION ── */
.pal-factory-card {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.35s ease;
  position: relative;
}
.pal-factory-card::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid transparent;
  transition: border-color 0.35s ease;
  pointer-events: none;
}
.pal-factory-card:hover { transform: translateY(-8px); box-shadow: 0 22px 48px rgba(16,28,68,0.16); }
.pal-factory-card:hover::after { border-color: rgba(201,162,75,0.55); }
.pal-factory-card-img { overflow: hidden; }
.pal-factory-card-img img { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1); }
.pal-factory-card:hover .pal-factory-card-img img { transform: scale(1.07); }
.pal-factory-card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; background: var(--blue-deep); }
.pal-factory-card-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.pal-factory-empty-icon { color: var(--gold); margin-bottom: 14px; }

/* ── 8. STITCH DECOR & HERO POLISH ── */
.pal-hero-stitch {
  position: absolute; left: 0; right: 0; bottom: 18px; height: 12px;
  background: url('images/apparel/stitch-divider.svg') repeat-x center / 400px 12px;
  opacity: 0.5; pointer-events: none;
}
.pal-factories-hero { position: relative; }
/* v3.4: per-slide hero effects (chosen in Customize → 🖼️ Hero Slider Images) */
.palmal-hero-bg.pal-fx-kenburns { animation: palKenBurns 18s ease-in-out infinite alternate; }
.palmal-hero-bg.pal-fx-zoomout  { animation: palZoomOut  16s ease-out     infinite alternate; }
.palmal-hero-bg.pal-fx-panleft  { animation: palPanLeft  22s ease-in-out  infinite alternate; }
.palmal-hero-bg.pal-fx-panup    { animation: palPanUp    22s ease-in-out  infinite alternate; }
.palmal-hero-bg.pal-fx-none     { animation: none; }
@keyframes palKenBurns { 0% { transform: scale(1); }     100% { transform: scale(1.08); } }
@keyframes palZoomOut  { 0% { transform: scale(1.12); }  100% { transform: scale(1); } }
@keyframes palPanLeft  { 0% { transform: scale(1.08) translateX(1.5%); } 100% { transform: scale(1.08) translateX(-1.5%); } }
@keyframes palPanUp    { 0% { transform: scale(1.08) translateY(1.5%); } 100% { transform: scale(1.08) translateY(-1.5%); } }
.palmal-btn-gold { background: var(--gold-grad); background-size: 160% auto; transition: all 0.3s ease; }
.palmal-btn-gold:hover { background-position: right center; box-shadow: 0 10px 32px rgba(201,162,75,0.45); }

/* ── 9. SCROLL PROGRESS BAR ── */
#palScrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--gold-grad);
  z-index: 99999; pointer-events: none;
  transition: width 0.08s linear;
}
body.admin-bar #palScrollProgress { top: 32px; }

/* ── 10. ELEMENTOR WIDGET STYLES ── */
.pal-elementor-canvas { min-height: 40vh; }
/* Let Elementor sections span full width under our fixed nav */
.pal-elementor-canvas .elementor-section-boxed > .elementor-container { max-width: 1200px; }
.pal-elementor-canvas > .elementor > .elementor-section:first-child:not(.palmal-el-hero) { padding-top: 90px; }

/* Palmal Heading widget */
.pal-el-heading { padding: 6px 0; }

/* Palmal Stats widget */
.pal-el-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px; padding: 30px 0;
}
.pal-el-stats-dark { background: var(--royal-grad); border-radius: 18px; padding: 44px 30px; }
.pal-el-stat { text-align: center; }
.pal-el-stat-icon { font-size: 30px; color: var(--gold); margin-bottom: 10px; }
.pal-el-stat-icon svg { width: 34px; height: 34px; fill: currentColor; }
.pal-el-stat-num {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px); font-weight: 700; color: var(--blue-deep);
}
.pal-el-stats-dark .pal-el-stat-num { color: #fff; }
.pal-el-stat-num .pal-count + * { margin-left: 1px; }
.pal-el-stat-label { font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-light); margin-top: 4px; }
.pal-el-stats-dark .pal-el-stat-label { color: rgba(255,255,255,0.75); }

/* Palmal Icon Cards widget */
.pal-el-cards { display: grid; gap: 22px; padding: 10px 0; }
.pal-el-cards-2 { grid-template-columns: repeat(2, 1fr); }
.pal-el-cards-3 { grid-template-columns: repeat(3, 1fr); }
.pal-el-cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .pal-el-cards-3, .pal-el-cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pal-el-cards-2, .pal-el-cards-3, .pal-el-cards-4 { grid-template-columns: 1fr; } }
.pal-el-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 30px 26px;
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.pal-el-card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(16,28,68,0.12); border-color: rgba(201,162,75,0.5); }
.pal-el-card-icon { font-size: 28px; color: var(--gold); margin-bottom: 14px; }
.pal-el-card-icon svg { width: 32px; height: 32px; fill: currentColor; }
.pal-el-card h3 { font-size: 20px; color: var(--blue-deep); margin-bottom: 8px; }
.pal-el-card p { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* Palmal Brand Logos widget */
.pal-el-brands {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: center;
  align-items: center; padding: 16px 0;
}
.pal-el-brand {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 22px; display: flex; align-items: center; justify-content: center;
  min-width: 130px; height: 74px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pal-el-brand:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(16,28,68,0.1); border-color: rgba(201,162,75,0.5); }
.pal-el-brand img { max-height: 40px; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter 0.3s, opacity 0.3s; }
.pal-el-brand:hover img { filter: grayscale(0); opacity: 1; }

/* Palmal Contact widget */
.pal-el-contact { max-width: 640px; }
.pal-el-contact-row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 15px 4px; border-bottom: 1px dashed var(--border);
}
.pal-el-contact-label { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.pal-el-contact-val { font-size: 15px; color: var(--text-dark); text-align: right; }

/* Elementor hero variant fills its section */
.palmal-el-hero { min-height: 92vh; }

/* Elementor editor niceties — make faded elements visible while editing */
.elementor-editor-active .palmal-fade { opacity: 1 !important; transform: none !important; }

/* ── 11. RESPONSIVE FILTER BAR ── */
@media (max-width: 640px) {
  .pal-factory-filters { flex-direction: column; align-items: stretch; }
  .pal-filter-group { min-width: 100%; }
  .pal-filter-reset { width: 100%; }
}

/* ── 12. REDUCED MOTION RESPECT ── */
@media (prefers-reduced-motion: reduce) {
  .palmal-hero-bg, .palmal-title span { animation: none !important; }
  .pal-factory-card, .pal-el-card, .pal-el-brand { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   ██  v2.1 FIXES & MENU CUSTOMIZATION  ██
═══════════════════════════════════════════════════════════════ */

/* Preloader failsafe — if JS never runs, fade it out via pure CSS
   after 4.5s so the site can never be stuck behind it. */
#palmal-preloader { animation: palPreloaderFailsafe 0.6s ease 4.5s forwards; }
@keyframes palPreloaderFailsafe {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* Solid nav state for Elementor canvas pages (no dark hero behind it) */
#palmal-nav.pal-nav-solid { position: sticky; top: 0; }

/* Palmal Nav Menu Elementor widget */
.pal-el-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center;
}
.pal-el-menu li { position: relative; }
.pal-el-menu a {
  font-size: 14px; font-weight: 500; letter-spacing: 0.4px;
  padding: 8px 2px; display: inline-block;
  transition: color 0.2s;
  position: relative;
}
.pal-el-menu a::after {
  content: ''; position: absolute; left: 0; bottom: 2px;
  width: 0; height: 2px; background: var(--gold-grad);
  transition: width 0.25s ease;
}
.pal-el-menu a:hover::after,
.pal-el-menu .current-menu-item > a::after { width: 100%; }
.pal-el-menu-dark a { color: var(--text-dark); }
.pal-el-menu-dark a:hover { color: var(--blue); }
.pal-el-menu-light a { color: rgba(255,255,255,0.88); }
.pal-el-menu-light a:hover { color: var(--gold-light); }
/* dropdowns */
.pal-el-menu .sub-menu {
  list-style: none; margin: 0; padding: 10px 0;
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--white); border: 1px solid var(--border);
  border-top: 3px solid var(--gold); border-radius: 0 0 12px 12px;
  box-shadow: 0 14px 38px rgba(16,28,68,0.14);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.25s ease; z-index: 50;
}
.pal-el-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.pal-el-menu .sub-menu a { display: block; padding: 8px 18px; color: var(--text-dark) !important; }
.pal-el-menu .sub-menu a::after { display: none; }
.pal-el-menu .sub-menu a:hover { background: var(--blue-pale); color: var(--blue) !important; }
.pal-el-menu-empty {
  padding: 14px 18px; border: 1px dashed var(--border); border-radius: 10px;
  font-size: 13px; color: var(--text-mid); background: var(--soft-white);
}

/* Customizer-driven nav background (set in Customize → Navigation Bar) */
#palmal-nav.pal-nav-custom-bg { background: var(--pal-nav-bg) !important; box-shadow: 0 2px 18px rgba(16,28,68,0.12); }


/* ═══════════════════════════════════════════════════════════════
   ██  v2.6 OFFLINE-PROOF FAILSAFES  ██
═══════════════════════════════════════════════════════════════ */

/* CONTENT CAN NEVER STAY INVISIBLE:
   .palmal-fade starts at opacity 0 and normally reveals on scroll
   via JavaScript. If JS is blocked, broken, or disabled, this pure
   CSS animation force-reveals every element after 4 seconds. */
.palmal-fade { animation: palFadeFailsafe 0.7s ease 4s forwards; }
@keyframes palFadeFailsafe {
  to { opacity: 1; transform: none; }
}

/* Preloader failsafe (backup for the JS one) — fades away after
   3.5s via pure CSS even if not a single line of JS executes. */
#palmal-preloader { animation: palPreloaderFailsafe 0.6s ease 3.5s forwards; }
@keyframes palPreloaderFailsafe {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ═══ v2.8: "UPCOMING" FACTORY STATUS ═══ */
.pal-upcoming-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #7A5C1E;
  background: linear-gradient(120deg, #FBF0D9, #F3DFAE);
  border: 1px solid rgba(201,162,75,0.55);
  border-radius: 999px; padding: 4px 12px;
  animation: palUpcomingPulse 2.4s ease-in-out infinite;
}
.pal-factory-card-img .pal-upcoming-badge {
  position: absolute; top: 12px; right: 12px;
}
@keyframes palUpcomingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,75,0.35); }
  50%       { box-shadow: 0 0 0 7px rgba(201,162,75,0); }
}

/* ═══════════════════════════════════════════════════════════════
   ██  v2.8 EXTRA ANIMATION LAYER  ██
   Tasteful motion additions — all pure CSS, all honor the
   visitor's reduced-motion preference.
═══════════════════════════════════════════════════════════════ */

/* Chart cards: lift + gold edge on hover (matches factory cards) */
.palmal-chart-card {
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.palmal-chart-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(16,28,68,0.12);
  border-color: rgba(201,162,75,0.5);
}

/* Hero CTA: slow golden sheen sweeping across the button */
.palmal-btn-gold { position: relative; overflow: hidden; }
.palmal-btn-gold::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 45%;
  left: -60%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: palBtnSheen 4.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes palBtnSheen {
  0%, 55% { left: -60%; }
  85%, 100% { left: 130%; }
}

/* Hero orbs: gentle drifting float */
.palmal-hero-orb-1 { animation: palOrbFloat1 11s ease-in-out infinite alternate; }
.palmal-hero-orb-2 { animation: palOrbFloat2 14s ease-in-out infinite alternate; }
.palmal-hero-orb-3 { animation: palOrbFloat3 17s ease-in-out infinite alternate; }
@keyframes palOrbFloat1 { to { transform: translate(34px, -26px) scale(1.08); } }
@keyframes palOrbFloat2 { to { transform: translate(-30px, 22px) scale(0.94); } }
@keyframes palOrbFloat3 { to { transform: translate(20px, 30px)  scale(1.05); } }

/* Stat numbers: pop slightly on hover */
.palmal-hero-stats > div { transition: transform 0.3s ease; }
.palmal-hero-stats > div:hover { transform: translateY(-4px) scale(1.04); }

/* Section eyebrows: gold dot pulse */
.palmal-eyebrow { position: relative; }

/* Buyer chips: rise on hover */
.pal-buyer-chip, .pal-cert-tag { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.pal-buyer-chip:hover, .pal-cert-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(16,28,68,0.12);
}

/* Doc/download rows: slide nudge */
.pal-doc-item { transition: transform 0.25s ease, background 0.25s ease; }
.pal-doc-item:hover { transform: translateX(5px); }

/* Respect reduced-motion for every v2.8 animation */
@media (prefers-reduced-motion: reduce) {
  .palmal-btn-gold::after,
  .palmal-hero-orb-1, .palmal-hero-orb-2, .palmal-hero-orb-3,
  .pal-upcoming-badge { animation: none !important; }
  .palmal-chart-card, .palmal-hero-stats > div,
  .pal-buyer-chip, .pal-cert-tag, .pal-doc-item { transition: none !important; }
}

/* ═══ v2.9: "READY FOR ELEMENTOR" editor notice (never-blank) ═══ */
.pal-el-empty-note {
  max-width: 760px; margin: 70px auto; padding: 38px 42px;
  background: #FFFDF7;
  border: 1px solid rgba(201,162,75,0.4);
  border-top: 4px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(16,28,68,0.08);
}
.pal-el-empty-note h2 { font-family: var(--font-serif); color: var(--blue-deep); margin-bottom: 10px; }
.pal-el-empty-note p, .pal-el-empty-note li { color: var(--text-mid); font-size: 15px; line-height: 1.75; }
.pal-el-empty-note ol { margin: 14px 0 14px 20px; }
.pal-el-empty-note li { margin-bottom: 9px; }

/* ═══════════════════════════════════════════════════════════════
   ██  v3.0  ██
   1) centered-hero subtitle alignment fix
   3) royal marquee band
   4) site-wide motion pack
   5) apparel artwork strip + fabric-weave texture
═══════════════════════════════════════════════════════════════ */

/* ── 1. ALIGNMENT FIX ──
   Centered heroes: .palmal-subtitle is a max-width block; without
   auto side-margins it anchored LEFT of the centered title (the
   exact issue in the screenshot). Auto-center the block wherever
   the hero itself is centered. */
.pal-factories-hero .palmal-subtitle,
[style*="text-align:center"] > .palmal-subtitle,
.pal-hero-center .palmal-subtitle {
  margin-left: auto;
  margin-right: auto;
}
.pal-factories-hero .palmal-divider { margin-left: auto; margin-right: auto; }
.pal-factories-hero .palmal-subtitle { max-width: 720px; margin-top: 14px; }

/* ── 3. ROYAL MARQUEE BAND ──
   Full-bleed scrolling band: royal green background, royal gold
   serif lettering. Pure CSS animation (the old <marquee> tag is
   deprecated); pauses on hover and under reduced-motion. */
.pal-marquee {
  --pal-marquee-speed: 45s;   /* slower, stately drift */
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
  background: linear-gradient(120deg, #0A2E1C 0%, #124F31 50%, #0A2E1C 100%);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: 20px 0;   /* exactly 20px between the letters and each border */
}
.pal-marquee-track {
  display: flex;
  width: max-content;
  animation: palMarqueeScroll var(--pal-marquee-speed) linear infinite;
  will-change: transform;
}
.pal-marquee:hover .pal-marquee-track { animation-play-state: paused; }
.pal-marquee-item {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  white-space: nowrap;
  font-family: Impact, 'Arial Narrow', 'Franklin Gothic Bold', sans-serif;
  font-size: 82px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pal-marquee-item .pal-marquee-diamond {
  width: 10px; height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: 0 0 auto;
  -webkit-text-fill-color: initial;
  box-shadow: 0 0 12px rgba(201,162,75,0.6);
}
@keyframes palMarqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 780px) {
  .pal-marquee-item { font-size: 44px; }
}

/* ── 4. SITE-WIDE MOTION PACK ──
   All pure CSS, all disabled under prefers-reduced-motion. */

/* Grid children glide in from alternating sides once revealed */
.pal-factory-grid .palmal-fade:nth-child(3n+1) { transform: translateY(26px) translateX(-18px); }
.pal-factory-grid .palmal-fade:nth-child(3n)   { transform: translateY(26px) translateX(18px); }
.pal-el-cards   .palmal-fade:nth-child(odd)    { transform: translateY(26px) translateX(-14px); }
.pal-el-cards   .palmal-fade:nth-child(even)   { transform: translateY(26px) translateX(14px); }
.palmal-fade.visible { transform: none !important; }

/* Main navigation links: growing gold underline */
#palmal-nav .palmal-nav-links a { position: relative; }
#palmal-nav .palmal-nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--gold-grad);
  transition: width 0.28s ease;
}
#palmal-nav .palmal-nav-links a:hover::after,
#palmal-nav .palmal-nav-links a.active::after { width: 100%; }

/* Gold divider draws itself when its section reveals */
.palmal-fade.visible ~ .palmal-divider,
.palmal-divider.palmal-fade.visible { animation: palDividerDraw 0.7s ease both; }
@keyframes palDividerDraw { from { width: 0; } }

/* Footer links slide + gold tint */
#palmal-footer a { transition: color 0.22s ease, padding-left 0.22s ease; }
#palmal-footer a:hover { color: var(--gold-light) !important; padding-left: 6px; }

/* Sidebar / info cards get a soft gold ring on hover */
.pal-factory-sidebar-card { transition: box-shadow 0.3s ease, transform 0.3s ease; }
.pal-factory-sidebar-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(16,28,68,0.12), 0 0 0 1px rgba(201,162,75,0.35); }

/* Filter bar entrance */
.pal-factory-filters { animation: palFilterDrop 0.55s cubic-bezier(0.2,0.8,0.3,1) both; }
@keyframes palFilterDrop { from { opacity: 0; transform: translateY(-14px); } }

/* Preloader logo heartbeat while loading */
#palmal-preloader img, #palmal-preloader .palmal-logo-text { animation: palLoaderPulse 1.4s ease-in-out infinite; }
@keyframes palLoaderPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: 0.85; } }

/* ── 5. APPAREL ARTWORK STRIP + WEAVE TEXTURE ── */
.pal-apparel-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(18px, 5vw, 64px);
  padding: 34px 20px 6px;
}
.pal-apparel-strip-item { text-align: center; width: 108px; }
.pal-apparel-strip-item img {
  width: 62px; height: 62px; object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(201,162,75,0.25));
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.3,1);
}
.pal-apparel-strip-item:hover img { transform: translateY(-6px) rotate(-4deg) scale(1.08); }
.pal-apparel-strip-item span {
  display: block; margin-top: 9px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--text-light);
}
/* Subtle fabric-weave texture behind soft sections (inline SVG — zero requests) */
.pal-bg-soft {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='none' stroke='%231E3A8A' stroke-opacity='0.045' stroke-width='1'%3E%3Cpath d='M0 7h28M0 21h28'/%3E%3Cpath d='M7 0v28M21 0v28'/%3E%3C/g%3E%3C/svg%3E");
}

/* Reduced motion: switch every v3.0 animation off */
@media (prefers-reduced-motion: reduce) {
  .pal-marquee-track, .pal-factory-filters,
  #palmal-preloader img, #palmal-preloader .palmal-logo-text { animation: none !important; }
  .pal-factory-grid .palmal-fade, .pal-el-cards .palmal-fade { transform: none !important; }
  #palmal-nav .palmal-nav-links a::after,
  .palmal-footer a, .pal-factory-sidebar-card,
  .pal-apparel-strip-item img { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   ██  v3.4: SUSTAINABILITY LENS-FLARE LINES (per b.png)  ██
   The previous version glowed at the corners (a.png) — replaced.
   Now: a continuous razor-thin light line spans the FULL width of
   the block's top and bottom edges, dark at both ends and blazing
   bright green at the center — exactly the b.png lens-flare look.
   The light begins and finishes precisely at the block edges.
═══════════════════════════════════════════════════════════════ */
.palmal-sust-card, .palmal-pillar { position: relative; overflow: hidden; }

.palmal-sust-card::before, .palmal-sust-card::after,
.palmal-pillar::before,    .palmal-pillar::after {
  content: '';
  position: absolute;
  left: 0; right: 0;              /* full width — ends exactly at the edges */
  height: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  /* b.png anatomy: razor-thin line + bright flare core at center */
  background:
    /* the thin line itself */
    linear-gradient(90deg,
      transparent 0%, rgba(0,255,110,0.35) 12%, rgba(70,255,150,0.85) 40%,
      #EFFFF5 50%,
      rgba(70,255,150,0.85) 60%, rgba(0,255,110,0.35) 88%, transparent 100%)
      center / 100% 1.5px no-repeat,
    /* soft flare halo around the center */
    radial-gradient(ellipse 46% 100% at 50% 50%, rgba(60,255,140,0.55), rgba(60,255,140,0) 70%)
      center / 100% 8px no-repeat;
  filter: drop-shadow(0 0 6px rgba(60,255,140,0.6));
}
.palmal-sust-card::before, .palmal-pillar::before { top: -3px; }
.palmal-sust-card::after,  .palmal-pillar::after  { bottom: -3px; }

.palmal-sust-card:hover::before, .palmal-sust-card:hover::after,
.palmal-pillar:hover::before,    .palmal-pillar:hover::after {
  opacity: 1;
  animation: palFlareBreath 2.2s ease-in-out infinite;
}
@keyframes palFlareBreath {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(60,255,140,0.5)); }
  50%      { filter: drop-shadow(0 0 11px rgba(60,255,140,0.9)); }
}

/* companion effects */
.palmal-sust-card:hover { border-color: rgba(62,255,158,0.4); box-shadow: 0 14px 36px rgba(0,0,0,0.22); }
.palmal-sust-icon { display: inline-block; transition: transform 0.35s cubic-bezier(0.2,0.8,0.3,1); }
.palmal-sust-card:hover .palmal-sust-icon { transform: scale(1.18) rotate(-6deg); }
.palmal-sust-num { transition: text-shadow 0.3s ease; }
.palmal-sust-card:hover .palmal-sust-num { text-shadow: 0 0 18px rgba(62,255,158,0.5); }
.palmal-pillar { transition: transform 0.3s ease, border-color 0.3s ease; }
.palmal-pillar:hover { transform: translateY(-3px); border-color: rgba(62,255,158,0.4); }

@media (prefers-reduced-motion: reduce) {
  .palmal-sust-card::before, .palmal-sust-card::after,
  .palmal-pillar::before,    .palmal-pillar::after { animation: none !important; }
  .palmal-sust-icon, .palmal-pillar { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   ██  v3.3: CAREERS · SPLASH SCREEN · BACK-TO-TOP  ██
═══════════════════════════════════════════════════════════════ */

/* ── CAREER PAGE ── */
.pal-jobs-count { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-light); margin: 0 4px 18px; }
.pal-jobs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 860px) { .pal-jobs-grid { grid-template-columns: 1fr; } }
.pal-job-card {
  background: var(--white); border: 1px solid var(--border);
  border-top: 3px solid var(--gold); border-radius: 16px;
  padding: 26px 28px;
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.3,1), box-shadow 0.35s ease;
}
.pal-job-card:hover { box-shadow: 0 20px 44px rgba(16,28,68,0.14); }
.pal-job-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.pal-job-type {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--blue-deep); background: var(--blue-pale);
  border-radius: 999px; padding: 4px 12px;
}
.pal-job-deadline { font-size: 12px; color: var(--burgundy); font-weight: 600; }
.pal-job-card h3 { font-family: var(--font-serif); font-size: 22px; margin: 0 0 12px; }
.pal-job-card h3 a { color: var(--blue-deep); transition: color 0.2s; }
.pal-job-card h3 a:hover { color: var(--gold); }
.pal-job-meta { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.pal-job-meta li { font-size: 14px; color: var(--text-mid); }
.pal-job-btn { display: inline-flex; }
.pal-career-hero { background: linear-gradient(135deg, #0D1B3E 0%, #23306B 50%, #1E3A8A 100%); }

/* single job */
.pal-job-single-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 36px; }
@media (max-width: 900px) { .pal-job-single-grid { grid-template-columns: 1fr; } }
.pal-job-content { color: var(--text-mid); line-height: 1.85; white-space: pre-line; margin-top: 18px; }
.pal-job-closed-note {
  background: #FDF1F0; border: 1px solid rgba(180,35,24,0.3); color: #8a1f16;
  border-radius: 10px; padding: 14px 18px; margin-bottom: 26px;
}
.pal-job-apply-text { font-size: 14px; color: var(--text-mid); line-height: 1.7; }
.pal-job-email-line { text-align: center; font-size: 13px; color: var(--text-light); margin-top: 8px; }
.pal-job-back { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--blue); font-weight: 500; }
.pal-job-back:hover { color: var(--gold); }

/* ── SPLASH SCREEN ── */
html.pal-splash-open { overflow: hidden; }
.pal-splash {
  position: fixed; inset: 0; z-index: 999990;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, rgba(30,58,138,0.92), rgba(11,21,51,0.97));
  backdrop-filter: blur(4px);
  animation: palSplashFadeIn 0.6s ease both;
  padding: 24px;
}
.pal-splash-inner {
  position: relative;
  max-width: 780px; width: 100%;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBF7EE 100%);
  border: 1px solid rgba(201,162,75,0.5);
  border-top: 5px solid var(--gold);
  border-radius: 20px;
  padding: 64px 56px 56px;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0,0,0,0.45);
  animation: palSplashPop 0.65s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}
.pal-splash-img { max-width: 100%; max-height: 320px; border-radius: 12px; margin-bottom: 22px; }
.pal-splash-title {
  font-family: var(--font-serif); font-size: clamp(34px, 5.4vw, 56px);
  color: var(--blue-deep); margin: 0 0 12px;
}
.pal-splash-msg { color: var(--text-mid); font-size: 16px; line-height: 1.75; margin: 0 0 26px; }
.pal-splash-enter { min-width: 180px; justify-content: center; }
.pal-splash-close {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff;
  font-size: 15px; color: var(--text-mid); cursor: pointer;
  transition: all 0.2s ease;
}
.pal-splash-close:hover { border-color: var(--burgundy); color: var(--burgundy); transform: rotate(90deg); }
.pal-splash-hide { animation: palSplashFadeOut 0.5s ease both; }
@keyframes palSplashFadeIn  { from { opacity: 0; } }
@keyframes palSplashFadeOut { to   { opacity: 0; } }
@keyframes palSplashPop     { from { opacity: 0; transform: translateY(26px) scale(0.94); } }

/* ── BACK-TO-TOP BUTTON ── */
#palBackTop {
  position: fixed; right: 26px; bottom: 26px; z-index: 9990;
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(16,28,68,0.18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
#palBackTop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#palBackTop:hover { box-shadow: 0 14px 34px rgba(201,162,75,0.35); }
#palBackTop svg { display: block; }
#palBackTopRing { transition: stroke-dashoffset 0.15s linear; }

@media (prefers-reduced-motion: reduce) {
  .pal-splash, .pal-splash-inner, .pal-splash-hide { animation: none !important; }
  #palBackTop { transition: opacity 0.2s ease; transform: none; }
}


/* ═══ v3.4: SPLASH DESIGN UPGRADE ═══ */
.pal-splash-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 18px;
}
.pal-splash-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 4px auto 18px; max-width: 300px;
  color: var(--gold);
}
.pal-splash-divider::before, .pal-splash-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.pal-splash-divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.pal-splash-corner {
  position: absolute; width: 34px; height: 34px; pointer-events: none;
  border: 2px solid var(--gold);
}
.pal-splash-corner-tl { top: 12px; left: 12px;  border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.pal-splash-corner-tr { top: 12px; right: 12px; border-left: 0;  border-bottom: 0; border-radius: 0 10px 0 0; }
.pal-splash-corner-bl { bottom: 12px; left: 12px;  border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.pal-splash-corner-br { bottom: 12px; right: 12px; border-left: 0;  border-top: 0; border-radius: 0 0 10px 0; }
.pal-splash-sparkles i {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-light); opacity: 0;
  animation: palSparkle 3.6s ease-in-out infinite;
}
.pal-splash-sparkles i:nth-child(1) { top: 12%; left: 10%; animation-delay: 0s; }
.pal-splash-sparkles i:nth-child(2) { top: 20%; right: 12%; animation-delay: 0.7s; }
.pal-splash-sparkles i:nth-child(3) { bottom: 22%; left: 7%; animation-delay: 1.3s; }
.pal-splash-sparkles i:nth-child(4) { bottom: 14%; right: 9%; animation-delay: 1.9s; }
.pal-splash-sparkles i:nth-child(5) { top: 46%; left: 4%; animation-delay: 2.5s; }
.pal-splash-sparkles i:nth-child(6) { top: 52%; right: 5%; animation-delay: 3.1s; }
@keyframes palSparkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50%      { opacity: 1; transform: scale(1.25); box-shadow: 0 0 12px var(--gold-light); }
}
@media (prefers-reduced-motion: reduce) { .pal-splash-sparkles i { animation: none; opacity: 0.4; } }


/* ═══ v3.4: SCROLL INDICATOR + SLIDE CONTENT ENTRANCE ═══ */
.pal-scroll-indicator {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: rgba(255,255,255,0.85); text-decoration: none;
}
.pal-scroll-mouse {
  display: block; width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.7); border-radius: 15px;
  position: relative;
}
.pal-scroll-wheel {
  position: absolute; left: 50%; top: 7px; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 3px; background: var(--gold-light);
  animation: palScrollWheel 1.8s ease-in-out infinite;
}
@keyframes palScrollWheel {
  0%   { top: 7px; opacity: 1; }
  70%  { top: 22px; opacity: 0; }
  100% { top: 7px; opacity: 0; }
}
.pal-scroll-chevrons { display: flex; flex-direction: column; align-items: center; height: 16px; }
.pal-scroll-chevrons i {
  display: block; width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--gold-light); border-bottom: 2px solid var(--gold-light);
  transform: rotate(45deg);
  animation: palChevronDrop 1.8s ease-in-out infinite;
}
.pal-scroll-chevrons i:nth-child(2) { animation-delay: 0.25s; }
@keyframes palChevronDrop {
  0%, 100% { opacity: 0; transform: rotate(45deg) translate(-4px, -4px); }
  50%      { opacity: 1; transform: rotate(45deg) translate(0, 0); }
}
.pal-scroll-text { font-size: 10px; letter-spacing: 2.6px; text-transform: uppercase; }
.pal-scroll-indicator:hover { color: var(--gold-light); }

/* Visible on every slide change: headline, text and stats rise in sequence */
.palmal-slide.active h1 { animation: palSlideRise 0.8s cubic-bezier(0.2,0.8,0.3,1) both; }
.palmal-slide.active p  { animation: palSlideRise 0.8s cubic-bezier(0.2,0.8,0.3,1) 0.18s both; }
.palmal-slide.active .palmal-hero-stats { animation: palSlideRise 0.8s cubic-bezier(0.2,0.8,0.3,1) 0.36s both; }
@keyframes palSlideRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Floating apparel decor drifting in soft sections (very visible, subtle) */
.pal-bg-soft { position: relative; }
.pal-float-decor {
  position: absolute; width: 84px; opacity: 0.10; pointer-events: none;
  animation: palDecorDrift 12s ease-in-out infinite alternate;
}
@keyframes palDecorDrift {
  from { transform: translateY(0) rotate(-4deg); }
  to   { transform: translateY(-26px) rotate(5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pal-scroll-wheel, .pal-scroll-chevrons i,
  .palmal-slide.active h1, .palmal-slide.active p, .palmal-slide.active .palmal-hero-stats,
  .pal-float-decor { animation: none !important; }
}

/* ═══ v3.4: JOB APPLICATION FORM ═══ */
.pal-apply-box {
  margin-top: 40px; padding: 32px 34px;
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--gold); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(16,28,68,0.07);
}
.pal-apply-title { font-family: var(--font-serif); font-size: 24px; color: var(--blue-deep); margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }
.pal-apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 16px; }
@media (max-width: 640px) { .pal-apply-grid { grid-template-columns: 1fr; } }
.pal-apply-form label { display: block; font-size: 13px; font-weight: 600; color: var(--blue-deep); margin-bottom: 14px; }
.pal-apply-form input[type=text], .pal-apply-form input[type=tel],
.pal-apply-form input[type=email], .pal-apply-form textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px;
  font-family: var(--font-sans); font-size: 14px; color: var(--text-dark);
  background: var(--soft-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pal-apply-form input:focus, .pal-apply-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,0.15);
}
.pal-apply-file input[type=file] { display: block; margin-top: 8px; font-size: 13px; }
.pal-apply-file-hint { font-weight: 400; color: var(--text-light); font-size: 12px; }
.pal-apply-submit { margin-top: 8px; min-width: 220px; justify-content: center; }
.pal-apply-success {
  background: #EDFBF2; border: 1px solid rgba(31,122,77,0.35); color: #14532d;
  border-radius: 12px; padding: 18px 20px; line-height: 1.7;
}
.pal-apply-error {
  background: #FDF1F0; border: 1px solid rgba(180,35,24,0.35); color: #8a1f16;
  border-radius: 10px; padding: 12px 16px; margin-bottom: 18px;
}
.pal-apply-js-error { color: #8a1f16; font-size: 13px; margin: -6px 0 12px; }


/* ═══════════════════════════════════════════════════════════════
   ██  v3.5  ██
   sustainability gap fix · buyer-share chart · job lists ·
   hero atmosphere effects
═══════════════════════════════════════════════════════════════ */

/* ── 2. SUSTAINABILITY PAGE GAP FIX ──
   On the standalone Sustainability page the 68px nav spacer stacked
   on the section's 96px top padding = a huge empty band (your
   screenshot). Scoped to the page only, so the homepage keeps its
   normal section rhythm. */
.page-template-page-sustainability .pal-page-sustainability.palmal-section { padding-top: 34px; }
.page-template-page-sustainability .pal-nav-spacer--green { height: 68px; }

/* ── 3. BUYER SHARE CHART (Customers page) ── */
.pal-share-tabs { display: flex; gap: 10px; margin: 26px 0 22px; flex-wrap: wrap; }
.pal-share-tab {
  padding: 10px 26px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--white);
  font-family: var(--font-serif); font-size: 17px; font-weight: 600;
  color: var(--text-mid); cursor: pointer;
  transition: all 0.25s ease;
}
.pal-share-tab:hover { border-color: var(--gold); color: var(--blue-deep); }
.pal-share-tab.active {
  background: var(--royal-grad); color: #fff; border-color: transparent;
  box-shadow: 0 8px 22px rgba(16,28,68,0.25);
}
.pal-share-panel { display: none; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 26px 30px; }
.pal-share-panel.active { display: block; animation: palSharePanelIn 0.4s ease both; }
@keyframes palSharePanelIn { from { opacity: 0; transform: translateY(10px); } }
.pal-share-row {
  display: grid; grid-template-columns: 220px 1fr 64px;
  align-items: center; gap: 16px;
  padding: 9px 0; border-bottom: 1px dashed var(--border);
}
.pal-share-row:last-child { border-bottom: none; }
@media (max-width: 640px) { .pal-share-row { grid-template-columns: 130px 1fr 52px; } }
.pal-share-name { font-size: 14px; font-weight: 500; color: var(--text-dark); }
.pal-share-track {
  display: block; height: 14px; border-radius: 999px;
  background: var(--blue-pale); overflow: hidden;
}
.pal-share-bar {
  display: block; height: 100%; width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 55%, var(--gold) 130%);
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.pal-share-pct {
  font-family: var(--font-serif); font-size: 16px; font-weight: 700;
  color: var(--blue-deep); text-align: right;
}

/* ── 1. JOB RESPONSIBILITY / REQUIREMENT LISTS ── */
.pal-job-list-block { margin-top: 30px; }
.pal-job-list-title {
  font-family: var(--font-serif); font-size: 21px; color: var(--blue-deep);
  display: flex; align-items: center; gap: 9px; margin: 0 0 12px;
}
.pal-job-list { list-style: none; margin: 0; padding: 0; }
.pal-job-list li {
  position: relative; padding: 7px 0 7px 28px;
  color: var(--text-mid); font-size: 15px; line-height: 1.7;
}
.pal-job-list li::before {
  content: ''; position: absolute; left: 4px; top: 15px;
  width: 8px; height: 8px; transform: rotate(45deg);
  background: var(--gold-grad);
}

/* ── 5. HERO ATMOSPHERE EFFECTS (chosen in the Customizer) ── */
/* bubbles (default) use the existing .palmal-particle styles */
.pal-atmo-sparkle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, #FFF6D9 0%, var(--gold-light) 55%, transparent 75%);
  animation: palAtmoSparkle linear infinite;
  pointer-events: none;
}
@keyframes palAtmoSparkle {
  0%   { transform: translateY(0) scale(0.4); opacity: 0; }
  15%  { opacity: 0.9; }
  50%  { transform: translateY(-45vh) scale(1); opacity: 0.55; }
  100% { transform: translateY(-92vh) scale(0.3); opacity: 0; }
}
.pal-atmo-thread {
  position: absolute; top: -22vh; width: 1px; height: 22vh;
  background: linear-gradient(180deg, transparent, rgba(232,200,120,0.55), transparent);
  animation: palAtmoThread linear infinite;
  pointer-events: none;
}
@keyframes palAtmoThread {
  from { transform: translateY(0); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  to   { transform: translateY(130vh); opacity: 0; }
}
.pal-atmo-snowflake {
  position: absolute; top: -4vh; border-radius: 50%;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 8px rgba(255,255,255,0.55);
  animation: palAtmoSnow linear infinite;
  pointer-events: none;
}
@keyframes palAtmoSnow {
  from { transform: translateY(0) translateX(0); }
  25%  { transform: translateY(28vh) translateX(18px); }
  50%  { transform: translateY(56vh) translateX(-14px); }
  75%  { transform: translateY(82vh) translateX(16px); }
  to   { transform: translateY(108vh) translateX(-8px); opacity: 0.2; }
}
@media (prefers-reduced-motion: reduce) {
  .pal-atmo-sparkle, .pal-atmo-thread, .pal-atmo-snowflake { animation: none !important; display: none; }
}

/* ═══ v3.6: POSITION SUMMARY — HEAD NAMES INSTEAD OF ICONS ═══ */
.pal-summary-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pal-sum-label {
  flex: 0 0 auto;
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--gold);
}
.pal-summary-list li > span:last-child { text-align: right; color: var(--text-mid); }






/* ═══════════════════════════════════════════════════════════════
   ██  v3.7: APPLY-FORM ACCORDION  ██
   The "Submit Application" button stays in place and toggles the
   full application form open/closed beneath it (f1 → f2).
═══════════════════════════════════════════════════════════════ */
.pal-apply-accordion { margin-top: 40px; }
.pal-apply-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 240px; justify-content: center;
  font-size: 15px; padding: 15px 32px; cursor: pointer;
}
.pal-apply-toggle-caret { transition: transform 0.35s ease; font-size: 12px; }
.pal-apply-toggle.is-open .pal-apply-toggle-caret { transform: rotate(180deg); }

.pal-apply-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.35s ease, margin-top 0.35s ease;
  margin-top: 0;
}
.pal-apply-panel.is-open {
  max-height: 1400px;   /* generous cap; content is well under this */
  opacity: 1;
  margin-top: 22px;
}

/* ═══════════════════════════════════════════════════════════════
   ██  v3.7: ACCORDION APPLY FORM (f1 → f2)  ██
   "Submit Application" button stays in place; the full form is
   hidden and slides open beneath it when the button is clicked.
═══════════════════════════════════════════════════════════════ */
.pal-apply-accordion { margin-top: 40px; }
.pal-apply-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 240px; justify-content: center;
  font-size: 15px; padding: 15px 34px; cursor: pointer;
}
.pal-apply-toggle-caret { transition: transform 0.3s ease; font-size: 12px; }
.pal-apply-toggle.is-open .pal-apply-toggle-caret { transform: rotate(180deg); }

.pal-apply-panel {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.2,0.8,0.3,1), opacity 0.4s ease, margin-top 0.4s ease;
  margin-top: 0;
}
.pal-apply-panel.is-open {
  max-height: 1200px; opacity: 1; margin-top: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   ██  v3.7: GORGEOUS PRODUCTION DASHBOARD BOXES + WATERMARK  ██
   Scoped to the Production Dashboard (capacity) cards ONLY.
═══════════════════════════════════════════════════════════════ */
.palmal-cap-card {
  background-color: transparent;
  background-image:
    url('images/logo-watermark.png'),
    linear-gradient(160deg, #FFFFFF 0%, #FBFCFE 55%, #F3F6FC 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: right -26px bottom -30px, 0 0;
  background-size: 170px auto, 100% 100%;
  border: 1px solid rgba(30, 58, 138, 0.10);
  box-shadow: 0 1px 2px rgba(16,28,68,0.05), 0 10px 30px rgba(16,28,68,0.07), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.palmal-cap-card:hover {
  transform: translateY(-9px);
  border-color: rgba(201,162,75,0.45);
  box-shadow: 0 4px 10px rgba(16,28,68,0.08), 0 26px 54px rgba(16,28,68,0.16), inset 0 1px 0 rgba(255,255,255,0.9);
}
.palmal-cap-card::after { transition: height 0.3s ease, box-shadow 0.3s ease; }
.palmal-cap-card:hover::after { height: 5px; box-shadow: 0 -2px 14px currentColor; }
.palmal-cap-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 66px; height: 66px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #FFF8E8, #F6ECD4);
  box-shadow: inset 0 0 0 1px rgba(201,162,75,0.35), 0 6px 16px rgba(201,162,75,0.18);
  margin-bottom: 14px;
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.3,1), box-shadow 0.35s ease;
}
.palmal-cap-card:hover .palmal-cap-icon { transform: translateY(-4px) scale(1.1) rotate(-5deg); box-shadow: inset 0 0 0 1px rgba(201,162,75,0.55), 0 10px 24px rgba(201,162,75,0.3); }
.palmal-cap-number { text-shadow: 0 1px 0 #fff; transition: transform 0.3s ease; }
.palmal-cap-card:hover .palmal-cap-number { transform: scale(1.05); }

/* ═══ v3.7: PREMIUM HERO ATMOSPHERES ═══ */
.pal-atmo-snowflex { position:absolute; top:-4vh; border-radius:50%; background:rgba(255,255,255,0.9); box-shadow:0 0 8px rgba(255,255,255,0.6);
  animation-name: palSnowFlexFall, palSnowFlexSway; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite, infinite; pointer-events:none; }
@keyframes palSnowFlexFall { to { transform: translateY(108vh); } }
@keyframes palSnowFlexSway { 0%,100%{ margin-left:0; } 50%{ margin-left: var(--sway,40px); } }
.pal-atmo-droplet { position:absolute; top:-8vh; width:2px; height:22px; background:linear-gradient(180deg,transparent,rgba(180,220,255,0.85)); border-radius:0 0 3px 3px; animation:palDropFall linear infinite; pointer-events:none; }
@keyframes palDropFall { to { transform: translateY(115vh); } }
.pal-atmo-ripple { position:absolute; width:26px; height:9px; border:1.5px solid rgba(180,220,255,0.6); border-radius:50%; animation:palRipple ease-out infinite; pointer-events:none; }
@keyframes palRipple { 0%{ transform:scale(0.2); opacity:0.9; } 100%{ transform:scale(2.6); opacity:0; } }
.pal-atmo-matrix { position:absolute; top:-55vh; font-family:'Courier New',monospace; color:#4DFF88; text-shadow:0 0 8px rgba(77,255,136,0.8); line-height:1.25; animation:palMatrixFall linear infinite; pointer-events:none; user-select:none; }
@keyframes palMatrixFall { to { transform: translateY(190vh); } }
.pal-atmo-goldrain { position:absolute; top:-12vh; width:1.5px; background:linear-gradient(180deg,transparent,var(--gold-light) 40%,rgba(255,244,214,0.95)); border-radius:2px; animation:palGoldRain linear infinite; pointer-events:none; }
@keyframes palGoldRain { to { transform: translateY(118vh); } }
.pal-atmo-firefly { position:absolute; border-radius:50%; background:radial-gradient(circle,#FFF9DF 0%,#E8C878 60%,transparent 75%);
  animation-name:palFireflyDrift,palFireflyGlow; animation-timing-function:ease-in-out,ease-in-out; animation-iteration-count:infinite,infinite; animation-direction:alternate,normal; pointer-events:none; }
@keyframes palFireflyDrift { to { transform: translate(var(--fx,40px), var(--fy,-30px)); } }
@keyframes palFireflyGlow { 0%,100%{ opacity:0.15; box-shadow:0 0 4px rgba(232,200,120,0.4); } 50%{ opacity:1; box-shadow:0 0 14px rgba(232,200,120,0.95),0 0 26px rgba(232,200,120,0.5); } }
.pal-atmo-ember { position:absolute; bottom:-4vh; border-radius:50%; background:radial-gradient(circle,#FFE9B8 0%,#E8A34B 55%,transparent 78%); animation:palEmberRise ease-out infinite; pointer-events:none; }
@keyframes palEmberRise { 0%{ transform:translate(0,0) scale(1); opacity:0; } 12%{ opacity:0.9; } 100%{ transform:translate(var(--ex,30px),-105vh) scale(0.35); opacity:0; } }
.pal-atmo-aurora { position:absolute; inset:-30% -20%; filter:blur(70px); opacity:0.35; pointer-events:none; mix-blend-mode:screen; }
.pal-atmo-aurora-1 { background:radial-gradient(ellipse 55% 40% at 30% 40%,rgba(95,191,159,0.55),transparent 70%); animation:palAurora1 16s ease-in-out infinite alternate; }
.pal-atmo-aurora-2 { background:radial-gradient(ellipse 50% 38% at 70% 55%,rgba(201,162,75,0.45),transparent 70%); animation:palAurora2 21s ease-in-out infinite alternate; }
.pal-atmo-aurora-3 { background:radial-gradient(ellipse 60% 42% at 50% 30%,rgba(74,122,199,0.5),transparent 72%); animation:palAurora3 26s ease-in-out infinite alternate; }
@keyframes palAurora1 { to { transform: translate(9%,6%) rotate(8deg); } }
@keyframes palAurora2 { to { transform: translate(-8%,-5%) rotate(-6deg); } }
@keyframes palAurora3 { to { transform: translate(5%,8%) rotate(5deg); } }

@media (prefers-reduced-motion: reduce) {
  .palmal-cap-card, .palmal-cap-icon, .palmal-cap-number { transition: none !important; }
  .pal-atmo-snowflex, .pal-atmo-droplet, .pal-atmo-ripple, .pal-atmo-matrix,
  .pal-atmo-goldrain, .pal-atmo-firefly, .pal-atmo-ember, .pal-atmo-aurora { animation: none !important; display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   ██  v3.7: APPLICATION ACCORDION (f1 → f2)  ██
   "Submit Application" button stays in place; the form is hidden
   and expands smoothly beneath it when the button is clicked.
═══════════════════════════════════════════════════════════════ */
.pal-apply-accordion { margin-top: 40px; }
.pal-apply-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 240px; justify-content: center;
  font-size: 15px; padding: 15px 34px; cursor: pointer;
}
.pal-apply-toggle-caret { transition: transform 0.35s ease; font-size: 13px; }
.pal-apply-accordion.is-open .pal-apply-toggle-caret { transform: rotate(180deg); }
.pal-apply-panel {
  max-height: 0; overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.25, 0.8, 0.35, 1);
}
.pal-apply-panel .pal-apply-box { margin-top: 20px; }

/* ═══ v3.8: RECENT ACHIEVEMENTS (Sustainability page) ═══ */
.pal-achievements { background: linear-gradient(180deg, #0B1A12 0%, #10281B 100%); color: #fff; }
.pal-achievements .palmal-title, .pal-achievements .palmal-subtitle { color: #fff; }
.pal-achievements .palmal-title span { color: var(--gold-light); }
.pal-achv-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px; margin-top: 40px;
}
.pal-achv-card {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(232,200,120,0.25);
  border-radius: 18px; padding: 30px 28px 26px;
  backdrop-filter: blur(4px);
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.3,1), box-shadow 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
}
.pal-achv-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(232,200,120,0.14), transparent 60%);
  pointer-events: none;
}
.pal-achv-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232,200,120,0.6);
  box-shadow: 0 24px 50px rgba(0,0,0,0.4);
}
.pal-achv-card-badge {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
  background: radial-gradient(circle at 30% 25%, #FFF8E8, #E8C878);
  box-shadow: 0 6px 18px rgba(232,200,120,0.35);
}
.pal-achv-date {
  position: absolute; top: 24px; right: 24px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: var(--gold-light); text-transform: uppercase;
}
.pal-achv-card-title { font-family: var(--font-serif); font-size: 22px; color: #fff; margin: 0 0 10px; }
.pal-achv-card-desc { color: rgba(255,255,255,0.78); font-size: 14.5px; line-height: 1.7; margin: 0 0 18px; }
.pal-achv-files { display: flex; flex-direction: column; gap: 9px; }
.pal-achv-file-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--gold-light);
  text-decoration: none; padding: 8px 12px;
  background: rgba(232,200,120,0.08);
  border: 1px solid rgba(232,200,120,0.25);
  border-radius: 8px; transition: all 0.25s ease;
}
.pal-achv-file-link:hover { background: rgba(232,200,120,0.18); border-color: var(--gold-light); transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .pal-achv-card, .pal-achv-file-link { transition: none !important; }
}

/* ═══ v3.8: SITE-WIDE RICHNESS & ANIMATION ═══ */
/* (reveal-on-scroll handled by existing .palmal-fade / .palmal-fade.in rules + JS observer) */

/* Gentle gradient shimmer on section eyebrows */
.palmal-eyebrow { position: relative; }

/* Card lift used broadly */
.palmal-card, .pal-factory-card, .pal-job-card {
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.3,1), box-shadow 0.35s ease;
}
.palmal-card:hover, .pal-factory-card:hover, .pal-job-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(16,28,68,0.14);
}

/* Animated gradient underline under section titles */
.palmal-title span { background-size: 200% auto; }

/* Buttons get a subtle sheen sweep on hover */
.palmal-btn-gold { position: relative; overflow: hidden; }
.palmal-btn-gold::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.palmal-btn-gold:hover::after { left: 130%; }

@media (prefers-reduced-motion: reduce) {
  .palmal-fade { opacity: 1 !important; transform: none !important; }
  .palmal-btn-gold::after { display: none; }
}
