/* ===================================
   J10 Construction - Construction Estimating Website
   =================================== */

/* === Variables === */
:root {
    --primary-color: #1a237e;
    --primary-dark: #0d1442;
    --secondary-color: #ff6f00;
    --secondary-dark: #e65100;
    --accent-color: #00bcd4;
    --text-dark: #212529;
    --text-light: #6c757d;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border-color: #e0e0e0;
    --shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* === Preloader === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Failsafe: never leave the page covered if the JS fails to load */
    animation: preloaderFailsafe 0.5s ease 5s forwards;
}

@keyframes preloaderFailsafe {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === Navbar === */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    background: var(--primary-dark) !important;
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand .brand-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Square logo cropped to its badge: white margins trimmed, rounded tile */
.logo-img {
    width: 80px;
    height: 80px;
    max-width: none;
    object-fit: cover;
    clip-path: inset(5.5px round 10px);
    vertical-align: middle;
}

.navbar-brand .logo-text {
    display: none;
    font-size: 1.35rem;
    white-space: nowrap;
    line-height: 1.2;
}

@media (min-width: 1200px) {
    .navbar-brand .logo-text {
        display: inline;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

/* Branded focus ring - replaces Bootstrap's square blue glow on dropdown toggles */
.nav-link:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
    border-radius: 8px;
    box-shadow: none;
}

.navbar .cta-btn .nav-link {
    background: var(--secondary-color);
    color: #fff !important;
    padding: 10px 25px !important;
    border-radius: 25px;
    font-weight: 600;
}

.navbar .cta-btn .nav-link:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

/* === Navbar dropdown panels (Services list + Trades mega) === */
.navbar .dropdown-menu {
    padding: 10px;
    border: 1px solid rgba(26, 35, 126, 0.10);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 50px rgba(13, 20, 66, 0.25);
}

/* Shared header row: "All Services" / "All Trades" */
.navbar .dropdown-menu > li:first-child > a.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 9px;
    background: rgba(26, 35, 126, 0.07);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.navbar .dropdown-menu > li:first-child > a.dropdown-item::after {
    content: "\2192";
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

.navbar .dropdown-menu > li:first-child > a.dropdown-item:hover,
.navbar .dropdown-menu > li:first-child > a.dropdown-item:focus-visible {
    background: var(--primary-color);
    color: #fff;
}

.navbar .dropdown-menu > li:first-child > a.dropdown-item:hover::after {
    color: #fff;
}

.navbar .dropdown-menu .dropdown-divider {
    border-top-color: rgba(26, 35, 126, 0.10);
    margin: 10px 4px;
    opacity: 1;
}

/* Services: plain single-column list */
.navbar .dropdown-menu:not(.mega-dropdown) {
    min-width: 250px;
}

.navbar .dropdown-menu:not(.mega-dropdown) .dropdown-item {
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 0.925rem;
    font-weight: 500;
    color: #3a4152;
    transition: var(--transition);
}

.navbar .dropdown-menu:not(.mega-dropdown) .dropdown-item:hover,
.navbar .dropdown-menu:not(.mega-dropdown) .dropdown-item:focus-visible {
    background: var(--primary-color);
    color: #fff;
}

/* Trades: 500px panel with a 3-column icon grid */
.dropdown-menu.mega-dropdown {
    width: 500px;
    max-width: calc(100vw - 24px);
    padding: 12px;
}

.dropdown-menu.mega-dropdown .dropdown-content {
    padding: 4px 0 0;
}

.dropdown-menu.mega-dropdown .dropdown-content .row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    padding: 0;
}

.dropdown-menu.mega-dropdown .dropdown-content .col-md-4 {
    display: flex;
    width: auto;
    padding: 0;
}

.dropdown-menu.mega-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #3a4152;
    white-space: nowrap;
    transition: var(--transition);
}

.dropdown-menu.mega-dropdown .dropdown-item i {
    flex: none;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(26, 35, 126, 0.08);
    color: var(--primary-color);
    font-size: 0.85rem;
    margin: 0;
    transition: var(--transition);
}

.dropdown-menu.mega-dropdown .dropdown-item:hover,
.dropdown-menu.mega-dropdown .dropdown-item:focus-visible {
    background: var(--primary-color);
    color: #fff;
}

.dropdown-menu.mega-dropdown .dropdown-item:hover i,
.dropdown-menu.mega-dropdown .dropdown-item:focus-visible i {
    background: var(--secondary-color);
    color: #fff;
}

@media (max-width: 991.98px) {
    /* Collapsed navbar: menu is position:static, so fill the column */
    .dropdown-menu.mega-dropdown {
        width: 100%;
        max-width: none;
        padding: 10px;
        box-shadow: 0 12px 30px rgba(13, 20, 66, 0.20);
    }

    .dropdown-menu.mega-dropdown .dropdown-content .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Fixed navbar can outgrow the viewport once a dropdown is open */
    .navbar.fixed-top {
        max-height: 100vh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }


/* === Hero Section === */
.hero-section {
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
    min-height: 100vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons .btn {
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 30px;
}

/* === Section Styles === */
.section-padding {
    padding: 80px 0;
}

.section-subtitle {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-description {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === Stats Section === */
.stats-section {
    background: var(--primary-color);
    padding: 40px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 15px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    padding: 20px;
    color: #fff;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* === About Section === */
.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: 15px;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: 30px;
    background: var(--secondary-color);
    color: #fff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.features-list {
    margin-top: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-right: 12px;
}

/* === Services Section === */
.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-icon i {
    font-size: 2rem;
    color: #fff;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-link {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: var(--primary-color);
    gap: 12px;
}

.service-card-full {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.service-card-full:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon-lg {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon-lg i {
    font-size: 2.5rem;
    color: #fff;
}

/* === Trades Section === */
.trade-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.trade-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.trade-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.trade-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.trade-card h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.trade-link {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.trade-card-full {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.trade-card-full:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.trade-icon-lg {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.trade-icon-lg i {
    font-size: 2rem;
    color: #fff;
}

.trade-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* === Why Us Section === */
.why-us-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    margin-bottom: 30px;
}

.why-us-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.why-us-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.why-us-icon i {
    font-size: 2rem;
    color: #fff;
}

.why-us-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.why-us-card p {
    color: var(--text-light);
    margin: 0;
}

/* === CTA Section === */
.cta-section {
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    position: relative;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.95) 0%, rgba(13, 20, 66, 0.9) 100%);
}

.cta-section h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    position: relative;
    z-index: 1;
}

.cta-buttons .btn {
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 30px;
}

/* === Page Banner === */
.page-banner {
    background-size: cover;
    background-position: center;
    padding: 150px 0 100px;
    position: relative;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.95) 0%, rgba(13, 20, 66, 0.9) 100%);
}

.banner-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-banner .breadcrumb {
    background: transparent;
    margin: 0;
    position: relative;
    z-index: 1;
}

.page-banner .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.page-banner .breadcrumb-item.active {
    color: var(--secondary-color);
}

/* === Footer === */
.footer-section {
    background: var(--bg-dark);
    color: #fff;
    padding-top: 80px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget .widget-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 54px;
    height: 54px;
    max-width: none;
    object-fit: cover;
    clip-path: inset(5.3px round 10px);
    flex: none;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info li i {
    color: var(--secondary-color);
    margin-right: 12px;
    margin-top: 5px;
}

.contact-info li a {
    color: rgba(255, 255, 255, 0.7);
}

.contact-info li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-dark);
    color: #fff;
    transform: translateY(-3px);
}

/* === Forms === */
.form-control {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 35, 126, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* === Buttons === */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* === About Page === */
.about-content p.lead {
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.mv-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mv-icon i {
    font-size: 2rem;
    color: #fff;
}

.value-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.team-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.team-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* === Services Page === */
.process-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    height: 100%;
}

.process-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 15px;
    right: 20px;
}

.process-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* === Service Detail === */
.service-detail-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.service-detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-detail-icon i {
    font-size: 2rem;
    color: #fff;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li i {
    color: var(--secondary-color);
}

.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.sidebar-widget h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.service-list,
.trade-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li,
.trade-list li {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-list li:last-child,
.trade-list li:last-child {
    border-bottom: none;
}

.service-list li:hover,
.service-list li.active,
.trade-list li:hover,
.trade-list li.active {
    background: var(--primary-color);
    border-radius: 8px;
}

.service-list li:hover a,
.service-list li.active a,
.trade-list li:hover a,
.trade-list li.active a {
    color: #fff;
}

.service-list li a,
.trade-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.cta-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: #fff;
    text-align: center;
}

.cta-widget h4,
.cta-widget p {
    color: #fff;
}

.cta-widget .btn-outline-light {
    color: #fff;
    border-color: #fff;
}

.cta-widget .btn-outline-light:hover {
    background: #fff;
    color: var(--primary-color);
}

/* === Samples === */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.sample-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sample-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 30px;
    text-align: center;
    position: relative;
}

.sample-icon-lg i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.trade-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.sample-body {
    padding: 25px;
    flex-grow: 1;
}

.sample-body h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.sample-body p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.sample-footer {
    padding: 0 25px 25px;
}

.no-samples {
    padding: 60px 20px;
    text-align: center;
}

.no-samples i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

/* === Contact === */
.contact-info-box {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info-item .icon i {
    color: #fff;
    font-size: 1.1rem;
}

.contact-info-item .info h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-info-item .info p {
    color: var(--text-light);
    margin: 0;
}

.contact-info-item .info a {
    color: var(--text-light);
}

.contact-info-item .info a:hover {
    color: var(--primary-color);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    border-radius: 15px;
}

/* === Estimate === */
.estimate-form-wrapper {
    background: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.form-section-title i {
    margin-right: 10px;
}

/* === Responsive === */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .stats-section {
        margin-top: -30px;
        border-radius: 10px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .experience-badge {
        bottom: -20px;
        right: 15px;
        padding: 15px;
    }

    .experience-badge .years {
        font-size: 1.8rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .hero-buttons .btn-lg {
        padding: 12px 25px;
    }

    .stats-section {
        margin-top: -20px;
        padding: 20px 0;
    }

    .stat-item {
        padding: 15px 0;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .estimate-form-wrapper {
        padding: 30px 20px;
    }

    .contact-info-box,
    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .trade-actions {
        flex-direction: column;
    }
}
