/* JD Gates Custom Styles */

:root {
    /* JD Gates Brand Colors - Matching Old Site */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Top Bar */
.top-bar {
    font-size: 0.9rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1030;
}

.navbar-brand {
    padding: 0;
    margin-right: 1.5rem;
}

.navbar-brand img {
    height: 65px;
    width: auto;
    max-width: 260px;
    transition: all 0.3s ease;
    object-fit: contain;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 52px;
        max-width: 195px;
    }
}

@media (max-width: 480px) {
    .navbar-brand img {
        height: 45px;
        max-width: 156px;
    }
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

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

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.dropdown-menu-lg {
    min-width: 300px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/pattern.png') repeat;
    opacity: 0.1;
}

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

/* Service Cards */
.service-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.service-card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card .card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Location Cards */
.location-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.location-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.location-card .card-body {
    padding: 1.5rem;
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
}

/* Contact Form */
.contact-form-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.contact-form-section .card {
    border-radius: 15px;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Map Section */
.map-section {
    background: #f8f9fa;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: white;
    transform: scale(1.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Blog Cards */
.blog-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

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

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Guide Cards */
.guide-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.guide-card:hover {
    border-left-color: var(--success-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

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

/* Features Section */
.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: 100%;
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: #1a1a1a;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

footer ul li {
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 20px;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Sticky Sidebar */
.sticky-top {
    z-index: 1020;
}

/* Process Steps */
.process-step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Modern Service Cards */
.service-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.service-card-gradient {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-card-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card-modern:hover .service-card-gradient::before {
    opacity: 1;
}

.service-icon-wrapper {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.service-card-modern:hover .service-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255,255,255,0.3);
}

.service-icon-wrapper i {
    font-size: 3rem;
    color: white;
}

.service-card-content {
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.service-card-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-card-footer {
    margin-top: auto;
}

.service-card-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.service-card-modern:hover .service-card-link {
    gap: 8px;
}

.service-card-modern:hover .service-card-link i {
    transform: translateX(4px);
}

.service-card-link i {
    transition: transform 0.3s ease;
}

/* Service Link Cards on Location Pages */
.service-link-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12) !important;
}

.service-link-card:hover .bg-primary {
    background-color: var(--primary-color) !important;
}

.service-link-card:hover .text-primary {
    color: white !important;
}

.service-link-card .card-title {
    color: #333;
    transition: color 0.3s ease;
}

.service-link-card:hover .card-title {
    color: var(--primary-color);
}

/* Location Cards */
.location-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

.location-card:hover .bg-primary {
    background-color: var(--primary-color) !important;
}

.location-card:hover .text-primary {
    color: white !important;
}

.location-card .card-title {
    color: #333;
    transition: color 0.3s ease;
}

.location-card:hover .card-title {
    color: var(--primary-color);
}

/* Nearby Areas List */
.list-group-item-action {
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
    padding-left: 1.25rem;
}

.list-group-item-action:hover .fa-chevron-right {
    transform: translateX(5px);
    color: var(--primary-color) !important;
}

.list-group-item-action .fa-chevron-right {
    transition: all 0.2s ease;
}

.list-group-item-action span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 20px;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.content-section h2 {
    margin-bottom: 2rem;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* List Styles */
.custom-list {
    list-style: none;
    padding-left: 0;
}

.custom-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.custom-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Shadow Utilities */
.shadow-sm-hover:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075) !important;
}

.shadow-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

/* Text Utilities */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Print Styles */
@media print {
    .navbar, .whatsapp-float, .back-to-top, footer {
        display: none;
    }
}
