/**
 * Custom CSS Overrides
 * Accessibility, lazy loading, and component-specific styles
 */

/* ===========================================
   ACCESSIBILITY
   =========================================== */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent, #C45355);
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 8px 8px;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--secondary, #FFE818);
  outline-offset: 2px;
}

*:focus-visible {
  outline: 3px solid var(--secondary, #FFE818);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--secondary, #FFE818);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 232, 24, 0.3);
}


/* ===========================================
   LAZY LOADING
   =========================================== */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

.lazy-wrapper {
  background: linear-gradient(135deg, #f5f5f5 25%, #ebebeb 50%, #f5f5f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ===========================================
   PROCESS CARDS (Service Pages)
   =========================================== */
.process-flow-container {
  padding: 30px 0;
  position: relative;
}

.process-card {
  background-color: white;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid var(--border-color, #e2e2e0);
}

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

.process-card-top {
  padding: 20px;
  position: relative;
  background-color: var(--bg-subtle, #f0f0ee);
  border-bottom: 1px solid var(--border-color, #e2e2e0);
  text-align: center;
}

.process-step-indicator {
  width: 56px;
  height: 56px;
  background-color: var(--accent, #C45355);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(196, 83, 85, 0.3);
  border: 4px solid white;
}

.process-card-body {
  padding: 24px;
  text-align: center;
}

.process-card-body h3 {
  font-family: var(--font-heading, 'DM Serif Display', serif);
  color: var(--accent, #C45355);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.process-card-body p {
  color: var(--text-secondary, #5D5D5C);
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}


/* ===========================================
   TEAM MEMBER CARDS (About Page)
   =========================================== */
.team-member {
  transition: all 0.3s ease;
  border: none;
  box-shadow: var(--shadow-sm);
}

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

.team-member .card-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0;
}

.team-member .card-img-top {
  transition: transform 0.3s ease;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-member .card-body {
  padding: 1.5rem;
}

.team-member .card-title {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.team-member .text-muted {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
