/* ============================================
   COMPONENTS.CSS — Buttons, Cards, Shared
   Gianni's Pizza — EazyWebNC
   ============================================ */

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--font-small);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  border: none;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 30, 36, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-cream);
  border: 1px solid rgba(255, 245, 225, 0.25);
}

.btn--outline:hover {
  border-color: var(--color-cream);
  background: rgba(255, 245, 225, 0.05);
}

.btn--phone {
  background: var(--color-green);
  color: #fff;
  font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1.1rem);
  padding: 1.2rem 3rem;
}

.btn--phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45, 122, 58, 0.3);
}

/* Magnetic wrapper */
.magnetic {
  display: inline-block;
  will-change: transform;
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-family: var(--font-sans);
  font-size: var(--font-small);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: block;
}

/* ---- DIVIDER ---- */
.divider {
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin: 1.5rem auto;
}

/* ---- DATA-ANIMATE ELEMENTS ---- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

/* Stagger children */
[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
}

/* ---- RATING STARS ---- */
.stars {
  display: inline-flex;
  gap: 0.15rem;
}

.star {
  color: var(--color-gold);
}

.star--empty {
  color: rgba(255, 245, 225, 0.15);
}

/* ---- PILL / TAG ---- */
.pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: rgba(196, 30, 36, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(196, 30, 36, 0.2);
}

/* ---- IMAGE REVEAL ---- */
.img-reveal {
  position: relative;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
}

.img-reveal.revealed {
  clip-path: inset(0 0% 0 0);
}

/* ---- PHONE ICON SVG ---- */
.icon-phone {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
}
