/* Critical CSS for Cubatica Site */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #051a24;
    background: #fff;
}

/* Header Styles */
.site-header, header[data-id="type-1"] {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1000;
}

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

/* Navigation */
.site-nav-container ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.site-nav-container a {
    color: #051a24;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.site-nav-container a:hover {
    color: #1f8ebf;
}

/* Main Content */
.site-main {
    min-height: 60vh;
    padding: 40px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #051a24;
    margin-bottom: 20px;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

p {
    margin-bottom: 15px;
}

/* Buttons */
.elementor-button, .button, .gform_button {
    display: inline-block;
    padding: 12px 30px;
    background: #1f8ebf;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.elementor-button:hover, .button:hover, .gform_button:hover {
    background: #2da9e0;
    transform: translateY(-2px);
}

/* Elementor Sections */
.elementor-section {
    position: relative;
}

.elementor-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.elementor-column {
    position: relative;
    min-height: 1px;
}

.elementor-widget-wrap {
    position: relative;
    width: 100%;
}

/* Footer */
.ct-footer, footer {
    background: #051a24;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.ct-footer a {
    color: #8dc8e8;
    text-decoration: none;
}

.ct-footer a:hover {
    color: white;
}

/* Forms */
.gform_wrapper {
    max-width: 100%;
}

.gfield {
    margin-bottom: 20px;
}

.gfield_label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.gfield input[type="text"],
.gfield input[type="email"],
.gfield input[type="tel"],
.gfield input[type="url"],
.gfield textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 24px; }
    
    .elementor-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    
    .ct-container {
        padding: 0 15px;
    }
}

/* Fix Gravity Forms visibility */
.gform_wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Fix color scheme */
.elementor-element {
    color: inherit;
}

/* Ensure text is visible */
.elementor-widget-text-editor,
.elementor-widget-heading {
    color: #051a24;
}

/* Fix background colors */
section[data-settings*="background_background"] {
    position: relative;
}

/* Ensure forms are visible */
#gform_wrapper_5,
#gform_wrapper_20 {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}