/* CSS Variables blocksmith\assets\css\global.css */
:root {
    --primary-text: #ffffff;
    --secondary-text: #ecf0f1;
    --accent-red: #ff3b30;
    --accent-black: rgba(28, 28, 30, 0.8);
    --container-bg: rgba(76, 93, 117, 0.2);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    color: var(--primary-text);
    overflow-x: hidden;
}

/* Home Wrapper (Main Content) */
.home-wrapper {
    background-image: url('../img/scissortail.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0px; /* Match the height of the fixed header */
    bottom: 60px; /* Match the height of the fixed footer */
    left: 0;
    right: 0;
    overflow-y: auto; /* Scroll only within the content area if needed */
    padding: 20px;
    min-height: 100vh; /* Ensures the section takes up full viewport height */
}

/* Services Grid Styles */
.services-grid {
    position: fixed;
    bottom: 6px; /* Position just above footer */
    left: 0;
    width: 50%; /* Only take up the left side for desktop */
    max-width: 600px; /* Limit width on larger screens */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    gap: 10px;
    padding: 15px;
    justify-content: center;
    z-index: 990;
    background-color: transparent;
}

/* Service Card Styles */
.service-card {
    background-color: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 15px 8px;
    width: 100%;
    height: 100px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    background-color: rgba(0, 0, 0, 0.8);
}

.service-card h3 {
    margin: 8px 0;
    color: var(--primary-text);
    font-size: 0.9rem;
    font-weight: bold;
}

.service-card i {
    margin-bottom: 8px;
    font-size: 2rem;
    color: var(--accent-red);
}

/* Info Box Styles */
#info-box {
    display: none;
}

.info-box {
    position: fixed;
    top: 25%;
    right: 40px;
    transform: translateY(-50%);
    background: rgba(44, 62, 80, 0.75);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.info-box h2 {
    color: var(--accent-red);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.info-box p {
    line-height: 1.6;
    font-size: 1rem;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* FAQ Wrapper (Main Content) */
/* Home Wrapper (Main Content) */
#faq-wrapper {
    background-image: url('../img/scissortail.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 60px; /* Adjust the position below the header, which has a height of 60px */
    bottom: 60px; /* Keep it above the footer */
    left: 0;
    right: 0;
    overflow-y: auto; /* Allow scrolling within the content area if needed */
    padding: 20px;
    min-height: calc(100vh - 120px); /* Full viewport height minus header and footer */
}

/* FAQ Wrapper (FAQ specific styles) */
.faq-content {
    margin-top: 20px; /* Add some space between the header and the FAQ content for aesthetics */
    padding: 10px;
    background: rgba(0, 0, 0, 0.6); /* Optional: Adds a background to make text readable */
    border-radius: 10px;
}

.faq-item {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    overflow: hidden;
}

.faq-question {
    cursor: pointer;
    font-size: 1.2em;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1e1239;
    padding: 10px;
    border-radius: 5px;
}

.faq-answer {
    display: none; /* Ensure answers are hidden by default */
    padding: 10px;
    background-color: #460404;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.toggle-icon {
    font-size: 1.5em;
    line-height: 0;
}

.category-title {
    color: var(--primary-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-card a {
    text-decoration: none;
    color: inherit; /* Keeps link color consistent with its surroundings */
}

.category-card a:hover .category-title {
    color: var(--accent-red); /* Change title color on hover to accent */
}

.category-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover .category-image {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Lead Generation Box */
.lead-gen-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    width: 320px;
    max-width: 90%;
    text-align: left;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    color: var(--primary-text);
    z-index: 995;
}

.lead-gen-box h3 {
    margin-bottom: 15px;
    color: var(--primary-text);
    font-size: 1.4em;
    font-weight: bold;
}

.lead-gen-box p {
    margin-bottom: 20px;
    color: var(--primary-text);
    font-size: 1em;
    line-height: 1.4;
}

.call-now-button {
    display: block;
    width: 100%;
    background-color: var(--accent-red);
    border: none;
    color: #fff;
    padding: 12px 15px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    text-align: center;
    font-weight: bold;
}

.call-now-button:hover {
    background-color: #e63028;
}

/* Media Queries */
@media (max-width: 768px) {
    /* Hide lead generation box ONLY on mobile devices */
    .lead-gen-box {
        display: none;
    }
    
    /* Make services grid full width on mobile */
    .services-grid {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .services-grid {
        bottom: 60px;
        padding: 10px 15px;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .service-card {
        padding: 12px 8px;
        height: 90px;
    }
    
    .service-card h3 {
        font-size: 0.8rem;
    }
    
    .service-card i {
        font-size: 1.8rem;
    }
    
    .lead-gen-box {
        width: 300px;
        padding: 15px;
    }
    
    .lead-gen-box h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 375px) {
    .services-grid {
        bottom: 55px;
        padding: 8px 12px;
        gap: 8px;
    }
    
    .service-card {
        padding: 10px 5px;
        height: 80px;
    }
    
    .service-card h3 {
        font-size: 0.75rem;
        margin: 5px 0;
    }
    
    .service-card i {
        font-size: 1.6rem;
    }
    
    .lead-gen-box {
        width: 280px;
        padding: 15px;
    }
}

@media (max-width: 320px) {
    .services-grid {
        bottom: 50px;
        padding: 6px 10px;
        gap: 6px;
    }
    
    .service-card {
        padding: 8px 5px;
        height: 70px;
    }
    
    .service-card h3 {
        font-size: 0.7rem;
    }
    
    .service-card i {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
}
