/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    /* Whoez Group Brand Palette */
    --primary: #384959;
    --primary-light: #52667a;
    --secondary: #384959;
    /* User requested Brand Color everywhere. Overriding Mint for UI elements, keeping Mint only for Strategy Palette inside content. */
    --accent: #C0C0C0;

    --bg-body: #F0F4F8;
    --surface: rgba(255, 255, 255, 0.9);
    /* Slightly more opaque for contrast */
    --text-main: #000000;
    /* Pure Black Text as requested */
    --text-muted: #333333;
    /* Darker muted text */

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    /* Black */
    background-color: var(--bg-body);
    /* Subtle mesh gradient background */
    background-image:
        radial-gradient(at 0% 0%, rgba(56, 73, 89, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(56, 73, 89, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    line-height: 1.8;
    overflow: hidden;
    /* FINAL: LOCK TO SINGLE SCREEN, NO SCROLL */
    height: 100vh;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* Force container to be exactly screen height */
    overflow: hidden;
}

/* --- HEADER (COMPACT) --- */
header.page-header {
    padding: 1rem;
    text-align: center;
    flex-shrink: 0;
    /* Header size is fixed based on content */
}

.doc-logo {
    margin-bottom: 0.2rem;
    display: flex;
    justify-content: center;
}

.logo-image {
    max-height: 24vh;
    /* REDUCED: 20% Smaller than 30vh target */
    width: auto;
    max-width: 90vw;
    display: block;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.header-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    gap: 0.5rem;
}

.meta-label {
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 1rem;
}

.scroll-instruction {
    /* Optional: Show instruction, or hide if easy enough */
    color: var(--secondary);
    font-size: 0.8rem;
    animation: bounceRight 2s infinite;
}

@keyframes bounceRight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

/* --- SCROLL WRAPPER & BUTTONS --- */
.scroll-wrapper {
    position: relative;
    flex-grow: 1;
    /* Fills all remaining space after header */
    display: flex;
    align-items: center;
    /* Vertically align everything in this section */
    overflow: hidden;
    /* Needed for absolute buttons positioning context */
}

.scroll-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.scroll-nav-btn:hover {
    background: white;
    color: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

#scroll-left {
    left: 20px;
}

#scroll-right {
    right: 20px;
}


/* --- HORIZONTAL CARD CONTAINER --- */
.horizontal-scroll-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 4rem;
    /* Padding for aesthetics, no bottom excess */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: stretch;
    /* Cards stretch to fill height */
    height: 100%;
    /* Fill wrapper */
    width: 100%;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

/* --- INTERACTIVE CARDS --- */
.card {
    min-width: 350px;
    /* Height is handled by flex-grow/stretch in container, but let's be safe */
    height: auto;
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 2rem;
    scroll-snap-align: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* VERTICALLY CENTER CONTENT */
    align-items: center;
    /* HORIZONTALLY CENTER CONTENT */
    overflow: hidden;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(56, 73, 89, 0.15);
    border-color: var(--secondary);
    background: white;
}

.card-content-preview {
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* MINIMAL TITLE ONLY */
.card-content-preview h2 {
    font-family: 'Playfair Display', serif;
    /* Or 'Outfit' based on pref, but serif looks premium for titles */
    font-size: 1.8rem;
    /* Large and clear */
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin: 0;
    border: none;
    padding: 0;
}

/* "Click Me" Hint */
.card-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--secondary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    /* Hidden by default */
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 20px rgba(56, 73, 89, 0.3);
    z-index: 5;
}

.card:hover .card-hint {
    opacity: 1;
    transform: translate(-50%, 60px) scale(1);
    /* Slide down below title on hover */
}

.card:hover h2 {
    transform: translateY(-20px);
    /* Slide title up slightly on hover */
    transition: var(--transition);
}


/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: white;
    width: 85%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    padding: 4rem;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-body);
    border: none;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

/* Modal specific typography */
.modal-content h2 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    color: var(--primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.modal-content p {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.modal-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin: 2rem 0 1rem;
}

/* Mini Palette for Cards */
.color-palette {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.color-swatch {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
}

/* --- FLOATING BUTTON --- */
.floating-download-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 10px 25px rgba(56, 73, 89, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 100;
}

.floating-download-btn:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--primary-light);
}

.floating-download-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    header.page-header {
        padding: 0.5rem;
    }

    .logo-image {
        max-height: 15vh;
    }

    h1 {
        font-size: 1.5rem;
    }

    .scroll-wrapper {
        width: 100%;
    }

    .horizontal-scroll-container {
        gap: 1rem;
        padding: 1rem 2rem;
    }

    .card {
        min-width: 80vw;
    }

    /* Mobile needs scrolling usually, but we try to fit. If not, auto scroll x is fine. Vertical is disabled on body. */
    .scroll-nav-btn {
        display: none;
    }
}

/* --- PRINT --- */
@media print {

    /* RESET STRUCTURE FOR PRINT */
    body,
    .app-container {
        height: auto !important;
        overflow: visible !important;
        display: block !important;
    }

    @page {
        margin: 0;
        size: auto;
    }

    body {
        margin: 1cm;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .scroll-wrapper {
        display: block !important;
    }

    .scroll-nav-btn {
        display: none !important;
    }

    .horizontal-scroll-container {
        display: block !important;
        overflow: visible !important;
        padding: 0 !important;
        height: auto !important;
    }

    .card {
        display: block !important;
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 2rem !important;
        break-inside: avoid;
        text-align: left !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    /* Hide the MINIMAL card visuals in print */
    .card-content-preview,
    .card-hint,
    .read-more-btn,
    .scroll-instruction {
        display: none !important;
    }

    /* SHOW THE FULL CONTENT in print */
    .full-content {
        display: block !important;
    }

    .modal-overlay,
    .floating-download-btn {
        display: none !important;
    }

    header.page-header {
        padding: 0 !important;
        display: block !important;
        text-align: center !important;
    }

    .logo-image {
        max-height: 100px !important;
        margin: 0 auto;
    }

    h1 {
        font-size: 2rem !important;
    }

    .header-meta {
        margin-bottom: 2rem;
    }
}