/**
 * Openspace Theme - Main Stylesheet
 * Mobile-first, responsive design for financial services platform
 * 
 * @package Openspace_Theme
 * @version 1.0.0
 */

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    flex: 0 0 auto;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066cc;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* Navigation Menu */
.main-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: #0066cc;
}

/* Mobile Navigation */
@media screen and (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid #e5e5e5;
    }
    
    .nav-menu a {
        padding: 1rem 0;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-navigation {
    border-top: 1px solid #e5e5e5;
    padding-top: 1.5rem;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    justify-content: center;
}

.footer-menu a {
    color: #666;
    font-size: 0.875rem;
}

.footer-menu a:hover {
    color: #0066cc;
}

.footer-info {
    text-align: center;
}

.footer-compliance {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.compliance-notice {
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.regulatory-info {
    font-size: 0.8125rem;
    color: #666;
    margin-bottom: 0;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    gap: 1.5rem;
    justify-content: center;
}

.legal-links a {
    color: #0066cc;
    font-size: 0.875rem;
    font-weight: 500;
}

.site-info {
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

.copyright {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

/* ==========================================================================
   Content Area
   ========================================================================== */

.content-area {
    padding: 2rem 0;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.entry-content {
    line-height: 1.8;
}

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

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

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

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

.post-thumbnail {
    margin-bottom: 2rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ==========================================================================
   Page-Specific Styles
   ========================================================================== */

/* Home Page */
.page-home .hero-section {
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    color: #fff;
    padding: 4rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 3rem;
}

.page-home .hero-section h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-home .hero-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.service-card h3 {
    color: #0066cc;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Trust Indicators */
.trust-section {
    background-color: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item {
    padding: 1rem;
}

.trust-item h4 {
    color: #0066cc;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    color: #fff;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-section .btn {
    background-color: #fff;
    color: #0066cc;
    font-weight: 600;
    padding: 1rem 2rem;
}

.cta-section .btn:hover {
    background-color: #f0f0f0;
}

/* ==========================================================================
   Compliance & Legal Pages
   ========================================================================== */

.page-terms-privacy .entry-content,
.page-about-openspace .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    color: #0066cc;
    margin-bottom: 1rem;
}

.legal-section h3 {
    color: #333;
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet - 768px and up */
@media screen and (min-width: 768px) {
    .page-home .hero-section h1 {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop - 1024px and up */
@media screen and (min-width: 1024px) {
    .site-header {
        padding: 1.5rem 0;
    }
    
    .page-home .hero-section {
        padding: 5rem 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Accessibility & Print
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .mobile-menu-toggle {
        display: none;
    }
    
    .site-content {
        padding: 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
