/* ==========================================================
   about.css — Royal Curtain About Page Styles
   ========================================================== */

/* -------- Utilities -------- */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.p-md-6 { padding: 4rem !important; }
.text-gold { color: #D4AF37 !important; }
.text-royal { color: #0A2540 !important; }
.text-white-75 { color: rgba(255,255,255,0.75) !important; }
.bg-dark-blue { background: #0A2540 !important; }
.bg-sky       { background: #2980B9 !important; }
.bg-gold-grad { background: linear-gradient(135deg,#D4AF37,#AA8C2C) !important; }
.bg-teal      { background: #00897B !important; }
.bg-purple    { background: #6A1B9A !important; }
.bg-green     { background: #2E7D32 !important; }

/* -------- Section Label -------- */
.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.85rem;
    border-radius: 50px;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.3);
}

/* -------- HERO SECTION -------- */
.about-hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1616047006789-b7af5afb8c20?q=80&w=1600') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,37,64,0.92) 0%, rgba(26,62,96,0.85) 100%);
    z-index: 0;
}

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

.about-hero-badge {
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.4);
    color: #D4AF37;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
}

/* -------- STATS GRID -------- */
.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.stat-card {
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    color: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.stat-card:hover { transform: translateY(-4px); }

.stat-blue   { background: linear-gradient(135deg,#0A2540,#1A3E60); }
.stat-gold   { background: linear-gradient(135deg,#D4AF37,#AA8C2C); color: #1E293B; }
.stat-green  { background: linear-gradient(135deg,#2E7D32,#4CAF50); }
.stat-purple { background: linear-gradient(135deg,#6A1B9A,#9C27B0); }

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 0.25rem;
}

/* -------- COLLECTION CARDS -------- */
.collection-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(10,37,64,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.collection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #AA8C2C);
    opacity: 0;
    transition: opacity 0.3s;
}

.collection-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(10,37,64,0.12);
}

.collection-card:hover::before { opacity: 1; }

.collection-card.collection-cta {
    background: linear-gradient(135deg, #0A2540 0%, #1A3E60 100%);
    border-color: #D4AF37;
}

.collection-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.collection-list li {
    font-size: 0.88rem;
    color: #64748B;
    padding: 0.25rem 0;
    border-bottom: 1px dashed #F1F5F9;
}

.collection-list li:last-child { border-bottom: none; }

/* -------- MATERIAL CHIPS -------- */
.material-chip {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    transition: all 0.25s ease;
    cursor: default;
}

.material-chip:hover {
    border-color: #D4AF37;
    background: #FFFBEB;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(212,175,55,0.12);
}

/* -------- COLOR SWATCHES -------- */
.color-swatches-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.color-swatch {
    width: 90px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.4rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border: 1px solid rgba(0,0,0,0.07);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.color-swatch:hover { transform: scale(1.08); z-index: 1; }

.color-swatch span {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* -------- WHY SECTION -------- */
.why-section {
    background: linear-gradient(135deg, #0A2540 0%, #0E3460 50%, #0A2540 100%);
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,175,55,0.06), transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.why-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.why-card:hover {
    background: rgba(212,175,55,0.08);
    border-color: rgba(212,175,55,0.3);
    transform: translateY(-4px);
}

.why-icon {
    width: 56px;
    height: 56px;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 1.3rem;
}

/* -------- SERVICE CARDS -------- */
.service-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(10,37,64,0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #D4AF37;
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(10,37,64,0.10);
}

.service-icon-wrap {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0A2540, #1A3E60);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 1.3rem;
}

/* -------- COMMITMENT SECTION -------- */
.commitment-section {
    background: linear-gradient(135deg, #1A1A2E, #16213E, #0F3460);
}

.commitment-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 24px;
    backdrop-filter: blur(8px);
}

/* -------- CONTACT CTA -------- */
.contact-cta-wrap {
    background: linear-gradient(135deg, #F8FAFC, #F0F4F8);
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 8px 30px rgba(10,37,64,0.06);
}

.contact-info-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-whatsapp-pill {
    background: #25D366;
    color: white;
}

.btn-whatsapp-pill:hover {
    background: #1EB857;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.25);
}

.btn-email-pill {
    background: #0A2540;
    color: white;
}

.btn-email-pill:hover {
    background: #1A3E60;
    color: white;
    transform: translateY(-2px);
}

.btn-address-pill {
    background: #F1F5F9;
    color: #1E293B;
    border: 1px solid #E2E8F0;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 768px) {
    .about-hero { min-height: 400px; }
    .about-stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-num { font-size: 1.8rem; }
    .py-6 { padding-top: 3rem; padding-bottom: 3rem; }
    .color-swatch { width: 70px; height: 58px; }
    .color-swatch span { font-size: 0.62rem; }
}

@media (max-width: 480px) {
    .about-stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .color-swatches-row { gap: 0.4rem; }
    .color-swatch { width: 60px; height: 52px; }
}

/* =========================================
   FABRIC GALLERY SECTION
   ========================================= */
.fabric-gallery-section {
    background: linear-gradient(135deg, #0A2540 0%, #0D3060 50%, #0A2540 100%);
    position: relative;
    overflow: hidden;
}

.fabric-gallery-section::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(212,175,55,0.07), transparent 70%);
    bottom: -200px; left: -200px;
    pointer-events: none;
}

/* ---- Masonry-style CSS Grid ---- */
.fabric-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 1.25rem;
}

/* Large items span 2 rows for visual interest */
.fabric-gallery-item.fabric-item-large {
    grid-row: span 1;
}

/* On wider screens, make the first large item taller */
@media (min-width: 992px) {
    .fabric-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 300px;
    }
    .fabric-gallery-item.fabric-item-large {
        grid-row: span 2;
    }
    /* Layout: [large:47] [33] [44:large]
                          [38] [large cont.] [45]  */
    .fabric-gallery-item:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
    .fabric-gallery-item:nth-child(2) { grid-column: 2; grid-row: 1; }
    .fabric-gallery-item:nth-child(3) { grid-column: 2; grid-row: 2; }
    .fabric-gallery-item:nth-child(4) { grid-column: 3; grid-row: 1 / 3; }
    .fabric-gallery-item:nth-child(5) { grid-column: 1 / 4; grid-row: 3; max-height: 340px; }
}

/* ---- Individual Items ---- */
.fabric-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    border: 2px solid rgba(212,175,55,0.1);
    transition: border-color 0.3s ease, transform 0.3s ease;
    background: #111;
}

.fabric-gallery-item:hover {
    border-color: rgba(212,175,55,0.5);
    transform: scale(1.02);
    z-index: 2;
}

.fabric-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: brightness(0.92);
}

.fabric-gallery-item:hover img {
    transform: scale(1.07);
    filter: brightness(0.75);
}

/* ---- Overlay ---- */
.fabric-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.2rem;
    background: linear-gradient(to top, rgba(10,37,64,0.85) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

/* Code badge top-left */
.fabric-code-badge {
    align-self: flex-start;
    background: rgba(212,175,55,0.9);
    color: #1E293B;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* Name + width bottom-left */
.fabric-detail {
    align-self: flex-start;
}

/* Zoom icon bottom-right */
.fabric-zoom-icon {
    position: absolute;
    bottom: 1.1rem;
    right: 1.2rem;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    backdrop-filter: blur(4px);
    transition: background 0.2s, transform 0.2s;
}

.fabric-gallery-item:hover .fabric-zoom-icon {
    background: rgba(212,175,55,0.8);
    transform: scale(1.1);
}

/* =========================================
   LIGHTBOX
   ========================================= */
.fabric-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 24, 0.96);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.fabric-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-inner {
    position: relative;
    max-width: 820px;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    background: #0A2540;
    border: 1px solid rgba(212,175,55,0.2);
}

.fabric-lightbox.active .lightbox-inner {
    transform: scale(1);
}

.lightbox-inner img {
    width: 100%;
    display: block;
    max-height: 72vh;
    object-fit: contain;
    background: #000;
}

.lightbox-caption {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid rgba(212,175,55,0.15);
    background: rgba(10,37,64,0.95);
}

.lightbox-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
}

.lightbox-close:hover {
    background: #D4AF37;
    transform: scale(1.1);
    color: #1E293B;
}

/* ---- Gallery Responsive ---- */
@media (max-width: 991px) {
    .fabric-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 220px;
    }
    .fabric-gallery-item:nth-child(1),
    .fabric-gallery-item:nth-child(4) { grid-column: auto; grid-row: auto; }
    .fabric-gallery-item:nth-child(5) { grid-column: 1 / 3; max-height: 260px; }
}

@media (max-width: 575px) {
    .fabric-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }
    .fabric-gallery-item:nth-child(5) { grid-column: 1; max-height: 260px; }
}
