/**
 * Stoyanov Smiles - Dental Hero Showcase Stylesheet (v1.3.0)
 * Full Closed Leaf Outline (All 4 Sides, No Shadows, No Background) & Design System Arrow Buttons
 */

.dental-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 640px;
    overflow: hidden;
    background-color: #ffffff;
    box-sizing: border-box;
    font-family: inherit;
}

/* Anchored Photo Container */
.dental-hero-wrapper .dh-photo-container {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 50%;
    min-width: 480px;
    overflow: hidden;
    z-index: 1;
}

.dental-hero-wrapper .dh-model-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 78% 20%;
    display: block;
    user-select: none;
    pointer-events: none;
}

/* Locked Target Dots Layer */
.dental-hero-wrapper .dh-pins-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

/* Continuous Pulsating Glowing Ring Keyframes */
@keyframes dh-pulse-glow {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    50% {
        transform: scale(2.4);
        opacity: 0.25;
    }
    100% {
        transform: scale(3.3);
        opacity: 0;
    }
}

/* Target Bullseye on Tooth */
.dental-hero-wrapper .dh-target-dot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    pointer-events: auto !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    z-index: 20;
    -webkit-tap-highlight-color: transparent;
}

.dental-hero-wrapper .dh-target-dot * {
    pointer-events: none !important;
}

.dental-hero-wrapper .dh-target-dot .pulse {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: #999367;
    opacity: 0.45;
    pointer-events: none;
    animation: dh-pulse-glow 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.dental-hero-wrapper .dh-target-dot .ring {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1.4px solid #999367;
    background: transparent;
    transition: background-color 0.2s ease;
}

.dental-hero-wrapper .dh-target-dot .center {
    width: 3.5px;
    height: 3.5px;
    border-radius: 50%;
    background-color: #999367;
    z-index: 2;
}

.dental-hero-wrapper .dh-target-dot.highlighted {
    transform: translate(-50%, -50%) scale(1.35);
}

.dental-hero-wrapper .dh-target-dot.highlighted .ring {
    background-color: rgba(153, 147, 103, 0.25);
}

/* Square Title Box with FULL LEAF: CLOSED ALL AROUND (NOT CUT IN HALF), NO BACKGROUND, NO SHADOW, NO BLUR */
.dental-hero-wrapper .dh-title-box {
    position: absolute;
    top: 32px;
    left: 32px;
    width: 250px;
    height: 250px;
    aspect-ratio: 1 / 1; /* Pure Square */
    z-index: 3;
    padding: 24px 26px;
    /* Full closed border on all 4 sides */
    border: 1.5px solid #999367 !important;
    /* Full leaf contour: diagonal curved leaf lobes */
    border-top-left-radius: 56px !important;
    border-bottom-right-radius: 56px !important;
    border-top-right-radius: 6px !important;
    border-bottom-left-radius: 6px !important;
    /* Pure: no background, no shadow, no blur */
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dental-hero-wrapper .dh-title-box h2 {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 500;
    color: #999367;
}

.dental-hero-wrapper .dh-title-box h2 em {
    font-style: italic;
    font-weight: 700;
    color: #221B1D;
}

/* SVG Lines Canvas Overlay */
.dental-hero-wrapper .dh-lines-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.dental-hero-wrapper .dh-line {
    fill: none;
    stroke: #999367;
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke-width 0.2s ease, opacity 0.2s ease;
}

/* Pointers Container */
.dental-hero-wrapper .dh-pointers-container {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

/* Service Pill Buttons with Design System Arrow */
/* Service Pill Buttons with Design System Arrow */
.dental-hero-wrapper .dh-service-pill {
    position: absolute;
    transform: translateY(-50%);
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 18px 6px 20px;
    border-radius: 999px;
    border: 1.4px solid #999367;
    background-color: #ffffff;
    color: #221B1D;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer !important;
    z-index: 10;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dental-hero-wrapper .dh-service-pill * {
    pointer-events: none;
}

.dental-hero-wrapper .dh-service-pill .dh-btn-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.dental-hero-wrapper .dh-service-pill:hover {
    background-color: #999367;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(153, 147, 103, 0.35);
    transform: translateY(-50%) scale(1.02);
}

.dental-hero-wrapper .dh-service-pill:hover .dh-btn-arrow {
    transform: translateX(3px);
}

/* ================= POPUP OVERLAY & MODAL (DESKTOP) / BOTTOM SHEET (MOBILE & TABLET) ================= */
body.dh-popup-active {
    overflow: hidden !important;
}

body .dh-popup-overlay,
.dental-hero-wrapper .dh-popup-overlay,
.dh-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999999 !important;
    background: rgba(15, 12, 13, 0.62) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box !important;
}

body .dh-popup-overlay.active,
.dental-hero-wrapper .dh-popup-overlay.active,
.dh-popup-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body .dh-popup-card,
.dental-hero-wrapper .dh-popup-card,
.dh-popup-card {
    background: #ffffff !important;
    border-radius: 22px !important;
    max-width: 410px !important;
    width: 100% !important;
    padding: 26px 26px 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.28) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    position: relative !important;
    text-align: left !important;
    box-sizing: border-box !important;
    animation: dh-modal-pop 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    font-family: inherit !important;
}

@keyframes dh-modal-pop {
    0% { transform: scale(0.92) translateY(10px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

body .dh-popup-drag-handle,
.dental-hero-wrapper .dh-popup-drag-handle,
.dh-popup-drag-handle {
    display: none;
}

body .dh-popup-header,
.dental-hero-wrapper .dh-popup-header,
.dh-popup-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 14px !important;
}

body .dh-popup-tooth-badge,
.dental-hero-wrapper .dh-popup-tooth-badge,
.dh-popup-tooth-badge {
    display: inline-block !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    background-color: rgba(153, 147, 103, 0.14) !important;
    color: #999367 !important;
    letter-spacing: 0.02em !important;
}

body .dh-popup-close-btn,
.dental-hero-wrapper .dh-popup-close-btn,
.dh-popup-close-btn {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: #f3f4f6 !important;
    border: none !important;
    color: #4b5563 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s, transform 0.15s !important;
    padding: 0 !important;
    line-height: 1 !important;
}

body .dh-popup-close-btn:hover,
.dh-popup-close-btn:hover {
    background: #e5e7eb !important;
    color: #111827 !important;
    transform: scale(1.08) !important;
}

body .dh-popup-title,
.dental-hero-wrapper .dh-popup-title,
.dh-popup-title {
    margin: 0 0 10px 0 !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #221B1D !important;
    line-height: 1.25 !important;
}

body .dh-popup-desc,
.dental-hero-wrapper .dh-popup-desc,
.dh-popup-desc {
    margin: 0 0 16px 0 !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #4b5563 !important;
}

body .dh-popup-price-row,
.dental-hero-wrapper .dh-popup-price-row,
.dh-popup-price-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #f9fafb !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 18px !important;
    font-size: 13px !important;
}

body .dh-popup-price-label,
.dental-hero-wrapper .dh-popup-price-label,
.dh-popup-price-label {
    color: #6b7280 !important;
    font-weight: 500 !important;
}

body .dh-popup-price-val,
.dental-hero-wrapper .dh-popup-price-val,
.dh-popup-price-val {
    color: #999367 !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
}

body .dh-popup-actions,
.dental-hero-wrapper .dh-popup-actions,
.dh-popup-actions {
    display: flex !important;
    gap: 10px !important;
}

body .dh-popup-inquiry-btn,
.dental-hero-wrapper .dh-popup-inquiry-btn,
.dh-popup-inquiry-btn {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 11px 18px !important;
    border-radius: 12px !important;
    background-color: #999367 !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(153, 147, 103, 0.35) !important;
    transition: opacity 0.2s, transform 0.2s !important;
    cursor: pointer !important;
}

body .dh-popup-inquiry-btn:hover,
.dh-popup-inquiry-btn:hover {
    opacity: 0.94 !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
}

body .dh-popup-cancel-btn,
.dental-hero-wrapper .dh-popup-cancel-btn,
.dh-popup-cancel-btn {
    padding: 11px 18px !important;
    border-radius: 12px !important;
    background: #f3f4f6 !important;
    border: none !important;
    color: #4b5563 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

body .dh-popup-cancel-btn:hover,
.dh-popup-cancel-btn:hover {
    background: #e5e7eb !important;
}

/* Tablet and Mobile Bottom Sheet Popup (Slides smoothly from bottom of device screen) */
@keyframes dh-bottom-sheet-slide {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    body .dh-popup-overlay,
    .dental-hero-wrapper .dh-popup-overlay,
    .dh-popup-overlay {
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
        background: rgba(15, 12, 13, 0.68) !important;
    }

    body .dh-popup-card,
    .dental-hero-wrapper .dh-popup-card,
    .dh-popup-card {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 28px 28px 0 0 !important;
        padding: 16px 22px 30px !important;
        box-shadow: 0 -12px 38px rgba(0, 0, 0, 0.28) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        animation: dh-bottom-sheet-slide 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 0 !important;
    }

    body .dh-popup-drag-handle,
    .dental-hero-wrapper .dh-popup-drag-handle,
    .dh-popup-drag-handle {
        display: block !important;
        width: 44px !important;
        height: 4.5px !important;
        background: #d1d5db !important;
        border-radius: 999px !important;
        margin: 0 auto 14px !important;
    }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .dental-hero-wrapper {
        min-height: 580px;
    }
    
    .dental-hero-wrapper .dh-photo-container {
        width: 100%;
        min-width: 100%;
    }

    .dental-hero-wrapper .dh-title-box {
        left: 16px;
        top: 20px;
        width: 235px;
        height: 235px;
        padding: 18px 20px;
    }
    
    .dental-hero-wrapper .dh-title-box h2 {
        font-size: 21px;
    }

    .dental-hero-wrapper .dh-service-pill {
        padding: 5px 14px 5px 16px;
        font-size: 11px;
    }
}
