/* BROCHURE V12 - THE SIGNATURE PLATINUM (ULTRA-MODERN WOW) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

:root {
    --v12-emerald: #064e3b;
    --v12-forest: #065f46;
    --v12-gold: #c5a059;
    --v12-gold-light: #f7dfa1;
    --v12-gold-grad: linear-gradient(135deg, #c5a059, #f7dfa1, #b08d4a);
    --v12-navy: #0f172a;
    --v12-white: #ffffff;
    --v12-light: #f8fafc;
    --v12-parrot: #68d391;

    --panel-w: 99mm;
    --panel-h: 210mm;
}

/* ================= PREVIEW AREA ================= */
.brochure-v12-main {
    font-family: 'Outfit', sans-serif;
    color: var(--v12-navy);
    background: #ffffff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========== 1. MEDIUM HERO (Matching Profile/Capabilities) ========== */
.hero-medium-v12 {
    width: 100%;
    height: 65vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0 0 80px 80px;
    margin-bottom: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.hero-v12-bg {
    position: absolute;
    inset: 0;
    background: url('/images/Home/hero_harvest.webp') center center / cover no-repeat;
    z-index: 1;
    transform: scale(1.05);
}

.hero-v12-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(6, 78, 59, 0.92) 100%);
    z-index: 2;
    backdrop-filter: blur(2px);
}

.hero-v12-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 20px;
}

.hero-v12-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.75rem;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
}

.hero-v12-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-v12-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.gold-text-v12 {
    background: var(--v12-gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.gold-divider-v12 {
    width: 60px;
    height: 4px;
    background: var(--v12-gold-grad);
    border-radius: 5px;
    margin: 30px auto 0;
    box-shadow: 0 2px 10px rgba(197, 160, 89, 0.3);
}

/* ========== ULTRA-MODERN DOWNLOAD BUTTON ========== */
.btn-modern-download {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--v12-parrot);
    color: var(--v12-emerald);
    padding: 20px 50px;
    border-radius: 100px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(104, 211, 145, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    z-index: 1;
}

.btn-modern-download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.btn-modern-download:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(104, 211, 145, 0.5);
    color: #10b981;
}

.btn-modern-download:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-modern-download i {
    font-size: 1.2rem;
    transition: transform 0.5s;
}

.btn-modern-download:hover i {
    transform: translateY(3px);
}

/* ================= BROCHURE SHEET CORE ================= */
.sheet-v12 {
    width: 297mm;
    height: 210mm;
    background: white;
    display: flex;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.1);
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
}

.p-v12 {
    width: var(--panel-w);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.p-v12-content {
    position: relative;
    z-index: 20;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.img-v12-full {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    image-rendering: -webkit-optimize-contrast;
    filter: brightness(1.02) contrast(1.02);
}

.p-v12 img:not(.img-v12-full) {
    image-rendering: -webkit-optimize-contrast;
    filter: brightness(1.03) contrast(1.03);
}

/* OVERLAYS */
.over-v12-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.95));
    z-index: 10;
}

.over-v12-green {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.96), rgba(15, 23, 42, 0.98));
    z-index: 10;
}

/* TYPOGRAPHY IN BROCHURE */
.h-v12-title {
    font-family: 'Playfair Display', serif;
    font-size: 36pt;
    color: white;
    line-height: 1;
    margin-bottom: 15px;
    font-weight: 700;
}

.h-v12-sub {
    font-size: 11pt;
    font-weight: 900;
    color: var(--v12-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.h-v12-sub::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--v12-gold), transparent);
    opacity: 0.3;
}

.t-v12-p {
    font-size: 8.5pt;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    text-align: justify;
    font-weight: 400;
}

.v12-white-card {
    background: white;
    padding: 15px;
    border-radius: 4px;
    border-bottom: 4px solid var(--v12-gold);
}

/* AWARDS NEAT GALLERY */
.v12-award-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.v12-award-card {
    background: white;
    padding: 12px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.v12-award-card img {
    max-height: 55px;
    max-width: 100%;
    object-fit: contain;
}

.v12-award-card span {
    font-size: 6.5pt;
    font-weight: 800;
    color: var(--v12-emerald);
    text-transform: uppercase;
    margin-top: 10px;
    letter-spacing: 1px;
    text-align: center;
}

/* PRODUCT MASONRY - Updated to 3 columns for uniformity */
.v12-prod-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.v12-prod-item {
    background: white;
    padding: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.v12-prod-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    transition: 0.8s;
    pointer-events: none;
}

.v12-prod-item:hover::after {
    left: 150%;
}

.v12-prod-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--v12-gold);
}

.v12-prod-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 8px;
}

.v12-prod-item span {
    font-size: 7.5pt;
    font-weight: 800;
    color: var(--v12-emerald);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* LEADERSHIP ROW */
.v12-leader-row {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f8fafc;
    padding: 10px;
    border-radius: 4px;
    border-left: 6px solid var(--v12-emerald);
    margin-bottom: 8px;
}

.v12-leader-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: top;
    border: 2.5px solid var(--v12-gold);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    /* ULTRA HD CLARITY FILTERS */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: brightness(1.08) contrast(1.1) saturate(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    background: white;
    transition: all 0.3s ease;
}

.v12-leader-row:hover .v12-leader-thumb {
    filter: brightness(1.12) contrast(1.15) saturate(1.15);
    transform: scale(1.05);
}

.v12-leader-info h6 {
    font-size: 11pt;
    font-weight: 900;
    margin: 0;
    color: var(--v12-navy);
}

.v12-leader-info p {
    font-size: 7.5pt;
    color: #666;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
}


.v12-compliance-plaque {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 12px 5px;
    text-align: center;
    font-size: 7.5pt;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--v12-gold);
}

.v12-compliance-plaque:hover {
    background: var(--v12-gold-grad);
    color: var(--v12-navy);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ================= PRINT / DOWNLOAD OPTIMIZATION ================= */
@media print {
    @page {
        size: A4 landscape;
        margin: 0;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        box-sizing: border-box !important;
    }

    /* Hide EVERYTHING by default */
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        overflow: visible !important;
    }

    /* Hide Navigation, Footer, Header, and other non-brochure elements */
    nav,
    footer,
    .hero-medium-v12,
    .brochure-v12-header,
    header,
    .d-print-none,
    #agroBotLauncher,
    #agroBot,
    .logo-hover-hint,
    #companyPopup {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ONLY show the brochure sheets */
    .brochure-v12-main {
        display: block !important;
        visibility: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        background: transparent !important;
    }

    main {
        padding-top: 0 !important;
        margin: 0 !important;
    }

    .sheet-v12 {
        visibility: visible !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 297mm !important;
        max-width: 100vw !important;
        height: 210mm !important;
        max-height: 100vh !important;
        min-height: 209mm !important;
        page-break-after: always !important;
        break-after: page !important;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }

    .sheet-v12:last-child {
        page-break-after: auto !important;
        break-after: auto !important;
    }

    .p-v12 {
        flex: 1 1 33.33% !important;
        width: 33.33% !important;
        height: 100% !important;
        float: left !important;
        border: none !important;
        /* Remove dashed borders for print */
    }

    .img-v12-full {
        width: 100% !important;
        height: 100% !important;
    }

    /* Scaling for different printers */
    body {
        transform: scale(1);
        transform-origin: top left;
    }
}
