/**
 * Vaughn Lauban Designs - Main Stylesheet
 */

:root {
    --primary-color: #1a3a5c;
    --primary-dark: #0f2840;
    --secondary-color: #c9a227;
    --accent-color: #d4af37;
    --dark-bg: #040014;
    --light-bg: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
}

/* ========================================
   Base Styles
======================================== */
body {
    font-family: 'Fira Sans', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

/* ========================================
   Header
======================================== */
.site-header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a2e 100%);
}

.logo-img {
    max-width: 400px;
    height: auto;
}

@media (max-width: 576px) {
    .logo-img {
        max-width: 280px;
    }
}

/* ========================================
   Navigation
======================================== */
.navbar {
    background: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

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

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 0;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* ========================================
   Main Content Area
======================================== */
.site-main {
    background-color: #e8edf2;
    min-height: 60vh;
}

.site-main .container {
    /* Cards and content boxes will be white, standing out from the gray background */
}

/* Bootstrap cards in main content */
.site-main .card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Sections that should be white */
.site-main .bg-light {
    background-color: #f0f4f8 !important;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: #fff;
    margin-bottom: 0;
}

.page-header .breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

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

.page-header .breadcrumb-item.active {
    color: #fff;
}

/* ========================================
   Plan Cards
======================================== */
.plan-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.plan-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.plan-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.plan-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.plan-card .style-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary-color);
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-card .card-body {
    padding: 1.25rem;
}

.plan-card .plan-number {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-card .plan-specs {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.plan-card .plan-specs i {
    width: 18px;
    color: var(--primary-color);
}

.plan-card .plan-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-card .plan-price small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ========================================
   Plan Detail Page
======================================== */
.plan-gallery {
    position: relative;
}

.plan-gallery .main-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    background: #fff;
}

.plan-gallery .main-image img {
    width: 100%;
    height: auto;
}

.plan-gallery .thumbnail-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.plan-gallery .thumbnail-list .thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.plan-gallery .thumbnail-list .thumb.active,
.plan-gallery .thumbnail-list .thumb:hover {
    border-color: var(--primary-color);
}

.plan-gallery .thumbnail-list .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plan-details-box {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.plan-details-box h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.plan-details-box .spec-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.plan-details-box .spec-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.plan-details-box .spec-list li:last-child {
    border-bottom: none;
}

.plan-details-box .spec-list li span:first-child {
    color: var(--text-muted);
}

.plan-details-box .spec-list li span:last-child {
    font-weight: 600;
}

/* Pricing Options */
.pricing-options .option {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-options .option:hover,
.pricing-options .option.selected {
    border-color: var(--primary-color);
    background: rgba(26, 58, 92, 0.05);
}

.pricing-options .option input[type="radio"] {
    margin-right: 0.75rem;
}

.pricing-options .option .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ========================================
   Shopping Cart
======================================== */
.cart-table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.cart-table th {
    background: var(--primary-color);
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 1rem;
}

.cart-table td {
    padding: 1rem;
    vertical-align: middle;
}

.cart-table .cart-item-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-summary {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cart-summary h4 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cart-summary .summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 0.75rem;
    border-top: 2px solid var(--border-color);
    margin-top: 0.75rem;
}

/* ========================================
   Forms
======================================== */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 58, 92, 0.25);
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #b8931f;
    border-color: #b8931f;
}

/* ========================================
   Footer
======================================== */
.site-footer {
    background: #0a0a1a;
    color: #c0c6ce;
}

.site-footer p,
.site-footer li,
.site-footer span {
    color: #c0c6ce;
}

.site-footer a {
    color: #d8dce2;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.site-footer h5 {
    color: var(--secondary-color);
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
}

.site-footer .footer-links a {
    color: #b0b8c4;
}

.site-footer .footer-links a:hover {
    color: var(--secondary-color);
}

.site-footer .social-links a {
    color: #d8dce2;
}

.site-footer .social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    background: rgba(0,0,0,0.4);
    color: #909aa6;
}

.footer-bottom p {
    color: #909aa6;
}

.footer-bottom a {
    color: #a8b0ba;
}

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

/* ========================================
   Responsive Adjustments
======================================== */
@media (max-width: 991px) {
    .plan-card .card-img-wrapper {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .cart-table {
        font-size: 0.875rem;
    }
    
    .cart-table .cart-item-img {
        width: 60px;
        height: 45px;
    }
}

/* ========================================
   Utility Classes
======================================== */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.text-gold {
    color: var(--secondary-color);
}

.border-gold {
    border-color: var(--secondary-color) !important;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Category Grid on Homepage */
.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card .category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem 1rem 1rem;
    text-align: center;
}

.category-card .category-overlay h5 {
    color: #fff;
    margin: 0;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
}

/* Filters Sidebar */
.filters-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filters-sidebar h5 {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.filters-sidebar .form-check {
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
}

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

.pagination .page-item.active .page-link:hover,
.pagination .page-item.active .page-link:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.pagination .page-link:hover {
    background-color: var(--light-bg);
    color: var(--primary-dark);
}

/* No Image Placeholder */
.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #adb5bd;
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

.no-image-placeholder i {
    font-size: 3rem;
}

.category-card .no-image-placeholder {
    height: 180px;
    border-radius: 0;
}

.card-img-wrapper .no-image-placeholder {
    height: 100%;
    min-height: 200px;
    border-radius: 8px 8px 0 0;
}
