/* =========================================================
   GRAPHODY CUSTOM CSS (Loaded via mu-plugin)
   ========================================================= */

/* 1. FIX FOOTER LINKS (Normal Weight, White Hover) */
.gr-footer a,
.gr-footer .wp-block-navigation-item__content,
.gr-footer .wp-block-navigation a,
.gr-footer p a {
    font-weight: 400 !important; 
    color: #9ca3af !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}


/* Footer Headings */
.gr-footer-heading,
.gr-footer .wp-block-heading {
    font-weight: 600 !important;
    color: #ffffff !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    margin-bottom: 1rem !important;
}

/* Footer Links Stacked Vertically */
.gr-footer .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

/* 2. FIX CTA BUTTON (Full Box Hover) */
a.gr-cta-btn, a.gr-cta-btn:link, a.gr-cta-btn:visited {
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    background-color: #00173b !important; 
    color: #ffffff !important;
    padding: 16px 32px !important; 
    border-radius: 8px !important;
    font-weight: 700 !important; 
    text-decoration: none !important;
    transition: all 0.3s ease !important; 
    border: 2px solid #00173b !important;
}

a.gr-cta-btn:hover, a.gr-cta-btn:focus {
    background-color: var(--wp--preset--color--brand-green, #0ef19f) !important;
    color: #00173b !important; 
    border-color: var(--wp--preset--color--brand-green, #0ef19f) !important;
    transform: translateY(-2px) !important; 
    box-shadow: 0 10px 20px rgba(14,241,159,0.3) !important;
}

a.gr-cta-btn svg {
    stroke: currentColor !important;
    transition: stroke 0.3s ease !important;
}

/* 3. HEADER MENU ALIGNMENT (Logo Left, Menu Right) */
.gr-header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
}

.gr-header-inner > .wp-block-navigation {
    margin-left: auto !important; 
    margin-right: 2rem !important; 
    display: flex !important;
    align-items: center !important;
}

/* 4. BACK TO TOP BUTTON */
#gr-back-to-top {
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 999;
    width: 48px; 
    height: 48px; 
    border-radius: 50%;
    background: var(--wp--preset--color--gray-900, #00173b); 
    color: #ffffff;
    border: none; 
    cursor: pointer; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

#gr-back-to-top.show { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

#gr-back-to-top:hover { 
    background: var(--wp--preset--color--brand-green, #0ef19f); 
    color: var(--wp--preset--color--gray-900, #00173b); 
    transform: translateY(-5px); 
}

@media (max-width: 767px) { 
    #gr-back-to-top { 
        bottom: 20px; 
        right: 20px; 
        width: 40px; 
        height: 40px; 
    } 
}


/* =========================================================
   CLEAN CUSTOM FOOTER LAYOUT
   ========================================================= */
.gr-custom-footer {
    background: #00173b;
    padding: 4rem 5% 2rem 5%;
    color: #9ca3af;
    font-family: inherit;
}

.gr-footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    gap: 2rem;
}

/* Column Widths */
.gr-footer-col-about { flex: 1 1 35%; max-width: 300px; }
.gr-footer-col-menu { flex: 1 1 15%; min-width: 150px; }
.gr-footer-col-contact { flex: 1 1 20%; min-width: 200px; }
.gr-footer-col-social { flex: 1 1 15%; min-width: 150px; }

/* Typography */
.gr-custom-footer p, 
.gr-custom-footer a {
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.7;
    text-decoration: none;
    margin: 0 0 0.5rem 0;
}

.gr-custom-footer a:hover {
    color: #ffffff;
}

/* Headings */
.gr-footer-title {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1.5rem 0;
}

/* Menu List */
.gr-footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gr-footer-menu-list li {
    margin-bottom: 0.75rem;
}

/* Social Icons */
.gr-footer-social-icons {
    display: flex;
    gap: 1rem;
}
.gr-footer-social-icons svg {
    width: 20px;
    height: 20px;
    transition: color 0.2s;
}
.gr-footer-social-icons a:hover svg {
    color: #0ef19f;
}

/* Copyright Bar */
.gr-footer-bottom {
    max-width: 1280px;
    margin: 3rem auto 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.gr-footer-bottom p {
    color: #6b7280;
    font-size: 0.75rem;
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .gr-footer-col-about, 
    .gr-footer-col-menu, 
    .gr-footer-col-contact, 
    .gr-footer-col-social {
        flex: 1 1 100%;
    }
}