/* SEO and Performance Improvements for ZIDOMA */

/* Font Display Optimization - Applied via Google Fonts URL */
/* This will be handled in the HTML with font-display=swap parameter */

/* FAQ Section Styling */
.faq .accordion-item {
  border: none;
  border-bottom: 1px solid #e9ecef;
  border-radius: 0;
}

.faq .accordion-button {
  padding: 20px 0;
  background: transparent;
  border: none;
  color: #2c4964;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  box-shadow: none;
}

.faq .accordion-button:not(.collapsed) {
  background: transparent;
  color: #ffc107;
  box-shadow: none;
}

.faq .accordion-button:focus {
  border: none;
  box-shadow: none;
}

.faq .accordion-button .question-icon {
  font-size: 20px;
  margin-right: 15px;
  color: #ffc107;
}

.faq .accordion-body {
  padding: 0 0 20px 35px;
  color: #555;
  line-height: 1.8;
}

/* Call-to-Action Improvements */
.cta-phone, .cta-email {
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-phone:hover, .cta-email:hover {
  transform: scale(1.05);
  text-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
}

/* Mobile Header Contact Improvements */
.mobile-contact {
  order: -1;
  margin-right: 15px;
  max-width: calc(100% - 120px); /* Leave space for hamburger menu */
}

.mobile-contact a {
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 193, 7, 0.1);
  transition: all 0.3s ease;
  font-size: 14px;
  white-space: nowrap;
}

.mobile-contact a:hover {
  background: rgba(255, 193, 7, 0.2);
  transform: translateY(-1px);
}

.mobile-contact i {
  font-size: 14px;
}

.mobile-contact span {
  font-size: 13px;
}

/* Contact info styling */
.contact-info a {
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 4px;
}

.contact-info a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Responsive header adjustments */
@media (max-width: 991.98px) {
  .header .container-xl {
    padding: 0 15px;
  }
  
  .logo img {
    max-height: 50px !important;
  }
  
  .mobile-nav-toggle {
    order: 2;
  }
}

@media (max-width: 575.98px) {
  .mobile-contact {
    margin-right: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .mobile-contact a {
    padding: 3px 6px;
    margin: 1px 0;
    font-size: 12px;
    border-radius: 3px;
  }
  
  .mobile-contact i {
    font-size: 12px;
  }
  
  .mobile-contact span {
    font-size: 11px;
  }
  
  /* Stack contact info vertically on very small screens */
  .mobile-contact {
    max-width: calc(100% - 80px);
  }
}

/* Portfolio Filtering Improvements */
.portfolio-flters {
  padding: 0;
  margin: 0 0 30px 0;
  list-style: none;
  text-align: center;
}

.portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 15px;
  margin: 5px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #444;
  background: transparent;
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.portfolio-flters li:hover,
.portfolio-flters li.filter-active {
  background: transparent;
  color: #ffc107;
  border: none;
  transform: translateY(-2px);
  box-shadow: none;
}

.portfolio-item {
  margin-bottom: 30px;
}

.portfolio-content {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px 15px 15px;
}

.portfolio-info h4 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.preview-link {
  color: #ffc107;
  font-size: 20px;
  text-decoration: none;
}

.preview-link:hover {
  color: #fff;
}

/* Page Layout Fix */
body {
  overflow-x: hidden !important;
}

main#main {
  min-height: auto !important;
  overflow: visible !important;
}

/* Portfolio Section - Clean Layout with Clearfix */
section.projects {
  overflow: hidden !important;
  min-height: auto !important;
  margin-bottom: 50px !important;
}

.portfolio-container {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  min-height: 200px !important;
}

.portfolio-container::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

.portfolio-container .portfolio-item {
  width: 32% !important;
  margin-bottom: 30px !important;
  flex: 0 0 32% !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .portfolio-flters li {
    padding: 6px 12px;
    font-size: 12px;
    margin: 3px;
  }
  
  .portfolio-img {
    height: 200px;
  }
  
  .portfolio-container .portfolio-item {
    width: 48% !important;
    flex: 0 0 48% !important;
  }
}

@media (max-width: 576px) {
  .portfolio-container .portfolio-item {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
}
img {
  max-width: 100%;
  height: auto;
}

/* Lazy loading support */
.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy.loaded {
  opacity: 1;
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* Local business schema styling */
.business-info {
  display: none; /* Hidden structured data */
}

/* Mobile performance improvements */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
  }
  
  #hero-carousel .carousel-item {
    background-attachment: scroll;
  }
}

/* Print styles for better SEO */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }
}
