/* ==========================================================================
   Paxel Cold Chain — design tokens
   Brand source of truth: paxel-brand skill (colors/type).
   Icy gradient tones for hero/section backgrounds are page-specific art
   direction from the approved brief, layered on top of the base palette.
   ========================================================================== */
:root {
  --color-purple: #5845A5;
  --color-purple-deep: #3B2E7A;
  --color-purple-ice: #2D2258;
  --color-yellow: #F4AA0D;
  --color-red: #EF2F4B;
  --color-body: #4A4A6A;
  --color-tint: #EEECF8;
  --color-white: #FFFFFF;
  --color-ink: #241C4A;

  --font-base: "Nunito Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1200px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 8px 24px rgba(36, 28, 74, 0.08);
  --shadow-pill: 0 10px 24px rgba(239, 47, 75, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-body);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 {
  color: var(--color-purple);
  margin: 0 0 16px;
  line-height: 1.25;
}
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-intro { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-intro p { font-size: 17px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-white { background: var(--color-white); color: var(--color-purple); }
.btn-primary { background: var(--color-yellow); color: var(--color-ink); }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-purple);
  color: var(--color-white);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo-lockup { display: flex; align-items: center; gap: 10px; }
.logo-lockup svg { height: 32px; width: auto; }
.logo-wordmark { font-weight: 800; font-size: 20px; color: var(--color-white); }

.primary-nav ul { display: flex; gap: 32px; align-items: center; }
.primary-nav a { font-weight: 600; font-size: 15px; }
.lang-switch { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; }
.lang-switch a { opacity: 0.6; }
.lang-switch a.active { opacity: 1; text-decoration: underline; }

.sub-nav {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-tint);
  position: sticky;
  top: 0;
  z-index: 50;
}
.sub-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.sub-nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.sub-nav-links a {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-purple);
}
.sub-nav-links a.active,
.sub-nav-links a:hover { background: var(--color-tint); }
.sub-nav .btn { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--color-purple);
  color: var(--color-white);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  min-height: 560px;
}
.hero-copy { padding: 48px 0; position: relative; z-index: 2; }
.hero-copy h1 { color: var(--color-white); }
.hero-copy p { font-size: 17px; margin-bottom: 28px; max-width: 480px; }
.hero-highlight { color: var(--color-yellow); }
.hero-media {
  position: relative;
  height: 100%;
  min-height: 420px;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hera-chip {
  position: absolute;
  right: 24px;
  bottom: 24px;
  background: #2C4B8C;
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  box-shadow: var(--shadow-card);
  z-index: 3;
}
.hera-chip strong { display: block; font-size: 14px; }

/* ---------- Service tiers ---------- */
.tiers-section {
  background: var(--color-white) url("../assets/img/bg-frost-white.jpg") center/cover no-repeat;
}
.tiers-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}
.tiers-intro img { max-width: 440px; margin-top: 24px; }
.tier-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.tier-card {
  border: 1px solid var(--color-tint);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}
.tier-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--color-yellow);
  color: var(--color-ink);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.tier-icon { width: 200px; height: 200px; margin-bottom: 16px; }
.tier-card p.tier-sub { font-weight: 600; color: var(--color-purple); margin-bottom: 12px; }
.tier-detail {
  background: var(--color-purple);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  margin: 0;
}

.stat-bar {
  background: var(--color-purple);
  color: var(--color-white);
  margin-top: 56px;
  border-radius: var(--radius-lg);
}
.stat-bar .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 32px 24px;
}
.stat-item { text-align: center; border-left: 1px solid rgba(255,255,255,0.25); padding: 0 12px; }
.stat-item:first-child { border-left: none; }
.stat-value { font-size: 30px; font-weight: 800; color: var(--color-yellow); display: block; }
.stat-label { font-size: 13px; opacity: 0.85; }

/* ---------- How it works ---------- */
.how-section {
  background: var(--color-purple-ice) url("../assets/img/bg-frost-purple.jpg") center/cover no-repeat;
  color: var(--color-white);
  text-align: center;
}
.how-section h2 { color: var(--color-white); }
.how-section .section-intro p { color: rgba(255,255,255,0.8); }
.timeline { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  top: 85px;
  left: 10%;
  right: 10%;
  border-top: 2px dashed rgba(255,255,255,0.35);
  z-index: 0;
}
.timeline-step { flex: 1; position: relative; z-index: 1; }
.timeline-icon {
  width: 170px;
  height: 170px;
  background: #FBF3E6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.timeline-icon img { width: 85px; height: 85px; }
.timeline-step h3 { color: var(--color-white); }
.timeline-step p { font-size: 14px; color: rgba(255,255,255,0.75); }

/* ---------- Why Paxel ---------- */
.why-section {
  position: relative;
  background: url("../assets/img/bg-rain-street.jpg") center/cover no-repeat;
}
.why-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.88) 35%, rgba(255,255,255,0.55) 70%, rgba(255,255,255,0.25) 100%);
}
.why-section .container { position: relative; z-index: 1; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.why-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--color-tint);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.why-card img { width: 200px; height: 200px; margin-bottom: 14px; }
.why-card p { font-size: 14px; margin: 0; }

/* ---------- Social proof ---------- */
.proof-section { background: var(--color-purple); color: var(--color-white); }
.proof-section h2 { color: var(--color-yellow); text-align: center; }
.proof-section .section-intro p { color: rgba(255,255,255,0.85); }
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin: 40px 0 56px;
}
.logo-row img { height: 44px; width: auto; opacity: 0.9; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.testimonial-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.testimonial-card .quote-mark { color: var(--color-yellow); font-size: 32px; font-weight: 800; line-height: 1; }
.testimonial-card p.quote { font-size: 14px; margin: 12px 0 20px; }
.testimonial-card .cite { border-left: 3px solid var(--color-yellow); padding-left: 12px; font-size: 13px; }
.testimonial-card .cite strong { display: block; color: var(--color-white); }

/* ---------- FAQ ---------- */
.faq-section { background: var(--color-white); }
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--color-tint);
  border-radius: var(--radius-md);
  background: #FAFAFD;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--color-purple);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--color-purple);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 22px 20px; font-size: 15px; }

/* ---------- Floating WhatsApp CTA ---------- */
.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--color-red);
  color: var(--color-white);
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-pill);
  z-index: 100;
}
.floating-cta img { width: 24px; height: 24px; filter: brightness(0) invert(1); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: rgba(255,255,255,0.7);
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
}
.site-footer strong { color: var(--color-yellow); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { min-height: 320px; clip-path: none; }
  .tiers-layout { grid-template-columns: minmax(0, 1fr); }
  .tier-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-bar .container { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .timeline { flex-direction: column; gap: 32px; }
  .timeline::before { display: none; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .testimonial-grid { grid-template-columns: minmax(0, 1fr); }
  .primary-nav ul { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .sub-nav-links { overflow-x: auto; flex-wrap: nowrap; }
  .logo-row { gap: 28px; }
  .logo-row img { height: 24px; }
}
