/* ================================================
   Pawly Design System — "Tactile Atelier"
   Based on Bonyard reference, adapted for Pawly UA
   ================================================ */

/* --- Base --- */
body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background-color: #fcf6e3;
  color: #312f23;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Editorial Headlines --- */
.editorial-header {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

/* --- Glassmorphism Navigation --- */
.glass-nav {
  background: rgba(252, 246, 227, 0.7);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
}

/* --- Primary Gradient (CTA buttons, hero accents) --- */
.soft-glow {
  background: linear-gradient(135deg, #00684f 0%, #89f0cb 100%);
}

/* --- Ambient Shadow (cards, floating elements) --- */
.ambient-shadow {
  box-shadow: 0 40px 40px 0 rgba(49, 47, 35, 0.06);
}

/* --- Ghost Border (accessibility fallback) --- */
.ghost-border {
  border: 1px solid rgba(178, 173, 156, 0.15);
}

/* --- Material Symbols config --- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --- Skip to Content (a11y) --- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 1rem 2rem;
  background: #00684f;
  color: #c6ffe7;
  font-weight: bold;
  border-radius: 0 0 1rem 0;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 0;
}

/* --- Selection color --- */
::selection {
  background-color: #89f0cb;
  color: #005a44;
}

/* --- Hide scrollbar utility --- */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- FAQ Accordion --- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.faq-item.active .faq-answer {
  max-height: 500px;
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}
.faq-chevron {
  transition: transform 0.3s ease;
}

/* --- Photo Upload Drop Zone --- */
.drop-zone {
  border: 2px dashed rgba(0, 104, 79, 0.3);
  transition: all 0.3s ease;
}
.drop-zone.drag-over {
  border-color: #00684f;
  background-color: rgba(137, 240, 203, 0.1);
}

/* --- Customizer Step Indicator --- */
.step-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.3s ease;
}
.step-dot.active {
  background-color: #00684f;
  color: #c6ffe7;
}
.step-dot.completed {
  background-color: #89f0cb;
  color: #005a44;
}
.step-dot.pending {
  background-color: #e9e3cc;
  color: #5f5c4d;
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background-color: #00684f;
  color: #c6ffe7;
  font-weight: 600;
  z-index: 9999;
  transform: translateY(200%);
  opacity: 0;
  transition: all 0.4s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- Print styles (order confirmation) --- */
@media print {
  nav, footer, .no-print { display: none !important; }
  body { background: white; }
}

/* ============================================
   Cookie Consent Banner & Modal
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface-container-lowest, #ffffff);
  border: 1px solid var(--outline-variant, #b2ad9c);
  border-radius: 1rem;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
  }
  .cookie-banner-text { flex: 1; }
}

.cookie-banner-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #312f23;
  margin-bottom: 4px;
}

.cookie-banner-text p {
  color: #5f5c4d;
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: #00684f;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 150ms ease;
  border: none;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: #00684f;
  color: #c6ffe7;
}

.cookie-btn-primary:hover {
  background: #005b45;
}

.cookie-btn-outline {
  background: transparent;
  color: #312f23;
  border: 1px solid #7a7768;
}

.cookie-btn-outline:hover {
  background: #eee8d3;
}

.cookie-btn-text {
  background: transparent;
  color: #5f5c4d;
  text-decoration: underline;
}

/* Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 300ms ease;
}

.cookie-modal.visible {
  opacity: 1;
}

.cookie-modal.hidden {
  display: none;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.cookie-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-modal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #312f23;
  margin-bottom: 8px;
}

.cookie-modal-intro {
  color: #5f5c4d;
  margin-bottom: 24px;
  line-height: 1.5;
}

.cookie-category {
  padding: 16px 0;
  border-bottom: 1px solid #b2ad9c;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.cookie-category-header strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: #312f23;
}

.cookie-category-desc {
  color: #5f5c4d;
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-toggle {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.cookie-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}
