/* ============================================
   EBIZ Institute — Modern Design Layer
   ============================================ */

/* --- TYPOGRAPHY OVERRIDE --- */
body, .nectar-widget, .woocommerce, .nectar-button, 
.nectar-cta, .swiper-slide .content p,
#top nav ul li a, .sf-menu li ul li a,
.wpb_column .wpb_wrapper h1, .wpb_column .wpb_wrapper h2,
.wpb_column .wpb_wrapper h3, .wpb_column .wpb_wrapper h4,
.row .col p, .nectar-horiz-list-item, p {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.nectar-horiz-list-item h2,
.wpb_wrapper h1, .wpb_wrapper h2, .wpb_wrapper h3,
.nectar-highlighted-text, .nectar-shop-header h1,
#page-header-wrap h1, .row .col.section-title h1,
body h1, body h2, body h3 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
    letter-spacing: -0.02em !important;
}

/* Display font for hero/feature headings */
.nectar-highlighted-text[data-style=full_text] em,
blockquote, .testimonial_slider blockquote p,
.nectar_single_testimonial p {
    font-family: "DM Serif Display", Georgia, serif !important;
}

/* Smoother body text */
body {
    font-weight: 400 !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 { font-weight: 800 !important; font-size: 64px !important; line-height: 1.1 !important; }
h2 { font-weight: 700 !important; font-size: 44px !important; line-height: 1.15 !important; }
h3 { font-weight: 600 !important; font-size: 28px !important; line-height: 1.25 !important; }
h4 { font-weight: 600 !important; font-size: 20px !important; line-height: 1.3 !important; }

/* --- COLOR REFINEMENTS --- */
:root {
    --primary: #960000;
    --primary-dark: #6e0000;
    --primary-light: #c0392b;
    --accent: #BF9237;
    --accent-light: #d4a84b;
    --surface: #ffffff;
    --surface-alt: #f8f7f4;
    --text: #1a1a1a;
    --text-muted: #666666;
    --border: rgba(0,0,0,0.08);
}

/* Darker, more sophisticated text */
body, .row .col p, .wpb_wrapper p, #footer-outer p {
    color: var(--text) !important;
}

/* Softer accent usage */
.nectar-button.see-through-2 {
    border-width: 2px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    border-radius: 8px !important;
    padding: 14px 32px !important;
    transition: all 0.3s ease !important;
}
.nectar-button.see-through-2:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(150,0,0,0.15);
}

/* --- CARD PATTERNS --- */
.nectar-recent-posts-single_featured,
.blog-recent .col,
.nectar-post-grid-item,
.portfolio-items .col .work-item,
.wpb_column.has-background {
    border-radius: 16px !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.nectar-recent-posts-single_featured:hover,
.blog-recent .col:hover,
.nectar-post-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1) !important;
}

/* Testimonials — modern cards */
.testimonial_slider blockquote {
    background: var(--surface);
    border-radius: 16px;
    padding: 40px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
}

/* Client logos — clean grid */
.clients .client-image img {
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.3s ease;
}
.clients .client-image:hover img {
    filter: grayscale(0%) opacity(1);
}

/* --- SPACING --- */
.container-wrap {
    padding-bottom: 0 !important;
}
.row .col {
    margin-bottom: 0;
}
.wpb_row {
    margin-bottom: 0 !important;
}

/* --- NAVIGATION --- */
#header-outer {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.92) !important;
    border-bottom: 1px solid var(--border);
}

#header-outer nav ul li a {
    font-weight: 500 !important;
    font-size: 15px !important;
    letter-spacing: -0.01em !important;
}

/* --- BUTTONS --- */
.nectar-button {
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
.nectar-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.nectar-button.regular-button.accent-color {
    background: linear-gradient(135deg, var(--primary) 0%, #7a0000 100%) !important;
}

/* --- FOOTER --- */
#footer-outer {
    background: #0a0a0a !important;
}
#footer-outer .widget h4 {
    color: rgba(255,255,255,0.6) !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-weight: 600 !important;
}
#footer-outer a {
    color: rgba(255,255,255,0.8) !important;
    transition: color 0.2s;
}
#footer-outer a:hover {
    color: var(--accent-light) !important;
}

/* --- SUBTLE GLASS SECTIONS --- */
.glass-panel {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.06);
}

/* --- SELECTION --- */
::selection {
    background: var(--primary);
    color: white;
}

/* --- SMOOTH EVERYTHING --- */
* {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    h1 { font-size: 38px !important; }
    h2 { font-size: 30px !important; }
    h3 { font-size: 22px !important; }
    .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}
