/*
 Theme Name: Astra Child
 Theme URI: https://wpastra.com/
 Description: Child theme for Astra.
 Author: Garima Kathayat
 Template: astra
 Version: 1.0.0
*/

/* --- GLOBAL BODY & GAP RESETS --- */
body {
    margin: 0;
    padding: 0;
}

/* 2. Target the main content wrapper to ensure it doesn't push the footer */
.site-content {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* 3. Aggressively remove margins from the last element INSIDE the content */
.site-content > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* --- HEADER STYLING (DESKTOP) --- */
.full-width-header {
    background: #ffffff;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header-inner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Branding */
.header-branding a {
    text-decoration: none;
    color: #1B4332;
    font-weight: 800;
    font-size: 1.3rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand-icon {
    color: #61CE70;
    font-size: 1rem;
}

/* Hide toggle elements on desktop */
.nav-toggle,
.nav-toggle-label {
    display: none;
}

/* --- MENU STYLING (DESKTOP) --- */
.header-nav {
    display: flex;
    align-items: center;
}
.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}
.header-nav li { margin: 0; }

.header-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    font-family: 'Segoe UI', sans-serif;
}
.header-nav a:hover { color: #61CE70; }

/* Highlight active page */
.header-nav .current_page_item a,
.header-nav .current-menu-item a {
    color: #1B4332;
    font-weight: 700;
}

/* CTA Button (Desktop - aligned next to menu) */
.header-action {
    margin-left: 30px;
}
.btn-cta {
    background-color:#eaeaea;
    padding: 10px 10px 10px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #1B4332;
    font-weight: 700;
    font-size: 0.95rem;
}
.btn-cta .arrow {
    color: #0f3a3a;
    margin-left: 4px;
}
.btn-cta:hover { color: #0f3a3a; }


/* ======================================= */
/* --- RESPONSIVE STYLES (Mobile/Tablet) --- */
/* ======================================= */
@media (max-width: 900px) {
    
    .header-inner-container {
        height: 60px;
        flex-direction: row; 
        align-items: center;
        padding: 0 20px;
    }

    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 1010;
    }
    .nav-toggle-label span {
        display: block;
        width: 100%;
        height: 3px;
        background: #1B4332;
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }

    .header-nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(255, 255, 255, 0.98); 
        overflow: hidden;
        transition: height 0.3s ease-in-out, padding 0.3s ease-in-out;
        flex-direction: column;
        align-items: center;
    }
    
    .header-nav ul {
        flex-direction: column;
        padding: 20px 0;
        gap: 20px;
        width: 100%;
        text-align: center;
    }
    .header-nav li {
        width: 100%;
        margin: 0;
    }
    .header-nav a {
        font-size: 1.1rem;
    }
    
    .header-action {
        margin: 10px 0 30px 0;
    }

    .nav-toggle:checked ~ .header-nav {
        height: auto;
        padding-bottom: 50px;
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* --- RESPONSIVE STYLES (Small Phone) --- */
@media (max-width: 500px) {
    
    .footer-content-grid {
        padding: 30px 15px;
        gap: 30px;
    }
    
    .f-logo, 
    .f-desc,
    .f-backtop {
        text-align: center;
        margin-bottom: 10px !important; 
    }
    
    .f-logo {
        justify-content: center;
    }
    
    .f-socials {
        justify-content: center;
        margin-bottom: 25px; 
        padding-bottom: 25px;
    }
    
    .links-col {
        flex-direction: column;
        gap: 20px;
    }
    
    .f-copyright-bar {
        text-align: center;
    }
}

/* --- FOOTER STYLING (NON-RESPONSIVE DEFAULTS) --- */
.full-width-footer {
    background: #1B4332;
    width: 100%;
    color: #FFEFD0;
    margin-top: 0;
}

.footer-inner-container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content-grid {
    padding: 60px 60px;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
}

/* Footer Brand Area */
.f-logo {
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.f-desc {
    line-height: 1.6;
    color: #FFEFD0;
    margin-bottom: 30px;
    max-width: 380px;
}

.f-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.f-socials a {
    color: #FFEFD0;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.f-socials a:hover {
    background: #FFEFD0;
    border-color: #FFEFD0;
    color: #1B4332;
}

.f-backtop a {
    color: #FFEFD0;
    text-decoration: none;
    border: 1px solid #FFEFD0;
    padding: 10px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.f-backtop a:hover {
    background: #FFEFD0;
    color: #1B4332;
}

/* Footer Links Area */
.links-col {
    display: flex;
    justify-content: flex-end;
    gap: 150px;
}

.link-list h4 {
    color: #FFEFD0;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.link-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-list li {
    margin-bottom: 12px;
}

.link-list a {
    color: #FFEFD0;
    text-decoration: none;
    transition: color 0.2s;
}

.link-list a:hover {
    color: var(--gold);
}

/* Gold Bar */
.f-copyright-bar {
    background: #FFEFD0;
    color: #1B4332;
    text-align: center;
    padding: 15px;
    font-weight: 700;
    font-size: 0.9rem;
    width: 100%;
}

.company-link {
    color: #61CE70;
}

.company-link:hover {
    color: #d19532;
}

/* --- MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--header-bg, #ffffff);
    color: var(--text-dark, #1a1a1a);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.modal-content h3 {
    margin-top: 0;
    color: var(--footer-bg, #0f3a3a);
    font-size: 1.6rem;
}

.modal-content p {
    line-height: 1.5;
    margin-bottom: 25px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #888;
    text-decoration: none;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-btn-confirm,
.modal-btn-cancel {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.modal-btn-confirm {
    background-color: var(--gold, #FFEFD0);
    color: var(--footer-bg, #0f3a3a);
}

.modal-btn-confirm:hover {
    background-color: #0f3a3a;
    color: #FFEFD0;
}

.modal-btn-cancel {
    background-color: #0f3a3a;
    color: #FFEFD0;
}

.modal-btn-cancel:hover {
    background-color: #FFEFD0;
    color:  #0f3a3a;
}

/* Portfolio shortcodes styling */
.all-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    font-family: 'Segoe UI', sans-serif;
}

.p-card {
    background: #fff;
    border: 1px solid #eee;
    border-top: 4px solid #3498db;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.p-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.p-card.sec-card {
    border-top-color: #c0392b;
    background-color: #fffbfb;
}

.p-role {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    margin-bottom: 5px;
}

.p-title {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #2c3e50;
    line-height: 1.3;
}

.p-client {
    font-size: 0.85rem;
    color: #2980b9;
    font-style: italic;
    margin-bottom: 15px;
}

.p-obj {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.p-footer {
    border-top: 1px solid #eee;
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.p-cat {
    background: #f0f2f5;
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    color: #555;
}

.badge-sec {
    background: #fadbd8;
    color: #c0392b;
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: bold;
}

/* ======================================== */
/* FIX WHITE GAP BELOW FOOTER ON MOBILE     */
/* ======================================== */

.ast-container,
.site-content,
.ast-primary-content,
.ast-main-content-wrap,
.site-main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.full-width-footer {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .footer-content-grid {
        padding: 40px 20px !important;
        gap: 40px;
    }
    
    .links-col {
        gap: 40px;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .footer-content-grid {
        padding: 30px 15px !important;
        gap: 30px;
    }
    
    .f-backtop,
    .f-socials,
    .links-col,
    .link-list:last-child {
        margin-bottom: 0 !important;
    }
}

.full-width-footer + * {
    display: none !important;
}

.site {
    display: block !important;
}
.ast-flex {
    flex-direction: column !important;
    min-height: unset !important;
}