/* ============================================
   Bubba Jack's Walkies & Wags
   Global Stylesheet
   ============================================ */

/* --- Custom Properties --- */
:root {
  --green-900: #0d3b0d;
  --green-800: #14532d;
  --green-700: #166534;
  --green-600: #15803d;
  --green-400: #4ade80;
  --green-300: #86efac;
  --gold: #ffd700;
  --gold-dim: rgba(255, 215, 0, 0.15);
  --gold-border: rgba(255, 215, 0, 0.3);
  --silver: #c0c0c0;
  --text-primary: #ffffff;
  --text-body: #e0e0e0;
  --text-muted: #aaaaaa;
  --text-dim: #888888;
  --bg-dark: #0a0a0a;
  --bg-card: #1a1a1a;
  --bg-card-border: #2a2a2a;
  --border-subtle: #1a1a1a;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--green-900);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-400);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Sparkle Canvas (behind all content) --- */
#sparkle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
  #sparkle-canvas {
    display: none;
  }
  body {
    background:
      radial-gradient(2px 2px at 20% 30%, var(--gold), transparent),
      radial-gradient(2px 2px at 80% 20%, var(--silver), transparent),
      radial-gradient(1.5px 1.5px at 50% 60%, var(--gold), transparent),
      radial-gradient(1.5px 1.5px at 30% 80%, var(--silver), transparent),
      radial-gradient(2px 2px at 70% 70%, var(--gold), transparent),
      radial-gradient(1px 1px at 90% 50%, var(--silver), transparent),
      var(--green-900);
  }
}

/* All page content sits above the canvas */
.page-wrapper {
  position: relative;
  z-index: 1;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 48px 20px 40px;
  position: relative;
}

.hero-logo {
  width: 220px;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 12px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hero-tagline {
  color: var(--green-300);
  font-size: 1rem;
  margin-bottom: 20px;
}

.grand-opening {
  display: inline-block;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 14px 24px;
  max-width: 400px;
}

.grand-opening strong {
  color: var(--gold);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 4px;
}

.grand-opening p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* --- Sticky Nav --- */
.sticky-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 12px 16px;
  background: rgba(13, 59, 13, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 58, 26, 0.8);
  position: sticky;
  top: 0;
  z-index: 50;
}

.sticky-nav a {
  color: var(--green-300);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.sticky-nav a:hover {
  color: var(--gold);
  text-decoration: none;
}

/* --- Sections --- */
.section {
  padding: 48px 20px;
  max-width: 720px;
  margin: 0 auto;
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--green-400);
  margin-bottom: 6px;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* --- About --- */
.about-photo {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.about-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  font-style: italic;
}

/* --- Pricing Grid --- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.price-card {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--bg-card-border);
  transition: border-color 0.2s;
}

.price-card:hover {
  border-color: var(--green-700);
}

.price-card .service-name {
  font-size: 0.9rem;
  color: var(--green-300);
  font-weight: 600;
  margin-bottom: 8px;
}

.price-card .price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.price-card .price-detail {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.pricing-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.pricing-note a {
  color: var(--green-400);
}

/* --- Hours Grid --- */
.hours-grid {
  margin-top: 12px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-day {
  color: var(--text-body);
}

.hours-time {
  color: var(--green-300);
  font-weight: 600;
}

.hours-closed {
  color: #ef4444;
  font-weight: 600;
}

.hours-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* --- Contact Card --- */
.contact-card {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  margin-top: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.contact-card .contact-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-primary);
  font-weight: 600;
}

.contact-card .contact-role {
  font-size: 0.9rem;
  color: var(--green-300);
  margin: 4px 0 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-body);
}

.contact-item a {
  color: var(--text-body);
}

.contact-item a:hover {
  color: var(--gold);
}

.contact-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.whatsapp-qr {
  width: 160px;
  height: 160px;
  border-radius: 10px;
  margin: 20px auto 8px;
  background: #fff;
  padding: 8px;
}

.whatsapp-label {
  font-size: 0.8rem;
  color: var(--green-300);
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 0.75rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 720px;
  margin: 0 auto;
}

.site-footer a {
  color: var(--green-400);
}

/* --- Policies Page --- */
.policies-header {
  text-align: center;
  padding: 32px 20px 24px;
}

.policies-header .back-link {
  font-size: 0.85rem;
  color: var(--green-300);
  display: inline-block;
  margin-bottom: 12px;
}

.policies-header h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-primary);
}

/* Accordion */
.accordion {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 18px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}

.accordion-trigger:hover {
  color: var(--green-400);
}

.accordion-trigger .accordion-icon {
  margin-left: auto;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content-inner {
  padding: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.accordion-content-inner ul {
  list-style: none;
  padding: 0;
}

.accordion-content-inner li {
  padding: 4px 0 4px 16px;
  position: relative;
}

.accordion-content-inner li::before {
  content: '\2022';
  color: var(--green-400);
  position: absolute;
  left: 0;
}

.accordion-content-inner strong {
  color: var(--text-body);
}

/* --- Chatbot Widget --- */
.chatbot-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  border: 2px solid var(--gold-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.chatbot-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(34, 197, 94, 0.4);
}

.chatbot-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 340px;
  max-height: 480px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-panel.open {
  display: flex;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chatbot-title {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  flex: 1;
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.chatbot-close:hover {
  color: var(--text-primary);
}

.chatbot-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.chat-bubble {
  background: #2a2a2a;
  border-radius: 12px 12px 12px 4px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 14px;
  line-height: 1.5;
  white-space: pre-line;
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-option {
  background: var(--green-800);
  border: 1px solid var(--green-700);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--green-300);
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: var(--font-body);
}

.chat-option:hover {
  background: var(--green-700);
  border-color: var(--green-600);
}

.chat-contact-info {
  text-align: center;
  padding: 8px 0;
}

.chat-contact-info a {
  display: block;
  padding: 6px 0;
  color: var(--green-300);
  font-size: 0.85rem;
}

.chat-start-over {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: 1px solid var(--bg-card-border);
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font-body);
}

.chat-start-over:hover {
  color: var(--text-body);
  border-color: var(--text-dim);
}

/* --- Responsive --- */
@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero-logo {
    width: 280px;
  }
  .section {
    padding: 60px 32px;
  }
  .section h2 {
    font-size: 1.8rem;
  }
}

@media (min-width: 900px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero-logo {
    width: 320px;
  }
}

@media (max-width: 400px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .chatbot-panel {
    right: 8px;
    left: 8px;
    width: auto;
    bottom: 88px;
  }
  .sticky-nav {
    gap: 14px;
  }
  .sticky-nav a {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }
}
