/*
Theme Name: Cumolo Simple
Theme URI: https://cumolo.fi
Author: Cumolo
Author URI: https://cumolo.fi
Description: Simple WordPress theme for Cumolo with Elementor page builder support
Version: 1.0
License: GPL v2 or later
Text Domain: cumolo-simple
*/


.fallback-colors {
    --fallback-primary: #673DE6;
    --fallback-secondary: #00BF00;
    --fallback-text: #333333;
    --fallback-accent: #0000BF;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

/* Header */
.site-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

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

/* Logo */
.site-logo img {
    height: 50px;
    width: auto;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

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

.main-navigation a:hover {
    color: #673de6;
}

/* Main Content */
.site-content {
    min-height: calc(100vh - 200px);
}

/* Full Width Content */
.full-width-content {
    width: 100%;
    max-width: 100%;
}

/* Full-width hero sections */
.full-width-content>div:first-child[style*="background"] {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

/* Fix for mobile grid layout */
@media (max-width: 768px) {
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Footer */
.site-footer {
    background: var(--e-global-color-secondary, --fallback-secondary);
    color: #fff;
    padding: 40px 0 20px;
    text-align: center;
}

.site-footer p {
    color: #e9ecef;
    margin-bottom: 10px;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

/* Elementor Compatibility */
.elementor-section-wrap {
    margin: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Contact Form 7 Styling */
.wpcf7 label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-family: inherit;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 20px;
    background: #fafafa;
    transition: all 0.3s;
    box-sizing: border-box;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--e-global-color-primary, --fallback-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.1);
}

.wpcf7 textarea {
    resize: vertical;
    min-height: 120px;
}

.wpcf7 input[type="submit"] {
    background: var(--e-global-color-primary, --fallback-primary);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-family: inherit;
    display: inline-block;
    text-align: center;
}

.wpcf7 input[type="submit"]:hover {
    background: var(--e-global-color-accent, --fallback-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(103, 61, 230, 0.3);
}

.wpcf7-form-control-wrap {
    display: block;
}

.wpcf7-spinner {
    display: none;
}

.wpcf7 .required {
    color: #e74c3c;
}

/* Contact Form 7 response messages */
.wpcf7-response-output {
    margin: 20px 0 0;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid;
}

.wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked,
.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Form validation errors */
.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.wpcf7-not-valid {
    border-color: #dc3545 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 20px;
    }
}