/* ===========================================
   BLOOM THEME V4 - Components
   Supplementary component styles
   =========================================== */

/* ============================================
   FEATURED TESTIMONIAL
   ============================================ */
.featured-testimonial {
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.featured-testimonial::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: 30px;
  font-family: var(--font-heading);
  font-size: 12rem;
  line-height: 1;
  color: rgba(83, 110, 94, 0.2);
  pointer-events: none;
}

.featured-testimonial .testimonial-text {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.88);
  font-style: italic;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.featured-testimonial .testimonial-author {
  margin-top: var(--space-lg);
  position: relative;
  z-index: 1;
}

.featured-testimonial .testimonial-avatar {
  width: 52px;
  height: 52px;
  font-size: 1.2rem;
  background: var(--color-primary);
}

.featured-testimonial .testimonial-name {
  color: #fff;
  font-size: var(--text-base);
}

.featured-testimonial .testimonial-role {
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================
   IMAGE GALLERY GRID
   ============================================ */
.gallery-grid-masonry {
  columns: 3;
  column-gap: var(--space-sm);
}

.gallery-grid-masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-sm);
  aspect-ratio: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-grid-masonry .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-med);
}

.gallery-grid-masonry .gallery-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .gallery-grid-masonry {
    columns: 2;
  }
}

@media (max-width: 480px) {
  .gallery-grid-masonry {
    columns: 1;
  }
}

/* ============================================
   VIDEO CARDS
   ============================================ */
.video-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

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

.video-card .video-container {
  border-radius: 0;
}

.video-card-body {
  padding: var(--space-md);
}

.video-card-body h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
}

.video-card-body p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============================================
   FORM SUCCESS / ERROR MESSAGES
   ============================================ */
.form-success {
  display: none;
  background: rgba(83, 110, 94, 0.08);
  border: 1px solid rgba(83, 110, 94, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  margin-top: var(--space-md);
}

.form-success.visible {
  display: block;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  stroke-width: 2;
}

.form-success h3 {
  color: var(--color-primary);
  font-size: var(--text-xl);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-secondary);
  font-size: var(--text-base);
}

.form-error {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  color: #b91c1c;
  font-size: var(--text-sm);
  margin-top: 0.5rem;
  display: none;
}

.form-error.visible {
  display: block;
}

/* ============================================
   SPINNER
   ============================================ */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn .spinner {
  margin-right: 0.25rem;
}

/* ============================================
   COUNT-UP NUMBERS
   ============================================ */
.count-up {
  display: inline-block;
}

/* ============================================
   FOOTER NAV EXTRAS
   ============================================ */
.footer-nav-title {
  color: #fff;
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--space-md);
  display: block;
}

/* ============================================
   FOOTER HOURS
   ============================================ */
.footer-hours-title {
  color: #fff;
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--space-sm);
  display: block;
}

/* ============================================
   FEATURED DOG NAME (brand personality)
   ============================================ */
.dog-name-accent {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
}

/* ============================================
   ABOUT PAGE SPECIFIC
   ============================================ */
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.about-value-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  transition: all var(--transition-fast);
}

.about-value-card:hover {
  border-color: var(--border-color-strong);
  box-shadow: var(--shadow-sm);
}

.about-value-card .value-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--color-primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-value-card .value-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
  stroke-width: 1.5;
}

.about-value-card h4 {
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

.about-value-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .about-values-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CONTACT PAGE SPECIFIC
   ============================================ */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 1024px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.contact-map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-lg);
}

.contact-map-container iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ============================================
   SCROLL ANIMATION STAGGER DELAYS
   ============================================ */
.stagger-item:nth-child(1) { transition-delay: 0.05s; }
.stagger-item:nth-child(2) { transition-delay: 0.10s; }
.stagger-item:nth-child(3) { transition-delay: 0.15s; }
.stagger-item:nth-child(4) { transition-delay: 0.20s; }
.stagger-item:nth-child(5) { transition-delay: 0.25s; }
.stagger-item:nth-child(6) { transition-delay: 0.30s; }
.stagger-item:nth-child(7) { transition-delay: 0.35s; }
.stagger-item:nth-child(8) { transition-delay: 0.40s; }

/* ============================================
   RTL SPECIFIC FIXES
   ============================================ */
[dir="rtl"] .two-col-reversed {
  direction: ltr;
}

[dir="rtl"] .two-col-reversed > * {
  direction: rtl;
}

/* Ensure select arrows point correctly in RTL */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23556b61' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}

/* ============================================
   PRIVACY / ACCESSIBILITY PAGE
   ============================================ */
.content-page {
  max-width: 860px;
  margin: 0 auto;
}

.content-page h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.content-page h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.content-page p {
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.content-page ul,
.content-page ol {
  list-style: disc;
  padding-right: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.content-page li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================
   NARROW FORM - DARK SECTION
   ============================================ */
.section-bg-dark .form-container {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.section-bg-dark .field input,
.section-bg-dark .field textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.section-bg-dark .field input::placeholder,
.section-bg-dark .field textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.section-bg-dark .field label {
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.section-bg-dark .field input:focus ~ label,
.section-bg-dark .field input:not(:placeholder-shown) ~ label,
.section-bg-dark .field textarea:focus ~ label,
.section-bg-dark .field textarea:not(:placeholder-shown) ~ label {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(28, 42, 37, 0.8);
}

.section-bg-dark .field input:focus,
.section-bg-dark .field textarea:focus {
  border-color: rgba(83, 110, 94, 0.7);
  box-shadow: 0 0 0 3px rgba(83, 110, 94, 0.2);
}

/* ============================================
   TESTIMONIALS PAGE - GRID
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ============================================
   MOBILE NAV CLOSE BUTTON
   ============================================ */
.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background var(--transition-fast);
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-nav-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  margin: var(--space-md) 0;
}

.text-center .section-divider {
  margin-inline: auto;
}

.section-bg-dark .section-divider {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   PRICING CARDS
   ============================================ */
.pricing-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  position: relative;
  transition: all var(--transition-fast);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  margin: var(--space-md) 0;
}

.pricing-period {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============================================
   AREA TAGS
   ============================================ */
.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.area-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.area-tag:hover {
  background: var(--color-primary);
  color: #fff;
}

.section-bg-dark .area-tag {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

.section-bg-dark .area-tag:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ============================================
   CERTIFICATES / CREDENTIALS CARDS
   ============================================ */
.cert-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.cert-card:hover {
  border-color: var(--border-color-strong);
  box-shadow: var(--shadow-sm);
}

.cert-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--color-primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary);
  stroke-width: 1.5;
}

.cert-content h4 {
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

.cert-content p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
