/* 
 * Optimized Contact Section Styles
 * Enhanced for clear CTAs and improved user experience
 */

.contact-section {
  background-color: var(--background-light);
  padding: 5rem 0;
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(26, 54, 93, 0.08) 0%, rgba(26, 54, 93, 0) 100%);
  z-index: 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Contact Info Styling */
.contact-info {
  padding: 2.5rem;
  background-color: var(--background-light);
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-standard);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-10px);
}

.company-info h3 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 1rem;
}

.company-info h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.company-info p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: var(--text-dark);
  line-height: 1.7;
}

/* Contact Details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: var(--transition-standard);
  padding: 1rem;
  border-radius: 8px;
}

.contact-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
  transform: translateX(5px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: var(--transition-standard);
  box-shadow: 0 8px 15px rgba(26, 54, 93, 0.2);
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--accent-color);
  box-shadow: 0 10px 20px rgba(214, 158, 46, 0.3);
}

.contact-text {
  flex-grow: 1;
}

.contact-text h4 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  font-weight: 700;
}

.contact-text p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.contact-text a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-standard);
  font-size: 1.1rem;
  display: inline-block;
}

.contact-text a:hover {
  color: var(--accent-color);
  text-decoration: underline;
  transform: translateX(3px);
}

/* Enhanced CTA Buttons */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  font-size: 1.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 0.5px;
}

.cta-button i {
  margin-right: 0.75rem;
  font-size: 1.4rem;
}

.cta-button.primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 8px 15px rgba(26, 54, 93, 0.25);
}

.cta-button.secondary {
  background-color: var(--accent-color);
  color: var(--text-light);
  box-shadow: 0 8px 15px rgba(214, 158, 46, 0.25);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  z-index: -1;
}

.cta-button.primary:hover {
  background-color: #15294a;
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(26, 54, 93, 0.3);
}

.cta-button.secondary:hover {
  background-color: #c08e29;
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(214, 158, 46, 0.3);
}

.cta-button.cta-large {
  padding: 1.5rem 2.5rem;
  font-size: 1.3rem;
}

/* Animated CTA effect */
@keyframes pulse-primary {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 54, 93, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(26, 54, 93, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(26, 54, 93, 0);
  }
}

@keyframes pulse-secondary {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 158, 46, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(214, 158, 46, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(214, 158, 46, 0);
  }
}

.cta-button.primary {
  animation: pulse-primary 2s infinite;
}

.cta-button.secondary {
  animation: pulse-secondary 2s infinite;
}

/* Pre-formatted message indicator */
.preformatted-message {
  font-size: 0.95rem;
  color: var(--text-dark);
  opacity: 0.8;
  margin-top: 0.75rem;
  font-style: italic;
  display: flex;
  align-items: center;
}

.preformatted-message i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

/* Contact Image */
.contact-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  height: 100%;
  min-height: 450px;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.contact-image:hover img {
  transform: scale(1.05);
}

.contact-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  z-index: 1;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .contact-info {
    padding: 2rem;
  }
  
  .company-info h3 {
    font-size: 1.75rem;
  }
  
  .company-info p {
    font-size: 1.1rem;
  }
  
  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .cta-button {
    padding: 1.1rem 1.75rem;
    font-size: 1.1rem;
  }
  
  .cta-button.cta-large {
    padding: 1.25rem 2rem;
    font-size: 1.2rem;
  }
}

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .contact-image {
    order: -1;
    max-height: 400px;
  }
  
  .contact-info {
    padding: 2rem;
  }
  
  .contact-details {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 4rem 0;
  }
  
  .company-info h3 {
    font-size: 1.6rem;
  }
  
  .company-info p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .contact-icon {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  .contact-text h4 {
    font-size: 1.2rem;
  }
  
  .contact-text p, .contact-text a {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }
  
  .cta-button i {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .contact-section {
    padding: 3rem 0;
  }
  
  .contact-info {
    padding: 1.5rem;
  }
  
  .company-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .contact-details {
    gap: 1.25rem;
  }
  
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
  }
  
  .contact-icon {
    margin-bottom: 0.5rem;
  }
  
  .cta-buttons {
    gap: 1rem;
  }
  
  .cta-button {
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
  }
  
  .cta-button i {
    font-size: 1.2rem;
  }
}

/* Accessibility Enhancements */
.cta-button:focus, .contact-text a:focus {
  outline: 3px solid rgba(49, 130, 206, 0.5);
  outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .contact-info {
    background-color: var(--background-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .contact-section::before {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  }
  
  .contact-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
}
