/* ============================================
   Terry L Copeland Accounting — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: #064e3b;
  color: #fefdf8;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08), 0 4px 24px rgba(6, 78, 59, 0.06);
}

/* ============================================
   Floating Cards (Hero)
   ============================================ */
.floating-card {
  animation: float1 6s ease-in-out infinite;
}

.floating-card-2 {
  animation: float2 7s ease-in-out infinite;
}

.floating-card-3 {
  animation: float3 5.5s ease-in-out infinite;
}

.floating-card-4 {
  animation: float4 6.5s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(-0.5deg); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
}

@keyframes float4 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-0.3deg); }
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #064e3b, #059669);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
  position: relative;
}

.testimonial-card::after {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 80px;
  color: #d1fae5;
  line-height: 1;
  pointer-events: none;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(6, 78, 59, 0.08);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* ============================================
   Smooth Scroll Offset for Anchors
   ============================================ */
section[id] {
  scroll-margin-top: 80px;
}

/* ============================================
   Utility
   ============================================ */
img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
  .floating-card,
  .floating-card-2,
  .floating-card-3,
  .floating-card-4 {
    display: none;
  }

  #hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .testimonial-card::after {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .floating-card,
  .floating-card-2,
  .floating-card-3,
  .floating-card-4 {
    display: none;
  }
}
