/* 
  Custom CSS for Dealership Section
  Converted from Tailwind CSS to pure CSS.
*/

/* Section Container */
.dealership-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Decorative Background Elements */
.dealership-section .bg-decor-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 33.333333%;
    height: 100%;
    background-image: linear-gradient(to left, rgba(239, 246, 255, 0.5), transparent);
    z-index: 0;
    pointer-events: none;
}

.dealership-section .bg-decor-2 {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    border-radius: 9999px;
    background-image: linear-gradient(to top right, rgba(245, 166, 35, 0.1), transparent);
    filter: blur(64px);
    z-index: 0;
    pointer-events: none;
}

/* Header Content */
.dealership-content-wrapper {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .dealership-content-wrapper {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .dealership-content-wrapper {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.dealership-header {
    text-align: center;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}

.dealership-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(245, 166, 35, 0.1);
    color: #e09419;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(245, 166, 35, 0.2);
    backdrop-filter: blur(4px);
    margin-bottom: 1rem;
}

.dealership-badge i {
    width: 0.875rem;
    height: 0.875rem;
    margin-right: 0.5rem;
}

.dealership-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 800;
    color: #063B66;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .dealership-title {
        font-size: 3rem;
        line-height: 1;
    }
}

.dealership-title .gradient-text {
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(to right, #0A6EBD, #F5A623);
}

.dealership-subtitle {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.625;
    font-weight: 300;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .dealership-subtitle {
        font-size: 1.125rem;
    }
}

/* Grid Layout */
.dealership-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2.5rem;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .dealership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Card Styling */
.dealer-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #f3f4f6;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s ease;
    transform: translateY(0);
}

@media (min-width: 640px) {
    .dealer-card {
        padding: 2.5rem;
    }
}

.dealer-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-0.5rem);
}

.dealer-card-hover-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.dealer-card.vguard .dealer-card-hover-bg {
    background-image: linear-gradient(to bottom right, rgba(250, 204, 21, 0.05), rgba(249, 115, 22, 0.05));
}

.dealer-card.waaree .dealer-card-hover-bg {
    background-image: linear-gradient(to bottom right, rgba(74, 222, 128, 0.05), rgba(16, 185, 129, 0.05));
}

.dealer-card:hover .dealer-card-hover-bg {
    opacity: 1;
}

/* Card Content */
.dealer-card-content {
    position: relative;
    z-index: 10;
}

.dealer-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.dealer-icon-box {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.dealer-card.vguard .dealer-icon-box {
    background-image: linear-gradient(to bottom right, #fefce8, #fff7ed);
    border: 1px solid #ffedd5;
}

.dealer-card.vguard .dealer-icon-box i {
    color: #f97316;
    width: 2.5rem;
    height: 2.5rem;
}

.dealer-card.waaree .dealer-icon-box {
    background-image: linear-gradient(to bottom right, #f0fdf4, #ecfdf5);
    border: 1px solid #dcfce7;
}

.dealer-card.waaree .dealer-icon-box i {
    color: #059669;
    width: 2.5rem;
    height: 2.5rem;
}

.dealer-verified-tag {
    background-color: #d1fae5;
    color: #047857;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
}

.dealer-verified-tag i {
    width: 0.875rem;
    height: 0.875rem;
    margin-right: 0.25rem;
}

.dealer-card-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: #063B66;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.dealer-card.vguard:hover .dealer-card-title {
    color: #ea580c;
}

.dealer-card.waaree:hover .dealer-card-title {
    color: #059669;
}

.dealer-card-desc {
    color: #4b5563;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    line-height: 1.625;
}

/* Card Action Area */
.dealer-card-action {
    position: relative;
    z-index: 10;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.dealer-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #f9fafb;
    color: #374151;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dealer-btn i {
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.dealer-btn i:first-child {
    margin-right: 0.5rem;
}

.dealer-btn i:last-child {
    margin-left: auto;
    width: 1rem;
    height: 1rem;
}

/* Button Hover States */
.dealer-card.vguard .dealer-btn:hover {
    background-color: #fff7ed;
    color: #ea580c;
    border-color: #fed7aa;
}

.dealer-card.vguard .dealer-btn:hover i {
    color: #f97316;
}

.dealer-card.waaree .dealer-btn:hover {
    background-color: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.dealer-card.waaree .dealer-btn:hover i {
    color: #059669;
}
