/* Footer Styles - Default and Modern UI Support */

/* Modern Footer Styles */
.ui-modern footer {
  background: #ffffff !important;
  background-image: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.98) 100%) !important;
  color: #1f2937 !important;
  position: relative;
  overflow: hidden;
  margin-top: 4rem !important;
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
  border-top: 1px solid #e5e7eb !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
}

.ui-modern footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(248,250,252,0.2) 100%);
  z-index: 1;
}

.ui-modern footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #e5e7eb 20%, #d1d5db 50%, #e5e7eb 80%, transparent 100%);
  z-index: 2;
}

/* Ensure separator renders even if pseudo gets stripped */
.ui-modern .footer-top-separator {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent 0%, #e5e7eb 20%, #d1d5db 50%, #e5e7eb 80%, transparent 100%) !important;
  z-index: 2 !important;
}

.ui-modern footer > * {
  position: relative;
  z-index: 3;
}

/* Atlas Style Footer - 3 Column Layout */
.ui-modern footer .grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
  align-items: start !important;
}

@media (min-width: 768px) {
  .ui-modern footer .grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    align-items: start !important;
  }
}

/* Company Info Styling */
.ui-modern .footer-company {
  text-align: left;
}

.ui-modern .footer-company h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.ui-modern .footer-company p {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Contact Us Styling */
.ui-modern .footer-contact {
  text-align: left;
}

.ui-modern .footer-contact h3 {
  font-size: 1.125rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1rem;
  margin-top: 0;
}

.ui-modern .footer-contact h4 {
  font-size: 0.875rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.ui-modern .footer-contact .space-y-3 > div {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.ui-modern .footer-contact i {
  color: #6b7280;
  margin-right: 0.75rem;
  width: 1rem;
  margin-top: 0.125rem;
}

.ui-modern .footer-contact span {
  color: #374151;
  font-size: 0.875rem;
}

/* Social Links Styling */
.ui-modern .footer-contact .flex.space-x-3 {
  display: flex;
  gap: 0.75rem;
}

.ui-modern .footer-contact .flex.space-x-3 a {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  transition: all 0.15s ease;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ui-modern .footer-contact .flex.space-x-3 a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Ensure social icons are visible */
.ui-modern .footer-contact .flex.space-x-3 a i {
  color: white !important;
  font-size: 0.875rem;
}

/* Glowing Social Icons with Brand Colors */
.ui-modern .footer-contact .social-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 0.5rem !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.ui-modern .footer-contact .social-icon i {
  color: white !important;
  font-size: 1rem !important;
  z-index: 2 !important;
  position: relative !important;
}

/* Facebook Icon */
.ui-modern .footer-contact .facebook-icon {
  background: #3b5998 !important;
  box-shadow: 0 2px 8px rgba(59, 89, 152, 0.3) !important;
}

.ui-modern .footer-contact .facebook-icon:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 0 20px rgba(59, 89, 152, 0.8), 0 5px 15px rgba(59, 89, 152, 0.4) !important;
}

/* Instagram Icon */
.ui-modern .footer-contact .instagram-icon {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  box-shadow: 0 2px 8px rgba(225, 48, 108, 0.3) !important;
}

.ui-modern .footer-contact .instagram-icon:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 0 20px rgba(225, 48, 108, 0.8), 0 5px 15px rgba(225, 48, 108, 0.4) !important;
}

/* LinkedIn Icon */
.ui-modern .footer-contact .linkedin-icon {
  background: #0077b5 !important;
  box-shadow: 0 2px 8px rgba(0, 119, 181, 0.3) !important;
}

.ui-modern .footer-contact .linkedin-icon:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 0 20px rgba(0, 119, 181, 0.8), 0 5px 15px rgba(0, 119, 181, 0.4) !important;
}

/* Reduce spacing between Contact Us and Follow Us sections */
.ui-modern .footer-contact .space-y-3 {
  margin-bottom: 0.75rem !important;
}

.ui-modern .footer-contact .mt-3 {
  margin-top: 0.75rem !important;
}

/* Add subtle separator between contact info and social links */
.ui-modern .footer-contact .mt-3::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e5e7eb 50%, transparent 100%);
  margin-bottom: 0.75rem;
}

/* Ensure Legal section spacing matches Contact Us section */
.ui-modern .footer-legal h3 {
  margin-bottom: 1rem !important;
}

.ui-modern .footer-legal .space-y-2 {
  margin-top: 0 !important;
}

/* Company Info Hero Content Styling */
.ui-modern .footer-company p strong {
  font-weight: bold !important;
  color: #1f2937 !important;
}

.ui-modern .footer-company p strong span {
  display: inline !important;
}

/* Legal Section Styling */
.ui-modern .footer-legal {
  text-align: left;
}

.ui-modern .footer-legal h3 {
  font-size: 1.125rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1rem;
  margin-top: 0;
}

.ui-modern .footer-legal a {
  display: block;
  color: #4b5563;
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: color 0.15s ease;
}

.ui-modern .footer-legal a:hover {
  color: #1f2937;
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .ui-modern .footer-company,
  .ui-modern .footer-contact,
  .ui-modern .footer-legal {
    text-align: center;
  }
  
  .ui-modern .footer-contact .flex.space-x-3 {
    justify-content: center;
  }
}

/* Atlas Style Footer - Clean Layout */

/* Ensure proper footer container alignment - match header */
/* Override Tailwind's container class specifically for footer */
.ui-modern footer .container {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
  width: 100% !important;
  /* Override Tailwind's container responsive behavior */
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* Force footer container to match header container exactly */
.ui-modern footer .container.mx-auto {
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* Ensure all footer sections are properly aligned */
.ui-modern .footer-company,
.ui-modern .footer-contact,
.ui-modern .footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

/* Reset any conflicting margins */
.ui-modern .footer-company *,
.ui-modern .footer-contact *,
.ui-modern .footer-legal * {
  margin-left: 0;
  margin-right: 0;
}

/* Removed duplicate media query */

/* Modern Footer Company Info */
.ui-modern .footer-company {
  grid-column: span 1;
}

.ui-modern .footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.ui-modern .footer-logo img {
  height: 2rem;
  width: auto;
  margin-right: 0.75rem;
}

.ui-modern .footer-logo .logo-fallback {
  width: 2rem;
  height: 2rem;
  background: var(--brand, #3b82f6);
  border-radius: 0.5rem;
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui-modern .footer-logo .logo-fallback span {
  color: white;
  font-weight: bold;
  font-size: 0.875rem;
}

.ui-modern .footer-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937 !important;
}

.ui-modern .footer-description {
  color: #4b5563 !important;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Modern Footer Social Links */
.ui-modern .footer-social {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.ui-modern .footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  background: #374151;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.15s ease;
  text-decoration: none;
}

.ui-modern .footer-social a:hover {
  background: var(--brand, #3b82f6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Social links in Contact Us section - responsive alignment */
.ui-modern .footer-contact .footer-social {
  justify-content: center;
  margin-top: 1rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ui-modern .footer-contact .footer-social {
    justify-content: center;
    margin-top: 1rem;
  }
}

@media (min-width: 1024px) {
  .ui-modern .footer-contact .footer-social {
    justify-content: flex-start;
  }
}

/* Modern Footer Links */
.ui-modern .footer-links h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937 !important;
}

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

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

.ui-modern .footer-links a {
  color: #4b5563 !important;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.ui-modern .footer-links a:hover {
  color: #1f2937 !important;
}

/* Modern Footer Contact */
.ui-modern .footer-contact h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937 !important;
}

.ui-modern .footer-contact .contact-item {
  display: flex;
  align-items: center;
  color: #4b5563 !important;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.ui-modern .footer-contact .contact-item i {
  margin-right: 0.75rem;
  width: 1rem;
  color: var(--brand, #3b82f6);
}

/* Modern Footer Bottom Bar */
.ui-modern .footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #374151;
  margin-top: 3rem;
}

.ui-modern .footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .ui-modern .footer-bottom-content {
    flex-direction: row;
  }
}

.ui-modern .footer-copyright {
  color: #6b7280 !important;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .ui-modern .footer-copyright {
    margin-bottom: 0;
  }
}

.ui-modern .footer-legal {
  display: flex;
  align-items: center;
  /* gap: 1.5rem; */
  font-size: 0.875rem;
}

.ui-modern .footer-legal a {
  color: #6b7280 !important;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ui-modern .footer-legal a:hover {
  color: #1f2937 !important;
}

/* Default Footer Styles */
.ui-default footer {
  background: var(--accent, #53bcfc);
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}

.ui-default .footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .ui-default .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.ui-default .footer-left {
  flex: 1;
}

.ui-default .footer-right {
  flex: 1;
  padding-left: 5vw;
}

@media (min-width: 1024px) {
  .ui-default .footer-right {
    padding-left: 5vw;
  }
}

.ui-default .footer-title {
  font-weight: bold;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: white;
}

.ui-default .footer-form {
  display: flex;
  width: 100%;
  max-width: 32rem;
}

.ui-default .footer-form input {
  flex: 1;
  border-radius: 0.375rem 0 0 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: none;
  outline: none;
}

.ui-default .footer-send-btn {
  font-weight: 600;
  border-radius: 0 0.375rem 0.375rem 0;
  padding: 0.5rem 1.25rem;
  border: none;
  cursor: pointer;
}

.ui-default .footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ui-default .footer-contact-item {
  display: flex;
  align-items: center;
  color: white;
  margin-bottom: 0.25rem;
}

.ui-default .footer-contact-item i {
  margin-right: 0.5rem;
  color: var(--brand, #3b82f6);
}

.ui-default .footer-social {
  margin-top: 0.75rem;
}

.ui-default .footer-social a {
  color: var(--brand, #3b82f6);
  transition: color 0.12s ease, transform 0.12s ease;
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
  text-decoration: none;
}

.ui-default .footer-social a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.ui-default .footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}

@media (min-width: 768px) {
  .ui-default .footer-bottom {
    flex-direction: row;
  }
}

.ui-default .footer-logo {
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
}

.ui-default .footer-logo img {
  height: 2.5rem;
}

.ui-default .footer-copyright {
  padding-top: 0.75rem;
  font-size: 0.875rem;
  color: white;
  text-align: center;
  width: 100%;
}

@media (min-width: 768px) {
  .ui-default .footer-copyright {
    text-align: right;
    width: auto;
  }
}

.ui-default .footer-copyright a {
  color: #e5e7eb;
  text-decoration: underline;
  margin: 0 0.25rem;
}

.ui-default .footer-copyright a:hover {
  color: #f3f4f6;
}

/* Calendly Modal Styles */
#calendlyModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

#calendlyModal.hidden {
  display: none;
}

#calendlyModal .modal-content {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 64rem;
  position: relative;
}

#calendlyModal .modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  color: #6b7280;
  font-size: 1.5rem;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

#calendlyModal .modal-close:hover {
  color: #000;
}

#calendlyModal iframe {
  width: 100%;
  height: 80vh;
  border: none;
  border-radius: 0 0 0.5rem 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Company description font size boost on mobile */
  .ui-modern .footer-company p {
    font-size: 1.0625rem !important; /* ~17px */
    line-height: 1.7 !important;
  }

  /* Enlarge icons slightly on mobile within footer */
  .ui-modern .footer-links svg,
  .ui-modern .footer-contact i,
  .ui-modern .footer-social a i {
    transform: scale(1.15);
  }
  .ui-modern .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .ui-modern .footer-company,
  .ui-modern .footer-links,
  .ui-modern .footer-services,
  .ui-modern .footer-contact {
    text-align: center !important;
  }
  
  .ui-modern .footer-company h3,
  .ui-modern .footer-links h3,
  .ui-modern .footer-services h3,
  .ui-modern .footer-contact h3 {
    text-align: center !important;
  }
  
  .ui-modern .footer-bottom-content {
    flex-direction: column !important;
    text-align: center !important;
  }
  
  /* Mobile Footer Improvements */
  .ui-modern footer {
    padding: 2rem 1rem !important;
  }
  
  .ui-modern .footer-title {
    font-size: 1.5rem !important;
  }
  
  .ui-modern .footer-description {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }
  
  .ui-modern .footer-links h3 {
    font-size: 1.25rem !important;
  }
  
  .ui-modern .footer-links a {
    font-size: 1rem !important;
  }
  
  .ui-modern .footer-contact h3 {
    font-size: 1.25rem !important;
  }
  
  .ui-modern .footer-contact .contact-item {
    font-size: 1rem !important;
  }
  
  .ui-modern .footer-copyright {
    font-size: 1rem !important;
  }
  
  .ui-modern .footer-legal {
    font-size: 1rem !important;
  }
  
  /* Force mobile grid layout */
  .ui-modern .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .ui-modern .footer-company,
  .ui-modern .footer-links,
  .ui-modern .footer-services,
  .ui-modern .footer-contact {
    width: 100% !important;
    text-align: center !important;
  }
  
  .ui-modern .footer-company h3,
  .ui-modern .footer-links h3,
  .ui-modern .footer-services h3,
  .ui-modern .footer-contact h3 {
    text-align: center !important;
    margin-bottom: 1rem !important;
  }
  
  /* Mobile Layouts - Centered Flex */
  .ui-modern .footer-quick-links-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }
  
  .ui-modern .footer-quick-links-grid > * {
    justify-content: center !important;
  }
  
  .ui-modern .footer-services-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }
  
  .ui-modern .footer-services-grid > * {
    text-align: center !important;
  }
  
  .ui-modern .footer-contact-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }
  
  .ui-modern .footer-contact-grid > * {
    justify-content: center !important;
  }
}

/* Medium Screen Footer Improvements - Handled by main responsive rules above */
@media (max-width: 768px) {
  .ui-default .footer-content {
    flex-direction: column;
  }
  
  .ui-default .footer-right {
    padding-left: 0;
  }
  
  .ui-default .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Main content spacing for better footer separation */
.ui-modern main {
  margin-bottom: 2rem !important;
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ui-modern footer {
  animation: fadeInUp 0.3s ease-out;
}
