/* ===================================================
   Sketch Pencils - Custom Styles
   Color Theme: Pantone 871 U (Gold), PQ-877C (Silver), PQ-876C (Brown/Copper)
   =================================================== */

/* --- Color Theme Override (Pantone Brand Colors) --- */
:root {
    --sp-gold:   #B5A267;   /* Pantone 871 U */
    --sp-silver: #8D8F8D;   /* Pantone PQ-877C */
    --sp-copper: #9B6448;   /* Pantone PQ-876C */
    --tl-color-theme-primary: #B5A267;
}

/* Primary accent — buttons, borders, highlights */
.tl-primary-btn,
.header-btn {
    background-color: var(--sp-gold) !important;
    border-color: var(--sp-gold) !important;
    color: #fff !important;
}
.tl-primary-btn:hover,
.header-btn:hover {
    background-color: var(--sp-copper) !important;
    border-color: var(--sp-copper) !important;
}

/* Section sub-headings & accent text */
.sub-heading,
.feature-item .number,
.process-item .number,
.process-item .process-content h3 span {
    color: var(--sp-gold) !important;
}

/* Section title colored spans */
h2 span, h1 span, h3 span {
    color: var(--sp-gold) !important;
}

/* Progress bars */
.progress-bar {
    background-color: var(--sp-gold) !important;
}

/* Active nav link */
.mobile-menu-items li.active a,
.mobile-menu-items li a:hover {
    color: var(--sp-gold) !important;
}

/* Links hover color */
a:hover {
    color: var(--sp-gold) !important;
}

/* Footer address links */
.footer-address .number,
.footer-address .mail {
    color: var(--sp-gold) !important;
}

/* Request/contact items */
.request-item span {
    color: var(--sp-gold) !important;
}

/* Skill text (decorative watermark) */
.skill-text {
    color: rgba(181, 162, 103, 0.07) !important;
}

/* Process item number background */
.process-item::before,
.process-item:hover .number {
    color: var(--sp-gold) !important;
}

/* Feature item hover border */
.feature-item:hover,
.feature-item.active {
    border-color: var(--sp-gold) !important;
}

/* Counter odometer */
.odometer {
    color: var(--sp-gold) !important;
}

/* ===================================================
   Fix: About Page — 100% Client Satisfaction counter
   =================================================== */
.about-counter-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    margin-top: 30px !important;
}

.counter-content {
    flex: 0 0 auto !important;
    text-align: center !important;
    background: linear-gradient(135deg, var(--sp-gold), var(--sp-copper)) !important;
    border-radius: 12px !important;
    padding: 24px 28px !important;
    min-width: 150px !important;
}

.counter-content .title {
    font-size: 48px !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1 !important;
    margin-bottom: 6px !important;
}

.counter-content .title .odometer,
.counter-content .title span {
    color: #fff !important;
}

.counter-content p {
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.counter-img {
    flex: 1 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.counter-img img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
}

/* ===================================================
   WhatsApp Floating Button
   =================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
}

.whatsapp-float:hover {
    background-color: #1da851 !important;
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6) !important;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.whatsapp-float .wa-tooltip {
    position: absolute;
    left: 70px;
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.whatsapp-float:hover .wa-tooltip {
    opacity: 1;
}

/* Pulse ring */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.35);
    animation: wa-pulse 2s ease-out infinite;
}

@keyframes wa-pulse {
    0%   { transform: scale(1); opacity: 1; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ===================================================
   Portfolio — Before/After Slider Section
   =================================================== */
.before-after-section {
    background: #f6f6f6;
    padding: 100px 0;
}

.ba-slider-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    margin-bottom: 32px;
}

.ba-slider-wrap .twentytwenty-container {
    border-radius: 12px;
}

.ba-label {
    position: absolute;
    top: 16px;
    z-index: 10;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ba-label.before { left: 16px; background: rgba(155, 100, 72, 0.85); }
.ba-label.after  { right: 16px; background: rgba(181, 162, 103, 0.9); }

.ba-project-info {
    text-align: center;
    margin-top: 14px;
}

.ba-project-info h4 {
    font-size: 18px !important;
    color: #191919 !important;
    margin-bottom: 4px !important;
}

.ba-project-info span {
    font-size: 13px;
    color: #888;
}

/* ===================================================
   Contact Page — Improvements
   =================================================== */

/* Direct Call + Book Site Visit buttons */
.contact-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.btn-call-direct {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--sp-gold);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px !important;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none !important;
}

.btn-call-direct:hover {
    background: var(--sp-copper) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 100, 72, 0.3);
}

.btn-book-visit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--sp-gold) !important;
    border: 2px solid var(--sp-gold);
    padding: 12px 26px;
    border-radius: 8px;
    font-size: 15px !important;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none !important;
}

.btn-book-visit:hover {
    background: var(--sp-gold) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(181, 162, 103, 0.35);
}

/* Working Hours box */
.working-hours-box {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-top: 24px;
}

.working-hours-box h5 {
    font-size: 16px !important;
    color: #191919 !important;
    margin-bottom: 16px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.working-hours-box h5 i {
    color: var(--sp-gold);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.hours-row:last-child { border-bottom: none; }

.hours-row .day { color: #555; font-weight: 500; }
.hours-row .time { color: var(--sp-gold); font-weight: 600; }
.hours-row .closed { color: #e55; font-weight: 600; }

/* Office photo grid */
.office-gallery-section {
    padding: 80px 0;
    background: #fff;
}

.office-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.office-gallery-grid .gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.office-gallery-grid .gallery-item:first-child {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.office-gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.office-gallery-grid .gallery-item:hover img {
    transform: scale(1.06);
}

.office-gallery-grid .gallery-item .overlay-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    color: #fff;
    padding: 20px 16px 12px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* ===================================================
   Responsive Fixes
   =================================================== */
@media (max-width: 768px) {
    .office-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .office-gallery-grid .gallery-item:first-child {
        grid-column: span 2;
    }
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 52px;
        height: 52px;
    }
    .contact-quick-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .office-gallery-grid {
        grid-template-columns: 1fr;
    }
    .office-gallery-grid .gallery-item:first-child {
        grid-column: span 1;
    }
}

@media (max-width: 550px) {
    .container,
    .container-2 {
        max-width: 96% !important;
        width: 91% !important;
    }
}

/* ===================================================
   Hero Slider — Proper CTA Button (replaces circle)
   =================================================== */
.slider-2 .slider-item .slider-content-wrap .section-heading .slider-btn a,
.slider-3 .slider-item .slider-content-wrap .section-heading .slider-btn a {
    height: auto !important;
    width: auto !important;
    border-radius: 6px !important;
    padding: 14px 36px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    background-color: var(--sp-gold) !important;
    border: 2px solid var(--sp-gold) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: none !important;
    text-align: center !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
}

.slider-2 .slider-item .slider-content-wrap .section-heading .slider-btn a:hover,
.slider-3 .slider-item .slider-content-wrap .section-heading .slider-btn a:hover {
    background-color: var(--sp-copper) !important;
    border-color: var(--sp-copper) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(155, 100, 72, 0.35) !important;
}

/* Hide the <br> inside the button links */
.slider-btn a br {
    display: none !important;
}

/* ===================================================
   Hero Title — Mobile font size (−5px)
   =================================================== */
@media (max-width: 767px) {
    .slider-2 .slider-item .slider-content-wrap .section-heading .section-title,
    .slider-3 .slider-item .slider-content-wrap .section-heading .section-title {
        font-size: 45px !important;
    }
}

/* ===================================================
   Page Banner Title — Mobile font size (−15px from 80px)
   Applies to: About, Services, Projects, Contact
   =================================================== */
@media (max-width: 767px) {
    .page-header .page-header-content .title {
        font-size: 55px !important;
    }
}

/* ===================================================
   6-Step Process Flow
   =================================================== */
.sp-flow-wrap {
    margin-top: 60px;
    position: relative;
}

/* Each row: card | arrow | card | arrow | card */
.sp-flow-row {
    display: grid;
    grid-template-columns: 1fr 52px 1fr 52px 1fr;
    align-items: center;
    gap: 0;
}

/* The bridge between row 1 → row 2 */
.sp-flow-bridge {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    position: relative;
    height: 64px;
}

.sp-flow-bridge::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: calc(33.33% + 26px);
    height: 50%;
    border-right: 2px dashed var(--sp-gold);
    border-bottom: 0;
    border-top: 2px dashed var(--sp-gold);
    opacity: 0.55;
}

.sp-flow-bridge::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: calc(33.33% + 26px);
    height: 50%;
    border-right: 2px dashed var(--sp-gold);
    border-top: 0;
    border-bottom: 2px dashed var(--sp-gold);
    opacity: 0.55;
}

.sp-flow-bridge-icon {
    position: absolute;
    left: calc(66.66% - 79px);
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--sp-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    z-index: 2;
}

/* Arrow cell between cards */
.sp-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-flow-arrow svg {
    width: 28px;
    height: 28px;
    opacity: 0.8;
}

/* Individual step card */
.sp-flow-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    border: 1.5px solid transparent;
    transition: all 0.35s ease;
    height: 100%;
}

.sp-flow-card:hover {
    border-color: var(--sp-gold);
    box-shadow: 0 10px 36px rgba(181, 162, 103, 0.2);
    transform: translateY(-5px);
}

/* Image area with number badge */
.sp-flow-img-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.sp-flow-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sp-flow-card:hover .sp-flow-img-wrap img {
    transform: scale(1.05);
}

.sp-flow-num {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 40px;
    height: 40px;
    background: var(--sp-gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--tl-ff-heading, 'Cal Sans', serif);
    box-shadow: 0 3px 10px rgba(181, 162, 103, 0.4);
    z-index: 2;
}

/* Card text content */
.sp-flow-body {
    padding: 22px 22px 26px;
}

.sp-flow-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    color: var(--sp-gold) !important;
    margin-bottom: 10px !important;
    text-transform: uppercase;
    font-family: var(--tl-ff-heading, 'Cal Sans', serif) !important;
}

.sp-flow-desc {
    font-size: 13px !important;
    color: #666;
    line-height: 1.65;
    margin: 0 !important;
}

/* Overide stagger margin on process-wrap for new layout */
.sp-flow-wrap .process-wrap > div:nth-child(2),
.sp-flow-wrap .process-wrap > div:nth-child(3),
.sp-flow-wrap .process-wrap > div:nth-child(4) {
    margin-top: 0 !important;
}

/* Responsive — tablet */
@media (max-width: 991px) {
    .sp-flow-row {
        grid-template-columns: 1fr 36px 1fr;
    }

    /* Show only 2 per row on tablet; hide 3rd arrow + card via nesting handled in HTML */
    .sp-flow-bridge {
        display: none;
    }

    .sp-flow-wrap {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .sp-flow-row {
        margin-bottom: 24px;
    }
}

/* Responsive — mobile */
@media (max-width: 600px) {
    .sp-flow-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sp-flow-arrow {
        display: none;
    }

    .sp-flow-bridge {
        display: none;
    }

    .sp-flow-row {
        margin-bottom: 16px;
    }
}
