/* --- THEME RESET & MOBILE FIXES --- */
* { box-sizing: border-box; }
html, body { overflow-x: hidden; width: 100%; margin: 0; padding: 0; }

/* Theme Info */
/* Theme Name: Jay's Consulting Elite */

/* --- ANIMATIONS --- */
@keyframes floatGlow {
    0% { transform: translateY(0px); }
    50% { transform: translateY(35px); }
    100% { transform: translateY(0px); }
}

.fade-up { opacity: 0; transform: translateY(45px); transition: 1s; }
.fade-up.show { opacity: 1; transform: none; }

/* --- HEADER --- */
header { position: fixed; width: 100%; top: 0; left: 0; z-index: 9999; background: #000; }
.navbar { padding: 20px; color: white; text-align: center; }

/* --- THE SLEEK STRIP (CENTERED GLOBALLY) --- */
.site-main .divider,
.hero-divider,
.ceo-letter-section .divider,
.color-bar,
.wp-block-separator {
    width: 100% !important;       
    max-width: 320px !important;  /* Caps the length so it frames the text perfectly */
    height: 2px !important;        /* Thins it down to a crisp, modern line */
    margin: 25px auto !important; /* "auto" forces it to center perfectly on every single page */
    display: block !important;
}

/* --- TEXT ALIGNMENT OVERRIDE FOR INNER HEADERS --- */
.eyebrow,
.hero-title,
.hero-tagline,
.brand {
    text-align: center !important; /* Hard-forces the text on inner templates to stay centered */
    display: block;
}

/* --- HERO --- */
.hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    background: #050505; 
    padding: 20px; 
}
.hero h1 { font-size: 40px; line-height: 1.1; margin-bottom: 20px; color: #fff; }
.hero h1 span { color: #d4af37; }
.hero p { font-size: 16px; max-width: 600px; margin: 20px auto; color: #ccc; }

/* --- SERVICES (GRID FIX) --- */
.services { padding: 80px 20px; background: #101010; }
.services-grid { 
    display: grid; 
    /* Ensures items stack on mobile, grid on desktop */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
    max-width: 1100px; 
    margin: 30px auto; 
}
.service-card { 
    background: #191919; 
    padding: 30px; 
    border-radius: 15px; 
    border: 1px solid rgba(255,255,255,.05); 
    text-align: center;
}

/* --- FOOTER (OVERFLOW & WATERMARK FIX) --- */
.site-footer { 
    background: #080808; 
    padding: 50px 20px; 
    border-top: 2px solid #d4af37; 
    position: relative; /* Establishes the boundary for the watermark */
    overflow: hidden;    /* Prevents the large watermark from breaking the page container */
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
    max-width: 1100px; 
    margin: 0 auto; 
    position: relative;
    z-index: 2; /* Firmly pulls all column text and links ABOVE the watermark */
}

.footer-bottom { 
    text-align: center; 
    padding: 20px; 
    color: #888; 
    position: relative;
    z-index: 2; /* Keeps copyright text layered above the watermark */
}

/* --- LOGO TO BACKGROUND WATERMARK CONVERSION --- */
.site-footer .custom-logo,
.site-footer .custom-logo-link img,
.site-footer img.custom-logo {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important; /* Perfect vertical and horizontal centering */
    width: auto !important;
    height: 95% !important;       /* Dynamically scales to match footer height nicely */
    max-height: 480px !important;  /* Safety cap so it doesn't scale insanely on massive displays */
    opacity: 0.20 !important;      /* Drops visibility to a super faint, elegant trace */
    pointer-events: none !important; /* Makes image click-invisible so it never blocks text links */
    z-index: 1 !important;         /* Forces it to sit strictly behind the content layer */
}

/* --- FIX FOOTER LINKS (Phone, Email, Navigation) --- */
.site-footer a, 
.footer-grid a {
    color: #64b5f6; /* Crisp light blue to pop clearly against the dark background */
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-footer a:hover, 
.footer-grid a:hover {
    color: #ffffff; /* Highlights to brilliant white on mouse hover */
}

/* --- UPDATED TEMPLATE STYLING --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; margin-bottom: 40px; }

/* --- THE NEW HIGH-CONTRAST WHITE BUTTON --- */
.btn,
.site-footer .btn-primary { 
    display: inline-block; 
    padding: 15px 30px; 
    background: #ffffff; /* Crisp white background */
    color: #121212; /* Dark charcoal text for perfect readability */
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 5px; 
    margin-top: 20px; 
    border: 1px solid #ffffff;
    transition: all 0.2s ease;
}
.btn:hover,
.site-footer .btn-primary:hover {
    background: #e7e7ea;
    border-color: #e7e7ea;
    color: #121212;
}

.cta-section { padding: 60px 20px; background: #080808; text-align: center; }
.cta-section h2 { font-size: 2em; margin-bottom: 10px; }
.ceo-message { max-width: 800px; margin: 0 auto 20px; font-style: italic; }