/* ===================================
   ConcreteInfo Website - Bootstrap Enhanced Styles
   =================================== */

/* === ROOT VARIABLES === */
:root {
    --primary-dark: #464646;
    --medium-gray: #9a9696;
    --accent-orange: #e5461f;
    --light-gray: #e3e3e3;
    --black: #0d0b09;
    --white: #ffffff;
    --green: #1a7a56;

    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

/* === BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--primary-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Browser-specific fixes for Edge and Chrome */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

/* === BOOTSTRAP CUSTOMIZATION === */
.btn-primary {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    font-weight: 600;
    padding: 12px 32px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #c63d1a;
    border-color: #c63d1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 70, 31, 0.4);
}

.btn-outline-light:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--accent-orange);
}

.btn-orange {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
    transition: all 0.3s ease;
}

.btn-orange:hover,
.btn-orange:focus {
    background-color: #c63d1a;
    border-color: #c63d1a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 70, 31, 0.4);
}

/* === NAVIGATION === */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    background-color: #fafbfc !important;
}

.navbar-toggler {
    border: 2px solid var(--primary-dark);
    padding: 8px 12px;
    border-radius: 6px;
    margin-right: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(229, 70, 31, 0.25);
    border-color: var(--accent-orange);
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2870, 70, 70, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand img {
    height: 50px;
    max-height: 50px;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-dark) !important;
    padding: 8px 16px !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-orange) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 32px);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 12px 20px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--accent-orange);
    padding-left: 25px;
}

.dropdown-item.active {
    background-color: var(--accent-orange);
    color: white;
}

.dropdown-item.active:hover {
    background-color: #c63d1a;
    color: white;
}

/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(70, 70, 70, 0.85) 0%, rgba(13, 11, 9, 0.85) 100%), url('../assets/images/14.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding-top: 100px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
    opacity: 0.5;
}

.z-index-1 {
    z-index: 1;
}

.hero-divider {
    width: 100px;
    height: 4px;
    background: var(--accent-orange);
}

/* === UTILITY CLASSES === */
.text-orange {
    color: var(--accent-orange);
}

.bg-light-gray {
    background-color: var(--light-gray);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--accent-orange);
}

/* === STAT CARDS === */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.gradient-orange,
.bg-gradient-orange {
    background: linear-gradient(135deg, var(--accent-orange), #ff6b47);
}

.gradient-green,
.bg-gradient-green {
    background: linear-gradient(135deg, var(--green), #2a9d6f);
}

/* === QUALITY MATRIX === */
.quality-matrix-visual {
    background: var(--white);
    border-radius: 12px;
}

.matrix-hexagon,
.matrix-hexagon-center {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.matrix-hexagon:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(229, 70, 31, 0.3);
}

.matrix-hexagon-center {
    min-height: 120px;
    font-size: 1.1rem;
}

.matrix-hexagon-center:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(26, 122, 86, 0.3);
}

/* === UNIFIED CARD EFFECTS === */
/* Base card styling - consistent across all cards */
.card {
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* Hover lift effect - simple, clean elevation */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Standard card hover - no lift */
.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* === SERVICE CARDS === */
.service-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
}

/* === CLIENT CARDS === */
.client-card {
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.client-card p {
    color: var(--primary-dark);
    font-size: 1rem;
}

.client-card:hover {
    border-color: var(--accent-orange) !important;
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.client-card i {
    transition: color 0.3s ease;
}

.client-card:hover i {
    color: var(--accent-orange);
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--black));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px);
}

/* === FOOTER === */
.footer {
    background-color: var(--primary-dark) !important;
}

.footer a:hover {
    color: var(--accent-orange) !important;
    padding-left: 5px;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    .hero-section {
        min-height: 80vh;
        padding-top: 100px;
        padding-left: 15px;
        padding-right: 15px;
        background-attachment: scroll; /* Better mobile performance */
    }

    .display-2 {
        font-size: 2.5rem !important;
        line-height: 1.3;
    }

    .quality-matrix-visual {
        padding: 2rem !important;
    }

    .page-header {
        min-height: 35vh;
        padding-top: 100px;
    }

    .container,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 80px 20px 60px;
        background-attachment: scroll;
    }

    .display-2 {
        font-size: 2rem !important;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .lead {
        font-size: 1.1rem !important;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 15px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .matrix-hexagon,
    .matrix-hexagon-center {
        min-height: 80px;
        padding: 15px !important;
    }

    .matrix-hexagon small {
        font-size: 0.75rem;
    }

    .matrix-hexagon-center strong {
        font-size: 1rem !important;
    }

    .page-header {
        min-height: 30vh;
        padding-top: 80px;
    }

    /* Better card spacing on mobile */
    .card {
        margin-bottom: 20px;
    }

    /* Improve section padding on mobile */
    section {
        padding: 40px 0 !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 40px;
    }

    .hero-section {
        padding: 70px 15px 50px;
    }

    .display-2 {
        font-size: 1.75rem !important;
        letter-spacing: 1px;
        line-height: 1.4;
    }

    .lead {
        font-size: 1rem !important;
        line-height: 1.6;
    }

    .stat-card {
        padding: 20px !important;
        margin-bottom: 15px;
    }

    .stat-icon {
        font-size: 2rem !important;
    }

    .section-header h2 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

    .page-header {
        min-height: 25vh;
        padding-top: 70px;
    }

    .page-header h1 {
        font-size: 1.75rem !important;
    }

    /* Improve button sizing on very small screens */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Better spacing for mobile */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .container,
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* === ADDITIONAL UTILITIES === */
.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-orange), #ff6b47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === SCROLL TO TOP BUTTON === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-dark);
    color: var(--white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 998;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(70, 70, 70, 0.4);
}

.scroll-top.active {
    display: flex;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(70, 70, 70, 0.6);
    background: var(--accent-orange);
}

/* === LOADING ANIMATION === */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top-color: var(--accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === PAGE HEADER === */
.page-header {
    min-height: 40vh;
    background: linear-gradient(135deg, var(--primary-dark), var(--black));
    padding-top: 120px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
}

/* === TIMELINE === */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-orange);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: 19px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid var(--white);
    z-index: 1;
}

.timeline-content {
    margin-left: 20px;
}

/* === FOOTER STYLES === */
.footer {
    background-color: var(--primary-dark) !important;
}

.footer .text-muted {
    color: #d1d1d1 !important;
    opacity: 0.9;
}

.footer a.text-muted:hover {
    color: var(--accent-orange) !important;
}

.footer h5 {
    color: var(--accent-orange);
    font-weight: 600;
}

.footer p,
.footer li,
.footer small {
    color: #d1d1d1 !important;
}

.footer .text-white {
    color: #f5f5f5 !important;
}

/* === SEARCH FUNCTIONALITY === */
.search-form {
    position: relative;
    max-width: 250px;
    display: flex;
    align-items: center;
}

.search-input {
    border-radius: 25px;
    padding: 10px 45px 10px 20px;
    border: 2px solid var(--light-gray);
    transition: all 0.3s ease;
    width: 100%;
    height: 44px;
    line-height: 1.5;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(229, 70, 31, 0.1);
}

.search-button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-button i {
    font-size: 14px;
    line-height: 1;
    display: inline-block;
}

.search-button:hover {
    background: #c63d1a;
    transform: translateY(-50%) scale(1.05);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.search-overlay.active {
    display: flex;
}

.search-results-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 900px;
    width: 100%;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-height: 200px;
}

#searchResults {
    color: var(--primary-dark);
}

#searchResults:empty::before {
    content: 'Enter a search query to find content...';
    display: block;
    text-align: center;
    padding: 60px 20px;
    color: var(--medium-gray);
    font-size: 1.1rem;
}

.close-search {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--light-gray);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.close-search:hover {
    background: var(--accent-orange);
    color: white;
    transform: rotate(90deg);
}

.search-header {
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 15px;
    color: var(--primary-dark);
}

.search-results-list {
    margin-top: 20px;
    color: var(--primary-dark);
}

.search-result-item {
    padding: 20px;
    border-left: 4px solid transparent;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.search-result-item:hover {
    border-left-color: var(--accent-orange);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.search-result-item a {
    color: var(--primary-dark);
}

.search-result-title {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.search-result-item:hover .search-result-title {
    color: var(--accent-orange);
}

.search-result-description {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--primary-dark);
}

.search-result-url {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-orange);
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--primary-dark);
}

.search-error {
    margin: 20px 0;
    color: var(--primary-dark);
}

/* Highlight matched text */
mark {
    background-color: rgba(229, 70, 31, 0.2);
    color: var(--primary-dark);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Navbar container spacing */
.navbar .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Ensure proper alignment */
.navbar-collapse {
    flex-grow: 1;
}

.navbar-nav {
    margin-left: auto;
}

/* Responsive Search */
@media (max-width: 992px) {
    .navbar .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-toggler {
        margin-right: 0;
        z-index: 1030;
    }

    .navbar-brand {
        margin-right: auto;
    }

    .search-form {
        margin: 15px 0 10px;
        max-width: 100%;
    }

    .navbar-nav {
        justify-content: flex-start;
        padding-top: 10px;
    }

    .nav-link {
        padding: 10px 16px !important;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        background-color: #f8f9fa;
        margin-top: 0;
    }

    .dropdown-item {
        padding: 10px 20px 10px 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }

    .navbar-brand img {
        height: 40px;
        max-height: 40px;
    }

    .search-results-container {
        padding: 20px;
        max-width: calc(100% - 20px);
        margin: 0 10px;
    }

    .search-result-item {
        padding: 15px;
    }

    .search-result-title {
        font-size: 1.1rem;
    }

    .search-overlay {
        padding: 60px 10px 10px;
    }
}

@media (max-width: 576px) {
    .navbar .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .navbar-toggler {
        padding: 6px 10px;
        font-size: 1rem;
    }

    .navbar-toggler-icon {
        width: 20px;
        height: 20px;
    }

    .search-form {
        margin: 10px 0;
    }

    .search-input {
        font-size: 13px;
        height: 40px;
        padding: 8px 40px 8px 16px;
    }

    .search-button {
        width: 32px;
        height: 32px;
    }

    .search-button i {
        font-size: 12px;
    }
}

/* === ADDITIONAL MOBILE FIXES === */
@media (max-width: 992px) {
    /* Fix navbar collapse behavior */
    .navbar-collapse {
        background-color: #fafbfc;
        padding: 15px;
        margin: 10px -15px -15px;
        border-radius: 0 0 8px 8px;
    }

    /* Ensure dropdown works properly */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        float: none;
        width: 100%;
    }

    .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }
}

@media (max-width: 768px) {
    /* Better text contrast on hero */
    .hero-section .text-white {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

    /* Improve form inputs on mobile */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    /* Better spacing for lists */
    ul, ol {
        padding-left: 1.5rem;
    }

    /* Improve table responsiveness */
    table {
        font-size: 0.9rem;
    }

    /* Better footer spacing */
    .footer .col-md-3,
    .footer .col-md-4 {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    /* Fix overflow issues */
    body {
        overflow-x: hidden;
    }

    /* Better image handling */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Improve heading hierarchy on mobile */
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    h4 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    /* Better card padding on small screens */
    .card-body {
        padding: 1rem;
    }

    /* Improve modal display */
    .modal-dialog {
        margin: 0.5rem;
    }

    /* Better table display */
    .table-responsive {
        font-size: 0.85rem;
    }
}

/* === FLOATING FAQ NAVIGATION MENU === */
.faq-floating-nav {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.faq-nav-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e5461f 0%, #ff6b45 100%);
    border: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(229, 70, 31, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-nav-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(229, 70, 31, 0.5);
}

.faq-nav-toggle:active {
    transform: scale(0.95);
}

.faq-nav-content {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 280px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.faq-nav-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.faq-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #e5461f 0%, #ff6b45 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.faq-nav-header h6 {
    font-weight: 600;
    margin: 0;
}

.faq-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.faq-nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.faq-nav-items {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.faq-nav-items::-webkit-scrollbar {
    width: 6px;
}

.faq-nav-items::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.faq-nav-items::-webkit-scrollbar-thumb {
    background: #e5461f;
    border-radius: 10px;
}

.faq-nav-items::-webkit-scrollbar-thumb:hover {
    background: #c63d1a;
}

.faq-nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 10px;
    text-decoration: none;
    color: #464646;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.faq-nav-item i {
    width: 24px;
    margin-right: 0.75rem;
    color: #e5461f;
    font-size: 1.1rem;
}

.faq-nav-item span {
    flex: 1;
    font-weight: 500;
}

.faq-nav-item:hover {
    background: #fff5f2;
    color: #e5461f;
    transform: translateX(5px);
}

.faq-nav-item.active {
    background: linear-gradient(135deg, #fff5f2 0%, #fff8f5 100%);
    border-left: 3px solid #e5461f;
    color: #e5461f;
}

.faq-nav-item.faq-scroll-top {
    border-top: 2px solid #f0f0f0;
    margin-top: 0.5rem;
    padding-top: 1rem;
    color: #9a9696;
}

.faq-nav-item.faq-scroll-top:hover {
    background: #f5f5f5;
    color: #464646;
}

/* Mobile responsive FAQ nav and scroll-top */
@media (max-width: 768px) {
    .faq-floating-nav {
        right: 20px;
        bottom: 20px;
    }

    .faq-nav-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .faq-nav-content {
        width: calc(100vw - 40px);
        right: -10px;
        bottom: 65px;
    }

    .faq-nav-items {
        max-height: 300px;
    }

    /* Adjust scroll-top button on mobile */
    .scroll-top {
        left: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

/* === FAQ ACCORDION THEMED STYLES === */

/* Prevent page jump when accordion opens */
.accordion-collapse {
    overflow: hidden;
}

.accordion-button:not(.collapsed) {
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

/* QA/QC Category - Orange (Primary Brand Color) */
#qa-qc .accordion-item {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

#qa-qc .accordion-button {
    background: linear-gradient(135deg, #e5461f 0%, #ff6b45 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
}

#qa-qc .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #c63d1a 0%, #e5461f 100%);
    color: white;
}

#qa-qc .accordion-button::after {
    filter: brightness(0) invert(1);
}

#qa-qc .accordion-body {
    background: linear-gradient(to bottom, #fff5f2 0%, #ffffff 100%);
    padding: 1.5rem;
    border-top: 3px solid #e5461f;
}

/* Concrete Technology - Dark Gray */
#concrete .accordion-item {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

#concrete .accordion-button {
    background: linear-gradient(135deg, #464646 0%, #5a5a5a 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
}

#concrete .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #333333 0%, #464646 100%);
    color: white;
}

#concrete .accordion-button::after {
    filter: brightness(0) invert(1);
}

#concrete .accordion-body {
    background: linear-gradient(to bottom, #f5f5f5 0%, #ffffff 100%);
    padding: 1.5rem;
    border-top: 3px solid #464646;
}

/* Construction Practices - Medium Gray */
#construction .accordion-item {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

#construction .accordion-button {
    background: linear-gradient(135deg, #9a9696 0%, #afa8a8 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
}

#construction .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #858080 0%, #9a9696 100%);
    color: white;
}

#construction .accordion-button::after {
    filter: brightness(0) invert(1);
}

#construction .accordion-body {
    background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-top: 3px solid #9a9696;
}

/* Standards & Codes - Orange Variant (Lighter) */
#standards .accordion-item {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

#standards .accordion-button {
    background: linear-gradient(135deg, #ff6b45 0%, #ff8566 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
}

#standards .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #e5461f 0%, #ff6b45 100%);
    color: white;
}

#standards .accordion-button::after {
    filter: brightness(0) invert(1);
}

#standards .accordion-body {
    background: linear-gradient(to bottom, #fff8f5 0%, #ffffff 100%);
    padding: 1.5rem;
    border-top: 3px solid #ff6b45;
}

/* Testing & Inspection - Dark Gray Variant */
#testing .accordion-item {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

#testing .accordion-button {
    background: linear-gradient(135deg, #5a5a5a 0%, #6e6e6e 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
}

#testing .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #464646 0%, #5a5a5a 100%);
    color: white;
}

#testing .accordion-button::after {
    filter: brightness(0) invert(1);
}

#testing .accordion-body {
    background: linear-gradient(to bottom, #f7f7f7 0%, #ffffff 100%);
    padding: 1.5rem;
    border-top: 3px solid #5a5a5a;
}

/* Troubleshooting - Orange Accent (Darker) */
#troubleshooting .accordion-item {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

#troubleshooting .accordion-button {
    background: linear-gradient(135deg, #c63d1a 0%, #e5461f 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
}

#troubleshooting .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #a83316 0%, #c63d1a 100%);
    color: white;
}

#troubleshooting .accordion-button::after {
    filter: brightness(0) invert(1);
}

#troubleshooting .accordion-body {
    background: linear-gradient(to bottom, #fff2ef 0%, #ffffff 100%);
    padding: 1.5rem;
    border-top: 3px solid #c63d1a;
}

/* Hover effects for all accordions */
.accordion-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Mobile responsive accordion */
@media (max-width: 768px) {
    .accordion-button {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .accordion-body {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
}

/* === PRINT STYLES === */
@media print {
    .navbar,
    .footer,
    .cta-section,
    .scroll-top,
    .faq-floating-nav,
    .search-overlay,
    .search-form {
        display: none !important;
    }

    .hero-section,
    .page-header {
        min-height: auto;
        padding: 2rem 0;
    }

    .timeline::before {
        display: none;
    }
}
