/* ==========================================================================
   JewelSoft & Shyam Software A4 Print Brochure Styling
   ========================================================================== */

/* --- CSS Variables & Design Tokens (Consistent with style.css) --- */
:root {
    --bg-light: #f1f5f9;
    --bg-page: #e2e8f0;
    --bg-card: #ffffff;
    --border-color: #cbd5e1;

    --orange-primary: #f97316;
    --orange-dark: #ea580c;
    --orange-light: #fff7ed;
    --orange-text: #c2410c;

    --purple-primary: #8b5cf6;
    --purple-dark: #7c3aed;
    --purple-light: #f5f3ff;
    --purple-text: #6d28d9;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --border-radius-sm: 6px;
    --border-radius-md: 10px;
}

/* --- Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    font-size: 13.5px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* --- Navigation Controls Banner (Screen Only) --- */
.brochure-controls {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 24px;
    z-index: 1000;
    border-bottom: 1px solid #334155;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.controls-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controls-title {
    color: #f8fafc;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

/* --- Language Switcher --- */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 5px 13px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--orange-primary), var(--purple-primary));
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange-primary), var(--purple-primary));
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(139, 92, 246, 0.4);
    filter: brightness(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.icon-print,
.icon-arrow-left {
    width: 16px;
    height: 16px;
}

/* --- Brochure Document Container --- */
.brochure-document {
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* --- A4 Page Base Layout --- */
.a4-page {
    background-color: var(--bg-card);
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    padding: 16mm 16mm 12mm 16mm;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15), 0 5px 15px rgba(15, 23, 42, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* --- Brochure Header --- */
.brochure-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.brand-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1px;
}

.proposal-meta {
    text-align: right;
}

.proposal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.proposal-subtitle {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-top: 2px;
    margin-bottom: 6px;
}

.meta-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
}

.orange-badge {
    background-color: var(--orange-primary);
}

.purple-badge {
    background-color: var(--purple-primary);
}

/* --- Banner Strips --- */
.banner-strip {
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    color: #ffffff;
    margin-bottom: 18px;
    box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.orange-gradient {
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%);
}

.purple-gradient {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 100%);
}

.strip-tagline {
    font-size: 0.78rem;
    font-style: italic;
    opacity: 0.9;
    display: block;
    margin-bottom: 2px;
}

.strip-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* --- Grid & Content Layout --- */
.page-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.content-row {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16mm;
    height: 100%;
}

.column-left,
.column-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* --- Headings --- */
.section-heading {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-left: 3px solid;
    padding-left: 8px;
    line-height: 1.2;
}

.orange-heading {
    color: var(--orange-text);
    border-color: var(--orange-primary);
}

.purple-heading {
    color: var(--purple-text);
    border-color: var(--purple-primary);
}

/* --- Arrow & Bullet Lists --- */
.arrow-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.arrow-list li {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--orange-text);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.purple-arrows li {
    color: var(--purple-text);
}

.bullet-arrow {
    color: #e11d48;
    /* Crimson red accent */
    font-size: 0.95rem;
}

.purple-arrows .bullet-arrow {
    color: var(--purple-primary);
}

/* Why choose box */
.why-choose-box {
    background-color: var(--orange-light);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#brochure-page-2 .why-choose-box {
    background-color: var(--purple-light);
    border-color: rgba(139, 92, 246, 0.15);
}

.bullet-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
}

.bullet-list.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 14px;
}

.bullet-list li {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding-left: 14px;
    line-height: 1.35;
}

.bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-size: 1.15rem;
    line-height: 1;
}

.orange-bullets li::before {
    color: var(--orange-primary);
}

.purple-bullets li::before {
    color: var(--purple-primary);
}

/* Industry target styling */
.target-industries-box {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 10px 12px;
}

.industry-bullets {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.industry-bullets li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-left: 20px;
}

/* --- Product Showcase Card --- */
.product-showcase-card {
    background: #ffffff;
    border: 1px dashed;
    border-radius: var(--border-radius-sm);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.orange-border {
    border-color: var(--orange-primary);
}

.purple-border {
    border-color: var(--purple-primary);
}

.image-wrapper {
    width: 100%;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-caption {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* --- Specifications Table --- */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin-top: 2px;
}

.specs-table th,
.specs-table td {
    padding: 5px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
}

.specs-table tbody tr:last-child td {
    border-bottom: none;
}

.orange-table th {
    background-color: var(--orange-primary);
}

.orange-table td {
    border-bottom-color: rgba(249, 115, 22, 0.15);
}

.purple-table th {
    background-color: var(--purple-primary);
}

.purple-table td {
    border-bottom-color: rgba(139, 92, 246, 0.15);
}

.module-name {
    font-weight: 700;
    color: var(--text-primary);
    width: 32%;
}

.specs-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* --- Contact Footer Block --- */
.corporate-contact-footer {
    margin-top: 8px;
    padding: 6px 14px;
    background: #ffffff;
    border-radius: var(--border-radius-sm);
    border: 2px solid;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.orange-purple-gradient-border {
    border-color: var(--purple-primary);
    border-image: linear-gradient(to right, var(--orange-primary), var(--purple-primary)) 1;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    white-space: nowrap;
}

.contact-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 16px;
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.contact-icon {
    font-size: 0.8rem;
}

.contact-text {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* --- Page Footer --- */
.page-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Print Stylesheet (Forces layout onto physical A4 paper dimensions)
   ========================================================================== */
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
        /* Clear print margins to handle absolute boundaries in CSS */
    }

    body {
        background-color: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 210mm !important;
        height: 297mm !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .no-print {
        display: none !important;
    }

    .brochure-document {
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    .a4-page {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 14mm 14mm 10mm 14mm !important;
        /* Re-establish physical safe print margins */
        width: 210mm !important;
        height: 297mm !important;
        page-break-after: always !important;
        page-break-inside: avoid !important;
        background-color: #ffffff !important;
    }

    /* Force page break constraints specifically on each A4 div */
    #brochure-page-1 {
        page-break-before: avoid !important;
    }

    #brochure-page-2 {
        page-break-before: always !important;
    }

    /* Ensure link tags do not display their URL values */
    a[href]::after {
        content: "" !important;
    }
}