/*
Theme Name: Cubebs Home
Theme URI: https://yourwebsite.com/
Author: Your Name
Author URI: https://yourwebsite.com/
Description: A fully customizable WordPress theme that replicates the Loxone website design. All elements (images, colors, font sizes, content) can be changed from the Customizer.
Version: 1.0.0
License: GPL v2 or later
Text Domain: cubebs-home
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #333333;
    overflow-x: hidden;
}

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

/* Header Styles */
.site-header {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 15px 0;
}

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

.site-logo a {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color, #00a651);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 120px 0;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: var(--hero-heading-size, 48px);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color, #00a651);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #008a43;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: var(--h2-size, 36px);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: var(--h3-size, 24px);
    margin-bottom: 15px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card h3 {
    font-size: var(--h3-size, 22px);
    margin: 20px 20px 10px;
}

.product-card p {
    margin: 0 20px 20px;
    color: #666;
}

.product-card .btn {
    margin: 0 20px 25px;
    display: inline-block;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg, #222);
    color: #ccc;
    padding: 50px 0 20px;
    margin-top: 60px;
}

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

.copyright {
    margin-top: 30px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .features-grid, .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== SITE BRANDING (Logo, Name, Tagline in one line) ========== */
.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.site-logo {
    line-height: 0; /* removes extra space below logo */
}

.site-logo img {
    max-height: 50px; /* adjust as needed */
    width: auto;
}

.site-title-tagline {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.site-title a {
    text-decoration: none;
    color: #1a1a1a;
}

.site-tagline {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.3;
    font-style: italic;
    letter-spacing: 0.3px;
}

/* Optional: Add a subtle separator */
.site-title::after {
    content: "|";
    margin-left: 12px;
    color: #ccc;
    font-weight: 300;
}

/* If you don't want the separator, remove the above block. */

/* Responsive: Stack on very small screens if needed */
@media (max-width: 550px) {
    .site-branding {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .site-title-tagline {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .site-title::after {
        display: none;
    }
}