/**
 * JSON Pattern Renderer - Frontend Styles
 * Extracted from render_engine.php
 */

/* Hide WordPress theme elements on pattern pages */
.page-template-default .site-header,
.page-template-default header.header,
.page-template-default #masthead,
.page-template-default .site-footer,
.page-template-default footer.footer,
.page-template-default #colophon,
.page-template-default .entry-header,
.page-template-default .page-header,
.page-template-default h1.entry-title,
.page-template-default h1.page-title {
    display: none !important;
}

body { 
    font-family: 'Poppins', sans-serif; 
    line-height: 1.6; 
    color: #333; 
    margin: 0 !important; 
    padding: 0 !important; 
}

/* Remove any theme padding/margins */
#content,
.site-content,
.entry-content,
article,
main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

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

/* Structural Components */
.section { 
    padding: 60px 0; 
}

.jpr-columns { 
    display: flex; 
    flex-wrap: nowrap; 
    width: 100%; 
}

.jpr-column { 
    flex: 1; 
    padding: 10px; 
    box-sizing: border-box; 
}

/* Global Elements */
.btn { 
    display: inline-block; 
    padding: 14px 32px; 
    background: #CFA855; 
    color: #fff; 
    text-decoration: none; 
    border: none; 
    border-radius: 50px; 
    cursor: pointer; 
    transition: all 0.3s; 
    font-weight: 600;
    font-size: 16px;
}

.btn:hover { 
    background: #b08b3a; 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(207, 168, 85, 0.3);
}

.btn-primary {
    background: #CFA855;
}

.btn-primary:hover {
    background: #b08b3a;
}

.btn-small { 
    padding: 8px 16px; 
    font-size: 0.9em; 
}

/* WLW Header */
.wlw-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.wlw-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.wlw-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.wlw-header .logo img {
    display: block;
}

.wlw-header .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.wlw-header .mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #330B11;
    border-radius: 2px;
}

.wlw-header .main-nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

.wlw-header .main-nav a {
    color: #330B11;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.wlw-header .main-nav a:hover {
    color: #CFA855;
}

.wlw-header .header-cta .btn {
    padding: 12px 28px;
    font-size: 16px;
}

/* WLW Footer */
.wlw-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 0;
}

.wlw-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.wlw-footer .footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wlw-footer .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wlw-footer .footer-col li {
    margin-bottom: 12px;
}

.wlw-footer .footer-col a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.wlw-footer .footer-col a:hover {
    color: #ffffff;
}

.wlw-footer .footer-col p {
    color: #cccccc;
    line-height: 1.8;
    margin: 6px 0;
    font-size: 14px;
}

.wlw-footer .footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.wlw-footer .footer-bottom p {
    color: #999;
    font-size: 13px;
    margin: 0;
}

.wlw-footer .footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.wlw-footer .footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive Header/Footer */
@media (max-width: 768px) {
    .wlw-header .mobile-menu-toggle {
        display: flex;
        order: 2;
    }
    
    .wlw-header .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        gap: 15px;
    }
    
    .wlw-header .main-nav.active {
        display: flex;
    }
    
    .wlw-header .header-cta {
        order: 3;
    }
    
    .wlw-header .header-inner {
        position: relative;
    }
    
    .wlw-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Hero */
.component-hero { 
    padding: 80px 0; 
    background: #F9EBEB; 
}

.component-hero .jpr-columns {
    align-items: center;
    gap: 40px;
}

.component-hero h1 {
    font-size: 3.5em;
    color: #330B11;
    line-height: 1.2;
    margin: 0 0 20px;
}

.component-hero .jpr-column:first-child {
    padding-right: 40px;
}

.component-hero img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.hero-pre { 
    font-size: 1.2em; 
    color: #666; 
    margin-bottom: 10px; 
}

.hero-heading { 
    font-size: 3em; 
    color: #1f515b; 
    margin: 0 0 20px; 
}

.hero-content { 
    font-size: 1.2em; 
    margin: 0 0 30px; 
    color: #555;
}

.hero-features { 
    list-style: none; 
    padding: 0; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    margin-bottom: 30px; 
}

.hero-features li { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-weight: 500; 
}

.hero-features .icon {
    color: #CFA855;
    font-weight: bold;
}

/* Slider/Grid */
.component-slider {
    padding: 60px 0;
}

.component-slider h2 {
    text-align: center;
    font-size: 2.5em;
    color: #1f515b;
    margin-bottom: 15px;
}

.component-slider > .container > p {
    text-align: center;
    font-size: 1.1em;
    color: #666;
    margin-bottom: 40px;
}

.slider-track { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.slide-card { 
    border: 1px solid #eee; 
    padding: 20px; 
    border-radius: 8px; 
    text-align: center; 
    background: #fff; 
    transition: transform 0.2s; 
}

.slide-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}

.slide-card img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 8px; 
    margin-bottom: 15px; 
}

.slide-title { 
    color: #1f515b; 
    font-size: 1.2em; 
    margin-bottom: 10px; 
}

/* Accordion */
.component-accordion {
    padding: 60px 0;
}

.component-accordion h3 {
    text-align: center;
    font-size: 2.5em;
    color: #1f515b;
    margin-bottom: 40px;
}

.accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item { 
    border-bottom: 1px solid #ddd; 
}

.accordion-trigger { 
    width: 100%; 
    text-align: left; 
    padding: 20px 0; 
    background: none; 
    border: none; 
    font-weight: 600; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    font-size: 1.1em; 
    color: #1f515b; 
}

.accordion-content { 
    padding-bottom: 20px; 
    color: #666; 
}

/* Feature Row */
.feature-row-flex { 
    display: flex; 
    gap: 60px; 
    align-items: center; 
}

.feature-row-flex .img-col { 
    flex: 1; 
}

.feature-row-flex .img-col img { 
    width: 100%; 
    border-radius: 12px; 
}

.feature-row-flex .text-col { 
    flex: 1; 
}

.feature-row-flex h3 { 
    font-size: 2em; 
    color: #1f515b; 
    margin-bottom: 20px; 
}

.feature-row-list { 
    list-style: none; 
    padding: 0; 
    margin-bottom: 20px; 
}

.feature-row-list li { 
    margin-bottom: 10px; 
    padding-left: 20px; 
    position: relative; 
}

.feature-row-list li:before { 
    content: '✓'; 
    color: #1f515b; 
    position: absolute; 
    left: 0; 
}

/* Feature Grid / Carousel */
.component-feature-grid {
    padding: 80px 0;
    background: #FDFBF7;
}

.component-feature-grid h2 {
    font-size: 2.5em;
    color: #330B11;
    margin-bottom: 50px;
}

.grid-wrapper { 
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 10px 0 30px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #CFA855 #f0f0f0;
}

.grid-wrapper::-webkit-scrollbar {
    height: 8px;
}

.grid-wrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.grid-wrapper::-webkit-scrollbar-thumb {
    background: #CFA855;
    border-radius: 10px;
}

.grid-wrapper::-webkit-scrollbar-thumb:hover {
    background: #b08b3a;
}

.grid-item { 
    background: #F4E4E4; 
    padding: 30px; 
    border-radius: 16px; 
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.grid-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.grid-item h4 { 
    color: #330B11; 
    font-size: 1.4em; 
    margin: 15px 0 10px; 
    font-weight: 600;
}

.grid-item p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

.grid-actions { 
    text-align: center; 
    margin-top: 40px; 
}

/* Desktop: show as grid */
@media (min-width: 1024px) {
    .grid-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
    }
    
    .grid-item {
        min-width: auto;
    }
}

/* Steps */
.steps-wrapper { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    max-width: 800px; 
    margin: 0 auto; 
}

.step-item { 
    display: flex; 
    gap: 20px; 
    background: #fff; 
    padding: 20px; 
    border: 1px solid #eee; 
    border-radius: 8px; 
}

.step-num { 
    font-size: 2em; 
    font-weight: bold; 
    color: #e0e0e0; 
    line-height: 1; 
}

.step-content h4 { 
    margin: 0 0 10px; 
    color: #1f515b; 
}

.step-content p { 
    margin: 0; 
    color: #666; 
}

/* Content Block */
.component-content-block {
    padding: 60px 0;
}

.component-content-block h2 { 
    font-size: 2.5em; 
    color: #1f515b; 
    margin-bottom: 30px; 
}

.component-content-block .content { 
    font-size: 1.2em; 
    max-width: 800px; 
    margin: 0 auto 30px; 
}

.component-content-block .actions {
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .jpr-columns { 
        flex-direction: column; 
    }
    
    .jpr-column { 
        width: 100%; 
        max-width: 100% !important; 
        flex-basis: auto !important; 
        padding: 10px 0 !important;
    }
    
    .component-hero h1 {
        font-size: 2.2em;
    }
    
    .component-hero .jpr-column:first-child {
        padding-right: 0;
        order: 2;
    }
    
    .component-hero .jpr-column:last-child {
        order: 1;
        margin-bottom: 30px;
    }
    
    .feature-row-flex { 
        flex-direction: column !important; 
    }
    
    .hero-heading { 
        font-size: 2em; 
    }
    
    .footer-grid { 
        grid-template-columns: 1fr; 
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .site-header nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    .grid-wrapper {
        grid-template-columns: 1fr;
    }
    
    .component-feature-grid h2 {
        font-size: 2em;
    }
}
