/* ============================================================
   VISUAL POLISH — Additive CSS layer
   All rules are purely additive. Nothing here removes or overrides
   existing layout/structure. Safe to delete this file to revert.
   ============================================================ */

/* -------------------------------------------------------
   A. SCROLL ANIMATIONS
   Elements start invisible and slide up when they enter
   the viewport (class added by IntersectionObserver).
   ------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children when inside a grid/flex container */
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.5s; }

/* -------------------------------------------------------
   B. GRADIENT ACCENTS on gold buttons/CTAs
   Targets Tailwind bg-[#edb417] buttons rendered by React.
   Uses attribute selectors to avoid touching the class list.
   ------------------------------------------------------- */
[class*="bg-[#edb417]"],
a[class*="bg-[#edb417]"],
button[class*="bg-[#edb417]"] {
  background: linear-gradient(135deg, #edb417 0%, #f59e0b 100%) !important;
  border: none;
}

/* -------------------------------------------------------
   C. MICRO-INTERACTIONS
   ------------------------------------------------------- */

/* C1. Buttons scale on hover */
button,
a[class*="rounded-full"],
a[class*="rounded-lg"],
[role="button"] {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button:hover,
a[class*="rounded-full"]:hover,
a[class*="rounded-lg"]:hover,
[role="button"]:hover {
  transform: scale(1.03);
}

/* C2. Animated underline on nav links */
header nav a:not([class*="rounded-full"]) {
  position: relative;
}
header nav a:not([class*="rounded-full"])::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #edb417;
  transition: width 0.3s ease;
}
header nav a:not([class*="rounded-full"]):hover::after {
  width: 100%;
}

/* C3. Floating phone button pulse */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(237, 180, 23, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(237, 180, 23, 0); }
  100% { box-shadow: 0 0 0 0 rgba(237, 180, 23, 0); }
}
a[href^="tel:"][class*="fixed"],
div[class*="fixed"] a[href^="tel:"],
[class*="fixed"][class*="bottom-"] {
  animation: pulse-ring 2.5s infinite;
}

/* C4. Cards lift on hover */
[class*="rounded-2xl"],
[class*="rounded-xl"] {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
[class*="rounded-2xl"]:hover,
[class*="rounded-xl"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(17, 26, 45, 0.12), 0 4px 12px rgba(17, 26, 45, 0.06);
}

/* -------------------------------------------------------
   D. TYPOGRAPHY IMPROVEMENTS
   ------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.font-serif {
  letter-spacing: -0.02em;
}
body,
p,
li,
span {
  line-height: 1.7;
}

/* -------------------------------------------------------
   E. BETTER SECTION PADDING
   Increase vertical breathing room between major sections.
   Targets sections rendered by the React app.
   ------------------------------------------------------- */
#root section,
#root > div > section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
/* Don't over-pad the hero or nav */
#root > header,
#root > div > header {
  padding-top: initial;
  padding-bottom: initial;
}

/* -------------------------------------------------------
   F. GLASSMORPHISM CARDS on hover
   Service/condition cards get a frosted glass effect.
   ------------------------------------------------------- */
[class*="rounded-2xl"]:hover,
[class*="rounded-xl"]:hover {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 12px 32px rgba(17, 26, 45, 0.10),
    0 0 0 1px rgba(237, 180, 23, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* -------------------------------------------------------
   RESPONSIVE — Disable heavy animations on reduced-motion
   and scale down effects on mobile.
   ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  button:hover,
  a[class*="rounded-full"]:hover,
  [class*="rounded-2xl"]:hover,
  [class*="rounded-xl"]:hover {
    transform: none;
  }
  [class*="fixed"][class*="bottom-"] {
    animation: none;
  }
}

@media (max-width: 768px) {
  /* Reduce card lift on mobile (touch devices) */
  [class*="rounded-2xl"]:hover,
  [class*="rounded-xl"]:hover {
    transform: translateY(-2px);
  }
  /* Slightly less section padding on mobile */
  #root section,
  #root > div > section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
