/* ============================================
   MODERN WSW WEBSITE STYLES - CARDS & BUTTONS ONLY
   NO FONT-WEIGHT/TEXT STYLING - Text styling handled by home.css
   ============================================ */

:root {
    --wsw-orange: #eea234;
    --wsw-orange-dark: #d4941f;
    --wsw-grey-dark: #495057;
    --wsw-grey-medium: #6c757d;
    --wsw-grey-light: #e9ecef;
    --wsw-grey-lighter: #f8f9fa;
    --wsw-text-dark: #2c3e50;
    --wsw-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   MODERN PAGE HEADER (Hero Section)
   ============================================ */
.modern-page-header {
    background: linear-gradient(135deg, var(--wsw-grey-dark) 0%, var(--wsw-grey-medium) 100%);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.modern-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

/* Page-specific background images */
.modern-page-header.page-materials {
    background-image: url('../images/gallery/pimg1.jpg');
}

.modern-page-header.page-contact {
    background-image: url('../images/gallery/bg.jpeg');
}

.modern-page-header.page-products {
    background-image: url('../images/gallery/pimg2.jpg');
}

.modern-page-header.page-services {
    background-image: url('../images/gallery/pimg3.jpg');
}

.modern-page-header.page-about {
    background-image: url('../images/gallery/bg-img-2.jpg');
}

.modern-page-header .container {
    position: relative;
    z-index: 2;
}

.modern-page-header h1 {
    font-family: 'Plateia', sans-serif;
    font-size: 3.5rem;
    color: var(--wsw-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    position: relative;
    z-index: 2;
}

.modern-page-header .lead {
    font-size: 1.25rem;
    color: var(--wsw-orange);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    position: relative;
    z-index: 2;
}

/* ============================================
   MODERN CARDS
   ============================================ */
.modern-card {
    background: var(--wsw-white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--wsw-grey-light);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--wsw-orange);
}

.modern-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.modern-card:hover .modern-card-img {
    transform: scale(1.05);
}

.modern-card-body {
    padding: 2rem;
}

.modern-card-title {
    font-family: 'Plateia', sans-serif;
    font-size: 1.5rem;
    color: var(--wsw-text-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modern-card-text {
    color: var(--wsw-grey-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ============================================
   MODERN BUTTONS
   ============================================ */
.btn-modern {
    background: linear-gradient(135deg, var(--wsw-orange) 0%, var(--wsw-orange-dark) 100%);
    color: var(--wsw-white);
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(238, 162, 52, 0.3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 162, 52, 0.4);
    color: var(--wsw-white);
}

.btn-modern-outline {
    background: transparent;
    color: var(--wsw-orange);
    border: 2px solid var(--wsw-orange);
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-modern-outline:hover {
    background: var(--wsw-orange);
    color: var(--wsw-white);
    transform: translateY(-2px);
}

/* ============================================
   MODERN CONTACT FORM
   ============================================ */
.modern-contact-form {
    background: var(--wsw-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--wsw-grey-light);
}

.modern-form-group {
    margin-bottom: 1.5rem;
}

.modern-form-label {
    display: block;
    color: var(--wsw-text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-form-control {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid var(--wsw-grey-light);
    border-radius: 12px;
    background: var(--wsw-grey-lighter);
    transition: var(--transition);
    font-family: inherit;
    color: var(--wsw-text-dark);
}

.modern-form-control:focus {
    outline: none;
    border-color: var(--wsw-orange);
    background: var(--wsw-white);
    box-shadow: 0 0 0 4px rgba(238, 162, 52, 0.1);
    transform: translateY(-1px);
}

.modern-form-control::placeholder {
    color: var(--wsw-grey-medium);
    opacity: 0.7;
}

textarea.modern-form-control {
    min-height: 140px;
    resize: vertical;
    font-family: inherit;
}

select.modern-form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
}

/* ============================================
   MODERN SECTIONS
   ============================================ */
.modern-section {
    padding: 30px 0;
}

.modern-section-alt {
    background: var(--wsw-grey-lighter);
    padding: 30px 0;
}

.section-title,
h2.section-title,
h1.section-title,
h3.section-title {
    font-family: 'Plateia', sans-serif;
    font-size: 2.5rem;
    color: var(--wsw-text-dark);
    text-align: center;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--wsw-grey-medium);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--wsw-orange) 0%, var(--wsw-orange-dark) 100%);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

/* ============================================
   MODERN CONTACT INFO CARDS
   ============================================ */
.contact-info-card {
    background: var(--wsw-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--wsw-grey-light);
    transition: var(--transition);
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--wsw-orange);
}

.contact-info-card h3 {
    font-family: 'Plateia', sans-serif;
    font-size: 1.5rem;
    color: var(--wsw-text-dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--wsw-grey-light);
}

.contact-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-info-icon {
    color: var(--wsw-orange);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-info-content {
    flex: 1;
}

.contact-info-label {
    color: var(--wsw-text-dark);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-value {
    color: var(--wsw-grey-medium);
    font-size: 1rem;
}

.contact-info-value a {
    color: var(--wsw-orange);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-value a:hover {
    color: var(--wsw-orange-dark);
    text-decoration: underline;
}

/* ============================================
   MODERN MATERIAL LIST
   ============================================ */
.material-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.material-item {
    background: var(--wsw-white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--wsw-grey-light);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.material-item:nth-child(even) {
    background: var(--wsw-grey-lighter);
}

.material-item:hover {
    transform: translateX(8px);
    border-color: var(--wsw-orange);
    box-shadow: var(--shadow-md);
}

.material-item-title,
div.material-item-title,
.material-item-content .material-item-title {
    font-family: 'Plateia', sans-serif;
    font-size: 1.25rem;
    color: var(--wsw-text-dark);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.material-item-details {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 0.5rem;
}

.material-item-details li {
    color: var(--wsw-grey-medium);
    padding: 0.15rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.material-item-details li::before {
    content: '•';
    color: var(--wsw-orange);
    position: absolute;
    left: 0;
}

/* Material Item Cards with Images */
.material-item-card {
    background: #ffffff !important;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--wsw-grey-light);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.material-item-card:hover {
    transform: translateY(-5px);
    border-color: var(--wsw-orange);
    box-shadow: var(--shadow-md);
}

.material-item-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.material-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: var(--transition);
    display: block;
}

.material-item-card:hover .material-item-image img {
    transform: scale(1.05);
}

.material-item-content {
    padding: 1.5rem;
    padding-bottom: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff !important;
}

.material-item-card .material-item-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.material-item-card .material-item-details {
    margin-bottom: 0.75rem;
}

.material-item-card {
    position: relative;
}

.material-quote-btn {
    width: 100%;
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    margin-top: auto;
}

.material-item-card:hover .material-quote-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.material-quote-btn:hover {
    background: var(--wsw-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 162, 52, 0.4);
}

/* ============================================
   MODERN ALERT MESSAGES
   ============================================ */
.modern-alert {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.modern-alert.show {
    display: block;
}

.modern-alert-success {
    background: rgba(238, 162, 52, 0.1);
    border: 2px solid var(--wsw-orange);
    color: var(--wsw-orange-dark);
}

.modern-alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
    color: #dc3545;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .modern-page-header {
        padding: 60px 0 50px;
    }
    
    .modern-page-header h1 {
        font-size: 2rem;
    }
    
    .modern-contact-form {
        padding: 2rem 1.5rem;
    }
    
    .modern-section,
    .modern-section-alt {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .modern-card-body {
        padding: 1.5rem;
    }
}

/* ============================================
   PAGE-SPECIFIC FUNCTIONAL STYLES
   ============================================ */

/* Wire Page - Navigation Active State */
.nav_material { 
    color: var(--wsw-orange) !important; 
}

/* Wire Page - Advantage Buttons */
.wire-advantages-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.advantage-btn {
    display: inline-block;
    background: var(--wsw-orange);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.advantage-btn:hover {
    background: var(--wsw-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Product Page - Platform Buttons */
.product-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
    margin-bottom: 0;
    justify-content: center;
    align-items: center;
    transition: margin-bottom 0.3s ease;
}

.material-item-card:hover .product-buttons {
    margin-bottom: 30px;
}

.material-item-card:hover .material-item-content {
    padding-bottom: 30px;
    transition: padding-bottom 0.3s ease;
}

.product-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e9ecef;
    padding: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: relative;
    cursor: pointer;
}

.product-platform-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--wsw-orange);
    text-decoration: none;
}

.product-platform-btn:hover .product-platform-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

.product-platform-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: transparent;
    padding: 0;
}

.product-platform-tooltip {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #2c3e50;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-platform-tooltip::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #2c3e50;
}

/* Contact Page - Blog Slider */
.blog-slider-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.blog-slider-section h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    }
    
.blog-slider-container {
    position: relative;
    overflow: hidden;
    height: 640px;
}

.blog-slider {
    display: flex;
    flex-direction: column;
    transition: transform 0.6s ease-in-out;
    gap: 1.25rem;
    height: max-content;
}

.blog-card {
    width: 100%;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 300px;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.blog-card-image-wrapper {
    width: 100%;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f8f9fa;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.blog-card-title {
    font-size: 1.05rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.blog-card-link {
    color: #eea234;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    flex-shrink: 0;
}

.blog-card-link:hover {
    color: #d4941f;
}

.blog-slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.blog-slider-btn {
    background: #eea234;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    }
    
.blog-slider-btn:hover {
    background: #d4941f;
    transform: scale(1.1);
}

.blog-slider-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .wire-advantages-buttons {
        gap: 8px;
    }
    .advantage-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    .product-platform-btn {
        width: 55px;
        height: 55px;
    }
    .product-platform-tooltip {
        font-size: 0.75rem;
        padding: 6px 12px;
        top: -45px;
    }
    .blog-card {
        flex-direction: column;
        height: auto;
    }
    .blog-card-image-wrapper {
        width: 100%;
        height: 150px;
    }
    .blog-slider-container {
        height: auto;
        max-height: 600px;
    }
}
