/* ----------------------- Contact CTA Section ----------------------- */
.contact-cta {
    position: relative;
    background: white;
    padding: clamp(40px, 8vw, 80px) var(--section-pad-x);
    text-align: center;
}

.contact-cta-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.contact-phone-card {
    display: inline-flex;
    align-items: center;
    gap: clamp(12px, 3vw, 30px);
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    padding: clamp(16px, 3vw, 26px) clamp(24px, 5vw, 48px);
    border-radius: clamp(14px, 3vw, 20px);
    box-shadow:
        0 8px 30px rgba(255, 107, 53, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
}

.contact-phone-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 15px 50px rgba(255, 107, 53, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 0 40px rgba(255, 107, 53, 0.3);
}

.phone-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.phone-icon svg {
    width: 25px;
    height: 25px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.phone-info {
    text-align: left;
}

.phone-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 6px 0;
}

.phone-number {
    font-size: 26px;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ----------------------- Portfolio Gallery ----------------------- */
.portfolio-gallery {
    position: relative;
    background: #f9f9f9;
    padding: 140px 20px 90px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    letter-spacing: 2px;
}

.gallery-subtitle {
    font-size: 20px;
    color: #666;
    margin: 0;
}

.gallery-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.gallery-frame {
    width: 100%;
    max-width: 1000px;
    min-height: 700px;
    background: white;
    border: 4px solid #ff6b35;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.2);
    overflow: hidden;
    padding: 20px;
}

.gallery-page {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 650px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-page.active {
    display: flex;
    animation: fadeInGallery 0.5s ease forwards;
}

@keyframes fadeInGallery {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-page img {
    width: 300px;
    height: 220px;
    object-fit: cover;
    border: 3px solid #ff6b35;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-page img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.gallery-nav {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid #ff6b35;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-nav:hover {
    background: #ff6b35;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5);
}

.gallery-nav svg {
    width: 24px;
    height: 24px;
}

.gallery-pagination {
    text-align: center;
    margin-top: 30px;
}

.page-indicator {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 4px solid #ff6b35;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(255, 107, 53, 0.5);
    animation: modalZoom 0.3s ease;
}

@keyframes modalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 107, 53, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    background: #ff6b35;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.6);
}

/* ----------------------- Contact Widget Section ----------------------- */
.contact-widget-section {
    position: relative;
    background: white;
    padding: clamp(60px, 10vw, 110px) var(--section-pad-x);
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}


body.contact-page .contact-widget-section {
    padding-top: clamp(18px, 6vw, 60px);
    margin-top: calc(var(--header-height-desktop) * -1);
    padding-top: calc(var(--header-height-desktop) + clamp(20px, 5vw, 60px));
}
/* Contact Widget Section background image */
.contact-widget-section {
    background-image: url('../images/img/all/photo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.contact-widget-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.114);
    z-index: 1;
    pointer-events: none;
}

.widget-container {
    max-width: 1200px;
    margin: 0 auto;
}

.widget-frame {
    width: 100%;
    max-width: 1100px;
    min-height: clamp(420px, 55vw, 560px);
    margin: 0 auto clamp(32px, 6vw, 50px);
    border: 4px solid #ff6b35;
    border-radius: clamp(16px, 3vw, 26px);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.25);
    overflow: hidden;
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
}

.image-container {
    flex: 1 1 55%;
    min-height: 100%;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.image-container:hover {
    transform: scale(1.02);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.image-container:hover img {
    filter: brightness(0.7);
}

/* Map Overlay on Image */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 53, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-container:hover .map-overlay {
    opacity: 1;
}

.map-overlay svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: mapPulse 2s ease-in-out infinite;
}

.map-overlay p {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

@keyframes mapPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ----------------------- Contact Page Hero ----------------------- */
.contact-hero-section {
    position: relative;
    padding: clamp(48px, 9vw, 110px) 0 clamp(68px, 10vw, 130px);
    overflow: hidden;
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.65) 50%, rgba(0, 0, 0, 0.62) 100%),
        url('../images/img/all/photo.jpg') center/cover no-repeat;
    filter: blur(2px);
    transform: scale(1.02);
}

.contact-shell {
    position: relative;
    z-index: 2;
}

.contact-board {
    display: grid;
    grid-template-columns: minmax(460px, 1.05fr) minmax(360px, 0.9fr);
    border: 4px solid var(--xf-accent, #ff6b35);
    border-radius: clamp(18px, 3vw, 30px);
    overflow: hidden;
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.32),
        0 10px 36px rgba(255, 107, 53, 0.26);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.contact-map-pane {
    position: relative;
    min-height: clamp(340px, 50vw, 640px);
    background: #e6e6e6;
}

.contact-map-surface {
    position: absolute;
    inset: 0;
}

.contact-map-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: saturate(0.98) contrast(1.02);
}

.contact-map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.88), rgba(255, 128, 73, 0.9));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    text-decoration: none;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.35s ease,
        background 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.contact-map-pane:hover .contact-map-overlay,
.contact-map-overlay:focus-visible {
    opacity: 0.96;
    pointer-events: auto;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.96), rgba(255, 146, 93, 0.95));
    box-shadow:
        0 22px 48px rgba(255, 107, 53, 0.4),
        0 0 0 12px rgba(255, 107, 53, 0.2);
    transform: scale(1.01);
}

.contact-map-marker {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.contact-map-marker svg {
    width: 36px;
    height: 36px;
}

.contact-map-overlay p {
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 700;
    margin: 6px 0 0;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.contact-map-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #fff;
    color: #ff6b35;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.contact-info-pane {
    position: relative;
    background:
        radial-gradient(140% 120% at 20% 20%, rgba(255, 107, 53, 0.16), rgba(0, 0, 0, 0)),
        linear-gradient(180deg, #161616 0%, #0f0f0f 45%, #0c0c0c 100%);
    color: #fff;
    padding: clamp(26px, 4vw, 42px);
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 28px);
}

.contact-heading {
    text-align: left;
}

.contact-eyebrow {
    margin: 0 0 6px 0;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 700;
}

.contact-heading h1 {
    margin: 0 0 8px 0;
    font-size: clamp(26px, 4vw, 34px);
    color: #ff6b35;
    letter-spacing: 0.01em;
}

.contact-lede {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 1.6;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.32),
        0 10px 24px rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 255, 255, 0.02));
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 107, 53, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 107, 53, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.contact-icon svg {
    width: 26px;
    height: 26px;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 800;
}

.contact-value {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
}

/* ----------------------- Responsive Contact ----------------------- */
@media (max-width: 1100px) {
    .contact-board {
        grid-template-columns: 1fr;
    }

    .contact-info-pane {
        order: -1;
    }

    .contact-map-pane {
        min-height: 380px;
    }
}

@media (max-width: 820px) {
    .contact-hero-section {
        padding: clamp(32px, 10vw, 48px) 0 clamp(40px, 12vw, 70px);
    }

    .contact-board {
        border-width: 3px;
        border-radius: 18px;
    }

    .contact-info-pane {
        padding: 22px 20px 26px;
    }

    .contact-info-card {
        grid-template-columns: auto 1fr;
        gap: 12px;
    }

    .contact-map-overlay {
        opacity: 0.92;
    }
}

@media (max-width: 540px) {
    .contact-heading h1 {
        font-size: 24px;
    }

    .contact-map-pane {
        min-height: 320px;
    }

    .contact-info-card {
        align-items: flex-start;
    }

    .contact-value {
        font-size: 17px;
    }
}
