/* ABELLOT.net — estils propis SPA */
:root {
  --honey: #E8A87C;
  --cream: #FDF3E7;
  --orange: #FF6B1A;
  --yellow: #FFC93C;
  --ink: #141210;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Desktop: fixed viewport, no scroll */
#main-content {
  height: 100vh;
  overflow: hidden;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 60;
  opacity: .05;
  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.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(10) infinite;
}

@keyframes grain-shift {

  0%,
  100% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-5%, -10%);
  }

  20% {
    transform: translate(-15%, 5%);
  }

  30% {
    transform: translate(7%, -25%);
  }

  40% {
    transform: translate(-5%, 25%);
  }

  50% {
    transform: translate(-15%, 10%);
  }

  60% {
    transform: translate(15%, 0%);
  }

  70% {
    transform: translate(0%, 15%);
  }

  80% {
    transform: translate(3%, 35%);
  }

  90% {
    transform: translate(-10%, 10%);
  }
}

/* Language selector */
header {
  background: rgba(253, 243, 231, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 18, 16, .06);
}

.lang-btn {
  font-family: 'Space Grotesk', sans-serif;
}

.lang-btn.active {
  box-shadow: 0 4px 16px -4px rgba(20, 18, 16, .3);
}

.lang-btn:not(.active):hover {
  background: rgba(255, 107, 26, .1);
  border-color: rgba(255, 107, 26, .3);
}

/* Hero blobs */
.blob {
  position: absolute;
  border-radius: 42% 58% 62% 38% / 55% 40% 60% 45%;
  filter: blur(60px);
  will-change: transform, opacity;
}

.blob-1 {
  width: 44vw;
  height: 44vw;
  min-width: 380px;
  min-height: 380px;
  right: -8vw;
  top: 6vh;
  background: radial-gradient(circle at 35% 35%, rgba(255, 201, 60, .9), rgba(255, 107, 26, .55) 55%, transparent 75%);
  animation: blob-morph-1 16s ease-in-out infinite;
  opacity: 0.55;
}

.blob-2 {
  width: 30vw;
  height: 30vw;
  min-width: 280px;
  min-height: 280px;
  left: -6vw;
  bottom: -4vh;
  background: radial-gradient(circle at 40% 40%, rgba(232, 168, 124, .85), rgba(232, 168, 124, .25) 60%, transparent 75%);
  animation: blob-morph-2 20s ease-in-out infinite reverse;
  opacity: 0.45;
}

@keyframes blob-morph-1 {

  0%,
  100% {
    border-radius: 42% 58% 62% 38% / 55% 40% 60% 45%;
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.5;
  }

  25% {
    border-radius: 58% 42% 38% 62% / 45% 60% 40% 55%;
    transform: translate(3vw, -4vh) rotate(10deg);
    opacity: 0.65;
  }

  50% {
    border-radius: 50% 50% 45% 55% / 60% 45% 55% 40%;
    transform: translate(-2vw, 2vh) rotate(-5deg);
    opacity: 0.4;
  }

  75% {
    border-radius: 45% 55% 50% 50% / 50% 50% 45% 55%;
    transform: translate(1vw, -3vh) rotate(8deg);
    opacity: 0.6;
  }
}

@keyframes blob-morph-2 {

  0%,
  100% {
    border-radius: 42% 58% 62% 38% / 55% 40% 60% 45%;
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.4;
  }

  25% {
    border-radius: 55% 45% 40% 60% / 50% 55% 45% 50%;
    transform: translate(-2vw, 3vh) rotate(-12deg);
    opacity: 0.55;
  }

  50% {
    border-radius: 50% 50% 50% 50% / 40% 60% 50% 50%;
    transform: translate(2vw, -1vh) rotate(6deg);
    opacity: 0.3;
  }

  75% {
    border-radius: 48% 52% 55% 45% / 52% 48% 55% 45%;
    transform: translate(-1vw, 2vh) rotate(-8deg);
    opacity: 0.5;
  }
}

/* Grid background - subtle square grid with pointer highlight */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 18, 16, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 18, 16, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
}

/* Pointer highlight effect on grid */
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
      rgba(255, 201, 60, .12) 0%,
      rgba(255, 107, 26, .06) 25%,
      transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.grid-bg.active::before {
  opacity: 1;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--ink);
  color: var(--cream);
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: background .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}

.btn-primary:hover {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 18px 35px -12px rgba(255, 201, 60, .55);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

/* Marquee - full width, no rotation, wraps the hero */
.marquee {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.marquee-track {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Text outline (hero) */
.text-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

/* Bee image standalone - no circle frame */
.bee-image-standalone {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 40px -20px rgba(255, 107, 26, .4));
  animation: bee-float 6s ease-in-out infinite;
}

@keyframes bee-float {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-24px) rotate(2deg);
  }
}

/* Mobile: allow scroll to see full page */
@media (max-width: 768px) {
  #main-content {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  section#inici {
    min-height: auto;
  }

  .bee-image-standalone {
    max-width: 300px;
    margin-top: 1.5rem;
  }

  #inici {
    padding-bottom: 4rem !important;
  }

  header {
    padding: 0.5rem 1rem;
  }

  .lang-btn {
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
  }

  /* Stack hero vertically on mobile: text first, then image */
  #inici .flex-col.lg\\:flex-row {
    flex-direction: column;
  }

  #inici .flex-1 {
    width: 100%;
    text-align: center;
  }

  #inici .lg\\:w-72,
  #inici .lg\\:w-96 {
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 0;
  }

  /* Footer stacked on mobile */
  footer .flex-col.sm\\:flex-row {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  footer .flex.flex-wrap {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  footer a[href^="tel"],
  footer a[href^="mailto"],
  footer a[href*="wa.me"] {
    width: 100%;
    justify-content: center;
  }
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .bee-image-standalone {
    max-width: 380px;
  }

  header {
    padding: 0.75rem 1.5rem;
  }
}

/* Footer responsive improvements */
footer a[href^="tel"],
footer a[href^="mailto"],
footer a[href*="wa.me"] {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

footer .font-display {
  font-size: 1.25rem;
}

@media (min-width: 640px) {
  footer .font-display {
    font-size: 1.5rem;
  }
}

footer .text-base {
  font-size: 0.8rem;
}

@media (min-width: 640px) {
  footer .text-base {
    font-size: 0.875rem;
  }
}

footer a[href^="tel"],
footer a[href^="mailto"],
footer a[href*="wa.me"] {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

@media (min-width: 640px) {

  footer a[href^="tel"],
  footer a[href^="mailto"],
  footer a[href*="wa.me"] {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .grain,
  .blob,
  .marquee-track,
  .bee-image-standalone {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}