/* =========================================
   GALLERY & CONTACT PAGE STYLES
   ========================================= */

/* =========================================
   SHARED PAGE BANNER
   ========================================= */
.page-hero {
    background: var(--cream-dark, #ece7df);
    padding: 160px 0 80px;
    text-align: center;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    color: var(--text-dark, #343434);
    margin-bottom: 12px;
}

.page-hero .breadcrumb-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #888;
    margin-top: 16px;
}

.page-hero .breadcrumb-nav a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.page-hero .breadcrumb-nav a:hover {
    color: var(--primary, #ca3c08);
}

.page-hero .breadcrumb-nav .sep {
    color: #ccc;
}

.page-hero .breadcrumb-nav .current {
    color: var(--text-dark, #343434);
    font-weight: 500;
}

.page-hero p.subtitle {
    max-width: 560px;
    margin: 20px auto 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light, #777);
}

/* =========================================
   GALLERY PAGE
   ========================================= */

/* Gallery Filter */
.gallery-filter {
    padding: 40px 0 20px;
    background: var(--cream, #f5f2ed);
}

.gallery-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 32px;
    border-bottom: 1px solid var(--border, #dfddd8);
}

.gallery-filter-btn {
    border: none;
    background: transparent;
    padding: 14px 0;
    color: #9a9a9a;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
    letter-spacing: 0.3px;
}

.gallery-filter-btn:hover {
    color: var(--primary, #ca3c08);
}

.gallery-filter-btn.active {
    color: var(--primary, #ca3c08);
}

.gallery-filter-btn.active::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary, #ca3c08);
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

/* Gallery Grid */
.gallery-section {
    padding: 60px 0 100px;
    background: var(--cream, #f5f2ed);
}

.gallery-masonry {
    columns: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

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

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

.gallery-item .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

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

.gallery-overlay h4 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
}

.gallery-overlay span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.gallery-lightbox .lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.gallery-lightbox .lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
}

.lightbox-caption h4 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin-bottom: 4px;
}

.lightbox-caption span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    transition: opacity 0.3s;
}

.lightbox-nav:hover {
    opacity: 0.7;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-section {
    padding: 80px 0 100px;
    background: var(--cream, #f5f2ed);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Contact Info Side */
.contact-info {
    padding-top: 10px;
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.2;
}

.contact-info > p {
    color: var(--text-light, #777);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 40px;
    max-width: 420px;
}

.contact-detail-item {
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--cream-dark, #ece7df);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary, #ca3c08);
}

.contact-detail-text h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark, #343434);
}

.contact-detail-text p,
.contact-detail-text a {
    font-size: 13px;
    color: var(--text-light, #777);
    line-height: 1.8;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-detail-text a:hover {
    color: var(--primary, #ca3c08);
}

/* Social Links */
.contact-social {
    display: flex;
    gap: 14px;
    margin-top: 40px;
}

.contact-social a {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border, #dfddd8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-light, #777);
    transition: all 0.3s;
}

.contact-social a:hover {
    background: var(--primary, #ca3c08);
    border-color: var(--primary, #ca3c08);
    color: #fff;
}

/* Contact Form Side */
.contact-form-wrapper {
    background: #fff;
    padding: 45px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.contact-form-wrapper h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
}

.contact-form-wrapper > p {
    color: var(--text-light, #777);
    font-size: 13px;
    margin-bottom: 30px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-form .form-group {
    margin-bottom: 16px;
}

.contact-form label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark, #343434);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border, #dfddd8);
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--text-dark, #343434);
    background: #fafaf9;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary, #ca3c08);
    box-shadow: 0 0 0 3px rgba(202, 60, 8, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #b5b5b5;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    height: 50px;
    background: var(--text-dark, #343434);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 8px;
}

.contact-form .submit-btn:hover {
    background: var(--primary, #ca3c08);
}

/* Map Section */
.contact-map {
    width: 100%;
    height: 380px;
    background: var(--cream-dark, #ece7df);
    border-top: 1px solid var(--border, #dfddd8);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(30%);
}

/* =========================================
   RESPONSIVE — GALLERY
   ========================================= */
@media (max-width: 1100px) {
    .gallery-masonry {
        columns: 2;
    }
}

@media (max-width: 576px) {
    .gallery-masonry {
        columns: 1;
    }

    .gallery-filter-tabs {
        gap: 18px;
    }

    .gallery-lightbox img {
        max-width: 95%;
    }

    .lightbox-nav {
        font-size: 28px;
        padding: 12px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }
}

/* =========================================
   RESPONSIVE — CONTACT
   ========================================= */
@media (max-width: 850px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 576px) {
    .contact-form-wrapper {
        padding: 30px 24px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info h2 {
        font-size: 30px;
    }

    .page-hero {
        padding: 130px 0 60px;
    }
}
