/* ══════════════════════════════════════════════════════
   PileHead Footer — Complete Redesign
   Version: 1.0.0
══════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────── */
.ph-footer {
  --pf-ink:    #1a1a18;
  --pf-deep:   #111110;
  --pf-rust:   #c8441a;
  --pf-white:  #ffffff;
  --pf-dim:    #888580;
  --pf-muted:  #555452;
  --pf-border: rgba(255,255,255,.07);
  font-family: 'DM Sans', 'Inter', sans-serif;
  background: var(--pf-ink);
  color: var(--pf-dim);
}

/* ── Container ──────────────────────────────────────── */
.ph-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════════════════
   MAIN SECTION
══════════════════════════════════════════════════════ */
.ph-footer-main {
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--pf-border);
}

.ph-footer-grid {
  display: grid;
  grid-template-columns: 300px repeat(4, 1fr);
  gap: 48px;
  align-items: start;
}

/* ── Brand Column ───────────────────────────────────── */
.ph-footer-brand {}

.ph-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 18px;
}

.ph-footer-logo-text {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--pf-white);
  letter-spacing: -.025em;
  line-height: 1;
}

.ph-footer-logo-text em {
  color: var(--pf-rust);
  font-style: normal;
}

.ph-footer-logo-dot {
  width: 8px;
  height: 8px;
  background: var(--pf-rust);
  border-radius: 50%;
  flex-shrink: 0;
}

.ph-footer-tagline {
  font-size: 13px;
  line-height: 1.7;
  color: var(--pf-dim);
  margin-bottom: 24px;
  max-width: 260px;
}

.ph-footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: var(--pf-white);
  font-size: 13px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 99px;
  text-decoration: none;
  transition: background .25s ease, transform .2s ease;
  margin-bottom: 22px;
}

.ph-footer-wa:hover {
  background: #1ebe5d;
  color: var(--pf-white);
  transform: translateY(-1px);
}

.ph-footer-wa svg {
  width: 18px;
  height: 18px;
  fill: var(--pf-white);
  flex-shrink: 0;
}

.ph-footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ph-footer-contact-list a,
.ph-footer-contact-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--pf-dim);
  text-decoration: none;
  transition: color .2s ease;
}

.ph-footer-contact-list a:hover { color: var(--pf-white); }

.ph-footer-contact-list svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: .6;
  stroke: currentColor;
  fill: none;
}

/* ── Nav Columns ────────────────────────────────────── */
.ph-footer-col {}

.ph-footer-col-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pf-rust);
  font-weight: 700;
  margin: 0 0 18px;
  display: block;
}

.ph-footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--pf-dim);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .2s ease, transform .2s ease;
  line-height: 1.3;
}

.ph-footer-col a:hover {
  color: var(--pf-white);
  transform: translateX(4px);
}

/* App links in brand col */
.ph-footer-app-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pf-rust);
  font-weight: 700;
  margin: 28px 0 10px;
  display: block;
}

.ph-footer-app-row {
  display: flex;
  gap: 8px;
}

.ph-footer-app-row a img {
  height: 30px;
  opacity: .65;
  transition: opacity .2s ease;
}

.ph-footer-app-row a:hover img { opacity: 1; }

/* ══════════════════════════════════════════════════════
   TRUST BAR
══════════════════════════════════════════════════════ */
.ph-footer-trust {
  background: var(--pf-deep);
  border-bottom: 1px solid var(--pf-border);
}

.ph-footer-trust-row {
  display: flex;
  align-items: stretch;
}

.ph-footer-trust-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  border-right: 1px solid var(--pf-border);
  transition: background .2s ease;
  min-width: 0;
}

.ph-footer-trust-item:last-child { border-right: none; }
.ph-footer-trust-item:hover { background: rgba(255,255,255,.025); }

.ph-footer-trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(200,68,26,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ph-footer-trust-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--pf-rust);
  fill: none;
  stroke-width: 1.8;
}

.ph-footer-trust-label { font-size: 12.5px; font-weight: 600; color: #ddd; display: block; margin-bottom: 2px; }
.ph-footer-trust-sub   { font-size: 11px; color: var(--pf-muted); display: block; }

/* ══════════════════════════════════════════════════════
   BOTTOM BAR
══════════════════════════════════════════════════════ */
.ph-footer-bottom {
  background: var(--pf-deep);
  padding: 16px 0;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.ph-footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ph-footer-copyright {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .07em;
  color: var(--pf-muted);
}

.ph-footer-payment {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ph-footer-payment img {
  height: 22px;
  opacity: .55;
  transition: opacity .2s ease;
  filter: brightness(0) invert(1);
}

.ph-footer-payment img:hover { opacity: 1; }

.ph-footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ph-footer-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--pf-dim);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.ph-footer-social-btn:hover {
  background: var(--pf-rust);
  border-color: var(--pf-rust);
  color: var(--pf-white);
}

.ph-footer-social-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ph-footer-grid {
    grid-template-columns: 220px repeat(4, 1fr);
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .ph-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .ph-footer-brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px 40px;
    align-items: start;
  }
  /* left col: logo + tagline + wa button */
  .ph-footer-logo     { grid-row: 1; grid-column: 1; }
  .ph-footer-tagline  { grid-row: 2; grid-column: 1; margin-bottom: 0; }
  .ph-footer-wa       { grid-row: 3; grid-column: 1; }
  /* right col: contact + app links */
  .ph-footer-contact-list { grid-row: 1 / 3; grid-column: 2; margin-bottom: 0; }
  .ph-footer-app-heading  { grid-row: 3; grid-column: 2; }
  .ph-footer-app-row      { grid-row: 4; grid-column: 2; }
  .ph-footer-trust-item { padding: 16px 18px; gap: 10px; }
}

/* ── Mobile: 2-column nav grid ─────────────────────── */
@media (max-width: 640px) {
  .ph-footer-container { padding: 0 16px; }
  .ph-footer-main { padding: 36px 0 28px; }

  /* Brand block: single column, compact */
  .ph-footer-brand {
    grid-column: 1 / -1;
    display: block;
  }
  .ph-footer-tagline {
    max-width: none;
    font-size: 12.5px;
    margin-bottom: 18px;
  }
  .ph-footer-contact-list {
    font-size: 12.5px;
    margin-bottom: 18px;
  }
  .ph-footer-app-row img { height: 30px; }

  /* Nav columns: 2 per row */
  .ph-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
  }
  .ph-footer-col-heading { font-size: 10px; margin-bottom: 10px; }
  .ph-footer-col a,
  .ph-footer-col span { font-size: 12.5px; }

  /* Trust bar: 2-column */
  .ph-footer-trust-row { flex-wrap: wrap; }
  .ph-footer-trust-item {
    flex: 0 0 50%;
    border-right: none;
    border-bottom: 1px solid var(--pf-border);
    padding: 14px 16px;
    gap: 10px;
  }
  .ph-footer-trust-item:nth-child(odd) { border-right: 1px solid var(--pf-border); }
  .ph-footer-trust-item:nth-last-child(-n+2) { border-bottom: none; }
  .ph-footer-trust-icon { width: 30px; height: 30px; }
  .ph-footer-trust-icon svg { width: 14px; height: 14px; }
  .ph-footer-trust-label { font-size: 11px; }
  .ph-footer-trust-sub   { font-size: 10px; }

  /* Bottom bar */
  .ph-footer-bottom { padding-bottom: 72px; }
  .ph-footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ph-footer-copyright { font-size: 11px; }
  .ph-footer-payment img { height: 20px; }
  .ph-footer-social { flex-wrap: wrap; }
}
