/**
 * Main Stylesheet for DC Appliance Repair Theme
 */

/* -------------------------------------------------------------
 * Base Styles
 * ------------------------------------------------------------- */
:root {
    --primary-color: #1E3A8A;
    --secondary-color: #F97316;
    --light-color: #F9FAFB;
    --dark-color: #111827;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --gray-100: #F9FAFB;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #1E3A8A;
    --gray-900: #111827;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #007bff;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--dark-color);
    color: #fff;
    padding: 10px 15px;
    z-index: 999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.7;
}

/* Buttons */
.btn {
    border-radius: 4px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* -------------------------------------------------------------
 * Header Styles
 * ------------------------------------------------------------- */
.site-header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-header .navbar {
    padding: 0.75rem 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding .custom-logo {
    max-height: 80px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.phone-section .phone-icon-link {
    color: var(--primary-color) !important;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.phone-section .phone-icon-link:hover {
    color: var(--secondary-color) !important;
    transform: scale(1.05);
}

@media (max-width: 991.98px) {
    .site-branding {
        flex: 0 0 50% !important;
    }
    
    .phone-section {
        display: none !important;
    }
    
    .navbar-collapse {
        flex: 1 0 auto !important;
        margin-top: 1rem;
    }
}

/* -------------------------------------------------------------
 * Brands Section Styles
 * ------------------------------------------------------------- */
.brands-carousel {
    background-color: var(--gray-100);
}

.brands-slider {
    gap: 1rem;
}

.brand-item {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.brand-item:hover {
    transform: translateY(-2px);
    opacity: 1 !important;
}

.brand-item img {
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .brands-slider {
        justify-content: center !important;
        gap: 0.5rem;
    }
    
    .brand-item {
        flex: 0 0 auto;
        max-width: 80px;
    }
}

/* -------------------------------------------------------------
 * Footer Map Section Styles
 * ------------------------------------------------------------- */
.map-container {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.map-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .map-container {
        height: 250px !important;
    }
}

/* -------------------------------------------------------------
 * FieldGridPro Inspired Color Variables
 * ------------------------------------------------------------- */
:root {
    /* Primary Colors - Professional Blue Palette */
    --primary-blue: #0088bb;
    --primary-blue-light: #4da6d0;
    --primary-blue-dark: #006699;
    
    /* Secondary Colors - Success & Action */
    --success-mint: #1abc9c;
    --accent-orange: #f39c12;
    --warning-orange: #e67e22;
    --danger-red: #e74c3c;
    
    /* Neutral Colors - Modern Gray Scale */
    --neutral-50: #f8f9fa;
    --neutral-100: #e9ecef;
    --neutral-200: #dee2e6;
    --neutral-300: #ced4da;
    --neutral-400: #adb5bd;
    --neutral-500: #6c757d;
    --neutral-600: #495057;
    --neutral-700: #343a40;
    --neutral-800: #212529;
    --neutral-900: #0d1117;
    
    /* Brand Specific */
    --brand-primary: var(--primary-blue);
    --brand-secondary: var(--success-mint);
    --brand-accent: var(--accent-orange);
    
    /* Header Colors */
    --header-bg: #ffffff;
    --header-shadow: rgba(0, 136, 187, 0.1);
    --header-border: var(--neutral-200);
}

/* -------------------------------------------------------------
 * Header Layout - Sticky with Flexbox (40% / 30% / 30%)
 * ------------------------------------------------------------- */
.header-top {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 2px 12px var(--header-shadow);
    position: sticky !important;
    top: 0;
    z-index: 1030;
    min-height: 90px;
    transition: all 0.3s ease;
}

.header-top.scrolled {
    min-height: 80px;
    box-shadow: 0 4px 20px var(--header-shadow);
}

/* Flexbox Container for Perfect 40/30/30 Layout */
.header-flex-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 85px;
    width: 100% !important;
    position: relative;
}

.header-logo {
    flex: 0 0 40% !important;
    display: flex !important;
    align-items: center !important;
    z-index: 1002;
}

.header-menu-center {
    flex: 0 0 30% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 1001;
}

.header-call-right {
    flex: 0 0 30% !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    position: relative !important;
    z-index: 9999 !important;
}

/* Logo Styling */
.custom-logo {
    max-height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

.header-top.scrolled .custom-logo {
    max-height: 70px;
}

/* Call Button - FieldGridPro Style - ALWAYS VISIBLE */
.call-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #0088bb, #4da6d0) !important;
    border: 3px solid #ffffff !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 1.2rem !important;
    box-shadow: 0 4px 15px rgba(0, 136, 187, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    z-index: 9999 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.call-button::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success-mint), var(--brand-accent));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.call-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 136, 187, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.call-button:hover::before {
    opacity: 1;
}

.call-button:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 136, 187, 0.3), 0 0 0 3px rgba(26, 188, 156, 0.3);
}

/* Menu Container */
.menu-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

/* Desktop Menu Styling */
.header-menu .navbar-nav {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-menu .nav-link {
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--neutral-700);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.header-menu .nav-link:hover {
    color: var(--brand-primary);
    background-color: var(--neutral-50);
    transform: translateY(-1px);
}

.header-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header-menu .nav-link:hover::after {
    width: 80%;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    background: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    color: #ffffff;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-toggle:hover {
    background: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
    transform: scale(1.05);
}

.mobile-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 136, 187, 0.3);
}

/* Mobile Menu */
#mobileMenu {
    background: #ffffff;
    border-top: 3px solid var(--brand-primary);
    box-shadow: 0 8px 25px rgba(0, 136, 187, 0.15);
    z-index: 1020;
    position: relative !important;
}

/* Ensure mobile menu doesn't interfere with call button */
#mobileMenu.collapse {
    position: relative !important;
}

#mobileMenu.collapse.show {
    position: relative !important;
}

#mobileMenu .navbar-nav {
    padding: 1rem 0;
}

#mobileMenu .nav-link {
    padding: 1rem 0;
    border-bottom: 1px solid var(--neutral-100);
    color: var(--neutral-700);
    font-weight: 500;
    transition: all 0.3s ease;
}

#mobileMenu .nav-link:hover {
    color: var(--brand-primary);
    background-color: var(--neutral-50);
    padding-left: 1rem;
}

/* Mobile Call Button in Menu */
#mobileMenu .btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--primary-blue-light));
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 136, 187, 0.3);
    transition: all 0.3s ease;
}

#mobileMenu .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 187, 0.4);
}

/* Force visibility on all screen sizes */
.call-button,
.header-call-right {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Responsive Design - Maintaining Call Button Visibility */
@media (max-width: 991px) {
    .call-button {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.1rem !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .custom-logo {
        max-height: 65px;
    }
    
    .header-flex-container {
        gap: 0.5rem;
    }
    
    .header-call-right {
        flex: 0 0 30% !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 767px) {
    .header-logo {
        flex: 0 0 45% !important;
    }
    
    .header-call-right {
        flex: 0 0 30% !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .header-menu-center {
        flex: 0 0 25% !important;
    }
    
    .call-button {
        width: 50px !important;
        height: 50px !important;
        font-size: 1rem !important;
        border-width: 2px !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .custom-logo {
        max-height: 55px;
    }
    
    .header-top {
        min-height: 65px;
    }
    
    .header-flex-container {
        min-height: 60px;
    }
}

@media (max-width: 575px) {
    .header-top {
        min-height: 60px;
    }
    
    .header-flex-container {
        min-height: 55px;
        gap: 0.25rem;
    }
    
    .header-logo {
        flex: 0 0 45% !important;
    }
    
    .header-call-right {
        flex: 0 0 30% !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .header-menu-center {
        flex: 0 0 25% !important;
    }
    
    .call-button {
        width: 45px !important;
        height: 45px !important;
        font-size: 0.9rem !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .custom-logo {
        max-height: 50px;
    }
}

.site-branding {
    max-width: none;
}

.site-branding .custom-logo {
    max-height: 55px;
    width: auto;
}

/* Header Phone Icon Styles */
.header-phone-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 9999 !important;
}

.header-phone-icon .btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    border: 3px solid #fff;
}

.header-phone-icon .btn i {
    color: #fff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.header-phone-icon .btn:hover {
    transform: scale(1.1);
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.header-phone-icon .btn:active {
    transform: scale(1.05);
    background-color: #0a58ca !important;
    border-color: #0a53be !important;
}

.header-phone-icon .btn:focus {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Menu Section Styles */
.header-menu-section .navbar-nav {
    align-items: center;
}

.header-menu-section .nav-link {
    padding: 0.5rem 0.8rem;
    font-weight: 500;
}

/* Mobile Responsive Adjustments */
@media (max-width: 991px) {
    .header-phone-icon .btn {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }
    
    .header-phone-icon .btn i {
        font-size: 1rem;
    }
    
    .site-branding .custom-logo {
        max-height: 45px;
    }
}

@media (max-width: 767px) {
    .site-branding {
        flex: 0 0 50% !important;
    }
    
    .header-phone-section {
        flex: 0 0 25% !important;
    }
    
    .header-menu-section {
        flex: 0 0 25% !important;
    }
    
    .header-phone-icon .btn {
        width: 45px;
        height: 45px;
    }
    
    .header-phone-icon .btn i {
        font-size: 0.9rem;
    }
    
    .site-branding .custom-logo {
        max-height: 40px;
    }
}

/* Phone number text styling */
.phone-number-text a {
    color: #0d6efd !important;
}

.phone-number-text a:hover {
    color: #0b5ed7 !important;
}

.site-branding {
    max-width: 180px;
}

.custom-logo-link img {
    max-height: 45px;
    width: auto;
}

.navbar-expand-lg .navbar-nav {
    align-items: center;
}

@media (min-width: 992px) {
    .navbar {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .navbar-expand-lg .navbar-collapse {
        flex-grow: 0;
        justify-content: center;
    }
    
    .container {
        display: flex;
        flex-wrap: nowrap;
    }
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.navbar-nav .nav-link {
    padding: 1.5rem 1rem;
    font-weight: 500;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.sticky-top {
    transition: all 0.3s ease;
}

/* Sticky Header Animation */
.sticky-top.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------------------------
 * Footer Styles
 * ------------------------------------------------------------- */
.site-footer {
    padding: 4rem 0 0;
    background-color: var(--dark-color);
    color: #fff;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .widget-title {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-menu li {
    display: inline-block;
    margin-right: 1rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 99;
}

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

/* -------------------------------------------------------------
 * Hero Section
 * ------------------------------------------------------------- */
.hero-section {
    position: relative;
}

.hero-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

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

/* -------------------------------------------------------------
 * Services Section
 * ------------------------------------------------------------- */
.service-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.service-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.service-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -------------------------------------------------------------
 * Testimonials Section
 * ------------------------------------------------------------- */
.testimonial-card {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.testimonial-text {
    position: relative;
    font-style: italic;
}

.author-avatar {
    font-weight: bold;
}

.testimonial-rating {
    font-size: 1rem;
}

/* -------------------------------------------------------------
 * CTA Section
 * ------------------------------------------------------------- */
.cta-section {
    background-color: var(--primary-color);
}

/* -------------------------------------------------------------
 * Contact Section
 * ------------------------------------------------------------- */
.contact-form .form-control {
    border: 1px solid var(--gray-300);
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.contact-info-item .icon {
    width: 50px;
    text-align: center;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--gray-200);
    color: var(--gray-800);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* -------------------------------------------------------------
 * Blog Styles
 * ------------------------------------------------------------- */
.widget-area .widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
}

.entry-meta {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.entry-meta a {
    color: var(--gray-600);
}

.entry-meta a:hover {
    color: var(--primary-color);
}

.entry-footer {
    font-size: 0.875rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-300);
}

.widget ul {
    list-style: none;
    padding-left: 0;
}

.widget ul li {
    margin-bottom: 0.5rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    transition: all 0.3s ease;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    background-color: var(--gray-200);
}

/* Comments */
.comment-list {
    list-style: none;
    padding-left: 0;
}

.comment-body {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--gray-100);
    border-radius: 4px;
}

.comment-author img {
    margin-right: 1rem;
    border-radius: 50%;
}

.comment-metadata {
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.comment-content {
    margin-top: 1rem;
}

.comment-reply-link {
    font-size: 0.875rem;
}

/* -------------------------------------------------------------
 * Pagination
 * ------------------------------------------------------------- */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
    border-color: var(--gray-300);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* -------------------------------------------------------------
 * Forms
 * ------------------------------------------------------------- */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* -------------------------------------------------------------
 * Single Service
 * ------------------------------------------------------------- */
.service-cta {
    background-color: var(--gray-100);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.related-services .card {
    transition: all 0.3s ease;
}

.related-services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* -------------------------------------------------------------
 * Responsive Styles
 * ------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }

    .hero-wrapper {
        min-height: 60vh;
    }
}

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

    .hero-wrapper {
        min-height: 50vh;
    }

    .service-card .card-img-top {
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.5rem;
    }

    .hero-wrapper {
        min-height: 40vh;
    }
}

/* -------------------------------------------------------------
 * Animations
 * ------------------------------------------------------------- */
.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Utility Classes */
.section-title {
    position: relative;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* Phone Icon Link */
.phone-icon-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: rgba(30, 58, 138, 0.05);
    white-space: nowrap;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.phone-icon-link:hover {
    transform: scale(1.05);
    color: var(--primary-color);
    background-color: rgba(30, 58, 138, 0.1);
}

.phone-icon-link i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Header Layout */
.site-header .navbar > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

/* Brands Carousel */
.brands-carousel {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brands-slider {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.brands-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.brand-item img {
    transition: opacity 0.3s;
}

.brand-item img:hover {
    opacity: 1 !important;
}

.site-branding {
    flex: 1 0 40%;
}

/* Service Cards Styling */
.hover-shadow-lg {
    transition: all 0.3s ease;
}

.hover-shadow-lg:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

.transition {
    transition: all 0.3s ease;
}

.navbar-collapse {
    flex: 1 0 30%;
    display: flex;
    justify-content: center;
}

.navbar-nav {
    justify-content: center;
    width: 100%;
}

@media (max-width: 1200px) {
    .phone-icon-link span {
        font-size: 0.9rem;
    }
}

@media (max-width: 991.98px) {
    .site-header .navbar > .container {
        flex-wrap: wrap;
    }
    
    .site-branding {
        flex: 1 0 auto;
    }
    
    .navbar-collapse {
        flex: 0 0 100%;
        order: 3;
    }
    
    .navbar-toggler {
        order: 2;
    }
}

/* Brand Carousel Styles */
.brand-carousel {
    padding: 30px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.brand-carousel .carousel-item {
    padding: 0 50px;
}

.brand-logo {
    height: 60px;
    max-width: 120px;
    object-fit: contain;
    margin: 0 auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

.carousel-control-prev, 
.carousel-control-next {
    width: 40px;
    color: var(--primary-color);
    opacity: 0.7;
}

.carousel-control-prev:hover, 
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators button {
    background-color: var(--primary-color);
    opacity: 0.5;
}

.carousel-indicators .active {
    opacity: 1;
}
