/* ==========================================================================
   Tacos El Paco — Privacy Consent UI
   Shared styling for the consent banner, preference modal, footer link,
   and click-to-load embed placeholders. Loaded on every page.
   ========================================================================== */

:root {
  --pc-red: #9B1C1C;
  --pc-red-deep: #7a1616;
  --pc-ink: #1A1210;
  --pc-gold: #D4B882;
  --pc-cream: #F2EAD8;
  --pc-paper: #faf6ec;
}

/* ---------- Banner ---------- */
#pc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--pc-ink);
  color: var(--pc-cream);
  border-top: 2px solid var(--pc-gold);
  padding: 20px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
}
#pc-banner[hidden] { display: none; }
.pc-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.pc-banner-text { flex: 1 1 420px; min-width: 260px; }
.pc-banner-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 19px;
  color: var(--pc-gold);
  margin: 0 0 6px;
}
.pc-banner-text p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(242,234,216,0.88);
  margin: 0;
}
.pc-banner-text a {
  color: var(--pc-gold);
  text-decoration: underline;
}
.pc-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.pc-btn {
  font-family: 'Inter', 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 12px 18px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pc-btn-primary {
  background: var(--pc-gold);
  color: var(--pc-ink);
  font-weight: 600;
}
.pc-btn-secondary {
  background: transparent;
  color: var(--pc-cream);
  border-color: rgba(242,234,216,0.55);
  font-weight: 600;
}
.pc-btn-tertiary {
  background: transparent;
  color: var(--pc-gold);
  border-color: rgba(212,184,130,0.5);
  font-weight: 500;
}
.pc-btn:hover { filter: brightness(1.08); }
.pc-btn:focus-visible,
.pc-toggle:focus-visible,
.pc-footer-link:focus-visible,
.pc-embed-allow:focus-visible,
.pc-modal-close:focus-visible {
  outline: 3px solid var(--pc-gold);
  outline-offset: 2px;
}

/* ---------- Modal ---------- */
#pc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10,6,5,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#pc-modal-overlay[hidden] { display: none; }

#pc-modal {
  background: var(--pc-paper);
  color: var(--pc-ink);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 6px;
  padding: 28px 28px 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
#pc-modal h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 24px;
  color: var(--pc-red);
  margin: 0 0 4px;
  padding-right: 32px;
}
#pc-modal > p.pc-modal-intro {
  font-size: 13.5px;
  color: rgba(26,18,16,0.75);
  margin: 0 0 20px;
}

.pc-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--pc-ink);
  padding: 6px;
  border-radius: 3px;
}

.pc-category {
  border: 1px solid rgba(26,18,16,0.15);
  border-radius: 5px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.pc-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.pc-category-head h3 {
  font-size: 14.5px;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--pc-ink);
}
.pc-category p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(26,18,16,0.72);
  margin: 0;
}
.pc-always-active {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pc-red-deep);
  white-space: nowrap;
}

/* Toggle switch */
.pc-toggle-wrap { display: flex; align-items: center; flex-shrink: 0; }
.pc-toggle {
  position: relative;
  width: 46px;
  height: 26px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(26,18,16,0.25);
  border-radius: 999px;
  cursor: pointer;
  outline-offset: 2px;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.pc-toggle::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.pc-toggle:checked { background: var(--pc-red); }
.pc-toggle:checked::before { transform: translateX(20px); }
.pc-toggle:disabled { opacity: 0.6; cursor: not-allowed; }

.pc-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.pc-modal-actions .pc-btn { flex: 1 1 auto; text-align: center; }

.pc-modal-links {
  margin-top: 16px;
  font-size: 12.5px;
  color: rgba(26,18,16,0.6);
}
.pc-modal-links a { color: var(--pc-red); }

.pc-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

#pc-live-region {
  position: fixed;
  bottom: -9999px;
  left: -9999px;
}

/* ---------- Footer "Privacy Choices" link ---------- */
.pc-footer-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Click-to-load embed placeholder (e.g. Google Maps) ---------- */
.pc-embed-placeholder {
  width: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 32px 20px;
  background: #1c1512;
  color: var(--pc-cream);
}
.pc-embed-placeholder p {
  max-width: 420px;
  font-size: 13.5px;
  color: rgba(242,234,216,0.85);
  margin: 0;
}
.pc-embed-allow {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.12em;
  font-size: 14px;
  background: var(--pc-gold);
  color: var(--pc-ink);
  border: none;
  padding: 12px 26px;
  border-radius: 2px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .pc-banner-inner { flex-direction: column; align-items: stretch; }
  .pc-banner-actions { flex-direction: column; }
  .pc-banner-actions .pc-btn { width: 100%; text-align: center; }
  #pc-modal { padding: 22px 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  #pc-banner, #pc-modal, #pc-modal-overlay, .pc-toggle, .pc-toggle::before {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Skip to main content ---------- */
.pc-skip-link {
  position: absolute;
  top: -80px;
  left: 0;
  z-index: 10000;
  background: var(--pc-ink);
  color: var(--pc-cream);
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  transition: top 0.15s ease;
}
.pc-skip-link:focus {
  top: 0;
  outline: 3px solid var(--pc-gold);
  outline-offset: -3px;
}
