/*
Theme Name: ACPC Bilingual Professional Theme
Description: Custom bilingual WordPress theme for Amole CPA Professional Corporation with widget support and client platform protection
Version: 1.0
Author: Custom Development
Text Domain: acpc-bilingual
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    min-height: 80px;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
}

.logo img {
    max-height: 60px;
    width: auto;
    height: auto;
}

/* Navigation Menu - Table Style (No Borders) */
.main-navigation {
    display: table;
    border-collapse: collapse;
}

.nav-menu {
    display: table-row;
    list-style: none;
}

.nav-menu li {
    display: table-cell;
    padding: 15px 25px;
    text-align: center;
    vertical-align: middle;
    border: none;
    position: relative;
}

.nav-menu li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    display: block;
}

.nav-menu li a:hover {
    color: #007cba;
}


/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Body padding for fixed header */
body {
    padding-top: 80px;
}

/* Homepage Hero Section */
.hero-section {
    padding: 20px 0;
    background: #ffffff;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-logo {
    flex: 0 0 400px;
}

.hero-logo img {
    width: 100%;
    height: auto;
    max-width: 400px;
}

.hero-services {
    flex: 1;
    padding-right: 0;
}

.service-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
    font-size: 38px;
    font-weight: 600;
    color: #333;
    line-height: 1.1;
}

.service-bullet {
    font-size: 45px;
    margin-right: 30px;
    color: #000;
    line-height: 1;
    flex-shrink: 0;
}

.service-text {
    line-height: 1.1;
    flex: 1;
    padding-right: 20px;
}

/* Editable Content Area */
.editable-content-area {
    padding: 60px 0;
    background: #f8f9fa;
}

.editable-content {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
    color: #444;
}

.editable-content h1,
.editable-content h2,
.editable-content h3 {
    color: #333;
    margin: 30px 0 20px 0;
}

.editable-content h1 {
    font-size: 36px;
    text-align: center;
}

.editable-content h2 {
    font-size: 28px;
}

.editable-content h3 {
    font-size: 24px;
}

.editable-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.editable-content ul,
.editable-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.editable-content li {
    margin-bottom: 10px;
}

.editable-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.editable-content .wp-block-columns {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.editable-content .wp-block-column {
    flex: 1;
}

/* Widget Areas */
.widget-area {
    margin: 40px 0;
}

.widget {
    margin-bottom: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.widget-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

/* Sidebar Widgets */
.sidebar {
    background: #f8f9fa;
    padding: 30px 20px;
    border-radius: 8px;
}

.sidebar .widget {
    background: white;
    border: 1px solid #e0e0e0;
}

/* Footer Widgets */
.footer-widgets {
    background: #2c3e50;
    color: white;
    padding: 50px 0;
}

.footer-widget-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-widget {
    color: white;
}

.footer-widget .widget-title {
    color: white;
    border-bottom-color: #34495e;
}

.footer-widget a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-widget a:hover {
    color: white;
}

/* Main Content Area */
.main-content {
    padding: 40px 0;
}

.content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.primary-content {
    background: white;
}

/* Page Content */
.page-content,
.post-content {
    line-height: 1.8;
    color: #444;
}

.page-content h1,
.page-content h2,
.page-content h3 {
    color: #333;
    margin: 30px 0 20px 0;
}

.page-content h1 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
}

.page-content h2 {
    font-size: 28px;
}

.page-content h3 {
    font-size: 24px;
}

.page-content p {
    margin-bottom: 20px;
}

.page-content ul,
.page-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.page-content li {
    margin-bottom: 10px;
}

/* Contact Form Styling */
.contact-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.contact-form button,
.contact-form input[type="submit"] {
    background: #007cba;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.contact-form button:hover,
.contact-form input[type="submit"]:hover {
    background: #005a87;
}

/* Social Media Widgets */
.social-media-widget {
    text-align: center;
}

.social-media-widget a {
    display: inline-block;
    margin: 5px;
    padding: 10px;
    background: #007cba;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    width: 40px;
    height: 40px;
    line-height: 20px;
    transition: all 0.3s ease;
}

.social-media-widget a:hover {
    background: #005a87;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .nav-menu {
        display: block;
    }
    
    .nav-menu li {
        display: block;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-logo {
        flex: none;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-services {
        padding-right: 0;
    }
    
    .service-item {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .service-bullet {
        font-size: 30px;
        margin-right: 20px;
    }
    
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .footer-widget-area {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .service-item {
        font-size: 18px;
    }
    
    .service-bullet {
        font-size: 24px;
        margin-right: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-40 {
    margin-top: 40px;
}

/* Plugin Compatibility */
.wp-block-group {
    margin: 20px 0;
}

.wp-block-columns {
    display: flex;
    gap: 20px;
}

.wp-block-column {
    flex: 1;
}

/* Ensure no interference with /airrevive/ pages */
body.page-template-airrevive,
body[class*="airrevive"] {
    padding-top: 0 !important;
}

body.page-template-airrevive .site-header,
body[class*="airrevive"] .site-header {
    display: none !important;
}

body.page-template-airrevive .site-footer,
body[class*="airrevive"] .site-footer {
    display: none !important;
}
