@charset "UTF-8";

/* =========================================================
   CONVATEC - PERISTOMAL HYGIENE E-BROCHURE
   Custom Stylesheet (source/css/style.css)
   ========================================================= */

/* Typography: Codec Warm Local Fonts */
@font-face {
    font-family: 'Codec Warm';
    src: url('../font/CodecWarm%20-%20Regular%20Mac.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Codec Warm';
    src: url('../font/CodecWarm%20-%20Bold%20Mac.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Codec Warm';
    src: url('../font/CodecWarm%20-%20Extra%20Bold%20Mac.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Codec Warm ExtraBold';
    src: url('../font/CodecWarm%20-%20Extra%20Bold%20Mac.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Codec Warm';
    src: url('../font/CodecWarm%20-%20Light%20Italic%20Mac.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* Base Settings */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #F1F1F1;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb {
    background: #AA0061;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: #BA4386;
}

/* Glass Panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-panel-dark {
    background: rgba(170, 0, 97, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Brand Background Accent */
.brand-bg-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Floating Animations */
@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.01);
    }
}
.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

/* Hotspots */
.hotspot-dot {
    position: absolute;
    width: 32px;
    height: 32px;
    background: radial-gradient(circle, #FF70AC 40%, #AA0061 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(255, 112, 172, 0.7), 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: pulse-hotspot 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    border: 3px solid #FFFFFF;
    z-index: 20;
    transition: transform 0.25s ease, background 0.25s ease;
}

.hotspot-dot:hover {
    transform: scale(1.25);
    background: #AA0061;
    animation: none;
    box-shadow: 0 0 20px rgba(170, 0, 97, 0.8);
}

.hotspot-dot.active {
    background: #AA0061;
    border-color: #FF70AC;
    transform: scale(1.25);
    animation: none;
    box-shadow: 0 0 16px rgba(255, 112, 172, 0.9);
}

@keyframes pulse-hotspot {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 112, 172, 0.75), 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(255, 112, 172, 0), 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 112, 172, 0), 0 4px 10px rgba(0, 0, 0, 0.2);
    }
}

/* 3D Flip Card */
.flip-card {
    background-color: transparent;
    perspective: 1200px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1.5rem;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Accordion Smooth Expand */
.accordion-content {
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.accordion-content.expanded {
    max-height: 240px;
    opacity: 1;
}

/* Fade in for tab content */
@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-tab-fade {
    animation: tabFadeIn 0.35s ease-out forwards;
}

/* Reconstructed Vector Cycle Styles */
#leakage-cycle-svg,
#leakage-cycle-svg *,
.cycle-vec-segment,
#vec-cycle-hub {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none;
    -webkit-user-select: none;
}

#leakage-cycle-svg:focus,
#leakage-cycle-svg *:focus,
.cycle-vec-segment:focus,
#vec-cycle-hub:focus {
    outline: none !important;
    box-shadow: none !important;
}

.cycle-vec-segment {
    transform-origin: 300px 300px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, filter 0.35s ease;
    cursor: pointer;
    outline: none !important;
}

.cycle-vec-segment:hover {
    opacity: 1 !important;
    transform: scale(1.035);
}

.cycle-vec-segment.is-active {
    opacity: 1 !important;
    transform: scale(1.025);
    filter: url(#glow-active-seg);
}

.cycle-vec-segment:not(.is-active) {
    opacity: 0.85;
}

#vec-cycle-hub {
    transform-origin: 300px 300px;
    transition: transform 0.25s ease;
    cursor: pointer;
    outline: none !important;
}

#vec-cycle-hub:hover {
    transform: scale(1.04);
}

/* Protocol Progress Bar Step Nodes (Solid Opacity & Stacking) */
.protocol-step-btn {
    position: relative;
    z-index: 10;
}

.step-circle {
    position: relative;
    z-index: 10;
    isolation: isolate;
    background-clip: padding-box;
}

/* Protocol Tab Navigation Buttons (Zero Layout Shift) */
.tab-btn {
    position: relative;
    z-index: 10;
    flex: 1;
    padding: 0.7rem 0.8rem;
    border-radius: 9999px;
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid #E5E7EB;
    background-color: #FFFFFF;
    color: #6B7280;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    user-select: none;
    -webkit-user-select: none;
}

@media (min-width: 768px) {
    .tab-btn {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
}

.tab-btn:hover:not(.active) {
    background-color: #F9FAFB;
    color: #1F2937;
    border-color: #D1D5DB;
}

.tab-btn.active-cleanse {
    background-color: #AA0061;
    color: #FFFFFF;
    border-color: #AA0061;
    box-shadow: 0 4px 14px rgba(170, 0, 97, 0.35);
}

.tab-btn.active-assess {
    background-color: #BA4386;
    color: #FFFFFF;
    border-color: #BA4386;
    box-shadow: 0 4px 14px rgba(186, 67, 134, 0.35);
}

.tab-btn.active-secure {
    background-color: #AA0061;
    color: #FFFFFF;
    border-color: #AA0061;
    box-shadow: 0 4px 14px rgba(170, 0, 97, 0.35);
}

.tab-btn.active-live {
    background-color: #FF70AC;
    color: #FFFFFF;
    border-color: #FF70AC;
    box-shadow: 0 4px 14px rgba(255, 112, 172, 0.4);
}

/* Modal Styling & Animations */
@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(24px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-modal-pop {
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 6px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* =========================================================
   Interactive The Leakage Cycle SVG Diagram
   ========================================================= */
.cycle-svg-segment {
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.28s ease;
    transform-origin: 250px 250px;
    outline: none;
}

.cycle-svg-segment:hover {
    filter: brightness(1.12);
    transform: scale(1.025);
}

.cycle-svg-segment.is-active {
    filter: brightness(1.16) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
    transform: scale(1.035);
    stroke: #FFFFFF;
    stroke-width: 2.5px;
    stroke-linejoin: round;
}

.cycle-svg-segment.is-dimmed {
    opacity: 0.82;
    filter: brightness(0.95);
}

.cycle-svg-segment.is-dimmed:hover {
    opacity: 1;
    filter: brightness(1.1);
    transform: scale(1.02);
}

.cycle-svg-label {
    fill: #FFFFFF;
    font-family: 'Codec Warm', 'Noto Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.3px;
    pointer-events: none;
    user-select: none;
}

/* =========================================================
   Convatec Visual Identity Accents (from Official Handout & Leaflet)
   ========================================================= */

/* Signature Hug Arc Graphic */
.convatec-hug-arc {
    display: inline-block;
    width: 28px;
    height: 20px;
    margin-bottom: 6px;
    color: #FF70AC;
}

/* Official Clinical Rationale Box */
.convatec-rationale-box {
    background: #FDF2F7;
    border-left: 4px solid #AA0061;
    border-radius: 0.85rem;
    padding: 1rem 1.25rem;
    color: #1F2937;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Clinical Play Bullet Item */
.convatec-bullet-play {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.convatec-bullet-play-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background: #FF70AC;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.6rem;
    font-weight: 900;
    margin-top: 0.15rem;
}

/* Clinician Key Messages Numbered Circle */
.convatec-key-number {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background-color: #AA0061;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Codec Warm', 'Noto Sans', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(170, 0, 97, 0.25);
}

/* Quick Reference Protocol Cards */
.convatec-quickref-card {
    background: #FFFFFF;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #F1F1F5;
    box-shadow: 0 4px 16px rgba(37, 0, 82, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.convatec-quickref-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(37, 0, 82, 0.08);
}

/* =========================================================
   Visual Comparison Cycles (Reactive vs Preventative)
   ========================================================= */
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spinSlow 24s linear infinite;
}

.cycle-node {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cycle-node:hover {
    transform: translateY(-2px);
}

.cycle-connector-line {
    stroke-dasharray: 6 4;
    animation: cycleFlow 30s linear infinite;
}

@keyframes cycleFlow {
    to {
        stroke-dashoffset: -100;
    }
}

/* =========================================================
   4-Step Master Overview Buttons & Images
   Remove any focus ring, outline, tap highlight, or selection border
   ========================================================= */
.overview-step-btn,
.overview-step-btn:focus,
.overview-step-btn:focus-visible,
.overview-step-btn:active,
.overview-step-btn:hover,
.overview-step-btn:focus-within {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.overview-step-btn img {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;
    pointer-events: none !important;
}

/* Global image drag & select prevention */
img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

