/* Primary Custom & Theme Styles for Local Business Demo Platform */

@layer base {
  :root {
    --color-brand-dark: #1b3b22;
    --color-brand-primary: #275231;
    --color-brand-light: #4a7c59;
    --color-brand-accent: #b45309;
    --color-brand-accent-hover: #92400e;
    --color-bg-light: #f8fbf7;
    --color-bg-card: #ffffff;
    --color-text-main: #1f2937;
    --color-text-muted: #4b5563;
  }

  html {
    scroll-behavior: smooth;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
  }
}

/* Custom Forest Green & Warm Amber Color Utilities */
.bg-forest-dark { background-color: #142d1a; }
.bg-forest-primary { background-color: #1e4627; }
.bg-forest-soft { background-color: #f0f5f1; }
.text-forest-dark { color: #142d1a; }
.text-forest-primary { color: #1e4627; }

.bg-amber-cta { background-color: #b45309; }
.bg-amber-cta:hover { background-color: #92400e; }
.text-amber-cta { color: #92400e; }
.border-amber-cta { border-color: #b45309; }

/* Scroll Animations */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto !important;
  }
}

/* Card Hover Effects */
.card-hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
}

/* FAQ Accordion Transitions */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.25s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  transition: max-height 0.45s ease-in-out;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Image Zoom on Hover */
.zoom-image-container {
  overflow: hidden;
}

.zoom-image-container img {
  transition: transform 0.5s ease;
}

.zoom-image-container:hover img {
  transform: scale(1.06);
}

/* Sticky Mobile Call Bar */
.mobile-sticky-bar {
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #275231;
  border-radius: 4px;
}


/* Consistent keyboard focus and remote image rendering */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

img {
  background-color: #e8f0e9;
}

.remote-image-placeholder {
  object-fit: cover;
  background: linear-gradient(135deg, #e8f0e9, #d7e5da);
}

/* Hero image treatment: retain detail without washing out white text */
.hero-background-image {
  opacity: 0.42;
  filter: brightness(0.62) saturate(0.9) contrast(1.08);
}

/* Responsive header safeguards */
.h-18 { height: 4.5rem; }

@media (max-width: 1279px) {
  header a,
  header button {
    -webkit-tap-highlight-color: transparent;
  }
}
