/* Component styles and design tokens for CØFF Specialty Coffee */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Subtle organic paper/film grain texture overlay */
.matte-noise::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 1;
}

/* Elegant light & shadow bevel inset */
.gradient-border-inset {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), inset 0 -1px 1px rgba(0, 0, 0, 0.2);
}

/* Signature curved mask from design reference */
.custom-curve {
  border-top-right-radius: 180px;
}

@media (max-width: 1024px) {
  .custom-curve {
    border-top-right-radius: 80px;
  }
}

/* Form inputs & interactive feedback */
.form-input-field {
  width: 100%;
  background: rgba(29, 29, 28, 0.6);
  border: 1px solid rgba(226, 220, 208, 0.2);
  color: #f3eee2;
  border-radius: 1rem;
  padding: 0.875rem 1.25rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  outline: none;
}

.form-input-field::placeholder {
  color: rgba(226, 220, 208, 0.4);
}

.form-input-field:focus {
  border-color: #cebfa9;
  background: rgba(29, 29, 28, 0.85);
  box-shadow: 0 0 0 3px rgba(206, 191, 169, 0.15);
}

.form-input-field.input-error {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.05);
}

.form-input-field.input-success {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.05);
}

.field-error-msg {
  display: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 0.35rem;
}

.field-error-msg.visible {
  display: block;
}

/* Map frame aesthetic container */
.map-container-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Modal / mobile drawer transition */
#mobile-menu {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

#mobile-menu.menu-closed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

#mobile-menu.menu-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
