/**
 * FCME Theme Custom CSS
 * Additional styles for WordPress integration
 */

/* WordPress Custom Logo */
.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* AED Icon Styling */
.aed-icon {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.why-us-icon .aed-icon {
    font-size: 1.75rem;
}

/* WordPress Navigation Menu */
.nav-menu .menu-item {
    list-style: none;
}

.nav-menu .menu-item a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu .menu-item a:hover {
    color: var(--accent-gold);
}

/* Mobile Menu Button Active State */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Form Focus States */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 76, 0.1);
}

/* Button Loading State */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Animate fade in */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 1 !important;
}

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

/* WordPress Block Editor Compatibility */
.entry-content {
    color: var(--text-muted);
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--text-light);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content a {
    color: var(--accent-gold);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--accent-gold-light);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--accent-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.entry-content th {
    background: var(--primary-navy-light);
    color: var(--text-light);
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* WordPress admin bar spacing */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Testimonials overflow fix */
.testimonials-container {
    overflow: hidden;
}

/* Print styles */
@media print {
    .site-header,
    .whatsapp-widget,
    .testimonials-nav,
    .mobile-menu-btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-title,
    .service-title,
    .why-us-title {
        color: black;
    }
}
