/**
 * Sit.Stay.Walk.Play Template Styles
 * Professional pet care services - Conversion-focused design
 */

/* ==========================================
   CSS VARIABLES - Brand Colors
   ========================================== */
:root {
  /* Primary Brand Colors */
  --brand-primary: #8B5A3C;        /* Warm brown - trust, earthiness */
  --brand-secondary: #D4A574;      /* Tan - friendly, approachable */
  --brand-accent: #722d22;         /* Deep red-brown - warm, professional */
  --brand-cream: #FFF8F0;          /* Cream background */
  --brand-light: #F5EFE7;          /* Light beige */

  /* Text Colors */
  --text-primary: #2D2416;         /* Dark brown - main text */
  --text-secondary: #6B5D52;       /* Muted brown */
  --text-light: #9B8E82;           /* Light muted */
  --text-white: #FFFFFF;

  /* UI Colors */
  --bg-white: #FFFFFF;
  --bg-light: #FAFAF8;
  --bg-cream: var(--brand-cream);
  --border-color: #E5DDD5;
  --shadow-sm: 0 2px 8px rgba(45, 36, 22, 0.08);
  --shadow-md: 0 4px 16px rgba(45, 36, 22, 0.12);
  --shadow-lg: 0 8px 32px rgba(45, 36, 22, 0.16);

  /* CTA/Button Colors */
  --btn-cta-bg: var(--brand-accent);
  --btn-cta-hover: #5a2219;
  --btn-secondary-bg: var(--brand-primary);
  --btn-secondary-hover: #73482F;

  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
}

/* ==========================================
   GLOBAL STYLES
   ========================================== */
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.7;
  background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--brand-accent);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--btn-cta-hover);
}

/* ==========================================
   TOP CONTACT BAR
   ========================================== */
.top-bar {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #73482F 100%);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar a:hover {
  opacity: 0.8;
}

@media (max-width: 767px) {
  .top-bar-left {
    display: none;
  }
  .top-bar-right {
    width: 100%;
    text-align: center;
  }
  .top-bar a {
    font-size: 0.8rem;
  }
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  border-bottom: 2px solid var(--brand-light);
}

.navbar-brand .logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--brand-accent);
}

.dropdown-menu {
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: background-color 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
  background-color: var(--brand-light);
  color: var(--brand-primary);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
}

.btn-cta {
  background: linear-gradient(135deg, var(--btn-cta-bg) 0%, var(--btn-cta-hover) 100%);
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(90, 143, 107, 0.3);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(90, 143, 107, 0.4);
  color: var(--text-white);
}

.btn-primary {
  background-color: var(--brand-primary);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: var(--btn-secondary-hover);
  color: var(--text-white);
}

.btn-secondary {
  background-color: var(--brand-secondary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: #C59563;
  color: var(--text-primary);
}

.btn-outline-primary {
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--brand-primary);
  color: var(--text-white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  background: linear-gradient(135deg, var(--brand-cream) 0%, var(--brand-light) 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%23D4A574" opacity="0.1"/></svg>');
  background-size: 200px;
  opacity: 0.3;
  pointer-events: none;
}

.hero h1 {
  color: var(--brand-primary);
  margin-bottom: 1.5rem;
}

.hero .lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Hero with background image */
.hero[style*="background-image"] {
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 5rem 0;
}

.hero[style*="background-image"]::before {
  display: none; /* Hide decorative pattern when there's a background image */
}

.hero[style*="background-image"] h1 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero[style*="background-image"] .lead {
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-badge {
  display: inline-block;
  background: var(--brand-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 0;
  }
  .hero .lead {
    font-size: 1.4rem;
  }
}

/* ==========================================
   SECTION STYLES
   ========================================== */
.section {
  padding: 4rem 0;
}

.section-light {
  background-color: var(--bg-light);
}

.section-cream {
  background-color: var(--bg-cream);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--brand-primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: -2rem auto 3rem;
}

/* ==========================================
   SERVICE CARDS
   ========================================== */
.service-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Clickable Card Link Wrapper */
a.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  transition: opacity 0.2s ease;
}

a.card-link:hover {
  color: inherit;
  opacity: 1;
}

a.card-link .service-card {
  cursor: pointer;
}

a.card-link:hover .service-card {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-accent);
}

a.card-link:hover .service-card h3 {
  color: var(--brand-accent);
}

.service-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--btn-cta-hover) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.75rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--brand-primary);
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.service-card ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.service-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-accent);
  font-weight: bold;
}

/* ==========================================
   FAQ ITEMS
   ========================================== */
.faq-item {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--brand-accent);
  transition: all 0.2s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--brand-primary);
}

.faq-item h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item:last-child {
  margin-bottom: 0;
}

/* FAQ CTA Block */
.faq-cta {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.faq-cta h3 {
  margin-bottom: 0.75rem;
}

.faq-cta .lead {
  font-size: 1rem;
}

/* ==========================================
   TRUST BADGES
   ========================================== */
.trust-section {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #73482F 100%);
  color: var(--text-white);
  padding: 3rem 0;
}

.trust-section h2 {
  color: var(--text-white);
}

.trust-badge {
  text-align: center;
  padding: 1.5rem;
}

.trust-badge-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 2rem;
}

.trust-badge h4 {
  color: var(--text-white);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.trust-badge p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================
   CREDENTIALS BADGES
   ========================================== */
.credentials-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
}

/* ==========================================
   CALL-TO-ACTION BLOCKS
   ========================================== */
.cta-block {
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--btn-cta-hover) 100%);
  color: var(--text-white);
  padding: 4rem 2rem;
  border-radius: 16px;
  text-align: center;
  margin: 3rem 0;
}

.cta-block h2 {
  color: var(--text-white);
  margin-bottom: 1rem;
}

.cta-block p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-block .btn {
  background: var(--bg-white);
  color: var(--brand-accent);
  font-weight: 700;
  border: none;
}

.cta-block .btn:hover {
  background: var(--brand-light);
  color: var(--brand-primary);
}

/* ==========================================
   CONTACT FORM
   ========================================== */
.contact-form {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(90, 143, 107, 0.1);
}

textarea.form-control {
  min-height: 150px;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #73482F 100%);
  color: var(--text-white);
  margin-top: 4rem;
}

.footer-main {
  padding: 3rem 0 2rem;
}

.footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.footer-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.footer-contact strong {
  color: var(--text-white);
  display: block;
  margin-bottom: 0.25rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--text-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================
   BLOG STYLES
   ========================================== */
.blog-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid var(--border-color);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.blog-card-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--brand-accent);
}

.blog-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.blog-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.blog-post-content h2,
.blog-post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-brand-primary { color: var(--brand-primary); }
.text-brand-accent { color: var(--brand-accent); }
.bg-brand-cream { background-color: var(--brand-cream); }
.bg-brand-light { background-color: var(--brand-light); }

/* Spacing utilities */
.py-6 { padding-top: 4rem; padding-bottom: 4rem; }
.py-7 { padding-top: 5rem; padding-bottom: 5rem; }
.mt-6 { margin-top: 4rem; }
.mb-6 { margin-bottom: 4rem; }

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */
@media (max-width: 991px) {
  .navbar-collapse {
    padding: 1rem 0;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 0;
  }

  .btn-cta {
    width: 100%;
    margin-top: 1rem;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .lead {
    font-size: 1.1rem;
  }

  .service-card {
    margin-bottom: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-accent);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

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

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
  .top-bar,
  .site-header,
  .site-footer,
  .btn,
  .cta-block {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}
