/*
  Site-specific layer only.
  Tailwind CSS and DaisyUI are loaded from CDNs in index.php.
  This file does not redefine DaisyUI components or Tailwind utilities.
*/

[data-theme="halau"] {
  color-scheme: dark;

  /* DaisyUI v5 theme tokens */
  --color-primary: #f2c94c;
  --color-primary-content: #080808;
  --color-secondary: #ffe082;
  --color-secondary-content: #080808;
  --color-accent: #f2c94c;
  --color-accent-content: #080808;
  --color-neutral: #171717;
  --color-neutral-content: #f7f3e8;
  --color-base-100: #080808;
  --color-base-200: #111111;
  --color-base-300: #1c1c1c;
  --color-base-content: #f7f3e8;
  --color-info: #93c5fd;
  --color-info-content: #080808;
  --color-success: #86efac;
  --color-success-content: #080808;
  --color-warning: #facc15;
  --color-warning-content: #080808;
  --color-error: #f87171;
  --color-error-content: #080808;

  /* DaisyUI v4-compatible tokens retained so this site keeps the same look if the CDN resolves through v4-style utilities. */
  --p: 84.9584% 0.146305 90.492793;
  --pc: 13.4409% 0 0;
  --s: 91.3055% 0.118823 91.667733;
  --sc: 13.4409% 0 0;
  --a: 84.9584% 0.146305 90.492793;
  --ac: 13.4409% 0 0;
  --n: 20.4627% 0 0;
  --nc: 96.4247% 0.015173 90.234862;
  --b1: 13.4409% 0 0;
  --b2: 17.7638% 0 0;
  --b3: 22.645% 0 0;
  --bc: 96.4247% 0.015173 90.234862;
  --in: 80.9069% 0.095598 251.812784;
  --inc: 16.1814% 0.01912 251.812784;
  --su: 87.1163% 0.136267 154.449129;
  --suc: 17.4233% 0.027253 154.449129;
  --wa: 86.0559% 0.173115 91.935651;
  --wac: 17.2112% 0.034623 91.935651;
  --er: 71.0627% 0.166148 22.216224;
  --erc: 14.2125% 0.03323 22.216224;

  --radius-box: 1rem;
  --radius-field: 0.5rem;
  --radius-selector: 1.9rem;
  --rounded-box: 1rem;
  --rounded-btn: 0.5rem;
  --rounded-badge: 1.9rem;
  --border: 1px;
  --border-btn: 1px;
  --animation-btn: 0.25s;
  --animation-input: 0.2s;
  --btn-focus-scale: 0.95;
  --tab-border: 1px;
  --tab-radius: 0.5rem;
}

.hero-item {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 800ms ease forwards;
  will-change: opacity, transform;
}

.hero-logo {
  animation-name: heroLogoIn;
  animation-duration: 900ms;
  animation-delay: 0.15s;
}

.hero-title {
  animation-delay: 0.35s;
}

.hero-description {
  animation-delay: 0.55s;
}

.hero-buttons {
  animation-delay: 0.75s;
}

.halau-bg-pattern {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.1;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 72%, transparent 94%);
  mask-image: linear-gradient(to bottom, black 0%, black 72%, transparent 94%);
  background-image: url("../images/halau-leaf-pattern.svg");
  background-repeat: repeat;
  background-size: 199.36px 170.72px;
  background-position: 0 0;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroLogoIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-item {
    opacity: 1;
    transform: none;
  }
}
