/* Component-specific styles */
.icon-performance, .icon-design, .icon-security, .icon-integration {
  border-radius: 6px;
  overflow: hidden;
}

/* Navigation logo */
.nav-logo {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.8;
}

/* Client logos in carousel */
.client-logo {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease;
}

.client-logo:hover {
  opacity: 0.8;
}

/* Testimonial portraits */
.testimonial-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

/* Tech stack logos */
.tech-logo-img {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease;
}

.tech-logo:hover .tech-logo-img {
  opacity: 0.8;
}

/* Avatar with status indicator */
.unblock-subtitle-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  margin-bottom: 64px;
}

.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.avatar-image {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background-color: #22c55e;
  border: 3px solid #0e0e12;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .unblock-subtitle-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 48px;
  }
  
  .avatar-image {
    width: 48px;
    height: 48px;
  }
  
  .status-dot {
    width: 14px;
    height: 14px;
    border-width: 2px;
  }
}

/* TidyCal embed styling with CSS filters */
.calendly-wrapper {
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.tidycal-embed {
  border-radius: 8px;
  overflow: hidden;
  /* Apply dark theme filter with brighter text */
  filter: invert(1) hue-rotate(180deg) brightness(1.1) contrast(1.2);
  background: #1a1a1a;
}

/* Fix double inversion for images and certain elements */
.tidycal-embed img,
.tidycal-embed svg,
.tidycal-embed [style*="background-image"] {
  filter: invert(1) hue-rotate(180deg);
}

/* Alternative filter option - uncomment if the above doesn't work well */
/*
.tidycal-embed {
  filter: brightness(0.2) contrast(1.4) saturate(0.8);
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}
*/

/* Custom form elements */
input::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.7;
}

/* Focus styling */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Footer Styles */
.site-footer {
  background-color: var(--brand-dark-charcoal);
  padding: 64px 0 32px;
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.footer-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-certifications {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cert-badge {
  height: 64px;
  width: auto;
  filter: none;
  transition: opacity 0.2s ease;
}

.cert-badge:hover {
  opacity: 0.8;
}

.footer-offices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.office h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--color-text);
}

.office-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item {
  font-size: 16px;
  line-height: 1.5;
}

.contact-item a {
  color: var(--brand-blue-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--brand-blue-bright);
  text-decoration: underline;
}

.contact-item span {
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .site-footer {
    padding: 48px 0 24px;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 32px;
    text-align: center;
    margin-bottom: 32px;
  }
  
  .footer-certifications {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  
  .cert-badge {
    height: 48px;
  }
  
  .footer-offices {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .office-contact {
    align-items: center;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-background-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}
