/*
Theme Name: Astra Child Pro (JMK Export)
Theme URI: https://jmkexport.com/
Description: Professional Level Child Theme for JMK Export website built on Astra Architecture.
Author: Parvat Gurjar
Version: 1.0.2
Template: astra
Text Domain: astra-child-pro
*/

/* ==========================================================================
   1. BRAND IDENTITY VARIABLES (:root)
   ========================================================================== */
:root {
  --primary-green: #0A4D2E;    
  --accent-gold: #D4AF37;      
  --accent-gold-hover: #B5952F; 
  --text-heading: #1A1A1A;     
  --text-body: #4A4A4A;        
  --text-light: #FFFFFF;       
  --bg-main: #FFFFFF;          
  --bg-secondary: #F8F9FA;     
  --bg-premium: #FFFDF8;       
  --border-color: #E0E0E0;     
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.08);
}

/* ==========================================================================
   2. GLOBAL THEME OVERRIDES
   ========================================================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-body);
    background-color: var(--bg-main);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
}

/* ==========================================================================
   3. PRO SEMANTIC HEADER STYLING
   ========================================================================== */
.jmk-custom-header {
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}

.jmk-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* PRO LOGO STYLING */
.jmk-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0; 
    z-index: 10;
}

.jmk-logo a {
    display: inline-block;
    text-decoration: none;
}

.jmk-header-logo {
    height: 75px; 
    max-height: 75px; 
    width: auto; 
    object-fit: contain; 
    display: block;
    transition: transform 0.3s ease;
}

.jmk-header-logo:hover {
    transform: scale(1.02);
}

/* Desktop Navigation Menu */
.jmk-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.jmk-nav-item a {
    color: var(--text-heading);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    padding: 8px 0;
}

.jmk-nav-item a:hover,
.jmk-nav-item.active a {
    color: var(--primary-green);
}

.jmk-nav-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.jmk-nav-item a:hover::after,
.jmk-nav-item.active a::after {
    width: 100%;
}

/* Desktop Header CTA Button */
.jmk-header-cta .cta-btn {
    background-color: var(--accent-gold);
    color: var(--text-heading);
    font-weight: 700;
    font-size: 14px;
    padding: 11px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    display: inline-block;
    white-space: nowrap; 
}

.jmk-header-cta .cta-btn:hover {
    background-color: var(--accent-gold-hover);
    color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Mobile Specific CTA (Hidden on Desktop) */
.jmk-mobile-cta {
    display: none;
}

/* Mobile Menu Toggle Hamburgers */
.jmk-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 5px;
}

.jmk-mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* ==========================================================================
   MOBILE RESPONSIVE LAYOUT (<= 992px)
   ========================================================================== */
@media (max-width: 992px) {
    .jmk-header-container {
        padding: 10px 15px;
        justify-content: space-between; /* Maintains Logo Left, CTA Center, Hamburger Right */
    }

    .jmk-header-logo {
        height: 55px; 
        max-height: 55px;
    }

    /* Hide Desktop CTA, Show Centered Mobile CTA */
    .jmk-header-cta {
        display: none; 
    }

    .jmk-mobile-cta {
        display: flex;
        flex: 1;
        justify-content: center; /* Exactly centers the button */
        padding: 0 10px;
    }

    .jmk-mobile-cta .cta-btn-mobile {
        background-color: var(--accent-gold);
        color: var(--text-heading);
        font-weight: 700;
        font-size: 13px;
        padding: 8px 16px;
        border-radius: 4px;
        text-decoration: none;
        display: flex;
        align-items: center;
        box-shadow: var(--shadow-sm);
        white-space: nowrap;
    }

    .jmk-mobile-cta .cta-btn-mobile:active {
        background-color: var(--accent-gold-hover);
        transform: scale(0.98); /* Native App jaisa click feel */
    }

    .jmk-mobile-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .jmk-nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-main);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .jmk-nav-menu.is-active {
        max-height: 450px;
        padding: 10px 0;
    }

    .jmk-nav-item {
        width: 100%;
        text-align: center;
    }

    .jmk-nav-item a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--bg-secondary);
    }

    .jmk-nav-item a::after {
        display: none;
    }
}
/* ==========================================================================
   4. PRO FOOTER STYLING
   ========================================================================== */

/* Astra Fallback Hider (Double security to hide default footer) */
.ast-builder-footer-wrapper, .site-footer {
    display: none !important;
}

.jmk-pro-footer {
    background-color: var(--primary-green);
    color: #E2E8F0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin-top: 60px;
}

.jmk-footer-top {
    padding: 70px 20px 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.jmk-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Column 1: Brand */
.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
}

.footer-desc {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #CBD5E1;
}

.jmk-social-links {
    display: flex;
    gap: 15px;
}

.jmk-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.jmk-social-links a svg {
    width: 18px;
    height: 18px;
}

.jmk-social-links a:hover {
    background-color: var(--accent-gold);
    color: var(--primary-green);
    transform: translateY(-3px);
}

/* Headings */
.footer-heading {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
}

/* Menus */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #CBD5E1;
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-menu a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

/* Contact List */
.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 15px;
    color: #CBD5E1;
    line-height: 1.5;
}

.footer-contact-info li svg {
    width: 20px;
    height: 20px;
    color: var(--accent-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-info li a {
    color: #CBD5E1;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-contact-info li a:hover {
    color: var(--accent-gold);
}

/* Bottom Bar */
.jmk-footer-bottom {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    margin: 0;
    font-size: 14px;
    color: #94A3B8;
}

.legal-links {
    font-size: 14px;
}

.legal-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.legal-links a:hover {
    color: var(--accent-gold);
}

.legal-links .divider {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.2);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .jmk-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .jmk-footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-heading::after {
        width: 30px;
    }
    
    .bottom-flex {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}