/* ============================================================
   CHEF VASANTH — ELEMENTOR COMPATIBILITY & GLOBAL STYLES
   Loaded when Elementor is active alongside the theme.
   ============================================================ */

/* ─── GLOBAL ELEMENTOR OVERRIDES ─── */
body.elementor-page .site-header { z-index: 9999; }

/* Elementor editor: show header properly */
.elementor-editor-active .site-header { position: relative !important; }

/* ─── ELEMENTOR GLOBAL TYPOGRAPHY (matches theme) ─── */
.elementor-widget-heading .elementor-heading-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 300 !important;
    color: var(--cream);
    line-height: 1.1;
}
.elementor-widget-text-editor { color: var(--text-muted); }

/* ─── CHEF VASANTH CUSTOM ELEMENTOR CLASSES ─── */

/* Gold eyebrow label */
.cv-eyebrow {
    font-size: 0.62rem !important;
    letter-spacing: 0.35em !important;
    text-transform: uppercase !important;
    color: var(--gold) !important;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Montserrat', sans-serif !important;
}
.cv-eyebrow::after {
    content: '';
    flex: 0 0 40px;
    height: 1px;
    background: var(--gold);
}

/* Gold title highlight */
.cv-title-gold { color: var(--gold) !important; font-style: italic; }

/* Primary button */
.cv-btn-primary.elementor-button,
.elementor-button.cv-btn-primary {
    background: var(--gold) !important;
    color: var(--black) !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    padding: 1rem 2.5rem !important;
    transition: background 0.3s, transform 0.3s !important;
}
.cv-btn-primary.elementor-button:hover {
    background: var(--gold-light) !important;
    transform: translateY(-2px) !important;
}

/* Ghost button */
.cv-btn-ghost.elementor-button,
.elementor-button.cv-btn-ghost {
    background: transparent !important;
    color: var(--cream) !important;
    border: 1px solid var(--gold) !important;
    border-radius: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    padding: 0.9rem 2rem !important;
    transition: background 0.3s, color 0.3s !important;
}
.cv-btn-ghost.elementor-button:hover {
    background: var(--gold) !important;
    color: var(--black) !important;
}

/* Gold border divider */
.cv-gold-divider { border-color: var(--gold) !important; }
.cv-gold-divider .elementor-divider-separator { border-color: var(--gold) !important; }

/* Stat number */
.cv-stat-num {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 3rem !important;
    font-weight: 300 !important;
    color: var(--gold) !important;
    line-height: 1 !important;
}
.cv-stat-label {
    font-size: 0.6rem !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: var(--text-muted) !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Pull quote */
.cv-pull-quote {
    font-family: 'Cormorant Garamond', serif !important;
    font-style: italic !important;
    font-size: 1.5rem !important;
    color: var(--gold) !important;
    line-height: 1.4 !important;
    border-left: 2px solid var(--gold) !important;
    padding-left: 1.5rem !important;
    margin: 2rem 0 !important;
}

/* Service card */
.cv-service-card {
    background: var(--black) !important;
    border: 1px solid var(--border) !important;
    padding: 2.5rem 2rem !important;
    position: relative !important;
    overflow: hidden !important;
    transition: background 0.4s !important;
}
.cv-service-card:hover { background: var(--warm-dark) !important; }
.cv-service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0; height: 2px;
    background: var(--gold);
    transition: width 0.4s;
}
.cv-service-card:hover::before { width: 100%; }
.cv-service-card .elementor-widget-heading .elementor-heading-title {
    font-size: 1.4rem !important;
    margin-bottom: 1rem !important;
}
.cv-service-card .elementor-widget-text-editor { font-size: 0.72rem !important; line-height: 1.9 !important; }

/* Testimonial card */
.cv-testi-card {
    background: var(--warm-dark) !important;
    border: 1px solid var(--border) !important;
    padding: 2.5rem !important;
    transition: border-color 0.3s !important;
}
.cv-testi-card:hover { border-color: var(--gold) !important; }

/* Package card */
.cv-package-card {
    border: 1px solid var(--border) !important;
    padding: 3rem 2rem !important;
    background: var(--black) !important;
    transition: border-color 0.3s, transform 0.3s !important;
}
.cv-package-card:hover { border-color: var(--gold) !important; transform: translateY(-4px) !important; }
.cv-package-card.cv-featured { border-color: var(--gold) !important; background: rgba(201,168,76,0.03) !important; }

/* Package price */
.cv-price {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 2.8rem !important;
    font-weight: 300 !important;
    color: var(--gold) !important;
    line-height: 1 !important;
}

/* Gold background section */
.cv-section-gold { background: var(--gold) !important; }
.cv-section-gold * { color: var(--black) !important; }
.cv-section-gold .elementor-heading-title { color: var(--black) !important; font-family: 'Cormorant Garamond', serif !important; }

/* Dark section */
.cv-section-dark { background: var(--black) !important; }
.cv-section-warm { background: var(--warm-dark) !important; }

/* Blog card */
.cv-blog-card { display: block; text-decoration: none !important; color: inherit !important; }
.cv-blog-card:hover .elementor-heading-title { color: var(--gold) !important; }
.cv-blog-card .elementor-widget-image img { transition: transform 0.5s !important; }
.cv-blog-card:hover .elementor-widget-image img { transform: scale(1.04) !important; }

/* Category pill */
.cv-category-pill {
    font-size: 0.55rem !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    color: var(--gold) !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Contact form Elementor */
.cv-contact-form .elementor-field-group label {
    font-size: 0.58rem !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: var(--text-muted) !important;
    font-family: 'Montserrat', sans-serif !important;
}
.cv-contact-form .elementor-field {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid var(--border) !important;
    color: var(--cream) !important;
    border-radius: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.75rem !important;
}
.cv-contact-form .elementor-field:focus { border-color: var(--gold) !important; }
.cv-contact-form .elementor-button {
    background: var(--gold) !important;
    color: var(--black) !important;
    border-radius: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
}
.cv-contact-form .elementor-button:hover { background: var(--gold-light) !important; }

/* Hero section specific */
.cv-hero-section { min-height: 100vh !important; }
.cv-hero-stat-strip {
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.cv-hero-stat {
    padding: 1.4rem 2rem;
    text-align: center;
    border-right: 1px solid var(--border);
}
.cv-hero-stat:last-child { border-right: none; }

/* About portrait frame */
.cv-portrait-frame {
    position: relative;
}
.cv-portrait-frame::after {
    content: '';
    position: absolute;
    top: 1.2rem; left: 1.2rem; right: -1.2rem; bottom: -1.2rem;
    border: 1px solid var(--border);
    z-index: -1;
    pointer-events: none;
}
.cv-portrait-frame img { 
    width: 100% !important;
    aspect-ratio: 3/4 !important;
    object-fit: cover !important;
    object-position: top center !important;
}

/* Gold badge */
.cv-gold-badge {
    background: var(--gold) !important;
    color: var(--black) !important;
    padding: 1.2rem !important;
    text-align: center !important;
    width: 100px !important;
    height: 100px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Large decorative number */
.cv-deco-num {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 5rem !important;
    font-weight: 300 !important;
    color: rgba(201,168,76,0.08) !important;
    line-height: 1 !important;
    font-style: italic !important;
}

/* List with gold bullets */
.cv-gold-list { list-style: none !important; padding: 0 !important; }
.cv-gold-list li {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--cream);
}
.cv-gold-list li::before { content: '◆'; font-size: 0.4rem; color: var(--gold); flex-shrink: 0; }

/* Dish overlay card */
.cv-dish-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}
.cv-dish-card .elementor-widget-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s !important;
}
.cv-dish-card:hover .elementor-widget-image img { transform: scale(1.05) !important; }
.cv-dish-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,8,0.96) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 1.8rem;
    transition: background 0.3s;
}

/* Navigation header transparent */
.site-header-elementor {
    position: fixed !important;
    top: 0; left: 0; width: 100%;
    z-index: 9999 !important;
}

/* Page hero banner for inner pages */
.cv-page-hero {
    padding: 10rem 0 5rem !important;
    background: var(--warm-dark) !important;
    border-bottom: 1px solid var(--border) !important;
    text-align: center;
}

/* Icon box (for services) */
.cv-icon-box.elementor-icon-box-wrapper {
    background: var(--black);
    border: 1px solid var(--border);
    padding: 2.5rem;
    transition: border-color 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}
.cv-icon-box.elementor-icon-box-wrapper:hover { background: var(--warm-dark); border-color: var(--gold); }
.cv-icon-box .elementor-icon-box-title { font-family: 'Cormorant Garamond', serif !important; font-size: 1.4rem !important; color: var(--cream) !important; }
.cv-icon-box .elementor-icon-box-description { font-size: 0.72rem !important; color: var(--text-muted) !important; line-height: 1.9 !important; }
.cv-icon-box .elementor-icon i { color: var(--gold) !important; }

/* Elementor inner page content */
.elementor-page .entry-content { max-width: 100%; padding: 0; }

/* Pagination for elementor pages */
.cv-pagination a, .cv-pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    margin: 0 0.2rem;
    transition: border-color 0.3s, color 0.3s;
}
.cv-pagination a:hover, .cv-pagination .current {
    border-color: var(--gold);
    color: var(--gold);
}

/* Skill bar (custom HTML widget) */
.cv-skill-bar-row { margin-bottom: 1.2rem; }
.cv-skill-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    color: var(--cream);
    opacity: 0.8;
    font-family: 'Montserrat', sans-serif;
}
.cv-skill-bar-track {
    height: 2px;
    background: rgba(255,255,255,0.08);
    position: relative;
}
.cv-skill-bar-fill {
    position: absolute;
    top: 0; left: 0; height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    width: 0;
    transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* Responsive fixes for Elementor sections */
@media (max-width: 1024px) {
    .cv-hero-section { min-height: auto !important; }
    .cv-portrait-frame::after { display: none; }
}
@media (max-width: 767px) {
    .cv-hero-stat-strip { grid-template-columns: 1fr; }
    .cv-hero-stat { border-right: none; border-bottom: 1px solid var(--border); }
    .cv-pull-quote { font-size: 1.2rem !important; }
}
