/* ========================================
   Leadman Stair - Public Website Styles
   Gold Theme: #D4AF37 / #C9A96E
   ======================================== */

:root {
    --gold: #D4AF37;
    --gold-dark: #b8962f;
    --gold-light: #f0e6c8;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --text-muted: #6c757d;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 70px;
    color: #333;
}

/* ─── x-cloak for Alpine ─── */
[x-cloak] { display: none !important; }

/* ─── Navbar ─── */
.navbar {
    background: var(--dark) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--gold) !important;
    letter-spacing: 1px;
    line-height: 1.2;
}

.navbar-brand small {
    font-size: 0.65rem;
    font-weight: 300;
    color: #999;
    letter-spacing: 2px;
    display: block;
    line-height: 1;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

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

/* ─── Hero Section ─── */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    color: #fff;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(212, 175, 55, 0.05) 100%);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.hero-title .gold {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    line-height: 1.8;
}

/* ─── Buttons ─── */
.btn-gold {
    background: var(--gold);
    color: var(--dark) !important;
    font-weight: 600;
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-gold:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}

.btn-gold:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold) !important;
    background: transparent;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 4px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--dark) !important;
}

/* ─── Section Styling ─── */
.section {
    padding: 70px 0;
}

.section-alt {
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-weight: 700;
    color: var(--dark);
    font-size: 2rem;
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 12px auto 0;
}

.section-title p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 1.05rem;
}

/* ─── Page Header ─── */
.page-header {
    background: linear-gradient(135deg, var(--dark), var(--darker));
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
}

/* ─── Product Cards ─── */
.product-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.07);
    transition: all 0.3s;
    height: 100%;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.product-card .card-img-wrapper {
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

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

.product-card .card-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-card .card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.product-card .card-meta span {
    display: inline-block;
    margin-right: 1rem;
}

.product-card .card-meta i {
    width: 16px;
    margin-right: 4px;
    color: var(--gold);
}

.product-card .card-text {
    color: #555;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Feature Boxes ─── */
.feature-box {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.feature-box:hover {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.feature-box .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.feature-box .icon i {
    font-size: 1.8rem;
    color: var(--gold);
}

.feature-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.feature-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── CTA Section ─── */
.cta-section {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    padding: 60px 0;
    text-align: center;
    color: var(--dark);
}

.cta-section h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.btn-cta {
    background: var(--dark);
    color: #fff !important;
    font-weight: 600;
    padding: 14px 36px;
    border: none;
    border-radius: 4px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: #fff !important;
}

/* ─── Tags Filter ─── */
.tag-filter {
    text-align: center;
    margin-bottom: 2rem;
}

.tag-btn {
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0 4px 10px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none !important;
    line-height: 1.5;
}

.tag-btn:hover,
.tag-btn.active {
    background: var(--gold);
    color: #fff !important;
}

/* ─── Gallery ─── */
.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
    display: block;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 1rem;
    color: #fff;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.masonry-grid {
    column-count: 3;
    column-gap: 1rem;
}

.masonry-grid .gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

/* ─── Lightbox ─── */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 1;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ─── Product Detail ─── */
.main-image-container {
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 1rem;
}

.main-image-container img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.thumb-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.thumb-item {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s;
    flex-shrink: 0;
}

.thumb-item:hover {
    opacity: 0.9;
}

.thumb-item.active {
    border-color: var(--gold);
    opacity: 1;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-info .meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-info .meta span {
    margin-right: 1.5rem;
}

.product-info .meta i {
    margin-right: 4px;
    color: var(--gold);
    width: 16px;
}

.product-info .specs {
    margin: 1.5rem 0;
}

.product-info .specs dt {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.product-info .specs dd {
    color: #555;
    margin-bottom: 0.75rem;
}

.product-tags .badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-dark);
    font-weight: 500;
    font-size: 0.8rem;
    padding: 5px 12px;
    margin: 0 4px 8px 0;
}

/* ─── Footer ─── */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 0;
}

.footer h5 {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer p,
.footer li {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

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

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

.footer ul li {
    margin-bottom: 0.4rem;
}

.footer ul li i {
    width: 20px;
    color: var(--gold);
    margin-right: 6px;
}

.footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ─── Inquiry Form ─── */
.inquiry-form {
    max-width: 650px;
    margin: 0 auto;
}

.inquiry-form .form-control {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.inquiry-form .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
}

.inquiry-form label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.inquiry-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* ─── About Page ─── */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h3 {
    color: var(--dark);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.2rem;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--gold);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* ─── Responsive ─── */
@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section {
        padding: 50px 0;
    }
    .section-title h2 {
        font-size: 1.6rem;
    }
    .page-header {
        padding: 40px 0;
    }
    .page-header h1 {
        font-size: 1.8rem;
    }
    .product-card .card-img-wrapper {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        column-count: 1;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-section {
        padding: 60px 0 50px;
    }
    body {
        padding-top: 62px;
    }
}
