/* Icon fixes for Mechano Solutions website */

/* Global icon alignment fix - ensures all icons and text are in the same line */
[class*="fa-"] {
    vertical-align: middle !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Complete fix for box around plus icon in FAQ section */
/* Target both button and span versions of the toggle */
.faq-toggle {
    background: none !important;
    background-color: transparent !important;
    color: var(--primary-color) !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    cursor: pointer !important;
}

/* Target the icon inside the toggle */
.faq-toggle i {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    background: none !important;
    background-color: transparent !important;
    color: var(--primary-color) !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    display: inline-block !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
}

/* Fix for the white box that appears in some browsers */
.faq-toggle::before,
.faq-toggle::after,
.faq-toggle *,
.faq-toggle *::before,
.faq-toggle *::after {
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
}

/* Fix for box in FAQ section */
.faq-question {
    background-color: transparent !important;
}

/* Comprehensive fix for contact section */
/* Contact section container */
.contact-section {
    padding: 6rem 0 !important;
    background-color: var(--bg-color) !important;
}

.contact-info {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
}

.contact-info h2 {
    text-align: center !important;
    margin-bottom: 1rem !important;
    font-size: 2.5rem !important;
    color: var(--primary-color) !important;
}

.contact-info h3 {
    text-align: center !important;
    margin-bottom: 3rem !important;
    font-size: 1.5rem !important;
    color: var(--text-light) !important;
}

/* Contact details grid */
.contact-details {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 3rem !important;
    margin-top: 3rem !important;
}

/* Contact item styling */
.contact-item {
    background: var(--card-bg) !important;
    border-radius: 8px !important;
    padding: 2rem !important;
    box-shadow: var(--card-shadow) !important;
    transition: var(--transition) !important;
    text-align: center !important;
}

.contact-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--hover-shadow) !important;
}

/* Contact item icons */
.contact-item i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    background-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 50% !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.8rem !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

/* Specific icon content */
.contact-item i.fa-clock:before { content: "\f017" !important; }
.contact-item i.fa-map-marker-alt:before { content: "\f3c5" !important; }
.contact-item i.fa-envelope:before { content: "\f0e0" !important; }

/* Contact item headings */
.contact-item h4 {
    margin-bottom: 1rem !important;
    font-size: 1.3rem !important;
    color: var(--text-color) !important;
}

/* Contact item text */
.contact-item p {
    color: var(--text-light) !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
}

/* Email links */
.email-link {
    display: inline-block !important;
    margin: 0 0.5rem !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
}

.email-link:hover {
    color: var(--primary-hover) !important;
    text-decoration: underline !important;
}

/* Contact item structure for better alignment */
.contact-item {
    background: var(--card-bg) !important;
    border-radius: 8px !important;
    padding: 1.5rem 1rem !important; /* Reduced horizontal padding */
    box-shadow: var(--card-shadow) !important;
    transition: var(--transition) !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 280px !important; /* Fixed minimum height */
    position: relative !important;
    padding-bottom: 4.5rem !important; /* Increased space for buttons */
}

/* Fix icon alignment with text */
.contact-item i.fas {
    vertical-align: middle !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 45px !important; /* Smaller icon size */
    height: 45px !important; /* Smaller icon size */
    background-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 50% !important;
    margin: 0 auto 1rem auto !important; /* Reduced margin */
    font-size: 1.2rem !important; /* Smaller font size */
}

/* Email links container */
.email-links-container {
    display: flex !important;
    flex-direction: column !important; /* Stack links vertically */
    align-items: center !important;
    gap: 0.5rem !important; /* Reduced gap */
    margin-bottom: 0.75rem !important; /* Reduced margin */
}

/* Email links */
.email-link {
    display: inline-block !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    font-size: 0.9rem !important; /* Smaller font size */
}

.email-link:hover {
    color: var(--primary-hover) !important;
    text-decoration: underline !important;
}

/* Button container at bottom */
.contact-buttons {
    position: absolute !important;
    bottom: 1.25rem !important; /* Adjusted position */
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important; /* Ensure vertical centering */
    width: 100% !important;
    padding: 0 0.75rem !important; /* Increased horizontal padding */
    text-align: center !important;
}

/* Map and email buttons */
.map-button, .email-button {
    display: inline-flex !important;
    align-items: center !important; /* Center items vertically */
    justify-content: center !important; /* Center items horizontally */
    padding: 0.5rem 1rem !important; /* Increased padding for bigger buttons */
    background-color: var(--primary-color) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-weight: 500 !important; /* Slightly bolder text */
    transition: all 0.2s ease !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    font-size: 0.85rem !important; /* Slightly larger font */
    min-width: 120px !important; /* Minimum width for buttons */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    letter-spacing: 0.02em !important;
    height: 36px !important; /* Taller buttons */
    text-align: center !important;
}

.map-button:hover, .email-button:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-1px) !important; /* Minimal hover effect */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15) !important; /* Enhanced shadow on hover */
}

/* Button icons */
.map-button i, .email-button i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 0.4rem !important;
    color: white !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    background-color: transparent !important;
    font-size: 0.7rem !important; /* Reduced font size */
    line-height: 1 !important;
    position: relative !important;
    top: -1px !important;
}

/* Specific button icon content */
.map-button i.fa-map:before { content: "\f279" !important; }
.email-button i.fa-paper-plane:before { content: "\f1d8" !important; }

/* General icon fixes */
.fas, .fab, .far {
    font-family: "Font Awesome 5 Free" !important;
    display: inline-block !important;
}

.fas {
    font-weight: 900 !important;
}

/* Global button with icon alignment fix */
a[class*="-button"], button[class*="-button"], .btn, .cta-button {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

/* Ensure all icons in buttons are properly aligned */
a i, button i, .btn i, .cta-button i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    margin-right: 0.5rem !important;
}

/* Fix for theme toggle icon */
.theme-toggle i, .mobile-theme-toggle i {
    background-color: transparent !important;
    color: var(--text-color) !important;
}

/* Fix for expertise section icons in about area */
.expertise-item i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    background-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 50% !important;
    margin-bottom: 1rem !important;
    font-size: 1.8rem !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

.expertise-item i.fa-industry:before { content: "\f275" !important; }
.expertise-item i.fa-shield-alt:before { content: "\f3ed" !important; }
.expertise-item i.fa-wrench:before { content: "\f0ad" !important; }

.expertise-item {
    text-align: center !important;
    padding: 2rem !important;
    background: var(--card-bg) !important;
    border-radius: 8px !important;
    box-shadow: var(--card-shadow) !important;
    transition: var(--transition) !important;
}

.expertise-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--hover-shadow) !important;
}

/* Fix for the owner button in about section */
.owner-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.8rem 1.5rem !important;
    background-color: var(--primary-color) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    box-shadow: var(--shadow) !important;
    cursor: pointer !important;
}

.owner-button:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-3px) !important;
    box-shadow: var(--hover-shadow) !important;
}

.owner-button i {
    margin-right: 0.5rem !important;
    font-size: 1.1rem !important;
    color: white !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    background-color: transparent !important;
}

.owner-button i.fa-user-tie:before {
    content: "\f508" !important;
}

.meet-owner-cta {
    margin-top: 2rem !important;
    text-align: left !important;
}
