[v-cloak] { display: none; }
body { background-color: #e5e7eb; color: #1a3230; line-height: 1.6; padding: 2rem 0; font-family: 'Plus Jakarta Sans', sans-serif; counter-reset: page_counter; }

/* The new A4 Sheet wrapper for the web view */
.a4-sheet {
    width: 210mm !important;
    height: 297mm !important;
    max-width: none !important;
    margin: 0 auto 3rem auto;
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    counter-increment: page_counter;
    flex-shrink: 0;
}

/* Automatic Page Numbering */
.a4-sheet::after {
    content: counter(page_counter);
    position: absolute;
    bottom: 24px;
    right: 48px;
    font-size: 11px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #2c5350;
    font-weight: 700;
    opacity: 0.5;
    z-index: 50;
    letter-spacing: 0.1em;
}

.a4-sheet.bg-brand-teal::after,
.a4-sheet.gradient-teal::after {
    color: white;
    opacity: 0.4;
}

/* On project pages, float the page number over whichever side the teal
   title/image column currently sits, instead of always the bottom-right. */
.a4-sheet.pagenum-teal-left::after {
    left: 48px;
    right: auto;
    color: #F8F4EC;
    opacity: 0.5;
}

.a4-sheet.pagenum-teal-right::after {
    right: 48px;
    left: auto;
    color: #F8F4EC;
    opacity: 0.5;
}

.a4-sheet.no-page-number {
    counter-increment: none;
}

.a4-sheet.no-page-number::after {
    display: none;
}

/* Version Numbering (Left Footer) */
.a4-sheet::before {
    content: var(--app-version, "1.0");
    position: absolute;
    bottom: 24px;
    left: 48px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #2c5350;
    font-family: 'Plus Jakarta Sans', sans-serif;
    z-index: 50;
    opacity: 0.2;
    display: none;
}


@media screen {
    .a4-sheet {
        border-radius: 0;
    }
}

.gradient-teal {
    background: linear-gradient(135deg, #2c5350 0%, #1a3230 100%);
}

.hero-image {
    background-image: linear-gradient(to bottom, rgba(26, 50, 48, 0.4), rgba(26, 50, 48, 0.7)), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&q=80&w=1740');
    background-size: cover;
    background-position: center;
}

/* Print Specific Rules for perfect A4 export */
@page { size: A4 portrait; margin: 0; }

@media print {
    body { background: white; padding: 0; }
    .a4-sheet { 
        width: 210mm; 
        height: 297mm; 
        margin: 0 !important; 
        box-shadow: none; 
        border-radius: 0; 
        page-break-after: always;
        page-break-inside: avoid;
        overflow: hidden !important;
    }
    .no-print { display: none !important; }
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* Scroll Nav */
.nav-dot .line {
    width: 1rem;
    height: 2px;
    background-color: rgba(44, 83, 80, 0.4);
    transition: all 0.3s ease;
}
.nav-dot .label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2c5350;
    opacity: 0;
    transform: translateX(-1rem);
    transition: all 0.3s ease;
    white-space: nowrap;
}
.nav-dot:hover .line, .nav-dot.active .line {
    width: 2.5rem;
    background-color: #C39953;
}
.nav-dot:hover .label, .nav-dot.active .label {
    opacity: 1;
    transform: translateX(0);
}

/* To switch back to serif fonts, uncomment the line below: */
/* h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; } */

/* Auto-scaling for web view on smaller screens */
@media screen and (max-width: 992px) {
    .a4-sheet { zoom: 0.9; }
}
@media screen and (max-width: 768px) {
    .a4-sheet { zoom: 0.8; }
}
@media screen and (max-width: 600px) {
    .a4-sheet { zoom: 0.65; }
}
@media screen and (max-width: 450px) {
    .a4-sheet { zoom: 0.48; }
}
@media screen and (max-width: 380px) {
    .a4-sheet { zoom: 0.42; }
}
