/* CSS Reset & Variable Definitions */
:root {
    --primary: #0B3B3F;
    --primary-light: #15555A;
    --secondary: #AC6035;
    --secondary-light: #C57B4F;
    --accent: #C9862E;
    --accent-light: #E09C44;
    --bg-light: #FCFAF7;
    --bg-soft: #F1F5F7;
    --text-dark: #1C292A;
    --text-muted: #5F7375;
    --border-color: rgba(11, 59, 63, 0.12);
    --gold-border: rgba(172, 96, 53, 0.25);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background-color: #E6E2DC;
    line-height: 1.5;
    padding-top: 70px; /* Space for fixed navigation bar */
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* On-screen Navigation Actions */
.brochure-actions {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: rgba(11, 59, 63, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
}

.actions-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-logo {
    height: 60px;
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1); /* Render logo white in nav */
    padding: 3px 0;
}

.brand-info span {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 12px;
    color: var(--accent-light);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
    box-shadow: 0 4px 10px rgba(172, 96, 53, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Brochure Container */
.brochure-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
    max-width: 100%;
}

/* Page Setup for Screen */
.page {
    background-color: var(--bg-light);
    width: 210mm;
    height: 297mm;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    padding: 10mm;
    box-sizing: border-box;
}

.page-border {
    border: 1px solid var(--gold-border);
    height: 100%;
    width: 100%;
    padding: 8mm;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header Elements */
.brochure-header {
    text-align: center;
    margin-bottom: 6mm;
}

.brochure-header .logo {
    height: 60px;
    width: auto;
    margin-bottom: 2mm;
    display: inline-block;
}

.tagline {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent);
}

.brochure-header-compact {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 3mm;
    margin-bottom: 6mm;
}

.header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compact-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.compact-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary);
    font-weight: 600;
}

/* Hero Visual Cover */
.hero-image-container {
    position: relative;
    width: 100%;
    height: 90mm;
    margin-bottom: 6mm;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

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

.hero-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(11, 59, 63, 0.9));
    color: white;
    padding: 12px 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Section Typography & Style */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 3mm;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
    margin-top: 1mm;
}

.section-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 4mm;
}

.section-subtitle.centered {
    text-align: center;
}

/* Story Content */
.story-section {
    margin-bottom: 6mm;
}

.story-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-dark);
    margin-bottom: 3mm;
    text-align: justify;
}

.story-text.highlighted {
    font-size: 0.92rem;
    border-left: 3px solid var(--secondary);
    padding-left: 15px;
    font-style: italic;
    color: var(--primary);
    background-color: rgba(172, 96, 53, 0.04);
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 0 4px 4px 0;
}

/* Pillars grid */
.pillars-section {
    margin-bottom: 4mm;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4mm;
}

.pillar-card {
    background-color: var(--bg-soft);
    padding: 4mm;
    border-radius: 6px;
    border-top: 3px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.pillar-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 2mm;
}

.pillar-card p {
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--text-muted);
}

/* Excursion Splits (Page 2) */
.excursions-section {
    margin-bottom: 5mm;
}

.excursion-intro {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 5mm;
}

.experience-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6mm;
}

.experience-col {
    display: flex;
    flex-direction: column;
}

.image-wrapper {
    width: 100%;
    height: 42mm;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 3mm;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

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

.col-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin-bottom: 2mm;
    position: relative;
    padding-bottom: 1.5mm;
}

.col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1.5px;
}

.kids-color {
    color: var(--primary);
}
.kids-color::after {
    background-color: var(--primary);
}

.parents-color {
    color: var(--secondary);
}
.parents-color::after {
    background-color: var(--secondary);
}

.col-desc {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: justify;
}

/* Activities Grid for Brochure Page 2 */
.activities-brochure-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4mm;
    margin-bottom: 5mm;
}

.act-col-brochure {
    padding: 4mm;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.act-col-brochure.kids-bg {
    background-color: rgba(21, 85, 90, 0.02);
    border-top: 3px solid var(--primary);
}

.act-col-brochure.parents-bg {
    background-color: rgba(172, 96, 53, 0.02);
    border-top: 3px solid var(--secondary);
}

.act-col-brochure h4 {
    font-family: 'Playfair Display', serif;
    font-size: 0.98rem;
    margin-bottom: 2mm;
    color: var(--text-dark);
}

.act-col-brochure ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2mm;
}

.act-col-brochure li {
    display: flex;
    align-items: flex-start;
    gap: 3mm;
}

.act-col-brochure li span {
    font-size: 0.9rem;
    line-height: 1.1;
    margin-top: 0.5mm;
    flex-shrink: 0;
}

.act-col-brochure .activity-text {
    display: flex;
    flex-direction: column;
    gap: 0.5mm;
}

.act-col-brochure .activity-text strong {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.act-col-brochure .activity-text p {
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.35;
    margin: 0;
}

.act-col-brochure li strong {
    color: var(--text-dark);
}

/* Call To Action Box */
.cta-section {
    margin-top: auto; /* Push to the bottom of page 2 content area */
}

.cta-box {
    background-color: var(--primary);
    color: white;
    padding: 5mm 6mm;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(11, 59, 63, 0.15);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(201, 134, 46, 0.15));
    pointer-events: none;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--accent-light);
    margin-bottom: 1.5mm;
    font-weight: 700;
}

.cta-text {
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3.5mm;
}

.cta-contacts {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 3.5mm;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
}

.contact-item .icon {
    color: var(--accent-light);
    font-size: 0.9rem;
}

.contact-item .label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--accent-light);
}

/* Page Footer Setup */
.page-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 3mm;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.web-link {
    color: var(--secondary);
}

/* Print Styles Override */
@media print {
    body {
        background-color: #ffffff;
        padding-top: 0;
        margin: 0;
    }

    .brochure-actions {
        display: none !important; /* Hide action bar completely */
    }

    .brochure-container {
        padding: 0;
        margin: 0;
        gap: 0;
    }

    .page {
        width: 210mm;
        height: 297mm;
        page-break-after: always;
        page-break-inside: avoid;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .page-border {
        border: 1px solid var(--secondary);
        /* Use exactly the printable area */
        height: calc(100% - 16mm);
        margin: 8mm;
        padding: 10mm;
        box-sizing: border-box;
    }

    /* Boost print quality / contrast */
    .pillar-card {
        background-color: #f7f9fa !important;
        border-top: 3px solid var(--primary) !important;
    }

    .story-text.highlighted {
        background-color: #fdfaf7 !important;
        border-left: 3px solid var(--secondary) !important;
    }

    .act-col-brochure.kids-bg {
        background-color: #fafdff !important;
        border-top: 3px solid var(--primary) !important;
    }

    .act-col-brochure.parents-bg {
        background-color: #fffbfa !important;
        border-top: 3px solid var(--secondary) !important;
    }

    .cta-box {
        background-color: var(--primary) !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cta-box a {
        color: white !important;
    }
}
