/**
 * Elementor Custom Styles for Charcuteria Theme
 * 
 * This file ensures Elementor widgets and sections 
 * match the Charcuteria theme design system
 */

/* ===== Elementor Widget Overrides ===== */

/* Ensure Elementor sections inherit theme colors */
.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-widget-heading h4,
.elementor-widget-heading h5,
.elementor-widget-heading h6 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--dark-charcoal);
}

.elementor-widget-text-editor {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-charcoal);
}

/* Elementor buttons inherit theme styles */
.elementor-button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.elementor-button.elementor-button-primary {
    background-color: var(--primary-gold);
    color: var(--white);
}

.elementor-button.elementor-button-primary:hover {
    background-color: var(--accent-terracotta);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.elementor-button.elementor-button-secondary {
    background-color: var(--secondary-olive);
    color: var(--white);
}

.elementor-button.elementor-button-secondary:hover {
    background-color: var(--primary-gold);
}

/* Elementor section spacing */
.elementor-section {
    padding: 4rem 0;
}

.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px;
}

/* Elementor links */
.elementor-widget-container a {
    color: var(--primary-gold);
    transition: all 0.3s ease;
}

.elementor-widget-container a:hover {
    color: var(--accent-terracotta);
}

/* ===== Elementor Forms ===== */

.elementor-field-group input[type="text"],
.elementor-field-group input[type="email"],
.elementor-field-group input[type="tel"],
.elementor-field-group input[type="url"],
.elementor-field-group input[type="number"],
.elementor-field-group input[type="date"],
.elementor-field-group select,
.elementor-field-group textarea {
    font-family: 'Montserrat', sans-serif;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.elementor-field-group input:focus,
.elementor-field-group select:focus,
.elementor-field-group textarea:focus {
    border-color: var(--primary-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 152, 95, 0.1);
}

.elementor-button.elementor-size-sm,
.elementor-button.elementor-size-md,
.elementor-button.elementor-size-lg,
.elementor-button.elementor-size-xl {
    padding: 1rem 2.5rem;
}

/* ===== Elementor Image Widget ===== */

.elementor-widget-image img {
    border-radius: 8px;
}

/* ===== Elementor Icon Box ===== */

.elementor-icon-box-icon {
    color: var(--primary-gold);
}

.elementor-icon-box-title {
    color: var(--primary-gold);
    font-family: 'Cormorant Garamond', serif;
}

.elementor-icon-box-description {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-charcoal);
}

/* ===== Elementor Testimonial Widget ===== */

.elementor-testimonial-wrapper {
    background-color: var(--warm-cream);
    border-radius: 8px;
    padding: 2rem;
}

.elementor-testimonial-name {
    color: var(--primary-gold);
    font-family: 'Cormorant Garamond', serif;
}

.elementor-testimonial-content {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-charcoal);
}

/* ===== Elementor Counter Widget ===== */

.elementor-counter-number-wrapper {
    color: var(--primary-gold);
    font-family: 'Cormorant Garamond', serif;
}

.elementor-counter-title {
    color: var(--dark-charcoal);
    font-family: 'Montserrat', sans-serif;
}

/* ===== Elementor Divider ===== */

.elementor-divider-separator {
    border-color: var(--primary-gold);
}

/* ===== Elementor Social Icons ===== */

.elementor-social-icon {
    background-color: var(--primary-gold);
    color: var(--white);
    transition: all 0.3s ease;
}

.elementor-social-icon:hover {
    background-color: var(--accent-terracotta);
    transform: translateY(-2px);
}

/* ===== Elementor Price Table ===== */

.elementor-price-table {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.elementor-price-table__heading {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-olive) 100%);
    color: var(--white);
}

.elementor-price-table__price {
    color: var(--primary-gold);
    font-family: 'Cormorant Garamond', serif;
}

.elementor-price-table__feature-inner {
    font-family: 'Montserrat', sans-serif;
}

/* ===== Elementor Accordion ===== */

.elementor-accordion .elementor-tab-title {
    background-color: var(--warm-cream);
    color: var(--dark-charcoal);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.elementor-accordion .elementor-tab-title:hover {
    background-color: var(--primary-gold);
    color: var(--white);
}

.elementor-accordion .elementor-tab-title.elementor-active {
    background-color: var(--primary-gold);
    color: var(--white);
}

.elementor-accordion .elementor-tab-content {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-charcoal);
}

/* ===== Elementor Tabs ===== */

.elementor-tabs .elementor-tab-title {
    background-color: var(--warm-cream);
    color: var(--dark-charcoal);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.elementor-tabs .elementor-tab-title:hover {
    background-color: var(--primary-gold);
    color: var(--white);
}

.elementor-tabs .elementor-tab-title.elementor-active {
    background-color: var(--primary-gold);
    color: var(--white);
}

.elementor-tabs .elementor-tab-content {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-charcoal);
}

/* ===== Elementor Progress Bar ===== */

.elementor-progress-bar {
    background-color: var(--warm-cream);
}

.elementor-progress-bar .elementor-progress-bar-inner {
    background-color: var(--primary-gold);
}

.elementor-progress-text {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-charcoal);
}

/* ===== Elementor Call to Action ===== */

.elementor-cta {
    background: linear-gradient(135deg, var(--secondary-olive) 0%, var(--primary-gold) 100%);
    border-radius: 8px;
}

.elementor-cta__title {
    color: var(--white);
    font-family: 'Cormorant Garamond', serif;
}

.elementor-cta__description {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
}

/* ===== Responsive Adjustments ===== */

@media (max-width: 768px) {
    .elementor-section {
        padding: 2rem 0;
    }
    
    .elementor-button {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
}

/* ===== Elementor Canvas Template ===== */

.elementor-template-canvas {
    background-color: var(--warm-cream);
}

/* Ensure header spacing for fixed header */
.elementor-location-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.elementor-location-header ~ .elementor-section:first-of-type {
    margin-top: 90px;
}

/* ===== Custom Elementor Widgets Styling ===== */

/* If using custom widgets for menu items */
.charcuteria-menu-widget .menu-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.charcuteria-menu-widget .menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.charcuteria-menu-widget .menu-item-title {
    color: var(--primary-gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.charcuteria-menu-widget .menu-item-price {
    color: var(--secondary-olive);
    font-weight: 600;
    font-size: 1.2rem;
}

.charcuteria-menu-widget .menu-item-description {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-charcoal);
    line-height: 1.6;
}
