/* 
  129 New Britain Avenue - 4-Page Digital & Print Flyer
  Optimized for US Letter Size (8.5 x 11 inches) - 4 Pages total
*/

:root {
    --color-primary: #0a0a0b;
    --color-secondary: #fdfbf7;
    --color-accent: #d4af37;
    /* Gold */
    --color-text-dark: #1a1a1a;
    --color-text-light: #666;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Reset & Print Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

body {
    font-family: var(--font-body);
    background-color: #e5e5e5;
    color: var(--color-text-dark);
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* 
  Page Container 
  Forces A4 / US Letter size dimensions (8.5in x 11in)
*/
.page {
    width: 8.5in;
    height: 11in;
    background-color: white;
    margin: 2rem auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Print Specific Rules */
@page {
    size: letter;
    margin: 0;
}

@media print {
    body {
        background-color: white;
    }

    .page {
        margin: 0;
        box-shadow: none;
        page-break-after: always;
    }
}

/* Reusable */
.divider {
    height: 3px;
    width: 80px;
    background-color: var(--color-accent);
    margin: 1.5rem 0;
}

.divider.small {
    width: 40px;
    height: 2px;
    margin: 0.8rem 0 1.2rem;
}

.page-content {
    flex: 1;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
}

/* ======= PAGE 1: COVER ======= */
.cover-hero {
    height: 60%;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.cover-badge {
    position: absolute;
    top: 40px;
    right: 40px;
    background-color: rgba(212, 175, 55, 0.95);
    color: white;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cover-title-area {
    padding: 3rem 4rem;
    background-color: var(--color-primary);
    color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cover-title-area h1 {
    font-size: 3.5rem;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 0;
    line-height: 1.1;
}

.cover-subtitle {
    color: var(--color-accent);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

.cover-specs {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.c-spec {
    display: flex;
    flex-direction: column;
}

.c-spec .c-val {
    font-size: 1.8rem;
    color: var(--color-accent);
    font-weight: bold;
    font-family: var(--font-heading);
}

.c-spec .c-lab {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ccc;
}

/* ======= PAGE 2: DETAILS ======= */
.p2-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.text-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.feat-col h3 {
    font-size: 1.3rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.feat-col p {
    font-size: 1rem;
    color: #555;
}

.p2-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: auto;
    /* Push to bottom of page */
    height: 250px;
}

.p2-img-item {
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}


/* ======= PAGE 3: GALLERY ======= */
.gallery-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 15px;
    height: 100%;
}

.gall-img {
    background-size: cover;
    background-position: center;
    border-radius: 6px;
}

.gall-img.large {
    grid-column: 1 / -1;
    grid-row: span 2;
}

/* ======= PAGE 4: MARKET & CONTACT ======= */

.map-placeholder {
    height: 350px;
    background-color: #eee;
    margin-bottom: 2rem;
    background-image: url('assets/images/drive-thru.jpg');
    /* Substitute map image */
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 8px;
}

.map-layer {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.map-layer h2 {
    color: white;
    margin: 0;
    letter-spacing: 2px;
}

.demo-box {
    background: #f8f8f8;
    padding: 2rem;
    border-left: 4px solid var(--color-accent);
    margin-bottom: 3rem;
}

.demo-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.d-stat {
    text-align: center;
}

.d-stat .val {
    display: block;
    font-size: 2.2rem;
    color: var(--color-primary);
    font-weight: bold;
    font-family: var(--font-heading);
}

.d-stat .lab {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
}

/* Giant Contact Footer on Back Page */
.back-contact {
    margin-top: auto;
    background-color: var(--color-primary);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}

.back-contact h2 {
    color: var(--color-accent);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.back-contact h3 {
    color: white;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 400;
    margin-bottom: 2rem;
}

.back-contact-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.bc-item {
    font-size: 1.3rem;
}

.bc-item span {
    color: var(--color-accent);
    font-weight: bold;
    margin-right: 10px;
}