/* General Styles and footer phone modal */
body.thebarb-body {
    font-family: 'Times New Roman', sans-serif !important;
    margin: 0;
    padding: 0;
    background-color: #6a00bf !important;
    color: #fff;
    line-height: 1.6;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

html {
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* Accessibility class to hide elements visually but keep them for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Header & Navigation */
header.my-barb-header {
    background-color: #642285;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.site-logo {
    text-align: left;
    margin: 0;
    font-size: 2.2em;
    color: #fff;
    font-weight: bold;
    padding-left: 20px;
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    object-fit: contain;
    border-radius: 4px;
}

header .barb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    text-align: right;
    margin: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #EADFFF;
}

.nav-links li a svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

/* Style for the admin icon in the navigation */
#adminNavLink .fa-user-cog {
    font-size: 24px;
    /*vertical-align: middle;*/
}

/* Main Content Area */
main {
    flex-grow: 1;
    padding: 0;
    margin: 0;
    max-width: 100%;
    align-items: center;
    justify-content: center;/
}

.content-section {
    margin: 0 auto;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    border-radius: 0;
    box-shadow: none;
    display: none;
    animation: fadeInLeft 0.7s ease-out;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

section.content-section {
    padding-top: 100px;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

@keyframes fadeInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.content-section.active {
    display: block;
}

.content-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    position: relative;
    padding-bottom: 10px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #a020f0;
    border-radius: 2px;
}

.content-section p {
    text-align: center;
    margin-bottom: 20px;
}

.call-to-action-btn {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 8px;
}

/* Error/Info Messages */
.error-message {
    color: #FFBABA;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

.info-message {
    color: #C5EFF7;
    font-style: italic;
    margin-top: 10px;
    text-align: center;
}

/* Footer Styles */
.barb-main-footer {
    background: linear-gradient(to right, #4c1d95, #5b21b6);
    color: #ccc;
    padding: 20px;
    text-align: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.footer-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
}

.phone-icon {
    color: crimson !important;
    -webkit-text-fill-color: crimson !important;
}

.footer-icon {
    color: crimson !important;
    -webkit-text-fill-color: crimson !important;
}


.footer-link:hover {
    text-decoration: underline;
}

.footer-center {
    text-align: center;
}

.footer-nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.footer-nav-links .footer-link {
    padding: 8px 15px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    color: #ffffff;
}

.footer-nav-links .footer-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
}

/* Footer Navigation Active State */
/* Enhanced CSS specificity for footer navigation active states */
.footer-nav-links .footer-link.nav-link.active,
.footer-nav-links .footer-link.active,
.footer-nav-links .nav-link.footer-link.active,
.footer-nav-links a.footer-link.nav-link.active,
.footer-nav-links a.footer-link.active {
    background-color: #a020f0 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.powered-by {
    font-size: 0.9rem;
    opacity: 0.8;
}

#adminNavLink .fas {
    color: rgb(0, 140, 255);
}

#adminNavLink .fas:hover {
    color: white;
}

/* Phone Options */
.footer-phone-group {
    position: relative;
}

.footer-phone-options {
    display: none;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    padding: 8px;
    border-radius: 5px;
    text-align: center;
    z-index: 1000;
    min-width: 100px;
}

.footer-phone-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.footer-phone-options button {
    color: white;
    background: #4c1d95;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.footer-phone-options button:hover {
    background: #5b21b6;
}

.footer-phone-close {
    font-size: 1rem;
    background: none;
    color: white;
}

/* Show Options */
.footer-phone-options.show {
    display: block;
}

/* Social Media Icons */
.footer-contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-media-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    color: #fff;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.social-icon:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Individual platform colors */
.facebook-icon {
    background: linear-gradient(135deg, #3b5998, #4267B2);
}

.facebook-icon:hover {
    background: linear-gradient(135deg, #2d4373, #3b5998);
    border-color: #4267B2;
}

.instagram-icon {
    background: linear-gradient(135deg, #E4405F, #FCAF45, #833AB4);
}

.instagram-icon:hover {
    background: linear-gradient(135deg, #C13584, #E4405F, #FCAF45);
    border-color: #E4405F;
}

.whatsapp-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.whatsapp-icon:hover {
    background: linear-gradient(135deg, #1ebea5, #25D366);
    border-color: #25D366;
}

.twitter-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.twitter-icon:hover {
    background: linear-gradient(135deg, #0d8bd9, #1da1f2);
    border-color: #1da1f2;
}

/* Phone group styling update */
.footer-phone-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive */
@media (min-width: 600px) {
    .footer-row {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 40px;
    }

    .footer-center {
        text-align: center;
    }
    
    .footer-contact-section {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .social-media-icons {
        margin-bottom: 5px;
    }
}

/* Mobile responsive for social icons */
@media (max-width: 599px) {
    .social-media-icons {
        gap: 12px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .footer-contact-section {
        gap: 12px;
    }
}

/* Responsive Adjustments (Global and shared) */
@media (max-width: 992px) {
    nav ul li {
        margin: 0 10px;
    }

    nav ul li a {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    header .barb-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-logo {
        margin-bottom: 15px;
        font-size: 1.8em;
    }
    
    .site-logo img {
        height: 30px;
        margin-right: 8px;
    }

    nav ul {
        text-align: left;
        width: 100%;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .content-section {
        padding: 30px 20px;
    }

    .content-section h2 {
        font-size: 2em;
    }

}

@media (max-width: 576px) {
    .content-section {
        padding: 25px;
    }

    .content-section h2 {
        font-size: 1.7em;
    }

}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
}

/* Navigation Styles */
.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #333;
        text-align: center;
        z-index: 10;
    }

    .nav-links li {
        margin: 0;
        border-bottom: 1px solid #555;
    }

    .nav-links a {
        display: block;
        padding: 10px;
    }

    .nav-links.active {
        display: flex;
    }
}

/* *************** Custom Confirmation Modal Styles*************** */
.custom-modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.custom-modal-content {
    background-color: #2a2a4a;
    margin: auto;
    padding: 25px;
    border: 1px solid #444;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4a4a6a;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.custom-modal-header h2 {
    margin: 0;
    color: #e0e0e0;
    font-size: 1.4em;
}

.custom-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.custom-modal-close:hover,
.custom-modal-close:focus {
    color: #fff;
    text-decoration: none;
}

.custom-modal-body {
    color: #c0c0c0;
    font-size: 1em;
    line-height: 1.5;
}

.custom-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #4a4a6a;
    margin-top: 10px;
}

.custom-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.custom-modal-btn-cancel {
    background-color: #6c757d;
    color: white;
}

.custom-modal-btn-cancel:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.custom-modal-btn-confirm {
    background-color: #7a47ff;
    color: white;
}

.custom-modal-btn-confirm:hover {
    background-color: #6a37e0;
    transform: translateY(-2px);
}

/* Phone Contact Modal Styles */
.phone-modal {
    display: none;
    position: fixed;
    z-index: 999999; /* Higher than WordPress admin bar (99999) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.phone-modal-content {
    background: linear-gradient(145deg, #2c2c54, #40407a);
    margin: 5% auto;
    padding: 30px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 400px;
    max-width: 90%;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    animation: slideInUp 0.4s ease-out;
}

.phone-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    pointer-events: none;
}

.phone-modal-content h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.phone-modal-content p {
    color: #e8e8e8;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.phone-modal-content p strong {
    color: #74b9ff;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.phone-modal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0 25px 0;
}

.phone-action-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    justify-content: center;
}

.phone-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.phone-action-btn:hover::before {
    left: 100%;
}

.phone-call-btn {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.phone-call-btn:hover {
    background: linear-gradient(135deg, #00a085, #00b7b7);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
}

.phone-text-btn {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.phone-text-btn:hover {
    background: linear-gradient(135deg, #5f4fcf, #8a84e2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

.phone-close-btn {
    background: linear-gradient(135deg, #636e72, #747d8c);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.phone-close-btn:hover {
    background: linear-gradient(135deg, #2d3436, #636e72);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 110, 114, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive design for phone modal */
@media (max-width: 480px) {
    .phone-modal {
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    
    .phone-modal-content {
        width: calc(100% - 40px);
        max-width: 340px;
        min-height: auto;
        padding: 25px 20px;
        margin: 0;
        border-radius: 15px;
    }
    
    .phone-modal-content h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .phone-modal-content p {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .phone-modal-content p strong {
        font-size: 1.2rem;
    }
    
    .phone-modal-buttons {
        flex-direction: column;
        gap: 12px;
        margin: 20px 0 15px 0;
    }
    
    .phone-action-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .phone-close-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.phone-modal {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 481px) {
    .phone-modal-content {
        width: 400px;
        max-width: 90%;
        padding: 30px;
    }
}

/* Navigation Icons Styling */
.nav-icon {
    margin-right: 8px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Individual icon colors and hover effects */
.home-icon {
    color: #4CAF50;
}

.scissors-icon {
    color: #FF6B35;
}

.cancel-icon {
    color: #f44336;
}

/* Hover effects for navigation links */
.nav-link:hover .home-icon {
    color: #45a049;
    transform: scale(1.1);
}

.nav-link:hover .scissors-icon {
    color: #e55a2b;
    transform: scale(1.1) rotate(5deg);
}

.nav-link:hover .cancel-icon {
    color: #d32f2f;
    transform: scale(1.1);
}

/* Active state styling */
.nav-link.active .nav-icon {
    color: #3ee6d5, #7a47ff;
    text-shadow: 0 0 8px rgba(122, 71, 255, 0.3);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .nav-icon {
        font-size: 1.2em;
        margin-right: 6px;
    }
    
    .nav-link {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .nav-icon {
        font-size: 1.3em;
        margin-right: 4px;
    }
    /* Footer phone number styling for small devices */
    #phoneNumber.footer-phone-link {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        text-decoration: none !important;
    }
}

/* Desktop footer layout and spacing (per FOOTER_STYLE_AND_LAYOUT_FIX.md) */
@media (min-width: 768px) {
    .barb-main-footer {
        padding: 14px 20px; /* tighter like IMAGE 2 */
    }

    .footer-row {
        display: grid; /* switch from flex to grid on desktop */
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 10px;
    }

    /* Address on the left (first child link) */
    .barb-main-footer .footer-row > .footer-link:first-child {
        justify-self: start;
        text-align: left;
    }

    /* Center column */
    .footer-center {
        grid-column: 2;
        text-align: center;
    }

    /* Right column: stack social icons above phone */
    .footer-contact-section {
        grid-column: 3;
        justify-self: end;
        flex-direction: column; /* stack vertical */
        align-items: flex-end;  /* right-align items */
        gap: 10px;
        text-align: right;
    }

    .social-media-icons {
        margin-bottom: 0; /* rely on gap above to space from phone */
    }

    .footer-nav-links {
        margin-bottom: 8px; /* slightly tighter */
        gap: 8px;
    }

    .footer-nav-links .footer-link {
        padding: 6px 12px; /* smaller pills like IMAGE 2 */
    }
}
