/* Morenza Global — Custom styles (Warm Earth + Saffron theme) */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'ss01', 'ss02';
  overflow-x: hidden;
  background-color: #F5EFE4;
}

img, video {
  max-width: 100%;
  height: auto;
}

.font-heading,
h1, h2, h3, h4 {
  font-family: 'Cabinet Grotesk', 'Satoshi', sans-serif;
}

/* Selection */
::selection {
  background-color: #D97706;
  color: #FBF8F2;
}

/* Decorative dotted pattern background */
.pattern-dots {
  background-image: radial-gradient(rgba(31, 27, 22, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
}

/* Subtle paper-grain noise */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Lucide icons base */
[data-lucide] {
  stroke-width: 2;
}

/* WhatsApp FAB pulse */
.whatsapp-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #25D366;
  opacity: 0.6;
  z-index: -1;
  animation: wa-pulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.6); opacity: 0;   }
  100% { transform: scale(1.6); opacity: 0;   }
}

/* Hero collage cards lift on hover (desktop only) */
@media (min-width: 1024px) {
  #hero [data-testid="hero-collage"] > div {
    transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  #hero [data-testid="hero-collage"]:hover > div:nth-child(1) { transform: rotate(2deg) translateY(-8px); }
  #hero [data-testid="hero-collage"]:hover > div:nth-child(2) { transform: rotate(-3deg) translate(-4px, -4px); }
  #hero [data-testid="hero-collage"]:hover > div:nth-child(3) { transform: rotate(-6deg) translate(-4px, 4px); }
}

/* Mobile typography tightening for very small screens (<360px) */
@media (max-width: 360px) {
  h1 { letter-spacing: -0.02em; }
  .text-4xl { font-size: 1.875rem; line-height: 1.05; }
}

/* Larger tap targets on touch devices */
@media (hover: none) and (pointer: coarse) {
  a, button, input[type="submit"], select {
    min-height: 44px;
  }
}

/* Fade-in (opt-in via class="fade-in") */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

input:focus, select:focus, textarea:focus { outline: none; }

/* Proper vertical text accent (reads bottom-to-top) */
.vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
