/*
Theme Name: Matilda Group
Theme URI: https://matildagroup.com
Author: Matilda Group
Author URI: https://matildagroup.com
Description: A modern WordPress theme for Matilda Group - a holding company showcasing multiple business units including Electronics & Home Appliances, Construction, Household Lighting, Furniture, Wood, Menswear Collection, and Natural Soap & Beauty Products. Fully compatible with WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: matilda-group
Tags: e-commerce, woocommerce, business, corporate, multi-purpose, responsive, modern
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e293b;
    --secondary-color: #dc2626;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --red-500: #ef4444;
    --text-color: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-900: #0f172a;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-300: #cbd5e1;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Header Styles */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    transition: transform 0.4s ease;
}

.site-header.hidden {
    transform: translateY(-100%);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.site-branding img {
    height: 40px;
    width: auto;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
}

.main-navigation a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    position: relative;
}

.main-navigation a:hover {
    color: var(--red-600);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.call-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(to right, var(--red-600), var(--red-700));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.3);
}

.call-button:hover {
    background: linear-gradient(to right, var(--red-700), var(--red-600));
    box-shadow: 0 6px 12px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.call-button svg {
    width: 16px;
    height: 16px;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.2);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.7), rgba(185, 28, 28, 0.15), rgba(15, 23, 42, 0.8));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
    background: linear-gradient(to right, var(--red-600), #f97316, var(--red-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: gradient-x 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-x {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--red-600);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.5);
}

.hero-button:hover {
    background: var(--red-700);
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.6);
}

.hero-button span {
    transition: transform 0.3s ease;
}

.hero-button:hover span {
    transform: translateX(4px);
}

.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-indicator.active {
    background: var(--red-600);
    width: 32px;
    border-radius: 6px;
}

.scroll-indicator {
    position: absolute;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(220, 38, 38, 0.5);
    border-radius: 12px;
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 8px;
    background: var(--red-500);
    border-radius: 50%;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Promo Section */
.promo-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--gray-50), var(--white));
}

.promo-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    height: 400px;
}

.promo-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.promo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.5), transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.promo-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.promo-overlay p {
    color: #e2e8f0;
    font-size: 1.25rem;
    font-weight: 500;
}

/* Divisions Section */
.divisions-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--white), var(--gray-50));
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.division-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--white);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.division-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px rgba(220, 38, 38, 0.2);
}

.division-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.division-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.division-card:hover .division-image img {
    transform: scale(1.05);
}

.division-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4), transparent);
}

.division-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: var(--white);
}

.division-content h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.division-card:hover .division-content h3 {
    color: var(--red-500);
}

.division-content p {
    color: #cbd5e1;
    font-size: 1rem;
    max-width: 300px;
}

/* Brand Section */
.brand-section {
    padding: 3rem 0;
    background: var(--white);
}

.brand-slider {
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.brand-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll-brands 30s linear infinite;
}

@keyframes scroll-brands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brand-item {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--gray-50);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.brand-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.brand-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Location Section */
.location-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--gray-50), var(--white));
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.location-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: var(--transition);
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.location-card img {
    width: 100%;
    height: 256px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.location-card:hover img {
    transform: scale(1.1);
}

.location-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7), transparent);
}

.location-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: var(--white);
}

.location-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.location-card:hover .location-content h3 {
    color: var(--red-400);
}

.location-content p {
    color: #cbd5e1;
    font-size: 0.875rem;
}

/* Footer */
.site-footer {
    background: var(--slate-900);
    color: var(--slate-300);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--slate-800);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widgets .widget {
    margin-bottom: 0;
}

.footer-widgets h3,
.footer-widgets h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-widgets ul {
    list-style: none;
    padding: 0;
}

.footer-widgets ul li {
    margin-bottom: 0.5rem;
}

.footer-widgets a {
    color: var(--slate-300);
    text-decoration: none;
    transition: var(--transition);
}

.footer-widgets a:hover {
    color: var(--red-500);
}

.site-info {
    border-top: 1px solid var(--slate-800);
    padding-top: 1.5rem;
    text-align: center;
}

.site-info p {
    color: var(--slate-400);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

#footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

#footer-menu a {
    color: var(--slate-300);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

#footer-menu a:hover {
    color: var(--red-500);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .divisions-grid {
        grid-template-columns: 1fr;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .main-navigation {
        display: none;
    }
    
    .header-container {
        height: 64px;
    }
    
    .hero-section {
        margin-top: 64px;
    }
    
    .call-button span {
        display: none;
    }
}

/* WooCommerce Styles */
.woocommerce {
    padding: 2rem;
}

.woocommerce-products-header {
    margin-bottom: 2rem;
}

.woocommerce-products-header h1 {
    font-size: 2rem;
    color: var(--text-color);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
