/* ============================================
   TV ANTENNAS PERTH - MINIMAL SAFE SPRUCE
   ONLY hover effects and animations
   NO background overrides whatsoever
   ============================================ */

html {
  scroll-behavior: smooth;
}

/* ============================================
   ANDREW CUTOUT - GENTLE FLOAT
   ============================================ */

img[alt*="Andrew"], 
img[src*="andrew"],
img[src*="hero-andrew"] {
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ============================================
   BUTTON HOVER - SUBTLE LIFT
   ============================================ */

a[class*="rounded-full"],
a[class*="rounded-lg"]:not([class*="bg-card"]),
button {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a[class*="rounded-full"]:hover,
a[class*="rounded-lg"]:not([class*="bg-card"]):hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.2);
}

/* ============================================
   SERVICE CARDS - LIFT ON HOVER
   ============================================ */

[class*="rounded-xl"][class*="border"][class*="p-6"],
[class*="rounded-lg"][class*="border"][class*="p-6"] {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[class*="rounded-xl"][class*="border"][class*="p-6"]:hover,
[class*="rounded-lg"][class*="border"][class*="p-6"]:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

/* ============================================
   NAV LINKS - UNDERLINE SLIDE
   ============================================ */

header nav a {
  position: relative;
}

header nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

header nav a:hover::after {
  width: 100%;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */

.spruce-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.spruce-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PAGE LOAD
   ============================================ */

body {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   COLOUR ACCENTS - SAFE ADDITIONS
   Only target bg-background sections (white ones)
   Never override inline styles or dark sections
   ============================================ */

/* Warm cream tint for plain white sections */
section.bg-background:nth-of-type(odd) {
  background: linear-gradient(180deg, #fffaf5 0%, #fff8f0 100%);
}

section.bg-background:nth-of-type(even) {
  background: linear-gradient(180deg, #f8fcff 0%, #f0f7ff 100%);
}

/* Service cards - subtle red accent bar on hover */
[class*="rounded-xl"][class*="border"][class*="p-6"]::after,
[class*="rounded-lg"][class*="border"][class*="p-6"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c41e3a, #e63946);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  border-radius: 0 0 12px 12px;
}

[class*="rounded-xl"][class*="border"][class*="p-6"]:hover::after,
[class*="rounded-lg"][class*="border"][class*="p-6"]:hover::after {
  transform: scaleX(1);
}

/* Cards need position relative for the accent bar */
[class*="rounded-xl"][class*="border"][class*="p-6"],
[class*="rounded-lg"][class*="border"][class*="p-6"] {
  position: relative;
  overflow: hidden;
}

/* Red accent buttons - add subtle glow on hover */
a[class*="bg-red"]:hover,
button[class*="bg-red"]:hover,
a[class*="bg-primary"]:hover,
button[class*="bg-primary"]:hover {
  box-shadow: 0 10px 30px -5px rgba(196, 30, 58, 0.4);
}

/* Starlink "Most Popular" badge - make it pop */
[class*="absolute"][class*="bg-red"],
[class*="absolute"][class*="bg-primary"] {
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Section dividers - subtle top border on alternating sections */
section.bg-muted\/50::before,
section.bg-muted\/30::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.2), transparent);
}

section.bg-muted\/50,
section.bg-muted\/30 {
  position: relative;
}

/* ============================================
   ACCESSIBILITY - SKIP LINK
   ============================================ */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1a365d;
  color: white;
  padding: 12px 24px;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   ACCESSIBILITY - FOCUS STYLES
   ============================================ */

/* Visible focus outline for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #c41e3a;
  outline-offset: 2px;
}

/* Remove default focus for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
