/* ================================================================
   project-page.css — Shared styles for all project pages
   Each project-*.css defines only its own :root colour variables.
   ================================================================ */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    background: white;
    line-height: 1.6;
}

a:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ── Breadcrumb ── */
.breadcrumb {
    padding: 1rem 5%;
    font-size: 0.85rem;
    color: var(--light-text);
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover { color: var(--earth); }

/* ── Hero ── */
.project-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
}

.hero-image-wrap {
    position: relative;
    overflow: hidden;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
}

.hero-content {
    padding: 4rem 5% 4rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-category {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--dark-text);
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.meta-item label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.meta-item span {
    font-size: 0.95rem;
    color: var(--dark-text);
    font-weight: 500;
}

/* ── Buttons ── */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--earth);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--cream);
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Section Base ── */
.section { padding: 4rem 5%; }
.section-alt { background: var(--cream); }

.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.section-label {
    font-size: 0.78rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ── About the Book ── */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text p {
    color: var(--light-text);
    line-height: 1.85;
    margin-bottom: 1.2rem;
    font-size: 1.02rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text .highlights-list {
    margin-top: 0.25rem;
}

.about-text .highlights-list li {
    color: var(--light-text);
}

.fact-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.fact-box h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.fact-box p {
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.7;
}

.award-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

/* ── Gallery ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Desktop: left stack of horizontals + right tall feature, bottoms aligned */
.gallery-grid--split {
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
}

.gallery-item--hero {
    grid-column: 1 / -1;
}

.gallery-col--stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gallery-col--feature {
    display: flex;
}

.gallery-col--feature .gallery-item {
    width: 100%;
    height: 100%;
}

.gallery-col--feature .gallery-img.natural {
    height: 100%;
}

.gallery-col--feature .gallery-img.natural img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}

.gallery-item.wide { grid-column: span 2; }

.gallery-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    overflow: hidden;
}

.gallery-img.tall { aspect-ratio: 3 / 2; }

.gallery-img.natural {
    aspect-ratio: auto;
    height: auto;
}

.gallery-img.natural img {
    height: auto;
    object-fit: contain;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption { padding: 1rem 1.2rem; background: white; }

.gallery-caption p {
    font-size: 0.88rem;
    color: var(--light-text);
    font-style: italic;
}

/* ── Characters / Key Elements ── */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.character-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.character-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.character-icon { font-size: 3.5rem; margin-bottom: 1rem; display: block; }

.character-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.character-card p { font-size: 0.9rem; color: var(--light-text); line-height: 1.7; }

/* ── Process ── */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.process-step { position: relative; }

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.process-step h4 { font-size: 1rem; font-weight: 700; color: var(--dark-text); margin-bottom: 0.5rem; }
.process-step p { font-size: 0.88rem; color: var(--light-text); line-height: 1.7; }

.process-step::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: var(--border);
}

.process-step:last-child::after { display: none; }

/* ── Highlights ── */
.highlights-section {
    color: white;
    padding: 4rem 5%;
}

.highlights-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.highlights-heading .section-title { color: white; }
.highlights-heading .section-subtitle { color: rgba(255,255,255,0.75); }

.highlights-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    list-style: none;
}

.highlights-list li {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.6;
}

.highlights-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ── CTA ── */
.cta-section {
    padding: 4rem 5%;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.cta-section p {
    font-size: 1.05rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Other Projects ── */
.other-projects { padding: 4rem 5%; background: var(--cream); }

.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto 0;
}

.project-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

.card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #d4c5b0 0%, #e8dcc8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    overflow: hidden;
}

.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.4rem; }

.card-body h3 { font-size: 1rem; font-weight: 600; color: var(--dark-text); margin-bottom: 0.4rem; }
.card-body p { font-size: 0.88rem; color: var(--light-text); margin-bottom: 0.8rem; }
.card-link { color: #d97757; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .project-hero { grid-template-columns: 1fr; }
    .hero-image-wrap { min-height: 320px; }
    .hero-content { padding: 2.5rem 5%; }
    .hero-content h1 { font-size: 2.2rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid--split { grid-template-columns: 1fr; }
    .gallery-item.wide { grid-column: span 1; }
    .characters-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .process-step::after { display: none; }
    .highlights-inner { grid-template-columns: 1fr; gap: 2rem; }
    .other-projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 1.9rem; }
    .project-meta-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .characters-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .highlights-list { grid-template-columns: 1fr; }
    .other-projects-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.5rem; }
    .cta-section h2 { font-size: 1.5rem; }
}
